/* eyangidi.com */
:root {
  --bg: #0B0B0A;
  --bg-2: #141412;
  --ink: #EEEAE2;
  --ink-2: #C8C3B9;
  --mut: #8C877D;
  --line: rgba(238, 234, 226, .14);
  --paper: #EFECE6;
  --paper-2: #E6E2DA;
  --paper-ink: #161614;
  --paper-mut: #6C685F;
  --paper-line: rgba(22, 22, 20, .14);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --g: clamp(16px, 3.4vw, 52px);
  --vh: 100svh;
  --sig-r: 2.952;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.v-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 300; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 var(--g); }
.kicker { margin: 0; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the signature, drawn from assets/img/signature.svg */
.sig { display: block; aspect-ratio: var(--sig-r); background: currentColor; -webkit-mask: url(../img/signature.svg) no-repeat center / contain; mask: url(../img/signature.svg) no-repeat center / contain; }

/* page curtain (fade between pages) */
.curtain { position: fixed; inset: 0; z-index: 400; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
html.js .curtain { opacity: 1; }
html.js.ready .curtain { opacity: 0; }
html.js.leaving .curtain { opacity: 1; transition-duration: .35s; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--g); color: var(--ink); transition: transform .7s var(--ease), color .4s; }
.nav::before { content: ''; position: absolute; inset: 0 0 -30px; z-index: -1; background: linear-gradient(rgba(11, 11, 10, .55), rgba(11, 11, 10, 0)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.nav.scrolled::before { opacity: 1; }
.nav.hide { transform: translateY(-110%); }
.nav.on-light { color: var(--paper-ink); }
.nav.on-light::before { background: linear-gradient(rgba(239, 236, 230, .85), rgba(239, 236, 230, 0)); }
.brand .sig { height: 34px; }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 36px); font-size: 14.5px; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--paper-ink); color: var(--paper); font-size: 15px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; border: 1px solid transparent; }
.btn:hover { background: #2a2a26; }
.btn.ghost { background: transparent; color: var(--paper-ink); border-color: var(--paper-line); }
.btn.ghost:hover { border-color: var(--paper-ink); }
.page-404 .btn { background: var(--ink); color: var(--bg); }

/* ---------- home: hero ---------- */
.hero { position: relative; height: var(--vh); min-height: 560px; overflow: hidden; background: var(--bg); }
.h-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.h-col { position: relative; overflow: hidden; background: var(--bg-2); }
.h-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.h-layer.on { opacity: 1; }
.h-layer img { width: 100%; height: 109%; object-fit: cover; object-position: 50% 0; transform: scale(1.08); transform-origin: 50% 40%; transition: transform 7s linear; }
.h-layer.on img { transform: scale(1); }
.h-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 10, .55) 0%, rgba(11, 11, 10, .15) 30%, rgba(11, 11, 10, .2) 55%, rgba(11, 11, 10, .85) 100%); }
.h-mark { position: absolute; left: 50%; top: 47%; width: min(76vw, 980px); margin: 0; transform: translate(-50%, -50%); color: var(--ink); filter: drop-shadow(0 2px 30px rgba(0, 0, 0, .35)); }
.h-mark .sig { width: 100%; }
.h-line { position: absolute; left: var(--g); bottom: calc(var(--g) + 66px); margin: 0; max-width: 22ch; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.01em; font-variation-settings: 'opsz' 48; }
.h-bars { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.h-bars button { display: block; width: 100%; text-align: left; padding: 10px 0 0; color: var(--mut); transition: color .4s; }
.h-bars button[aria-current="true"], .h-bars button:hover { color: var(--ink); }
.bar { display: block; height: 2px; background: rgba(238, 234, 226, .22); overflow: hidden; border-radius: 2px; }
.bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.h-bars [aria-current="true"] .bar i { animation: bar var(--dur, 6s) linear forwards; }
.h-bars.paused [aria-current="true"] .bar i { animation-play-state: paused; }
.h-bars.static [aria-current="true"] .bar i { animation: none; transform: scaleX(1); }
@keyframes bar { to { transform: scaleX(1); } }
.bar-label { display: block; margin-top: 10px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- home: intro ---------- */
.intro { padding: clamp(110px, 16vw, 220px) var(--g) clamp(90px, 12vw, 170px); max-width: 1520px; margin: 0 auto; }
.intro-text, .s-lede { margin: 0; max-width: 21em; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.3vw, 66px); line-height: 1.1; letter-spacing: -.018em; font-variation-settings: 'opsz' 72; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(64px, 9vw, 120px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { font-size: 13.5px; color: var(--mut); }
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; font-variation-settings: 'opsz' 72; }
/* what the name means, set like a dictionary entry */
.define { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 22px clamp(32px, 6vw, 110px); margin: 0 0 clamp(90px, 12vw, 170px); }
.define dt { display: flex; flex-direction: column; gap: 12px; }
.define dfn { font-style: normal; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 68px); line-height: .95; letter-spacing: -.025em; font-variation-settings: 'opsz' 72; }
.define-from { max-width: 34ch; font-size: 13.5px; line-height: 1.45; color: var(--mut); text-wrap: balance; }
.define dd { margin: 0; }
.define ol { margin: 0; padding: 0; list-style: none; counter-reset: sense; border-bottom: 1px solid var(--line); }
.define li { counter-increment: sense; display: grid; grid-template-columns: clamp(34px, 4.4vw, 64px) minmax(0, 1fr); align-items: baseline; padding: 16px 0 18px; border-top: 1px solid var(--line); font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.01em; font-variation-settings: 'opsz' 48; }
.define li::before { content: counter(sense); font-family: var(--sans); font-size: 13px; letter-spacing: .02em; color: var(--mut); font-variant-numeric: tabular-nums; }
.define li:only-child { grid-template-columns: minmax(0, 1fr); }
.define li:only-child::before { content: none; }
[data-words] .wd { opacity: .16; transition: opacity .2s; }
html:not(.js) [data-words] .wd, .no-motion [data-words] .wd { opacity: 1; }

/* ---------- home: chapters (stacked) ---------- */
.chapters { position: relative; }
.chapter { position: sticky; top: 0; height: var(--vh); min-height: 560px; overflow: hidden; background: var(--bg); }
.chapter-link { position: absolute; inset: 0; display: block; overflow: hidden; }
.chapter-inner { position: absolute; inset: 0; }
.chapter-media, .s-hero-media, .next-media { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.chapter-col, .s-hero-col, .next-col { position: relative; overflow: hidden; background: var(--bg-2); }
/* covers are cropped from the top so the watermark at the bottom of each frame stays out of the big crops */
.chapter-col img, .s-hero-col img, .next-col img { width: 100%; height: 109%; object-fit: cover; object-position: 50% 0; transition: transform 1.6s var(--ease); }
.chapter-link:hover .chapter-col img { transform: scale(1.035); }
.chapter-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 10, .35) 0%, rgba(11, 11, 10, .05) 35%, rgba(11, 11, 10, .55) 70%, rgba(11, 11, 10, .9) 100%); }
.chapter-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.chapter-copy { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: end; column-gap: 40px; }
.chapter-copy .kicker { grid-column: 1; }
.chapter-title { grid-column: 1; margin: 8px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 11vw, 190px); line-height: .9; letter-spacing: -.035em; font-variation-settings: 'opsz' 72; }
.chapter-copy .s-meta { grid-column: 1; }
.chapter-intro { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.chapter-cta { grid-column: 2; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; font-weight: 500; justify-self: start; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: gap .4s var(--ease); }
.chapter-link:hover .chapter-cta { gap: 16px; }
.chapter-cta svg, .next-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.s-meta { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- archive (light table) ---------- */
.archive, .about { background: var(--paper); color: var(--paper-ink); }
.archive { padding: clamp(100px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 7.4vw, 120px); line-height: .92; letter-spacing: -.035em; font-variation-settings: 'opsz' 72; }
.sec-sub { margin: 0 0 8px; max-width: 30ch; color: var(--paper-mut); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(36px, 5vw, 56px) 0 28px; padding: 0; list-style: none; }
.filters button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--paper-line); font-size: 14.5px; transition: background .3s, color .3s, border-color .3s; }
.filters button em { font-style: normal; color: var(--paper-mut); font-variant-numeric: tabular-nums; font-size: 13px; transition: color .3s; }
.filters button:hover { border-color: var(--paper-ink); }
.filters button[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.filters button[aria-pressed="true"] em { color: rgba(239, 236, 230, .6); }
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { position: relative; margin: 0; }
.tile button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--c); overflow: hidden; border-radius: 3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .8s; }
.tile button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .4s; }
.tile button:hover img { transform: scale(1.05); }
.tile button:hover::after, .tile button:focus-visible::after { opacity: 1; }
.tile figcaption { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; font-size: 12px; line-height: 1.3; color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }
.tile.out, .sheet:not(.all) .tile.extra { display: none; }
.sheet-more { display: flex; justify-content: center; margin: 36px 0 0; }
.sheet.all + .sheet-more { display: none; }
html.js .ph-frame img, html.js .tile img { opacity: 0; }
html.js .ph-frame img.in, html.js .tile img.in { opacity: 1; }
.ph-frame img { transition: opacity .9s var(--ease); }

