:root {
  /* Ember, dark face: the page surface. Sections opt into the light face with
     `.band-light`; nothing blends between the two. These are also the values a
     no-JS visitor keeps (JS only rewrites them when the scheme changes). */
  --bg: #0a1729;
  --ink: #e8eaf0;
  --dim: #a7adbb;
  --line: rgba(232, 234, 240, 0.14);
  --line-strong: rgba(232, 234, 240, 0.36);
  --panel: #12233a;
  --accent: #ef8a3d;
  --pink: #ef8a3d;
  --accent-2: #f0b27c;

  /* Ember, light face: the hero, and any section marked `.band-light`. */
  --l-bg: #ffffff;
  --l-ink: #10141b;
  --l-dim: #5f6675;
  --l-line: rgba(16, 20, 27, 0.14);
  --l-line-strong: rgba(16, 20, 27, 0.36);
  --l-panel: #f6f5f0;
  --l-accent: #a94a12;
  --l-accent-2: #7a3208;
  --l-pink: #a94a12;
  --l-ghost: rgba(16, 20, 27, 0.42);
  --l-guide: rgba(16, 20, 27, 0.06);

  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-2-soft: color-mix(in srgb, var(--accent-2) 12%, transparent);
  --ghost: rgba(232, 234, 240, 0.42);
  --guide: rgba(232, 234, 240, 0.06);
  /* Blueprint sheet: one pattern definition, resolved per element so band-light
     contexts pick up their own --guide colour. Fixed attachment keeps every
     band aligned to a single viewport origin instead of phasing at seams. */
  --sheet-grid:
    repeating-linear-gradient(to right, var(--guide) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, var(--guide) 0 1px, transparent 1px 34px);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-serif: "Fraunces", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.5rem, 4.5vw, 5rem);
  --max-w: 1480px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.6);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, 0.7);
  --focus-ring: 2px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;
  /* type scale */
  --step--2: clamp(0.6rem, 0.7vw, 0.72rem);
  --step--1: clamp(0.75rem, 0.85vw, 0.88rem);
  --step-0: clamp(0.95rem, 1.05vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.25vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.65vw, 1.8rem);
  --step-3: clamp(1.9rem, 2.2vw, 2.6rem);
  --step-4: clamp(2.5rem, 3.2vw, 4rem);
  --step-5: clamp(3.4rem, 4.8vw, 5.8rem);
  --step-6: clamp(4.6rem, 6.8vw, 8.4rem);
  --step-7: clamp(6rem, 9.5vw, 13rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background-color: var(--bg); overflow-x: clip; }

