/* ============================================================
   OMNIBUILD — Living Blueprint
   Design system: architectural fit-out plan, dark technical paper,
   brand emerald (#00A553) as the "as-built" highlight.
============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink:        #080a09;   /* base — near-black with faint green-black */
  --ink-1:      #0b0f0d;
  --ink-2:      #0f1512;   /* lifted panels */
  --ink-3:      #141b17;
  --paper:      #eef2ec;   /* technical off-white text */
  --muted:      #8b988f;   /* sage-grey secondary text */
  --faint:      #566058;   /* tertiary / annotations */

  --green:      #00a553;   /* brand emerald (sampled from logo) */
  --green-brt:  #2fe38c;   /* brighter — glows, gradients */
  --green-dim:  #0a3d24;   /* deep tint */

  --line:       rgba(140,160,148,0.12);   /* blueprint linework */
  --line-2:     rgba(140,160,148,0.22);
  --glass:      rgba(255,255,255,0.028);
  --glass-brd:  rgba(255,255,255,0.09);

  /* Type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Manrope", system-ui, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, monospace;

  /* Fluid scale */
  --step-eyebrow: clamp(0.68rem, 0.62rem + 0.3vw, 0.78rem);
  --step-body:    clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  --step-h3:      clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  --step-h2:      clamp(2.2rem, 1.4rem + 3.8vw, 5rem);
  --step-hero:    clamp(2.35rem, 1rem + 5.4vw, 6.6rem);

  /* Layout */
  --gutter: clamp(1.15rem, 4vw, 5.5rem);
  --maxw:   1440px;
  --radius: 18px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  font-size: var(--step-body);
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Persistent architectural grid across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--green); color: #04120a; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

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

/* ---------- Reusable ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow .ref {
  color: var(--green-brt);
  padding: 0.2em 0.55em;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-size: 0.85em;
}

.section-head {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 9rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-size: var(--step-h2);
  margin: clamp(1rem, 2vw, 1.6rem) 0 0;
  max-width: 16ch;
}
.section-lede {
  color: var(--muted);
  max-width: 46ch;
  margin-top: 1.4rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 1em 1.6em;
  border-radius: 100px;
  will-change: transform;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--green);
  color: #04140b;
  font-weight: 700;
  box-shadow: 0 10px 40px -12px rgba(0,165,83,0.7);
}
.btn--primary:hover { background: var(--green-brt); box-shadow: 0 16px 55px -12px rgba(47,227,140,0.75); }

.btn--ghost {
  border: 1px solid var(--glass-brd);
  color: var(--paper);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-brt); }

.btn--nav {
  background: var(--paper);
  color: #04140b;
  font-weight: 700;
  padding: 0.75em 1.2em;
}
.btn--nav:hover { background: var(--green-brt); }

/* ============================================================
   LOADER
============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(78vw, 380px); text-align: center; }
.loader__logo { width: min(58vw, 210px); height: auto; margin: 0 auto; display: block; }
.loader__word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.02em;
  display: block;
}
.loader__word em { color: var(--green-brt); font-style: normal; }
.loader__tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-top: 0.5rem;
}
.loader__bar {
  height: 2px;
  background: var(--line-2);
  margin: 2rem 0 0.9rem;
  overflow: hidden;
}
.loader__fill { display: block; height: 100%; width: 0%; background: var(--green-brt); }
.loader__pct {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   SCROLL PROGRESS + CURSOR
============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 900;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-brt));
  box-shadow: 0 0 12px var(--green-brt);
}

.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 950;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.hovering { width: 56px; height: 56px; background: rgba(255,255,255,0.1); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 0.7rem var(--gutter);
  background: rgba(8,10,9,0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__logo { display: flex; align-items: center; line-height: 1; }
.nav__logoimg { height: clamp(26px, 3.2vw, 34px); width: auto; display: block; transition: height 0.4s var(--ease); }
.nav.scrolled .nav__logoimg { height: clamp(24px, 2.8vw, 30px); }
.nav__word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
}
.nav__word em { color: var(--green-brt); font-style: normal; }
.nav__tag {
  font-family: var(--f-mono);
  font-size: 0.53rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.35rem;
}

.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__link {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 0.3em 0;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--green-brt);
  transition: width 0.35s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { width: 100%; }

.nav__burger { display: none; width: 38px; height: 38px; position: relative; }
.nav__burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 780;
  background: rgba(8,10,9,0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
.menu.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__link {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 11vw, 3.4rem);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}
.menu__ref {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--green-brt);
  letter-spacing: 0.1em;
}
.menu__foot {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   SECTION 1 · HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vh, 9rem) var(--gutter) clamp(3rem, 6vh, 5rem);
  overflow: hidden;
}
/* Cinematic background image + brand-green overlay */
.hero__bg {
  position: absolute;
  inset: -4%;
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}
.hero__bg-img {
  position: absolute;
  inset: -6%;
  background: url("assets/hero-bg.jpg") center 35% / cover no-repeat;
  transform: scale(1.08);
  animation: heroKen 26s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.18) translate3d(-1.6%, -1.4%, 0); }
}
/* ~60% brand-green wash + directional scrim for headline legibility */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,9,0.55) 0%, rgba(8,10,9,0.35) 45%, rgba(8,10,9,0.9) 100%),
    linear-gradient(115deg, rgba(0,165,83,0.6) 0%, rgba(4,22,14,0.72) 42%, rgba(8,10,9,0.85) 100%);
}
.hero__glow {
  position: absolute;
  z-index: 1;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0,165,83,0.22) 0%, rgba(0,165,83,0.05) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
}
.hero__copy { max-width: 680px; }
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.tick {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-brt);
  box-shadow: 0 0 0 0 rgba(47,227,140,0.6);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(47,227,140,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(47,227,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,227,140,0); }
}

