﻿/* Marathon-inspired dark portfolio */
:root {
  /* Burnt-orange accent on near-black */
  --color-primary: #fc4c13;
  --color-secondary: #00e5c9;
  --color-tertiary: #5a5a70;
  --gradient-brand: linear-gradient(128deg, #e23a05 0%, #fc4c13 50%, #ff6e3d 100%);

  --bg: #1d1d1d;
  --bg-muted: #242424;
  --bg-elevated: #292929;
  --ink: #f5f5f2;
  --ink-muted: #9a9a94;
  --ink-faint: #5c5c58;
  --line: rgba(255, 255, 255, 0.08);
  --accent: var(--color-primary);
  --accent-soft: color-mix(in srgb, var(--color-primary) 10%, transparent);
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: 0 22px 52px -30px color-mix(in srgb, var(--color-primary) 35%, transparent);
  --max: 1180px;
  --page-gutter: clamp(1rem, 4vw, 1.5rem);
  --font-display: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --logo-brand: var(--color-primary);
  --logo-aspect: 496 / 296;
  --ease-logo-reveal: cubic-bezier(0.2, 0.65, 0.24, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --dock-h: 3rem;
  --dock-pad: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge / IE */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock-h) + var(--dock-pad) + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--bg-elevated);
  z-index: 200;
  border-radius: 0;
}
.skip-link:focus { left: 0.75rem; }

.wrap {
  width: min(100% - 2 * var(--page-gutter), var(--max));
  margin-inline: auto;
}

/* Bottom dock (replaces top header) */
.site-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 150;
  pointer-events: none;
}
.site-dock__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: var(--dock-h);
  max-width: min(100% - 2 * var(--page-gutter), calc(520px * 0.7 * 1.15));
  margin-inline: auto;
  padding: 12px 32px;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  box-shadow: 0 12px 40px -16px color-mix(in srgb, var(--color-primary) 22%, transparent);
}
.site-dock__logo.logo-link {
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
}
.logo-mark__svg {
  display: block;
  height: calc(37.5px * 0.85);
  width: auto;
  aspect-ratio: var(--logo-aspect);
}
/* Filled (default) + outline sprite: #logo-mark-symbol / #logo-mark-outline-symbol */
.logo-mark--outline {
  color: var(--color-primary);
}
.logo-mark--outline .logo-mark__svg {
  overflow: visible;
}
.logo-mark-def {
  position: absolute;
  overflow: hidden;
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, var(--line));
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--line));
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}
.nav-toggle:focus,
.nav-toggle:focus-visible {
  outline: none;
}
.nav-toggle--dock {
  margin-left: auto;
  border: none;
  transition: background 0.2s ease;
}
.nav-toggle__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--ink);
  border-radius: 0;
  transform-origin: 50% 50%;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
/*
 * Bars are 1st & 2nd children; "Menu" label is 3rd — do not use :last-child on bars.
 * Closed: two parallels, 5px gap (7px between centers, 2px stroke).
 * Open: both move to center and rotate ±45° → X.
 */
.nav-toggle__bar:nth-child(1) {
  transform: translate(-50%, calc(-50% - 3.5px));
}
.nav-toggle__bar:nth-child(2) {
  transform: translate(-50%, calc(-50% + 3.5px));
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar {
    transition-duration: 0.01ms;
  }
}

/* Full-screen menu (reference: dim + centered panel, scale + fade) */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.55s;
}
.site-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.site-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 22, 0.42);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-menu.is-open .site-menu__backdrop {
  opacity: 1;
}
.site-menu__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: min(72vh, 560px);
  padding: 2rem 1.75rem 2.25rem;
  background: color-mix(in srgb, var(--bg-elevated) 97%, var(--color-primary));
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ink);
  border-radius: 0;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -48%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.52s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-menu.is-open .site-menu__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.site-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 500;
}
.site-menu__nav a {
  display: block;
  padding: 0.55rem 0;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-menu__nav a:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}
.site-menu__nav .nav__cta {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--color-primary);
  color: #1d1d1d !important;
  border-radius: 0;
  font-size: 0.95rem;
}
.site-menu__nav .nav__cta:hover {
  opacity: 0.9;
  transform: none;
  background: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--color-primary);
}