body {
  background-color: transparent;
  /* the blueprint sheet, one origin across the whole site */
  background-image: var(--sheet-grid);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
i, em { font-style: normal; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.noscript {
  max-width: 1440px; margin: 0 auto;
  padding: 7rem var(--pad) 2rem;
  position: relative; z-index: 2;
}
.noscript h2 { font-family: var(--font-display); font-weight: 500; font-size: 2rem; margin-bottom: 1rem; }
.noscript p { color: var(--dim); max-width: 60ch; margin-bottom: 1rem; }
.noscript ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; color: var(--dim); }
.noscript a { color: var(--accent); text-decoration: underline; }

.mono { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; }
.mono-dim { color: var(--dim); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.05em; letter-spacing: 0; text-transform: none; }
.bracket { color: var(--accent-2); }

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 300;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  transform: translateY(-300%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* ---------- static dressing ---------- */

.noise {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html:not(.js) .noise { display: none; }

.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.preloader__ring { width: 72px; height: 72px; transform: rotate(-90deg); }
.preloader__ring circle { animation: preloader-draw 1.2s ease-in-out infinite; }
@keyframes preloader-draw {
  0% { stroke-dashoffset: 276; stroke-dasharray: 0 276; }
  50% { stroke-dashoffset: 0; stroke-dasharray: 138 276; }
  100% { stroke-dashoffset: -276; stroke-dasharray: 0 276; }
}
.preloader__text { font-size: var(--step-0); letter-spacing: 0.12em; }
.preloader__milestones { display: flex; gap: 1.5rem; font-size: var(--step--2); color: var(--dim); }
.preloader__milestones span::before { content: "▸ "; color: var(--accent); margin-right: 0.3rem; }
.preloader__milestones span.is-done::before { content: "✓ "; }
@media (prefers-reduced-motion: reduce) {
  .preloader__ring circle { animation: none; stroke-dashoffset: 0; stroke-dasharray: 276; }
  .preloader { transition-duration: 0.01ms; }
}

.cursor { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; }
.cursor__dot {
  display: block; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  opacity: 0.8;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.3s;
}
@media (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor { display: none; } }

.guides {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: 1440px; margin: 0 auto; padding: 0 var(--pad);
}
.guides span { border-left: 1px solid var(--guide); height: 100%; }
.guides span:last-child { border-right: 1px solid var(--guide); }
html:not(.js) .guides { display: none; }

.hero__grain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
html:not(.js) .hero__grain { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__grain { display: none; } }

.mask { display: block; overflow: hidden; padding-top: 0.1em; margin-top: -0.1em; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.mask--indent { margin-left: clamp(2rem, 10vw, 9rem); }

/* ---------- light / dark bands ---------- */

/* Sections paint a solid face and cut hard against their neighbours - nothing
   blends. `.band-light` flips the whole token set, so every component inside
   (rules, panels, accents, schematic strokes) follows without knowing about it. */
.band-light,
.nav:not(.is-solid) {
  --bg: var(--l-bg);
  --ink: var(--l-ink);
  --dim: var(--l-dim);
  --line: var(--l-line);
  --line-strong: var(--l-line-strong);
  --panel: var(--l-panel);
  --accent: var(--l-accent);
  --accent-2: var(--l-accent-2);
  --pink: var(--l-pink);
  --ghost: var(--l-ghost);
  --guide: var(--l-guide);
  /* Same sheet, resolved with the band's own colours: custom-property chains
     substitute at the declaring element, so the root copy would paint the
     dark guide invisibly over the light band. */
  --sheet-grid:
    repeating-linear-gradient(to right, var(--guide) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, var(--guide) 0 1px, transparent 1px 34px);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-2-soft: color-mix(in srgb, var(--accent-2) 12%, transparent);
}
/* The nav floats over the hero, which is always white, until it goes solid. */
.nav:not(.is-solid) { background: transparent; }

/* Band colour is painted twice: on the section, and on a full-bleed pseudo so
   the colour reaches the window edges on wide screens. The pseudo sits at
   z-index -1, which is why the base colour lives on `html` and body is clear. */
.band-light { position: relative; background-color: var(--bg); background-image: var(--sheet-grid); background-attachment: fixed; color: var(--ink); }
.band-light::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background-color: var(--bg);
  background-image: var(--sheet-grid);
  background-attachment: fixed;
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 3vw, 3rem);
  min-height: calc(76px + env(safe-area-inset-top, 0px));
  padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--pad) 0.95rem;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: radial-gradient(52% 120% at 50% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 78%);
  opacity: 0; transition: opacity 0.5s var(--ease-out); pointer-events: none;
}
.nav.is-solid::after { opacity: 1; }
.nav.is-solid { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-color: var(--line); }
html:not(.js) .nav { transition: none; }
/* Without JS the nav can never go solid, so give it a bar of its own. */
html:not(.js) .nav { background: var(--l-bg); }

.nav__brand { display: flex; align-items: center; }
.nav__logo-img { width: 150px; height: 75px; object-fit: contain; }
.nav__links { display: flex; gap: 0.1rem; justify-content: center; flex: 1; margin: 0 2rem; }
.nav__links a {
  font-family: var(--font-mono); font-size: calc(var(--step--2) + 3px); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); position: relative;
  padding: 0.5rem 0.7rem; border-radius: 999px; border: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}
.nav__links a:hover, .nav__links a:focus-visible {
  color: var(--ink); border-color: var(--line-strong);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 60%; left: 20%; }
.nav__links a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav__links a.is-active::after { display: none; }

.nav__right { display: flex; align-items: center; gap: 1.15rem; }
.nav__cta { padding: 0.62rem 1.35rem; }

.nav__burger { display: none; justify-self: end; align-items: center; flex-direction: column; gap: 6px; padding: 0.6rem 0.2rem; }
.nav__burger i { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease-out), opacity 0.25s; }
.nav__burger i:nth-child(2) { width: 15px; align-self: flex-start; }
.nav__burger.is-open i:first-child { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open i:nth-child(2) { opacity: 0; transform: scaleX(0.1); }
.nav__burger.is-open i:last-child { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1rem, 4vh, 2.5rem);
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; }

.menu nav { display: flex; flex-direction: column; }
.menu a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.75rem, 9vw, 3rem); line-height: 1.08; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s;
}
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: 0.04s; }
.menu.is-open nav a:nth-child(2) { transition-delay: 0.08s; }
.menu.is-open nav a:nth-child(3) { transition-delay: 0.12s; }
.menu.is-open nav a:nth-child(4) { transition-delay: 0.16s; }
.menu.is-open nav a:nth-child(5) { transition-delay: 0.20s; }
.menu.is-open nav a:nth-child(6) { transition-delay: 0.24s; }
.menu a:hover, .menu a:focus-visible { color: var(--accent); }
.menu a sup { color: var(--accent); font-size: 0.55rem; letter-spacing: 0.1em; }
.menu__note { margin-top: 0.5rem; color: var(--dim); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__right { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
}

@media (min-width: 901px) {
  .menu { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
}
.btn span { position: relative; z-index: 2; transition: color 0.35s var(--ease-out); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.4s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover span, .btn--solid:focus-visible span { color: var(--bg); }
.btn--solid.is-dark { background: var(--accent); color: #fff; }
.btn--outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--outline::before { background: var(--accent); }
.btn--outline:hover span, .btn--outline:focus-visible span { color: var(--bg); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- scaffolding ---------- */

main { position: relative; z-index: 1; }
.section { max-width: var(--max-w); margin: 0 auto; padding: clamp(7rem, 16vh, 13rem) var(--pad) 0; }
.section__head { display: flex; flex-direction: column; gap: 1.6rem; margin-bottom: clamp(3.5rem, 8vh, 6rem); }
.section__label {
  color: var(--ink); display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section__label .bracket { color: var(--accent); font-weight: 600; }
.section__label .bracket + .bracket { margin-left: -0.25em; }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 7.2vw, 6.4rem); line-height: 1.0; letter-spacing: -0.04em;
  display: flex; flex-direction: column;
}
.section__title .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.04em; line-height: 1; color: var(--accent);
}
.section__sub { color: var(--dim); max-width: 52ch; font-size: var(--step-1); }
.tick {
  display: inline-block; width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; align-self: center; flex: none;
}

/* ---------- hero ---------- */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}
.hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hero__rule { height: 1px; background: var(--line); margin: 0 var(--pad); }
html:not(.js) .hero__scrollcue i::after { animation: none; }

/* ---------- hero capabilities (scroll-driven reveal) ---------- */

/* ---------- clients statement ---------- */

.clients {
  max-width: none; margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--pad) clamp(5rem, 11vh, 8rem);
  position: relative;
}
.clients::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--accent);
}
.clients__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 7rem); line-height: 1.0; letter-spacing: -0.04em;
  text-align: center; padding: 0;
  overflow-wrap: break-word; hyphens: auto;
  color: #0a1729;
}
.clients__title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}

