/* ==========================================================================
   Greenlight — design system
   Ivory, ink, champagne gold, emerald. Sharp corners. Hairlines. Glass.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-cyrillic-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --ivory: #f6f4ee;
  --paper: #fbfaf6;
  --bone: #ece8de;
  --ink: #0d0d0e;
  --ink-2: #26262a;
  --muted: #5e5a52;
  --hair: rgba(13, 13, 14, 0.12);
  --hair-strong: rgba(13, 13, 14, 0.22);
  --gold: #b08d57;
  --gold-soft: rgba(176, 141, 87, 0.42);
  --gold-deep: #7c5e2a;
  --emerald: #0f5b44;
  --emerald-light: #1f8f67;
  --danger: #8f2a1d;

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1400px;
  --nav-h: 64px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --section: clamp(96px, 14vw, 200px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* expo out */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);        /* expo in */
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);   /* expo in-out */
  --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 -1px 0 rgba(13, 13, 14, 0.04) inset, 0 40px 80px -48px rgba(54, 40, 14, 0.35), 0 12px 24px -18px rgba(54, 40, 14, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 32px); }
body { margin: 0; min-height: 100svh; background: var(--ivory); color: var(--ink-2); font: 400 1.0625rem/1.65 var(--sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold); }

.skip { position: fixed; left: var(--gutter); top: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-160%); transition: transform 0.4s var(--ease-out); }
.skip:focus-visible { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Atmosphere: marble, deco grid ---------- */
.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmos__marble { position: absolute; inset: -10%; opacity: 0.55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1400'%3E%3Cfilter id='m' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0016 .0062' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .43 0 0 0 0 .34 0 0 0 -9 4.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.16'/%3E%3C/svg%3E"); background-size: 1400px 1400px; transform: rotate(-8deg); }
.atmos__grain { position: absolute; inset: 0; opacity: 0.32; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .36 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.atmos__grid { position: absolute; inset: 0 var(--gutter); max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; background-image: linear-gradient(to right, rgba(13, 13, 14, 0.045) 1px, transparent 1px); background-size: calc(100% / 4) 100%; border-right: 1px solid rgba(13, 13, 14, 0.045); }
@media (min-width: 900px) { .atmos__grid { background-size: calc(100% / 12) 100%; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 9vw, 128px); }
.cols { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .cols > * { grid-column: 1 / -1; }
  .span-4 { grid-column: auto / span 4; } .span-5 { grid-column: auto / span 5; } .span-6 { grid-column: auto / span 6; }
  .span-7 { grid-column: auto / span 7; } .span-8 { grid-column: auto / span 8; }
  .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }
}

/* ---------- Type ---------- */
.label { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.label--gold { color: var(--gold-deep); }
.label::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); flex: none; }
.label--plain::before { display: none; }

.display { font: 300 clamp(3.4rem, 1.6rem + 7.4vw, 9.6rem)/0.9 var(--serif); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.h2 { font: 300 clamp(2.35rem, 1.3rem + 4vw, 5.4rem)/0.98 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.h3 { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.08 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.h4 { font: 600 1.0625rem/1.35 var(--sans); color: var(--ink); letter-spacing: -0.005em; }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.lead { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); line-height: 1.55; color: var(--muted); max-width: 38em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 36em; text-wrap: pretty; }
.small { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.figure { font: 300 clamp(4.2rem, 2rem + 9vw, 11rem)/0.82 var(--serif); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.figure sup { font-size: 0.32em; vertical-align: top; position: relative; top: 0.28em; letter-spacing: 0; margin-right: 0.04em; }
.figure sup.after { margin: 0 0 0 0.08em; }
.figure sup {  color: var(--gold-deep); font-weight: 400; }
.numeral { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.12em; color: var(--gold-deep); }
.roman { font: italic 300 2.2rem/1 var(--serif); color: var(--gold-deep); }
.ink-link { background: linear-gradient(currentColor, currentColor) left 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size 0.6s var(--ease-out); }
.ink-link:hover { background-size: 0% 1px; background-position: right 100%; }
code { font: 0.9em var(--mono); background: var(--bone); padding: 0.1em 0.35em; }

/* ---------- Hairlines & deco ---------- */
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.rule--gold { background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent); opacity: 0.7; }
.deco { display: flex; align-items: center; gap: 18px; color: var(--gold); }
.deco::before, .deco::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.deco::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.deco svg { width: 22px; height: 22px; flex: none; }
.corner { position: relative; }
.corner::after { content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1px 14px no-repeat;
  transition: background-size 0.8s var(--ease-out); }
.corner:hover::after { background-size: 40px 1px, 1px 40px, 40px 1px, 1px 40px; }

/* ---------- Glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.2) 46%, rgba(255, 255, 255, 0.44) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  outline: 1px solid rgba(176, 141, 87, 0.28); outline-offset: -1px;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  backdrop-filter: blur(16px) saturate(165%);
}
html.lens .glass--lens { backdrop-filter: url(#lens) blur(2.5px) saturate(160%) brightness(1.04); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 18%) var(--my, -10%), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%); opacity: 0.85; transition: opacity 0.6s var(--ease-out); }

/* ---------- Buttons ---------- */
.btn { --h: 56px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: var(--h); padding: 0 26px 0 30px; background: var(--ink); color: var(--paper); font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.01em; overflow: hidden; isolation: isolate; transition: transform 0.5s var(--ease-out), background-color 0.4s; will-change: transform; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(176, 141, 87, 0.55); pointer-events: none; transition: inset 0.5s var(--ease-out), border-color 0.5s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(214, 186, 130, 0.38) 48%, rgba(255, 240, 205, 0.55) 50%, rgba(214, 186, 130, 0.38) 52%, transparent 70%); transform: translateX(-110%); transition: transform 1.1s var(--ease-out); }
.btn:hover::after { transform: translateX(110%); }
.btn:hover::before { inset: 6px; border-color: rgba(214, 186, 130, 0.85); }
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.985); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost::before { border-color: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold-deep); }
.btn--sm { --h: 44px; padding: 0 18px 0 20px; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; view-transition-name: nav; pointer-events: none; }
.nav__bar { pointer-events: auto; display: flex; align-items: center; gap: 24px; height: var(--nav-h); padding: 0 8px 0 20px; transition: background-color 0.5s, box-shadow 0.5s; }
.nav__inner { max-width: calc(var(--max) - 2 * var(--gutter) + 0px); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1400px) { .nav__inner { padding-inline: 0; } }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); flex: none; justify-self: start; }
.brand svg { height: 15px; aspect-ratio: 454.97 / 67.6; width: auto; }
.nav__links { display: none; margin-inline: auto; gap: 4px; }
.nav__link { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 14px; font-size: 0.9375rem; color: var(--ink-2); transition: color 0.3s; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease-out); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__cta { margin-left: auto; display: none; }
.langs { position: relative; margin-left: auto; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; cursor: pointer; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; color: var(--ink-2); border: 1px solid transparent; transition: border-color 0.4s, color 0.3s; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 10px; height: 6px; transition: transform 0.5s var(--ease-out); }
.langs summary:hover { border-color: var(--gold-soft); color: var(--ink); }
.langs[open] summary svg { transform: rotate(180deg); }
.langs__list { position: absolute; right: 0; top: calc(100% + 14px); min-width: 210px; padding: 8px; display: grid; animation: langsIn 0.5s var(--ease-out) both; }
html.lens .langs__list { backdrop-filter: url(#lens) blur(18px) saturate(170%); }
.langs__list.glass { background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(251, 250, 246, 0.84)); }
@keyframes langsIn { from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.langs__list a, .sheet__langs a, .footer__langs a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; color: var(--ink-2); transition: background-color 0.3s, color 0.3s; }
.langs__list a span, .sheet__langs a span, .footer__langs a span { font: 500 0.6875rem var(--mono); letter-spacing: 0.14em; color: var(--gold-deep); width: 22px; }
.langs__list a:hover { background: rgba(176, 141, 87, 0.1); color: var(--ink); }
.langs__list a[aria-current], .sheet__langs a[aria-current], .footer__langs a[aria-current] { color: var(--ink); font-weight: 600; }
.sheet__langs { display: flex; flex-wrap: wrap; gap: 4px 8px; border-top: 1px solid var(--hair); padding-top: 16px; }
.sheet__langs a { padding: 0 10px 0 0; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer__langs a { padding: 0; min-height: 32px; font-size: 0.875rem; }
.langs ~ .nav__cta { margin-left: 4px; }
.langs ~ .nav__menu { margin-left: 0; }
@media (max-width: 999px) { .langs { display: none; } }
.nav__menu { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.nav__menu-icon { position: relative; width: 22px; height: 9px; }
.nav__menu-icon::before, .nav__menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.nav__menu-icon::before { top: 0; } .nav__menu-icon::after { top: 8px; }
[aria-expanded="true"] .nav__menu-icon::before { top: 4px; transform: rotate(45deg); }
[aria-expanded="true"] .nav__menu-icon::after { top: 4px; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; margin-left: 0; }
  .langs { margin-left: 0; }
  .nav__menu { display: none; }
}
.nav__bar.glass { background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(251, 250, 246, 0.66)); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
html.lens .nav__bar.glass--lens { backdrop-filter: url(#lens) blur(16px) saturate(170%); }
@media (max-width: 419px) {
  .nav__bar { gap: 8px; padding-left: 14px; }
  .brand svg { height: 13px; }
  .nav__menu { padding: 0 10px; min-width: 44px; justify-content: center; }
  .nav__menu-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav.is-scrolled .nav__bar.glass { background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(251, 250, 246, 0.8)); }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 49; padding: calc(var(--nav-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 32px; background: rgba(246, 244, 238, 0.82); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s; overflow-y: auto; }
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out), visibility 0s; }
.sheet__links a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); font: 300 clamp(2rem, 9vw, 3.2rem)/1 var(--serif); color: var(--ink); opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
.sheet__links a span { font: 400 0.75rem var(--mono); letter-spacing: 0.14em; color: var(--gold-deep); }
.sheet.is-open .sheet__links a { opacity: 1; transform: none; }
.sheet.is-open .sheet__links li:nth-child(2) a { transition-delay: 0.06s; }
.sheet.is-open .sheet__links li:nth-child(3) a { transition-delay: 0.12s; }
.sheet.is-open .sheet__links li:nth-child(4) a { transition-delay: 0.18s; }
.sheet.is-open .sheet__links li:nth-child(5) a { transition-delay: 0.24s; }
@media (min-width: 1000px) { .sheet { display: none; } }
html.menu-open { overflow: hidden; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold-deep), var(--gold), #e3c88f); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 72px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero--page { min-height: 86svh; }
.hero__burst { position: absolute; z-index: -1; left: 88%; top: 86%; width: max(1100px, 250vw); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--gold); pointer-events: none; }
@media (min-width: 1100px) { .hero__burst { left: 80%; top: 64%; width: 132vw; } }
.hero--page .hero__burst { left: 92%; top: 100%; }
.hero__burst path, .hero__burst circle { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.hero__burst .rays path { stroke-width: 0.6; stroke-opacity: 0.55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) forwards; animation-delay: calc(0.4s + var(--g, 0) * 0.14s); }
.hero__burst .arcs circle { stroke-width: 0.7; stroke-opacity: 0.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s var(--ease-in-out) forwards; animation-delay: calc(0.2s + var(--g, 0) * 0.16s); }
.hero__burst .burst-spin { transform-origin: 50% 50%; animation: spin 240s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__kicker { margin-bottom: clamp(24px, 4vw, 48px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.4s var(--ease-out) forwards; animation-delay: calc(0.15s + var(--d, 0) * 0.12s); }
@keyframes rise { to { transform: none; } }
.hero__foot { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .hero__foot { grid-template-columns: minmax(0, 1fr) auto; } }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: end; }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); } }
.plaque { padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; transform-origin: 50% 100%; animation: plaqueIn 1.8s var(--ease-out) 0.9s both; }
@keyframes plaqueIn { from { opacity: 0; transform: perspective(1200px) rotateX(28deg) translateY(48px); filter: blur(8px); } }
.plaque__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plaque__head svg { width: 26px; height: 26px; color: var(--gold-deep); }
.plaque .figure { font-size: clamp(4.6rem, 3rem + 4vw, 7.4rem); }
.plaque dl { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--hair); }
.plaque dt, .plaque dd { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 0.875rem; }
.plaque dt { font: 500 0.6875rem/1.9 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-right: 20px; }
.plaque dd { color: var(--ink); text-align: right; }
.plaque__foot { display: flex; justify-content: space-between; gap: 12px; font: 500 0.6875rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1.2s var(--ease-out) forwards; animation-delay: calc(0.6s + var(--d, 0) * 0.1s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.scroll-cue { display: inline-flex; align-items: center; gap: 14px; font: 500 0.75rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--hair-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-deep); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--hair); overflow: hidden; padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 400 0.8125rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Doors (two shopfronts) ---------- */
.doors { display: grid; gap: 20px; }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; gap: 24px; } }
.door { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 4vw, 52px); min-height: clamp(460px, 48vw, 640px); transition: transform 0.9s var(--ease-out); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.door__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.door__title { font: 300 clamp(3rem, 2rem + 4vw, 6rem)/0.9 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.door__body { margin-top: auto; display: grid; gap: 24px; }
.door__price { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.door__price .figure { font-size: clamp(3.6rem, 2rem + 5vw, 6.8rem); }
.door__price p { max-width: 15em; padding-bottom: 8px; }
.door__enter { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--hair); font-weight: 500; color: var(--ink); }
.door__enter svg { width: 22px; height: 22px; transition: transform 0.6s var(--ease-out); }
.door:hover .door__enter svg { transform: translateX(8px); }
.door__glyph { width: 56px; height: 56px; color: var(--gold); }

/* ---------- Manifesto (scroll-lit words) ---------- */
.manifesto { font: 300 clamp(2rem, 1.1rem + 3.6vw, 4.6rem)/1.08 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; max-width: 20em; }
.manifesto .w { opacity: var(--o, 1); transition: opacity 0.25s linear; }
html.js .manifesto .w { --o: 0.14; }
.manifesto em { font-style: italic; color: var(--gold-deep); }

/* ---------- Terms ---------- */
.terms { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .terms { grid-template-columns: repeat(3, 1fr); } }
.term { padding: 32px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .term { padding: 32px 28px 32px 0; border-bottom: 0; } .term + .term { padding-left: 28px; border-left: 1px solid var(--hair); } }
.term__k { font-variant-numeric: lining-nums; font: 400 clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem)/1 var(--serif); color: var(--ink); }

