/* ============================================================================
   Lokuva Tech Ltd — lokuvatech.org
   Design system: aubergine ink ground, oxblood accent, warm bone paper.
   Dark-first, editorial. No framework, no build step.
   ========================================================================== */

:root {
  /* Ground — near-black with a plum cast */
  --ink-950: #08060a;
  --ink-900: #0d0a0f;
  --ink-850: #120e15;
  --ink-800: #18121b;
  --ink-750: #1f1722;
  --ink-700: #281d2b;

  /* Hairlines on dark */
  --line:      #2b2030;
  --line-soft: #1e1622;
  --line-lift: #3a2c40;

  /* Type on dark */
  --bone:   #f3eee9;
  --bone-2: #cabfc0;
  --bone-3: #948a92;

  /* Accent — oxblood / wine */
  --wine-800: #4d1523;
  --wine-700: #6d1f31;
  --wine-600: #8f2a40;
  --wine-500: #ad3752;
  --wine-400: #c9556e;
  --wine-300: #e694a5;

  /* Secondary — warm sand, used sparingly as a hairline or a mark */
  --sand:   #d8bb92;
  --sand-2: #efdcc2;
  --sand-3: #8a7358;

  /* Paper (inverted sections) */
  --paper:   #f6f1ec;
  --paper-2: #ffffff;
  --paper-3: #ece4dc;
  --paper-line: #ddd2c7;
  --paper-ink:   #1a1319;
  --paper-ink-2: #4a3f48;
  --paper-ink-3: #776b74;

  /* Contextual tokens — re-bound inside .strip--paper */
  --bg:        var(--ink-950);
  --fg:        var(--bone);
  --fg-2:      var(--bone-2);
  --fg-3:      var(--bone-3);
  --hairline:  var(--line);
  --surface:   var(--ink-850);
  --surface-2: var(--ink-800);
  --accent:    var(--wine-500);
  --accent-2:  var(--wine-400);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1180px;
  --gap: 28px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.68;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--wine-700); color: #fff; }

:focus-visible {
  outline: 2px solid var(--wine-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  background: var(--wine-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ------------------------------------------------------------- layout --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}
.shell--narrow { max-width: 860px; }

.strip {
  position: relative;
  padding: clamp(72px, 9vw, 124px) 0;
  background: var(--ink-950);
  border-top: 1px solid var(--line-soft);
}
.strip--tight { padding: clamp(48px, 6vw, 72px) 0; }
.strip--raised { background: var(--ink-900); }
.strip--deep {
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(143, 42, 64, .22), transparent 62%),
    var(--ink-900);
}

/* Inverted, warm-paper section — the only light ground on the site */
.strip--paper {
  --bg: var(--paper);
  --fg: var(--paper-ink);
  --fg-2: var(--paper-ink-2);
  --fg-3: var(--paper-ink-3);
  --hairline: var(--paper-line);
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
  --accent: var(--wine-700);
  --accent-2: var(--wine-600);
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 0;
}
.strip--paper h1, .strip--paper h2, .strip--paper h3, .strip--paper h4 { color: var(--paper-ink); }

/* ---------------------------------------------------------- typography -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.strip--paper .eyebrow { color: var(--wine-700); }

.display {
  font-size: clamp(2.5rem, 6.1vw, 4.35rem);
  letter-spacing: -.032em;
}
.h2 { font-size: clamp(1.95rem, 3.5vw, 2.85rem); }
.h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); letter-spacing: -.015em; }
.h4 { font-size: 1.06rem; letter-spacing: -.008em; }

em.tint {
  font-style: italic;
  color: var(--wine-400);
  font-weight: 500;
}
.strip--paper em.tint { color: var(--wine-700); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.66;
  color: var(--fg-2);
  font-weight: 350;
  max-width: 62ch;
}
.body { color: var(--fg-2); }
.small { font-size: .92rem; color: var(--fg-3); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.section-head { max-width: 66ch; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head .lede { margin-top: 20px; }

/* --------------------------------------------------------------- rules -- */

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--hairline) 34%, transparent 100%);
}
.rule--full { background: var(--hairline); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn--primary {
  background: var(--wine-600);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(173, 55, 82, .8);
}
.btn--primary:hover { background: var(--wine-500); }

.btn--ghost {
  border-color: var(--line-lift);
  color: var(--bone);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--wine-500); color: #fff; }

.strip--paper .btn--ghost { border-color: var(--paper-line); color: var(--paper-ink); }
.strip--paper .btn--ghost:hover { border-color: var(--wine-700); color: var(--wine-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link:hover { border-color: currentColor; gap: 12px; }
.link::after { content: "\2192"; font-weight: 400; }

/* ----------------------------------------------------------------- nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 10, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(8, 6, 10, .95); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 38px; height: 38px; flex: none; border-radius: 9px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.028em;
  line-height: 1.1;
  color: var(--bone);
}
.brand__name em { font-style: normal; color: var(--wine-400); }
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bone-2);
  transition: color .2s var(--ease);
  position: relative;
}
.nav__links a:not(.btn):hover { color: var(--bone); }
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: var(--wine-500);
  transition: right .28s var(--ease);
}
.nav__links a:not(.btn):hover::after { right: 0; }
.nav__links a.is-current { color: var(--bone); }
.nav__links a.is-current::after { right: 0; }
.nav__cta { margin-left: 6px; }
.nav__cta::after { display: none; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--bone);
  position: relative;
  transition: background .2s var(--ease);
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--bone);
  transition: transform .28s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding: clamp(64px, 8vw, 116px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(820px 460px at 78% 4%, rgba(109, 31, 49, .30), transparent 66%),
    radial-gradient(620px 420px at 4% 96%, rgba(216, 187, 146, .07), transparent 68%),
    var(--ink-950);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: start;
}
.hero h1 { margin-bottom: 26px; }
.hero .lede { max-width: 54ch; }

/* Studio index — the numbered practice list beside the headline */
.index {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  overflow: hidden;
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, .95);
}
.index__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .015);
}
.index__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.index__meta { font-family: var(--font-mono); font-size: 11px; color: var(--bone-3); }