.nav__cta {
  padding: 0.5rem 1.15rem;
  background: var(--accent);
  color: #1d1d1d !important;
  border-radius: 0;
}
.nav__cta:hover {
  opacity: 0.95;
  color: #1d1d1d !important;
  background: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .site-menu__backdrop,
  .site-menu__panel {
    transition-duration: 0.01ms;
  }
  .site-menu__panel {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Hero — light stage, cursor-parallax orbs, centered content */
.hero {
  --hero-scroll: 0;
  --mx: 0;
  --my: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reserve the bottom dock's footprint so the centered grid clears it by a
     constant margin at every viewport height. */
  padding-top: 3rem;
  padding-bottom: calc(var(--dock-h) + 3rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: var(--bg);
}
.hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__stage-base {
  display: none;
}
.hero__orb {
  display: none;
}
/* ~70% smaller than prior orbs; fixed layout; no blur */
.hero__orb--primary {
  width: min(37.5vmin, 276px);
  aspect-ratio: 1;
  left: 1%;
  bottom: 44%;
  top: auto;
  right: auto;
  background:
    radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--color-secondary) 42%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 68% 72%, color-mix(in srgb, var(--color-primary) 28%, transparent) 0%, transparent 58%),
    radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, transparent 62%);
  opacity: 0.82;
  transform: translate(calc(var(--mx) * 52px), calc(var(--my) * 38px));
}
.hero__orb--mid {
  width: min(16.5vmin, 126px);
  aspect-ratio: 1;
  right: 1%;
  top: 31%;
  left: auto;
  bottom: auto;
  background: radial-gradient(
    circle at 40% 40%,
    color-mix(in srgb, var(--color-secondary) 28%, transparent),
    transparent 68%
  );
  opacity: 0.55;
  transform: translate(calc(var(--mx) * -34px), calc(var(--my) * 26px));
}
.hero__orb--far {
  width: min(21vmin, 168px);
  aspect-ratio: 1;
  left: 4%;
  top: 2%;
  right: auto;
  bottom: auto;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--color-primary) 22%, transparent),
    transparent 70%
  );
  opacity: 0.45;
  transform: translate(calc(var(--mx) * 40px), calc(var(--my) * -22px));
}
.hero__orb--accent {
  width: min(8.4vmin, 66px);
  aspect-ratio: 1;
  right: 18%;
  bottom: 18%;
  left: auto;
  top: auto;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--color-tertiary) 32%, transparent),
    transparent 72%
  );
  opacity: 0.42;
  transform: translate(calc(var(--mx) * -24px), calc(var(--my) * -30px));
}
.hero__orb--e {
  width: min(12vmin, 96px);
  aspect-ratio: 1;
  left: 12%;
  bottom: 22%;
  right: auto;
  top: auto;
  background: radial-gradient(
    circle at 45% 45%,
    color-mix(in srgb, var(--color-secondary) 24%, transparent),
    transparent 70%
  );
  opacity: 0.38;
  transform: translate(calc(var(--mx) * 18px), calc(var(--my) * -14px));
}
.hero__orb--f {
  width: min(14.4vmin, 112px);
  aspect-ratio: 1;
  right: 8%;
  bottom: 38%;
  left: auto;
  top: auto;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--color-primary) 18%, transparent),
    transparent 72%
  );
  opacity: 0.4;
  transform: translate(calc(var(--mx) * -42px), calc(var(--my) * 20px));
}
.hero__orb--g {
  width: min(10.5vmin, 80px);
  aspect-ratio: 1;
  left: 42%;
  top: -2%;
  right: auto;
  bottom: auto;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--color-tertiary) 22%, transparent),
    transparent 72%
  );
  opacity: 0.36;
  transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 34px));
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb {
    transition: none;
    transform: none;
  }
}
.hero__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
  min-height: min(calc(100dvh - 9rem), 820px);
}
.hero__center {
  /* Width-driven, but also capped to the height the hero reserves for the
     8-row grid above the dock (see .hero padding + .hero__inner), so the
     logo + 1-row gaps + headline + buttons always clear the bottom dock. */
  --cell: min(clamp(2.25rem, 9vw, 6rem), calc((100dvh - 9rem) / 8));
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: calc(var(--cell) * 9);
  height: calc(var(--cell) * 8);
}
/* Headline + actions flow below the logo, full grid width; a half-row gap
   puts the headline's first row on grid line 3 (matches the headline-to-buttons gap) */