/* ---------- process steps ---------- */

.steps { display: flex; flex-direction: column; }
.process { overflow-x: clip; }
.process__chrome {
  font-size: var(--step--2); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.step {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(2rem, 4.5vh, 3.2rem) 0;
  border-top: 1px solid var(--line);
}
.step:last-of-type { border-bottom: 1px solid var(--line); }
.step__no {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.6rem, 11vw, 5.2rem); line-height: 0.85; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.4px var(--ghost);
  transition: color 0.8s var(--ease-out), -webkit-text-stroke-color 0.8s var(--ease-out);
}
.step.is-active .step__no, .step.is-hit .step__no {
  -webkit-text-stroke-color: var(--accent); color: var(--accent);
}
.step__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.05;
}
.step__kicker {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.1rem, 3.6vw, 1.35rem); color: var(--dim); margin-top: 0.5rem;
}
.step__body { color: var(--dim); max-width: 46ch; line-height: 1.65; font-size: var(--step-1); }
.step__outcome {
  max-width: 52ch; margin-top: 0.9rem; padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--ink); line-height: 1.55; font-size: var(--step-1);
}
.step__outcome-label {
  display: block; font-family: var(--font-mono);
  font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.3rem;
}
.step__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
}
.step__meta span { position: relative; }
.step__meta span + span::before { content: "·"; position: absolute; left: -0.9em; color: var(--accent); }