.index__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s var(--ease);
}
.index__row:last-child { border-bottom: 0; }
.index__row:hover { background: rgba(173, 55, 82, .07); }
.index__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--wine-400);
  padding-top: 4px;
}
.index__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.014em;
  color: var(--bone);
}
.index__desc { font-size: 13.6px; line-height: 1.55; color: var(--bone-3); margin-top: 3px; }
.index__foot {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--bone-3);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.index__foot b { color: var(--sand); font-weight: 500; }

/* --------------------------------------------------------- fact ribbon -- */

.ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-900);
}
.ribbon__cell {
  padding: 22px 26px;
  border-right: 1px solid var(--line-soft);
}
.ribbon__cell:last-child { border-right: 0; }
.ribbon__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-3);
  display: block;
  margin-bottom: 7px;
}
.ribbon__v { font-size: 15px; font-weight: 500; color: var(--bone); letter-spacing: -.01em; }
.ribbon__v a:hover { color: var(--wine-300); }

/* -------------------------------------------------------------- ledger -- */

.ledger { border-top: 1px solid var(--hairline); }

.entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background .3s var(--ease);
}
.entry::before {
  content: "";
  position: absolute;
  left: -28px; right: -28px; top: 0; bottom: -1px;
  background: linear-gradient(90deg, rgba(173, 55, 82, .09), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  border-radius: 6px;
}
.entry:hover::before { opacity: 1; }

.entry__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent-2);
  padding-top: 7px;
}
.entry__body h3 { margin-bottom: 14px; }
.entry__body p { color: var(--fg-2); font-size: .98rem; }
.entry__aside { padding-top: 6px; }

.tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tags li {
  position: relative;
  padding-left: 20px;
  font-size: 14.4px;
  line-height: 1.5;
  color: var(--fg-2);
}
.tags li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 1px;
  background: var(--accent);
}

/* Optional label pill inside an entry */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--fg-3);
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- path -- */

.path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.path__step {
  padding: 30px 26px 30px 0;
  border-top: 2px solid var(--hairline);
  position: relative;
}
.path__step::after {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .8s var(--ease);
}
.path__step.is-in::after { width: 62%; }
.path__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 12px;
}
.path__step h4 { margin-bottom: 9px; }
.path__step p { font-size: 14.5px; line-height: 1.58; color: var(--fg-2); }

/* --------------------------------------------------------------- cards -- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Fixed column counts, for item counts that would otherwise leave the hairline
   grid background showing through an empty cell. */
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols--3 { grid-template-columns: 1fr; } }
.col {
  background: var(--bg);
  padding: clamp(26px, 3vw, 34px);
  transition: background .3s var(--ease);
}
.col:hover { background: var(--surface); }
.col__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 16px;
}
.col h3 { margin-bottom: 12px; }
.col p { color: var(--fg-2); font-size: .95rem; }
.col .tags { margin-top: 18px; }

.col__icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  color: var(--accent-2);
}
.col__icon svg { width: 100%; height: 100%; }

/* -------------------------------------------------------------- plates -- */

