/* ═══════════════════════════════════════════════════════════════════
   Nullify the Preset — shared design system
   Every page links this file. Page-specific rules live in the page.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── TOKENS ─────────────────────────── */
:root {
  --bg:          #0A100D;
  --bg-elev:     #0F1814;
  --bg-deeper:   #07100B;

  --ink:         #EBE5D6;
  --ink-soft:    #C9C3B1;
  --ink-muted:   #8B8676;
  --ink-faint:   rgba(235, 229, 214, 0.42);

  --moss:        #3F5D4E;
  --moss-light:  #6E8E7B;
  --sage:        #94A892;
  --moss-glow:   rgba(110, 142, 123, 0.18);
  --moss-deep:   rgba(63, 93, 78, 0.12);

  --rule:        rgba(235, 229, 214, 0.07);
  --rule-strong: rgba(235, 229, 214, 0.16);
  --rule-green:  rgba(110, 142, 123, 0.26);

  --serif: 'IBM Plex Serif', 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  --pad-x:  clamp(20px, 4vw, 56px);
  --pad-y:  clamp(72px, 9vw, 112px);
  --gap:    clamp(14px, 2vw, 22px);
  --rad:    10px;
  --rad-sm: 6px;
  --max-w:  1200px;

  --ease: cubic-bezier(0.2, 0.85, 0.2, 1);
}

/* ─────────────────────────── BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.4vw + 0.86rem, 1.05rem);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "kern", "calt";
  min-height: 100svh;
}

img, svg, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(110, 142, 123, 0.35); color: var(--ink); }

/* ─────────────────────────── STAGE ─────────────────────────── */
.stage { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(110, 142, 123, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(7, 16, 11, 0.65) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 35%, var(--bg) 65%, var(--bg-deeper) 100%);
}
.stage::after {
  content: ""; position: absolute;
  top: -30vh; left: 50%;
  width: 140vmax; height: 140vmax;
  transform: translateX(-50%);
  background: conic-gradient(
    from 200deg at 50% 50%,
    transparent 0deg,
    rgba(235, 229, 214, 0.022) 60deg,
    transparent 120deg,
    rgba(110, 142, 123, 0.05) 200deg,
    transparent 260deg,
    rgba(235, 229, 214, 0.018) 320deg,
    transparent 360deg
  );
  opacity: 0.55;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.progress {
  position: fixed; top: 0; left: 0;
  height: 1px; width: 0%;
  background: linear-gradient(90deg, transparent, var(--ink-faint), var(--moss-light));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ─────────────────────────── CURSOR ─────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10001;
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; background: var(--ink); }
.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(235, 229, 214, 0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: rgba(235, 229, 214, 0.9); }
@media (hover: none), (max-width: 800px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─────────────────────────── TOPBAR ─────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: clamp(12px, 1.4vw, 18px) var(--pad-x);
  padding-top: max(clamp(12px, 1.4vw, 18px), env(safe-area-inset-top));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: clamp(10px, 0.7vw, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}
.topbar.scrolled {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(10, 16, 13, 0.74);
  border-bottom-color: var(--rule);
}
.topbar .mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  min-height: 36px;
}
.topbar .mark .glyph {
  width: 14px; height: 14px;
  border: 1px solid var(--ink); border-radius: 50%;
  position: relative; flex-shrink: 0;
}
.topbar .mark .glyph::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--moss-light);
  box-shadow: 0 0 8px var(--moss-glow);
}
.topbar nav { display: inline-flex; align-items: center; gap: 6px; }
.topbar nav a {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}
.topbar nav a:hover { color: var(--ink); border-color: var(--moss-light); background: var(--moss-deep); }
.topbar nav a[aria-current="page"] { color: var(--ink); border-color: var(--rule-strong); background: rgba(235, 229, 214, 0.06); }
.topbar nav a .count {
  font-size: 9px; letter-spacing: 0.08em;
  color: var(--moss-light);
  transform: translateY(-1px);
}
.topbar nav a.apply {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink); font-weight: 500;
}
.topbar nav a.apply:hover { background: #fff; border-color: #fff; color: var(--bg); }
.topbar nav a svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2; fill: none; }
.topbar a.back {
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
  transition: color 0.3s ease;
}
.topbar a.back:hover { color: var(--ink); }
@media (max-width: 640px) {
  .topbar nav a.apply { display: none; }
  .topbar nav a { padding: 0 10px; }
}
@media (max-width: 400px) {
  .topbar { letter-spacing: 0.12em; }
  .topbar nav a .count { display: none; }
}

/* ─────────────────────────── TYPOGRAPHY ─────────────────────────── */
h1, h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 9.5vw, 7rem); line-height: 0.96; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.06; }
h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
}
h3 { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.3; }