.process__ui { display: none; }
.process__progress {
  display: block; position: relative; flex: 1 1 auto; max-width: 22rem; height: 1px;
  background: var(--line); overflow: hidden;
}
.process__progress i {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* pillar nav — keyboard equivalent of the scrubbed sequence */
.process__nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
}
.process__navbtn {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  padding: 0.5rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  color: var(--dim); background: transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.process__navbtn span { color: var(--ghost); transition: color 0.25s; }
.process__navbtn:hover, .process__navbtn:focus-visible { color: var(--ink); border-color: var(--line-strong); }
.process__navbtn.is-active { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.process__navbtn.is-active span { color: var(--accent); }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .process__stage { min-height: 100svh; display: grid; align-content: center; position: relative; }
  .process__chrome { position: absolute; top: clamp(1.2rem, 3.5vh, 2.4rem); left: 0; margin: 0; }
  .steps { display: grid; }
  .step {
    grid-area: 1 / 1; border: none; padding: 0;
    display: grid; align-items: start;
    grid-template-columns: clamp(9rem, 15vw, 15rem) 1fr clamp(8.5rem, 12vw, 13rem);
    gap: clamp(1.6rem, 3.4vw, 3.4rem);
    min-height: clamp(18rem, 40vh, 27rem);
    transform-origin: 18% 50%; will-change: transform, opacity;
  }
  .step:not(.is-active) { visibility: hidden; opacity: 0; }
  .step__no { font-size: clamp(5rem, 9vw, 8.2rem); line-height: 0.8; }
  .step__title { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }
  .step__kicker { font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
  .step__body { font-size: var(--step-0); margin-top: 0.4rem; }
  .step__outcome { font-size: var(--step--1); }
  .step__meta {
    flex-direction: column; align-items: flex-end; text-align: right; gap: 0;
    padding-top: 0.55rem; border-top: 1px solid var(--line);
  }
  .step__meta span + span::before { content: none; }
  .step__meta span { padding-top: 0.5rem; }
  .process__ui {
    display: flex; align-items: center; gap: 1.6rem; margin-top: 2.8rem;
  }
  .process__hint { letter-spacing: 0.18em; text-transform: uppercase; }
  .process__nav { margin-top: 1.6rem; }
}

@media (max-width: 900px) {
  .step__meta { padding-top: 0.8rem; border-top: 1px solid var(--line); max-width: 30rem; }
  .steps {
    flex-direction: row; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 1rem; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    margin-bottom: 1.4rem;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 min(86vw, 30rem); scroll-snap-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 1.4rem 1.4rem 1.6rem; background: var(--panel);
  }
  .step:last-of-type { border-bottom: 1px solid var(--line); }
  .process__nav { flex-wrap: nowrap; justify-content: center; overflow: visible; padding-bottom: 0; }
  .process__navbtn {
    width: 2.2rem; height: 2.2rem; padding: 0; flex: none;
    justify-content: center; font-size: 0;
  }
  .process__navbtn span { font-size: var(--step--2); }
}

/* ---------- core map (method section) ---------- */

.core-map {
  position: relative; overflow: clip; isolation: isolate;
  aspect-ratio: 480 / 320; contain: paint; border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 18%, var(--bg));
  touch-action: pan-y;
}
.core-map__svg {
  width: 100%; height: 100%; display: block;
}
.core-map .trace { will-change: stroke-dashoffset, opacity; }
.core-map .packet { will-change: r, opacity; }
.core-map .node rect { transition: stroke 0.3s var(--ease-out), fill 0.3s var(--ease-out); }
.core-map .node.is-lit rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.core-map .led { will-change: r, opacity; }
.core-map .strip { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .core-map .trace, .core-map .packet, .core-map .led { will-change: auto; }
}

/* ---------- method ---------- */

.method__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.method__copy .section__label { margin-bottom: 1.4rem; }
.method__hint { color: var(--dim); padding-block: 1.4rem 0.4rem; }
.method__copy .section__sub { margin-top: 1.2rem; }
.method__fig {
  margin: 0;
  position: sticky;
  top: 6rem;
}
.method__fig figcaption { padding: 0.8rem 0.2rem 0; }

.core-map__legend {
  display: flex; flex-direction: column; gap: 0.1rem;
  margin-top: clamp(1.2rem, 3vh, 2rem);
  border-top: 1px solid var(--line);
}
.core-map__legend-item {
  position: relative;
  display: grid; grid-template-columns: 14px 1fr auto; align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding: 0.85rem 0.6rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-out);
}
.core-map__legend-item:hover, .core-map__legend-item.is-active { background: var(--panel); }
.core-map__legend-key {
  width: 14px; height: 14px; align-self: center;
  border: 1px solid var(--line-strong); border-radius: 3px;
}
.core-map__legend-key--accent { border-color: var(--accent); background: var(--accent-soft); }
.core-map__legend-item b {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
}
.core-map__legend-item .mono { color: var(--accent); font-size: var(--step--2); }
.core-map__legend-item p {
  grid-column: 2 / -1; color: var(--dim); font-size: var(--step-0); line-height: 1.55; margin-top: 0.15rem;
}
@media (max-width: 900px) {
  .method__grid { grid-template-columns: 1fr; }
}

/* ---------- dark zone ---------- */

.dark-zone { position: relative; }

/* ---------- services (horizontal) ---------- */

.services__head-wrap { padding-bottom: clamp(1rem, 2.6vh, 1.75rem); }
/* The catalogue follows immediately; the header's default 6rem gap would be the
   dead band the section is trying to lose. */
.services__head-wrap .section__head { margin-bottom: 0; }

/* #services is a normal block section. */
#services {
  display: block;
}
.services__viewport {
  overflow: clip;
}

/* Wrapper for the horizontal gallery — set inline by JS. */
.horiz-gallery-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Full-width horizontal strip: 2-up on desktop (pinned scroll), 1-up on mobile (native scroll).
   Desktop: GSAP ScrollTrigger pins the section and drives track.scrollLeft.
   Mobile: native horizontal scroll with snap points. */
.services__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0 clamp(1rem, 3vw, 2rem);
  width: max-content;
}
.service { flex: none; width: clamp(20rem, 32vw, 28rem); }

@media (max-width: 900px) {
  .services__viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
  }
  .services__viewport::-webkit-scrollbar { height: 6px; }
  .services__viewport::-webkit-scrollbar-thumb {
    background: var(--accent-soft); border-radius: 3px;
  }
  .services__track {
    padding-left: var(--pad); padding-right: var(--pad);
  }
  .service { width: min(84vw, 24rem); scroll-snap-align: center; }
  .services__ui {
    position: static; margin-top: 1.6rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .services__progress { display: none; }
  .services__ui .mono { min-width: 0; }
}

.service {
  position: relative; width: clamp(20rem, 32vw, 28rem); flex: none;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: clamp(2.2rem, 3vw, 3rem);
  min-height: clamp(22rem, 44vh, 26rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  overflow: hidden;
}
.service.is-active { border-color: var(--accent); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 12%, transparent); }
/* Dim the neighbours, never enough to hurt reading: the active card is already
   marked by its border, shadow and top rule. */