.plate {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(26px, 3.2vw, 38px);
}
.plate--flush { padding: 0; overflow: hidden; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--top { align-items: start; }
/* Visual flip only — the prose stays first in the DOM so the heading is still
   read before the list that belongs to it. */
.split--flip > *:first-child { grid-column: 2; grid-row: 1; }
.split--flip > *:last-child { grid-column: 1; grid-row: 1; }

/* ----------------------------------------------------------- spec rows -- */

.spec { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
}
/* Stacked variant, for a spec list inside a narrow container such as a plate. */
.spec--stack .spec__row { grid-template-columns: 1fr; gap: 4px; }
.spec__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-top: 3px;
}
.spec__v { font-size: 15.4px; color: var(--fg); margin: 0; }
.spec__v a { border-bottom: 1px solid var(--line-lift); }
.spec__v a:hover { color: var(--wine-300); }
.strip--paper .spec__v a:hover { color: var(--wine-700); }

/* ------------------------------------------------------------- figures -- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
}
.figure { background: var(--bg); padding: 30px 26px; }
.figure__n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--fg);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.figure__n span { color: var(--accent-2); }
.figure__t { font-size: 14.2px; color: var(--fg-2); line-height: 1.55; }

/* ------------------------------------------------------------ quote/note */

.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  color: var(--fg-2);
  font-size: 1.02rem;
}
.note strong { color: var(--fg); font-weight: 600; }

/* ----------------------------------------------------------------- faq -- */

.faq { border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.012em;
  color: var(--fg);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  background: var(--accent-2);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq summary::after { width: 13px; height: 1.5px; margin-top: -.75px; }
.faq summary::before { width: 1.5px; height: 13px; margin-top: -6.5px; right: 11.75px; }
.faq details[open] summary::before { transform: scaleY(0); opacity: 0; }
.faq__a { padding: 0 60px 24px 0; color: var(--fg-2); font-size: .97rem; }
.faq__a p + p { margin-top: 12px; }

/* -------------------------------------------------------------- people -- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.person {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
}
.person__mono {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 16px;
}
.person__initials {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--sand-2);
  background: linear-gradient(145deg, var(--wine-800), var(--ink-800));
  border: 1px solid var(--line-lift);
  margin-bottom: 18px;
}
.person h3 { margin-bottom: 6px; }
.person__role { font-size: 14px; color: var(--fg-3); margin-bottom: 14px; font-family: var(--font-mono); letter-spacing: .04em; }
.person p { font-size: .95rem; color: var(--fg-2); }

/* ---------------------------------------------------------------- prose */

.prose { max-width: 76ch; }
.prose h2 { margin: 52px 0 16px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; font-size: 1.14rem; }
.prose p { margin-bottom: 16px; color: var(--fg-2); font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--fg-2); }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--wine-300); border-bottom: 1px solid rgba(230, 148, 165, .35); }
.prose a:hover { border-bottom-color: currentColor; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose .updated {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 15px;
  display: inline-block;
  margin-bottom: 34px;
}

/* ------------------------------------------------------------------ cta */

.cta {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-lift);
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(143, 42, 64, .34), transparent 65%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  padding: clamp(38px, 5vw, 62px);
  overflow: hidden;
}
.cta h2 { margin-bottom: 18px; }
.cta .lede { color: var(--bone-2); }

/* --------------------------------------------------------------- footer */

.foot {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  padding: clamp(52px, 6vw, 76px) 0 32px;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 52px);
}
.foot__blurb { color: var(--bone-3); font-size: 14.6px; margin-top: 18px; max-width: 40ch; }
.foot h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 16px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot a { font-size: 14.6px; color: var(--bone-2); }
.foot a:hover { color: var(--wine-300); }
.foot__bar {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.4px;
  color: var(--bone-3);
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ------------------------------------------------------------ 404 page -- */

.oops {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px 0;
}
.oops__code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--wine-400);
  margin-bottom: 22px;
}

/* ------------------------------------------------------------- reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path__step { padding-right: 20px; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 22px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin: 16px 0 0; justify-content: center; border-bottom: 0 !important; }
  .ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon__cell:nth-child(2n) { border-right: 0; }
  .ribbon__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .entry { grid-template-columns: 56px minmax(0, 1fr); }
  .entry__aside { grid-column: 2; padding-top: 0; }
  .split, .split--wide { grid-template-columns: 1fr; }
  /* One column: undo the desktop zig-zag placement. */
  .split--flip > *:first-child,
  .split--flip > *:last-child { grid-column: 1; grid-row: auto; }
  .spec__row { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 620px) {
  body { font-size: 16.2px; }
  .shell { padding: 0 20px; }
  .ribbon { grid-template-columns: 1fr; }
  .ribbon__cell { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .ribbon__cell:last-child { border-bottom: 0; }
  .path { grid-template-columns: 1fr; }
  .path__step { padding: 24px 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 12px; }
  /* Match the narrower shell padding so the hover wash stops at the edge. */
  .entry::before { left: -20px; right: -20px; }
  .entry__num { padding-top: 0; }
  .entry__aside { grid-column: 1; }
  .faq__a { padding-right: 8px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav__cta { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .path__step::after { width: 62%; }
}
