/* ==========================================================================
   BurnedOut — design system
   Ink scenes lit by ember light, frosted glass, and quiet paper sections.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink: #0c2a30;
  --ink-2: #154149;
  --on-ink: #eef4f2;
  --on-ink-soft: #a9c2c0;
  --amber: #d6b07a;
  --ember: #c4652f;
  --crimson: #1f6f6a;

  /* Surfaces (paper sections follow the system theme) */
  --paper: #f2f3f0;
  --paper-2: #ffffff;
  --text: #0f1b1e;
  --text-soft: #4d5b5e;
  --rule: #dfe3e0;
  --rule-strong: #0f1b1e;
  --accent-text: #9e4a1c;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .22);

  /* Type */
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(3rem, 8.2vw, 7.25rem);
  --fs-h1: clamp(2.75rem, 6.4vw, 5.25rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.375rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-lede: clamp(1.25rem, 2vw, 1.625rem);

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 10vw, 8.5rem);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-offset: 104px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f2226;
    --paper-2: #14292e;
    --text: #eef4f2;
    --text-soft: #9db5b2;
    --rule: #223b40;
    --rule-strong: #eef4f2;
    --accent-text: #e9a06e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f2226;
  --paper-2: #14292e;
  --text: #eef4f2;
  --text-soft: #9db5b2;
  --rule: #223b40;
  --rule-strong: #eef4f2;
  --accent-text: #e9a06e;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-offset); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ember); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 100;
  background: var(--on-ink); color: var(--ink); padding: .65rem 1rem; border-radius: 10px; font-weight: 500;
}
.skip-link:focus { left: 12px; }

/* ---------- Type ---------- */
.display { font-size: var(--fs-display); line-height: .96; font-weight: 500; letter-spacing: -0.055em; text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: .98; font-weight: 500; letter-spacing: -0.05em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 500; letter-spacing: -0.025em; }
.lede { font-size: var(--fs-lede); line-height: 1.38; letter-spacing: -0.02em; text-wrap: pretty; }
.soft { color: var(--text-soft); }
p { text-wrap: pretty; }
.link {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--ember);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .2s;
}
.link:hover { color: var(--accent-text); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 60px -30px rgba(0, 0, 0, .55);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font: 500 1rem/1 var(--font); letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .9375rem; }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-glass { color: var(--on-ink); border-color: var(--glass-line); background: rgba(255, 255, 255, .04); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.actions { display: flex; flex-wrap: wrap; gap: .625rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--on-ink); }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo-word { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.045em; line-height: 1; }
.logo-word span {
  background: linear-gradient(100deg, var(--amber), var(--ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: .625rem .625rem .625rem 1.25rem; border-radius: 999px;
  background: rgba(12, 42, 48, .55);
  transition: background-color .25s;
}
.nav.is-scrolled { background: rgba(12, 42, 48, .82); }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  position: relative; color: var(--on-ink-soft); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--ember));
}
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-line); background: transparent; color: var(--on-ink);
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; border-radius: 30px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem .625rem .75rem 0; }
  .nav.is-open { background: rgba(12, 42, 48, .94); }
  .nav.is-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.125rem; color: var(--on-ink); border-bottom: 1px solid var(--glass-line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--amber); }
  .nav-menu .btn { min-height: 48px; }
}

/* ---------- Ink scenes ---------- */
.scene {
  --text: var(--on-ink);
  --text-soft: var(--on-ink-soft);
  --rule: var(--glass-line);
  --rule-strong: rgba(255, 255, 255, .5);
  --accent-text: var(--amber);
  position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; isolation: isolate;
}
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow { position: absolute; z-index: -2; pointer-events: none; border-radius: 50%; filter: blur(70px); }
.glow-a { background: radial-gradient(closest-side, var(--ember), rgba(236, 138, 79, .35) 55%, transparent); }
.glow-b { background: radial-gradient(closest-side, var(--amber), rgba(214, 176, 122, .25) 60%, transparent); }
.glow-c { background: radial-gradient(closest-side, var(--crimson), transparent); }