.service:not(.is-active) { opacity: 0.88; transform: scale(0.98); }
.service.is-active { opacity: 1; transform: scale(1); }
.service:hover, .service:focus-within { border-color: var(--accent); transform: translateY(-3px); }
.service::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.service:hover::after, .service:focus-within::after { transform: scaleX(1); }
.ghost-num {
  position: absolute; top: 0.6rem; right: 1.1rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4.5rem, 8vw, 7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--guide);
  transition: -webkit-text-stroke-color 0.5s var(--ease-out);
  pointer-events: none;
}
.service:hover .ghost-num, .service:focus-within .ghost-num { -webkit-text-stroke-color: var(--accent-soft); }
.service section { display: flex; flex-direction: column; gap: 1rem; }
.service__no { color: var(--accent); font-size: var(--step--2); letter-spacing: 0.12em; }
.service__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -0.02em;
}
.service__link { display: inline-block; position: relative; }
.service__link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.service__link:hover, .service__link:focus-visible { color: var(--accent); }
.service__body { color: var(--dim); font-size: var(--step-1); line-height: 1.6; }
.service__deliverable {
  margin-top: 0.35rem; padding-left: 0.9rem;
  border-left: 1px solid var(--line-strong);
  color: var(--ink); font-size: 0.88rem; line-height: 1.55;
}
.service__deliverable-label {
  display: block; font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.25rem;
}
.service__tags { color: var(--dim); padding-top: 1rem; border-top: 1px solid var(--line); }

.services__ui {
  position: absolute; bottom: 1.8rem; left: var(--pad); right: var(--pad);
  display: flex; align-items: center; gap: 1.4rem;
}
.services__ui .mono { color: var(--dim); min-width: 6rem; }
.services__progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.services__progress i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.services__nav { display: flex; gap: 0.5rem; }
.services__navbtn {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); font-size: 1rem; line-height: 1;
  transition: border-color 0.25s, color 0.25s, background 0.25s, opacity 0.25s;
}
.services__navbtn:hover:not(:disabled), .services__navbtn:focus-visible:not(:disabled) {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.services__navbtn:disabled { opacity: 0.3; cursor: not-allowed; }

@media (min-width: 901px) {
  /* No pin: the catalogue is a strip the visitor drives. A pinned stage held
     the cards at the top of the window and left half a screen of dead page
     below them for the length of the scrub. */
  .services__viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 5.4rem;
    /* A thin visible rail: the strip is desktop-only and the only way to know
       it scrolls was the nav buttons. Scrollbar hidden is the round-12 default. */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
  }
  .services__viewport::-webkit-scrollbar { height: 6px; }
  .services__viewport::-webkit-scrollbar-thumb {
    background: var(--accent-soft); border-radius: 3px;
  }
  .service { scroll-snap-align: start; }
}

/* ---------- SAP + core diagram ---------- */

.sap { padding-top: clamp(3rem, 7vh, 5rem); }
.sap__cols { display: grid; grid-template-columns: minmax(0, 46ch) minmax(0, 40ch); gap: clamp(2rem, 6vw, 6rem); margin-top: 2.5rem; }
.sap__lead { color: var(--dim); font-size: 1.05rem; }
.sap__areas { display: flex; flex-direction: column; gap: 1.5rem; }
.sap__list { display: flex; flex-direction: column; gap: 1.1rem; color: var(--ink); font-size: 1.05rem; }
.sap__list li { display: flex; gap: 1rem; align-items: baseline; text-transform: none; letter-spacing: 0.04em; }
.sap__list i { width: 14px; height: 1px; background: var(--accent); flex: none; align-self: center; }

/* ---------- ALM lifecycle rail ---------- */

.alm {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}
.alm__stage {
  background: var(--bg); padding: 1.2rem 1.1rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: background 0.35s var(--ease-out);
}
.alm__stage:hover { background: var(--panel); }
.alm__no { color: var(--accent); }
.alm__stage h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.alm__stage p { color: var(--dim); font-size: 0.85rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .alm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .alm { grid-template-columns: 1fr; }
}

.sap__foot { display: grid; grid-template-columns: minmax(0, 46ch) minmax(0, 40ch); align-items: center; margin-top: 3rem; }
.sap__foot .btn { justify-self: start; }

@media (max-width: 900px) {
  .sap__cols, .sap__foot { grid-template-columns: 1fr; }
}

.sap__rule { height: 1px; background: var(--line); position: relative; max-width: var(--max-w); }
.sap__rule i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- advisory rows ---------- */

