/* Akhdani Reka Solusi — landing page
   Tokens follow the Akhdani Design System (orange / grey / white, Montserrat + Nunito Sans). */

:root {
  --orange-900: #8a5309;
  --orange-700: #c67a10;
  --orange-600: #e08813;
  --orange-500: #f7971d;
  --orange-400: #f89b32;
  --orange-300: #fbb865;
  --orange-200: #fdd9ab;
  --orange-100: #fef2e2;

  --grey-950: #212121;
  --grey-900: #2b2b2b;
  --grey-800: #353535;
  --grey-700: #676767;
  --grey-600: #6d6d6d;
  --grey-500: #989897;
  --grey-400: #b3b3b3;
  --grey-300: #d9d9d9;
  --grey-200: #e6e6e6;
  --grey-100: #f2f2f2;
  --grey-050: #f9f9f9;
  --white: #ffffff;

  --font-display: "ARS Maquette Pro", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "ARS Maquette Pro", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
  --dur-reveal: 520ms;

  --measure: 1180px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--white);
  color: var(--grey-700);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--orange-500) 70%, transparent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--grey-900); color: var(--white);
  padding: 10px 14px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared pieces ---------- */

/* The clipped orange section rule from the brand (84×5, right edge cut). */
.rule {
  display: block; width: 84px; height: 5px; background: var(--orange-500);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  margin-bottom: 22px;
}

.h-section {
  font: 700 clamp(28px, 3.2vw, 40px)/1.15 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--grey-900);
  text-wrap: balance;
}

.lede { margin-top: 16px; font-size: 18px; line-height: 1.6; max-width: 46ch; color: var(--grey-700); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 4px;
  font: 700 15px/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange-500); color: var(--grey-900); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--orange-500) 60%, transparent); }
.btn-ghost { border-color: var(--grey-300); color: var(--grey-900); background: transparent; }
.btn-ghost:hover { background: var(--grey-100); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--grey-200); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; padding: 6px 0; }
.logo { width: 132px; height: auto; color: var(--grey-600); }
.logo-word { fill: currentColor; }
.logo-chev-mid { fill: #676767; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font: 600 14px/1 var(--font-display); color: var(--grey-700); text-decoration: none;
  padding: 8px 0; position: relative; transition: color var(--dur-base) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange-500); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--grey-900); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- Hero (slide 3) ---------- */

.hero { padding-top: clamp(40px, 7vh, 88px); background: var(--white); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(28px, 4vh, 44px); align-items: end;
}
.hero-head { grid-column: 1 / -1; }
.hero-copy { padding-bottom: 6px; }
.hero-name {
  display: flex; align-items: baseline; gap: 10px;
  font: 700 16px/1 var(--font-display); color: var(--grey-900); margin-bottom: 22px;
}
.hero-abbr { font-size: 13px; color: var(--orange-700); letter-spacing: .08em; }
.hero-title {
  font: 800 clamp(40px, 6.9vw, 100px)/1.0 var(--font-display);
  letter-spacing: -0.035em; color: var(--grey-900);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; }
.hero-lede { margin-top: 0; max-width: 56ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-photo {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--grey-200);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo picture { display: contents; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: grayscale(1); }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(48px, 8vh, 88px); padding-bottom: clamp(56px, 10vh, 120px);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--grey-200); padding-top: 18px; position: relative; }
.fact::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 40px; background: var(--orange-500);
}
.fact dd { font: 700 clamp(34px, 3.6vw, 52px)/1 var(--font-display); color: var(--grey-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact dt { margin-top: 10px; font-size: 14px; color: var(--grey-600); }

/* Page-load sequence: the one orchestrated entrance on the page */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); animation: lineUp 900ms var(--ease-out) forwards; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: 110ms; }
  .js .hero-name, .js .hero-lede, .js .hero-actions { opacity: 0; animation: fadeUp 700ms var(--ease-out) forwards; }
  .js .hero-name { animation-delay: 0ms; }
  .js .hero-lede { animation-delay: 380ms; }
  .js .hero-actions { animation-delay: 480ms; }
  .js .hero-photo { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); animation: photoIn 1100ms var(--ease-out) 200ms forwards; }
  .js .fact { opacity: 0; animation: fadeUp 700ms var(--ease-out) forwards; }
  .js .fact:nth-child(1) { animation-delay: 620ms; }
  .js .fact:nth-child(2) { animation-delay: 680ms; }
  .js .fact:nth-child(3) { animation-delay: 740ms; }
  .js .fact:nth-child(4) { animation-delay: 800ms; }
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes photoIn { to { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); } }