/* ---------- about ---------- */
.about { padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 13vw, 180px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: end; border-top: 1px solid var(--paper-line); padding-top: clamp(48px, 7vw, 100px); }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about-copy p { max-width: 34ch; margin: 22px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; letter-spacing: -.008em; font-variation-settings: 'opsz' 36; }
.about-copy .sec-title + p { margin-top: clamp(28px, 4vw, 48px); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; }

/* ---------- footer ---------- */
.foot { padding: clamp(80px, 11vw, 150px) var(--g) 28px; background: var(--bg); color: var(--ink); }
.foot-mark { width: min(86vw, 1200px); margin: 0 auto; }
.foot-mark .sig { width: 100%; }
.foot-def { margin: clamp(22px, 2.8vw, 38px) 0 0; text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; color: var(--ink-2); font-variation-settings: 'opsz' 24; }
.foot-def span { color: var(--ink); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; margin-top: clamp(56px, 8vw, 110px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mut); }
.foot-row p { margin: 0; }
.foot-row ul { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
.foot-row a { color: var(--ink-2); transition: color .3s; }
.foot-row a:hover { color: var(--ink); }

/* ---------- story page ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.s-hero { position: relative; height: var(--vh); min-height: 560px; overflow: hidden; }
.s-hero-shade, .next-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 10, .45) 0%, rgba(11, 11, 10, 0) 30%, rgba(11, 11, 10, .4) 65%, rgba(11, 11, 10, .92) 100%); }
.s-hero-copy { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); }
.s-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(72px, 15vw, 260px); line-height: .86; letter-spacing: -.04em; font-variation-settings: 'opsz' 72; }
.s-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 40px clamp(40px, 8vw, 140px); align-items: start; max-width: 1520px; margin: 0 auto; padding: clamp(100px, 13vw, 190px) var(--g) clamp(40px, 6vw, 80px); }
.toc { padding-top: 14px; border-top: 1px solid var(--line); }
.toc-label { margin: 0 0 10px; font-size: 13px; color: var(--mut); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); transition: color .3s, padding .4s var(--ease); }
.toc a:hover { color: var(--ink); padding-left: 6px; }
.toc em { font-style: normal; color: var(--mut); font-variant-numeric: tabular-nums; }

.seq { padding-bottom: clamp(80px, 10vw, 150px); }
.beat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 24px; margin: clamp(110px, 14vw, 210px) var(--g) clamp(40px, 5vw, 70px); padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.beat-date { grid-column: 1 / -1; font-size: 13.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.beat-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.6vw, 92px); line-height: .98; letter-spacing: -.03em; font-variation-settings: 'opsz' 72; }
.beat-count { font-size: 13.5px; color: var(--mut); padding-bottom: 8px; }

.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(10px, 1.4vw, 22px); align-items: end; margin: clamp(56px, 7vw, 112px) 0; padding: 0 var(--g); }
.ph { position: relative; margin: 0; min-width: 0; }
.ph-frame { display: block; width: 100%; aspect-ratio: var(--r); overflow: hidden; background: var(--c); border-radius: 2px; cursor: zoom-in; }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; }
.ph-cap { margin-top: 10px; font-size: 12.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.side { align-self: end; padding-bottom: 32px; }
.side p { margin: 0; }
.side-time { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; font-variation-settings: 'opsz' 36; }
.side-gear { margin-top: 8px !important; font-size: 13px; color: var(--mut); line-height: 1.6; }

/* portrait frames never taller than the screen */
.solo-l .ph, .solo-r .ph { width: min(100%, calc(86svh * var(--r))); }
.solo-l .ph { grid-column: 2 / span 6; justify-self: end; }
.solo-l .side { grid-column: 9 / span 3; }
.solo-r .ph { grid-column: 6 / span 6; grid-row: 1; justify-self: start; }
.solo-r .side { grid-column: 2 / span 3; grid-row: 1; text-align: right; }
.pair .ph { grid-column: span 6; width: min(100%, calc(84svh * var(--r))); }
.pair .ph:first-child { justify-self: end; }
.pair-o { align-items: start; }
.pair-o .ph:first-child { grid-column: 1 / span 5; }
.pair-o .ph:last-child { grid-column: 7 / span 5; margin-top: 22vh; }
.trio .ph { grid-column: span 4; }
.trio-s { align-items: start; }
.trio-s .ph { grid-column: span 4; }
.trio-s .ph:nth-child(2) { margin-top: 14vh; }
.trio-s .ph:nth-child(3) { margin-top: 5vh; }
.wide .ph { grid-column: 1 / -1; width: min(100%, calc(88svh * var(--r))); justify-self: center; }

/* next story */
.next { padding: 0 0 clamp(40px, 6vw, 80px); }
.next-link { position: relative; display: block; height: 86svh; min-height: 480px; overflow: hidden; }
.next-link:hover .next-col img { transform: scale(1.04); }
.next-copy { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); }
.next-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 12vw, 210px); line-height: .88; letter-spacing: -.04em; font-variation-settings: 'opsz' 72; }
.next-back { margin: 28px var(--g) 0; font-size: 14.5px; }
.next-back a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s; }
.next-back a:hover { border-color: var(--ink); }

