/* ==========================================================================
   SJF VENTURES LLC
   "Ink becomes paper" — a three-act design system.

   Act I   THE WRITING HOURS   deep ink, candlelight, the quill
   The Turn                    ink bleeds, dissolves, dries
   Act II  THE MAKING          parchment, manuscript rules, chapters
   Act III PUBLICATION         bright paper, the finished book

   Everything below is authored by hand. No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--brass);
  color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */

:root {

  /* ---- The ink pole ------------------------------------------------ */
  --ink-abyss : #06050400;
  --ink-950   : #070605;
  --ink-900   : #0C0A07;
  --ink-850   : #100D09;
  --ink-800   : #16120C;
  --ink-700   : #1F1A12;
  --ink-600   : #2A231A;
  --ink-500   : #3A3125;

  /* ---- The paper pole ---------------------------------------------- */
  --paper-50  : #FDFBF5;
  --paper-100 : #F8F2E5;
  --paper-200 : #F1E8D6;
  --paper-300 : #E6D9C0;
  --paper-400 : #D5C3A3;
  --paper-500 : #BCA986;

  /* ---- Inks & foils ------------------------------------------------ */
  --brass     : #C9A44C;
  --brass-lit : #EFD79A;
  --brass-deep: #8B6B23;
  --oxblood   : #933423;
  --oxblood-lt: #C2604B;
  --indigo    : #2B3C5E;
  --indigo-lt : #5B7099;
  --sepia     : #6B4B2F;

  /* ---- Type -------------------------------------------------------- */
  --display   : "Fraunces", "Iowan Old Style", Georgia, serif;
  --body      : "Newsreader", Georgia, "Times New Roman", serif;
  --hand      : "Caveat", "Segoe Script", cursive;
  --ui        : "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-hero    : clamp(3.1rem, 1.55rem + 6.5vw, 7.6rem);
  --t-xl      : clamp(2.3rem, 1.42rem + 3.7vw, 4.6rem);
  --t-lg      : clamp(1.75rem, 1.3rem + 1.9vw, 2.7rem);
  --t-md      : clamp(1.3rem, 1.13rem + 0.72vw, 1.68rem);
  --t-lede    : clamp(1.1rem, 1.01rem + 0.42vw, 1.34rem);
  --t-body    : clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --t-sm      : 0.94rem;
  --t-xs      : 0.775rem;

  /* ---- Rhythm ------------------------------------------------------ */
  --wrap      : 1220px;
  --wrap-tight: 780px;
  --gut       : clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --band      : clamp(5rem, 3.2rem + 7.4vw, 10rem);

  /* ---- Motion ------------------------------------------------------ */
  --ease      : cubic-bezier(.22, .68, 0, 1);
  --ease-soft : cubic-bezier(.33, 1, .68, 1);
  --slow      : .9s;

  /* ---- Theme defaults (overridden per act) ------------------------- */
  --bg        : var(--ink-900);
  --bg-2      : var(--ink-800);
  --fg        : var(--paper-100);
  --fg-soft   : rgba(248, 242, 229, .74);
  --fg-faint  : rgba(248, 242, 229, .46);
  --accent    : var(--brass);
  --accent-lit: var(--brass-lit);
  --rule      : rgba(201, 164, 76, .26);
  --rule-soft : rgba(248, 242, 229, .12);
  --hand-ink  : var(--brass-lit);
}

/* --------------------------------------------------------------------------
   3. TEXTURES — the physical substrate
   -------------------------------------------------------------------------- */

/* Fine paper fibre / film grain, used as an overlay everywhere. */
:root {
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23f)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain-url);
  opacity: .05;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: overlay;
  animation: grain-shift 6s steps(5) infinite;
}

@keyframes grain-shift {
  0%   { background-position: 0 0; }
  20%  { background-position: -22px 14px; }
  40%  { background-position: 16px -20px; }
  60%  { background-position: -14px -12px; }
  80%  { background-position: 20px 8px; }
  100% { background-position: 0 0; }
}

/* --------------------------------------------------------------------------
   4. BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */

body {
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.68;
  color: var(--fg);
  background: var(--ink-950);
  font-variant-numeric: oldstyle-nums;
}

.display-hero,
.display-xl,
.display-lg {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: .98;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 132;
  text-wrap: balance;
}

.display-hero { font-size: var(--t-hero); line-height: .93; }
.display-xl   { font-size: var(--t-xl); line-height: 1.02; }
.display-lg   { font-size: var(--t-lg); line-height: 1.08; }

.display-hero em,
.display-xl em,
.display-lg em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 132;
}

/* A soft ink-bleed shadow beneath display type on dark acts */
.act-ink .display-hero,
.act-ink .display-xl {
  text-shadow: 0 1px 26px rgba(201, 164, 76, .07);
}

.eyebrow {
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .82em;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}

.eyebrow.centred { justify-content: center; }
.eyebrow.centred::after {
  content: "";
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.62;
  color: var(--fg-soft);
  max-width: 56ch;
  font-weight: 300;
}

.prose p {
  font-size: var(--t-md);
  line-height: 1.66;
  color: var(--fg-soft);
  max-width: 62ch;
  font-weight: 300;
}
.prose p + p { margin-top: 1.35rem; }
.prose em { font-style: italic; color: var(--fg); }

/* Drop cap — the printer's flourish */
.dropcap::first-letter {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144;
  font-weight: 500;
  font-size: 4.15em;
  line-height: .78;
  float: left;
  margin: .1em .12em -.06em 0;
  color: var(--accent);
  text-shadow: 0 6px 22px rgba(147, 52, 35, .16);
}

/* Handwriting — the author's own marks */
.hand {
  font-family: var(--hand);
  font-weight: 500;
  color: var(--hand-ink);
  line-height: 1.28;
}

.small-note {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   5. ACTS — the theme engine
   -------------------------------------------------------------------------- */

.act {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--fg);
}

.act-ink {
  --bg        : var(--ink-900);
  --bg-2      : var(--ink-800);
  --fg        : var(--paper-100);
  --fg-soft   : rgba(248, 242, 229, .72);
  --fg-faint  : rgba(248, 242, 229, .42);
  --accent    : var(--brass);
  --accent-lit: var(--brass-lit);
  --rule      : rgba(201, 164, 76, .24);
  --rule-soft : rgba(248, 242, 229, .11);
  --hand-ink  : var(--brass-lit);
}

.act-ink-deep {
  --bg: var(--ink-950);
  --bg-2: var(--ink-900);
  --fg        : var(--paper-100);
  --fg-soft   : rgba(248, 242, 229, .7);
  --fg-faint  : rgba(248, 242, 229, .4);
  --accent    : var(--brass);
  --accent-lit: var(--brass-lit);
  --rule      : rgba(201, 164, 76, .22);
  --rule-soft : rgba(248, 242, 229, .1);
  --hand-ink  : var(--brass-lit);
}