.hero__copy {
  margin-top: calc(var(--cell) * 0.5);
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero__copy__inner {
  width: 100%;
}
/* Logo starts one grid row down and is exactly 1.5 rows tall, so it spans
   grid rows 1 → 2.5 and its edges land on grid lines (height-driven; width
   follows the 496:296 aspect ratio). */
.hero__logo-stage {
  width: auto;
  margin-top: var(--cell);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
/* Animated logo intro (built in logo-alt.js); its corner bars intentionally
   overflow ~22px above/below the box during the run. Click to replay. */
.hero__logo-alt {
  position: relative;
  height: calc(var(--cell) * 1.5);
  aspect-ratio: 496 / 296;
  cursor: pointer;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(var(--cell) * 0.72);
  font-weight: 600;
  line-height: var(--cell);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  /* Trim the font's leading so the box hugs cap-height→baseline. At this size
     the cap height ≈ one grid square, so the caps land on grid line 3 and each
     baseline on a half-line (3.5 / 4.5 / 5.5) instead of floating mid-row. */
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}
/* Headline decode (see scrambleTitle in main.js): letters still churning
   through random characters sit dim with a faint acid flicker; they snap to
   full ink the moment they lock onto the real character. */
.hero__title .glitch-ch.is-glitch {
  color: var(--ink-faint);
  animation: glitchFlicker 0.11s steps(2, jump-none) infinite;
}
@keyframes glitchFlicker {
  50% { color: color-mix(in srgb, var(--color-primary) 45%, var(--ink-faint)); }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
  /* buttons sit half a row under the headline so the block lands on grid
     line 6.5 and the whole hero fits inside the 8-row grid */
  margin-top: calc(var(--cell) * 0.5);
}
.hero__copy--await-intro {
  visibility: hidden;
  pointer-events: none;
}
.hero__copy--visible {
  visibility: visible;
  pointer-events: auto;
}
.hero__copy--visible .hero__copy__inner {
  will-change: transform, opacity;
  transform: translate3d(0, calc(var(--hero-scroll) * -28px), 0);
  opacity: calc(1 - var(--hero-scroll) * 0.4);
}
.hero__copy--visible .hero__title {
  animation: heroRevealIn 0.72s cubic-bezier(0.4, 0, 0.2, 1) 0.06s both;
}
.hero__copy--visible .hero__actions {
  /* Follows right after the headline (0.06s delay + 0.72s run = 0.78s). */
  animation: heroRevealIn 0.68s cubic-bezier(0.4, 0, 0.2, 1) 0.78s both;
}
@keyframes heroRevealIn {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__copy--visible .hero__copy__inner {
    transform: none;
    opacity: 1;
  }
  .hero__copy--visible .hero__title,
  .hero__copy--visible .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__copy--await-intro {
    visibility: visible;
    pointer-events: auto;
  }
}

/* Background grid: all cells trace in together (start→end), hold, then turn
   into dashed outlines and "erase" in the same start→end direction once the
   logo + copy are fully on screen. */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.hero__grid-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__grid-line,
.hero__grid-erase {
  fill: none;
  stroke-width: 1.2;
  stroke-dasharray: 4;
  stroke-dashoffset: 4;
}
.hero__grid-line {
  stroke: color-mix(in srgb, var(--color-primary) 32%, transparent);
}
.hero__grid-erase {
  stroke: var(--bg);
}
/* Entrance trace (2x faster than the logo trace; both still start together) */
.hero__grid.is-tracing-in .hero__grid-line {
  animation: heroGridTrace 1300ms ease-in-out forwards;
}
/* Drawn squares become dashed outlines while the erase stroke traces over
   them; the 0.06/0.04 pattern fits the 4-unit perimeter exactly (no seam). */
.hero__grid.is-tracing-out .hero__grid-line {
  stroke-dasharray: 0.06, 0.04;
  stroke-dashoffset: 0;
}
.hero__grid.is-tracing-out .hero__grid-erase {
  animation: heroGridTrace 439ms ease-in-out forwards;
}
.hero__grid.is-hidden {
  visibility: hidden;
}
@keyframes heroGridTrace {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__grid {
    display: none;
  }
}

/* Transition from hero into next section */
.section--after-hero {
  --after-hero-t: 0;
  opacity: calc(0.88 + var(--after-hero-t) * 0.12);
  transform: translate3d(0, calc((1 - var(--after-hero-t)) * 20px), 0);
}
@media (prefers-reduced-motion: reduce) {
  .section--after-hero {
    opacity: 1;
    transform: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: #1d1d1d;
  font-weight: 700;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--large {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section--muted { background: var(--bg-muted); }
.section--pillars { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--cases {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--color-secondary) 9%, var(--bg-muted) 91%)
  );
}
.section--services { background: var(--bg-muted); }
.section--industries { background: var(--bg-elevated); }
.section--process { background: var(--bg); }
.section--numbers { background: var(--bg-muted); }
.section--reviews { background: var(--bg-elevated); }
.section--faq { background: var(--bg); }
.section--contact {
  padding-block: clamp(3.5rem, 10vw, 5.5rem);
  background: var(--gradient-brand);
  color: var(--bg-elevated);
}

/* ---------------------------------------------------------------------
   Full-page section scroll. Every non-hero section fills the viewport and
   centres its content, so each scroll settles on one section with the
   content in the middle of the page. The eased, one-section-at-a-time
   motion for mouse/trackpad is driven in main.js; touch devices snap
   natively; reduced-motion users just scroll — the heights still keep the
   content centred. Sections taller than the viewport grow past it (and are
   page-scrolled through in JS) rather than clipping their content. */
#main > section:not(.hero) {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* keep centred content clear of the floating bottom dock */
  padding-bottom: calc(clamp(3rem, 8vw, 5rem) + var(--dock-h));
}
#main > section,
.site-footer {
  scroll-snap-align: start;
}
@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y proximity;
  }
}