em, i { font-family: var(--serif); font-style: italic; color: var(--ink); font-weight: 300; }
p em, li em { font-size: 1.07em; }
strong { color: var(--ink); font-weight: 500; }

p {
  margin-bottom: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
p:last-child { margin-bottom: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--moss-light); outline-offset: 5px; }

.lede {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.pull {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.pull strong { font-weight: 400; font-style: normal; }

/* Labels — a single leading rule; never a trailing one (it floats on wrap). */
.label {
  font-family: var(--mono);
  font-size: clamp(10px, 0.66vw, 11px);
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
  font-weight: 400;
  display: inline-flex; align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.label::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor; opacity: 0.55;
  flex: none; margin-top: 0.7em;
}
.label.bare::before { display: none; }
.label.dot::before {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss-light); opacity: 1;
  box-shadow: 0 0 10px var(--moss-glow);
  margin-top: 0.5em;
}
.label.center { justify-content: center; text-align: center; }
.label .tick { color: var(--moss-light); }
@media (max-width: 420px) { .label { letter-spacing: 0.14em; } }

/* Lists */
ul.clean { list-style: none; }
ul.clean li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}
ul.clean li::before {
  content: "";
  position: absolute; left: 0; top: 0.85em;
  width: 12px; height: 1px;
  background: var(--ink-muted);
}
ul.clean li:last-child { margin-bottom: 0; }

/* ─────────────────────────── LAYOUT ─────────────────────────── */
.wrap {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.page { position: relative; z-index: 2; }
/* Vertical rhythm lives on the section; .wrap only ever sets the gutters, so the two never collide. */
section { position: relative; padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
section.tight { padding-top: clamp(40px, 5vw, 64px); }

/* Full-bleed band: a different surface, so the page changes shape */
.band {
  position: relative; z-index: 2;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(110, 142, 123, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(235, 229, 214, 0.022), rgba(235, 229, 214, 0.006));
}
.band + .band { border-top: 0; }

/* Section head: eyebrow + title on the left, lede on the right */
.sec-head {
  display: grid; grid-template-columns: 1fr;
  gap: 14px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.sec-head .label { margin-bottom: 12px; }
.sec-head .lede { margin: 0; }
@media (min-width: 900px) {
  .sec-head.has-lede { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .sec-head.has-lede .lede { padding-bottom: 6px; justify-self: end; max-width: 46ch; }
}

/* Split: sticky headline column + content column */
.split {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(48px, 6vw, 96px); }
  .split-left { position: sticky; top: 104px; }
}
.split-left .label { margin-bottom: 16px; }
.split-left p { margin-top: 16px; color: var(--ink-muted); max-width: 32ch; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 .icon-block { flex-direction: column; align-items: flex-start; gap: 18px; }
}

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

/* ─────────────────────────── BUTTONS ─────────────────────────── */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: clamp(15px, 1.4vw, 18px) clamp(26px, 3vw, 34px);
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.92rem, 0.3vw + 0.84rem, 0.98rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 12px 40px -12px rgba(235, 229, 214, 0.22),
    0 0 0 1px rgba(235, 229, 214, 0.1);
  -webkit-tap-highlight-color: transparent;
}
.cta > * { position: relative; z-index: 1; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(110, 142, 123, 0.5) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 18px 60px -10px rgba(235, 229, 214, 0.32), 0 0 0 1px rgba(235, 229, 214, 0.2); }
.cta:hover::after { opacity: 1; }
.cta:disabled { opacity: 0.6; cursor: wait; transform: none; }
.cta svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.cta:hover svg { transform: translateX(4px); }

.cta-cluster {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: clamp(32px, 4.5vw, 52px);
}
.cta-cluster .label { text-align: center; }

/* Ghost link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: clamp(10px, 0.7vw, 11px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 32px;
  transition: color 0.3s ease;
}
.arrow-link svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link.back svg { transform: rotate(180deg); }
.arrow-link.back:hover svg { transform: rotate(180deg) translateX(3px); }

/* Email line */
.write-line {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 10px;
  font-size: 0.95rem; color: var(--ink-muted);
}
.write-line a {
  font-family: var(--mono); font-size: 0.86em; letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
  overflow-wrap: anywhere;
}
.write-line a:hover { border-color: var(--moss-light); }

/* ─────────────────────────── PANELS ─────────────────────────── */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(235, 229, 214, 0.028) 0%, rgba(235, 229, 214, 0.008) 100%);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(235, 229, 214, 0.04) inset;
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 142, 123, 0.13), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.panel:hover { border-color: var(--rule-strong); }
.panel:hover::before { opacity: 1; }
.panel > * { position: relative; }
.panel .num {
  font-family: var(--mono);
  font-size: clamp(10px, 0.7vw, 11px);
  letter-spacing: 0.22em;
  color: var(--moss-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: clamp(16px, 2vw, 22px);
}
.icon-block { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 2vw, 22px); }
.icon {
  width: 22px; height: 22px;
  stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; fill: none;
  flex-shrink: 0;
}
.icon-tile {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule-green);
  background: radial-gradient(circle at 50% 30%, rgba(110, 142, 123, 0.2), transparent 70%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-tile .icon { width: 19px; height: 19px; stroke: var(--sage); }

/* Callout */
.callout {
  border: 1px solid var(--rule-green);
  border-left: 2px solid var(--moss-light);
  border-radius: var(--rad-sm);
  background: radial-gradient(circle at 0% 0%, rgba(110, 142, 123, 0.10), transparent 70%), rgba(235, 229, 214, 0.028);
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.4vw, 26px);
}
.callout p { margin: 0; color: var(--ink); }

