/* ═══════════════════════════════════════════════════════════════
   ACHARYA — A Journal of Wild Places
   01 Tokens · 02 Reset · 03 Type · 04 Atoms · 05 Rail · 06 Topbar
   07 Burger · 08 Nav overlay · 09 Cursor · 10 Loader · 11 Hero
   12 Marquee · 13 Index posts · 14 Collections · 15 Letter
   16 Footer · 17 Single page · 18 Reveals · 19 Responsive
   ═══════════════════════════════════════════════════════════════ */

/* ── 01 TOKENS ─────────────────────────────────────────────── */
:root {
  --rail: 92px;
  --pad: clamp(18px, 3.4vw, 58px);
  --gap: clamp(10px, 1vw, 18px);
  --maxw: 1720px;

  --bg:        #ffffff;
  --bg-2:      #f5f3ef;
  --bg-3:      #ebe8e2;
  --surface:   #ffffff;
  --ink:       #0d0d0e;
  --ink-2:     #4e4e54;
  --ink-3:     #8d8d94;
  --line:      rgba(13, 13, 14, .12);
  --line-soft: rgba(13, 13, 14, .06);
  --accent:    #b4482b;
  --accent-2:  #8a5a3c;
  --on-accent: #ffffff;
  --shade:     rgba(8, 8, 9, .55);
  --shadow:    0 34px 70px -38px rgba(10, 10, 12, .40);
  --shadow-sm: 0 14px 30px -18px rgba(10, 10, 12, .30);

  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io:  cubic-bezier(.76, 0, .24, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);

  --r-s: 6px;
  --r-m: 14px;
  --r-l: 24px;
}

[data-theme="dark"] {
  --bg:        #0b0b0c;
  --bg-2:      #111113;
  --bg-3:      #191a1c;
  --surface:   #141416;
  --ink:       #f3f1ed;
  --ink-2:     #b3b1ab;
  --ink-3:     #77767c;
  --line:      rgba(243, 241, 237, .14);
  --line-soft: rgba(243, 241, 237, .07);
  --accent:    #e3855c;
  --accent-2:  #d8a878;
  --on-accent: #16100d;
  --shade:     rgba(0, 0, 0, .62);
  --shadow:    0 34px 70px -38px rgba(0, 0, 0, .85);
  --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, .7);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .5s var(--e-out), color .5s var(--e-out);
}

body.is-locked { overflow: hidden; }

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

svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--accent); color: var(--on-accent); }

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

/* Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 20px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── 03 TYPE ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.022em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--light { color: rgba(255, 255, 255, .72); }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
  animation: pulse 2.6s var(--e-io) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: .45; }
}

.meta {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.meta a:hover { color: var(--accent); }
.meta .sep { font-style: normal; opacity: .45; }
.meta__item { display: inline-flex; align-items: center; gap: 6px; }
.meta__item svg { width: 13px; height: 13px; stroke-width: 1.5; opacity: .8; }
.meta--light { color: rgba(255, 255, 255, .8); }
.meta--light a:hover { color: #fff; }

/* ── 04 ATOMS ──────────────────────────────────────────────── */
.mark {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* animated underline arrow link */
.link-arrow {
  --c: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c);
  padding-bottom: 4px;
  position: relative;
  width: fit-content;
}
.link-arrow span { position: relative; }
.link-arrow span::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--e-out);
}
.link-arrow svg {
  width: 26px; height: 12px;
  stroke-width: 1.3;
  transition: transform .5s var(--e-out);
}
.link-arrow svg path {
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
}
.link-arrow:hover span::after,
a:hover .link-arrow span::after,
.card:hover .link-arrow span::after,
.post:hover .link-arrow span::after { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover svg,
.card:hover .link-arrow svg,
.post:hover .link-arrow svg { transform: translateX(7px); }
.link-arrow--light { --c: #fff; }

/* pill button with fill sweep */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 40px;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color .45s var(--e-out), border-color .45s var(--e-out);
}
.btn__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--e-out);
  z-index: -1;
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover .btn__fill { transform: translateY(0); }

/* icon buttons */
.iconbtn {
  position: relative;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color .35s var(--e-out), background-color .35s var(--e-out), transform .35s var(--e-out);
}
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-2);
  transform: scale(.4);
  opacity: 0;
  transition: transform .45s var(--e-spring), opacity .3s;
  z-index: -1;
}
.iconbtn:hover { color: var(--accent); }
.iconbtn:hover::before { transform: scale(1); opacity: 1; }
.iconbtn--solid {
  background: var(--ink);
  color: var(--bg);
}
.iconbtn--solid:hover { background: var(--accent); color: var(--on-accent); }
.iconbtn--solid::before { display: none; }