.act-paper {
  --bg        : var(--paper-100);
  --bg-2      : var(--paper-200);
  --fg        : var(--ink-800);
  --fg-soft   : rgba(22, 18, 12, .74);
  --fg-faint  : rgba(22, 18, 12, .46);
  --accent    : var(--oxblood);
  --accent-lit: var(--oxblood-lt);
  --rule      : rgba(22, 18, 12, .16);
  --rule-soft : rgba(22, 18, 12, .09);
  --hand-ink  : var(--indigo);
}

.act-parchment {
  --bg        : var(--paper-200);
  --bg-2      : var(--paper-300);
  --fg        : var(--ink-800);
  --fg-soft   : rgba(22, 18, 12, .74);
  --fg-faint  : rgba(22, 18, 12, .46);
  --accent    : var(--oxblood);
  --accent-lit: var(--oxblood-lt);
  --rule      : rgba(22, 18, 12, .16);
  --rule-soft : rgba(22, 18, 12, .085);
  --hand-ink  : var(--indigo);
}

.act-bright {
  --bg        : var(--paper-50);
  --bg-2      : var(--paper-100);
  --fg        : var(--ink-800);
  --fg-soft   : rgba(22, 18, 12, .72);
  --fg-faint  : rgba(22, 18, 12, .44);
  --accent    : var(--oxblood);
  --accent-lit: var(--oxblood-lt);
  --rule      : rgba(22, 18, 12, .14);
  --rule-soft : rgba(22, 18, 12, .075);
  --hand-ink  : var(--indigo);
}

/* Paper acts get fibre + the ghost of manuscript ruling */
.act-paper::before,
.act-parchment::before,
.act-bright::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--fibre-url);
  opacity: .055;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.ruled::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2.34rem,
    rgba(43, 60, 94, .09) 2.34rem,
    rgba(43, 60, 94, .09) calc(2.34rem + 1px)
  );
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

/* --------------------------------------------------------------------------
   6. LAYOUT
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 2;
}

.wrap-tight { max-width: var(--wrap-tight); }

.section { padding-block: var(--band); }
.section-sm { padding-block: calc(var(--band) * .62); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.6rem, 1.6rem + 3vw, 4.6rem);
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--brass);
  color: var(--ink-900);
  padding: .8rem 1.3rem;
  font-family: var(--ui);
  font-size: var(--t-sm);
}
.skip-link:focus { left: .5rem; top: .5rem; }

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

/* --------------------------------------------------------------------------
   7. NAVIGATION — adapts as the page turns from ink to paper
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(.9rem, .65rem + .8vw, 1.4rem);
}

.site-nav.is-stuck {
  background: color-mix(in srgb, var(--nav-bg, var(--ink-900)) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
          backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--nav-rule, rgba(201, 164, 76, .18));
}

/* Nav colour modes, toggled by JS as sections pass under it */
.site-nav {
  --nav-fg   : var(--paper-100);
  --nav-soft : rgba(248, 242, 229, .68);
  --nav-acc  : var(--brass);
  --nav-bg   : var(--ink-900);
  --nav-rule : rgba(201, 164, 76, .18);
  color: var(--nav-fg);
}
.site-nav.on-paper {
  --nav-fg   : var(--ink-800);
  --nav-soft : rgba(22, 18, 12, .66);
  --nav-acc  : var(--oxblood);
  --nav-bg   : var(--paper-100);
  --nav-rule : rgba(22, 18, 12, .13);
}

.brand { display: block; line-height: 1; flex: none; }

.brand-master {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.02rem, .94rem + .34vw, 1.2rem);
  font-weight: 500;
  letter-spacing: .015em;
  white-space: nowrap;
  font-variation-settings: "SOFT" 10, "WONK" 1, "opsz" 60;
  color: var(--nav-fg);
  transition: color .5s var(--ease);
}

.brand-division {
  display: block;
  font-family: var(--ui);
  font-size: .5rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--nav-acc);
  margin-top: .34rem;
  transition: color .5s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, .3rem + 1.5vw, 2.2rem);
}

.nav-links a {
  font-family: var(--ui);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .07em;
  color: var(--nav-soft);
  position: relative;
  padding-block: .3rem;
  transition: color .35s var(--ease);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--nav-acc);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.nav-links a:not(.btn):hover { color: var(--nav-fg); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--nav-fg); }

.nav-toggle {
  display: none;
  font-family: var(--ui);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--nav-fg);
  padding: .55rem .1rem .55rem .9rem;
  align-items: center;
  gap: .7rem;
}

