/* ============================================================
   Bali Projects - design system
   Lane: "instrument" - the precision of a dive computer and a
   nautical chart, not a SaaS gradient and not a magazine spread.
   Strategy: Committed. Indigo carries the brand across large
   drenched bands; pure white carries the reading surface.
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:where(ul, ol) { list-style: none; padding: 0; }
[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Ink and surface. bg is literal white; the brand lives in the indigo. */
  --bg:            oklch(1 0 0);
  --surface:       oklch(0.970 0.010 272);
  --surface-2:     oklch(0.945 0.014 272);
  --ink:           oklch(0.170 0.018 272);
  --ink-2:         oklch(0.420 0.016 272);
  --ink-3:         oklch(0.545 0.014 272);
  --line:          oklch(0.895 0.010 272);
  --line-strong:   oklch(0.800 0.014 272);

  /* Brand */
  --indigo:        oklch(0.450 0.180 270);
  --indigo-ink:    oklch(0.380 0.165 270);
  --indigo-deep:   oklch(0.238 0.092 272);
  --indigo-deeper: oklch(0.178 0.070 272);
  --indigo-lift:   oklch(0.760 0.125 272);
  --indigo-haze:   oklch(0.930 0.035 272);

  /* Accent. One only, used sparingly. */
  --amber:         oklch(0.815 0.155 68);
  --amber-ink:     oklch(0.600 0.150 52);

  /* On dark */
  --on-dark:       oklch(0.975 0.006 272);
  --on-dark-2:     oklch(0.810 0.020 272);
  --on-dark-line:  oklch(0.340 0.055 272);

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.6rem, 1.45rem + 5.1vw, 5.125rem);
  --fs-h2:      clamp(1.95rem, 1.3rem + 2.9vw, 3.35rem);
  --fs-h3:      clamp(1.3rem, 1.12rem + 0.8vw, 1.75rem);
  --fs-h4:      clamp(1.08rem, 1.02rem + 0.3vw, 1.25rem);
  --fs-lead:    clamp(1.12rem, 1.02rem + 0.45vw, 1.35rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  /* Space */
  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;    --s10: 8rem;
  --pad-block: clamp(4.5rem, 8.5vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;

  /* Shape and depth. Cards top out at 14px. Never border plus wide shadow. */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Solid indigo fills need their own pair: in dark mode the accent text
     colour goes light, but a button still needs a fill you can read on. */
  --btn-ink-bg:       oklch(0.450 0.180 270);
  --btn-ink-ink:      oklch(1 0 0);
  --btn-ink-bg-hover: oklch(0.380 0.165 270);
  --shadow-flow: 0 28px 64px -38px oklch(0.238 0.092 272 / 0.9);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Depth scale */
  --z-base: 1; --z-sticky: 100; --z-nav: 200; --z-overlay: 300; --z-modal: 400;

  color-scheme: light;
}

/* ---------- 2b. Dark theme ----------
   The light page alternates white, faint tint, and deep indigo drench.
   Dark keeps that three-step rhythm rather than flattening it: the page
   sits deepest, tinted sections lift slightly, the drenched bands lift
   further still, and the footer sinks below the page. Same structure,
   inverted direction. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            oklch(0.150 0.020 272);
  --surface:       oklch(0.198 0.028 272);
  --surface-2:     oklch(0.238 0.032 272);
  --ink:           oklch(0.970 0.008 272);
  --ink-2:         oklch(0.780 0.020 272);
  --ink-3:         oklch(0.680 0.020 272);
  --line:          oklch(0.310 0.035 272);
  --line-strong:   oklch(0.440 0.045 272);

  --indigo:        oklch(0.760 0.145 272);
  --indigo-ink:    oklch(0.830 0.115 272);
  --indigo-deep:   oklch(0.258 0.062 272);
  --indigo-deeper: oklch(0.112 0.022 272);
  --indigo-lift:   oklch(0.780 0.125 272);
  --indigo-haze:   oklch(0.278 0.058 272);

  --on-dark-line:  oklch(0.395 0.052 272);

  --btn-ink-bg:       oklch(0.640 0.170 272);
  --btn-ink-ink:      oklch(0.140 0.030 272);
  --btn-ink-bg-hover: oklch(0.710 0.155 272);
  --shadow-flow: 0 28px 64px -40px oklch(0 0 0 / 0.85);
}

/* Suppress transitions for the instant of a theme flip. Without this every
   element with a colour transition interpolates between two unrelated
   palettes, which looks muddy and leaves some browsers reporting a stale
   computed colour afterwards. */
:root.theme-switching,
:root.theme-switching *,
:root.theme-switching *::before,
:root.theme-switching *::after {
  transition: none !important;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variant-ligatures: common-ligatures;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-variation-settings: "wdth" 100;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.018em; }
h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.012em; }