/* tooltip */
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translate(-6px, -50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-s);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--e-out);
  z-index: 40;
}
[data-tip]:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ping */
.ping {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.ping::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.2s var(--e-io) infinite;
}
@keyframes ping {
  0%   { transform: scale(.8); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* tag */
.tag {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tag--float { position: absolute; top: 16px; left: 16px; z-index: 3; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color .35s, color .35s, transform .45s var(--e-out);
}
.chips li svg { width: 13px; height: 13px; stroke-width: 1.4; color: var(--accent); }
.post:hover .chips li { border-color: var(--line); }
.chips li:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }

/* ── 05 LEFT RAIL ──────────────────────────────────────────── */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 20px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  transition: background-color .5s var(--e-out), border-color .5s var(--e-out);
}

/* while the overlay is open the rail floats on top of it, bare */
body.is-locked .rail,
body.is-locked .topbar {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.is-locked .rail__progress,
body.is-locked .rail__vert,
body.is-locked .rail__social,
body.is-locked .rail__msg { opacity: 0; pointer-events: none; }
.rail__vert, .rail__social, .rail__msg { transition: opacity .35s var(--e-out); }

.rail__progress {
  position: absolute;
  top: 0; right: -1px;
  width: 2px; height: 100%;
  background: transparent;
}
.rail__progress i {
  display: block;
  width: 100%;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transition: height .12s linear;
}

.rail__logo .mark {
  width: 42px; height: 42px;
  font-size: 26px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  transition: background-color .4s var(--e-out), color .4s, transform .5s var(--e-spring), border-radius .5s var(--e-out);
}
.rail__logo:hover .mark { background: var(--accent); color: var(--on-accent); border-radius: 50%; transform: rotate(-8deg); }

.rail__vert {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rail__vert .dash { width: 1px; height: 26px; background: var(--line); animation: none; border-radius: 0; }
.rail__vert--top { margin-top: 26px; }
.rail__vert--bottom { margin-bottom: 4px; }

.rail__mid, .rail__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rail__mid { gap: 18px; }
.rail__bottom { gap: 16px; }

.rail__social {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail__social a {
  position: relative;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  border-radius: 50%;
  transition: color .35s, transform .45s var(--e-spring);
}
.rail__social a svg { width: 15px; height: 15px; }
.rail__social a:hover { color: var(--accent); transform: translateY(-3px) scale(1.12); }

.rail__msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.rail__msg .iconbtn { width: 38px; height: 38px; border-radius: 12px; }
.rail__msg .iconbtn--solid { border-radius: 12px; }

/* ── THEME SWITCH ──────────────────────────────────────────
   A two-option segmented control: both states are always
   visible, the thumb slides to whichever is active.          */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.themer {
  --sz: 32px;
  --gap-t: 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-t);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg-2);
  transition: background-color .5s var(--e-out), border-color .5s var(--e-out);
}
.themer--v { flex-direction: column; }

.themer__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: var(--sz); height: var(--sz);
  border-radius: 50%;
  background: var(--ink);
  transition: transform .55s var(--e-spring), background-color .5s var(--e-out);
  z-index: 0;
}
[data-theme="dark"] .themer__thumb { transform: translateX(calc(var(--sz) + var(--gap-t))); }
[data-theme="dark"] .themer--v .themer__thumb { transform: translateY(calc(var(--sz) + var(--gap-t))); }

.themer__opt {
  position: relative;
  z-index: 1;
  width: var(--sz); height: var(--sz);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  transition: color .4s var(--e-out), transform .45s var(--e-spring);
}
.themer__opt svg { width: 16px; height: 16px; }
.themer__opt[aria-pressed="true"] { color: var(--bg); }
.themer__opt[aria-pressed="false"]:hover { color: var(--ink); transform: scale(1.14); }
.themer .rays { transform-origin: 12px 12px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the rail switch keeps its footing while the overlay is open */
body.is-locked .rail .themer { background: transparent; }

/* ── 06 MOBILE TOPBAR ──────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 66px;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .5s var(--e-out), background-color .5s var(--e-out);
}
.topbar.is-hidden { transform: translateY(-102%); }
.topbar__logo { display: flex; align-items: center; gap: 11px; }
.topbar__logo .mark {
  width: 36px; height: 36px;
  font-size: 21px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}
.topbar__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -.02em;
}
.topbar__tools { display: flex; align-items: center; gap: 4px; }

/* ── 07 SIGNATURE BURGER ───────────────────────────────────── */
.burger {
  position: relative;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  z-index: 90;
  -webkit-tap-highlight-color: transparent;
}
.burger__ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.burger__ring svg { width: 100%; height: 100%; overflow: visible; }
.burger__ring circle {
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-dasharray: 135;
  stroke-dashoffset: 135;
  transform-origin: 24px 24px;
  transform: rotate(-90deg);
  transition: stroke-dashoffset .7s var(--e-out);
}
.burger:hover .burger__ring circle { stroke-dashoffset: 0; }

.burger__bars {
  position: relative;
  width: 24px; height: 14px;
  display: block;
}
.burger__bars i {
  position: absolute;
  left: 0;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: 50% 50%;
  transition:
    width   .45s var(--e-out) var(--wd, .25s),
    top     .38s var(--e-io)  var(--td, 0s),
    transform .42s var(--e-spring) var(--rd, .28s),
    opacity .2s linear var(--od, .1s);
}
.burger__bars i:nth-child(1) { top: 0;    width: 24px; }
.burger__bars i:nth-child(2) { top: 6px;  width: 15px; }
.burger__bars i:nth-child(3) { top: 12px; width: 20px; }

/* hover: bars equalise, staggered */
.burger:hover .burger__bars i:nth-child(2) { width: 24px; transition-delay: .05s; }
.burger:hover .burger__bars i:nth-child(3) { width: 24px; transition-delay: .1s; }

/* open: collapse to centre → burst into X */
.burger.is-open .burger__bars i {
  top: 6px;
  --wd: 0s; --td: .1s; --rd: .3s; --od: 0s;
}
.burger.is-open .burger__bars i:nth-child(1) { width: 24px; transform: rotate(45deg); }
.burger.is-open .burger__bars i:nth-child(2) { width: 24px; transform: scaleX(0); opacity: 0; }
.burger.is-open .burger__bars i:nth-child(3) { width: 24px; transform: rotate(-45deg); }
.burger.is-open { color: var(--ink); }
.burger.is-open .burger__ring circle { stroke-dashoffset: 0; stroke: var(--accent); }

/* ── 08 FULLSCREEN NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.nav.is-open { visibility: visible; pointer-events: auto; }
.nav.is-closing { visibility: visible; pointer-events: none; }

.nav__curtain {
  position: absolute;
  inset: 0;
  clip-path: circle(0px at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .95s var(--e-io);
}
.nav__curtain--1 { background: var(--accent); }
.nav__curtain--2 { background: var(--ink); transition-delay: .06s; }
.nav__curtain--3 { background: var(--bg); transition-delay: .12s; }
.nav.is-open .nav__curtain { clip-path: circle(var(--r, 150%) at var(--mx, 50%) var(--my, 50%)); }
.nav.is-closing .nav__curtain--1 { transition-delay: .12s; }
.nav.is-closing .nav__curtain--2 { transition-delay: .06s; }
.nav.is-closing .nav__curtain--3 { transition-delay: 0s; }

.nav__inner {
  position: relative;
  height: 100%;
  padding: clamp(70px, 9vh, 110px) var(--pad) 40px calc(var(--rail) + var(--pad));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 46px);
  overflow-y: auto;
}

.nav__eyebrow {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s, transform .7s var(--e-out);
}
.nav.is-open .nav__eyebrow { opacity: 1; transform: none; transition-delay: .5s; }

.nav__list { display: flex; flex-direction: column; }
.nav__list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 34px);
  padding: clamp(6px, .9vh, 12px) 0;
  font-family: var(--serif);
  font-size: clamp(38px, 7.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--ink);
  overflow: hidden;
}
.nav__list a i {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 600;
  flex: none;
}
.nav__list a span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s var(--e-out), color .4s;
}
.nav.is-open .nav__list a span { transform: translateY(0); }
.nav.is-open .nav__list a:nth-child(1) span { transition-delay: .40s; }
.nav.is-open .nav__list a:nth-child(2) span { transition-delay: .47s; }
.nav.is-open .nav__list a:nth-child(3) span { transition-delay: .54s; }
.nav.is-open .nav__list a:nth-child(4) span { transition-delay: .61s; }
.nav.is-open .nav__list a:nth-child(5) span { transition-delay: .68s; }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 1px;
  background: var(--line);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--e-out), opacity .3s;
}
.nav__list:hover a { color: var(--ink-3); }
.nav__list a:hover { color: var(--accent); }
.nav__list a:hover::after { transform: scaleX(1); opacity: 1; }

.nav__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: 900px;
  padding-top: clamp(16px, 3vh, 34px);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s, transform .8s var(--e-out);
}
.nav.is-open .nav__meta { opacity: 1; transform: none; transition-delay: .75s; }
.nav__meta h6 {
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
}
.nav__meta a, .nav__meta p { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.nav__meta a:hover { color: var(--accent); }
.nav__social a { display: inline-block; margin-right: 16px; }

.nav__preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(180px, 20vw, 300px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-m);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.86) rotate(-5deg);
  transition: opacity .45s var(--e-out), transform .55s var(--e-out);
  z-index: 85;
  box-shadow: var(--shadow);
}
.nav__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.nav__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── 09 CURSOR ─────────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: opacity .3s;
}
.cursor__dot, .cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: opacity .3s, width .35s var(--e-out), height .35s var(--e-out);
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .65);
  display: grid;
  place-items: center;
  transition: width .45s var(--e-out), height .45s var(--e-out), background-color .4s, border-color .4s, opacity .3s;
}
.cursor__label {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #000;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .4s var(--e-spring);
}
.cursor.is-hover .cursor__ring { width: 74px; height: 74px; background: #fff; border-color: #fff; }
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-hover .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-small .cursor__ring { width: 18px; height: 18px; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── 10 LOADER ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.loader__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
}
.loader__mark {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  font-size: 32px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  animation: markIn 1.1s var(--e-spring) both;
}
@keyframes markIn {
  0%   { transform: scale(.4) rotate(-25deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.loader__word {
  font-size: clamp(30px, 6vw, 56px);
  letter-spacing: -.03em;
  overflow: hidden;
}
.loader__word .char {
  display: inline-block;
  opacity: 1;
  transform: translateY(100%);
  animation: charUp .9s var(--e-out) both;
  animation-delay: calc(.18s + var(--i) * .045s);
}
@keyframes charUp { to { transform: none; } }
.loader__num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-3);
  align-self: flex-start;
  padding-top: 6px;
}
.loader__bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--line-soft);
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .25s var(--e-out);
}
.loader__curtain {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .8s var(--e-io);
}
body.is-ready .loader__curtain { transform: scaleY(1); transform-origin: bottom; }
body.is-ready .loader { animation: loaderOut .1s .78s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
body.is-ready .loader__inner { opacity: 0; transition: opacity .3s; }

/* first-paint entrance — with a failsafe if the script never runs */
body.is-loading .shell, body.is-loading .rail, body.is-loading .topbar {
  opacity: 0;
  animation: failsafe 0s 6s forwards;
}
@keyframes failsafe { to { opacity: 1; } }
.shell, .rail, .topbar { transition: opacity .8s var(--e-out) .55s; }
.loader { animation: failsafeOut 0s 6.4s forwards; }
@keyframes failsafeOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ── 11 SHELL + HERO ───────────────────────────────────────── */
.shell {
  margin-left: var(--rail);
  min-height: 100vh;
  position: relative;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 5.2fr 4fr 3fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  height: calc(100svh - 2 * var(--gap));
  min-height: 620px;
  padding: var(--gap);
}

/* — featured — */
.feature {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 52px);
  color: #fff;
  transform-style: preserve-3d;
}
.feature__stack { position: absolute; inset: 0; z-index: -2; }
.feature__slide {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s var(--e-io);
}
.feature__slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.feature__slide.is-out { clip-path: inset(0 0 0 0); z-index: 1; }
.feature__slide img {
  width: 100%; height: 108%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--e-out);
}
.feature:hover .feature__slide.is-active img { transform: scale(1.09); }
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 8, 10, .82) 0%, rgba(6, 8, 10, .38) 42%, rgba(6, 8, 10, .05) 72%),
    radial-gradient(90% 60% at 15% 105%, rgba(6, 8, 10, .55), transparent 70%);
}