/* "My journey so far" is its own section now — drop the in-section divider
   it carried when it sat directly beneath the bio. */
.section--journey .about__journey {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.section--contact .section__eyebrow {
  color: color-mix(in srgb, var(--bg-elevated) 58%, transparent);
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section__title--flush { margin-bottom: 0.65rem; }

.section__intro {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-muted);
}
.section__intro--center {
  margin-inline: auto;
  text-align: center;
  max-width: 48ch;
}
.section__intro--wide { max-width: 60ch; }

/* Pillars */
.pillar-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2rem; }
}
.pillar {
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.pillar__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pillar__text { margin: 0; font-size: 0.98rem; color: var(--ink-muted); line-height: 1.55; }

/* About / bio — editorial three-column layout: greeting top-left + intro
   bottom-left, portrait centre, description + CTA bottom-right. The portrait
   (rendered colour, fading to B&W on scroll) is the tallest item, so the
   side columns stretch to its height and anchor their content top/bottom. */
.bio {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}
@media (min-width: 860px) {
  .bio {
    grid-template-columns: 1fr minmax(300px, 360px) 1fr;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}
.bio__col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
@media (min-width: 860px) {
  .bio__col--left { justify-content: space-between; }
  .bio__col--right { justify-content: flex-end; }
}
.bio__head .section__eyebrow { margin-bottom: 0.6rem; }
.bio__head .section__title {
  margin: 0;
  /* one step down from the bumped size, and sentence case (not uppercase) */
  font-size: clamp(1.9rem, 3.75vw, 2.7rem);
  text-transform: none;
}

.bio__portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
@media (min-width: 860px) {
  .bio__portrait { max-width: none; }
}
.bio__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  /* Colour by default; --portrait-gray is scroll-driven (main.js): the photo
     fades to black & white as it scrolls up past the viewport top. */
  filter: grayscale(var(--portrait-gray, 0)) contrast(1.04);
}

.bio__lead {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.bio__desc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bio__desc p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.bio__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}
.bio__cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, var(--line));
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out-expo);
}
.bio__cta:hover { color: var(--color-primary); }
.bio__cta:hover span {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translate(2px, -2px);
}