.nav-toggle .bars {
  display: block;
  width: 22px;
  height: 9px;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after  { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 400px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.3rem;
    padding: 4rem var(--gut);
    background: var(--ink-900);
    background-image:
      radial-gradient(120% 70% at 100% 0%, rgba(201, 164, 76, .13), transparent 62%),
      var(--fibre-url);
    background-blend-mode: normal, overlay;
    border-left: 1px solid rgba(201, 164, 76, .22);
    transform: translateX(101%);
    transition: transform .62s var(--ease);
    z-index: 950;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; letter-spacing: .05em; color: rgba(248,242,229,.8); }
  .nav-links a:hover { color: var(--paper-50); }
  .nav-links li { opacity: 0; transform: translateX(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(1) { transition-delay: .1s; }
  .nav-links.open li:nth-child(2) { transition-delay: .16s; }
  .nav-links.open li:nth-child(3) { transition-delay: .22s; }
  .nav-links.open li:nth-child(4) { transition-delay: .28s; }
  .nav-links.open li:nth-child(5) { transition-delay: .34s; }
  .nav-links.open li:nth-child(6) { transition-delay: .4s; }
}

/* --------------------------------------------------------------------------
   8. BUTTONS & LINKS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: 1.02em 1.75em;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}

/* the ink fills the button from the bottom, like a nib touching paper */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
  z-index: -1;
}

.btn:hover::before { transform: scaleY(1); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.act-ink .btn:hover, .act-ink-deep .btn:hover { color: var(--ink-900); }
.act-paper .btn:hover,
.act-parchment .btn:hover,
.act-bright .btn:hover { color: var(--paper-50); }

.btn-solid {
  background: var(--accent);
  color: var(--ink-900);
  border-color: var(--accent);
}
.btn-solid::before { background: var(--accent-lit); }
.act-paper .btn-solid,
.act-parchment .btn-solid,
.act-bright .btn-solid { color: var(--paper-50); }
.act-paper .btn-solid::before,
.act-parchment .btn-solid::before,
.act-bright .btn-solid::before { background: #6C2318; }
.act-paper .btn-solid:hover,
.act-parchment .btn-solid:hover,
.act-bright .btn-solid:hover { color: var(--paper-50); }
.act-ink .btn-solid:hover, .act-ink-deep .btn-solid:hover { color: var(--ink-900); }

.btn-quiet {
  border-color: var(--rule);
  color: var(--fg-soft);
}
.btn-quiet::before { background: var(--fg); }
.act-ink .btn-quiet:hover, .act-ink-deep .btn-quiet:hover { color: var(--ink-900); border-color: var(--fg); }
.act-paper .btn-quiet:hover,
.act-parchment .btn-quiet:hover,
.act-bright .btn-quiet:hover { color: var(--paper-50); border-color: var(--fg); }

/* nav button is always small */
.site-nav .btn {
  padding: .72em 1.25em;
  font-size: .7rem;
  border-color: var(--nav-acc);
  color: var(--nav-acc);
}
.site-nav .btn::before { background: var(--nav-acc); }
.site-nav .btn:hover { color: var(--nav-bg); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.4rem;
}

/* Underline that draws itself */
.text-link {
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  position: relative;
  padding-bottom: .45rem;
  white-space: nowrap;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(.34);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }
.text-link .arrow { transition: transform .45s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   9. THE HERO — the writing hours
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding-block: clamp(7rem, 5rem + 8vw, 10rem) clamp(4rem, 2rem + 6vw, 7rem);
  overflow: hidden;
}

/* Layered ink washes — the desk at night */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(78% 58% at 68% 8%,  rgba(201, 164, 76, .15), transparent 60%),
    radial-gradient(60% 52% at 12% 92%, rgba(147, 52, 35, .16), transparent 66%),
    radial-gradient(70% 60% at 92% 78%, rgba(43, 60, 94, .22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* The candle — follows the pointer, breathes on its own */
.candle {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(239, 215, 154, .13) 0%,
    rgba(201, 164, 76, .075) 26%,
    rgba(147, 52, 35, .035) 46%,
    transparent 66%);
  pointer-events: none;
  z-index: 0;
  animation: flicker 5.5s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes flicker {
  0%, 100% { opacity: .92; }
  22%      { opacity: 1; }
  41%      { opacity: .82; }
  58%      { opacity: .97; }
  76%      { opacity: .87; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .78fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}

/* ---- The written line ---------------------------------------------------- */

.script-line {
  position: relative;
  display: block;
  margin: 0 0 1.15rem;
  height: 1.2em;
  font-family: var(--hand);
  font-size: clamp(1.85rem, 1.2rem + 2.5vw, 3.15rem);
  font-weight: 500;
  color: var(--brass-lit);
  line-height: 1.15;
  white-space: nowrap;
}

/* Visible by default; only hidden once we know JS will reveal it. */
.script-line .ink {
  display: inline-block;
  -webkit-clip-path: inset(0 -6% -30% 0);
          clip-path: inset(0 -6% -30% 0);
  text-shadow: 0 2px 20px rgba(201, 164, 76, .3);
}
.js .written .ink {
  -webkit-clip-path: inset(0 100% -30% 0);
          clip-path: inset(0 100% -30% 0);
}

.script-line .nib {
  position: absolute;
  top: -.34em;
  left: 0;
  width: 30px;
  height: 44px;
  opacity: 0;
  transform-origin: 50% 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 9px rgba(239, 215, 154, .55));
}

.script-line .nib svg { width: 100%; height: 100%; }

.script-swash {
  display: block;
  width: clamp(190px, 26vw, 340px);
  height: 26px;
  margin-bottom: 2rem;
  overflow: visible;
}
.script-swash path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 0;
  opacity: .8;
}
.js .written .script-swash path { stroke-dashoffset: 460; }

.js .written.writes .ink { animation: write 2.5s var(--ease-soft) .55s forwards; }
.js .written.writes .nib { animation: nib-travel 2.5s var(--ease-soft) .55s forwards; }
.js .written.writes .script-swash path { animation: draw 1.15s var(--ease-soft) 2.95s forwards; }

@keyframes write {
  from { -webkit-clip-path: inset(0 100% -30% 0); clip-path: inset(0 100% -30% 0); }
  to   { -webkit-clip-path: inset(0 -6% -30% 0);  clip-path: inset(0 -6% -30% 0); }
}

@keyframes nib-travel {
  0%   { opacity: 0; transform: translateX(0) rotate(-14deg); }
  7%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--nib-end, 100%)) rotate(-9deg); }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.written { display: block; }

.hero-imprint {
  margin: .55rem 0 1.35rem;
  font-family: var(--display);
  font-size: clamp(3.25rem, 1.8rem + 5.2vw, 6.9rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.045em;
  color: var(--paper-100);
  font-variation-settings: "SOFT" 12, "WONK" 1, "opsz" 120;
  text-shadow: 0 1px 28px rgba(201, 164, 76, .08);
  text-wrap: balance;
}

.hero-copy .hero-statement {
  font-size: clamp(2.6rem, 1.75rem + 3.4vw, 5rem);
}

.hero-copy .display-hero { margin-bottom: 1.6rem; }
.hero-copy .lede { max-width: 50ch; }

/* ---- Facts under the hero ------------------------------------------------ */

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin-top: clamp(2.8rem, 2rem + 2.4vw, 4.2rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}

@media (max-width: 620px) { .hero-meta { grid-template-columns: 1fr; gap: 1.35rem; } }

.hero-meta dt {
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .55rem;
}
.hero-meta dd {
  font-size: .93rem;
  line-height: 1.56;
  color: var(--fg-faint);
  font-weight: 300;
}

/* ---- The book ------------------------------------------------------------ */

.book-scene {
  perspective: 1900px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
  will-change: transform;
}

.book {
  position: relative;
  width: clamp(215px, 22vw, 310px);
  aspect-ratio: 1 / 1.52;
  transform-style: preserve-3d;
  transform: rotateY(-21deg) rotateX(5deg);
  animation: book-float 9s ease-in-out infinite;
}

@keyframes book-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -13px; }
}

.book .cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 20% 0%, rgba(201, 164, 76, .13), transparent 58%),
    linear-gradient(150deg, #221B12 0%, #14100B 46%, #0A0806 100%);
  border: 1px solid rgba(201, 164, 76, .3);
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    inset 0 0 0 1px rgba(201, 164, 76, .07),
    inset 3px 0 12px rgba(0, 0, 0, .8),
    -3px 22px 60px rgba(0, 0, 0, .72),
    0 0 90px rgba(201, 164, 76, .08);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.2rem) clamp(1.15rem, .9rem + .8vw, 1.7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .9rem;
  transform: translateZ(15px);
}

/* foil rule inset on the board */
.book .cover::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 164, 76, .2);
  border-radius: 1px;
  pointer-events: none;
}