.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(4rem, 8vw, 7rem) minmax(0, 1fr) minmax(0, 1.35fr) auto auto;
  align-items: baseline; gap: 1.4rem 2rem;
  padding: clamp(1.6rem, 3.4vh, 2.4rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease-out), padding-left 0.4s var(--ease-out);
}
.row__no { color: var(--ghost); transition: color 0.4s var(--ease-out); }
.row h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -0.02em;
}
.row__text { color: var(--dim); font-size: var(--step-1); line-height: 1.65; max-width: 46ch; }
.row__tags { color: var(--dim); white-space: nowrap; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.row__link { display: inline-flex; align-items: center; color: inherit; }
.row__link::after { content: ""; position: absolute; inset: 0; }
.row__arrow {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1;
  color: var(--accent); opacity: 0; transform: translateX(-16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.row:hover, .row:focus-within { background: var(--panel); padding-left: 1.4rem; }
.row:hover .row__no, .row:focus-within .row__no { color: var(--accent); }
.row:hover .row__arrow, .row:focus-within .row__arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 1000px) {
  .row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row__text { grid-column: 2 / -1; grid-row: 2; }
  .row__tags { grid-column: 2 / -1; grid-row: 3; white-space: normal; }
}

/* ---------- offerings (what we provide) ---------- */

.offerings { padding-bottom: clamp(7rem, 16vh, 12rem); }

.offerings__list {
  display: flex; flex-direction: column; gap: 0.8rem;
}

.offerings__item {
  display: grid;
  grid-template-columns: clamp(4rem, 8vw, 7rem) minmax(0, 1fr);
  align-items: baseline; gap: 1.4rem 2rem;
  padding: clamp(1.4rem, 3vh, 2rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease-out), padding-left 0.4s var(--ease-out);
}

.offerings__item:hover, .offerings__item:focus-within { background: var(--panel); padding-left: 1.4rem; }

.offerings__no { color: var(--accent); font-size: var(--step--2); letter-spacing: 0.12em; grid-column: 1; grid-row: 1 / span 2; }

.offerings__title {
  grid-column: 2;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
}

.offerings__sub {
  grid-column: 2;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  margin-top: 0.4rem; color: var(--dim);
  font-size: var(--step-1); letter-spacing: 0.02em;
}
.offerings__line {
  grid-column: 2;
  margin-top: 0.3rem; color: var(--dim);
  font-size: var(--step-1); line-height: 1.5; letter-spacing: 0.02em;
}

.offerings__sub li {
  position: relative; list-style: none;
}

.offerings__tier-cta {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  display: flex; justify-content: center;
}
.offerings__tier-cta .btn { font-size: var(--step--1); letter-spacing: 0.08em; }

.offerings__sub li + li::before {
  content: "·"; position: absolute; left: -1.1em; color: var(--accent);
}

@media (max-width: 1000px) {
  .offerings__item { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---------- SAP CTA ---------- */

.sap__cta { margin-top: 2rem; }

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(7rem, 16vh, 12rem); }
.contact__link { display: flex; flex-direction: column; gap: 0.2rem; width: fit-content; max-width: 100%; }
.contact__line { display: block; width: max-content; max-width: 100%; }
.contact__words {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 10.4vw, 9.6rem); line-height: 1.0; letter-spacing: -0.04em;
  display: block;
}
.contact__words .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.04em; color: var(--accent);
}
.contact__words .arrow { color: var(--accent); display: inline-block; transition: transform 0.45s var(--ease-out); }
.contact__link:hover .arrow, .contact__link:focus-visible .arrow { transform: translateX(0.18em); }

.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  align-items: start;
}

/* ---------- contact form ---------- */

.cform { display: flex; flex-direction: column; gap: 1.1rem; }
.cform[hidden] { display: none; }
.cform__intro { color: var(--dim); max-width: 46ch; font-size: var(--step-0); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e76' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 10px 6px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--accent);
}
.field__error { color: var(--accent); font-size: var(--step-0); }
.field__error:empty { display: none; }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.7rem; flex-wrap: wrap; }
.field--check input { width: auto; margin-top: 0.2rem; accent-color: var(--accent); }
.field--check label { text-transform: none; letter-spacing: 0.02em; font-size: var(--step-0); color: var(--ink); }
.field--check .field__error { flex-basis: 100%; }

.cform__summary {
  color: var(--accent); font-size: var(--step-0);
  border: 1px solid var(--accent); border-radius: var(--radius-md);
  padding: 0.8rem 1rem; background: var(--accent-soft);
}
.cform__summary[hidden] { display: none; }
.cform__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.3rem; }
.cform__alt { color: var(--dim); font-size: var(--step-0); text-decoration: underline; text-underline-offset: 3px; }
.cform__alt:hover, .cform__alt:focus-visible { color: var(--accent); }
.cform__note { color: var(--dim); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; }
.cform__success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
  border: 1px solid var(--accent); border-radius: var(--radius-md);
  background: var(--accent-soft); padding: clamp(1.4rem, 3vw, 2.2rem);
}
.cform__success[hidden] { display: none; }
.cform__success h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em;
}
.cform__success p { color: var(--dim); max-width: 46ch; }

.contact__details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact__mail {
  color: var(--ink); font-size: var(--step-0); text-transform: none; letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.contact__mail:hover, .contact__mail:focus-visible { color: var(--accent); }
.contact__list { display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.contact__list > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; }
.contact__list dt { color: var(--dim); font-size: var(--step--2); }
.contact__list dd { color: var(--ink); font-size: var(--step-0); text-transform: none; letter-spacing: 0.02em; }
.contact__list a:hover, .contact__list a:focus-visible { color: var(--accent); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .cform__row { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.footer { position: relative; z-index: 1; overflow: hidden; }
.footer__tag { display: flex; align-items: center; gap: 1rem; }
.footer__tag::before {
  content: ""; width: 40px; height: 1px; background: var(--accent);
}
.footer__meta {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) var(--pad) 2.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  color: var(--dim);
  border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vh, 6rem);
  position: relative;
}
.footer__meta::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: radial-gradient(58% 130% at 50% 50%, color-mix(in srgb, var(--accent) 48%, transparent), transparent 80%);
  pointer-events: none;
}
.footer__top { color: var(--dim); transition: color 0.3s; }
.footer__top:hover, .footer__top:focus-visible { color: var(--accent); }