/* Journey subsection — clearly subordinate to the section h2, divided off */
.about__journey {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.subsection-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Career timeline — a single acid spine that draws as you scroll, with
   square nodes that ignite as the fill passes them. Mono + acid, sharp
   corners, fully consistent with the hero's line-trace language. */
.timeline {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3rem);
  --timeline-progress: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--line);
}
.timeline__fill {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 1px;
  height: calc(100% - 14px);
  transform: scaleY(var(--timeline-progress));
  transform-origin: top center;
  background: linear-gradient(
    180deg,
    var(--color-primary),
    color-mix(in srgb, var(--color-primary) 55%, var(--color-secondary))
  );
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.timeline__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline__item {
  position: relative;
  padding-left: clamp(2.25rem, 6vw, 3.25rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  width: clamp(1.1rem, 3.5vw, 1.6rem);
  height: 1px;
  background: var(--line);
}
.timeline__node {
  position: absolute;
  left: 1px;
  top: 4px;
  width: 13px;
  height: 13px;
  padding: 0;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-muted);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 32%, var(--line));
  cursor: pointer;
  transition:
    background-color 0.4s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo);
}
.timeline__node:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.timeline__node.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--color-primary) 13%, transparent),
    0 0 16px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.timeline__period {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.timeline__dur {
  display: block;
  margin-top: 0.22rem;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.timeline__role {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.timeline__org {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-primary);
}
.timeline__type {
  color: var(--ink-muted);
  font-weight: 500;
}
.timeline__where {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.timeline__desc {
  margin: 0;
  max-width: 58ch;
  font-size: 0.96rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
@media (min-width: 720px) {
  .timeline__item { padding-left: clamp(3rem, 7vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline__fill { transform: scaleY(1); }
}

/* Desktop + iPad: rotate the timeline horizontal. Newest sits on the
   right; the strip scrolls left into the past. The section stays only as
   tall as its content — descriptions open as fixed popovers (positioned by
   JS) that expand outward from their node and may spill past the section. */
@media (min-width: 768px) {
  .timeline {
    margin-top: clamp(2rem, 4vw, 2.75rem);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 0 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--color-primary) 40%, transparent) transparent;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  .timeline::-webkit-scrollbar { height: 6px; }
  .timeline::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-primary) 35%, transparent);
  }
  .timeline::-webkit-scrollbar-track { background: transparent; }

  .timeline::before,
  .timeline__fill { display: none; }
  .timeline__item::before { display: none; }

  .timeline__list {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    width: max-content;
    min-width: 100%;
  }
  .timeline__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--color-primary) 40%, var(--line)) 6%,
      color-mix(in srgb, var(--color-primary) 40%, var(--line)) 94%,
      transparent
    );
  }

  .timeline__item {
    position: relative;
    flex: 0 0 clamp(280px, 30vw, 340px);
    padding: 0 clamp(1.25rem, 2.5vw, 2rem);
    scroll-snap-align: center;
  }
  /* small vertical tick connecting node down to the head */
  .timeline__item::after {
    content: "";
    position: absolute;
    left: clamp(1.25rem, 2.5vw, 2rem);
    top: 15px;
    width: 1px;
    height: 16px;
    margin-left: 6px;
    background: var(--line);
  }

  .timeline__node {
    top: 0;
    left: clamp(1.25rem, 2.5vw, 2rem);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--color-primary) 10%, transparent),
      0 0 12px color-mix(in srgb, var(--color-primary) 42%, transparent);
  }
  .timeline__item:first-child .timeline__node {
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--color-primary) 16%, transparent),
      0 0 18px color-mix(in srgb, var(--color-primary) 60%, transparent);
  }
  /* Hovering anywhere on the item (or focusing/opening it) lights the node */
  .timeline__item:hover .timeline__node,
  .timeline__item.is-pop .timeline__node,
  .timeline__node:focus-visible {
    transform: scale(1.3);
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--color-primary) 18%, transparent),
      0 0 22px color-mix(in srgb, var(--color-primary) 72%, transparent);
  }

  /* head sits just below the node — item height now equals its content */
  .timeline__body { padding-top: 40px; }
  .timeline__period { margin-bottom: 0.5rem; }
  .timeline__where { margin-bottom: 0; }

  /* description -> fixed popover, JS-anchored to the node, expanding
     outward from the node (bottom-center origin); consistent placement */
  .timeline__desc {
    position: fixed;
    left: 0;
    top: 0;
    width: min(300px, 80vw);
    max-width: 300px;
    margin: 0;
    padding: 0.95rem 1.05rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink);
    background: color-mix(in srgb, var(--bg-elevated) 92%, var(--color-primary));
    border: 1px solid color-mix(in srgb, var(--color-primary) 34%, var(--line));
    box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 14px)) scale(0.6);
    transform-origin: calc(50% + var(--caret-x, 0px)) bottom;
    z-index: 160;
    transition:
      opacity 0.26s var(--ease-out-expo),
      transform 0.3s var(--ease-out-expo),
      visibility 0s linear 0.3s;
  }
  /* caret tracks the node even when the popover is clamped to the viewport */
  .timeline__desc::after {
    content: "";
    position: absolute;
    left: calc(50% + var(--caret-x, 0px));
    bottom: -6px;
    width: 11px;
    height: 11px;
    background: inherit;
    border-right: 1px solid color-mix(in srgb, var(--color-primary) 34%, var(--line));
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 34%, var(--line));
    transform: translateX(-50%) rotate(45deg);
  }
  .timeline__item.is-pop .timeline__desc {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, calc(-100% - 14px)) scale(1);
    transition:
      opacity 0.26s var(--ease-out-expo),
      transform 0.3s var(--ease-out-expo),
      visibility 0s;
  }
  /* flipped below the node when there isn't room above */
  .timeline__item.is-below .timeline__desc {
    transform: translate(-50%, 14px) scale(0.6);
    transform-origin: calc(50% + var(--caret-x, 0px)) top;
  }
  .timeline__item.is-pop.is-below .timeline__desc {
    transform: translate(-50%, 14px) scale(1);
  }
  .timeline__item.is-below .timeline__desc::after {
    top: -6px;
    bottom: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid color-mix(in srgb, var(--color-primary) 34%, var(--line));
    border-top: 1px solid color-mix(in srgb, var(--color-primary) 34%, var(--line));
  }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .timeline__desc { transition: none; }
}