/* the sheen that travels across the foil */
.book .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(239, 215, 154, .11) 47%, transparent 60%);
  background-size: 260% 100%;
  animation: sheen 7.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes sheen {
  0%, 62%, 100% { background-position: 190% 0; }
  86%           { background-position: -60% 0; }
}

.cover-house {
  font-family: var(--ui);
  font-size: .52rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(201, 164, 76, .8);
}
.cover-rule { width: 42%; height: 1px; background: rgba(201, 164, 76, .4); }
.cover-title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + .95vw, 1.72rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--paper-100);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
  margin-block: .2rem;
}
.cover-title em { font-style: italic; color: var(--brass-lit); font-weight: 300; }
.cover-sub {
  font-family: var(--body);
  font-style: italic;
  font-size: .77rem;
  color: rgba(248, 242, 229, .52);
}
.cover-foot {
  font-family: var(--ui);
  font-size: .5rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(201, 164, 76, .55);
  margin-top: auto;
}

.book .pages {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: -13px;
  width: 15px;
  background: repeating-linear-gradient(to right,
    #EFE6D4 0px, #EFE6D4 1px, #C9BCA2 1px, #C9BCA2 2px);
  transform: rotateY(90deg) translateZ(-1px);
  transform-origin: left center;
  border-radius: 0 2px 2px 0;
}

.book .spine {
  position: absolute;
  top: 0; bottom: 0;
  left: -15px;
  width: 16px;
  background: linear-gradient(to right, #060504, #1B160E 62%, #241C11);
  transform: rotateY(-90deg);
  transform-origin: right center;
  border-radius: 2px 0 0 2px;
}

.book-shadow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 76%;
  height: 26px;
  transform: translateX(-52%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .78), transparent 68%);
  filter: blur(13px);
  animation: shadow-breathe 9s ease-in-out infinite;
}

@keyframes shadow-breathe {
  0%, 100% { transform: translateX(-52%) scale(1); opacity: .85; }
  50%      { transform: translateX(-52%) scale(.86); opacity: .6; }
}

/* Ink motes drifting in the candlelight */
.motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.mote {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(239, 215, 154, .55);
  animation: drift linear infinite;
  opacity: 0;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .8; }
  88%  { opacity: .5; }
  100% { transform: translate(var(--dx, 30px), -105vh) scale(1.25); opacity: 0; }
}

/* ---- Inner-page hero: same night, shorter scene ------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(8.5rem, 6.5rem + 7vw, 13rem) clamp(4rem, 3rem + 4vw, 7rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 74% 4%,  rgba(201, 164, 76, .13), transparent 62%),
    radial-gradient(58% 54% at 8% 96%,  rgba(147, 52, 35, .14), transparent 66%),
    radial-gradient(66% 58% at 96% 88%, rgba(43, 60, 94, .2), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-hero .display-hero { margin-bottom: 1.6rem; font-size: var(--t-xl); }
.page-hero .lede { max-width: 62ch; }

/* Chapter index — the table of contents on the services page */
.chapter-index {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}
.chapter-index a {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-family: var(--ui);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--fg-faint);
  border: 1px solid var(--rule-soft);
  padding: .62em 1em;
  transition: color .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.chapter-index a span {
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  color: var(--accent);
}
.chapter-index a:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* --------------------------------------------------------------------------
   10. INK BLEED — the act transitions
   -------------------------------------------------------------------------- */

/* The last paper section pours down into the ink of the colophon. */
.bleed {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--paper-50);
  margin-top: -1px;
}
.bleed svg { width: 100%; height: clamp(60px, 8vw, 122px); display: block; }

/* The Turn — the long dissolve from ink to paper */
.turn {
  position: relative;
  background: linear-gradient(to bottom,
    var(--ink-900) 0%,
    #171310 26%,
    #3B2F23 48%,
    #806B50 66%,
    #C3AE8D 78%,
    var(--paper-200) 89%,
    var(--paper-100) 100%);
  padding-block: clamp(6rem, 4rem + 8vw, 11rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.turn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--fibre-url);
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.turn .wrap { text-align: center; }

.turn-mark {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  color: var(--brass-lit);
  letter-spacing: .5em;
  margin-bottom: 1.6rem;
  opacity: .8;
}

.turn h2 {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--paper-50);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 132;
  text-wrap: balance;
  max-width: 20ch;
  margin-inline: auto;
  text-shadow: 0 2px 34px rgba(12, 10, 7, .55);
}

.turn .turn-sub {
  margin-top: 1.7rem;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(24, 19, 13, .82);
}

/* The brief version used on inner pages — the ink simply dries */
.turn--brief {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.turn--brief .turn-mark { margin-bottom: 0; }

/* Drips falling from the ink into the paper */
.drips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 72%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 72%);
}
.drip {
  position: absolute;
  top: -12%;
  width: 2px;
  border-radius: 0 0 60% 60%;
  background: linear-gradient(to bottom, rgba(12, 10, 7, 0), rgba(12, 10, 7, .95));
  animation: drip-fall 9s ease-in infinite;
}
@keyframes drip-fall {
  0%       { height: 0; opacity: 0; }
  8%       { opacity: 1; }
  70%      { opacity: 1; }
  100%     { height: 62%; opacity: 0; }
}

/* --------------------------------------------------------------------------
   11. MARGINALIA — the editor's hand in the margin
   -------------------------------------------------------------------------- */

.margin-note {
  position: absolute;
  z-index: 5;
  max-width: 15rem;
  font-family: var(--hand);
  font-size: clamp(1.05rem, .95rem + .4vw, 1.32rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--hand-ink);
  opacity: 0;
  transform: translateY(14px) rotate(var(--rot, -2.5deg));
  transition: opacity 1s var(--ease) .18s, transform 1s var(--ease) .18s;
  pointer-events: none;
}
.margin-note.seen { opacity: .92; transform: translateY(0) rotate(var(--rot, -2.5deg)); }

.margin-note::before {
  content: "";
  position: absolute;
  left: .1em;
  bottom: -.5em;
  width: 78%;
  height: 8px;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 60% 30%;
  opacity: .42;
}

@media (max-width: 1120px) { .margin-note { display: none; } }

/* --------------------------------------------------------------------------
   12. CHAPTER CARDS — six services, bound and shelved
   -------------------------------------------------------------------------- */

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem) clamp(1.4rem, .8rem + 2vw, 2.6rem);
  perspective: 1600px;
  perspective-origin: 50% 42%;
  position: relative;
  z-index: 1;
}

/* ---- The book itself ---------------------------------------------------- */