/* ---------- JS-core/lights-off fallback ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---------- Kinetic hero (replaces the old hero layout) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* clear the fixed nav on short viewports instead of running under it */
  padding: calc(104px + clamp(1rem, 3.4vw, 3rem)) clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero .section__label {
  color: var(--accent);
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}
.hero .btn { margin-top: clamp(1.6rem, 3vh, 2.4rem); }
.hero .schematic { max-width: 1100px; }
.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 8.05vw, 6.6rem);
  line-height: 0.92; letter-spacing: -0.02em;
  display: flex; flex-direction: column;
}
.title__mask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.title__line { display: block; will-change: transform; color: var(--ink); }
.title__line .pink { color: var(--pink); }
.title .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.02em; line-height: 1; color: var(--ink); }
.title .hover-pink { color: var(--ink); }
.title .hover-pink:hover { color: var(--pink); }

@media (prefers-reduced-motion: reduce) {
  .hero__glow { transition: none !important; }
}

/* ---------- Trusted-by section ---------- */
.trusted {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) var(--pad);
}
.trusted .section__label {
  color: var(--ghost);
  letter-spacing: 0.18em;
  margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
  text-align: center;
}
.logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; justify-content: center;
  width: clamp(6rem, 15vw, 8rem);    /* increased from 4rem */
  height: clamp(6rem, 15vw, 8rem);   /* increased from 4rem */
  transition: transform 0.4s;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo:hover { transform: translateY(-4px); }
@media (max-width: 620px) { .logos { gap: 1.5rem; } .logo { width: clamp(4rem, 18vw, 5.5rem); height: clamp(4rem, 18vw, 5.5rem); } }

/* ---------- technical plate (scroll-drawn schematic) ---------- */

/* The drawing sits on its own plate: a hairline frame over a blueprint grid,
   with a caption rail. It reads as a sheet rather than floating art, which is
   what makes it look drawn rather than decorated. */