/* Stat grid */
.stat-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stat-card__value {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-card__label { margin: 0; font-size: 0.9rem; color: var(--ink-muted); }

/* Cases */
.cases__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.cases__cta { flex-shrink: 0; }
/* Case studies — full-width, clickable project rows (editorial / mono). */
.case-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 4rem);
}
.case-row {
  display: block;
  text-decoration: none;
  color: inherit;
}
.case-row__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.45s var(--ease-out-expo);
}
/* legibility scrim for the overlaid index / cue / title */
.case-row__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, transparent 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, transparent 44%);
  pointer-events: none;
}
.case-row__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition:
    transform 0.8s var(--ease-out-expo),
    filter 0.8s var(--ease-out-expo);
}
.case-row__index,
.case-row__cue,
.case-row__title {
  position: absolute;
  z-index: 1;
  font-family: var(--font-display);
}
.case-row__index {
  top: clamp(0.8rem, 2vw, 1.25rem);
  left: clamp(0.9rem, 2vw, 1.4rem);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-primary);
}
.case-row__cue {
  top: clamp(0.8rem, 2vw, 1.25rem);
  right: clamp(0.9rem, 2vw, 1.4rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 78%, transparent);
  transition: color 0.3s ease;
}
.case-row__arrows {
  font-style: normal;
  transition: transform 0.4s var(--ease-out-expo);
}
.case-row__title {
  left: clamp(0.9rem, 2vw, 1.55rem);
  right: clamp(0.9rem, 2vw, 1.55rem);
  bottom: clamp(0.85rem, 2.2vw, 1.45rem);
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}
.case-row__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: clamp(0.85rem, 1.6vw, 1.1rem);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.case-row__facts b {
  margin-right: 0.5rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.case-row:hover .case-row__img,
.case-row:focus-visible .case-row__img {
  transform: scale(1.065);
}
.case-row:hover .case-row__frame,
.case-row:focus-visible .case-row__frame {
  border-color: color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.case-row:hover .case-row__cue,
.case-row:focus-visible .case-row__cue {
  color: var(--color-primary);
}
.case-row:hover .case-row__arrows,
.case-row:focus-visible .case-row__arrows {
  transform: translateX(6px);
}
.case-row:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Services */
.service-block {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
@media (min-width: 880px) {
  .service-block {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 2rem;
    align-items: start;
  }
}
.service-block__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.service-block__lede { margin: 0 0 1rem; color: var(--ink-muted); font-size: 0.98rem; }
.service-block__link {
  display: inline-block; /* inline elements can't be transformed */
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-secondary) 55%, transparent);
  text-underline-offset: 3px;
  transition: transform 0.2s ease-in-out;
}
/* hover: keep the color, lift the link 2px */
.service-block__link:hover {
  transform: translateY(-2px);
}
.service-block__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.service-block__list li { margin-bottom: 0.35rem; }

/* Industries */
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.industry-list li {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: 0;
}

/* Process */
.process-steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.process-step {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0;
  background: var(--accent-soft);
  color: var(--color-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-tertiary) 35%, transparent);
}
.process-step__title { margin: 0 0 0.45rem; font-size: 1.05rem; font-weight: 700; }
.process-step__text { margin: 0; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.55; }