.chapter {
  /* binding cloth (varied per volume below) */
  --cloth    : #FCF8EE;
  --cloth-2  : #F0E6D2;

  --pad      : clamp(1.75rem, 1.3rem + 1.5vw, 2.7rem);
  --spine-w  : clamp(13px, .5rem + .6vw, 18px);
  --edge-w   : 7px;
  --fi       : calc(var(--pad) * .42);                 /* frame inset      */
  --fl       : calc(var(--spine-w) + var(--fi));       /* frame inset left */
  --fr       : calc(var(--fi) + var(--edge-w));        /* frame inset right*/
  --foil     : color-mix(in srgb, var(--accent) 24%, transparent);
  --board    : rgba(22, 18, 12, .17);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: var(--pad);
  padding-left: calc(var(--pad) + var(--spine-w));
  padding-right: calc(var(--pad) + var(--edge-w));

  border-radius: 2px 7px 7px 2px;

  background-color: var(--cloth);
  background-image:
    /* blind-stamped frame: top, bottom, left, right */
    linear-gradient(var(--foil), var(--foil)),
    linear-gradient(var(--foil), var(--foil)),
    linear-gradient(var(--foil), var(--foil)),
    linear-gradient(var(--foil), var(--foil)),
    /* woven cloth grain */
    repeating-linear-gradient(90deg, rgba(22,18,12,.030) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(22,18,12,.024) 0 1px, transparent 1px 3px),
    /* light across the board */
    linear-gradient(118deg, rgba(255,255,255,.55), rgba(255,255,255,0) 46%),
    linear-gradient(158deg, var(--cloth), var(--cloth-2));
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat, repeat, no-repeat, no-repeat;
  background-position:
    left var(--fl) top var(--fi),
    left var(--fl) bottom var(--fi),
    left var(--fl) top var(--fi),
    right var(--fr) top var(--fi),
    0 0, 0 0, 0 0, 0 0;
  background-size:
    calc(100% - var(--fl) - var(--fr)) 1px,
    calc(100% - var(--fl) - var(--fr)) 1px,
    1px calc(100% - var(--fi) * 2),
    1px calc(100% - var(--fi) * 2),
    auto, auto, auto, auto;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 0 0 1px var(--board),
    0 12px 24px -16px rgba(22,18,12,.45),
    0 4px 9px -6px rgba(22,18,12,.30);

  transform-style: preserve-3d;
  transform-origin: 14% 62%;
  transition:
    transform .6s var(--ease),
    box-shadow .6s var(--ease);
}

/* The spine — rounded board, foil bands at head and tail */
.chapter::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--spine-w);
  border-radius: 2px 0 0 2px;
  background-image:
    linear-gradient(to bottom,
      transparent 0 11%,
      color-mix(in srgb, var(--accent) 58%, transparent) 11% 12%,
      transparent 12% 15%,
      color-mix(in srgb, var(--accent) 34%, transparent) 15% 15.7%,
      transparent 15.7% 84.3%,
      color-mix(in srgb, var(--accent) 34%, transparent) 84.3% 85%,
      transparent 85% 88%,
      color-mix(in srgb, var(--accent) 58%, transparent) 88% 89%,
      transparent 89%),
    linear-gradient(to right,
      rgba(22,18,12,.30) 0,
      rgba(22,18,12,.09) 24%,
      rgba(255,255,255,.46) 58%,
      rgba(22,18,12,.05) 82%,
      rgba(22,18,12,.19) 100%);
  box-shadow: 4px 0 7px -4px rgba(22,18,12,.30);
  z-index: 2;
}

/* The fore-edge — the block of pages */
.chapter::after {
  content: "";
  position: absolute;
  right: 0; top: 4px; bottom: 4px;
  width: var(--edge-w);
  border-radius: 0 6px 6px 0;
  background-image: repeating-linear-gradient(90deg,
    rgba(22,18,12,.17) 0 1px,
    rgba(253,251,245,.96) 1px 2.5px);
  box-shadow:
    inset 1px 0 3px rgba(22,18,12,.20),
    inset -1px 0 0 rgba(22,18,12,.10);
  z-index: 2;
  transition: width .6s var(--ease), top .6s var(--ease), bottom .6s var(--ease);
}