.hero__title {
  font-size: clamp(2.05rem, 1.1rem + 3.8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero__title .line { padding-bottom: 0.06em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
/* Hidden until the hero intro timeline animates them in */
.reveal-load { opacity: 0; }

.hero__title .accent {
  color: transparent;
  background: linear-gradient(120deg, var(--green-brt), var(--green) 60%, #0d8f4e);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__sub {
  color: var(--muted);
  max-width: 48ch;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.3rem);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero__dim {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 640px;
}
.hero__dim-line { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.hero__dim-line::before, .hero__dim-line::after {
  content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--line-2);
}
.hero__dim-line::before { left: 0; }
.hero__dim-line::after { right: 0; }
.hero__dim-label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* Primary conversion panel: the first meaningful action stays above the fold. */
.hero__form-wrap {
  padding: clamp(1.5rem, 2.5vw, 2.35rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(20,27,23,0.88), rgba(8,10,9,0.8));
  border: 1px solid rgba(47,227,140,0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 34px 90px -45px rgba(0,0,0,0.95);
  scroll-margin-top: 7rem;
}
.hero__form-kicker {
  margin-bottom: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-brt);
}
.hero__form-wrap h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.3rem);
  line-height: 1.08;
}
.hero__form-wrap > p:not(.hero__form-kicker) {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.6rem;
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-track {
  width: 1px; height: 44px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-thumb {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%; height: 40%;
  background: var(--green-brt);
  animation: scroll-drop 2s var(--ease-in-out) infinite;
}
@keyframes scroll-drop { to { top: 100%; } }

/* Floating 3D wireframe cubes */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__scene canvas { position: absolute; inset: 0; display: block; }
.cube {
  position: absolute;
  transform-style: preserve-3d;
  will-change: transform;
}
.cube--a { width: 120px; height: 120px; top: 20%; right: 12%; }
.cube--b { width: 74px; height: 74px; top: 62%; right: 24%; }
.cube--c { width: 168px; height: 168px; top: 30%; right: 32%; opacity: 0.5; }
.cube__f {
  position: absolute;
  width: 100%; height: 100%;
  border: 1px solid rgba(47,227,140,0.4);
  background: rgba(0,165,83,0.03);
}
.cube__f--front  { transform: translateZ(calc(var(--s, 60px))); }
.cube__f--back   { transform: rotateY(180deg) translateZ(var(--s, 60px)); }
.cube__f--right  { transform: rotateY(90deg) translateZ(var(--s, 60px)); }
.cube__f--left   { transform: rotateY(-90deg) translateZ(var(--s, 60px)); }
.cube__f--top    { transform: rotateX(90deg) translateZ(var(--s, 60px)); }
.cube__f--bottom { transform: rotateX(-90deg) translateZ(var(--s, 60px)); }
.cube--a .cube__f { --s: 60px; }
.cube--b .cube__f { --s: 37px; }
.cube--c .cube__f { --s: 84px; }

/* ============================================================
   SECTION 2 · ABOUT — stacking cards
============================================================ */
.about { position: relative; z-index: 2; }
.stack {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 6rem);
}
.stack__card {
  position: sticky;
  top: clamp(90px, 14vh, 140px);
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20,27,23,0.85), rgba(11,15,13,0.8));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.stack__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(0,165,83,0.14), transparent 55%);
  pointer-events: none;
}
.stack__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.stack__ref { color: var(--green-brt); }
.stack__idx { font-size: 1.1rem; color: var(--faint); }
.stack__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(1.8rem, 3.5vw, 3rem);
}
.stack__icon {
  width: clamp(72px, 12vw, 110px);
  height: clamp(72px, 12vw, 110px);
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(0,165,83,0.04);
  flex-shrink: 0;
}
.stack__icon svg { width: 66%; height: 66%; }
.stack__text h3 { font-size: var(--step-h3); margin-bottom: 0.7rem; }
.stack__text p { color: var(--muted); max-width: 52ch; }