/* ---------- Principles: three line illustrations drawn by scroll ---------- */

.principles { position: relative; height: 320vh; background: var(--grey-900); color: var(--grey-400); }
.principles-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.principles-title {
  font: 700 clamp(30px, 3.8vw, 54px)/1.1 var(--font-display); letter-spacing: -0.025em;
  color: var(--white); text-align: center; text-wrap: balance;
}
.js .principles-title .w { color: var(--grey-700); transition: color 260ms var(--ease); }
.js .principles-title .w.on { color: var(--white); }

.principle-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 8vh, 88px); }
.principle { position: relative; display: grid; justify-items: center; text-align: center; gap: 0; }
.principle::before { /* soft light behind the principle being drawn */
  content: ""; position: absolute; left: 50%; top: 0; width: 340px; aspect-ratio: 1; transform: translate(-50%, -18%);
  background: radial-gradient(closest-side, rgba(247, 151, 29, .16), rgba(247, 151, 29, 0));
  opacity: 0; transition: opacity 700ms var(--ease); pointer-events: none;
}
.principle.is-current::before { opacity: 1; }
.principle > * { position: relative; }
.p-illo { width: min(236px, 66%); height: auto; overflow: visible; }
.principle h3 { margin-top: clamp(24px, 4vh, 40px); font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--font-display); color: var(--grey-500); transition: color 420ms var(--ease); max-width: 21ch; text-wrap: balance; }
.principle p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--grey-600); max-width: 30ch; transition: color 420ms var(--ease); }
.principle.is-on h3 { color: var(--white); }
.principle.is-on p { color: var(--grey-400); }

.p-illo * { vector-effect: non-scaling-stroke; }
.p-faint { fill: none; stroke: #444444; stroke-width: 1; }
.p-draw { fill: none; stroke: var(--grey-200); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: var(--d, 1); }
.p-thin { stroke-width: 1; stroke: var(--grey-500); }
.p-core { fill: var(--orange-500); opacity: var(--c, 0); transform-box: fill-box; transform-origin: center; transform: scale(calc(.4 + var(--c, 0) * .6)); }
.p-echo path { fill: none; stroke: var(--grey-300); stroke-width: 1; stroke-linejoin: round; }
.p-echo { transform-box: view-box; transform-origin: 120px 120px; opacity: var(--eo, 0); transform: scale(var(--es, 1)) rotate(var(--er, 0deg)); }
.principle.is-current .p-draw:not(.p-thin) { stroke: var(--white); }
.principle.is-current .p-hex { stroke: var(--orange-400); }

/* ---------- Services (slide 5): bento of line illustrations ---------- */

.services {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(40px, 6vh, 72px) clamp(88px, 13vh, 150px); background: var(--grey-900); color: var(--grey-400);
}
.services::before { /* warm haze across the top row, the brand's orange as light */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 34%, rgba(247, 151, 29, .17), rgba(247, 151, 29, 0) 70%),
    radial-gradient(40% 36% at 12% 80%, rgba(248, 155, 50, .07), rgba(248, 155, 50, 0) 70%);
}
.services .h-section { color: var(--white); }
.services-head { margin-bottom: clamp(32px, 5vh, 56px); }