p { text-wrap: pretty; }
p, li { max-width: var(--measure); }
strong { font-weight: 600; }

::selection { background: var(--btn-ink-bg); color: var(--btn-ink-ink); }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :focus-visible { outline-color: var(--amber); }

.skip {
  position: absolute; left: var(--s4); top: -100px;
  background: var(--btn-ink-bg); color: var(--btn-ink-ink);
  padding: var(--s3) var(--s5); border-radius: var(--r);
  z-index: var(--z-modal); font-weight: 600; text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip:focus { top: var(--s4); }

/* ---------- 4. Layout primitives ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 840px; }
.section { padding-block: var(--pad-block); }
/* Anchor targets must clear the sticky header. */
section[id] { scroll-margin-top: 84px; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.on-dark { background: var(--indigo-deep); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark p { color: var(--on-dark-2); line-height: 1.68; }
.on-tint { background: var(--surface); }

/* Section head: the heading carries itself. No uppercase kicker scaffolding. */
.head { display: grid; gap: var(--s4); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head__lede { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; max-width: 58ch; }
.on-dark .head__lede { color: var(--on-dark-2); }
@media (min-width: 900px) {
  .head--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--s7);
    align-items: end;
  }
}

/* ---------- 5. Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out),
              transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn__arrow { flex: none; transition: transform 280ms var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--amber); color: oklch(0.230 0.055 60); }
.btn--primary:hover { background: oklch(0.865 0.145 72); }

.btn--ink { background: var(--btn-ink-bg); color: var(--btn-ink-ink); }
.btn--ink:hover { background: var(--btn-ink-bg-hover); }

.btn--ghost { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.on-dark .btn--ghost { border-color: var(--on-dark-line); color: var(--on-dark); }
.on-dark .btn--ghost:hover { border-color: var(--on-dark-2); background: oklch(1 0 0 / 0.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; }

.tlink {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; color: var(--indigo); text-decoration: none;
  text-underline-offset: 4px;
}
.tlink:hover { text-decoration: underline; }
.on-dark .tlink { color: var(--amber); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}
.nav[data-stuck="true"] { border-bottom-color: var(--line); }
.nav__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.03em;
  color: var(--ink); white-space: nowrap;
}
.brand__mark { width: 26px; height: 26px; flex: none; }

.nav__links { display: none; gap: clamp(1rem, 2.2vw, 2rem); align-items: center; }
@media (min-width: 940px) { .nav__links { display: flex; } }
.nav__links a {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-2); padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--indigo); }

.nav__actions { display: flex; align-items: center; gap: var(--s3); flex: none; }
.nav__cta { display: none; }
@media (min-width: 940px) { .nav__cta { display: inline-flex; } }

/* Theme toggle. One icon shows the destination, not the current state:
   a moon while light, a sun while dark. */
.themer {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink-2);
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out),
              background-color 180ms var(--ease-out);
}
.themer:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.themer svg { width: 18px; height: 18px; }
.themer .ic-sun { display: none; }
:root[data-theme="dark"] .themer .ic-sun { display: block; }
:root[data-theme="dark"] .themer .ic-moon { display: none; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r);
}
@media (min-width: 940px) { .burger { display: none; } }
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform 260ms var(--ease-out), opacity 180ms var(--ease-out);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 72px 0 auto 0; z-index: var(--z-overlay);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: var(--s5) var(--gutter) var(--s7);
  display: grid; gap: var(--s2);
  max-height: calc(100dvh - 72px); overflow-y: auto;
}
.menu a {
  text-decoration: none; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em;
  padding-block: var(--s3); border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: var(--s4); justify-content: center; }