.feature__badge {
  position: absolute;
  top: clamp(20px, 2.4vw, 34px);
  left: clamp(24px, 3vw, 52px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
}

.feature__body { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.feature__title {
  font-size: clamp(34px, 3.6vw, 62px);
  line-height: 1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.feature__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--e-out); }
.feature__title a:hover { background-size: 100% 1px; }
.feature__excerpt {
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .8);
  max-width: 46ch;
}
.feature__nav {
  position: absolute;
  right: clamp(24px, 3vw, 52px);
  bottom: clamp(24px, 3vw, 52px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.round {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  transition: background-color .4s var(--e-out), color .4s, border-color .4s, transform .4s var(--e-spring);
}
.round svg { width: 17px; height: 17px; }
.round:hover { background: #fff; color: #111; border-color: #fff; transform: scale(1.08); }
.feature__count {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .7);
  margin-left: 6px;
}
.feature__count i { font-style: normal; color: #fff; font-weight: 600; }
.feature__count em { font-style: normal; margin: 0 4px; opacity: .5; }

/* — cards — */
.card {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: box-shadow .6s var(--e-out), border-color .5s, transform .6s var(--e-out);
  transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line); }

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-3);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s var(--e-out), filter .8s var(--e-out);
}
.card:hover .card__media img { transform: scale(1.09); }

