/* ============================================================
   Apple Dusk design system
   Arc: light canvas flowing into a charcoal showcase band.
   Type: Archivo variable, airy light display weights.
   Accent: single blue, used precisely.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color - light canvas */
  --bg: oklch(98.2% 0 0);            /* #fafafa */
  --surface: oklch(96.8% 0.002 285); /* #f5f5f7 */
  --ink: oklch(24.2% 0.005 285);     /* #1d1d1f */
  --muted: oklch(55% 0.008 285);     /* #6e6e73 */
  --line: oklch(86.8% 0.004 285);    /* #d2d2d7 */
  --accent: oklch(54% 0.163 255);    /* #0066cc */
  --accent-hover: oklch(58% 0.175 255); /* #0071e3 */
  --field: oklch(100% 0 0);

  /* Color - charcoal band (never pure black) */
  --d-bg: oklch(24.2% 0.005 285);    /* #1d1d1f */
  --d-surface: oklch(29% 0.006 285); /* #2a2a2d */
  --d-ink: oklch(96.8% 0.002 285);   /* #f5f5f7 */
  --d-muted: oklch(72% 0.006 285);   /* #a1a1a6 */
  --d-line: oklch(36% 0.008 285);    /* #3d3d41 */
  --d-accent: oklch(70% 0.152 245);  /* #2997ff */

  /* Type scale */
  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-display: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);
  --text-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  --text-h3: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  --text-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --text-small: 0.875rem;

  /* Vertical rhythm: 75 / 100 / 150 */
  --s1: clamp(48px, 4vw + 24px, 75px);
  --s2: clamp(60px, 5vw + 28px, 100px);
  --s3: clamp(88px, 7vw + 40px, 150px);

  /* Shape: one radius system */
  --radius-media: 18px;
  --radius-pill: 980px;

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[id] {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 420;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

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

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 60;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Components like .button set display, which would otherwise override the hidden attribute. */
[hidden] {
  display: none !important;
}

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

.shell {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  height: 60px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent);
}

.brand {
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 22px;
  width: auto;
}

/* Header sits on light ground by default and swaps to the white logo over the dusk band. */
.brand-logo-dark,
.site-header.on-dark .brand-logo-light {
  display: none;
}

.site-header.on-dark .brand-logo-dark {
  display: block;
}