/* ---------- Vows ---------- */
.vows { display: grid; gap: 1px; padding: 1px; }
@media (min-width: 700px) { .vows { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .vows { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .vows--3 { grid-template-columns: repeat(3, 1fr); } }
.vow { box-shadow: 0 0 0 1px var(--hair); background: var(--ivory); padding: clamp(28px, 3vw, 40px); display: grid; gap: 20px; align-content: start; min-height: 320px; transition: background-color 0.6s var(--ease-out); }
.vow:hover { background: var(--paper); }
.vow .h3 { font-size: clamp(1.7rem, 1.4rem + 0.9vw, 2.2rem); }

/* ---------- Steps (method) ---------- */
/* ---------- Start here: "What happened?" ---------- */
.label--emerald { color: var(--emerald); }
.triage { display: grid; gap: 1px; padding: 1px; }
@media (min-width: 900px) { .triage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { box-shadow: 0 0 0 1px var(--hair); background: var(--ivory); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; transition: background-color 0.6s var(--ease-out); }
.case:hover { background: var(--paper); }
.case__title { font: 400 clamp(1.7rem, 1.35rem + 1vw, 2.25rem)/1.08 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.case__now { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hair); }
.case__now p:last-child { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.case__price { margin-top: auto; display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--hair); }
.case__price b { font: 400 2.1rem/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin-right: 4px; }
.case__go { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--paper); font-weight: 500; transition: background-color 0.4s; }
.case__go:hover { background: var(--ink-2); }
.case__go svg { width: 20px; height: 20px; flex: none; transition: transform 0.6s var(--ease-out); }
.case__go:hover svg { transform: translateX(6px); }
.triage__note { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* ---------- Questions ---------- */
.faq { border-top: 1px solid var(--hair-strong); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 24px 0; cursor: pointer; font: 400 clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem)/1.2 var(--serif); color: var(--ink); transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); transition: background-color 0.4s, transform 0.6s var(--ease-out); }
.faq summary:hover { color: var(--gold-deep); }
.faq details[open] summary::after { background: var(--gold); transform: rotate(225deg); }
.faq__a { padding: 0 0 28px; max-width: 40em; color: var(--ink-2); }

.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 36px 0; border-top: 1px solid var(--hair); display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .step { padding: 36px 36px 0 0; } }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.15s); }
.step.is-in::before { transform: scaleX(1); }