/* Drawn-line SVG icons */
.draw {
  fill: none;
  stroke: var(--green-brt);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ============================================================
   SECTION 3 · SERVICES — horizontal roadmap
============================================================ */
.services { position: relative; z-index: 2; }
.road { position: relative; }
.road__viewport {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.road__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 0 max(var(--gutter), 8vw);
  will-change: transform;
}
.road__line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--line-2);
  z-index: 0;
}
.road__line-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-brt));
  box-shadow: 0 0 12px var(--green-brt);
}
.milestone {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(280px, 34vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.milestone__node {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--green-brt);
  background: var(--ink);
  position: relative;
  margin-left: clamp(1rem, 3vw, 2rem);
}
.milestone__node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green-brt);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.milestone.active .milestone__node::after { transform: scale(1); }
.milestone__card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20,27,23,0.8), rgba(11,15,13,0.75));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
}
.milestone__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(0,165,83,0.12), transparent 60%);
  pointer-events: none;
}
.milestone.active .milestone__card { border-color: rgba(47,227,140,0.4); }
.milestone__num {
  font-family: var(--f-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: 1rem; right: 1.4rem;
}
.milestone__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(0,165,83,0.04);
  margin-bottom: 1.4rem;
}
.milestone__icon svg { width: 60%; height: 60%; }
.milestone__card h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); margin-bottom: 0.7rem; }
.milestone__card p { color: var(--muted); font-size: 0.98rem; }
.road__hint {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 3rem;
}

/* ============================================================
   SECTION 4 · WHY — floating cards + counters
============================================================ */
.why { position: relative; z-index: 2; overflow: hidden; }
.why__glow {
  position: absolute;
  top: 20%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(0,165,83,0.14), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.why__stats {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.stat {
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--line-2);
  will-change: transform;
}
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 2rem + 4vw, 5.5rem);
  line-height: 1;
  color: transparent;
  background: linear-gradient(160deg, var(--paper), var(--green-brt));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.04em;
}
.stat__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-top: 0.8rem;
}
.stat__desc { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

.why__cards {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.adv {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s var(--ease);
}
.adv:hover { border-color: rgba(47,227,140,0.35); }
.adv h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.adv__mark {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--green-brt);
  box-shadow: 0 0 12px var(--green-brt);
  flex-shrink: 0;
}
.adv p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   CONTACT
============================================================ */
.contact { position: relative; z-index: 2; }
.contact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__title {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem);
  margin: 1.2rem 0;
}
.contact__lede { color: var(--muted); max-width: 40ch; }
.contact__info {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.contact__info li { display: flex; flex-direction: column; gap: 0.25rem; }
.contact__info-k {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact__info a, .contact__info li > span:last-child { font-size: 1.05rem; }
.contact__info a { transition: color 0.3s var(--ease); }
.contact__info a:hover { color: var(--green-brt); }
.contact__plan {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  max-width: 300px;
  opacity: 0.9;
}
.contact__plan .pulse { animation: plan-pulse 3s ease-in-out infinite; }
@keyframes plan-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Glass form */
.contact__form-wrap {
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, rgba(20,27,23,0.7), rgba(11,15,13,0.7));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -50px rgba(0,0,0,0.9);
}
.form { display: flex; flex-direction: column; gap: 1.6rem; }
.form--hero { gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form--hero .form__row { gap: 1.1rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 0.9rem 0 0.6rem;
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 1rem;
  resize: none;
}
.field textarea { min-height: 90px; }
.field label {
  position: absolute;
  left: 0; top: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), font-size 0.3s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-brt);
}
.field__line {
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--green-brt);
  transition: width 0.4s var(--ease);
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line { width: 100%; }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: #d9534f; }