.footer-brand .brand-logo {
  height: 26px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 0.8125rem;
  font-weight: 480;
  letter-spacing: 0.01em;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s var(--ease-out);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:last-child {
  color: var(--ink);
  font-weight: 580;
}

/* Header adapts while the charcoal band is in view */
.site-header.on-dark {
  background: color-mix(in srgb, var(--d-bg) 68%, transparent);
  color: var(--d-ink);
}

.site-header.on-dark .site-nav a {
  color: var(--d-muted);
}

.site-header.on-dark .site-nav a:hover {
  color: var(--d-ink);
}

.site-header.on-dark .site-nav a:last-child {
  color: var(--d-ink);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.nav-toggle span:first-of-type {
  top: 16px;
}

.nav-toggle span:last-of-type {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] span:first-of-type {
  top: 19px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-of-type {
  top: 19px;
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------
   Hero - asymmetric split, light
   ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(56px, 8vh, 96px) var(--gutter) var(--s2);
  min-height: calc(100dvh - 60px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 520;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  font-weight: 560;
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 420;
  line-height: 1.5;
  color: var(--muted);
}

.hero-support {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.compact-service-line {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 32%, transparent);
}

.button:active {
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease-out);
}

.text-link::after {
  content: "\2192";
  font-weight: 400;
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

.text-link:hover::after {
  transform: translateX(3px);
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  box-shadow: 0 32px 80px -24px rgb(0 0 0 / 0.35);
}

/* ------------------------------------------------------------
   Selected clients
   ------------------------------------------------------------ */

.client-section {
  display: grid;
  gap: 22px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--s1);
}

.client-section-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.client-section-copy h2 {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  font-weight: 420;
  line-height: 1.45;
  color: var(--muted);
}

.client-logo-grid {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.2vw, 44px);
  flex-wrap: wrap;
}

.client-logo-item {
  position: relative;
  display: inline-grid;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.client-logo-item + .client-logo-item::before {
  content: "";
  position: absolute;
  left: calc(clamp(18px, 3.2vw, 44px) / -2);
  top: 50%;
  width: 1px;
  height: 18px;
  background: color-mix(in srgb, var(--line) 76%, transparent);
  transform: translateY(-50%);
}

.client-logo-item:is(a):hover,
.client-logo-item:is(a):focus-visible {
  color: var(--ink);
}

.client-logo-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 34px;
}

.client-logo-mark img {
  max-width: min(150px, 100%);
  max-height: 34px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.68;
  transition: filter 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.client-logo-item:is(a):hover img,
.client-logo-item:is(a):focus-visible img {
  filter: none;
  opacity: 1;
}

.client-name {
  font-size: 0.875rem;
  font-weight: 560;
}

.client-logo-item.is-name-only {
  min-height: 40px;
  padding: 4px 0;
}

.client-logo-item.is-name-only .client-name {
  color: var(--ink);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  font-weight: 520;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.client-logo-item span:not(.client-logo-mark, .client-name, .sr-only) {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ------------------------------------------------------------
   Capabilities strip
   ------------------------------------------------------------ */

.capabilities-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: var(--s1) var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.capabilities-strip a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.capabilities-strip a:hover {
  color: var(--ink);
}

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

.section {
  padding: var(--s2) var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: var(--s1);
}

.section-heading h2 {
  margin: 0;
  max-width: 24ch;
  font-size: var(--text-h2);
  font-weight: 340;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-lede {
  margin: calc(var(--s1) * -0.55) 0 var(--s1);
  max-width: 68ch;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Funnel - full-width statement rows, no cards
   ------------------------------------------------------------ */

.funnel-section .proof-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.funnel-section .proof-grid article {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 16px clamp(24px, 4vw, 64px);
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.funnel-section h3 {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.funnel-section p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.proof-grid.compact {
  border-top-color: color-mix(in srgb, var(--line) 48%, transparent);
}

.proof-grid.compact article:last-child {
  border-bottom: 0;
}

/* ------------------------------------------------------------
   Services - definition rows, editorial
   ------------------------------------------------------------ */

.service-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: baseline;
  gap: 16px clamp(24px, 4vw, 64px);
  padding: 30px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  transition: padding-left 0.3s var(--ease-out);
}

.service-item:hover {
  padding-left: 10px;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ------------------------------------------------------------
   Business scenarios
   ------------------------------------------------------------ */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.scenario-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--bg);
}

.scenario-grid h3 {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.scenario-grid p {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Charcoal band - everything after the arc turns
   ------------------------------------------------------------ */

.dusk-band {
  background: var(--d-bg);
  color: var(--d-ink);
}

.dusk-band :focus-visible {
  outline-color: var(--d-accent);
}

.dusk-band .section-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s3) var(--gutter);
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.split-copy h2 {
  margin: 0;
  max-width: 16ch;
  font-size: var(--text-h2);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.split-copy p {
  margin: 0;
  max-width: 66ch;
  color: var(--d-muted);
}

.portal-section,
.partnership-section,
.fit-section {
  border-top: 1px solid var(--d-line);
}

.dusk-band .eyebrow {
  color: var(--d-muted);
}

/* ------------------------------------------------------------
   Work - horizontal showcase (the signature moment)
   ------------------------------------------------------------ */

.work-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: var(--s1);
}

.work-head h2 {
  margin: 0;
  max-width: 22ch;
  font-size: var(--text-h2);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.work-pan {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.work-pan::-webkit-scrollbar {
  display: none;
}

.work-pan.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.work-panel {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: 0 var(--gutter);
}

.work-media {
  margin: 0;
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: auto;
}

@supports (animation-timeline: view()) {
  .work-media img {
    animation: work-drift linear both;
    animation-timeline: view(inline);
    animation-range: entry 0% exit 100%;
  }

  @keyframes work-drift {
    from {
      transform: scale(1.08) translateX(-2.5%);
    }
    to {
      transform: scale(1.08) translateX(2.5%);
    }
  }
}

.work-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-block: var(--s1);
}

.work-copy h3 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.625rem);
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.work-copy > p {
  margin: 0;
  color: var(--d-muted);
  max-width: 44ch;
}

.work-facts {
  margin: 0;
  display: grid;
  gap: 14px;
}

.work-facts div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
}

.work-facts dt {
  font-size: 0.75rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted);
  padding-top: 2px;
}

.work-facts dd {
  margin: 0;
  color: var(--d-ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.work-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.dusk-band .button {
  background: var(--d-ink);
  color: var(--d-bg);
}

.dusk-band .button:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}

.dusk-band .text-link {
  color: var(--d-accent);
  border-bottom-color: color-mix(in srgb, var(--d-accent) 40%, transparent);
}

.dusk-band .text-link:hover {
  border-bottom-color: var(--d-accent);
}

.muted-action {
  color: var(--d-muted);
  font-size: 0.9375rem;
}

.work-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: var(--s1) 0 0;
}

.work-progress button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--d-line);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), width 0.3s var(--ease-out);
}

.work-progress button[aria-current="true"] {
  width: 48px;
  background: var(--d-ink);
}

/* ------------------------------------------------------------
   Process - sticky title, staggered steps
   ------------------------------------------------------------ */

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}

.process-title {
  position: sticky;
  top: 108px;
  align-self: start;
}

.process-title h2 {
  margin: 0;
  max-width: 20ch;
  font-size: var(--text-h2);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.process-list {
  display: grid;
  gap: clamp(32px, 4vw, 52px);
}

.process-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: baseline;
}

.process-list span {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 520;
  color: var(--d-accent);
}

.process-list h3 {
  margin: 0 0 8px;
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.process-list p {
  margin: 0;
  color: var(--d-muted);
  max-width: 56ch;
}

/* ------------------------------------------------------------
   About - image and text split
   ------------------------------------------------------------ */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
}

.about-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.about-copy h2 {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.about-points {
  display: grid;
  gap: 0;
  align-self: stretch;
  border-top: 1px solid var(--d-line);
}

.about-points article {
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--d-line) 60%, transparent);
}

.about-points h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 520;
}