/* Numbers */
.numbers-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) { .numbers-grid { grid-template-columns: repeat(3, 1fr); } }
.numbers-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.numbers-card__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.numbers-card__stat { margin: 0 0 0.35rem; line-height: 1; }
.numbers-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-primary);
}
.numbers-card__suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.numbers-card__title { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; }
.numbers-card__meta { margin: 0; font-size: 0.875rem; color: var(--ink-muted); }

/* Testimonials */
.testimonial-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem;
  scrollbar-width: thin;
}
.testimonial {
  flex: 0 0 min(100%, 340px);
  scroll-snap-align: start;
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 720px) {
  .testimonial { flex-basis: 380px; }
}
.testimonial__quote {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.testimonial__quote::before { content: open-quote; }
.testimonial__quote::after { content: close-quote; }
.testimonial__meta { font-size: 0.875rem; color: var(--ink); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.65rem; max-width: 720px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}
.faq-item__q {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__a {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Contact */
.contact-block {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 880px) {
  .contact-block { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}
.contact-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--bg-elevated);
}
.contact-block__lede {
  margin: 0 0 1.5rem;
  color: color-mix(in srgb, var(--bg-elevated) 76%, transparent);
  max-width: 42ch;
}
.section--contact .btn--primary {
  background: var(--bg-elevated);
  color: var(--color-primary);
}
.section--contact .btn--primary:hover {
  opacity: 0.95;
  box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--bg-elevated) 45%, transparent);
}

.contact-dl { margin: 0; }
.contact-dl dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg-elevated) 52%, transparent);
}
.contact-dl dd {
  margin: 0 0 1.1rem;
  color: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
}
.contact-dl a {
  color: var(--bg-elevated);
}

/* Footer */
.site-footer {
  padding-block: 2.75rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 2rem 1.5rem; }
}
.site-footer__logo { margin: 0 0 0.5rem; font-weight: 700; display: flex; align-items: center; gap: 0.45rem; }
.site-footer__tagline { margin: 0; font-size: 0.9rem; color: var(--ink-muted); max-width: 28ch; }
.site-footer__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.site-footer__links a { color: var(--ink-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--color-primary); }

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.site-footer__fine { margin: 0; color: var(--ink-faint); font-size: 0.8125rem; }

/* =====================================================================
   Motion layer — scroll choreography + micro-interactions.
   Carries the hero's line-trace / grid language across the whole page.
   Everything degrades to static under prefers-reduced-motion, and the
   pointer-driven pieces only arm on fine-pointer (desktop) devices.
   ===================================================================== */

/* Scroll progress rail — a single acid line that draws as you read */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 300;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 14px color-mix(in srgb, var(--color-primary) 75%, transparent);
  pointer-events: none;
}