.card__hover {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.5);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  transition: opacity .4s, transform .55s var(--e-spring);
  pointer-events: none;
  z-index: 3;
}
@media (hover: none) {
  .card:hover .card__hover, .post:hover .card__hover { opacity: 0; }
}

.card__body {
  padding: clamp(18px, 1.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.card__title {
  font-size: clamp(19px, 1.55vw, 28px);
  line-height: 1.12;
}
.card__title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .6s var(--e-out), color .4s; }
.card__title a:hover { background-size: 100% 1px; color: var(--accent); }
.card__excerpt { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* A : stacked */
.card--stack { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: 1fr auto; }
.card--stack .card__media { height: 100%; min-height: 0; }

/* B : photo only */
.card--photo { grid-column: 3; grid-row: 1; display: grid; grid-template-rows: 1fr; }
.card--photo .card__media { height: 100%; }
.card--photo .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 10, .78), rgba(6, 8, 10, .1) 55%);
  opacity: .9;
  transition: opacity .5s;
}
.card__float {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 1.4vw, 26px);
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(0);
  transition: transform .6s var(--e-out);
}
.card--photo:hover .card__float { transform: translateY(-6px); }
.card__float-title {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.022em;
  font-size: clamp(17px, 1.25vw, 23px);
  line-height: 1.14;
}
.card__float-title em { font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1; }

/* C : split */
.card--split {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
}
.card--split .card__body { padding: clamp(20px, 2vw, 38px); }
.card--split .card__media { height: 100%; }

/* A young site may not have three cards to show. Stretch what is there
   so the mosaic never renders with an empty slot. */
.hero--c2 .card--stack,
.hero--c2 .card--photo { grid-row: 1 / 3; }
.hero--c1 .card--stack { grid-column: 2 / -1; grid-row: 1 / 3; }
.hero--c0 .feature     { grid-column: 1 / -1; }

.hero__scroll {
  position: absolute;
  left: calc(var(--gap) + 22px);
  bottom: calc(var(--gap) + 22px);
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  z-index: 5;
}
.hero__scroll i { width: 40px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2s var(--e-io) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ── 12 MARQUEE ────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: clamp(40px, 6vw, 90px) 0 0;
  background: var(--bg-2);
  transition: background-color .5s var(--e-out);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
  animation-direction: var(--dir, normal);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 38px);
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee__track i { color: var(--accent); font-size: 14px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 13 SECTIONS + INDEX POSTS ─────────────────────────────── */
.section {
  padding: clamp(60px, 9vw, 130px) var(--pad);
  max-width: var(--maxw);
  margin-inline: auto;
}
.section--tight { padding-top: clamp(30px, 4vw, 60px); }

.section__head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  margin-bottom: clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.section__title {
  font-size: clamp(38px, 5.6vw, 86px);
  margin: 18px 0 20px;
}
.section__head--row .section__title { margin: 0; }
.section__lede {
  font-size: clamp(14px, 1.1vw, 17px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.75;
}

.posts { display: flex; flex-direction: column; gap: clamp(50px, 7vw, 110px); }

.post {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(26px, 4vw, 74px);
  align-items: center;
}
.post--flip .post__media { order: 2; }

.post__media {
  position: relative;
  display: block;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  box-shadow: var(--shadow-sm);
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.3s var(--e-out);
}
.post:hover .post__media img { transform: scale(1.1); }
.post__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 8, 10, .34), transparent 55%);
  opacity: 0;
  transition: opacity .6s;
}
.post:hover .post__shade { opacity: 1; }
.post__index {
  position: absolute;
  top: 18px; left: 20px;
  z-index: 3;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 74px);
  line-height: 1;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
  transition: transform .7s var(--e-out);
}
.post:hover .post__index { transform: translateY(-6px); }