.svc-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 16px; }
.svc { grid-column: span 8; }
.svc--pipe { grid-column: span 10; }
.svc--staff, .svc--adv { grid-column: span 7; }

.svc {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px;
  min-height: 420px; padding: 26px 28px 30px; border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .025);
  transition: border-color var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease);
}
.svc:hover { border-color: rgba(247, 151, 29, .55); background: rgba(255, 255, 255, .04); }
.svc-name { font: 600 13px/1.3 var(--font-display); color: var(--grey-400); letter-spacing: .01em; }
.svc-illo { width: 100%; height: 100%; max-height: 230px; align-self: center; overflow: visible; }
.svc-tag { font: 600 clamp(19px, 1.7vw, 23px)/1.25 var(--font-display); color: var(--white); letter-spacing: -0.01em; max-width: 24ch; text-wrap: balance; }
.svc-desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--grey-400); max-width: 46ch; }

/* line art */
.svc-illo * { vector-effect: non-scaling-stroke; }
.svc-illo .d { fill: none; stroke: var(--grey-200); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.svc-illo .faint { stroke: var(--grey-600); stroke-width: 1.2; }
.svc-illo .accent-line { stroke: var(--orange-500); }
.svc-illo .fillcard { fill: #303030; }
.svc-illo .bar, .svc-illo .rise { fill: none; stroke: var(--grey-700); stroke-width: 5; stroke-linecap: round; transform-box: fill-box; }
.svc-illo .bar { transform-origin: left center; transform: scaleX(0); }
.svc-illo .rise { stroke-width: 4; stroke: var(--grey-500); transform-origin: center bottom; transform: scaleY(0); }
.svc-illo .accent { stroke: var(--orange-500); }
.svc-illo .dot { fill: var(--grey-500); opacity: 0; }
.svc-illo .end { fill: var(--orange-500); opacity: 0; }
.svc-illo .end.hollow { fill: none; stroke: var(--orange-500); stroke-width: 1.4; }
.svc-illo .frame { fill: none; stroke: var(--grey-600); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0; }
.svc-illo .flow { fill: none; stroke: var(--orange-500); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 12; stroke-dashoffset: calc(var(--flow, 0) * -1px); opacity: 0; }
.svc-illo .flow-back { stroke-dashoffset: calc(var(--flow, 0) * 1px); stroke: var(--orange-300); }
.svc-illo .needle { stroke: var(--white); stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(-80deg); }
.svc-illo .stack-card { transform: translate(18px, -14px); opacity: 0; }
.svc-illo .join { transform: translateX(-46px); opacity: 0; }

.js .svc[data-reveal] .svc-copy, .js .svc[data-reveal] .svc-name { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.js .svc[data-reveal].is-in .svc-copy, .js .svc[data-reveal].is-in .svc-name { opacity: 1; transform: none; }
.js .svc[data-reveal].is-in .svc-copy { transition-delay: 200ms; }

.svc.is-in .d { stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease) var(--dl, 0s); }
.svc.is-in .bar { transform: scaleX(1); transition: transform 700ms var(--ease-out) var(--dl, 0s); }
.svc.is-in .rise { transform: scaleY(1); transition: transform 800ms var(--ease-out) var(--dl, 0s); }
.svc.is-in .dot, .svc.is-in .frame { opacity: 1; transition: opacity 600ms var(--ease) .3s; }
.svc.is-in .end { opacity: 1; transition: opacity 400ms var(--ease) 1.2s; }
.svc.is-in .flow { opacity: .9; transition: opacity 600ms var(--ease) 1.3s; }
.svc.is-in .needle { transform: rotate(52deg); transition: transform 1600ms var(--ease-out) .7s; }
.svc.is-in .stack-card { transform: none; opacity: 1; transition: transform 800ms var(--ease-out) var(--dl, 0s), opacity 500ms var(--ease) var(--dl, 0s); }
.svc.is-in .join { transform: none; opacity: 1; transition: transform 900ms var(--ease-out) .7s, opacity 500ms var(--ease) .7s; }

/* ---------- Beyond the surface (slide 6) ---------- */

.surface { position: relative; height: 560vh; background: var(--grey-050); }
.surface-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(var(--header-h) + clamp(16px, 3vh, 32px)) var(--gutter) clamp(18px, 3.5vh, 36px);
  max-width: calc(var(--measure) + 2 * var(--gutter) + 80px); margin-inline: auto;
}
.surface-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: end; }
.surface-head .rule { margin-bottom: 16px; }
.surface-lede { font-size: 17px; line-height: 1.6; max-width: 52ch; padding-bottom: 4px; }