.about-points p {
  margin: 0;
  color: var(--d-muted);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------
   Results statement
   ------------------------------------------------------------ */

.results-section {
  border-top: 1px solid var(--d-line);
}

.results-section h2 {
  margin: 0 0 20px;
  max-width: 30ch;
  font-size: var(--text-h2);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.results-section p {
  margin: 0;
  max-width: 62ch;
  color: var(--d-muted);
}

/* ------------------------------------------------------------
   About page
   ------------------------------------------------------------ */

.about-page {
  background: var(--bg);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(72px, 10vh, 128px) var(--gutter) var(--s2);
}

.about-hero h1 {
  margin: 14px 0 28px;
  max-width: 12ch;
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.about-hero-copy > p:last-child {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

.about-hero-media {
  margin: 0;
}

.about-hero-media img {
  width: 100%;
  border-radius: var(--radius-media);
  box-shadow: 0 32px 80px -24px rgb(0 0 0 / 0.32);
}

.about-mission,
.about-editorial,
.about-scope,
.about-split,
.principles-section {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s2) var(--gutter);
}

.about-mission {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.about-statement p {
  position: sticky;
  top: 108px;
  margin: 0;
  max-width: 16ch;
  font-size: var(--text-h2);
  font-weight: 320;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.about-prose {
  display: grid;
  gap: 18px;
}

.about-prose h2,
.about-section-heading h2 {
  margin: 0;
  max-width: 22ch;
  font-size: var(--text-h2);
  font-weight: 340;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.about-prose p {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
}

.about-section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: var(--s1);
}

.about-row-list,
.scope-list,
.principles-list {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.about-row-list article,
.scope-list article,
.principles-list article {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 18px clamp(24px, 4vw, 64px);
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.about-row-list h3,
.principles-list h3,
.scope-list span {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.about-row-list p,
.scope-list p,
.principles-list p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

.about-scope,
.principles-section {
  background: var(--surface);
  max-width: none;
}

.about-scope > *,
.principles-section > * {
  max-width: var(--max);
  margin-inline: auto;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-split .about-section-heading {
  margin-bottom: 0;
}

.about-final-cta {
  max-width: var(--max);
  margin: var(--s2) auto;
  padding: var(--s2) var(--gutter);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.about-final-cta h2 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-size: var(--text-h2);
  font-weight: 340;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.about-final-cta p {
  margin: 0 0 28px;
  max-width: 54ch;
  color: var(--muted);
}

/* ------------------------------------------------------------
   CTA + contact
   ------------------------------------------------------------ */

.cta-section {
  text-align: left;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s3) var(--gutter) 0;
}

.cta-section h2 {
  margin: 0 0 20px;
  max-width: 18ch;
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.cta-section p {
  margin: 0 0 32px;
  max-width: 52ch;
  color: var(--d-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s3) var(--gutter);
}

.contact-copy h2 {
  margin: 0 0 16px;
  font-size: var(--text-h2);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.contact-copy p {
  margin: 0 0 28px;
  color: var(--d-muted);
  max-width: 40ch;
}

.contact-note {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--d-line);
  border-radius: var(--radius-media);
}

.contact-note + .contact-note {
  margin-top: 14px;
}

.contact-note span {
  font-size: 0.75rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted);
}

.contact-note p {
  margin: 0;
  max-width: 42ch;
  font-size: 0.9375rem;
}

.contact-note a {
  color: var(--d-accent);
  text-decoration: none;
  font-weight: 500;
}

.inquiry-form {
  display: grid;
  gap: 20px;
}

.wizard-progress {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--d-line);
}

.wizard-progress p {
  margin: 0;
  color: var(--d-muted);
  font-size: 0.8125rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--d-line);
}

.progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--d-accent);
  transition: width 0.3s var(--ease-out);
}

.wizard-progress ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--d-muted);
  font-size: 0.75rem;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-progress li[aria-current="true"] {
  color: var(--d-ink);
}

.wizard-progress li[data-complete="true"] {
  color: var(--d-accent);
}

.form-step {
  display: grid;
  gap: 20px;
}

.form-step[hidden] {
  display: none;
}

.form-step > legend,
.review-step h3,
.scheduling-step h3 {
  margin: 0;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.45rem);
  font-weight: 340;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.form-step > p,
.review-step > p,
.scheduling-step > p {
  margin: 0;
  max-width: 58ch;
  color: var(--d-muted);
}

.step-kicker {
  color: var(--d-accent);
  font-size: 0.8125rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.planning-stack {
  display: grid;
  gap: 20px;
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.inquiry-form label,
.inquiry-form fieldset {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--d-ink);
}

.inquiry-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.inquiry-form legend {
  padding: 0;
  margin-bottom: 4px;
}

.optional {
  color: var(--d-muted);
  font-weight: 420;
}

.required-marker {
  color: oklch(78% 0.16 35);
  font-weight: 620;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inquiry-form .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-weight: 420;
  line-height: 1.5;
  color: var(--d-muted);
}

.inquiry-form .consent-check input {
  margin-top: 3px;
}

.inquiry-form .consent-check a {
  color: var(--d-accent);
}

.check-grid label,
.choice-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--d-line) 78%, transparent);
  border-radius: 12px;
  font-weight: 420;
  color: var(--d-muted);
}

.inquiry-form label:has(input:checked) {
  border-color: color-mix(in srgb, var(--d-accent) 70%, var(--d-line));
  color: var(--d-ink);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: var(--d-surface);
  color: var(--d-ink);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.inquiry-form ::placeholder {
  color: color-mix(in srgb, var(--d-muted) 70%, transparent);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--d-accent);
}

.inquiry-form [aria-invalid="true"] {
  border-color: oklch(68% 0.19 25);
}

.inquiry-form [data-invalid="true"] > legend {
  color: oklch(78% 0.16 35);
}

.inquiry-form [data-invalid="true"] .choice-row label {
  border-color: color-mix(in srgb, oklch(68% 0.19 25) 70%, var(--d-line));
}

.field-error {
  color: oklch(78% 0.16 35);
  font-size: 0.8125rem;
  font-weight: 500;
}

.inquiry-form input[type="checkbox"],
.inquiry-form input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--d-accent);
}

