/* ==========================================================================
   ENDPOINT — design system
   Monochrome, editorial, typographic. Grayscale only.
   ========================================================================== */

:root {
  --black: #000;
  --g-111: #111;
  --g-1a: #1a1a1a;
  --g-333: #333;
  --g-666: #666;
  --g-999: #999;
  --g-ccc: #ccc;
  --g-f5: #f5f5f5;
  --white: #fff;

  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--g-999);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .32);

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --fs-hero: clamp(4.25rem, 17.4vw, 24rem);
  --fs-d1: clamp(2.9rem, 7.6vw, 8.75rem);
  --fs-d3: clamp(1.6rem, 3.1vw, 3.25rem);
  --fs-body: clamp(1rem, .95rem + .2vw, 1.125rem);

  --pad: clamp(20px, 4.2vw, 72px);
  --header-h: 76px;
  --section-y: clamp(110px, 18vh, 220px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--white); color: var(--black); }

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

:focus { outline: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 3000;
  padding: 12px 18px; background: var(--white); color: var(--black);
  font-size: .875rem; font-weight: 500; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

main { position: relative; z-index: 2; }

.wrap {
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { position: relative; padding-block: var(--section-y); }

/* --------------------------------------------------------------------------
   Atmosphere layers
   -------------------------------------------------------------------------- */
.network {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.spotlight {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.075) 0%, rgba(255,255,255,.025) 32%, transparent 62%);
  opacity: 0; transition: opacity 1s;
  will-change: transform;
}
.has-cursor .spotlight { opacity: 1; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: var(--black);
  animation: preloader-failsafe .6s 6s forwards;
}
.preloader__inner { display: flex; align-items: center; width: min(300px, 56vw); }
.preloader__line { flex: 1; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; }
.preloader__dot { width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; background: var(--white); transform: scale(0); }
.preloader__word {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--g-999); opacity: 0;
}
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor { display: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 2500;
  pointer-events: none; mix-blend-mode: difference;
}
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot::before {
  content: ''; position: absolute; width: 6px; height: 6px; left: -3px; top: -3px;
  border-radius: 50%; background: var(--white);
  transition: transform .45s var(--ease-out), opacity .3s;
}
.cursor__ring::before {
  content: ''; position: absolute; width: 96px; height: 96px; left: -48px; top: -48px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  transform: scale(.12); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s, background-color .4s, border-color .4s;
}
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--black); white-space: nowrap; opacity: 0;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.cursor.is-link .cursor__ring::before { transform: scale(.5); opacity: 1; }
.cursor.is-link .cursor__dot::before { transform: scale(.6); }
.cursor.is-label .cursor__ring::before { transform: scale(1); opacity: 1; background: var(--white); border-color: var(--white); }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-label .cursor__dot::before { opacity: 0; }
.cursor.is-down .cursor__ring::before { transform: scale(.38); }
.cursor.is-label.is-down .cursor__ring::before { transform: scale(.86); }
.cursor.is-hidden { opacity: 0; }
.cursor { transition: opacity .3s; }

/* --------------------------------------------------------------------------
   Shared typography
   -------------------------------------------------------------------------- */
.label {
  font-family: var(--font-mono);
  font-size: .72rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; color: var(--muted);
}
.label--line { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.label--line::before { content: ''; order: -2; width: 44px; height: 1px; background: currentColor; opacity: .55; }
.label--line::after { content: ''; order: -1; width: 5px; height: 5px; margin-left: -12px; margin-right: 4px; border-radius: 50%; background: var(--fg); }

.display {
  font-size: var(--fs-d1);
  line-height: .94;
  letter-spacing: -.048em;
  font-weight: 500;
  max-width: 13ch;
  text-wrap: balance;
}
.display em { font-size: 1.07em; letter-spacing: -.035em; line-height: .8; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32ch);
  column-gap: 6vw; align-items: end;
  margin-bottom: clamp(56px, 9vw, 140px);
}
.section-head .label { grid-column: 1 / -1; }
.section-head__aside { color: var(--muted); font-size: 1.05rem; line-height: 1.55; padding-bottom: .6em; }

/* text roll (letters stacked via text-shadow; built by JS) */
.roll { position: relative; display: inline-flex; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll__c {
  display: inline-block; white-space: pre;
  text-shadow: 0 1.3em currentColor;
  transition: transform .6s var(--ease-out);
  transition-delay: calc(var(--i) * 14ms);
}
a:hover .roll__c, button:hover .roll__c, .roll-hover:hover .roll__c,
a:focus-visible .roll__c, button:focus-visible .roll__c { transform: translateY(-1.3em); }

/* split words — masks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; padding-right: .02em; }
.w__i { display: inline-block; will-change: transform; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__i { display: inline-block; }

/* initial states (only once animation engine is confirmed) */
.anim-ready [data-split] .w__i { transform: translateY(108%); }
.anim-ready [data-reveal] { opacity: 0; transform: translateY(34px); }
.anim-ready [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); }
.anim-ready .hero .char { transform: translateY(105%); }
.anim-ready .hero__tagline .line__i { transform: translateY(110%); }
.anim-ready .hero__meta > * { opacity: 0; }
.anim-ready .contact__title .line__i { transform: translateY(110%); }
.sw { transition: opacity .25s linear; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 58px; padding: 0 30px; border-radius: 100px;
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em;
  transition: color .5s var(--ease-out), border-color .5s;
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%);
  width: 260%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn--solid { background: var(--white); color: var(--black); border: 1px solid var(--white); }
.btn--solid::before { background: var(--black); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--white); }
.btn--ghost { color: var(--white); border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--black); border-color: var(--white); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .6s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--round { width: clamp(120px, 11vw, 156px); height: clamp(120px, 11vw, 156px); padding: 0; flex-direction: column; gap: 8px; font-size: 1.05rem; }
.btn--round .btn__arrow { transform: rotate(-45deg); }
.btn--round:hover .btn__arrow { transform: rotate(0); }

.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; }
.link-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .6s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }

/* --------------------------------------------------------------------------
   Header
/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 22px var(--pad);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding .35s var(--ease-out), background-color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease-out);
}
.header.is-scrolled {
  padding-block: 14px;
  background: rgba(6, 6, 6, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85);
}
.header.is-hidden { transform: translateY(-110%); }
.menu-open .header { transform: none; background: var(--black); border-bottom-color: var(--line); }

.brand {
  display: inline-flex; align-items: center; gap: 12px; margin-right: auto;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.brand__mark { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.brand__mark circle { fill: var(--white); stroke: none; transform-origin: 25px 16px; transition: transform .5s var(--ease-out); }
.brand__mark path { stroke-dasharray: 17; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out); }
.brand:hover .brand__mark path { animation: brand-line .8s var(--ease-out); }
.brand:hover .brand__mark circle { transform: scale(1.2); }
@keyframes brand-line { 0% { stroke-dashoffset: 17; } 100% { stroke-dashoffset: 0; } }
.brand__name { font-size: .95rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--white); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center;
  font-size: .88rem; font-weight: 450; color: rgba(255, 255, 255, 0.72);
  letter-spacing: -.01em; text-decoration: none; padding: 6px 2px;
  transition: color .25s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease-out); opacity: .8;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .84rem; font-weight: 500; color: var(--white);
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.header__cta:hover {
  background: var(--white); color: var(--black); border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 500; color: var(--white);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--white); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 8.5px; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 48px;
  padding: 120px var(--pad) 40px;
  background: var(--black);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2.4rem, 11vw, 5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05;
  transform: translateY(40px); opacity: 0;
  transition: transform .9s var(--ease-out), opacity .9s var(--ease-out);
}
.menu.is-open .menu__link { transform: none; opacity: 1; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: .25s; }
.menu__foot { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  padding: calc(var(--header-h) + clamp(12px, 1.8vh, 20px)) var(--pad) clamp(28px, 4vh, 48px);
}
.hero__meta {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(10px, 1.5vh, 18px);
  position: relative; z-index: 2;
}
.hero__meta-loc { display: inline-flex; align-items: center; gap: 12px; }
.sep { display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.hero__title {
  grid-column: 1 / -1;
  font-weight: inherit; will-change: transform;
  position: relative; z-index: 2;
}
.hero__word {
  display: flex; justify-content: space-between;
  font-size: var(--fs-hero); line-height: .82; letter-spacing: -.02em;
  font-weight: 600; font-variation-settings: 'wght' 600;
  overflow: hidden; padding-top: .07em; margin-inline: -.035em;
  user-select: none;
}
.char { display: inline-block; will-change: transform; }
.hero__tagline {
  display: block; margin-top: clamp(10px, 1.5vh, 20px);
  font-size: clamp(1.35rem, 2.8vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -.035em;
}
.hero__tagline em { font-size: 1.1em; letter-spacing: -.02em; }

.hero__foot {
  grid-column: 2 / 3;
  margin-top: clamp(20px, 3vh, 38px);
  max-width: 48ch;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vh, 24px);
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-left: auto;
}
.hero__desc {
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.55;
  color: var(--g-ccc);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.scroll-cue {
  position: absolute; left: var(--pad); right: auto; bottom: clamp(36px, 5vh, 56px);
  display: flex; align-items: center; gap: 14px;
}
.scroll-cue__track { position: relative; width: 64px; height: 1px; background: rgba(255,255,255,.25); overflow: visible; }
.scroll-cue__dot {
  position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--white);
  animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(57px); opacity: 1; } 100% { transform: translateX(57px); opacity: 0; } }

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.intro__title { margin-bottom: clamp(40px, 6vw, 80px); }
.intro__lede {
  max-width: 24ch; margin-left: auto;
  font-size: var(--fs-d3); line-height: 1.14; letter-spacing: -.03em; font-weight: 400;
}

.journey { margin-top: clamp(100px, 14vw, 200px); border-top: 1px solid var(--line); }
.journey__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(18px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 3.6vw, 4rem); letter-spacing: -.04em; line-height: 1; font-weight: 400;
}
.journey__from { color: var(--white); }
.journey__to { justify-self: end; color: var(--white); opacity: .2; font-family: var(--font-serif); font-style: italic; font-size: 1.08em; letter-spacing: -.02em; }
.journey__path { position: relative; height: 1px; }
.journey__path::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.1); }
.journey__line { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.journey__dot { position: absolute; inset: 0; transform: translateX(-100%); }
.journey__dot::after { content: ''; position: absolute; right: -5px; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,.08); }

.statement { margin-top: clamp(100px, 14vw, 200px); overflow: hidden; }
.statement__track {
  display: flex; align-items: center; gap: .28em; width: max-content;
  /* Sized so the full line (Idea → System → Experience → Endpoint●, ≈17.6em wide) fits inside the viewport between the side paddings */
  font-size: min(16rem, calc((100vw - 2 * var(--pad) - 20px) / 19)); line-height: 1; font-weight: 500; letter-spacing: -.055em;
  white-space: nowrap; padding-left: var(--pad); will-change: transform;
}
.statement__track svg { width: .62em; height: .2em; flex: none; fill: none; stroke: var(--g-666); stroke-width: 1.4; }
.statement__track .is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.statement__dot { width: .16em; height: .16em; border-radius: 50%; background: var(--white); flex: none; margin-left: -.05em; align-self: flex-end; margin-bottom: .2em; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services__list { border-top: 1px solid var(--line); }
.service { position: relative; border-bottom: 1px solid var(--line); isolation: isolate; }
.service::before {
  content: ''; position: absolute; inset: -1px 0 0; z-index: -1; background: var(--white);
  transform: scaleY(0); transform-origin: var(--origin, bottom);
  transition: transform .75s var(--ease-out);
}
.service__heading { font: inherit; }
.service__row {
  width: 100%;
  display: grid; grid-template-columns: clamp(36px, 3.6vw, 56px) minmax(0, 1fr) auto 28px;
  align-items: center; gap: clamp(16px, 3vw, 56px);
  padding: clamp(22px, 3vw, 44px) 0;
  transition: color .5s var(--ease-out), padding .75s var(--ease-out), opacity .5s;
}
.service__mark {
  width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.2;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: transform .75s var(--ease-out);
}
.service__mark * { stroke-dasharray: 1; }
.service__title {
  font-size: clamp(1.7rem, 4.4vw, 5rem); line-height: 1; letter-spacing: -.045em;
  font-weight: 500; font-variation-settings: 'wght' 500;
  transition: font-variation-settings .7s var(--ease-out), letter-spacing .7s var(--ease-out), transform .75s var(--ease-out);
}
.service__title .roll { line-height: 1.1; }
.service__title .roll__c { text-shadow: 0 1.1em currentColor; }
.service__tags { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .5s; }
.service__tags i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.service__arrow { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; transform: rotate(-45deg); transition: transform .75s var(--ease-out); }

.service__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease-out); color: var(--black); }
.service__body-i {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 54ch) auto; justify-content: space-between; gap: 32px;
  padding-left: calc(clamp(36px, 3.6vw, 56px) + clamp(16px, 3vw, 56px) + clamp(12px, 2vw, 32px));
  padding-right: clamp(12px, 2vw, 32px);
}
.service__body p { font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.5; padding-bottom: clamp(26px, 3vw, 44px); }
.service__body ul { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding-bottom: clamp(26px, 3vw, 44px); }
.service__body li::before { content: ''; display: inline-block; width: 14px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }

.service.is-open::before { transform: scaleY(1); }
.service.is-open .service__row { color: var(--black); padding-inline: clamp(12px, 2vw, 32px); }
.service.is-open .service__mark { transform: scale(1.22); }
.service.is-open .service__mark * { animation: draw 1.1s var(--ease-out) both; }
.service.is-open .service__title { font-variation-settings: 'wght' 300; letter-spacing: -.03em; }
.service.is-open .service__tags { color: var(--g-666); }
.service.is-open .service__arrow { transform: rotate(0); }
.service.is-open .service__body { grid-template-rows: 1fr; }
.services__list.has-open .service:not(.is-open) .service__row { opacity: .32; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   Intelligence
   -------------------------------------------------------------------------- */
.ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); row-gap: clamp(48px, 6vw, 80px); align-items: start; }
.ai__lede { margin-top: clamp(28px, 4vw, 48px); max-width: 44ch; color: var(--g-ccc); font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.5; }
/* Full-width capabilities grid: spans the whole section, equal-height rows, column dividers, closing rule and sequence numbers */
.ai__list { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; column-gap: 0; border-bottom: 1px solid var(--line); counter-reset: ai-item; }
.ai__list li { position: relative; padding: 22px 0 24px; border-top: 1px solid var(--line); counter-increment: ai-item; }
.ai__list li::after { content: counter(ai-item, decimal-leading-zero); position: absolute; top: 26px; right: 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--g-666); transition: color .4s; }
.ai__list li:hover::after { color: var(--white); }
.ai__list strong { display: block; padding-right: 2.6em; font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; transition: transform .6s var(--ease-out); }
.ai__list span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.45; transition: color .4s; }
.ai__list li::before { content: ''; position: absolute; left: 0; top: 29px; width: 5px; height: 5px; border-radius: 50%; background: var(--white); transform: scale(0); transition: transform .5s var(--ease-out); }
.ai__list li:hover strong { transform: translateX(16px); }
.ai__list li:hover::before { transform: scale(1); }
.ai__list li:hover span { color: var(--g-ccc); }

/* Desktop: 4 columns × 2 rows (01–04 / 05–08) */
@media (min-width: 1024px) {
  .ai__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ai__list li { padding: 26px 28px 30px; border-left: 1px solid var(--line); }
  .ai__list li:nth-child(4n+1) { padding-left: 0; border-left: 0; }
  .ai__list li:nth-child(4n) { padding-right: 0; }
  .ai__list li::before { left: 28px; top: 33px; }
  .ai__list li:nth-child(4n+1)::before { left: 0; }
  .ai__list li::after { right: 28px; top: 30px; }
  .ai__list li:nth-child(4n)::after { right: 0; }
}
/* Tablet: 2 columns × 4 rows */
@media (min-width: 721px) and (max-width: 1023px) {
  .ai__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai__list li { padding: 22px 28px 24px; border-left: 1px solid var(--line); }
  .ai__list li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .ai__list li:nth-child(2n) { padding-right: 0; }
  .ai__list li::before { left: 28px; }
  .ai__list li:nth-child(2n+1)::before { left: 0; }
  .ai__list li::after { right: 28px; }
  .ai__list li:nth-child(2n)::after { right: 0; }
}

.ai__visual { position: relative; align-self: end; margin: 0; }
.agent { width: 100%; aspect-ratio: 1; transform-style: preserve-3d; transition: transform 1.2s var(--ease-out); }
.agent svg { width: 100%; height: 100%; overflow: visible; }