/* ---------- 7. Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6.5rem); }
/* The headline runs the full measure; the split begins below it, giving the
   diagram the wider column it needs to stay legible. */
.hero h1 { max-width: 13em; }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4.5vw, 4.5rem);
    align-items: center;
  }
}
.hero__lede {
  font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.58;
  max-width: 50ch;
}
.hero .btn-row { margin-top: var(--s6); }

.hero__place {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--s5);
}
.hero__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none;
  box-shadow: 0 0 0 4px oklch(0.815 0.155 68 / 0.22);
}

.hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6);
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-3);
}
.hero__proof span { max-width: none; }
.hero__proof b { color: var(--ink); font-weight: 600; }

/* ---------- 8. Flow diagram (hero imagery) ---------- */
.flow {
  position: relative;
  background: var(--indigo-deep);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--on-dark);
  box-shadow: var(--shadow-flow);
}
.flow__cap {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4); margin-bottom: var(--s5);
  font-size: var(--fs-xs); color: var(--on-dark-2);
}
.flow__cap b { color: var(--on-dark); font-weight: 600; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow__foot {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--on-dark-line);
  font-size: var(--fs-xs); color: var(--on-dark-2);
  display: flex; gap: var(--s5); flex-wrap: wrap;
}
.flow__foot span { display: inline-flex; align-items: center; gap: 0.45rem; max-width: none; }
.flow__swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* Art direction by width: the SVG is a left-to-right pipeline, which only
   reads above ~700px. Narrow screens get the same information top to bottom. */
.flow__svg { display: none; }
.flow__stack { display: grid; gap: var(--s3); justify-items: stretch; }
@media (min-width: 700px) {
  .flow__svg { display: block; }
  .flow__stack { display: none; }
}
.flow__set { display: grid; gap: var(--s2); }
.flow__set li {
  border: 1px solid var(--on-dark-line); border-radius: 8px;
  padding: 0.6rem 0.85rem; font-size: var(--fs-sm); color: var(--on-dark-2);
  max-width: none;
}
.flow__set--out li { border-color: oklch(0.815 0.155 68 / 0.45); color: var(--on-dark); font-weight: 600; }
.flow__down { display: grid; place-items: center; color: var(--amber); }
.flow__down svg { width: 14px; height: 18px; }
.flow__engine {
  border: 1px solid var(--indigo-lift); border-radius: 10px;
  background: oklch(0.450 0.180 270 / 0.28);
  padding: 0.85rem; display: grid; gap: 0.15rem;
}
.flow__engine strong { font-size: var(--fs-sm); color: var(--on-dark); }
.flow__engine span { font-size: var(--fs-xs); color: var(--on-dark-2); }

.flow-pulse { animation: flowPulse 2.8s var(--ease-out-soft) infinite; }
@keyframes flowPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
/* A short dash travels the length of each wire: the signal moving through. */
.flow-travel {
  stroke-dasharray: 7 400;
  stroke-dashoffset: 407;
  animation: travel 3.6s linear infinite;
}
.flow-travel.d2 { animation-delay: 0.9s; }
.flow-travel.d3 { animation-delay: 1.8s; }
.flow-travel.d4 { animation-delay: 2.7s; }
@keyframes travel {
  0%   { stroke-dashoffset: 407; opacity: 0; }
  8%   { opacity: 1; }
  70%  { opacity: 1; }
  78%  { stroke-dashoffset: 280; opacity: 0; }
  100% { stroke-dashoffset: 280; opacity: 0; }
}