.post__body { display: flex; flex-direction: column; gap: 17px; align-items: flex-start; }
.post__title { font-size: clamp(28px, 3.1vw, 50px); line-height: 1.06; }
.post__title a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .7s var(--e-out), color .4s;
}
.post__title a:hover { background-size: 100% 1px; color: var(--accent); }
.post__excerpt { font-size: 15px; color: var(--ink-2); line-height: 1.78; max-width: 46ch; }

.posts__more { display: flex; justify-content: center; margin-top: clamp(46px, 6vw, 86px); }

/* ── 14 COLLECTIONS + STATS ────────────────────────────────── */
.collections { margin-top: 10px; }
.collections li { border-bottom: 1px solid var(--line); }
.collections a {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 34px) clamp(10px, 1.6vw, 26px);
  overflow: hidden;
  transition: color .45s var(--e-out), padding-left .5s var(--e-out);
}
.collections a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .55s var(--e-out);
  z-index: -1;
}
.collections a:hover { color: var(--bg); padding-left: clamp(22px, 2.6vw, 44px); }
.collections a:hover::before { transform: translateY(0); }
.collections a i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  font-weight: 600;
}
.collections a span {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 40px);
  letter-spacing: -.02em;
}
.collections a em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .4s;
}
.collections a:hover em { color: rgba(255, 255, 255, .6); }
[data-theme="dark"] .collections a:hover em { color: rgba(0, 0, 0, .55); }
.collections .arrow {
  width: 28px; height: 12px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .4s, transform .5s var(--e-out);
  justify-self: end;
}
.collections a:hover .arrow { opacity: 1; transform: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(50px, 7vw, 100px);
  padding-top: clamp(30px, 4vw, 54px);
  border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column; gap: 8px; }
.stats b {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
}
.stats span {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── 15 NEWSLETTER ─────────────────────────────────────────── */
.letter {
  position: relative;
  margin: 0 var(--pad) clamp(50px, 7vw, 100px);
  padding: clamp(40px, 6vw, 90px) clamp(26px, 5vw, 80px);
  border-radius: var(--r-l);
  background: #0d0d0e;
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  isolation: isolate;
}
[data-theme="dark"] .letter { background: var(--bg-2); border: 1px solid var(--line); }
.letter__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 66%);
  opacity: .30;
  top: -30%; right: -12%;
  filter: blur(20px);
  z-index: -1;
  animation: floaty 14s var(--e-io) infinite alternate;
}
@keyframes floaty {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8%, 12%) scale(1.15); }
}
.letter__text { display: flex; flex-direction: column; gap: 18px; }
.letter__text h2 { font-size: clamp(30px, 3.8vw, 58px); }
.letter__lede { font-size: 14.5px; color: rgba(255, 255, 255, .68); max-width: 44ch; line-height: 1.75; }
[data-theme="dark"] .letter__lede { color: var(--ink-2); }
[data-theme="dark"] .letter__text h2, [data-theme="dark"] .letter { color: var(--ink); }

.field { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .28); }
[data-theme="dark"] .field { border-color: var(--line); }
.field input {
  width: 100%;
  padding: 22px 56px 16px 0;
  font-size: 16px;
  color: inherit;
}
.field label {
  position: absolute;
  left: 0; top: 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, .5);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .45s var(--e-out), color .4s;
}
[data-theme="dark"] .field label { color: var(--ink-3); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.66); color: var(--accent); }
.field::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--e-out);
}
.field:focus-within::after { transform: scaleX(1); }
.submit {
  position: absolute;
  right: 0; bottom: 12px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform .45s var(--e-spring), background-color .4s;
}
.submit svg { width: 22px; height: 12px; }
.submit:hover { transform: scale(1.1) translateX(3px); }
.field__note {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .45);
  transition: color .4s;
}
[data-theme="dark"] .field__note { color: var(--ink-3); }
.field__note.is-error { color: #ff9d80; }
.field__note.is-ok { color: var(--accent-2); }

/* ── 16 FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(46px, 6vw, 84px) var(--pad) 26px;
  position: relative;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.15fr 1.6fr;
  gap: clamp(34px, 5vw, 80px);
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -.02em;
}
.footer__logo .mark {
  width: 38px; height: 38px;
  font-size: 22px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--bg);
  transition: transform .5s var(--e-spring), background-color .4s;
}
.footer__logo:hover .mark { transform: rotate(-10deg) scale(1.06); background: var(--accent); color: var(--on-accent); }
.footer__brand p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: color .4s, border-color .4s, background-color .4s, transform .45s var(--e-spring);
}
.footer__social a svg { width: 16px; height: 16px; }
.footer__social a:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); transform: translateY(-4px); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h6 {
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__cols a, .footer__cols p {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 2;
  width: fit-content;
  transition: color .35s, transform .4s var(--e-out);
}
.footer__cols a:hover { color: var(--accent); transform: translateX(5px); }

.footer__wordmark {
  margin: clamp(40px, 6vw, 80px) 0 20px;
  overflow: hidden;
  /* leading has to clear the descender on "y" *and* the parallax shift
     (JS caps that shift at 5.5% of this box's height) */
  line-height: 1.22;
  user-select: none;
  /* the footer also runs inside the narrow single-post column, so the
     wordmark is measured against its own box, not the viewport */
  container-type: inline-size;
}
.footer__wordmark span {
  display: block;
  font-family: var(--serif);
  /* cqi keeps it inside a narrow footer; JS (wordmarkFit) trims the
     last few px so long site names never clip */
  font-size: min(clamp(70px, 17.5vw, 300px), 21cqi);
  letter-spacing: -.045em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  transition: -webkit-text-stroke-color .5s;
  white-space: nowrap;
}
.footer:hover .footer__wordmark span { -webkit-text-stroke-color: var(--accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--accent); }
.totop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.totop svg {
  width: 32px; height: 32px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .5s var(--e-spring), background-color .4s, color .4s, border-color .4s;
}
.totop:hover svg { transform: translateY(-4px); background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── 17 SINGLE PAGE ────────────────────────────────────────── */
.readbar {
  position: fixed;
  top: 0; left: var(--rail); right: 0;
  height: 2px;
  z-index: 65;
  background: transparent;
}
.readbar i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: start;
}