/* 404 */
.lost { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--g) 60px; }
.lost p:last-child { margin-top: 40px; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; background: rgba(8, 8, 7, .97); color: var(--ink); display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .35s var(--ease); touch-action: pan-y; }
.viewer.open { opacity: 1; }
.v-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 64px 88px 12px; min-height: 0; }
.v-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; transition: opacity .3s, transform .45s var(--ease); }
.v-img.loading { opacity: .25; }
.v-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(238, 234, 226, .08); transition: background .3s; }
.v-btn:hover { background: rgba(238, 234, 226, .18); }
.v-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.v-close { top: 14px; right: 14px; }
.v-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.v-next { right: 18px; top: 50%; transform: translateY(-50%); }
.v-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 24px 22px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v-count { color: var(--ink); }
.v-title { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.v-meta { color: var(--mut); }
.v-print { margin-left: auto; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.v-print:hover { border-color: var(--ink); }
.about-copy a.inline { border-bottom: 1px solid var(--paper-line); transition: border-color .3s; }
.about-copy a.inline:hover { border-color: var(--paper-ink); }

/* ---------- mascot (assets/js/mascot.js) ---------- */
/* same character, size and corner as gidibabs.com */
.mascot { position: fixed; right: 18px; bottom: 14px; z-index: 60; display: block; width: 116px; height: 116px; padding: 0; border: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: opacity .4s; }
.mascot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 50%; }
.mascot-squash { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 78%; }
.mascot-layer { position: absolute; inset: 0; background-size: 300% 300%; background-repeat: no-repeat; }
html.v-open .mascot { visibility: hidden; }
/* keep text in the bottom-right corner clear of it */
.h-bars, .chapter-copy, .foot-row { margin-right: 120px; }
@media (max-width: 720px) {
  .mascot { width: 84px; height: 84px; right: 8px; bottom: 8px; }
  .h-bars { margin-right: 76px; }
  .chapter-copy { margin-right: 0; }
  .chapter-cta { margin-top: 28px; }
  .foot-row { margin-right: 0; padding-bottom: 80px; }
}

/* ---------- motion helpers ---------- */
html.js .reveal-up { opacity: 0; transform: translateY(24px); }
.no-motion .reveal-up { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .chapter-copy { grid-template-columns: 1fr; }
  .chapter-intro { grid-column: 1; grid-row: auto; margin-top: 16px; max-width: 34rem; }
  .chapter-cta { grid-column: 1; }
}
@media (max-width: 899px) {
  .nav { padding: 14px var(--g); }
  .brand .sig { height: 28px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .h-cols, .chapter-media, .s-hero-media, .next-media { grid-template-columns: 1fr; }
  .h-col:not(:nth-child(2)), .chapter-col:not(:nth-child(2)), .s-hero-col:not(:nth-child(2)), .next-col:not(:nth-child(2)) { display: none; }
  .h-mark { width: 84vw; top: 42%; }
  .h-line { bottom: calc(var(--g) + 64px); font-size: 22px; }
  .h-bars { gap: 6px; }
  .bar-label { font-size: 11.5px; }
  .h-bars li:not(:has([aria-current="true"])) .bar-label { opacity: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .define { grid-template-columns: 1fr; }
  .s-intro { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .sheet { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .tile figcaption { display: none; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 44px 0; padding: 0 var(--g); align-items: start; }
  .row .ph { grid-column: 1 / -1 !important; width: 100% !important; margin: 0 !important; justify-self: stretch !important; grid-row: auto !important; }
  .row.pair .ph, .row.pair-o .ph, .row.trio .ph:not(:first-child), .row.trio-s .ph:not(:first-child) { grid-column: span 1 !important; }
  .row.pair-o .ph:last-child, .row.trio-s .ph:nth-child(3) { margin-top: 48px !important; }
  .side { grid-column: 1 / -1 !important; grid-row: auto !important; text-align: left !important; padding: 0; }
  .side-time { font-size: 18px; }
  .solo-l .ph-cap, .solo-r .ph-cap { display: none; }
  .v-stage { padding: 60px 10px 10px; }
  .v-prev, .v-next { top: auto; bottom: 74px; transform: none; }
  .v-info { padding: 12px 18px 20px; }
  .v-print { margin-left: 0; }
}
@media (max-width: 520px) {
  .h-bars { grid-template-columns: repeat(var(--n, 6), 1fr); }
  .chapter-intro { font-size: 15px; }
  .chapter-title { font-size: 72px; }
  .s-title { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-layer, .h-layer img { transition: opacity .6s !important; transform: none !important; }
  .curtain { display: none; }
}