/* ---------- Home hero ---------- */
.hero { padding-top: 148px; }
.hero .glow-a { width: 70vw; height: 46vw; min-width: 620px; min-height: 420px; left: 30%; top: 32%; }
.hero .glow-b { width: 42vw; height: 30vw; min-width: 360px; min-height: 280px; left: 56%; top: 46%; opacity: .85; }
.hero .glow-c { width: 50vw; height: 36vw; min-width: 420px; min-height: 320px; left: -8%; top: 48%; opacity: .9; }
.hero-body {
  min-height: calc(100svh - 180px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(3rem, 8vh, 6rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}
.hero h1 { max-width: 11.5ch; }
.hero-panel {
  display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 2rem 3rem; align-items: end;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg);
}
.hero-panel > p { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; max-width: 46ch; }
.hero-panel dt { color: var(--on-ink-soft); font-size: .9375rem; margin-bottom: .35rem; }
.hero-panel dd { font-size: 1.0625rem; line-height: 1.45; }
@media (max-width: 1040px) {
  .hero-panel { grid-template-columns: 1fr 1fr; }
  .hero-panel .actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero .glow-a { left: -20%; top: 38%; }
  .hero .glow-b { left: 20%; top: 50%; }
  .hero .glow-c { left: -60%; top: 60%; }
  .hero-panel { grid-template-columns: 1fr; border-radius: 22px; }
  .hero-panel .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .glow { animation: kindle 2.4s cubic-bezier(.2, .6, .2, 1) both; }
  .hero .glow-b { animation-delay: .25s; }
  .hero h1, .hero-panel { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-panel { animation-delay: .35s; }
}
@keyframes kindle { from { opacity: 0; transform: translateY(12%) scale(.85); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Client wall ---------- */
.clients { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--glass-line); }
.clients-title { font-size: 1rem; font-weight: 500; color: var(--on-ink-soft); margin-bottom: 1.25rem; }
.client-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.client {
  display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  min-height: 120px; height: 100%; padding: 1.25rem 1.5rem; border-radius: var(--r-md);
  text-decoration: none; transition: background-color .2s, border-color .2s;
}
.client:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); }
.client-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.client-sector { font-size: .875rem; color: var(--on-ink-soft); line-height: 1.35; }
.client img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 1040px) { .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .client-grid { grid-template-columns: 1fr 1fr; }
  .client-grid li:last-child { grid-column: 1 / -1; }
  .client { min-height: 100px; padding: 1rem 1.125rem; }
  .client-name { font-size: 1.25rem; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 168px 0 clamp(4rem, 8vw, 6.5rem); }
.page-hero .glow-a { width: 58vw; height: 40vw; min-width: 520px; min-height: 380px; right: -14%; bottom: -40%; opacity: .9; }
.page-hero .glow-b { width: 34vw; height: 26vw; min-width: 320px; min-height: 260px; right: 6%; bottom: -22%; opacity: .7; }
.page-hero .h1 { max-width: 14ch; }
.page-lede { margin-top: 1.5rem; max-width: 42ch; font-size: var(--fs-lede); line-height: 1.38; letter-spacing: -0.02em; color: var(--on-ink-soft); }
.crumbs { margin-bottom: 1.75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9375rem; color: var(--on-ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: var(--on-ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--on-ink); }
.crumbs [aria-current] { color: var(--on-ink); }
@media (max-width: 640px) { .page-hero { padding-top: 132px; } .page-hero .glow-a { right: -60%; } }

/* ---------- Sections ---------- */
.paper { background: var(--paper); color: var(--text); }
.paper.alt { background: var(--paper-2); }
.section { padding-block: var(--section); }
.section.flush { padding-top: 0; }

.sec-head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head p { max-width: 44ch; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .sec-head, .split { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.split + .pillars { margin-top: clamp(3rem, 6vw, 5rem); }
.sec-head + .pillars { margin-top: 0; }
.pillars-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar { padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); }
.pillar p { margin-top: .75rem; }
@media (max-width: 1000px) { .pillars-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .pillars, .pillars-4 { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Service rows */
.rows { border-top: 1px solid var(--rule-strong); }
.row {
  display: grid; grid-template-columns: 5fr 6fr auto; gap: .5rem clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(1.5rem, 2.6vw, 2rem); border-bottom: 1px solid var(--rule); text-decoration: none;
}
.row-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; color: var(--text); transition: background-color .2s, border-color .2s, color .2s;
}
.row-icon svg, .tile-more svg { width: 18px; height: 18px; }
.row:hover .row-icon { background: var(--ember); border-color: var(--ember); color: #fff; }
.row:hover .h3 { color: var(--accent-text); }
.row .h3 { transition: color .2s; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; }
  .row p { grid-column: 1; grid-row: 2; }
  .row-icon { grid-row: 1 / span 2; grid-column: 2; }
}

/* Industry tiles */
.industries-band .glow-a { width: 60vw; height: 40vw; min-width: 520px; min-height: 380px; right: -18%; top: -28%; opacity: .75; }
.industries-band .glow-b { width: 40vw; height: 30vw; min-width: 380px; min-height: 300px; left: -14%; bottom: -30%; opacity: .45; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tile {
  display: flex; flex-direction: column; gap: .75rem; min-height: 250px; height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.tile:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .24); }
.tile p { max-width: 40ch; }
.tile-more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; font-size: .9375rem; }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } .tile-more { margin-top: 1rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding-top: 1.5rem; border-top: 1px solid var(--rule-strong); }
.step-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ember); color: #fff; font-size: .9375rem; font-weight: 600;
}
.step .h3 { margin: 1.5rem 0 .5rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media (max-width: 560px) { .steps, .steps-3 { grid-template-columns: 1fr; row-gap: 2rem; } }

/* CTA band */
.cta-band .glow-a { width: 70vw; height: 48vw; min-width: 600px; min-height: 420px; right: -20%; top: 10%; opacity: .85; }
.cta-band .glow-b { width: 38vw; height: 28vw; min-width: 340px; min-height: 260px; right: 10%; top: 45%; opacity: .55; }
.cta-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; }
.cta-grid .h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; max-width: 14ch; }
.cta-grid p { margin-bottom: 1.75rem; font-size: 1.125rem; max-width: 40ch; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* Lists */
.list h3, .list h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: .5rem; }
.list li { position: relative; padding: .7rem 0 .7rem 1.25rem; border-top: 1px solid var(--rule); color: var(--text-soft); }
.list li::before {
  content: ""; position: absolute; left: 0; top: 1.33em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
}

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 3fr 9fr; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: var(--nav-offset); }
.toc ul { border-left: 1px solid var(--rule); }
.toc a {
  display: block; padding: .45rem 0 .45rem 1rem; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--text-soft); text-decoration: none; font-size: .9375rem; line-height: 1.4; transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--ember); }