/* ---------- Timeline (vertical) ---------- */
.timeline { position: relative; display: grid; gap: 0; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--hair); }
.timeline__fill { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold-deep), var(--gold)); transform-origin: top; transform: scaleY(var(--t, 0)); }
.timeline li { position: relative; padding-block: 22px; display: grid; gap: 6px; border-bottom: 1px solid var(--hair); }
.timeline li::before { content: ""; position: absolute; left: -41px; top: 31px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--ivory); border: 1px solid var(--gold-deep); transition: background-color 0.4s; }
.timeline li.is-lit::before { background: var(--gold-deep); }
.timeline .numeral { margin-bottom: 4px; }

/* ---------- Ledger ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ledger th { text-align: left; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.ledger td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ledger td:first-child, .ledger td:last-child { white-space: nowrap; }
.ledger__empty td { padding-block: 64px; text-align: center; font: italic 300 clamp(1.5rem, 1.2rem + 1vw, 2.2rem)/1.2 var(--serif); color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll.corner::after { inset: 0; } /* the -1px corner lines would overflow and show scrollbars */

/* ---------- Calculator ---------- */
.calc { padding: clamp(24px, 4vw, 56px); display: grid; gap: 40px; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1fr 1fr; gap: 64px; } }
.field-range { display: grid; gap: 14px; }
.field-range + .field-range { margin-top: 32px; }
.field-range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.field-range output { font: 300 2.2rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--hair-strong) var(--fill)); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--hair-strong); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; background: var(--paper); border: 1px solid var(--ink); transform: rotate(45deg); transition: background-color 0.3s, transform 0.4s var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 0; background: var(--paper); border: 1px solid var(--ink); transform: rotate(45deg); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--gold); transform: rotate(45deg) scale(1.15); }
input[type="range"]:focus-visible { box-shadow: none; outline-offset: 0; }
.calc__out { display: grid; gap: 28px; align-content: center; }
.calc__line { display: grid; gap: 6px; padding-bottom: 24px; border-bottom: 1px solid var(--hair); }
.calc__line:last-child { border-bottom: 0; padding-bottom: 0; }
.calc__big { font: 300 clamp(3.4rem, 2rem + 4.6vw, 6.4rem)/0.9 var(--serif); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.calc__mid { font: 300 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.calc__mid--emerald { color: var(--emerald); }

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 20px; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; gap: 24px; } }
.tier { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 28px; }
.tier--feature { background: var(--ink); color: rgba(251, 250, 246, 0.78); border: 1px solid var(--ink); box-shadow: 0 50px 100px -60px rgba(13, 13, 14, 0.7); }
.tier--feature .h3, .tier--feature .figure, .tier--feature .h4 { color: var(--paper); }
.tier--feature .label { color: #d6ba82; }
.tier--feature .rule { background: rgba(251, 250, 246, 0.14); }
.tier--feature .ticks li::before { border-color: #d6ba82; }
.tier--feature .btn { background: var(--paper); color: var(--ink); }
.tier--feature .small { color: rgba(251, 250, 246, 0.66); }
.tier--feature strong { color: var(--paper); }
.tier__price { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tier__price .figure { font-size: clamp(4rem, 2.6rem + 4vw, 7rem); }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }

/* ---------- Grid list (checklist areas) ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.areas li { padding: 28px 24px 32px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 10px; align-content: start; transition: background-color 0.5s; }
.areas li:hover { background: rgba(251, 250, 246, 0.8); }

/* ---------- Quote ---------- */
.promise { padding: clamp(28px, 5vw, 72px); }
.promise blockquote { font: 300 clamp(1.4rem, 1.05rem + 1.1vw, 2.05rem)/1.4 var(--serif); color: var(--ink); text-wrap: pretty; }
.promise blockquote strong { font-weight: 500; font-style: italic; color: var(--gold-deep); }

/* ---------- Split panels ---------- */
.split { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { background: var(--ivory); padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; align-content: start; }
.split > .is-default { background: var(--paper); }

/* ---------- Refusals list ---------- */
.refuse { display: grid; gap: 0; }
.refuse li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.refuse li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--danger); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta .display { font-size: clamp(2.8rem, 1.2rem + 6.4vw, 8rem); }
.cta__burst { position: absolute; left: 50%; top: 100%; width: max(1200px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--gold); z-index: -1; pointer-events: none; }
.cta__burst path { fill: none; stroke: currentColor; stroke-width: 0.6; stroke-opacity: 0.45; vector-effect: non-scaling-stroke; }
.cta .btn-row { justify-content: center; }
.cta .lead { margin-inline: auto; }

/* ---------- Forms ---------- */
.form { padding: clamp(24px, 4vw, 56px); }
.form__progress { display: flex; gap: 6px; margin-bottom: 36px; }
.form__progress span { flex: 1; height: 2px; background: var(--hair); position: relative; overflow: hidden; }
.form__progress span::after { content: ""; position: absolute; inset: 0; background: var(--gold-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.form__progress span.is-done::after { transform: scaleX(1); }
.form__steps { position: relative; }
.form__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 22px; }
.form__step + .form__step { margin-top: 48px; }
html.js .form--stepped .form__step + .form__step { margin-top: 0; }
html.js .form--stepped .form__step:not(.is-active) { display: none; }
.form__step.is-entering { animation: stepIn 0.8s var(--ease-out) both; }
.form__step.is-entering-back { animation: stepInBack 0.8s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(32px); filter: blur(4px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-32px); filter: blur(4px); } }
.form__step legend { padding: 0; margin-bottom: 8px; display: grid; gap: 12px; }
.field { display: grid; gap: 8px; }
.field label, .field .field__label { font: 500 0.875rem/1.3 var(--sans); color: var(--ink); }
.field__hint { font-size: 0.8125rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; background: rgba(251, 250, 246, 0.75); border: 1px solid var(--hair-strong); border-radius: 0; transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); background: var(--paper); outline: none; box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.28); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field__error { font-size: 0.8125rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.choices { display: grid; gap: 12px; }
@media (min-width: 700px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__card { display: grid; gap: 8px; padding: 22px 22px 24px; border: 1px solid var(--hair-strong); background: rgba(251, 250, 246, 0.6); transition: border-color 0.3s, background-color 0.3s, box-shadow 0.4s; min-height: 100%; }
.choice__card strong { font: 400 1.6rem/1 var(--serif); color: var(--ink); }
.choice input:checked + .choice__card { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink), 0 24px 40px -30px rgba(54, 40, 14, 0.5); }
.choice input:focus-visible + .choice__card { box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.4); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; cursor: pointer; font-size: 0.9375rem; }
.check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--ink-2); background: var(--paper); display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ""; width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg) scale(0); transition: transform 0.35s var(--ease-out); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.form__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); }
.form__back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; color: var(--muted); }
.form__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.form__back[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 16px; font-size: 0.875rem; color: var(--danger); }
.form__status:empty { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading span { opacity: 0.5; }

html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
.choices--inline { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.choices--inline .check { align-items: center; min-height: 44px; }
.intake { padding-top: calc(var(--nav-h) + 80px); overflow: clip; min-height: 100svh; }
.intake__next { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.intake__next li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 0.9375rem; }
.intake__next .numeral { padding-top: 4px; }

.legal h2 { margin-top: 72px; margin-bottom: 18px; padding-top: 28px; border-top: 1px solid var(--hair-strong); scroll-margin-top: calc(var(--nav-h) + 40px); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font: 600 1.0625rem/1.35 var(--sans); color: var(--ink); margin: 32px 0 8px; }
.legal ul { display: grid; gap: 10px; margin-top: 1em; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.legal p + ul, .legal ul + p, .legal dl + p { margin-top: 1em; }
.legal strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--hair); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.facts dt { padding-right: 24px; font: 500 0.75rem/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); }
.legal a { overflow-wrap: anywhere; }
@media (max-width: 479px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { padding-bottom: 0; border-bottom: 0; } .facts dd { padding-top: 2px; } }
.legal-index ol { display: grid; gap: 2px; border-left: 1px solid var(--hair); }
.legal-index a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.875rem; color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.legal-index a:hover { color: var(--ink); border-left-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(80px, 10vw, 140px); padding-bottom: calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: linear-gradient(to bottom, transparent, rgba(236, 232, 222, 0.6)); }
.footer__word { font: 300 clamp(5.5rem, 1rem + 21vw, 24rem)/0.8 var(--serif); letter-spacing: -0.045em; color: var(--ink); white-space: nowrap; overflow: hidden; margin-top: clamp(64px, 8vw, 120px); }
.footer__stop { display: inline-block; width: 0.075em; height: 0.075em; margin-left: 0.07em; background: var(--emerald-light); transform: translateY(-0.02em) rotate(45deg); vertical-align: baseline; }
.footer__word span { display: inline-block; background: linear-gradient(180deg, var(--ink) 30%, rgba(13, 13, 14, 0.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__cols { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer__cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__cols h2 { margin-bottom: 18px; }
.footer__cols li + li { margin-top: 10px; }
.footer__cols a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 20px; max-width: 26em; }
@media (min-width: 900px) { .footer__brand { grid-column: auto; } }
.footer__base { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* ---------- Reveal system ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.09s); }
html.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 0.09s); }
html.js [data-reveal="scale"] { transform: translateY(40px) scale(0.97); }
html.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
html.js [data-split] .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
html.js [data-split] .wl > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.045s); }
html.js [data-split].is-in .wl > span { transform: none; }