/* ─────────────────────────── REVEAL ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.reveal.in .svg-fade { animation: fadeIn 0.9s forwards; }
.reveal.in .svg-path { animation: drawLine 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* ─────────────────────────── FEATURE CARDS (Essays / Reviews) ─────────────────────────── */
.features { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature {
  position: relative; display: flex; flex-direction: column;
  min-height: 100%;
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: calc(var(--rad) + 4px);
  border: 1px solid var(--rule-strong);
  background:
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(110, 142, 123, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(235, 229, 214, 0.05), rgba(235, 229, 214, 0.012));
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(235, 229, 214, 0.06) inset;
  color: inherit; text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--moss-light); box-shadow: 0 50px 90px -48px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(110, 142, 123, 0.25); }
.feature .watermark {
  position: absolute; right: -0.08em; bottom: -0.32em;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(9rem, 18vw, 15rem); line-height: 1;
  color: rgba(235, 229, 214, 0.045);
  letter-spacing: -0.06em;
  pointer-events: none; user-select: none;
  transition: color 0.5s ease, transform 0.6s var(--ease);
}
.feature:hover .watermark { color: rgba(110, 142, 123, 0.16); transform: translateY(-6px); }
.feature > * { position: relative; }
.feature .label { margin-bottom: 18px; }
.feature h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.feature .desc { color: var(--ink-soft); max-width: 44ch; margin-bottom: clamp(22px, 2.6vw, 30px); }
.feature ul { list-style: none; border-top: 1px solid var(--rule); margin-bottom: clamp(22px, 2.6vw, 30px); }
.feature li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.35;
}
.feature li .idx, .feature li .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-muted); text-transform: uppercase; }
.feature li .meta { white-space: nowrap; }
.feature li.more { color: var(--ink-muted); font-family: var(--sans); font-size: 0.9rem; grid-template-columns: 1fr; border-bottom: 0; }
.feature .arrow-link { margin-top: auto; color: var(--ink); }
.feature:hover .arrow-link svg { transform: translateX(4px); }
@media (max-width: 480px) { .feature li .meta { display: none; } }

/* ─────────────────────────── DOCUMENT PAGES (essays, reviews) ─────────────────────────── */
.doc-wrap {
  position: relative; z-index: 2;
  max-width: 68ch; margin: 0 auto;
  padding: clamp(112px, 16vh, 150px) var(--pad-x) clamp(64px, 9vw, 100px);
}
.doc-wrap .arrow-link.back { display: flex; width: fit-content; margin-bottom: clamp(32px, 4.5vw, 52px); color: var(--ink-muted); }
.doc-wrap .arrow-link.back:hover { color: var(--ink); }
.doc-wrap > .label { margin-bottom: clamp(14px, 1.8vw, 18px); }
.doc-wrap h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: clamp(28px, 3.6vw, 40px);
}
.doc-body p, .doc-body li, .doc-body blockquote {
  font-size: clamp(1.02rem, 0.3vw + 0.95rem, 1.1rem);
  line-height: 1.75;
  color: var(--ink-soft);
}
.doc-body p { margin: 0 0 1.15em; }
.doc-body > p:first-child::first-letter,
.doc-body.dropcap > p:first-child::first-letter { font-family: var(--serif); font-weight: 300; font-size: 3.4em; float: left; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--ink); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.doc-body a:hover { text-decoration-color: var(--moss-light); }
.doc-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: clamp(40px, 5vw, 60px) 0 clamp(14px, 2vw, 20px);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body ul, .doc-body ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.doc-body li { margin-bottom: 0.55em; }
.doc-body li::marker { color: var(--ink-muted); }
.doc-body ol > li::marker { font-family: var(--mono); font-size: 0.85em; }
.doc-body blockquote {
  margin: 0 0 1.4em; padding-left: clamp(16px, 2vw, 22px);
  border-left: 1px solid var(--rule-green);
}
.doc-body hr { border: 0; border-top: 1px solid var(--rule); margin: clamp(40px, 5vw, 60px) 0; }
.doc-body p.note { font-size: 0.93rem; color: var(--ink-muted); font-style: italic; }