.svc { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.svc:first-child { padding-top: 0; border-top: 0; }
.svc:last-child { padding-bottom: 0; }
.svc .lede { margin: 1.25rem 0 2.5rem; max-width: 38ch; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 640px) { .svc-cols { grid-template-columns: 1fr; } }

/* ---------- Industries page ---------- */
.ind .lede { margin-bottom: 2.25rem; max-width: 38ch; }
.paper[id] + .paper[id] .ind { padding-top: var(--section); border-top: 1px solid var(--rule); }
.exp { display: grid; grid-template-columns: 5fr 7fr; gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.exp-note { margin-top: 1.25rem; max-width: 40ch; }
#clients .glow-a { width: 60vw; height: 40vw; min-width: 520px; min-height: 380px; left: -20%; bottom: -40%; opacity: .6; }
.client-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.client-table thead th { text-align: left; font-weight: 500; color: var(--text-soft); font-size: .9375rem; padding: 0 0 .75rem; border-bottom: 1px solid var(--rule-strong); }
.client-table tbody th, .client-table td { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: baseline; }
.client-table td, .client-table thead th + th { text-align: right; color: var(--text-soft); }
.client-table a { font-weight: 500; text-decoration: none; }
.client-table a:hover { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 4px; }
@media (max-width: 860px) { .exp { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .client-table { font-size: 1rem; } .client-table td { font-size: .875rem; } }

/* ---------- Approach page ---------- */
.phases { border-top: 1px solid var(--rule-strong); }
.phase {
  display: grid; grid-template-columns: auto 6fr 5fr; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule);
}
.phase .h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .75rem; }
.phase p { max-width: 50ch; }
@media (max-width: 860px) {
  .phase { grid-template-columns: auto 1fr; }
  .phase .list { grid-column: 2; }
}

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); }
.card p { margin-top: .75rem; }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } }

.faqs { border-top: 1px solid var(--rule-strong); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--rule); transition: background-color .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .25s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon { background: var(--ember); border-color: var(--ember); color: #fff; }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .faq-icon { border-color: var(--text); }
.faq-body { padding: 0 3.5rem 1.75rem 0; color: var(--text-soft); max-width: 62ch; }

/* ---------- About page ---------- */
.prose-lg { display: grid; gap: 1.25rem; color: var(--text-soft); font-size: 1.125rem; }
.prose-lg .lede { color: var(--text); margin-bottom: .5rem; }
.cols { columns: 2; column-gap: 2rem; }
.cols li { break-inside: avoid; padding: .85rem 0; border-top: 1px solid var(--rule); font-size: 1.125rem; letter-spacing: -0.01em; }
@media (max-width: 560px) { .cols { columns: 1; } }

/* ---------- Contact ---------- */
.contact-hero .glow-a { width: 72vw; height: 50vw; min-width: 640px; min-height: 460px; right: -16%; top: 16%; bottom: auto; opacity: .85; }
.contact-hero .glow-b { width: 40vw; height: 30vw; min-width: 360px; min-height: 280px; right: 8%; top: 46%; bottom: auto; opacity: .6; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.email-link {
  display: inline-block; margin-top: 2rem; font-size: clamp(1.375rem, 2.6vw, 2rem); letter-spacing: -0.03em;
  color: var(--on-ink); text-decoration: none; border-bottom: 2px solid var(--ember); padding-bottom: .2rem; word-break: break-word;
}
.email-link:hover { border-color: var(--amber); }

.form { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); display: grid; gap: 1.125rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .5rem; align-content: start; }
.field label { font-size: .9375rem; font-weight: 500; }
.field .opt { color: var(--on-ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--on-ink);
  background: rgba(12, 42, 48, .35); border: 1px solid var(--glass-line); border-radius: var(--r-sm);
  padding: .85rem 1rem; transition: border-color .2s, background-color .2s;
}
.field input { min-height: 50px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7f9a98; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(12, 42, 48, .5); }
.field.has-error input, .field.has-error textarea { border-color: #ff8a65; }
.field-error { font-size: .875rem; color: #ffb199; }
.field-error:empty { display: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.form-foot p { font-size: .875rem; color: var(--on-ink-soft); max-width: 34ch; }
.form-foot a { color: var(--on-ink); }
.form-status { font-size: .9375rem; }
.form-status:empty { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin: 2.75rem 0 1rem; }
.prose p, .prose li { color: var(--text-soft); }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: .875rem; margin-top: 1rem; }
.prose li { position: relative; padding-left: 1.25rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.prose a { color: var(--text); text-decoration-color: var(--ember); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--glass-line); }
.footer-top { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem clamp(2rem, 6vw, 6rem); padding-block: clamp(3.5rem, 7vw, 5rem); }
.footer-brand p { margin-top: 1.25rem; color: var(--on-ink-soft); max-width: 36ch; }
.footer-email { display: inline-block; margin-top: 1.25rem; color: var(--on-ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 4px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.footer-cols h2 { font-size: .9375rem; font-weight: 500; color: var(--on-ink-soft); margin-bottom: 1rem; }
.footer-cols li + li { margin-top: .6rem; }
.footer-cols a { color: var(--on-ink); text-decoration: none; }
.footer-cols a:hover { color: var(--amber); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  padding-block: 1.5rem 2rem; border-top: 1px solid var(--glass-line); font-size: .9375rem; color: var(--on-ink-soft);
}
.footer-bottom a { color: var(--on-ink); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; padding-block: 140px 4rem; }
.notfound .glow-a { width: 64vw; height: 44vw; min-width: 560px; min-height: 400px; left: 20%; bottom: -30%; }
.notfound .glow-b { width: 34vw; height: 26vw; min-width: 320px; min-height: 260px; left: 46%; bottom: -10%; opacity: .7; }
.notfound .page-lede { margin-bottom: 2rem; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.glow), *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print {
  .nav-wrap, .glow, .skip-link, .form, .actions { display: none !important; }
  .scene, .paper, .site-footer, body { background: #fff !important; color: #000 !important; }
  .scene { --text: #000; --text-soft: #333; --on-ink: #000; --on-ink-soft: #333; }
  .page-hero, .hero { padding-top: 2rem; }
}

/* ==========================================================================
   Motion layer: breathing light, client marquee, spotlight, bento
   ========================================================================== */

/* Hero panel: copy + actions */
.hero-panel { grid-template-columns: 1fr auto; align-items: center; }
@media (max-width: 760px) { .hero-panel { grid-template-columns: 1fr; } .hero-panel .actions { grid-column: auto; } }

/* Breathing ember light: slow, offset cycles so the glow never pulses in sync */
@media (prefers-reduced-motion: no-preference) {
  .scene .glow { animation: breathe 9s ease-in-out infinite; }
  .scene .glow-b { animation-duration: 7s; animation-delay: -2.5s; }
  .scene .glow-c { animation-duration: 12s; animation-delay: -5s; }
  .hero .glow { animation: kindle 2.4s cubic-bezier(.2, .6, .2, 1) both, breathe 9s ease-in-out 2.4s infinite; }
  .hero .glow-b { animation-duration: 2.4s, 7s; animation-delay: .25s, 2.65s; }
  .hero .glow-c { animation-duration: 2.4s, 12s; }
}
@keyframes breathe {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .7; }
  33%      { transform: translate(-9%, 7%) scale(1.2); opacity: 1; }
  66%      { transform: translate(8%, -6%) scale(.88); opacity: .78; }
}

/* Client marquee */
.clients { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--glass-line); }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.clients-title { margin: 0; }
.clients-all { color: var(--on-ink-soft); font-size: .9375rem; text-decoration: none; }
.clients-all:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; }
.marquee {
  overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; gap: .75rem; width: max-content; }
.marquee-row { display: flex; gap: .75rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - .375rem)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee-track { width: auto; }
  .marquee-row { flex-wrap: wrap; }
  .marquee-row[aria-hidden], .marquee-row li:nth-child(n+6) { display: none; }
}
.client {
  width: 260px; min-height: 112px; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.375rem;
}
.client-name { font-size: 1.5rem; }
.client-url { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; color: var(--on-ink-soft); transition: color .2s; }
.client:hover .client-url { color: var(--amber); }
.ext { width: 14px; height: 14px; transition: transform .2s; }
.client:hover .ext { transform: translate(2px, -2px); }
.client-logo { height: 32px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .92; }
@media (max-width: 640px) { .client { width: 210px; min-height: 100px; } .client-name { font-size: 1.25rem; } }

/* Spotlight that follows the pointer across cards */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.paper .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 138, 79, .12), transparent 45%); }

