/* ═══════════════════════════════════════════════════════════════
   CM AUROPROCESS — "REFINED ORE" DESIGN SYSTEM  ·  v3 (2026)
   Light premium · Navy ink · Gold accent · Rounded · Soft
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,500&family=Bebas+Neue&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* palette */
  --paper: #f7f6f1;
  --paper-2: #efede5;
  --white: #ffffff;
  --ink: #0a1226;
  --ink-2: #101b3a;
  --navy-700: #1a2f5e;
  --navy-600: #24407a;
  --gold-600: #9a7a22;
  --gold-500: #b8922a;
  --gold-400: #d4a843;
  --gold-300: #e8c76a;
  --gold-tint: #f4ecd8;
  --stone: #5f6678;
  --stone-light: #9aa0af;
  --line: rgba(10, 18, 38, 0.08);
  --line-gold: rgba(184, 146, 42, 0.25);

  /* type */
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-num: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', 'DM Sans', monospace;

  /* geometry */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* shadows */
  --sh-soft: 0 2px 10px rgba(10,18,38,0.04), 0 16px 44px rgba(10,18,38,0.07);
  --sh-lift: 0 8px 20px rgba(10,18,38,0.08), 0 28px 70px rgba(10,18,38,0.12);
  --sh-gold: 0 10px 34px rgba(184,146,42,0.28);
  --sh-deep: 0 30px 90px rgba(6,10,22,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.4s var(--ease);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: var(--font-body); }

::selection { background: var(--gold-300); color: var(--ink); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 3px; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

/* ── Layout ────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section--white { background: var(--white); }

/* ── Eyebrow + assay strip (signature marker) ──────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.eyebrow--center { justify-content: center; }

/* ── Headings ──────────────────────────────────────── */
.h-display {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.015em; color: var(--ink);
}
.h-display em {
  font-style: italic; font-weight: 600;
  color: var(--gold-500);
}
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h-display { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-head p { color: var(--stone); font-size: 1.02rem; margin-top: 16px; }
.section-head--split {
  max-width: none;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
}
.section-head--split > div { max-width: 560px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn svg { transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--ink);
  box-shadow: var(--sh-gold);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(184,146,42,0.4); }

.btn--ink {
  background: var(--ink);
  color: var(--white);
}
.btn--ink:hover { transform: translateY(-2px); background: var(--navy-700); box-shadow: var(--sh-lift); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(10,18,38,0.18);
}
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-600); transform: translateY(-2px); }

.btn--light {
  background: var(--white); color: var(--ink);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }

.btn--sm { padding: 11px 22px; font-size: 0.8rem; }

/* circular arrow button */
.btn-round {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold-600);
  transition: var(--t);
  flex-shrink: 0;
}
.btn-round:hover { background: var(--gold-500); color: var(--ink); transform: rotate(-40deg); }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-soft);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lift);
  border-color: var(--line-gold);
}

/* chip / pill tag */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  font-size: 0.83rem; font-weight: 600; color: var(--ink);
  transition: var(--t);
}
.chip:hover { border-color: var(--gold-500); box-shadow: var(--sh-soft); }
.chip--gold { background: var(--gold-tint); border-color: var(--line-gold); color: var(--gold-600); }

/* badge on images */
.img-badge {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 0.76rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--sh-soft);
}
.img-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

/* glass stat chip (hero floaters) */
.glass-stat {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-md);
  padding: 16px 22px;
  box-shadow: var(--sh-lift);
  display: flex; align-items: center; gap: 14px;
}
.glass-stat__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); flex-shrink: 0;
}
.glass-stat__num {
  font-family: var(--font-num); font-size: 1.7rem;
  letter-spacing: 1px; line-height: 1; color: var(--ink);
}
.glass-stat__label { font-size: 0.72rem; color: var(--stone); font-weight: 600; }

/* ── Forms ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone);
}
.form-input {
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink); font-size: 0.93rem;
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(184,146,42,0.12); }
.form-input::placeholder { color: var(--stone-light); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a7a22' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.form-error { color: #c0392b; font-size: 0.78rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert {
  padding: 14px 20px; border-radius: var(--r-sm);
  font-size: 0.88rem; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.alert--success { background: #e8f5ec; color: #1e7a3c; }
.alert--error { background: #fdecea; color: #c0392b; }
.alert--info { background: var(--gold-tint); color: var(--gold-600); }

/* ── Scroll reveal ─────────────────────────────────── */
.sr { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.sr.sr--left { transform: translateX(-34px); }
.sr.sr--right { transform: translateX(34px); }
.sr.sr--scale { transform: scale(0.95); }
.sr.visible { opacity: 1; transform: none; }
.sr--delay-1 { transition-delay: 0.08s; }
.sr--delay-2 { transition-delay: 0.16s; }
.sr--delay-3 { transition-delay: 0.24s; }
.sr--delay-4 { transition-delay: 0.32s; }
.sr--delay-5 { transition-delay: 0.4s; }
.sr--delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .sr { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Dark anchor sections (stats / cta / footer) ───── */
.dark-panel {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(184,146,42,0.14), transparent 60%),
    linear-gradient(140deg, var(--ink) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden; position: relative;
}
/* faint engineering grid + grain, sits above the gradient, below content */
.dark-panel::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
}
.dark-panel > * { position: relative; z-index: 1; }

/* ── Blueprint grid — light-surface variant (hero / page-hero) ───── */
.blueprint-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,18,38,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,18,38,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

/* ── Corner frame — technical/industrial bracket accent ───── */
.corner-frame { position: relative; }
.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute; z-index: 2; pointer-events: none;
  width: 26px; height: 26px;
  border: 1.5px solid rgba(255,255,255,0.65);
}
.corner-frame::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.corner-frame::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.corner-frame--dark::before,
.corner-frame--dark::after { border-color: rgba(10,18,38,0.35); }