.hypothetical {
  margin: 0 0 clamp(36px, 5vw, 52px);
  padding: clamp(18px, 2.2vw, 24px) clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--rule-green);
  border-left: 2px solid var(--moss-light);
  border-radius: var(--rad-sm);
  background: radial-gradient(circle at 0% 0%, rgba(110, 142, 123, 0.10), transparent 70%), rgba(235, 229, 214, 0.028);
  font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft);
}
.hypothetical strong { color: var(--ink); font-weight: 600; }

.closing {
  margin-top: clamp(44px, 6vw, 68px);
  padding: clamp(24px, 3vw, 34px) clamp(22px, 2.8vw, 32px);
  border: 1px solid var(--rule-green);
  border-radius: var(--rad);
  background: radial-gradient(circle at 50% 0%, rgba(110, 142, 123, 0.12), transparent 70%), rgba(235, 229, 214, 0.04);
}
.closing p { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.closing strong { color: var(--ink); font-weight: 600; }
.closing a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--moss-light); text-underline-offset: 3px; }
.closing a:hover { text-decoration-color: var(--ink); }

.doc-nav {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
}
.doc-nav .arrow-link { color: var(--ink-muted); }
.doc-nav .arrow-link:hover { color: var(--ink); }

/* Index lists (essays catalog, reviews catalog) */
.index-wrap {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(112px, 16vh, 150px) var(--pad-x) clamp(64px, 9vw, 100px);
}
.index-head {
  display: grid; grid-template-columns: 1fr; gap: 20px 56px; align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.index-head .label { margin-bottom: 18px; }
.index-head h1 { font-size: clamp(3rem, 9vw, 6.2rem); }
.index-head .lede p { margin-bottom: 1em; }
.index-head .lede p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .index-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .index-head .lede { padding-top: 46px; }
}

.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px clamp(18px, 3vw, 36px); align-items: baseline;
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft); text-decoration: none;
  position: relative;
  transition: color 0.3s ease, padding-left 0.4s var(--ease);
}
.row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 0;
  background: linear-gradient(90deg, var(--moss-light), transparent);
  opacity: 0.35; transition: width 0.45s var(--ease);
}
.row:hover { color: var(--ink); padding-left: 12px; }
.row:hover::before { width: 3px; }
.row .idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-muted); }
.row .title {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.3; text-wrap: balance;
  display: block;
}
.row .desc { display: block; margin-top: 8px; font-size: 0.94rem; line-height: 1.6; color: var(--ink-muted); max-width: 64ch; }
.row .go { color: var(--ink-muted); transition: color 0.3s ease, transform 0.3s var(--ease); align-self: center; }
.row .go svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.row:hover .go { color: var(--ink); transform: translateX(4px); }
@media (max-width: 560px) { .row { grid-template-columns: auto 1fr; } .row .go { display: none; } }

/* ─────────────────────────── FOOTER ─────────────────────────── */
footer.site {
  position: relative; z-index: 2;
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, transparent, rgba(7, 16, 11, 0.6));
  padding: clamp(48px, 6vw, 80px) var(--pad-x) calc(clamp(28px, 3vw, 40px) + env(safe-area-inset-bottom));
}
footer.site .inner { max-width: var(--max-w); margin: 0 auto; }
footer.site .cols {
  display: grid; grid-template-columns: 1fr; gap: 36px 40px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.site .brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
footer.site .brand .name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
footer.site .tag { margin-top: 16px; color: var(--ink-muted); max-width: 34ch; font-size: 0.95rem; }
footer.site h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); font-weight: 400; margin-bottom: 16px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site li a {
  color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 28px;
  transition: color 0.3s ease;
}
footer.site li a:hover { color: var(--ink); }
footer.site li a .count { font-family: var(--mono); font-size: 10px; color: var(--moss-light); letter-spacing: 0.1em; }
footer.site .mail {
  font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.03em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule-strong); padding-bottom: 3px;
  overflow-wrap: anywhere;
  transition: border-color 0.3s ease;
}
footer.site .mail:hover { border-color: var(--moss-light); }
footer.site .mail-note { margin-top: 12px; color: var(--ink-muted); font-size: 0.9rem; max-width: 30ch; }
footer.site .bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-top: clamp(20px, 2.6vw, 28px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}
footer.site .bottom .sep { margin: 0 8px; color: var(--moss-light); }

/* ─────────────────────────── MOTION PREFERENCES ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .stage::after { display: none; }
  .reveal { opacity: 1; transform: none; }
}