.article__visual {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
  padding: var(--gap) 0 var(--gap) var(--gap);
}
.article__visual-inner {
  position: relative;
  height: 100%;
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
}
.article__visual img {
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.article__visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 10, .72), transparent 46%);
  pointer-events: none;
}
.article__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(20px, 2.4vw, 40px);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.article__caption p { font-size: 12px; color: rgba(255, 255, 255, .78); max-width: 34ch; line-height: 1.65; }
.article__share { display: flex; gap: 8px; }
.article__share a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  transition: background-color .4s, color .4s, transform .45s var(--e-spring);
}
.article__share a svg { width: 15px; height: 15px; }
.article__share a:hover { background: #fff; color: #111; transform: translateY(-4px); }

.article__body {
  padding: clamp(70px, 9vw, 130px) var(--pad) clamp(40px, 6vw, 80px) clamp(28px, 4.4vw, 76px);
  max-width: 820px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 12px; height: 12px; }

.article__title {
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  margin-bottom: 24px;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(30px, 4vw, 50px);
}
.article__author { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.article__author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article__author b { font-size: 13.5px; font-weight: 500; display: block; letter-spacing: 0; text-transform: none; }
.article__author span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.prose > * + * { margin-top: 1.5em; }
.prose p { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.prose p strong { color: var(--ink); font-weight: 500; }
.prose h2 {
  font-size: clamp(26px, 2.6vw, 40px);
  margin-top: 1.9em;
  margin-bottom: .1em;
  color: var(--ink);
}
.prose h3 { font-size: clamp(20px, 1.8vw, 27px); margin-top: 1.6em; color: var(--ink); }
.prose a:not(.link-arrow) {
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--e-out), color .4s;
}
.prose a:not(.link-arrow):hover { color: var(--accent); background-size: 0 1px; }
.prose .lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
}
.prose .dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.4em;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--accent);
  font-weight: 400;
}
.prose ul { display: flex; flex-direction: column; gap: 12px; }
.prose ul li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .72em;
  width: 12px; height: 1px;
  background: var(--accent);
}
.prose blockquote {
  margin: 2.4em 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--accent);
}
.prose blockquote p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 31px);
  line-height: 1.35;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -.02em;
}
.prose blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.prose figure { margin: 2.6em 0; }
.prose figure img { width: 100%; border-radius: var(--r-m); }
.prose figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.prose figcaption::before { content: ""; width: 22px; height: 1px; background: var(--line); flex: none; }

.factbox {
  margin: 2.6em 0;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--bg-2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 22px;
}
.factbox div { display: flex; flex-direction: column; gap: 6px; }
.factbox svg { width: 17px; height: 17px; color: var(--accent); margin-bottom: 4px; }
.factbox b { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.factbox span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: clamp(34px, 4vw, 54px) 0;
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.article__tags a {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-2);
  transition: all .4s var(--e-out);
}
.article__tags a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }

.authorbox {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-m);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
}
.authorbox img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex: none; }
.authorbox h4 { font-size: 22px; margin-bottom: 6px; }
.authorbox p { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin-bottom: 12px; }

.nextpost {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 34vw, 380px);
  margin: clamp(40px, 5vw, 70px) 0 0;
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: #fff;
  padding: 40px;
}
.nextpost img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  transition: transform 1.4s var(--e-out);
}
.nextpost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, .55);
  z-index: -1;
  transition: background-color .6s;
}
.nextpost:hover img { transform: scale(1.12); }
.nextpost:hover::after { background: rgba(8, 9, 11, .38); }
.nextpost span {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.nextpost h3 { font-size: clamp(26px, 3.2vw, 48px); margin: 14px 0 20px; max-width: 16ch; }

/* single-page tweaks */
.article__meta .meta__item {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
}
.prose > *:first-child { margin-top: 0; }
.nextpost .link-arrow { pointer-events: none; }

.footer--single {
  margin-top: clamp(50px, 7vw, 90px);
  padding: clamp(40px, 5vw, 64px) 0 24px;
}
.footer--single .footer__top { grid-template-columns: 1.1fr 1fr; }
.footer--single .footer__cols { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .footer--single .footer__top { grid-template-columns: 1fr; }
}

/* ── 17b ABOUT PAGE ────────────────────────────────────────── */
/* Long editorial page: portrait hero → creed → disciplines → the two
   working lives → the road → the essay → reading → invitation.
   Everything here reuses the site tokens; nothing is hard-coded to a
   theme, so the whole page inverts with the switch.                  */
.section--narrow { max-width: 1280px; }

/* — hero — */
.about__hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 86px) var(--pad) clamp(30px, 4vw, 56px);
}
.about__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.about__intro .crumbs { margin-bottom: 0; }
.about__name {
  font-size: clamp(44px, 7.4vw, 112px);
  /* the line splitter clips each line to its own box, so the leading has
     to clear the descenders on j / y before it can be tightened */
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 2px 0;
}
/* pad the clip box under the baseline, then take the space back, so the
   descenders survive without opening up the line rhythm */