/* ---------- 9. Symptom list ---------- */
.symptoms { display: grid; gap: 0; border-top: 1px solid var(--line); }
.symptom {
  display: grid; gap: var(--s2) var(--s6); align-items: baseline;
  padding-block: clamp(1.25rem, 2.4vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .symptom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.symptom__q { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.015em; }
.symptom__a { color: var(--ink-2); font-size: var(--fs-sm); max-width: 48ch; }
.symptom__a b { color: var(--indigo-ink); font-weight: 600; }

/* ---------- 10. Services ---------- */
.services { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .services { grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5rem); align-items: start; }
  .services__aside { position: sticky; top: 104px; }
}
.svc-list { display: grid; gap: clamp(2rem, 3.5vw, 3rem); }
.svc {
  display: grid; gap: var(--s4);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.svc:last-child { border-bottom: 0; padding-bottom: 0; }
.svc__top { display: flex; align-items: flex-start; gap: var(--s4); }
.svc__icon {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-sm);
  background: var(--indigo-haze); color: var(--indigo-ink);
  display: grid; place-items: center;
}
.svc__icon svg { width: 21px; height: 21px; }
.svc p { color: var(--ink-2); }
.svc__tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.svc__tags li {
  font-size: var(--fs-xs); color: var(--ink-2); max-width: none;
  background: var(--surface); border-radius: var(--r-pill);
  padding: 0.35rem 0.75rem;
}

/* ---------- 11. AI band ---------- */
.usecases { display: grid; gap: 1px; background: var(--on-dark-line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .usecases { grid-template-columns: repeat(3, 1fr); } }
.usecase {
  background: var(--indigo-deep); padding: clamp(1.35rem, 2.4vw, 1.85rem);
  display: grid; gap: var(--s3); align-content: start;
  transition: background-color 260ms var(--ease-out);
}
.usecase:hover { background: var(--indigo-deeper); }
.usecase h3 { font-size: var(--fs-h4); letter-spacing: -0.012em; }
.usecase p { font-size: var(--fs-sm); line-height: 1.6; }
.usecase__saves {
  font-size: var(--fs-xs); color: var(--amber); font-weight: 600;
  padding-top: var(--s2); border-top: 1px solid var(--on-dark-line); max-width: none;
}

.caveat {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-lg);
  display: grid; gap: var(--s3);
}
.caveat h3 { color: var(--amber); }
.caveat p { max-width: 74ch; }

/* ---------- 12. Packages ---------- */
.packs { display: grid; gap: var(--s5); }
@media (min-width: 880px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  display: grid; gap: var(--s4); align-content: start;
  background: var(--bg);
  transition: border-color 240ms var(--ease-out), transform 280ms var(--ease-out);
}
.pack:hover { border-color: var(--indigo); transform: translateY(-3px); }
.pack--lead { background: var(--surface); border-color: var(--line-strong); }
.pack__when {
  font-size: var(--fs-xs); font-weight: 600; color: var(--indigo-ink);
  background: var(--indigo-haze); border-radius: var(--r-pill);
  padding: 0.3rem 0.7rem; justify-self: start; max-width: none;
}
.pack p { font-size: var(--fs-sm); color: var(--ink-2); }
.pack__out { display: grid; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.pack__out li { display: grid; grid-template-columns: 16px 1fr; gap: 0.55rem; align-items: start; max-width: none; }
.pack__out svg { width: 15px; height: 15px; margin-top: 5px; color: var(--indigo); flex: none; }

/* ---------- 13. Capability list: icon + label rows, not a card grid ---------- */
.caps { display: grid; gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 620px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap {
  display: flex; align-items: center; gap: var(--s4); max-width: none;
  padding-block: clamp(0.85rem, 1.7vw, 1.1rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: -0.012em; line-height: 1.25;
}
.cap svg {
  width: 34px; height: 34px; flex: none; padding: 6px;
  border-radius: var(--r-sm); background: var(--indigo-haze); color: var(--indigo-ink);
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.cap:hover svg { background: var(--btn-ink-bg); color: var(--btn-ink-ink); }

/* ---------- 14. Approach (a real sequence, so it is numbered) ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid; gap: var(--s2) var(--s5);
  padding-block: clamp(1.35rem, 2.6vw, 2rem);
  border-top: 1px solid var(--line);
  align-items: start;
  grid-template-columns: 2.75rem minmax(0, 1fr);
}
@media (min-width: 820px) { .step { grid-template-columns: 3.5rem minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--indigo); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; max-width: none;
}
.step h3 { grid-column: 2; font-size: var(--fs-h4); letter-spacing: -0.012em; }
.step p { grid-column: 2; color: var(--ink-2); font-size: var(--fs-sm); }
@media (min-width: 820px) { .step p { grid-column: 3; grid-row: 1; margin-top: 0.15rem; } }

/* ---------- 15. Founder ---------- */
.founder { display: grid; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
/* The practice at a glance: the dark panel that anchors this section */
.glance {
  background: var(--indigo-deep); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.8vw, 2rem);
  align-self: start;
}
.glance h3 { color: var(--on-dark); font-size: var(--fs-h4); margin-bottom: var(--s5); }
.glance ul { display: grid; gap: 0; }
.glance li {
  display: grid; gap: 0.15rem; max-width: none;
  padding-block: var(--s4);
  border-top: 1px solid var(--on-dark-line);
}
.glance li:first-child { padding-top: 0; border-top: 0; }
.glance li:last-child { padding-bottom: 0; }
.glance b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem; letter-spacing: -0.02em; color: var(--amber);
}
.glance span { font-size: var(--fs-sm); color: var(--on-dark-2); line-height: 1.5; }

/* Roles the practice covers */
.roles__k { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s3); max-width: none; }
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pills li {
  font-size: var(--fs-xs); color: var(--ink-2); max-width: none;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0.35rem 0.8rem;
}

/* ---------- 16. Work themes ---------- */
.themes { display: grid; gap: var(--s5); }
@media (min-width: 880px) { .themes { grid-template-columns: repeat(2, 1fr); } }
.theme {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.8vw, 2.1rem); display: grid; gap: var(--s4);
  align-content: start;
}
.theme__top { display: flex; align-items: center; gap: var(--s4); }
.theme p { font-size: var(--fs-sm); color: var(--ink-2); max-width: 60ch; line-height: 1.6; }
.theme__ic {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm);
  background: var(--bg); color: var(--indigo-ink);
  display: grid; place-items: center;
}
.theme__ic svg { width: 22px; height: 22px; }

/* ---------- 17. FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; gap: var(--s4); align-items: center; justify-content: space-between;
  padding-block: clamp(1.05rem, 2vw, 1.4rem);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 180ms var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--indigo); }
.faq__ic { flex: none; width: 20px; height: 20px; color: var(--indigo); transition: transform 300ms var(--ease-out); }
.faq details[open] .faq__ic { transform: rotate(45deg); }
.faq__body { padding-bottom: var(--s5); color: var(--ink-2); font-size: var(--fs-sm); max-width: 70ch; }
.faq__body p + p { margin-top: var(--s3); }

/* ---------- 18. Contact ---------- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(3rem, 6vw, 5rem); } }
.form { display: grid; gap: var(--s4); }
.form__two { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .form__two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s2); }
.field label { font-size: var(--fs-sm); font-weight: 600; max-width: none; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  background: oklch(0.196 0.074 272);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r); color: var(--on-dark);
  font-size: var(--fs-sm); font-family: inherit;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-2); opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: oklch(0.460 0.060 272); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber); background: oklch(0.235 0.082 272);
}
.field select option { background: #22203a; color: #fff; }
.form__note { font-size: var(--fs-xs); color: var(--on-dark-2); max-width: 52ch; }
#form-status[data-state="error"] { color: var(--amber); font-weight: 600; }

/* Anti-spam question: narrow, so it reads as a check and not another long answer */
.field--cap label b { color: var(--amber); font-variant-numeric: tabular-nums; }
.field--cap input { max-width: 13rem; }

.reach { display: grid; gap: 0; align-content: start; }
.reach h3 { color: var(--on-dark); font-size: var(--fs-h4); margin-bottom: var(--s5); }

/* What happens next: a real sequence, so it is numbered */
.next { display: grid; gap: 0; counter-reset: step; }
.next li {
  counter-increment: step;
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.15rem var(--s4);
  padding-block: var(--s4); border-top: 1px solid var(--on-dark-line);
  max-width: none;
}
.next li:first-child { padding-top: 0; border-top: 0; }
.next li::before {
  content: counter(step);
  grid-row: 1 / span 2; align-self: start;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.3;
}
.next b { font-size: var(--fs-sm); color: var(--on-dark); font-weight: 600; }
.next span { font-size: var(--fs-sm); color: var(--on-dark-2); line-height: 1.55; }
.reach__item {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: var(--s4);
  padding-block: var(--s4); border-bottom: 1px solid var(--on-dark-line);
  text-decoration: none; align-items: center;
}
.reach__item:first-of-type { border-top: 1px solid var(--on-dark-line); }
.reach__ic {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: oklch(1 0 0 / 0.09); display: grid; place-items: center; color: var(--amber);
}
.reach__ic svg { width: 18px; height: 18px; }
.reach__k { font-size: var(--fs-xs); color: var(--on-dark-2); max-width: none; }
.reach__v { font-weight: 600; font-size: var(--fs-sm); max-width: none; transition: color 180ms var(--ease-out); }
a.reach__item:hover .reach__v { color: var(--amber); }

/* ---------- 19. Footer ---------- */
.foot { background: var(--indigo-deeper); color: var(--on-dark-2); padding-block: var(--s8) var(--s6); }
.foot__grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .foot__grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--s7); } }
.foot .brand { color: var(--on-dark); }
.foot h2 {
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600;
  color: var(--on-dark); margin-bottom: var(--s3); letter-spacing: -0.01em;
}
.foot ul { display: grid; gap: var(--s2); }
.foot li { max-width: none; }
.foot a { text-decoration: none; font-size: var(--fs-sm); transition: color 180ms var(--ease-out); }
.foot a:hover { color: var(--amber); }
.foot__blurb { font-size: var(--fs-sm); max-width: 42ch; margin-top: var(--s4); line-height: 1.65; }
.foot__bar {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--on-dark-line);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  justify-content: space-between; font-size: var(--fs-xs);
}
.foot__bar p { max-width: none; }