.surface-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; min-height: 0; }

/* iceberg */
.berg-wrap { position: relative; min-height: 0; height: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.berg { grid-column: 2; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.berg .face { stroke-width: .6; stroke-linejoin: round; transition: stroke 400ms var(--ease); }
.berg .tip.is-active .face { stroke: var(--orange-500); stroke-width: 1.1; }
.berg .band-outline { opacity: 0; transition: opacity 500ms var(--ease); }
.berg .band-outline.is-active { opacity: 1; }
.berg .band-outline.is-past { opacity: .32; }
.berg .hl-face { fill: rgba(247, 151, 29, .12); stroke: var(--orange-500); stroke-width: 1.1; stroke-linejoin: round; }
.berg .tick { stroke: var(--grey-500); stroke-width: 1; }
.berg .water-label { font: 600 18px var(--font-display); fill: var(--grey-500); }
.berg .bracket-line { fill: none; stroke: var(--grey-400); stroke-width: 2; transition: stroke 400ms var(--ease); }
.berg .bracket.is-on .bracket-line { stroke: var(--orange-500); }

.berg-note {
  position: absolute; left: 0; top: 0; width: 140px; text-align: right;
  transform: translateY(calc(var(--y, -999px) - 50%));
  display: grid; gap: 2px; pointer-events: none;
}
.berg-note b { font: 700 15px/1.25 var(--font-display); color: var(--grey-800); transition: color 400ms var(--ease); }
.berg-note span { font-size: 13px; line-height: 1.35; color: var(--grey-500); }
.berg-note.is-on b { color: var(--orange-700); }

/* layer stack */
.stack { position: relative; min-height: 0; display: grid; place-items: center; perspective: 2400px; perspective-origin: 50% 20%; }
.stack-scene {
  --rx: 0deg; --rz: 0deg; --sc: 1; --ty: 0px;
  position: relative; width: min(520px, 84%, calc((100svh - 320px) * 0.86)); aspect-ratio: 16 / 10;
  transform-style: preserve-3d;
  transform: translateY(var(--ty)) rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--sc));
}
.card {
  --z: 0px; --o: 1;
  position: absolute; inset: 0; border-radius: 8px;
  background: var(--white); border: 1px solid var(--grey-200);
  box-shadow: 0 1px 0 rgba(43, 43, 43, .04), 0 36px 50px -34px rgba(43, 43, 43, .42);
  transform: translateZ(var(--z)); opacity: var(--o);
  transition: border-color 320ms var(--ease), background-color 320ms var(--ease);
}
.card-label { position: absolute; left: 5%; right: 4%; bottom: 5.5%; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.card-label h4 { margin: 0; font: 700 19px/1 var(--font-display); color: var(--grey-500); letter-spacing: -0.01em; transition: color 320ms var(--ease); }
.pills { display: flex; gap: 6px; overflow: hidden; }
.pills li { font: 600 11px/1 var(--font-display); padding: 6px 9px; border-radius: 999px; background: var(--grey-100); color: var(--grey-600); transition: background-color 320ms var(--ease), color 320ms var(--ease); }
.card.is-active { border-color: var(--orange-300); }
.card.is-active h4, .card.is-seen h4 { color: var(--grey-900); }
.card.is-active .pills li { background: var(--orange-100); color: var(--orange-900); }
.card--base { background: var(--orange-100); border-color: var(--orange-200); }
.card--base h4, .card--base.is-seen h4 { color: var(--orange-700); }
.card--base .pills li { background: var(--white); color: var(--orange-900); }
.card--base.is-active .pills li { background: var(--orange-200); }

/* app mock on the top card */
.app-ui { position: absolute; inset: 4.5% 4.5% 22% 4.5%; display: grid; grid-template-columns: 15% 1fr; gap: 3%; }
.app-ui i { display: block; border-radius: 3px; background: var(--grey-100); }
.app-side { display: grid; align-content: start; gap: 9%; padding-top: 2%; border-right: 1px solid var(--grey-200); padding-right: 14%; }
.app-side i { height: 7px; }
.app-side .logo-dot { width: 18px; height: 18px; border-radius: 4px; background: var(--orange-500); margin-bottom: 8px; }
.app-side .on { background: var(--orange-200); }
.app-main { display: grid; grid-template-rows: auto auto 1fr; gap: 6%; min-height: 0; }
.app-top { display: flex; justify-content: space-between; }
.app-top i:first-child { width: 34%; height: 9px; background: var(--grey-300); }
.app-top i:last-child { width: 14%; height: 9px; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.app-kpis i { height: 34px; background: var(--white); border: 1px solid var(--grey-200); position: relative; }
.app-kpis b { position: absolute; left: 10%; bottom: 22%; width: 44%; height: 8px; border-radius: 2px; background: var(--grey-300); }
.app-kpis b.up { background: var(--orange-400); }
.app-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5%; min-height: 0; }
.app-chart { display: flex; align-items: flex-end; gap: 6%; border-bottom: 1px solid var(--grey-200); padding: 0 4%; }
.app-chart i { flex: 1; height: var(--h); background: var(--grey-200); border-radius: 2px 2px 0 0; }
.app-chart i.on { background: var(--orange-500); }
.app-rows { display: grid; align-content: start; gap: 12%; padding-top: 4%; }
.app-rows i { height: 8px; }
.app-rows i:nth-child(odd) { width: 80%; }

/* integration floor */
.floor {
  --fz: -260px; --fo: 0;
  position: absolute; left: -4%; right: -4%; top: 24%; bottom: -12%;
  transform: translateZ(var(--fz)); opacity: var(--fo);
  display: grid; align-items: end;
  pointer-events: none;
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-self: end; }
.tiles li { border: 1px dashed var(--grey-300); border-radius: 6px; padding: 10px 12px; display: grid; gap: 3px; background: color-mix(in srgb, var(--white) 50%, transparent); }
.tiles b { font: 700 13px/1.1 var(--font-display); color: var(--grey-600); }
.tiles span { font-size: 11px; line-height: 1.1; color: var(--grey-500); }
.tiles li.is-lit { border: 1px solid var(--orange-400); background: var(--white); }
.tiles li.is-lit b { color: var(--grey-900); }


/* foot: depth progress + layer detail */
.surface-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; padding-top: 12px; border-top: 1px solid var(--grey-200); }
.depth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 10px; }
.depth li { position: relative; padding-top: 12px; font: 600 13px/1.2 var(--font-display); color: var(--grey-500); transition: color var(--dur-slow) var(--ease); }
.depth li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grey-200); transition: background-color var(--dur-slow) var(--ease); }
.depth li span { margin-right: 6px; color: var(--grey-400); font-variant-numeric: tabular-nums; }
.depth li.is-on { color: var(--grey-900); }
.depth li.is-on::before { background: var(--orange-500); }
.depth li.is-past::before { background: var(--orange-200); }
.depth li.is-past { color: var(--grey-700); }