.about__name .split-line { padding-bottom: .14em; margin-bottom: -.12em; }
.about__roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
}
/* separator trails the word rather than leading it, so a wrapped line
   never starts with a dangling dash */
.about__roles li:not(:last-child)::after {
  content: "—";
  margin: 0 11px;
  color: var(--accent);
  opacity: .75;
}
.about__lede {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.82;
  color: var(--ink-2);
  max-width: 48ch;
}
.about__actions { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); flex-wrap: wrap; margin-top: 8px; }

/* — portrait, with an offset rule behind it — */
.about__portrait { position: relative; }
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 30px -24px -24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.about__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
  box-shadow: var(--shadow);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__frame--empty {
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(90px, 12vw, 190px);
  color: var(--ink-3);
  opacity: .35;
  box-shadow: none;
  border: 1px solid var(--line);
}
.about__stamp {
  position: absolute;
  z-index: 2;
  left: clamp(-14px, -1vw, 0px);
  bottom: clamp(18px, 3vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  max-width: calc(100% - 20px);
}

/* — the creed band — */
.about__creed {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(50px, 7vw, 110px) var(--pad);
  transition: background-color .5s var(--e-out);
}
/* ch units would be measured against the wrapper's sans, not the display
   serif inside it — a fixed measure is the honest way to set this */
.about__creed blockquote { max-width: 940px; margin-inline: auto; text-align: center; }
.about__creed blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: clamp(70px, 9vw, 150px);
  line-height: .55;
  color: var(--accent);
  opacity: .3;
  margin-bottom: clamp(10px, 1.4vw, 22px);
}
.about__creed p {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(25px, 3.4vw, 54px);
  line-height: 1.24;
  letter-spacing: -.022em;
}
.about__creed cite {
  display: block;
  margin-top: clamp(20px, 2.4vw, 34px);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* — disciplines: an editorial grid, hairlines instead of boxes — */
.disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.disc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: clamp(26px, 2.7vw, 44px) clamp(18px, 2vw, 34px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color .5s var(--e-out);
}
.disc:nth-child(3n) { border-right: 0; }
.disc::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--e-out);
}
.disc:hover { background: var(--bg-2); }
.disc:hover::before { transform: scaleX(1); transform-origin: left; }
.disc__n { font-size: 10.5px; letter-spacing: .2em; font-weight: 600; color: var(--accent); }
.disc__title { font-family: var(--serif); font-size: clamp(21px, 1.9vw, 31px); letter-spacing: -.024em; line-height: 1.08; }
.disc__body { font-size: 14px; line-height: 1.78; color: var(--ink-2); }
.disc__tags {
  margin-top: auto;
  padding-top: 6px;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* — the two working lives — */
.about__two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 74px); }
.wing { display: flex; flex-direction: column; gap: 15px; }
.wing + .wing { padding-left: clamp(30px, 4vw, 74px); border-left: 1px solid var(--line); }
.wing__title { font-family: var(--serif); font-size: clamp(24px, 2.7vw, 42px); letter-spacing: -.026em; line-height: 1.06; }
.wing__body { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 42ch; }
.wing ul { display: flex; flex-direction: column; gap: 11px; margin-top: 8px; }
.wing li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.wing li::before { content: "+"; color: var(--accent); font-size: 12px; line-height: 2; }

/* — the road — */
.road { border-top: 1px solid var(--line); }
.road li { border-bottom: 1px solid var(--line); }
.road__row {
  display: grid;
  grid-template-columns: 130px 1fr 1.05fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: baseline;
  padding: clamp(18px, 2.1vw, 30px) clamp(6px, 1vw, 18px);
  transition: padding-left .5s var(--e-out), background-color .45s var(--e-out);
}
.road li:hover .road__row { padding-left: clamp(16px, 2.2vw, 36px); background: var(--bg-2); }
.road__year { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.road__place { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 35px); letter-spacing: -.024em; line-height: 1.1; }
.road__note { font-size: 13.5px; line-height: 1.72; color: var(--ink-3); }

/* — speaking topics — */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.topic {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .45s, transform .55s var(--e-out), box-shadow .55s var(--e-out);
}
.topic:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.topic h3 { font-size: clamp(18px, 1.6vw, 25px); letter-spacing: -.022em; line-height: 1.14; }
.topic p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.topic__kind { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--accent); }

/* — the essay from the editor — */
.about__story { max-width: 780px; margin-inline: auto; }
.about__story .prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.5em;
  line-height: .84;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

/* — invitation — */
.about__invite-wrap { padding: 0 var(--pad) clamp(50px, 7vw, 100px); }
.about__invite {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
  padding: clamp(36px, 5.5vw, 82px) clamp(24px, 4vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--bg-2);
  transition: background-color .5s var(--e-out);
}
.about__invite::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -190px; right: -150px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 66%);
  opacity: .17;
  pointer-events: none;
}
.about__invite h2 { font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -.028em; margin: 14px 0 16px; }
.about__invite p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 44ch; }
.about__invite-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.about__mail {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 24px);
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color .35s, border-color .35s;
}
.about__mail:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1100px) {
  .about__hero { grid-template-columns: 1fr; gap: clamp(34px, 6vw, 60px); }
  .about__portrait { max-width: 540px; }
  .disciplines { grid-template-columns: repeat(2, 1fr); }
  .disc:nth-child(3n) { border-right: 1px solid var(--line); }
  .disc:nth-child(2n) { border-right: 0; }
  .road__row { grid-template-columns: 110px 1fr; }
  .road__note { grid-column: 2; }
}