/* Custom cursor — precise dot + lagging ring, difference-blended so it
   reads on both the near-black sections and the acid contact panel. */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 1.5px solid #fff;
  transition:
    width 0.28s var(--ease-out-expo),
    height 0.28s var(--ease-out-expo),
    margin 0.28s var(--ease-out-expo),
    background-color 0.28s ease,
    opacity 0.3s ease;
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor summary,
body.has-cursor [data-magnetic] {
  cursor: none;
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring {
  opacity: 1;
}
body.has-cursor.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: color-mix(in srgb, #fff 14%, transparent);
}
body.has-cursor.cursor-hover .cursor-dot {
  opacity: 0;
}
body.has-cursor.cursor-down .cursor-ring {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
}

/* Magnifier lens — a glassy circle that refracts/bulges whatever sits behind
   it (SVG displacement on backdrop-filter). Sits just under the dot so the
   focal point stays crisp. When active it replaces the plain ring. */
.cursor-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 399;
  opacity: 0;
  -webkit-backdrop-filter: url("#cursor-glass");
  backdrop-filter: url("#cursor-glass");
  /* glass rim + faint top sheen + soft drop, so the lens reads as a physical lens */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #fff 30%, transparent),
    inset 0 4px 8px color-mix(in srgb, #fff 12%, transparent),
    inset 0 -4px 8px color-mix(in srgb, #000 18%, transparent),
    0 4px 14px rgba(0, 0, 0, 0.35);
  will-change: transform;
  transition:
    opacity 0.3s ease,
    width 0.28s var(--ease-out-expo),
    height 0.28s var(--ease-out-expo),
    margin 0.28s var(--ease-out-expo);
}
body.has-glass .cursor-glass {
  opacity: 1;
}
/* the lens stands in for the ring */
body.has-glass .cursor-ring {
  display: none;
}
body.has-glass.cursor-hover .cursor-glass {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}
body.has-glass.cursor-down .cursor-glass {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
}
/* Fallback when SVG backdrop filters aren't available: a frosted lens. */
body.has-glass--frost .cursor-glass {
  -webkit-backdrop-filter: blur(1.5px) brightness(1.08) contrast(1.04) saturate(1.1);
  backdrop-filter: blur(1.5px) brightness(1.08) contrast(1.04) saturate(1.1);
}

/* Scroll-reveal system — staggered via --reveal-i */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.9s var(--ease-out-expo) calc(var(--reveal-i, 0) * 70ms),
    transform 0.9s var(--ease-out-expo) calc(var(--reveal-i, 0) * 70ms),
    clip-path 0.9s var(--ease-out-expo) calc(var(--reveal-i, 0) * 70ms);
}
[data-reveal="up"] { transform: translateY(30px); }
[data-reveal="left"] { transform: translateX(-26px); }
/* Clip wipe stops at 45% (not 100%): opacity:0 already hides it, and
   leaving area keeps the IntersectionObserver's ratio above its threshold
   — a full inset(…100%) zeroes the ratio and the reveal never fires. */
[data-reveal="clip"] {
  transform: translateY(16px);
  clip-path: inset(0 0 45% 0);
}
/* "card" reveals leave transform free for the tilt engine */
[data-reveal="card"] { clip-path: inset(0 0 32% 0); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* Word-by-word reveal (contact headline) */
.reveal-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-words .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s var(--ease-out-expo) calc(var(--wi, 0) * 55ms);
}
.reveal-words.is-in .word > span { transform: translateY(0); }

/* Cursor-tracking glow + hairline highlight for cards */
.card-glow { position: relative; isolation: isolate; }
.card-glow::before,
.card-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card-glow::before {
  background: radial-gradient(
    260px circle at var(--gx, 50%) var(--gy, 50%),
    color-mix(in srgb, var(--color-primary) 20%, transparent),
    transparent 62%
  );
}
.card-glow::after {
  border: 1px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
}
.card-glow:hover::before,
.card-glow:hover::after { opacity: 1; }

/* Tilt + magnetic targets — transforms are driven inline by JS */
.tilt { transition: transform 0.4s var(--ease-out-expo); transform-style: preserve-3d; }
[data-magnetic] { transition: transform 0.35s var(--ease-out-expo); will-change: transform; }

/* Tabular figures so count-ups don't jitter the layout */
.count-up { font-variant-numeric: tabular-nums; }

/* Animated underline that wipes in from the left */
.link-underline {
  background-image: linear-gradient(var(--color-primary), var(--color-primary));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  text-decoration: none;
  /* transform included so links that lift on hover (.service-block__link)
     keep their transition when this class is layered on by main.js */
  transition: background-size 0.4s var(--ease-out-expo), color 0.25s ease, transform 0.2s ease-in-out;
}
.link-underline:hover { background-size: 100% 1.5px; }

/* Industry tags — acid fill sweeps across on hover */
.industry-list li {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.industry-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-primary);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-out-expo);
}
.industry-list li:hover {
  color: #1d1d1d;
  border-color: var(--color-primary);
}
.industry-list li:hover::before { transform: translateX(0); }

/* Case cards — duotone settles to color, image pushes in, arrow + base
   line draw, all reading as one engineered hover gesture */
.case-card { position: relative; }
.case-card__img {
  filter: grayscale(0.45) contrast(1.05);
  transition: transform 0.7s var(--ease-out-expo), filter 0.7s var(--ease-out-expo);
}
.case-card:hover .case-card__img {
  transform: scale(1.07);
  filter: grayscale(0) contrast(1);
}
.case-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.case-card__label::after {
  content: "→";
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}
.case-card:hover .case-card__label::after {
  transform: translateX(0);
  opacity: 1;
}
.case-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out-expo);
}
.case-card:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .reveal-words .word > span { transform: none !important; }
  .scroll-progress { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring,
  .cursor-glass { display: none; }
}