.schematic {
  position: relative; width: 100%; max-width: 900px;
  margin-top: clamp(1.5rem, 3.5vh, 2.4rem);
  padding: clamp(0.75rem, 1.2vw, 1rem) clamp(0.85rem, 1.5vw, 1.25rem) clamp(0.5rem, 0.9vw, 0.7rem);
  border: 1px solid var(--line);
  background-color: color-mix(in srgb, var(--ink) 2.5%, var(--bg));
  background-image:
    repeating-linear-gradient(to right, var(--guide) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, var(--guide) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.schematic::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: clamp(2.6rem, 6vw, 4.4rem); height: 2px; background: var(--accent);
}
.schematic__cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem;
  margin-bottom: 0.45rem; padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.schematic__cap span:last-child { color: var(--accent); }
.schematic svg { display: block; width: 100%; height: auto; overflow: visible; }
.schematic .d-line {
  fill: none; stroke: var(--line-strong); stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
  /* Keep hairlines exactly 1px whether the band is pinned at 500px or inline at 900px. */
  vector-effect: non-scaling-stroke;
}
.schematic .d-faint { stroke: var(--line); }
.schematic .d-hi { stroke: var(--accent); stroke-width: 1.75; }
.schematic .d-dash { stroke: var(--accent); stroke-dasharray: 4 7; opacity: 0.7; }
.schematic .d-node, .schematic .d-square {
  fill: var(--bg); stroke: var(--accent); stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.schematic .d-square { rx: 1; }
.schematic .d-pip { fill: var(--accent); }
.schematic .d-text {
  fill: var(--dim); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
/* The work plate is drawn at roughly 1:1, so its type can carry real weight. */
.schematic--work { max-width: none; margin: 0 0 clamp(3rem, 7vh, 4.5rem); }
.schematic--work .d-text { font-size: 13px; letter-spacing: 0.12em; }
.schematic .d-key { fill: var(--ink); font-size: 13px; letter-spacing: 0.08em; }
.schematic .d-note { font-size: 10px; letter-spacing: 0.16em; }
.schematic .d-strong { fill: var(--accent); }
@media (max-width: 700px) {
  .schematic .d-text { display: none; }
}
/* The work sheet is 1200 units wide. Below that, pan it rather than shrink its
   labels to nothing: a drawing you can drag sideways still reads as a drawing. */
@media (max-width: 900px) {
  .schematic--work { overflow-x: auto; pointer-events: auto; }
  .schematic--work svg { min-width: 900px; }
  .schematic--work .schematic__cap { position: sticky; left: 0; }
  .schematic--work .d-text { display: inline; }
}

/* ---------- Ticker marquee ---------- */
.ticker {
  overflow: hidden; background: var(--panel);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.ticker__track { width: max-content; animation: ticker-scroll 38s linear infinite; display: flex; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker__list { display: flex; gap: clamp(3rem, 6vw, 6rem); padding: 0 var(--pad); white-space: nowrap; min-width: 50%; }
.ticker__list li { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; display: flex; flex-wrap: wrap; justify-content: center; } .ticker__list { padding: 1rem var(--pad); min-width: auto; } }

/* ---------- industries list (replaces logos) ---------- */
.industries {
  display: flex; flex-wrap: wrap; gap: clamp(1rem, 2vw, 1.5rem);
  justify-content: center;
}
.industry {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
.industry svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.industry[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  padding: 0.4rem 0.7rem; background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: var(--step--2);
  white-space: nowrap; border-radius: var(--radius-sm);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  margin-bottom: 0.4rem;
}
.industry[data-tooltip]:hover::after,
.industry[data-tooltip]:focus::after { opacity: 1; }
@media (max-width: 620px) { .industries { gap: 0.6rem; } .industry { padding: 0.4rem 0.7rem; } }


/* ---------- interior page heads ---------- */

.hline { display: block; }

.page-head {
  max-width: var(--max-w); margin: 0 auto;
  padding: calc(120px + clamp(3rem, 8vh, 7rem)) var(--pad) clamp(2rem, 5vh, 3.5rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.page-head__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 7rem); line-height: 0.98; letter-spacing: -0.04em;
  display: flex; flex-direction: column;
}
.page-head__title .serif { color: var(--accent); line-height: 1; }
.page-head__lead { color: var(--dim); max-width: 54ch; font-size: var(--step-1); }
/* The plate is the header's floor, not a sidebar: it runs the full header width. */
.page-head .schematic { max-width: none; margin-top: clamp(1.2rem, 2.5vh, 2rem); }
/* On a full-height header the sheet sits on the bottom edge and takes whatever
   room the title and lead leave, so the drawing fills the band. */
@media (min-width: 901px) {
  .page-head { min-height: 100svh; padding-bottom: clamp(0.5rem, 1.2vh, 0.9rem); }
  .page-head .schematic { margin-top: auto; }
}

/* ---------- offerings tiers ---------- */

.offerings__tier + .offerings__tier { margin-top: clamp(2.5rem, 6vh, 4rem); }
.offerings__tier-title {
  color: var(--accent); padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 0.8rem;
}
.offerings__tier-title + .offerings__list .offerings__item:first-child { border-top: none; }

/* ---------- home services teaser ---------- */

.home-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.home-track {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.4s var(--ease-out);
}
.home-track:hover, .home-track:focus-within { border-color: var(--accent); }
.home-track__no { color: var(--accent); }
.home-track h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.home-track p { color: var(--dim); max-width: 46ch; }
.home-track__list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; color: var(--dim); }
.home-track__list li { list-style: none; position: relative; }
.home-track__list li + li::before { content: "·"; position: absolute; left: -0.7em; color: var(--accent); }
.home-tracks__foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: clamp(2.6rem, 6vh, 4rem); padding-top: clamp(1.6rem, 3vh, 2.2rem); padding-bottom: clamp(2.2rem, 4vh, 3rem); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .home-tracks { grid-template-columns: 1fr; } }

/* ---------- carousel dots ---------- */

.carousel-dots { display: none; }
@media (max-width: 900px) {
  .carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
}
.carousel-dots__dot {
  width: 0.55rem; height: 0.55rem; padding: 0; flex: none;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; transition: background 0.25s, border-color 0.25s;
}
.carousel-dots__dot.is-active { background: var(--accent); border-color: var(--accent); }
.carousel-dots__dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- procurement ---------- */

.procurement__foot {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.procurement__note { color: var(--dim); }

/* ---------- about team ---------- */

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.team__member {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
  list-style: none;
}
.team__avatar {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.team__member h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.team__member p { color: var(--dim); font-size: var(--step-0); }
.team__role { color: var(--accent); }
/* The roster is three quiet cards; give them room to read as a roster. */
.about-team { padding-top: clamp(8rem, 20vh, 15rem); padding-bottom: clamp(2rem, 6vh, 4rem); }
.about-team .section__head { margin-bottom: clamp(4rem, 10vh, 7rem); }
.about-team .team { gap: clamp(1.4rem, 3vw, 2.6rem); }
.about-team .team__member { padding: clamp(1.8rem, 3.4vw, 2.8rem); gap: 0.85rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

/* ---------- contact page ---------- */

.contact-page { padding-bottom: clamp(7rem, 16vh, 12rem); }
.contact-page .contact__grid { margin-top: 0; }

.cform__draft-banner {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--panel); color: var(--dim); font-size: var(--step-0);
}
.cform__draft-banner[hidden] { display: none; }
.cform__draft-resume {
  color: var(--accent); font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 3px;
}
.cform__draft-discard {
  color: var(--dim); font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 3px;
}
.cform__count { color: var(--dim); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; }
.cform__count.is-met { color: var(--accent-2); }

.contact__faq { display: flex; flex-direction: column; gap: 0.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.contact__faq-title { color: var(--dim); margin-bottom: 0.4rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 0.9rem 1.6rem 0.9rem 0;
  position: relative; color: var(--ink); font-size: var(--step-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0.75rem;
  color: var(--accent); font-family: var(--font-mono);
  transition: transform 0.3s var(--ease-out);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq p { color: var(--dim); font-size: var(--step-0); padding: 0 0 1rem; max-width: 46ch; }