/* A shelf of different bindings */
.chapter:nth-child(6n+1) { --cloth:#FCF8EE; --cloth-2:#EFE4CE; }
.chapter:nth-child(6n+2) { --cloth:#FAF4E7; --cloth-2:#E9DEC5; }
.chapter:nth-child(6n+3) { --cloth:#FBF5EF; --cloth-2:#EEDFD1; }
.chapter:nth-child(6n+4) { --cloth:#F8F4EA; --cloth-2:#E6DECB; }
.chapter:nth-child(6n+5) { --cloth:#FDF7EA; --cloth-2:#ECE1C7; }
.chapter:nth-child(6n+6) { --cloth:#FBF4F0; --cloth-2:#EEDCD4; }

/* ---- Lift off the shelf ------------------------------------------------- */

@media (hover: hover) {
  .chapter:hover {
    transform: translateY(-13px) rotateY(5deg) rotateX(-2deg) scale(1.018);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.68),
      0 0 0 1px color-mix(in srgb, var(--accent) 34%, var(--board)),
      0 38px 52px -28px rgba(22,18,12,.52),
      0 16px 26px -16px rgba(22,18,12,.34);
  }
  .chapter:hover::after { width: calc(var(--edge-w) + 2px); top: 2px; bottom: 2px; }
}

.chapter:focus-visible {
  outline: none;
  transform: translateY(-13px) rotateY(5deg) rotateX(-2deg) scale(1.018);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.68),
    0 0 0 2px var(--accent),
    0 38px 52px -28px rgba(22,18,12,.52);
}

/* ---- Cover stamping ----------------------------------------------------- */

.chapter-num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: .8;
  color: var(--accent);
  opacity: .3;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 96;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* foil-stamped numeral on the cover */
.chapter .chapter-num { opacity: .62; }

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .chapter .chapter-num {
    background-image: linear-gradient(140deg,
      color-mix(in srgb, var(--accent) 45%, #fff) 0%,
      var(--accent-lit) 22%,
      var(--accent) 46%,
      color-mix(in srgb, var(--accent) 74%, #000) 66%,
      var(--accent-lit) 92%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.55));
  }
}
.chapter:hover .chapter-num { opacity: 1; transform: translateY(-3px); }

.chapter h3 {
  font-family: var(--display);
  font-size: clamp(1.32rem, 1.14rem + .72vw, 1.72rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 60;
  position: relative;
  display: inline-block;
  padding-bottom: .3rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.chapter h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.chapter:hover h3::after { transform: scaleX(1); }

.chapter p {
  font-size: .97rem;
  line-height: 1.6;
  color: var(--fg-soft);
  font-weight: 300;
}

.chapter-tags {
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

@media (max-width: 700px) {
  .chapter-grid { perspective: none; }
  .chapter:hover,
  .chapter:focus-visible { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   13. THE PRESS — process stages as a running sheet
   -------------------------------------------------------------------------- */

.stages { counter-reset: stage; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.32fr);
  gap: clamp(1.4rem, .6rem + 3vw, 4rem);
  padding-block: clamp(2.4rem, 1.8rem + 2.4vw, 3.9rem);
  border-top: 1px solid var(--rule);
  position: relative;
}
.stage:first-child { border-top: none; }

@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } }

.stage-label { position: relative; }

.stage-num {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 2.2rem + 2.4vw, 4.4rem);
  line-height: .82;
  color: var(--accent);
  opacity: .32;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 120;
  margin-bottom: .9rem;
}

.stage-label h2, .stage-label h3 {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 96;
}

.stage-duration {
  display: inline-block;
  margin-top: .95rem;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--rule);
  padding: .42em .95em;
}

.stage-body p {
  font-size: var(--t-lede);
  line-height: 1.64;
  color: var(--fg-soft);
  font-weight: 300;
  max-width: 60ch;
}

/* You / SJF Ventures LLC split */
.youwe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 520px) { .youwe { grid-template-columns: 1fr; } }

.youwe > div { background: var(--bg); padding: 1.25rem 1.4rem; }
.yw-head {
  display: block;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .23em;
  text-transform: uppercase;
  margin-bottom: .55rem;
  color: var(--accent);
}
.yw-you .yw-head { color: var(--fg-faint); }
.youwe p { font-size: .93rem; line-height: 1.55; color: var(--fg-soft); font-weight: 300; }

/* Compact process strip (homepage) */
.press-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.press-step {
  background: var(--bg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.2rem) clamp(1.2rem, 1rem + .8vw, 1.7rem);
  position: relative;
  transition: background .5s var(--ease);
}
.press-step:hover { background: var(--bg-2); }
.press-step .step-n {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.05rem;
}
.press-step h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 48;
}
.press-step p { font-size: .9rem; line-height: 1.55; color: var(--fg-soft); font-weight: 300; }

/* --------------------------------------------------------------------------
   14. COVER STUDIES
   -------------------------------------------------------------------------- */

.studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(1.6rem, 1rem + 2.5vw, 3.4rem);
  perspective: 1600px;
}

.study { margin: 0; perspective: 1300px; }

.study-cover {
  aspect-ratio: 1 / 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1.7rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(22, 18, 12, .3), 0 2px 8px rgba(22, 18, 12, .2);
  transition: transform .45s var(--ease-soft), box-shadow .8s var(--ease-soft);
  transform-style: preserve-3d;
  will-change: transform;
}
.study:hover .study-cover {
  box-shadow: 0 34px 70px rgba(22, 18, 12, .38), 0 3px 10px rgba(22, 18, 12, .22);
}

/* the spine shadow */
.study-cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 13px;
  background: linear-gradient(to right, rgba(0,0,0,.34), rgba(0,0,0,.05) 62%, transparent);
  z-index: 3;
}
/* a slow gloss */
.study-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 200% 0;
  transition: background-position 1.1s var(--ease-soft);
  z-index: 4;
}
.study:hover .study-cover::after { background-position: -80% 0; }

.st-orn {
  font-size: .82rem;
  letter-spacing: .5em;
  opacity: .72;
}
.st-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 72;
}
.st-title em { font-style: italic; font-weight: 300; }
.st-author {
  font-family: var(--ui);
  font-size: .6rem;
  letter-spacing: .27em;
  text-transform: uppercase;
  opacity: .78;
}

/* Direction 1 — literary fiction, typographic */
.study--novel .study-cover {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(201,164,76,.16), transparent 62%),
    linear-gradient(168deg, #1D2A2A, #0C1414);
  color: var(--paper-100);
  border: 1px solid rgba(201,164,76,.24);
}
.study--novel .st-orn, .study--novel .st-author { color: var(--brass); }
.study--novel .st-title em { color: var(--brass-lit); }

/* Direction 2 — thriller, high contrast */
.study--thriller .study-cover {
  background: linear-gradient(180deg, #0A0A0C 0%, #12131A 58%, #2C0F0B 100%);
  color: #F6F2EA;
  border: 1px solid rgba(194, 96, 75, .3);
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 1.6rem 1.35rem;
}
.study--thriller .st-line {
  position: absolute;
  left: 1.35rem; right: 1.35rem; top: 34%;
  height: 1px;
  background: linear-gradient(to right, var(--oxblood-lt), transparent);
}
.study--thriller .st-title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  letter-spacing: -.03em;
  line-height: .94;
  text-transform: uppercase;
}
.study--thriller .st-title span { display: block; color: var(--oxblood-lt); }
.study--thriller .st-author { color: rgba(246,242,234,.6); margin-top: .6rem; }

/* Direction 3 — memoir, elegant */
.study--memoir .study-cover {
  background:
    radial-gradient(85% 60% at 50% 100%, rgba(147,52,35,.1), transparent 60%),
    linear-gradient(170deg, #F6EFE1, #E6D8C1);
  color: #2A2016;
  border: 1px solid rgba(42,32,22,.14);
}
.study--memoir .st-orn { color: var(--oxblood); }
.study--memoir .st-author { color: rgba(42,32,22,.6); }
.study--memoir .st-title { font-style: italic; font-weight: 300; }

.study figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.05rem;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border-top: 1px solid var(--rule);
  padding-top: .7rem;
}

/* --------------------------------------------------------------------------
   15. PILLARS, TENETS, MANIFESTO
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
}

.pillar { position: relative; padding-top: 1.9rem; }
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 1px;
  background: var(--accent);
  transition: width .8s var(--ease);
}
.pillar:hover::before { width: 100%; }

.pillar h3 {
  font-family: var(--display);
  font-size: clamp(1.28rem, 1.12rem + .64vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -.015em;
  margin-bottom: .85rem;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 60;
}
.pillar p { color: var(--fg-soft); font-size: .99rem; line-height: 1.62; font-weight: 300; }

.tenets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 700px) {
  .tenets { grid-template-columns: 1fr; }
}
.tenet {
  background: var(--bg);
  padding: clamp(1.8rem, 1.4rem + 1.4vw, 2.7rem);
  counter-increment: tenet;
  position: relative;
}
.tenet::before {
  content: "❦";
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
  opacity: .55;
  margin-bottom: 1.1rem;
}
.tenet h3 {
  font-family: var(--display);
  font-size: clamp(1.26rem, 1.1rem + .6vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -.015em;
  margin-bottom: .8rem;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 60;
}
.tenet p { color: var(--fg-soft); font-size: .97rem; line-height: 1.62; font-weight: 300; }

/* Manifesto — the pull-quote, set like a title page */
.manifesto {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  padding-block: 1rem;
}
.manifesto .fleuron {
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: .55em;
  opacity: .7;
  margin-bottom: 2.1rem;
}
.manifesto blockquote p {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.05rem + 2.4vw, 3.1rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--fg);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 132;
  text-wrap: balance;
}
.manifesto blockquote em { font-style: italic; color: var(--accent); }
.manifesto cite {
  display: block;
  margin-top: 2.2rem;
  font-family: var(--ui);
  font-style: normal;
  font-size: var(--t-xs);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   16. TICKER — the running head
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: var(--bg-2);
  padding-block: .95rem;
  position: relative;
  z-index: 2;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8vw, 130px);
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(to right, var(--bg-2), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  var(--bg-2), transparent); }

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: roll 46s linear infinite;
}
.ticker-track span {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-inline: 1.9rem;
  white-space: nowrap;
  position: relative;
}
.ticker-track span::after {
  content: "✦";
  position: absolute;
  right: -.42em;
  color: var(--accent);
  opacity: .55;
  letter-spacing: 0;
}
@keyframes roll { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   17. SERVICE DETAIL (services page)
   -------------------------------------------------------------------------- */

.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, .8rem + 3vw, 4.2rem);
  padding-block: clamp(2.6rem, 2rem + 2.6vw, 4.4rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 6rem;
}
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; } }