/* ---------- 20. Motion: reveals enhance an already-visible default ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
  .flow-pulse { animation: none; opacity: 0.9; }
  .flow-travel { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.55; }
  .btn:hover .btn__arrow { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 20b. Long-form pages (privacy) ---------- */
.prose h1 { margin-bottom: var(--s5); }
.prose h2 {
  font-size: var(--fs-h3); margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--s4); padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: var(--fs-h4); margin-top: var(--s6); margin-bottom: var(--s3); }
.prose p { color: var(--ink-2); margin-bottom: var(--s4); }
.prose p.head__lede { color: var(--ink-2); margin-bottom: var(--s4); }
.prose strong { color: var(--ink); }
.prose a { color: var(--indigo); text-underline-offset: 3px; }
.prose code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.1em 0.4em; word-break: break-word;
}
.prose__date { font-size: var(--fs-sm); color: var(--ink-3); }
.prose__table { overflow-x: auto; margin-bottom: var(--s5); }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--fs-sm); }
.prose th, .prose td {
  text-align: left; padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }

/* ---------- 21. Cookie banner ----------
   Sits above the page rather than blocking it: a visitor who ignores it can
   still read everything, which is the point, since nothing is tracked until
   they choose. Accept and Reject are the same size on purpose. */
.cookie {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-modal);
  background: var(--indigo-deep); color: var(--on-dark);
  border-top: 1px solid var(--on-dark-line);
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
  box-shadow: 0 -12px 40px -24px oklch(0 0 0 / 0.7);
}
.cookie__in {
  display: grid; gap: var(--s4) var(--s6); align-items: center;
}
@media (min-width: 860px) {
  .cookie__in { grid-template-columns: minmax(0, 1fr) auto; }
}
.cookie p {
  font-size: var(--fs-sm); color: var(--on-dark-2);
  line-height: 1.55; max-width: 74ch; margin: 0;
}
.cookie b { color: var(--on-dark); font-weight: 600; }
.cookie a { color: var(--amber); text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cookie__actions .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
@media (min-width: 560px) { .cookie__actions .btn { flex: 0 0 auto; } }

/* The banner is dark in both themes, so its ghost button needs the on-dark
   treatment explicitly. Without this the Reject button is near-black on dark
   indigo in light mode: unreadable, and refusing must be as easy as agreeing. */
.cookie .btn--ghost { border-color: var(--on-dark-line); color: var(--on-dark); }
.cookie .btn--ghost:hover { border-color: var(--on-dark-2); background: oklch(1 0 0 / 0.06); }
.cookie :focus-visible { outline-color: var(--amber); }

/* Footer link that reopens the choice */
.foot [data-consent-reopen] { cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .cookie { box-shadow: none; } }

/* ---------- 22. Utilities ---------- */
.u-vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-mt5 { margin-top: var(--s5); }
.u-mt6 { margin-top: var(--s6); }
.u-mt7 { margin-top: var(--s7); }