/* Statement + trio (home intro) */
.statement { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; font-weight: 500; letter-spacing: -0.05em; max-width: 14ch; text-wrap: balance; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.trio li { display: grid; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-strong); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Bento services grid */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bento-1 { grid-column: span 2; }
.bento-6 { grid-column: span 2; }
.bento-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  height: 100%; min-height: 220px; padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper-2);
  text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s;
}
.bento-card:hover { border-color: color-mix(in srgb, var(--ember) 50%, var(--rule)); }
.bento-text { display: grid; gap: .5rem; max-width: 36ch; }
.bento-1 .h3, .bento-6 .h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.bento-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--amber), var(--ember) 55%, var(--crimson));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(236, 138, 79, .7);
}
.bento-icon svg { width: 24px; height: 24px; }
.bento-1 .bento-card, .bento-6 .bento-card { background: linear-gradient(160deg, var(--paper-2), color-mix(in srgb, var(--ember) 7%, var(--paper-2))); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento-1, .bento-6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento-1, .bento-6 { grid-column: auto; } .bento-card { min-height: 0; } }

/* Industry tiles: four across */
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles-4 .tile { min-height: 220px; justify-content: space-between; }
@media (max-width: 1040px) { .tiles-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles-4 { grid-template-columns: 1fr; } .tiles-4 .tile { min-height: 0; } }

/* Gentle lift for touch-friendly cards */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bento-card:hover, .tile:hover { transform: translateY(-3px); }
}