.steps { position: relative; display: grid; min-height: 118px; }
.step {
  grid-area: 1 / 1; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 420ms var(--ease), transform 560ms var(--ease-out);
}
.step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.step h3 { font: 700 19px/1.3 var(--font-display); color: var(--grey-900); padding-top: 8px; }
.step h3 span { display: block; margin-top: 4px; font: 400 15px/1.5 var(--font-body); color: var(--grey-600); }
.step-hint { padding-top: 12px; font-size: 15px; color: var(--grey-600); display: flex; align-items: center; gap: 12px; }
.step-hint::before { content: ""; width: 1px; height: 26px; background: var(--grey-400); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips li { font: 500 12px/1 var(--font-mono); padding: 6px 8px; border-radius: 4px; border: 1px solid var(--grey-300); color: var(--grey-800); background: var(--white); }

/* ---------- Clients (slide 7) ---------- */

.clients { padding-block: clamp(88px, 14vh, 160px); background: var(--white); overflow-x: clip; }
.clients-head { margin-bottom: clamp(40px, 7vh, 72px); }
.client-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.client-group { border-top: 2px solid var(--orange-500); padding-top: 22px; }
.client-group h3 { font: 700 15px/1.3 var(--font-display); color: var(--orange-700); margin-bottom: 18px; letter-spacing: .01em; }
.client-group li {
  padding: 11px 0; border-bottom: 1px solid var(--grey-200);
  font: 600 16px/1.35 var(--font-display); color: var(--grey-900);
}
.client-group small { display: block; margin-top: 3px; font: 400 14px/1.4 var(--font-body); color: var(--grey-600); }
.js .client-group[data-reveal] li { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js .client-group.is-in li { opacity: 1; transform: none; }

/* government logo band */
.logo-band {
  position: relative; isolation: isolate;
  margin: 0 calc(50% - 50vw) clamp(48px, 8vh, 80px); padding: clamp(40px, 7vh, 72px) var(--gutter);
  background: var(--grey-050);
  border-block: 1px solid var(--grey-100);
}
.logo-band::before { /* faint warm haze behind the logos */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 70% at 50% 40%, rgba(254, 242, 226, .95), rgba(254, 242, 226, 0) 72%);
}
.logo-group { max-width: var(--measure); margin: 0 auto; }
.logo-group + .logo-group { margin-top: clamp(40px, 6vh, 64px); padding-top: clamp(36px, 5vh, 56px); border-top: 1px solid var(--grey-200); }
.band-title {
  margin: 0 0 28px;
  font: 700 15px/1.3 var(--font-display); color: var(--orange-700); letter-spacing: .01em;
}
/* 4-column logo grid: every mark sits centred in a box of the same height,
   so names and rows line up whatever the logo's shape */
.gov-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
.gov-logo { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 72px auto; justify-items: center; align-items: center; row-gap: 14px; min-width: 0; }
.gov-mark { position: relative; display: block; width: var(--w); max-width: 100%; aspect-ratio: var(--ar); }
.gov-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--dur-slow) var(--ease); }
.gov-mark .color { opacity: 0; }
.gov-logo:hover .mono { opacity: 0; }
.gov-logo:hover .color { opacity: 1; }
.gov-name { font: 600 12px/1.2 var(--font-display); color: var(--grey-500); text-align: center; transition: color var(--dur-slow) var(--ease); }
.gov-logo:hover .gov-name { color: var(--grey-800); }
.js .gov-logo[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.js .gov-logo.is-in { opacity: 1; transform: none; }
.gov-logo:nth-child(2) { transition-delay: 60ms; }
.gov-logo:nth-child(3) { transition-delay: 120ms; }
.gov-logo:nth-child(4) { transition-delay: 180ms; }
.gov-logo:nth-child(5) { transition-delay: 240ms; }
.gov-logo:nth-child(6) { transition-delay: 300ms; }
.soe-logos { row-gap: 40px; }
.soe-logos .gov-logo { grid-template-rows: 76px; }
.gov-logo:nth-child(n+7) { transition-delay: 300ms; }
.logo-more { margin-top: 32px; font-size: 14px; color: var(--grey-500); }
.client-groups.single { grid-template-columns: 1fr; }
.client-groups.single ul { columns: 3; column-gap: clamp(24px, 4vw, 56px); }
.client-groups.single li { break-inside: avoid; }

/* ---------- Join us (links to the career pages) ---------- */

.join { padding-block: clamp(64px, 10vh, 112px); background: var(--orange-100); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.join-title { font: 800 clamp(28px, 3.4vw, 46px)/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--grey-900); max-width: 16ch; }
.join-lede { margin-top: 16px; font-size: 17px; max-width: 48ch; color: var(--grey-700); }
.join-links { display: grid; gap: 0; border-top: 1px solid var(--orange-200); }
.join-link {
  position: relative; display: grid; gap: 4px; padding: 22px 48px 22px 0; border-bottom: 1px solid var(--orange-200);
  text-decoration: none; transition: padding-left var(--dur-slow) var(--ease);
}
.join-link span { font: 700 20px/1.3 var(--font-display); color: var(--grey-900); }
.join-link small { font-size: 14px; color: var(--grey-700); }
.join-link::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 14px; margin-top: -7px;
  background: var(--orange-500); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: transform var(--dur-slow) var(--ease);
}
.join-link:hover { padding-left: 8px; }
.join-link:hover::after { transform: translateX(4px); }
.join-link:hover span { color: var(--orange-900); }