/* ---------- Page transitions: the vault seam ---------- */
@view-transition { navigation: auto; }
::view-transition { background: var(--ivory) linear-gradient(90deg, transparent, var(--gold) 20%, #e3c88f 50%, var(--gold) 80%, transparent) center / 0% 1px no-repeat; animation: seam 1.1s var(--ease-in-out) both; }
@keyframes seam { 0% { background-size: 0% 1px; } 42%, 100% { background-size: 100% 1px; } }
::view-transition-old(root) { animation: vaultOut 0.55s var(--ease-in) both; }
::view-transition-new(root) { animation: vaultIn 0.95s var(--ease-out) 0.42s both; }
@keyframes vaultOut { to { opacity: 0; transform: scale(0.97); filter: blur(8px); } }
@keyframes vaultIn { from { clip-path: inset(50% 0 50% 0); transform: scale(1.015); } to { clip-path: inset(0 0 0 0); transform: none; } }
::view-transition-group(nav) { animation: none; z-index: 2; }

/* ---------- Utilities ---------- */
.g0{--g:0}.g1{--g:1}.g2{--g:2}.g3{--g:3}.g4{--g:4}.g5{--g:5}.g6{--g:6}.g7{--g:7}.g8{--g:8}.g9{--g:9}.g10{--g:10}.g11{--g:11}
.d0{--d:0}.d1{--d:1}.d2{--d:2}.d3{--d:3}.d4{--d:4}.d5{--d:5}.d6{--d:6}
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); } .mt-9 { margin-top: var(--s-9); }
.stack { display: grid; gap: var(--s-5); align-content: start; }
.stack-lg { display: grid; gap: var(--s-6); align-content: start; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.ink { color: var(--ink); }
.emerald { color: var(--emerald); }
.nowrap { white-space: nowrap; }
.max-30 { max-width: 30em; }
.sticky { position: sticky; top: calc(var(--nav-h) + 48px); }
.head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .head--split { grid-template-columns: 1fr 1fr; align-items: end; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-split] .wl > span { opacity: 1; transform: none; clip-path: none; }
  html.js .manifesto .w { --o: 1; }
  .marquee__track { animation: none; }
  .door { transform: none !important; }
}