/* Agent loop panel: Observe → Reason → Act → Verify, cycled by visuals.js */
.agent-trace { display: block; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
.agent-trace__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g-666);
}
.agent-trace__live { display: inline-flex; align-items: center; gap: 8px; }
.agent-trace__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: agent-live 2s ease-in-out infinite; }
.agent-trace__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: agent-step; }
.agent-trace__steps li {
  counter-increment: agent-step; padding-top: 12px; border-top: 2px solid rgba(255,255,255,.12);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g-666);
  transition: border-color .5s var(--ease-out), color .5s;
}
.agent-trace__steps li::before { content: counter(agent-step, decimal-leading-zero) ' '; color: var(--g-333); transition: color .5s; }
.agent-trace__steps li.is-done { border-top-color: rgba(255,255,255,.35); color: var(--g-999); }
.agent-trace__steps li.is-on { border-top-color: var(--white); color: var(--white); }
.agent-trace__steps li.is-on::before { color: var(--g-999); }
.agent-trace__line { display: flex; align-items: baseline; gap: 16px; margin: 22px 0 0; min-height: 3.4em; transition: opacity .35s; }
.agent-trace__line.is-changing { opacity: 0; }
.agent-trace__step { flex: none; min-width: 8ch; text-transform: uppercase; letter-spacing: .14em; color: var(--white); }
.agent-trace__text { color: var(--muted); }
@keyframes agent-live { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* agent svg parts */
.ag-orbit { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.ag-loop { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1; }
.ag-link { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; stroke-dasharray: 3 6; animation: dash 3s linear infinite; }
.ag-link.is-on { stroke: rgba(255,255,255,.7); }
.ag-ext circle { fill: var(--black); stroke: rgba(255,255,255,.4); stroke-width: 1; }
.ag-ext text { fill: var(--g-666); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ag-station circle.ag-st-ring { fill: none; stroke: rgba(255,255,255,.15); transform-box: fill-box; transform-origin: center; transition: transform .8s var(--ease-out), stroke .5s; }
.ag-station circle.ag-st-core { fill: var(--black); stroke: var(--white); stroke-width: 1.2; transition: fill .5s; }
.ag-station text { fill: var(--g-999); font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: fill .5s; }
.ag-station.is-on circle.ag-st-core { fill: var(--white); }
.ag-station.is-on circle.ag-st-ring { transform: scale(1.6); stroke: rgba(255,255,255,.4); }
.ag-station.is-on text { fill: var(--white); }
.ag-core-ring { fill: none; stroke: rgba(255,255,255,.25); transform-box: fill-box; transform-origin: center; animation: core-pulse 3.2s var(--ease-out) infinite; }
.ag-core-ring:nth-of-type(2) { animation-delay: 1.6s; }
.ag-core { fill: var(--white); }
.ag-core-label { fill: var(--black); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.ag-pulse { fill: var(--white); }
.ag-trail { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; }
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes core-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */
.work { padding-bottom: calc(var(--section-y) * .5); transition: background-color 1s var(--ease-out); }
.work__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 100px); }
.project {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-block: 12vh;
  opacity: .24; transition: opacity .9s var(--ease-out);
}
.project.is-active { opacity: 1; }
.project__title { margin: .3em 0 .25em; font-size: clamp(2.8rem, 5.8vw, 6.6rem); line-height: .94; letter-spacing: -.05em; font-weight: 500; }
.project__line { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.45rem, 2.1vw, 2.2rem); line-height: 1.15; color: var(--g-ccc); }
.project__desc { margin-top: 22px; max-width: 46ch; color: var(--muted); line-height: 1.6; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.project__tags li { padding: 7px 13px; border: 1px solid var(--line); font-size: .8rem; color: var(--g-ccc); transition: background-color .4s, color .4s, border-color .4s; }
.project__tags li:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.project__meta { display: grid; grid-template-columns: auto 1fr; gap: 36px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.project__meta dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--g-666); }
.project__meta dd { margin-top: 6px; font-size: .92rem; color: var(--g-ccc); }
.project__visual { display: none; }

.work__stage { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
/* Outlined project name sits above the frame (in flow) instead of overlapping it */
.stage__ghost {
  position: relative; margin: 0 0 14px -.04em;
  font-size: clamp(3.4rem, 7vw, 8.5rem); font-weight: 600; letter-spacing: -.06em; line-height: .9;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16);
  white-space: nowrap; pointer-events: none; overflow: hidden;
}
.stage__slots { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 58vh; border: 1px solid var(--line-strong); background: #050505; overflow: hidden; }
.stage__slots .project__visual {
  display: block; position: absolute; inset: 0; margin: 0; border: 0;
  clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out);
}
.stage__slots .project__visual.is-shown { clip-path: inset(0 0 0 0); z-index: 1; }
.stage__slots .project__visual.is-leaving { clip-path: inset(0 0 100% 0); }
.stage__index { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; }
.stage__index button { position: relative; font-size: .82rem; color: var(--g-666); padding: 6px 0; transition: color .4s; }
.stage__index button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.stage__index button:hover { color: var(--g-ccc); }
.stage__index button.is-active { color: var(--white); }
.stage__index button.is-active::after { transform: scaleX(1); }
.stage__progress { position: relative; height: 1px; margin-top: 14px; background: rgba(255,255,255,.1); }
.stage__progress i { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }

/* project visuals (svg) */
.pv { width: 100%; height: 100%; }
.pv text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: var(--g-666); }
.pv .t-hi { fill: var(--white); }
.pv .s-faint { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.pv .s-soft { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.pv .s-mid { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1; }
.pv .s-hi { fill: none; stroke: var(--white); stroke-width: 1.4; }
.pv .f-hi { fill: var(--white); }
.pv .f-bg { fill: var(--black); }
.pv .bead { fill: var(--black); stroke: rgba(255,255,255,.4); stroke-width: 1; transition: fill .35s, stroke .35s; }
.pv .bead.is-on { fill: var(--white); stroke: var(--white); }
.pv .shop rect { fill: var(--black); stroke: rgba(255,255,255,.45); transition: fill .5s, stroke .5s; }
.pv .shop.is-on rect { fill: var(--white); stroke: var(--white); }
.pv .shop text { transition: fill .5s; }
.pv .shop.is-on text { fill: var(--white); }
.pv .trade circle { fill: var(--black); stroke: rgba(255,255,255,.45); transition: fill .5s, stroke .5s; }
.pv .trade.is-on circle { fill: var(--white); stroke: var(--white); }
.pv .trade text { transition: fill .5s; }
.pv .trade.is-on text { fill: var(--white); }
.pv .cell { fill: var(--white); transition: opacity .6s; }
.pv .lb-row { transition: transform 1s var(--ease-out); }
.pv .lb-bar { fill: var(--white); transform-box: fill-box; transform-origin: left; transition: transform 1.1s var(--ease-out); }
.pv .step { transition: fill .4s; }
.pv .step.is-on { fill: var(--white); }
.pv .route { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv .spin-slow { transform-box: view-box; transform-origin: 400px 300px; animation: spin 80s linear infinite; }
.pv .spin-rev { transform-box: view-box; transform-origin: 400px 300px; animation: spin 120s linear infinite reverse; }
.project__visual:not(.is-active) .spin-slow, .project__visual:not(.is-active) .spin-rev { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Technology ecosystem
   -------------------------------------------------------------------------- */

/* ── brand accent colours (vivid / glowing) ── */
[data-id="flutter"]    { --accent: #45D1FD; }
[data-id="dart"]       { --accent: #00B4FC; }
[data-id="react"]      { --accent: #61DAFB; }
[data-id="nextjs"]     { --accent: #ffffff; }
[data-id="nodejs"]     { --accent: #68D94E; }
[data-id="dotnet"]     { --accent: #825EEF; }
[data-id="php"]        { --accent: #8892D6; }
[data-id="supabase"]   { --accent: #3FE89D; }
[data-id="firebase"]   { --accent: #FFCB2B; }
[data-id="postgresql"] { --accent: #5B8DEF; }
[data-id="mysql"]      { --accent: #5CA6D0; }
[data-id="ai"]         { --accent: #FF7B6E; }
[data-id="llms"]       { --accent: #B79FFF; }
[data-id="agents"]     { --accent: #4AE8A8; }
[data-id="automation"] { --accent: #FFB836; }
[data-id="cloud"]      { --accent: #56CCFC; }
[data-id="apis"]       { --accent: #FFA34D; }
[data-id="scalable"]   { --accent: #7FFFCB; }

.eco { position: relative; }
.eco__lines { display: none; }
.eco__groups {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px; align-items: start;
}
.eco__heading {
  margin-bottom: 12px; font-family: var(--font-mono); font-size: .66rem;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--g-666); padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.eco__group ul { display: flex; flex-direction: column; gap: 4px; }
.eco__group li { display: flex; }
.eco__node {
  --_accent: var(--accent, var(--g-666));
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 14px; border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px; background: rgba(255,255,255,.025);
  font-size: .88rem; color: var(--g-ccc); white-space: nowrap;
  transition: color .3s, opacity .3s, border-color .3s, background-color .3s, box-shadow .3s, transform .3s var(--ease-out);
}
.eco__node:hover {
  color: var(--white); border-color: var(--_accent);
  background: color-mix(in srgb, var(--_accent) 8%, transparent);
  box-shadow: 0 0 22px -3px color-mix(in srgb, var(--_accent) 40%, transparent);
  transform: translateY(-1px);
}

/* icon container */
.eco__node .eco__icon {
  width: 18px; height: 18px; flex: none;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--_accent) 55%, transparent))
          brightness(1.15) saturate(1.3);
  transition: filter .3s;
}
.eco__node .eco__icon svg { width: 100%; height: 100%; }
.eco__node:hover .eco__icon {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--_accent) 80%, transparent))
          brightness(1.35) saturate(1.5);
}

/* coloured dot */
.eco__node::before {
  content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%;
  background: var(--_accent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--_accent) 50%, transparent);
  transition: transform .4s var(--ease-out), box-shadow .3s;
}
.eco__node:hover::before,
.eco__node.is-hot::before {
  transform: scale(1.4);
  box-shadow: 0 0 12px color-mix(in srgb, var(--_accent) 75%, transparent);
}
.eco__node.is-hot, .eco__node:focus-visible {
  color: var(--white); border-color: var(--_accent);
  background: color-mix(in srgb, var(--_accent) 10%, transparent);
  box-shadow: 0 0 28px -3px color-mix(in srgb, var(--_accent) 45%, transparent);
}
.eco__node.is-linked {
  color: var(--white); border-color: color-mix(in srgb, var(--_accent) 45%, transparent);
  background: color-mix(in srgb, var(--_accent) 5%, transparent);
}
.eco__node.is-linked::before { box-shadow: 0 0 10px color-mix(in srgb, var(--_accent) 65%, transparent); }
.eco__node.is-dim { opacity: .18; }
.eco__detail { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 44ch; }
.eco__detail-name { margin-top: 10px; font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1; font-weight: 500; }
.eco__detail-desc { margin-top: 12px; color: var(--muted); }

/* graph mode (desktop, set by JS) */
.eco.is-graph { height: clamp(600px, 82vh, 860px); }
.eco.is-graph .eco__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco.is-graph .eco__groups { display: block; position: absolute; inset: 0 var(--pad); }
.eco.is-graph .eco__group, .eco.is-graph .eco__group ul { display: contents; }
.eco.is-graph .eco__group li { display: contents; }
.eco.is-graph .eco__group li, .eco.is-graph .eco__heading { position: absolute; left: 0; top: 0; margin: 0; will-change: transform; }
.eco.is-graph .eco__heading { color: var(--g-333); white-space: nowrap; }
.eco.is-graph .eco__node {
  width: auto; padding: 8px 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: clamp(1rem, 1.35vw, 1.4rem); letter-spacing: -.02em; color: var(--g-999);
}
.eco.is-graph .eco__node:hover { background: transparent; box-shadow: none; transform: none; }
.eco.is-graph .eco__node .eco__icon { display: none; }
.eco.is-graph .eco__node::before { box-shadow: none; }
.eco.is-graph .eco__node.is-hot,
.eco.is-graph .eco__node.is-linked { color: var(--white); }
.eco.is-graph .eco__detail { position: absolute; right: var(--pad); bottom: 0; margin: 0; width: min(36ch, 30%); }
.eco__lines line { stroke: rgba(255,255,255,.1); stroke-width: 1; transition: stroke .4s, opacity .4s; }
.eco__lines line.is-hot { stroke: rgba(255,255,255,.85); stroke-dasharray: 4 5; animation: dash 1.6s linear infinite; }
.eco__lines line.is-dim { opacity: .3; }

/* responsive */
@media (max-width: 1023px) { .eco__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 599px)  { .eco__groups { grid-template-columns: 1fr; gap: 20px 0; } }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process { position: relative; z-index: 2; }
.process__pin {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(40px, 6vh, 72px); padding-block: 12vh; overflow: hidden;
  --bg-glow: 0.03;
  background: radial-gradient(ellipse 80% 50% at 50% 60%, rgba(255,255,255,var(--bg-glow)) 0%, transparent 70%);
}
.process__rail {
  position: relative; margin-inline: var(--pad); height: 1px;
  background: rgba(255,255,255,.18);
}
.process__rail-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.9), var(--white));
  transform: scaleX(0); transform-origin: left;
}
.process__rail-dot {
  position: absolute; top: -5px; left: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 0 12px 2px rgba(255,255,255,.25), 0 0 0 7px rgba(255,255,255,.08);
  transform: translateX(-50%);
}
.process__track { display: flex; gap: clamp(36px, 4.5vw, 88px); width: max-content; padding-inline: var(--pad); will-change: transform; }

.stage-card { flex: none; width: clamp(290px, 29vw, 470px); opacity: .45; transition: opacity .8s var(--ease-out); }
.stage-card.is-active { opacity: 1; }

.stage-card__glyph {
  width: 120px; height: 80px; margin-bottom: clamp(28px, 4vh, 48px);
  fill: var(--white);
  filter: drop-shadow(0 0 12px rgba(255,255,255,.15));
}
.stage-card__glyph .stroke { fill: none; stroke: var(--white); stroke-width: 1.2; }

.stage-card__title {
  font-size: clamp(2.6rem, 4.8vw, 5.4rem); line-height: 1;
  letter-spacing: -.05em; font-weight: 500; color: var(--white);
}

.stage-card__line {
  margin-top: 12px; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.3rem, 1.8vw, 1.85rem); line-height: 1.15;
  color: rgba(255,255,255,.72);
}

.stage-card__text {
  margin-top: 20px; color: rgba(255,255,255,.55); max-width: 40ch;
  line-height: 1.55; font-size: .95rem;
}

.stage-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}

.stage-card--end { width: auto; display: flex; align-items: center; padding-right: 12vw; opacity: 1; }
.stage-card__end {
  position: relative; font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 600; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--white);
  filter: drop-shadow(0 0 20px rgba(255,255,255,.1));
}
.stage-card__end i { display: inline-block; width: .16em; height: .16em; margin-left: .05em; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px 2px rgba(255,255,255,.2); }

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.story__title { max-width: 17ch; }
.story__grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 120px); margin-top: clamp(72px, 10vw, 160px);
}
.story__facts dl > div {
  padding: 22px 0 24px; border-top: 1px solid rgba(255,255,255,.1);
  transition: border-color .3s, background-color .3s;
}
.story__facts dl > div:hover {
  border-top-color: rgba(255,255,255,.3);
  background-color: rgba(255,255,255,.015);
}
.story__facts dt {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.story__facts dd {
  margin-top: 10px; font-size: 1.1rem; line-height: 1.5; color: rgba(255,255,255,.9);
}
.story__body { display: flex; flex-direction: column; gap: 32px; }
.story__body p {
  max-width: 58ch; color: rgba(255,255,255,.7);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.65;
}
.story__body .story__lead {
  max-width: 28ch; margin-bottom: 24px;
  font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.15; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.75));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Vision / mission — light inversion
   -------------------------------------------------------------------------- */
.vm { position: relative; z-index: 3; }
.vm__panel {
  --fg: var(--black); --muted: var(--g-666); --line: rgba(0,0,0,.14);
  background: var(--g-f5); color: var(--black);
  padding-block: clamp(130px, 22vh, 260px);
  clip-path: inset(var(--inset-y, 0px) var(--inset-x, 0px) round var(--inset-r, 0px));
}
.vm__grid { display: grid; gap: clamp(100px, 16vh, 200px); }
.vm__block { max-width: 1200px; }
.vm__block--mission { justify-self: end; max-width: 1100px; }
.vm__block h2 { color: var(--g-666); }
.vm__text { font-size: clamp(1.9rem, 4vw, 4.4rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 400; }
.vm__text--xl { font-size: clamp(2.6rem, 6.6vw, 7.6rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; }

/* --------------------------------------------------------------------------
   Statistics (dynamic)
   -------------------------------------------------------------------------- */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { padding: 28px 24px 32px 0; border-top: 1px solid var(--line); }
.stat__value { display: block; font-size: clamp(3.4rem, 7vw, 8rem); line-height: 1; letter-spacing: -.05em; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------------
   Presence
   -------------------------------------------------------------------------- */
.presence__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.presence__lede { margin-top: clamp(26px, 3.5vw, 40px); max-width: 42ch; color: var(--g-ccc); font-size: clamp(1.05rem, 1.3vw, 1.3rem); }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: clamp(48px, 6vw, 80px); }
.location { padding-top: 20px; border-top: 1px solid var(--line); }
.location__city { margin-top: 14px; font-size: clamp(1.6rem, 2.6vw, 2.75rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.location__region { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.location__time { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: var(--g-ccc); }
.location__time span:last-child { color: var(--g-666); text-transform: uppercase; font-size: .68rem; letter-spacing: .14em; }
.location__pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.location__pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--white); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.presence__globe { position: relative; aspect-ratio: 1; width: 100%; }
.presence__globe canvas { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Team (dynamic)
   -------------------------------------------------------------------------- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 28px; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--g-111); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter 1s; }
.member:hover .member__photo img { transform: scale(1.07); filter: grayscale(.4); }
.member__name { margin-top: 18px; font-size: 1.35rem; letter-spacing: -.03em; font-weight: 500; }
.member__role { margin-top: 4px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.member__bio { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.member__links { display: flex; gap: 16px; margin-top: 14px; font-size: .85rem; }
.member__links a { border-bottom: 1px solid var(--line-strong); }

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */
.careers__block { margin-bottom: clamp(56px, 8vw, 110px); }
.careers__sub { margin-bottom: 24px; font-family: var(--font-mono); font-size: .72rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.jobs { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }
.job summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 24px; align-items: center; padding: 28px 0; }
.job summary::-webkit-details-marker { display: none; }
.job__title { font-size: clamp(1.4rem, 2.6vw, 2.6rem); letter-spacing: -.04em; font-weight: 500; line-height: 1.05; }
.job__meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: right; }
.job__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding: 0 0 36px; color: var(--g-ccc); }
.job__body h4 { margin-bottom: 10px; font-family: var(--font-mono); font-size: .68rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--g-666); }
.job__body li { padding: 4px 0; }
.careers__open { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-top: 36px; border-top: 1px solid var(--line); }
.careers__open p { max-width: 46ch; color: var(--g-ccc); font-size: clamp(1.05rem, 1.4vw, 1.35rem); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); }
.faq__head { align-self: start; position: sticky; top: 16vh; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: clamp(1.2rem, 1.9vw, 1.85rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 400; transition: transform .6s var(--ease-out); }
.qa summary:hover h3 { transform: translateX(10px); }
.qa__icon { position: relative; width: 18px; height: 18px; flex: none; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .6s var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { max-width: 60ch; padding-bottom: 30px; color: var(--muted); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { padding-bottom: calc(var(--section-y) * .7); }
.contact__title { margin-bottom: clamp(60px, 8vw, 100px); font-size: clamp(3.4rem, 10vw, 12rem); line-height: .9; letter-spacing: -.055em; font-weight: 500; }
.contact__title em { font-size: 1.05em; letter-spacing: -.04em; }

.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(60px, 6vw, 80px); }

.contact__info { display: flex; flex-direction: row; flex-wrap: wrap; gap: 40px 80px; align-items: center; }

.contact__channels { display: flex; flex-direction: column; flex: 1; min-width: 280px; }
.contact__channels:empty { display: none; }
.contact__channels li { border-top: 1px solid rgba(255,255,255,.08); }
.contact__channels a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; transition: opacity .3s; }
.contact__channels a:hover { opacity: .7; }
.contact__channels .label { flex: none; color: rgba(255,255,255,.5); margin: 0; }
.contact__channels .roll { font-size: 1.1rem; color: var(--white); }

.contact__places { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.contact__places .label { margin: 0; padding-right: 16px; border-right: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,.5); }
.contact__places p:not(.label) {
  margin: 0; padding: 10px 22px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; font-size: .95rem; color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; gap: 10px;
  transition: all .3s;
}
.contact__places p:not(.label):hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: var(--white); }
.contact__places p:not(.label)::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 10px #10b981; opacity: 0.8;
}
.contact__places p[hidden] { display: none !important; }

/* Structured Premium Form */
.form { 
  display: flex; flex-direction: column; gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field input, .field textarea, .field select {
  display: block; width: 100%; padding: 26px 20px 10px; 
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; 
  background: rgba(0,0,0,0.25);
  color: var(--white); font: inherit; font-size: 1.05rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.field select option {
  background-color: #0a0a0a; color: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}
.field label { 
  position: absolute; left: 20px; top: 18px; 
  color: rgba(255,255,255,.4); font-size: 1.05rem; 
  pointer-events: none; transition: transform .3s var(--ease-out), color .3s; 
  transform-origin: left top;
}
.field label small { margin-left: 6px; font-family: var(--font-mono); font-size: .62em; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { 
  transform: translateY(-8px) scale(.75); color: rgba(255,255,255,0.7); 
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ef4444; }
.field__err { position: absolute; right: 20px; top: 18px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #ef4444; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); transition: background-color 9999s; }

/* Enhanced Project Type Chips */
.chips { 
  margin: 10px 0; padding: 24px 20px 20px; 
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; 
  background: rgba(0,0,0,0.15); 
  display: flex; flex-wrap: wrap; gap: 10px; 
}
.chips legend { 
  padding: 0 8px; margin-bottom: -4px;
  font-family: var(--font-mono); font-size: .7rem; 
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); 
}
.chips.is-invalid legend::after { content: ' — choose one'; color: #ef4444; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.chip span { 
  display: inline-block; padding: 10px 18px; 
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; 
  font-size: .9rem; color: rgba(255,255,255,.7); background: rgba(255,255,255,0.03); 
  transition: all .3s; 
}
.chip:hover span { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: var(--white); }
.chip input:checked + span { 
  background: var(--white); color: var(--black); 
  border-color: var(--white); font-weight: 500; 
  box-shadow: 0 0 15px rgba(255,255,255,0.15); 
}
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.form__status { max-width: 40ch; font-size: .95rem; color: rgba(255,255,255,.7); min-height: 1.5em; }
.form__status small { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.form.is-sending .btn { pointer-events: none; opacity: .6; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; z-index: 2; padding-top: clamp(100px, 14vw, 200px); border-top: 1px solid rgba(255,255,255,0.06); overflow: hidden; background: #050505; }
.footer__top { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr; gap: clamp(40px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 100px); }
.footer__name { font-size: 1.1rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--white); }
.footer__tag { margin-top: 16px; font-size: clamp(1.6rem, 2.5vw, 2.8rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.2; color: rgba(255,255,255,0.6); max-width: 14ch; }
.footer__tag em { color: var(--white); font-style: italic; }

.footer__col .label { margin-bottom: 24px; color: rgba(255,255,255,.4); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
.footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.footer__col li { padding: 0; }
.footer__col a, .footer__col address { display: inline-block; color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.5; transition: color .3s, transform .3s cubic-bezier(0.16, 1, 0.3, 1); }
.footer__col a:hover { color: var(--white); transform: translateX(6px); }

#footer-social, #contact-social-list { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
#footer-social li, #contact-social-list li { padding: 0; list-style: none; }
#footer-social a, #contact-social-list a { 
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; 
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; 
  background: rgba(255,255,255,0.02); 
  color: rgba(255,255,255,.6); 
  transition: all .5s cubic-bezier(0.16, 1, 0.3, 1); 
  position: relative; overflow: hidden;
}
#footer-social a::before, #contact-social-list a::before {
  content: ''; position: absolute; inset: 0;
  background: var(--white); opacity: 0; transform: scale(0.5);
  transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%; z-index: 0;
}
#footer-social a svg, #contact-social-list a svg { width: 19px; height: 19px; position: relative; z-index: 1; transition: color .3s; }
#footer-social a:hover, #contact-social-list a:hover { 
  border-color: transparent; 
  transform: translateY(-5px); 
  box-shadow: 0 10px 24px rgba(255,255,255,0.15); 
}
#footer-social a:hover::before, #contact-social-list a:hover::before { opacity: 1; transform: scale(1); }
#footer-social a:hover svg, #contact-social-list a:hover svg { color: var(--black); }
.contact__social-wrap { margin-top: 32px; }

.footer__mark { 
  position: relative; margin-top: clamp(40px, 6vw, 100px); line-height: .74; overflow: hidden; user-select: none; 
  display: flex; justify-content: center;
  font-size: 22.4vw; font-weight: 700; letter-spacing: -.04em;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), #fff 0, #444 15%, #111 35%, #050505 65%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(14%); padding-bottom: 20px;
}
.footer__mark span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer__mark span:hover {
  transform: scale(1.15) translateY(-4%);
}

.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; border-top: 1px solid rgba(255,255,255,0.08); font-size: .9rem; color: rgba(255,255,255,0.5); }
.footer__bottom ul { display: flex; flex-direction: row; gap: 32px; }
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: var(--white); transform: none; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal { position: relative; z-index: 2; padding: calc(var(--header-h) + 12vh) 0 var(--section-y); }
.legal .display { max-width: 12ch; margin-bottom: clamp(48px, 7vw, 96px); }
.legal__body { max-width: 68ch; margin-left: auto; color: var(--g-ccc); }
.legal__body h2 { margin: 48px 0 14px; font-size: 1.45rem; letter-spacing: -.03em; font-weight: 500; color: var(--white); }
.legal__body p, .legal__body li { margin-bottom: 14px; line-height: 1.65; }
.legal__body ul { padding-left: 18px; list-style: disc; }
.legal__body a { border-bottom: 1px solid var(--line-strong); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .service__tags { display: none; }
  .service__row { grid-template-columns: clamp(36px, 3.6vw, 56px) minmax(0, 1fr) 28px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .section-head { grid-template-columns: 1fr; row-gap: 28px; }
  .ai__grid, .presence__grid, .faq__grid, .contact__grid, .story__grid { grid-template-columns: 1fr; }
  .ai__visual { position: relative; top: 0; max-width: 620px; }
  .faq__head { position: static; }
  .work__grid { grid-template-columns: 1fr; }
  .work__stage { display: none; }
  .project { min-height: 0; opacity: 1; padding-block: 0 clamp(80px, 12vw, 120px); }
  .project__visual { display: block; order: -1; aspect-ratio: 4 / 3; margin-bottom: 32px; border: 1px solid var(--line); background: rgba(0,0,0,.5); }
  .presence__globe { max-width: 560px; margin-inline: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; margin-bottom: 24px; }
}

@media (max-width: 900px) {
  .process__pin { min-height: 0; overflow: visible; }
  .process__rail { display: none; }
  .process__track { flex-direction: column; width: auto; gap: 0; }
  .stage-card { width: 100%; opacity: 1; padding: 40px 0 44px 28px; border-left: 1px solid var(--line); position: relative; }
  .stage-card::before { content: ''; position: absolute; left: -5px; top: 48px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
  .stage-card__glyph { margin-bottom: 22px; width: 96px; height: 64px; }
  .stage-card--end { display: none; }
}

@media (max-width: 720px) {
  :root { --section-y: 96px; }
  .header { padding: 14px var(--pad); }
  .header.is-scrolled { padding-block: 10px; }
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 96px;
    min-height: 100svh;
  }
  .hero__foot { margin-top: 12px; max-width: none; margin-left: 0; align-self: flex-start; }
  .hero__meta-loc { display: none; }
  .hero__word { font-size: 18.2vw; }
  .scroll-cue { right: auto; left: var(--pad); bottom: 32px; }
  .btn { height: 54px; padding: 0 24px; }
  .journey__row { grid-template-columns: 1fr 1fr; row-gap: 14px; font-size: 1.6rem; }
  .journey__path { grid-column: 1 / -1; grid-row: 2; }
  .ai__list { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .service__body-i { grid-template-columns: 1fr; gap: 0; padding-left: clamp(12px, 2vw, 32px); }
  .locations { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column-reverse; align-items: flex-start; }
  .eco__groups { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 24px 32px; }
  .footer__bottom ul { flex-wrap: wrap; gap: 16px; }
  .menu__foot { flex-direction: column; gap: 4px; }
}

@media (hover: none) {
  .ai__list li:hover strong { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* --------------------------------------------------------------------------
   Projects Visibility (HIDDEN BY DEFAULT)
   -------------------------------------------------------------------------- */
#work,
#nav-work-li,
#menu-work,
#hero-cta-secondary,
#footer-work-li {
  display: none !important;
}

/* Shown ONLY when .show-projects class is enabled on <html> */
html.show-projects #work {
  display: block !important;
}
html.show-projects #nav-work-li {
  display: list-item !important;
}
html.show-projects #menu-work {
  display: block !important;
}
html.show-projects #hero-cta-secondary {
  display: inline-flex !important;
}
html.show-projects #footer-work-li {
  display: list-item !important;
}

/* Secret Admin Floating Switch (Only visible when activated via ?admin or shortcut) */
.project-toggle-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  animation: ptwFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

@keyframes ptwFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ptw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.ptw-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-999);
}

.ptw-close {
  background: transparent;
  border: none;
  color: var(--g-999);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.ptw-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ptw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 2px;
}

.ptw-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
}

.ptw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399; /* Green for visible */
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.ptw-dot.is-hidden {
  background: #f87171; /* Coral red for hidden */
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
}

/* Switch Toggle Button */
.ptw-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
  padding: 2px;
  flex-shrink: 0;
}

.ptw-switch.is-active {
  background: #fff;
  border-color: #fff;
}

.ptw-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ptw-switch.is-active .ptw-knob {
  transform: translateX(24px);
  background: #000;
}

.ptw-help {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.ptw-help strong {
  color: #fff;
}

.ptw-help code {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