/* ---------- Contact ---------- */

.contact { background: var(--grey-900); color: var(--grey-300); padding-block: clamp(80px, 13vh, 150px); position: relative; overflow: hidden; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.contact .rule { margin-bottom: 26px; }
.contact-title { font: 800 clamp(32px, 4.4vw, 60px)/1.08 var(--font-display); letter-spacing: -0.03em; color: var(--white); max-width: 16ch; }
.contact-lede { margin: 22px 0 34px; font-size: 18px; max-width: 46ch; }
.contact-info { font-style: normal; display: grid; gap: 22px; color: var(--grey-200); border-left: 1px solid var(--grey-700); padding-left: 28px; }
.contact-info span { display: block; font: 600 13px/1 var(--font-display); margin-bottom: 8px; color: var(--grey-500); }
.contact-info a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.contact-info a:hover { color: var(--orange-300); }

/* office hubs: silhouette map cards */
.hubs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 9vh, 88px); }
.hub {
  position: relative; display: grid; grid-template-rows: 190px auto; align-content: start; gap: 28px;
  min-height: 360px; padding: 28px 28px 30px; border-radius: 10px; background: var(--grey-800);
  overflow: hidden; transition: background-color var(--dur-slow) var(--ease);
}
.hub-map { width: 100%; height: 100%; overflow: visible; }
.hub-map path { fill: var(--grey-100); transition: fill 400ms var(--ease); }
.hub:hover .hub-map path { fill: var(--orange-400); }
.hub-role { font: 600 13px/1.3 var(--font-display); color: var(--grey-400); }
.hub--main .hub-role { color: var(--orange-400); }
.hub-name { margin-top: 4px; font: 800 clamp(26px, 2.6vw, 36px)/1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; color: var(--white); }
.hub-addr { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--grey-400); font-style: normal; }
.hub--main::before { content: ""; position: absolute; left: 28px; top: 0; width: 56px; height: 4px; background: var(--orange-500); }
.js .hub[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), background-color var(--dur-slow) var(--ease); }
.js .hub[data-reveal].is-in { opacity: 1; transform: none; }
.hub:nth-child(2) { transition-delay: 80ms; }
.hub:nth-child(3) { transition-delay: 160ms; }