.svc-detail-head h2 {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin-bottom: 1.1rem;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 96;
}
.svc-detail-head p {
  color: var(--fg-soft);
  font-size: var(--t-lede);
  line-height: 1.62;
  font-weight: 300;
}

.deliv { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.deliv li {
  position: relative;
  padding: .82rem 0 .82rem 2.1rem;
  border-bottom: 1px solid var(--rule);
  font-size: .99rem;
  color: var(--fg-soft);
  font-weight: 300;
  transition: color .4s var(--ease), padding-left .4s var(--ease);
}
.deliv li::before {
  content: "✦";
  position: absolute;
  left: .25rem;
  top: .88rem;
  font-size: .62rem;
  color: var(--accent);
  opacity: .7;
  transition: transform .4s var(--ease);
}
.deliv li:hover { color: var(--fg); padding-left: 2.5rem; }
.deliv li:hover::before { transform: rotate(90deg); }

.svc-note {
  margin-top: 1.45rem;
  font-family: var(--hand);
  font-size: 1.22rem;
  line-height: 1.34;
  color: var(--hand-ink);
  padding-left: 1.6rem;
  border-left: 2px solid var(--accent);
}

/* --------------------------------------------------------------------------
   18. BRAND MARK (about page)
   -------------------------------------------------------------------------- */

.brand-arch {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (max-width: 880px) { .brand-arch { grid-template-columns: 1fr; } }

.brand-mark {
  text-align: center;
  padding: clamp(2.4rem, 1.8rem + 2.4vw, 3.8rem) clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  border: 1px solid var(--rule);
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.bm-master {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.48rem + 1.3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: .02em;
  font-variation-settings: "SOFT" 10, "WONK" 1, "opsz" 120;
}
.bm-rule { width: 52%; height: 1px; background: var(--accent); margin: 1.1rem auto; opacity: .6; }
.bm-division {
  font-family: var(--ui);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.bm-note {
  margin-top: 1.7rem;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   19. CONTACT — the letter
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.2rem, 1.2rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-points { margin-top: 2.3rem; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contact-points li {
  padding: .95rem 0 .95rem 1.9rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: .97rem;
  color: var(--fg-soft);
  font-weight: 300;
}
.contact-points li::before {
  content: "✦";
  position: absolute;
  left: .12rem; top: 1rem;
  font-size: .6rem;
  color: var(--accent);
}
.contact-email { margin-top: 2.2rem; }

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: clamp(1.6rem, 1.2rem + 1.8vw, 2.9rem);
  position: relative;
  box-shadow: 0 26px 60px rgba(22, 18, 12, .09);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}

.form-grid { display: grid; gap: 1.35rem; position: relative; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .6rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: .7rem 0;
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--fg);
  border-radius: 0;
  transition: border-color .45s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) center, calc(100% - 7px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--paper-100); color: var(--ink-800); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); font-style: italic; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-bottom-color: var(--oxblood); }

.form-status {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 1.1em;
}
.form-status.is-error { color: var(--oxblood-lt); }
.form-note { font-size: .82rem; color: var(--fg-faint); font-style: italic; }

.form-grid.is-sending { opacity: .55; pointer-events: none; transition: opacity .3s var(--ease); }

/* The honeypot — off-screen, never focusable, never announced */
.hp-field {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---- The ticket confirmation, set like a title page --------------------- */

.form-done {
  text-align: center;
  padding: clamp(.5rem, 1vw, 1.5rem) 0;
  animation: settle .85s var(--ease) both;
}
.form-done[hidden] { display: none; }

@keyframes settle {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.done-fleuron {
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: .5em;
  opacity: .75;
  margin-bottom: 1.4rem;
}

.done-hand {
  font-family: var(--hand);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  color: var(--hand-ink);
  line-height: 1;
  margin-bottom: .9rem;
}

.done-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.15rem + .9vw, 1.85rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 72;
  margin-bottom: 1rem;
}
.done-title em { font-style: italic; font-weight: 300; color: var(--accent); }

.done-body {
  font-size: .99rem;
  line-height: 1.62;
  font-weight: 300;
  color: var(--fg-soft);
  max-width: 40ch;
  margin-inline: auto;
}

.done-ref {
  margin: 2rem auto 0;
  display: inline-flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--accent);
  position: relative;
}
.done-ref::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.done-ref-label {
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.done-ref-id {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.05rem);
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--accent);
  font-variation-settings: "SOFT" 10, "WONK" 1, "opsz" 72;
}

.done-foot { margin-top: 2rem; }

.done-again {
  display: block;
  margin: 1.8rem auto 0;
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .35rem;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.done-again:hover { color: var(--fg); border-color: var(--accent); }

/* FAQ — pages that open */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 3rem 1.5rem 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.36rem);
  font-weight: 400;
  letter-spacing: -.012em;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 48;
  transition: color .4s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .5s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p {
  padding: 0 clamp(1rem, 6vw, 5rem) 1.7rem 0;
  color: var(--fg-soft);
  font-size: 1.02rem;
  line-height: 1.64;
  font-weight: 300;
  max-width: 68ch;
  animation: unfold .55s var(--ease);
}
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. CTA BAND
   -------------------------------------------------------------------------- */

.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .wrap { max-width: 900px; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2.7rem; }
.cta-band .small-note { margin-top: 1.7rem; }

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 58%);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   21. FOOTER — the colophon
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink-950);
  color: rgba(248, 242, 229, .62);
  padding-block: clamp(3.5rem, 2.6rem + 3.4vw, 5.6rem) 2.2rem;
  position: relative;
  --accent: var(--brass);
  --rule: rgba(201, 164, 76, .18);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 100% at 50% 0%, rgba(201, 164, 76, .07), transparent 62%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .68fr));
  gap: clamp(2rem, 1.2rem + 3vw, 4.2rem);
  padding-bottom: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.fb-master {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--paper-100);
  font-variation-settings: "SOFT" 10, "WONK" 1, "opsz" 72;
  line-height: 1;
}
.fb-division {
  font-family: var(--ui);
  font-size: .52rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: .5rem;
  margin-bottom: 1.4rem;
}
.footer-brand p:last-child { font-size: .94rem; line-height: 1.62; max-width: 42ch; font-weight: 300; }