.btn--submit {
  justify-content: center;
  background: var(--green);
  color: #04140b;
  font-weight: 700;
  padding: 1.15em 1.6em;
  margin-top: 0.5rem;
  overflow: hidden;
}
.btn--submit:hover { background: var(--green-brt); }
.btn--submit.loading { pointer-events: none; }
.btn--submit.loading .btn__label,
.btn--submit.loading svg { opacity: 0; }
.btn__spinner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(4,20,11,0.3);
  border-top-color: #04140b;
  border-radius: 50%;
  opacity: 0;
}
.btn--submit.loading .btn__spinner { opacity: 1; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  min-height: 1.2em;
  transition: color 0.3s;
}
.form__status.ok { color: var(--green-brt); }
.form__status.err { color: #ff6b6b; }

/* ============================================================
   SELECT DROPDOWNS — custom dark architectural styling
============================================================ */
.form__row--selects {
  margin-top: 0.15rem;
}

.field--select {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

.field--select .field__label {
  position: static !important;
  transform: none !important;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  pointer-events: auto;
  line-height: 1.2;
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  width: 100% !important;
  height: 44px !important;
  background: #0f1512 !important;
  background-color: #0f1512 !important;
  border: 1px solid rgba(140, 160, 148, 0.28) !important;
  border-radius: 8px !important;
  padding: 0 2.2rem 0 0.85rem !important;
  color: var(--paper) !important;
  font-family: var(--f-body) !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  outline: none !important;
  color-scheme: dark !important;
  box-shadow: none !important;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.select-wrap select:hover {
  border-color: rgba(47, 227, 140, 0.5) !important;
}

.select-wrap select:focus {
  border-color: var(--green-brt) !important;
  box-shadow: 0 0 0 2px rgba(47, 227, 140, 0.22) !important;
  background-color: #141c18 !important;
}

/* Placeholder color when no real option is chosen */
.select-wrap select.is-placeholder {
  color: #7a887e !important;
}

.select-wrap select option {
  background-color: #0c110f !important;
  color: #eef2ec !important;
  padding: 10px 14px;
}

.select-wrap select option[disabled] {
  color: #566058 !important;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-brt);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
}

.select-wrap:focus-within .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.select-wrap select:user-invalid {
  border-color: #d9534f !important;
}

/* ============================================================
   THANK-YOU SCREEN
============================================================ */
.thankyou {
  text-align: center;
  padding: 2rem 0 1rem;
}
.thankyou__icon {
  margin: 0 auto 1.5rem;
  width: 64px; height: 64px;
}
.thankyou__icon svg {
  animation: thankyouDraw 0.7s ease-out forwards;
}
@keyframes thankyouDraw {
  from { stroke-dasharray: 200; stroke-dashoffset: 200; }
  to   { stroke-dasharray: 200; stroke-dashoffset: 0; }
}
.thankyou h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  margin-bottom: 1rem;
}
.thankyou p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.thankyou__detail {
  font-size: 0.88rem;
  color: var(--faint);
  margin-top: 0.5rem;
}
.thankyou__back {
  margin-top: 1.8rem;
  display: inline-flex;
}

/* ============================================================
   FOOTER — full-height closing scene
============================================================ */
.footer {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #062415;
}
.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(50vw 70vw at 100% 100%, rgba(0,165,83,0.38), transparent 65%),
    radial-gradient(45vw 52vw at 0% 0%, rgba(47,227,140,0.12), transparent 72%),
    linear-gradient(125deg, #082d1a 0%, #051d11 52%, #03140b 100%);
  filter: blur(10px);
}
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  mask-image: linear-gradient(to top, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%);
}
.footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) var(--gutter) clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: center;
  gap: clamp(2rem, 9vw, 10rem);
  padding: clamp(3rem, 8vh, 6.5rem) 0 clamp(1.8rem, 4vh, 3.5rem);
}
.footer__eyebrow {
  font-family: var(--f-mono);
  font-size: clamp(0.64rem, 0.55rem + 0.25vw, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-brt);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.footer__cta h2 {
  font-size: clamp(3.4rem, 2rem + 5.8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.footer__cta h2 span { color: var(--green-brt); }
.footer__button {
  margin-top: clamp(1.8rem, 3vw, 3rem);
  background: var(--green-brt);
  color: #03140b;
  border: 1px solid var(--green-brt);
  font-weight: 700;
}
.footer__button:hover { background: transparent; color: var(--green-brt); }
.footer__side {
  padding-left: clamp(1.4rem, 4vw, 4rem);
  border-left: 1px solid rgba(238,242,236,0.2);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.footer__contact { display: flex; flex-direction: column; gap: 0.45rem; color: var(--muted); font-size: 0.95rem; }
.footer__contact a { color: var(--paper); transition: color 0.3s var(--ease); }
.footer__contact a:hover { color: var(--green-brt); }
.footer__label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.7rem;
}
.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--paper);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.footer__social a:hover { border-color: var(--green-brt); background: var(--green-brt); color: #04140b; }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(238,242,236,0.16);
}
.footer__base a { color: var(--muted); transition: color 0.3s var(--ease); }
.footer__base a:hover { color: var(--green-brt); }
.footer__wordmark {
  display: block;
  width: 100%;
  margin-top: clamp(1.6rem, 4vw, 3.5rem);
  font-family: var(--f-display);
  font-size: clamp(4rem, 11.6vw, 13.5rem);
  line-height: 0.72;
  letter-spacing: -0.1em;
  font-weight: 700;
  color: rgba(238,242,236,0.96);
  white-space: nowrap;
  transition: color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}
.footer__wordmark:hover { color: var(--green-brt); letter-spacing: -0.075em; }

/* ============================================================
   RÉALISATIONS — project gallery
============================================================ */
.work { position: relative; z-index: 2; }
.work__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3.5rem, 7vw, 6.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.work__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-brd);
  transform-style: preserve-3d;
  will-change: transform;
  background: var(--ink-2);
}
.work__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.82) brightness(0.8);
}
/* Green-brand tint + bottom scrim over the landscape */
.work__item::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(8,10,9,0.82) 100%),
    linear-gradient(125deg, rgba(0,165,83,0.20), transparent 55%);
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.work__item:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.work__item:hover::after { opacity: 0.45; }
.work__item figcaption {
  position: absolute; left: 0; bottom: 0;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.7rem);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.work__cat {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-brt);
}
.work__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
}