.site-footer { background: var(--grey-950); color: var(--grey-500); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--white); }

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

@media (max-height: 800px) and (min-width: 861px) {
  .surface-lede { font-size: 15px; }
  .surface-head .h-section { font-size: 28px; }
  .surface-head .rule { margin-bottom: 10px; }
  .steps { min-height: 96px; }
  .step h3 { font-size: 17px; padding-top: 4px; }
  .chips { margin-top: 8px; }
}

@media (max-width: 1040px) and (min-width: 861px) {
  .hub { min-height: 320px; padding: 22px; }
  .client-groups.single ul { columns: 2; }
  .svc, .svc--pipe, .svc--staff, .svc--adv { grid-column: span 12; }
  .svc--pipe { grid-column: span 24; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .header-inner > .btn { margin-left: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--grey-700); padding-top: 28px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 3 / 2; max-height: 46vh; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc--pipe, .svc--staff, .svc--adv { grid-column: auto; min-height: 360px; }
  .client-groups { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .hubs { grid-template-columns: 1fr; }
  .hub { min-height: 0; grid-template-rows: 170px auto; }
  .gov-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .client-groups.single ul { columns: 1; }

  .principles { height: 300vh; }
  .principle-list { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .principle { grid-template-columns: 88px 1fr; justify-items: start; text-align: left; column-gap: 18px; align-items: center; }
  .p-illo { width: 88px; grid-row: span 2; }
  .principle::before { width: 200px; left: 44px; transform: translate(-50%, -30%); }
  .principle h3 { margin-top: 0; font-size: 17px; max-width: none; }
  .principle p { margin-top: 4px; font-size: 14px; }
  .principles-title { font-size: 28px; text-align: left; }
  .surface { height: 520vh; }
  .surface-sticky { padding-top: calc(var(--header-h) + 14px); }
  .surface-head { grid-template-columns: 1fr; gap: 0; }
  .surface-head .h-section { font-size: 26px; }
  .surface-lede { display: none; }
  .surface-visual { grid-template-columns: 1fr; grid-template-rows: 42% 58%; gap: 0; }
  .berg-wrap { grid-template-columns: 92px minmax(0, 1fr); }
  .berg-note { width: 86px; }
  .berg-note b { font-size: 12px; }
  .berg-note span { display: none; }
  .card-label { gap: 8px; }
  .card-label h4 { font-size: 13px; }
  .pills li { font-size: 9px; padding: 4px 6px; }
  .pills li:nth-child(n+3) { display: none; }
    .tiles { gap: 6px; }
  .tiles li { padding: 6px; }
  .tiles b { font-size: 9px; }
  .tiles span { display: none; }
    .surface-foot { grid-template-columns: 1fr; gap: 0; padding-top: 6px; }
  .depth { display: none; }
  .steps { min-height: 128px; }
  .step h3 { font-size: 16px; }
  .step h3 span { font-size: 13px; }
  .chips li { font-size: 11px; padding: 5px 6px; }
}

/* ---------- Reduced motion: show every state at rest ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .principles { height: auto; padding-block: 120px 96px; }
  .principles-sticky { position: static; height: auto; padding-top: 0; }
  .js .principles-title .w { color: var(--white); }
  .p-draw { --d: 0; }
  .p-core { --c: 1; }
  .p-echo { --eo: .4; }
  .principle h3 { color: var(--white); }
  .principle p { color: var(--grey-400); }

  .surface { height: auto; }
  .surface-sticky { position: static; height: auto; overflow: visible; grid-template-rows: auto auto auto; gap: 32px; }
  .surface-visual { height: min(78vh, 760px); }
  .depth { display: none; }
  .steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .step { grid-area: auto; opacity: 1; transform: none; }
  .step[data-step="0"] { display: none; }
  .svc .d { stroke-dashoffset: 0; }
  .svc .bar, .svc .rise { transform: none; }
  .svc .dot, .svc .end, .svc .frame, .svc .flow, .svc .stack-card, .svc .join { opacity: 1; transform: none; }
  .svc .needle { transform: rotate(52deg); }
}