/* ── Technical / mono label — blueprint-style ref tags ───── */
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.tech-tag::before { content: '//'; opacity: 0.55; }
.tech-tag--light { color: rgba(255,255,255,0.7); }

/* ── Marquee — infinite scrolling row (partners strip) ───── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marqueeScroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Scroll progress bar ─────────────────────────────── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  z-index: 1200; transition: width 0.1s linear;
}

/* ── Utilities ─────────────────────────────────────── */
.text-center { text-align: center; }
.muted { color: var(--stone); }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-8 { margin-bottom: 32px; }


/* ═══════════════════════════════════════════════════════
   SHARED SECTION COMPONENTS
   These live here (not in home.css) because about / services /
   projects use them too — when they were page-scoped the CTA
   banner and stats band rendered unstyled on inner pages.
═══════════════════════════════════════════════════════ */

/* ── Stats band ─────────────────────────────────────── */
.stats-band-wrap { background: var(--white); padding: 0 20px; }
.stats-band { padding: 70px 60px; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.stats-band__item { text-align: center; position: relative; }
.stats-band__item + .stats-band__item::before {
  content: '';
  position: absolute; left: -20px; top: 15%; bottom: 15%;
  width: 1px; background: rgba(255,255,255,0.12);
}
.stats-band__num {
  font-family: var(--font-num); font-size: 3.6rem;
  letter-spacing: 2px; line-height: 1; color: var(--gold-400);
  display: block; margin-bottom: 10px;
}
.stats-band__label { font-weight: 700; font-size: 0.92rem; color: var(--white); }
.stats-band__sub { font-size: 0.76rem; color: rgba(255,255,255,0.5); margin-top: 3px; }

/* ── CTA banner ─────────────────────────────────────── */
.cta-wrap { padding: 0 20px; background: var(--white); }
.cta-banner {
  padding: 90px 70px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-banner .eyebrow { color: var(--gold-300); justify-content: center; }
.cta-banner .eyebrow::before { background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); }
.cta-banner .h-display {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  margin: 0; max-width: 900px;
}
.cta-banner .h-display em { color: var(--gold-300); }
.cta-banner p {
  color: rgba(255,255,255,0.66);
  max-width: 540px; margin: 20px auto 40px;
  font-size: 1rem; line-height: 1.75;
}
.cta-banner__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── Project card (home + projects page) ────────────── */
.project-card {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--sh-soft);
  transition: transform var(--t), box-shadow var(--t);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); }
.project-card--wide { grid-column: span 2; }
.project-card__img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.project-card--wide .project-card__img { aspect-ratio: 16/8; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card:hover .project-card__img img { transform: scale(1.06); }
.project-card__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,38,0.28), transparent 55%);
}
.project-card__cat { top: 16px; left: 16px; }
.project-card__body { padding: 22px 26px 26px; }
.project-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.project-card__desc { color: var(--stone); font-size: 0.85rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.project-card__meta { display: flex; gap: 18px; flex-wrap: wrap; }
.project-card__meta span { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--gold-600); }
.project-card__ref {
  position: absolute; z-index: 2; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: rgba(255,255,255,0.92);
  background: rgba(10,18,38,0.42); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-pill); padding: 6px 13px; letter-spacing: 0.03em;
}

/* ── Impact band — full-bleed cinematic image break ─────────
   Used once on the homepage between Projects and Industries to give
   the page a dramatic full-width moment. Reuses a project photo. */
.impact-band {
  position: relative;
  min-height: clamp(420px, 62vw, 620px);
  display: flex; align-items: center;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.impact-band__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.02);
}
.impact-band::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6,10,22,0.92) 0%, rgba(6,10,22,0.72) 42%, rgba(6,10,22,0.35) 75%, rgba(6,10,22,0.55) 100%);
}
.impact-band__grid {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 90px 28px;
  display: grid; grid-template-columns: 1.1fr 0.8fr; gap: 60px; align-items: end;
}
.impact-band__eyebrow { color: var(--gold-300); }
.impact-band__eyebrow::before { background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); }
.impact-band__title {
  color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  max-width: 620px;
}
.impact-band__title em { color: var(--gold-300); }
.impact-band__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.impact-band__stat-num {
  font-family: var(--font-num); font-size: 2.6rem; letter-spacing: 1px;
  color: var(--gold-400); line-height: 1; display: block; margin-bottom: 6px;
}
.impact-band__stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 600; line-height: 1.5; }

@media (max-width: 900px) {
  .impact-band__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .impact-band__grid { padding: 64px 20px; }
  .impact-band__stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .impact-band__stat-num { font-size: 2rem; }
}

@media (max-width: 1080px) {
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band__item + .stats-band__item::before { display: none; }
}
@media (max-width: 640px) {
  .stats-band { padding: 50px 28px; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner { padding: 58px 24px; }
  .cta-banner p { margin: 16px auto 30px; font-size: 0.94rem; }
  .cta-banner__btns { width: 100%; flex-direction: column; }
  .cta-banner__btns .btn { justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  /* reveal vertically on small screens — the sideways offset pushed
     un-revealed blocks past the viewport and caused horizontal scroll */
  .sr.sr--left, .sr.sr--right { transform: translateY(28px); }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 20px; }
}