.conditional-details {
  display: grid;
  gap: 14px;
}

.conditional-details > div {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--d-line);
  border-radius: var(--radius-media);
}

.conditional-details h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 520;
}

.inquiry-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--d-muted) 50%),
    linear-gradient(135deg, var(--d-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.inquiry-form .button {
  justify-self: start;
  margin-top: 8px;
}

.wizard-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.wizard-actions {
  padding-top: 8px;
}

.form-status {
  margin: 8px 0 0;
  color: var(--d-muted);
  font-size: 0.9375rem;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--d-accent);
  font-weight: 500;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.scheduling-step h3,
.confirmation-panel h3 {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.scheduling-step p,
.schedule-panel p,
.request-panel p,
.confirmation-panel p {
  margin: 0;
  color: var(--d-muted);
  max-width: 58ch;
}

.schedule-panel,
.request-panel,
.confirmation-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--d-line);
  border-radius: var(--radius-media);
}

.fine-print {
  font-size: 0.875rem;
}

.inquiry-form code {
  color: var(--d-ink);
  font-size: 0.9em;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--d-line);
  border-radius: var(--radius-media);
}

.review-section > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-section h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 560;
}

.review-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.review-section dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
}

.review-section dt {
  color: var(--d-muted);
  font-size: 0.8125rem;
  font-weight: 520;
}