@media (max-width: 760px) {
  .about__two { grid-template-columns: 1fr; }
  .wing + .wing {
    padding-left: 0;
    padding-top: clamp(26px, 5vw, 40px);
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .disciplines { grid-template-columns: 1fr; }
  .disc, .disc:nth-child(2n), .disc:nth-child(3n) { border-right: 0; }
  .topics { grid-template-columns: 1fr; }
  .about__invite { grid-template-columns: 1fr; }
  .about__creed blockquote { max-width: 16ch; }
  .about__portrait::after { inset: 20px -14px -14px 20px; }
}

/* ── 18 REVEALS / SPLITS ───────────────────────────────────── */
[data-reveal] { will-change: transform, opacity; }

[data-reveal="up"] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s var(--e-out), transform 1.05s var(--e-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal="up"].is-in { opacity: 1; transform: none; }

[data-reveal="row"] .post__media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--e-io) var(--d, 0ms);
}
[data-reveal="row"].is-in .post__media { clip-path: inset(0 0 0 0); }
[data-reveal="row"] .post__body > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--e-out), transform .95s var(--e-out);
}
[data-reveal="row"].is-in .post__body > * { opacity: 1; transform: none; }
[data-reveal="row"].is-in .post__body > *:nth-child(1) { transition-delay: .18s; }
[data-reveal="row"].is-in .post__body > *:nth-child(2) { transition-delay: .26s; }
[data-reveal="row"].is-in .post__body > *:nth-child(3) { transition-delay: .34s; }
[data-reveal="row"].is-in .post__body > *:nth-child(4) { transition-delay: .42s; }
[data-reveal="row"].is-in .post__body > *:nth-child(5) { transition-delay: .50s; }

.has-split { display: block; }
/* a split word is one unbreakable box — see splitChars() in main.js */
.w { display: inline-block; white-space: nowrap; }
.split-line { display: block; overflow: hidden; }
.split-line > i {
  display: block;
  font-style: inherit;
  transform: translateY(102%);
  transition: transform 1s var(--e-out);
  transition-delay: calc(var(--i) * .085s + var(--d, 0ms));
}
.is-in .split-line > i, .split-ready .split-line > i { transform: none; }

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(52%) rotate(6deg);
  transition: opacity .5s var(--e-out), transform .85s var(--e-out);
  transition-delay: calc(var(--i) * .028s + var(--d, 0ms));
}
[data-reveal="chars"].is-in .char { opacity: 1; transform: none; }
.char--space { width: .28em; }

/* parallax layer injected by JS around media images */
.ph {
  position: absolute;
  inset: -8% 0;
  display: block;
  overflow: hidden;
  will-change: transform;
}
.ph > img { width: 100%; height: 100%; object-fit: cover; }

/* image fallback (offline / blocked) */
.is-broken { background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); }
.is-broken img { opacity: 0; }
.is-broken::before {
  content: "◵";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--ink-3);
  z-index: 1;
}

/* view-transition theme swipe */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2147483646; }

/* ── 19 RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1360px) {
  .hero { grid-template-columns: 5fr 4.4fr; grid-template-rows: 1.15fr .85fr; }
  .feature { grid-column: 1; grid-row: 1 / 3; }
  .card--stack { grid-column: 2; grid-row: 1; }
  .card--photo { display: none; }
  .card--split { grid-column: 2; grid-row: 2; grid-template-columns: 1fr .85fr; }
}

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .letter { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article__visual { position: relative; height: 62svh; padding: var(--gap); }
  .article__body { padding: clamp(36px, 6vw, 60px) var(--pad); max-width: 760px; margin: 0 auto; }
  .readbar { left: var(--rail); }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .topbar { display: flex; }
  .shell { margin-left: 0; padding-top: 66px; }
  .readbar { left: 0; top: 0; z-index: 75; }
  .nav__inner { padding-left: var(--pad); justify-content: flex-start; padding-top: 96px; }
  .nav__meta { grid-template-columns: repeat(2, 1fr); }
  .nav__preview { display: none; }

  .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }
  .feature { grid-column: 1; grid-row: auto; min-height: 78svh; }
  .card--stack, .card--split { grid-column: 1; grid-row: auto; }
  .card--photo { display: grid; grid-column: 1; grid-row: auto; min-height: 300px; }
  .card--stack { grid-template-rows: 220px auto; }
  .card--split { grid-template-columns: 1fr; }
  .card--split .card__media { min-height: 240px; order: -1; }

  .post { grid-template-columns: 1fr; gap: 22px; }
  .post--flip .post__media { order: 0; }
  .post__media { aspect-ratio: 16 / 11; }

  .collections a { grid-template-columns: 40px 1fr auto; }
  .collections .arrow { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 10px; }
  .feature { min-height: 74svh; padding: 22px; border-radius: 18px; }
  .feature__badge { left: 22px; top: 20px; }
  .feature__nav { right: 22px; bottom: 22px; gap: 7px; }
  .round { width: 38px; height: 38px; }
  .feature__count { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav__meta { grid-template-columns: 1fr; gap: 18px; }
  .nav__list a { font-size: clamp(34px, 11vw, 54px); }
  .authorbox { flex-direction: column; gap: 16px; }
  .footer__bottom { justify-content: flex-start; }
  .marquee__track span { font-size: 22px; }
  .article__caption { flex-direction: column; align-items: flex-start; }
}

/* ── MOTION PREFERENCES ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], [data-reveal] * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-line > i, .char { transform: none !important; opacity: 1 !important; }
  .cursor { display: none; }
}

@media print {
  .rail, .topbar, .nav, .cursor, .loader, .marquee, .readbar { display: none !important; }
  .shell { margin: 0; }
}