/* Bento: last card fills its whole row */
.bento-6 { grid-column: 1 / -1; }
.bento-6 .bento-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1.5rem; min-height: 0; }
.bento-6 .bento-text { max-width: 60ch; }
@media (max-width: 560px) { .bento-6 .bento-card { flex-direction: column; align-items: flex-start; } }


/* Reduced motion: no drifting, but the light still breathes softly */
@media (prefers-reduced-motion: reduce) {
  .scene .glow { animation: breathe-soft 10s ease-in-out infinite !important; }
}
@keyframes breathe-soft { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* Glow follows the pointer (composes with the breathing transform) */
.scene .glow { translate: calc(var(--px, 0) * 60px) calc(var(--py, 0) * 40px); transition: translate 1.4s cubic-bezier(.2, .7, .2, 1); }
.scene .glow-b { translate: calc(var(--px, 0) * -40px) calc(var(--py, 0) * -30px); }

/* Rising embers */
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Per-logo optical sizing (logos have different proportions) */
.client[data-name="PayU"] .client-logo { height: 40px; }
.client[data-name="Takealot"] .client-logo { height: 30px; }
/* Takealot: white wordmark, keep the blue .com circle */
.client[data-name="Takealot"] .client-logo { filter: invert(1) hue-rotate(180deg) saturate(1.2); opacity: 1; }


/* ==========================================================================
   Sharp modern: Geist, petrol + copper, visible grid, crisper geometry
   ========================================================================== */
.glow-a { background: radial-gradient(closest-side, #ec8a4f, rgba(196, 101, 47, .35) 55%, transparent); }
.display, .h1, .h2, .statement, .cta-grid .h2 { font-weight: 600; letter-spacing: -0.05em; }
.h3 { font-weight: 600; letter-spacing: -0.025em; }
.btn { border-radius: 10px; font-weight: 500; }
.nav { border-radius: 14px; }
@media (max-width: 900px) { .nav { border-radius: 14px; } }
.btn-light { background: #eef4f2; color: #0c2a30; }
.btn-light:hover { background: #ffffff; }
.logo-word span { background: linear-gradient(100deg, #e9b46a, #c4652f); -webkit-background-clip: text; background-clip: text; }

/* Faint engineering grid on petrol scenes, fading out toward the bottom */
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
}
.step-n { background: #a9521f; border-radius: 8px; }
.faq-icon, .row-icon { border-radius: 10px; }
.bento-icon { border-radius: 10px; background: linear-gradient(140deg, #e9b46a, #c4652f 60%, #8e3a17); box-shadow: 0 10px 24px -12px rgba(196, 101, 47, .8); }
.client-name { font-weight: 600; }

/* ==========================================================================
   Motion pack: horizon glow, blueprint hover, blur reveal, rotating word,
   scroll-linked steps, scroll stack, spotlight borders, magnetic button
   ========================================================================== */

/* Horizon glow (home hero) */
.hero .horizon {
  position: absolute; z-index: -2; left: 50%; top: calc(100% - 300px);
  width: max(190vw, 1500px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #0a262b, #081d21 320px);
  border: 1px solid rgba(233, 180, 106, .5);
  box-shadow: 0 -1px 0 rgba(255, 224, 180, .45), 0 -18px 60px -8px rgba(236, 138, 79, .55), 0 -70px 180px -20px rgba(236, 138, 79, .35);
}
.hero.hero .glow-a { left: 50%; top: auto; bottom: 120px; width: min(1100px, 92vw); height: 420px; min-width: 0; min-height: 0; margin-left: calc(min(1100px, 92vw) / -2); filter: blur(80px); }
.hero.hero .glow-b { left: 50%; top: auto; bottom: 210px; width: 520px; max-width: 80vw; height: 240px; min-width: 0; min-height: 0; margin-left: max(-260px, -40vw); }
.hero.hero .glow-c { display: none; }
.hero .clients { border-top: 0; }

/* Blueprint grid: cells near the pointer light up */
.grid-hi {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background-image: linear-gradient(rgba(236, 138, 79, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 138, 79, .55) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), #000, transparent 70%);
  mask-image: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), #000, transparent 70%);
}

/* Blur reveal headings */
.reveal-text { animation: none !important; }
.reveal-text .w {
  display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em);
  transition: opacity .7s ease, filter .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 70ms);
}
.reveal-text.is-in .w { opacity: 1; filter: none; transform: none; }

/* Rotating word */
.rotator { display: inline-block; white-space: nowrap; }
.reveal-text.is-in .rotator.is-out { opacity: 0; filter: blur(8px); transform: translateY(.25em); transition-duration: .4s; }

/* Steps: copper line fills as you scroll, steps switch on in turn */
.steps { position: relative; }
.js-steps::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 2px;
  background: linear-gradient(90deg, #c4652f, #e9b46a); transform-origin: left; transform: scaleX(var(--p, 0));
}
.js-steps .step { opacity: .5; transition: opacity .4s; }
.js-steps .step .step-n { background: var(--rule); color: var(--text-soft); transition: background-color .4s, color .4s; }
.js-steps .step.is-on { opacity: 1; }
.js-steps .step.is-on .step-n { background: #a9521f; color: #fff; }
@media (max-width: 1000px) { .js-steps::before { display: none; } }

/* Scroll stack (approach phases) */
@media (min-width: 861px) {
  .phases { border-top: 0; display: grid; gap: 1.25rem; padding-bottom: 2rem; }
  .phase {
    position: sticky; top: calc(var(--nav-offset) + var(--n, 0) * 20px);
    background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: 0 -14px 30px -22px rgba(12, 42, 48, .35);
  }
  .phase:nth-child(2) { --n: 1; } .phase:nth-child(3) { --n: 2; } .phase:nth-child(4) { --n: 3; }
}

/* Spotlight grid: shared pointer light on card borders */
.bento-card::after, .tile.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), #ec8a4f, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.bento:hover .bento-card::after, .tiles:hover .tile.spot::after { opacity: 1; }

/* Magnetic button */
.btn-light { transition: background-color .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }

/* Edge glow form */
.form { transition: box-shadow .4s, border-color .4s; }
.form:focus-within { border-color: rgba(236, 138, 79, .55); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px rgba(236, 138, 79, .25), 0 0 70px -12px rgba(236, 138, 79, .55); }


/* Calmer scrolling: quiet heading fade, no dimmed steps, steady marquee */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.is-in { opacity: 1; transform: none; }
.js-steps .step { opacity: 1; }

/* Smooth cross-fade between pages (supported browsers) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ==========================================================================
   Hero roadmap visual + inner-page polish
   ========================================================================== */
.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.roadmap { border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.5rem; font-size: .8125rem; }
.rm-cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-left: 92px; padding-bottom: .75rem; color: var(--on-ink-soft); border-bottom: 1px solid var(--glass-line); }
.rm-body { position: relative; display: grid; gap: .625rem; padding-top: .875rem; }
.rm-lane { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; }
.rm-label { color: var(--on-ink-soft); }
.rm-track {
  position: relative; height: 36px; border-radius: 8px;
  background: linear-gradient(90deg, var(--glass-line) 1px, transparent 1px) 0 0 / 25% 100%, rgba(255, 255, 255, .03);
}
.rm-bar {
  position: absolute; top: 4px; bottom: 4px; left: calc(var(--s) / 4 * 100%); width: calc((var(--e) - var(--s)) / 4 * 100%);
  display: flex; align-items: center; padding: 0 .625rem; border-radius: 6px; overflow: hidden; white-space: nowrap;
  font-style: normal; font-weight: 500; color: #0c2a30; background: linear-gradient(90deg, #e9b46a, #ec8a4f);
  transform-origin: left; animation: rm-grow .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--d) * .22s);
}
.rm-b2 { background: #eef4f2; }
.rm-b3 { background: rgba(255, 255, 255, .16); color: var(--on-ink); border: 1px solid var(--glass-line); }
.rm-dot {
  position: absolute; top: 50%; left: calc(var(--x) / 4 * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: #ec8a4f; transform: rotate(45deg); border-radius: 2px;
  animation: rm-pop .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.9s + var(--d) * .22s);
}
.rm-now {
  position: absolute; top: .5rem; bottom: -.25rem; left: 62%; width: 1px; background: #e9b46a;
  box-shadow: 0 0 12px 1px rgba(233, 180, 106, .7); animation: rm-sweep 14s linear 2.5s infinite;
}
@keyframes rm-grow { from { transform: scaleX(0); opacity: 0; } }
@keyframes rm-pop { from { transform: rotate(45deg) scale(0); } }
@keyframes rm-sweep { from { left: 92px; } to { left: 100%; } }
@media (max-width: 1040px) { .hero-top { grid-template-columns: 1fr; } .roadmap { display: none; } }

/* Shared panel */
.panel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.4vw, 1.75rem); }

/* Services page */
.svc-head { display: flex; align-items: center; gap: 1rem; }
.svc-head .bento-icon { flex: none; }
.svc .lede { margin: 1.5rem 0 .75rem; max-width: 30ch; }
.svc-more { max-width: 58ch; margin-bottom: 2rem; }
.svc-cols { gap: 1rem; }
.svc-cta { margin-top: 1.5rem; font-weight: 500; }

/* Industries page */
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ind-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); transition: border-color .25s; }
.ind-card:hover { border-color: color-mix(in srgb, var(--ember) 50%, var(--rule)); }
.ind-card .h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.ind-card .lede { font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.01em; margin: .75rem 0 1rem; }
.ind-card .list { margin-top: auto; padding-top: 1.75rem; }
@media (max-width: 860px) { .ind-grid { grid-template-columns: 1fr; } }

/* About page */
.tiles-4 div.tile { justify-content: flex-start; gap: .5rem; min-height: 0; }
.tiles-4 div.tile .h3 { font-size: 1.125rem; line-height: 1.35; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pills li { padding: .6rem 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); font-weight: 500; }
@media (min-width: 1041px) {
  .hero-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); }
  .hero-top .display { font-size: clamp(2.75rem, 5.2vw, 4.75rem); max-width: none; }
}
.rm-cols { font-size: .75rem; }