.review-section dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--d-ink);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
  background: var(--d-bg);
  color: var(--d-ink);
  border-top: 1px solid var(--d-line);
  padding: var(--s2) var(--gutter) var(--s1);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px;
  max-width: none;
}

.site-footer :focus-visible {
  outline-color: var(--d-accent);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 620;
  text-decoration: none;
}

.footer-tagline {
  margin-bottom: 14px !important;
  color: var(--d-ink) !important;
  font-weight: 560;
}

.site-footer p {
  margin: 0;
  color: var(--d-muted);
  font-size: 0.9375rem;
  max-width: 44ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-content: start;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--d-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.footer-links a:hover {
  color: var(--d-ink);
}

/* ------------------------------------------------------------
   Motion - reveal on scroll (motivated: hierarchy + sequence)
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--reveal-order, 0) * 90ms);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .reveal-img {
    clip-path: inset(4% 3% 4% 3% round 18px);
    opacity: 0;
    transition: clip-path 1.1s var(--ease-out), opacity 0.9s var(--ease-out);
  }

  .reveal-img.is-visible {
    clip-path: inset(0 0 0 0 round 18px);
    opacity: 1;
  }

  .hero-copy > * {
    opacity: 0;
    transform: translateY(22px);
    animation: hero-in 1s var(--ease-out) forwards;
  }

  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.28s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.4s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.52s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.64s; }

  @keyframes hero-in {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero-visual {
    opacity: 0;
    transform: scale(0.985);
    animation: hero-media 1.3s var(--ease-out) 0.3s forwards;
  }

  @keyframes hero-media {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-img,
  .hero-copy > *,
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: var(--s1);
  }

  .work-panel {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .work-copy {
    padding-block: 0 var(--s1);
  }

  .process-layout,
  .about-layout,
  .about-hero,
  .about-mission,
  .about-split,
  .split-copy,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-statement p {
    position: static;
    max-width: 22ch;
  }

  .client-section-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-title {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.0625rem;
    padding: 10px 0;
  }

  .site-header.on-dark .site-nav {
    background: color-mix(in srgb, var(--d-bg) 94%, transparent);
    border-bottom-color: var(--d-line);
  }

  .funnel-section .proof-grid article,
  .service-item,
  .about-row-list article,
  .scope-list article,
  .principles-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-hero h1 {
    max-width: 11ch;
  }

  .work-facts div {
    grid-template-columns: 80px 1fr;
  }

  .process-list article {
    grid-template-columns: 44px 1fr;
  }

  .form-grid,
  .check-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid article {
    min-height: 0;
  }

  .client-logo-grid {
    gap: 12px 24px;
  }

  .client-logo-item {
    min-height: 34px;
    padding: 2px 0;
  }

  .client-logo-item + .client-logo-item::before {
    left: -12px;
    height: 14px;
  }

  .choice-row {
    display: grid;
  }

  .wizard-progress ol {
    display: none;
  }

  .review-section dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wizard-actions {
    align-items: stretch;
  }

  .wizard-actions .button,
  .wizard-actions .text-button {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------ */

.legal {
  max-width: 72ch;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: var(--text-h2);
  font-weight: 340;
  letter-spacing: -0.025em;
}

.legal h2 {
  margin: 2em 0 0.5em;
  font-size: var(--text-h3);
}

.legal .muted {
  color: var(--muted);
}

/* ------------------------------------------------------------
   Booking form + inline calendar (/contact/)
   ------------------------------------------------------------ */

.booking-flow {
  min-width: 0;
}

.booking-calendar h3 {
  margin: 0 0 16px;
  font-size: var(--text-h3);
  color: var(--d-ink);
}

.booking-calendar iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: var(--radius-media);
  background: var(--field);
}