.footer-col h4 {
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.3rem;
}
.footer-col li + li { margin-top: .68rem; }
.footer-col a {
  font-size: .95rem;
  font-weight: 300;
  transition: color .4s var(--ease), padding-left .4s var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--paper-50); padding-left: .35rem; }

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.9rem;
  font-family: var(--ui);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(248, 242, 229, .34);
}
.colophon .fleuron { color: var(--brass); letter-spacing: .4em; opacity: .6; }

/* --------------------------------------------------------------------------
   22. INK TRAIL (cursor)
   -------------------------------------------------------------------------- */

.ink-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(201, 164, 76, .5);
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: screen;
  animation: ink-fade .95s var(--ease-soft) forwards;
}
@keyframes ink-fade {
  0%   { opacity: .75; transform: translate(-50%, -50%) scale(.5); }
  30%  { opacity: .5;  transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0;   transform: translate(-50%, calc(-50% + 16px)) scale(.2); }
}

/* --------------------------------------------------------------------------
   23. REVEALS
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1.05s var(--ease) var(--d, 0s),
    transform 1.05s var(--ease) var(--d, 0s),
    filter 1.05s var(--ease) var(--d, 0s);
  filter: blur(5px);
}
.js [data-reveal].seen {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* --------------------------------------------------------------------------
   24. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .script-line .ink { -webkit-clip-path: none !important; clip-path: none !important; }
  .script-line .nib { display: none; }
  .script-swash path { stroke-dashoffset: 0 !important; }
  .margin-note { opacity: .92; transform: rotate(var(--rot, -2.5deg)); }
  .body-grain, body::after { animation: none !important; }
  .chapter:hover, .chapter:focus-visible { transform: none; }
  .chapter::after { transition: none; }
  .motes, .drips, .candle { display: none; }
  .ink-dot { display: none; }
}

/* --------------------------------------------------------------------------
   25. PRINT
   -------------------------------------------------------------------------- */

@media print {
  .site-nav, .ticker, .book-scene, .motes, .candle, .drips, .bleed { display: none !important; }
  body { background: #fff; color: #000; }
  .act { background: #fff !important; color: #000 !important; }
}

/* --------------------------------------------------------------------------
   23. FOOTER CONTACT — the imprint page
   -------------------------------------------------------------------------- */

/* Four columns once the contact block joins the colophon. */
.footer-grid.footer-grid--4 {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .66fr));
}
@media (max-width: 1000px) {
  .footer-grid.footer-grid--4 { grid-template-columns: 1fr 1fr; }
  .footer-grid.footer-grid--4 .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid.footer-grid--4 { grid-template-columns: 1fr; }
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: .78rem;
  align-items: start;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.5;
}
.footer-contact li + li { margin-top: 1rem; }
.footer-contact svg {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .18rem;
  stroke: var(--brass);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.footer-contact a {
  transition: color .4s var(--ease);
  display: inline;
}
.footer-contact a:hover { color: var(--paper-50); padding-left: 0; }
.footer-contact address {
  font-style: normal;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   24. LEGAL PAGES — the fine print, set properly
   -------------------------------------------------------------------------- */

.legal-hero .display-hero { max-width: 18ch; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2.2rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--ui);
  font-size: var(--t-xs);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.legal-meta strong {
  color: var(--accent);
  font-weight: 500;
}

/* The document body — a reading column, ruled like a manuscript page. */
.legal-body { position: relative; }

.legal-doc {
  max-width: 72ch;
  margin-inline: auto;
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.78;
  color: var(--fg-soft);
}

.legal-doc > section + section {
  margin-top: clamp(2.8rem, 2rem + 2.4vw, 4.4rem);
  padding-top: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  border-top: 1px solid var(--rule-soft);
}

.legal-doc h2 {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 500;
  line-height: 1.24;
  color: var(--fg);
  font-variation-settings: "SOFT" 8, "WONK" 1, "opsz" 40;
  margin-bottom: 1.1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: baseline;
}
.legal-doc h2 .num {
  font-family: var(--ui);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--accent);
  font-variation-settings: normal;
}

.legal-doc h3 {
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: .7rem;
}

.legal-doc p + p { margin-top: 1.05rem; }
.legal-doc h2 + p { margin-top: 0; }

.legal-doc ul {
  margin-top: 1.05rem;
  display: grid;
  gap: .72rem;
}
.legal-doc ul li {
  position: relative;
  padding-left: 1.7rem;
}
.legal-doc ul li::before {
  content: "❦";
  position: absolute;
  left: 0;
  top: -.05em;
  color: var(--accent);
  font-size: .8em;
  opacity: .7;
}

.legal-doc strong { color: var(--fg); font-weight: 600; }
.legal-doc em { font-style: italic; }

.legal-doc a:not(.text-link) {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: opacity .35s var(--ease);
}
.legal-doc a:not(.text-link):hover { opacity: .68; }

/* A pulled-aside clause — the thing we most want read. */
.legal-note {
  margin-top: 1.4rem;
  padding: 1.35rem 1.6rem;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  font-size: .98rem;
  line-height: 1.68;
  color: var(--fg-soft);
}
.legal-note strong { display: block; margin-bottom: .3rem; }

/* Definition-style rows for the refund schedule. */
.legal-table {
  margin-top: 1.4rem;
  border-top: 1px solid var(--rule-soft);
}
.legal-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: .4rem 2rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule-soft);
}
@media (max-width: 640px) {
  .legal-table > div { grid-template-columns: 1fr; }
}
.legal-table dt {
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
}
.legal-table dd { font-size: .98rem; line-height: 1.66; }

/* Closing contact card at the foot of each policy. */
.legal-contact {
  margin-top: clamp(2.8rem, 2rem + 2.4vw, 4.4rem);
  padding-top: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  border-top: 1px solid var(--rule);
}
.legal-contact .eyebrow { margin-bottom: 1rem; }
.legal-contact address {
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--fg-soft);
}
.legal-contact address strong { color: var(--fg); }

/* Sibling-policy navigation. */
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}
.legal-switch a {
  font-family: var(--ui);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .58rem 1.1rem;
  border: 1px solid var(--rule);
  color: var(--fg-soft);
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.legal-switch a:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.legal-switch a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}