/* ============================================================
   CONTACT — landscape background + 60% brand-green overlay
============================================================ */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg::before {
  content: "";
  position: absolute; inset: 0;
  background: url("assets/proj-office.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.contact__bg::after {
  content: "";
  position: absolute; inset: 0;
  /* ~60% brand-green wash fading into deep ink for legibility */
  background: linear-gradient(130deg, rgba(0,165,83,0.6) 0%, rgba(4,22,14,0.78) 45%, rgba(8,10,9,0.94) 100%);
}
.contact__grid { position: relative; z-index: 1; }

/* ============================================================
   SCROLL REVEAL primitives
============================================================ */
[data-reveal], .section-title, [data-reveal-split] .rword {
  will-change: transform, opacity;
}
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal-split] .rword {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) rotate(4deg);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .btn--nav { display: none; }
  .nav__burger { display: block; }
  .why__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__content { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 2rem; }
}

@media (max-width: 860px) {
  .hero { align-items: flex-start; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__copy { max-width: 720px; }
  .hero__form-wrap { max-width: 640px; }
  .contact__grid { grid-template-columns: 1fr; }
  .why__cards { grid-template-columns: 1fr; }
  .stack__body { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer { min-height: 100svh; }
  .footer__main { grid-template-columns: 1fr; gap: 3rem; }
  .footer__side { padding-left: 0; padding-top: 2rem; border-left: 0; border-top: 1px solid rgba(238,242,236,0.2); }
  .work__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .why__stats { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__form-wrap { padding: 1.35rem; }
  .hero__dim-label { white-space: normal; }
  .cube--a, .cube--b { opacity: 0.6; }
  .hero__scroll { display: none; }
  .footer__topline { font-size: 0.55rem; }
  .footer__main { padding-top: 4rem; }
  .footer__cta h2 { font-size: clamp(3.2rem, 15vw, 5.2rem); }
  .footer__wordmark { font-size: clamp(3rem, 14vw, 5rem); letter-spacing: -0.09em; }
  .footer__base { font-size: 0.62rem; }
}

@media (min-width: 2200px) {
  :root { --maxw: 1720px; }
  body { font-size: 1.24rem; }
}

/* ============================================================
   MOTION SAFETY
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__title .word { transform: none !important; }
  .reveal-load { opacity: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal-split] .rword { opacity: 1 !important; transform: none !important; }
  .hero__scene, .hero__canvas { display: none; }
  .road__viewport { position: relative; height: auto; }
  .road__track { flex-wrap: wrap; transform: none !important; }
  .cursor, .cursor-dot { display: none; }
}