/* Nine services: even 3 x 3 grid */
.bento > li { grid-column: auto; }
.bento .bento-6 .bento-card { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2.5rem; min-height: 220px; }
.bento .bento-1 .h3, .bento .bento-6 .h3 { font-size: var(--fs-h3); }
.bento .bento-1 .bento-card, .bento .bento-6 .bento-card { background: var(--paper-2); }
@media (max-width: 560px) { .bento .bento-6 .bento-card { min-height: 0; } }

/* Practice chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.page-hero .chips { margin: 2rem 0 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .875rem; border-radius: 8px;
  border: 1px solid var(--rule); color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chips a:hover { border-color: var(--ember); color: var(--accent-text); }
.page-hero .chips a { background: rgba(255, 255, 255, .05); }

/* Roadmap positions as classes (no inline styles, so the CSP allows them) */
.rm-p1 { --s: 0; --e: 2; --d: 0; } .rm-p2 { --s: 1.4; --e: 3.6; --d: 1; } .rm-p3 { --s: 1; --e: 4; --d: 2; }
.rm-d1 { --x: 2; --d: 3; } .rm-d2 { --x: 2.6; --d: 4; } .rm-d3 { --x: 3.2; --d: 5; } .rm-d4 { --x: 3.8; --d: 6; }

/* Career history */
.career { border-top: 1px solid var(--rule-strong); }
.career > li { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--rule); align-items: start; }
.career-when { font-weight: 500; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.career-sector { font-size: .9375rem; margin-top: .25rem; }
.career-note { margin-top: .875rem; max-width: 52ch; }
.career-roles { display: grid; gap: .5rem; }
.career-roles li { position: relative; padding-left: 1.125rem; }
.career-roles li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--ember); }
@media (max-width: 860px) { .career > li { grid-template-columns: 1fr; gap: .5rem; } .career-roles { margin-top: .5rem; } }
.footer-founder { font-size: .9375rem; }
.footer-founder a { color: var(--on-ink); text-underline-offset: 3px; }
.contact-alt { margin-top: 1.25rem; }

/* Analytics consent banner */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto;
  display: grid; gap: 1rem; padding: 1.25rem; border-radius: var(--r-md);
  background: #0c2a30; color: #eef4f2; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); font-size: .9375rem; line-height: 1.5;
}
.consent a { color: #eef4f2; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.text-btn { font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