/* ---------- Print ---------- */
@media print { .nav, .atmos, .progress, .sheet, .marquee, .hero__burst, .cta__burst { display: none !important; } body { background: #fff; } }

/* ---------- Bulgarian typography ----------
   Cormorant's Bulgarian (locl) forms are cursive-like: right for italics, unusual upright. */
:lang(bg) .display, :lang(bg) .h2, :lang(bg) .h3, :lang(bg) .door__title, :lang(bg) .manifesto,
:lang(bg) .term__k, :lang(bg) .choice__card strong, :lang(bg) .sheet__links a, :lang(bg) .roman,
:lang(bg) .ledger__empty td, :lang(bg) .promise blockquote { font-feature-settings: "locl" 0; }
:lang(bg) .display em, :lang(bg) .h2 em, :lang(bg) .h3 em, :lang(bg) .manifesto em { font-feature-settings: "locl" 1; }

/* ---------- Long labels in other languages ---------- */
.tiers > *, .doors > *, .cols > *, .split > * { min-width: 0; }
@media (max-width: 599px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.25; padding-block: 12px; }
}
.h2, .h3, .display, .door__title, .term__k { overflow-wrap: break-word; }

/* ---------- Guides ---------- */
.guide-cards { display: grid; gap: 20px; }
@media (min-width: 900px) { .guide-cards { grid-template-columns: 1fr 1fr; gap: 24px; } }
.guide-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); min-height: 300px; }
.guide-card .h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem); }
.guide-card .door__enter { margin-top: auto; }
.guide-card:hover .door__enter svg { transform: translateX(8px); }
.article-layout { display: grid; gap: 48px; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 260px minmax(0, 44rem); gap: 96px; } }
.toc { display: none; }
@media (min-width: 1100px) { .toc { display: block; } }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--hair); counter-reset: toc; }
.toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.875rem; color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.article { max-width: 44rem; font-size: 1.0625rem; }
.article h2 { font: 400 clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem)/1.1 var(--serif); color: var(--ink); margin: 72px 0 18px; letter-spacing: -0.01em; scroll-margin-top: calc(var(--nav-h) + 40px); }
.article h2:first-child { margin-top: 0; }
.article h3 { font: 600 1.0625rem/1.35 var(--sans); color: var(--ink); margin: 32px 0 10px; }
.article p + p, .article p + ul, .article p + ol, .article ul + p, .article ol + p { margin-top: 1em; }
.article ul, .article ol.steps-list { display: grid; gap: 10px; margin-top: 1em; }
.article ul li { position: relative; padding-left: 26px; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.article ol.steps-list { counter-reset: s; }
.article ol.steps-list li { position: relative; padding-left: 44px; counter-increment: s; }
.article ol.steps-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font: 500 0.75rem var(--mono); letter-spacing: 0.1em; color: var(--gold-deep); }
.article a:not(.btn) { color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) left 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.article a:not(.btn):hover { background-size: 0 1px; background-position: right 100%; transition: background-size 0.5s var(--ease-out); }
.article strong { color: var(--ink); font-weight: 600; }
.callout { margin: 40px 0; padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; }
.callout--dont { border-left: 2px solid var(--danger); }
.callout .label { color: var(--gold-deep); }
.article .refuse { margin-top: 1em; }
.article .refuse li { padding-left: 0; }
.article .refuse li::before { display: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
