/* Adith Sagar: every section is a room with its own colour. */
:root {
  --ink: #121a2f;
  --paper: #e7e8e2;
  --marigold: #f2a20c;
  --moss: #0d1f16;
  --plum: #2a1838;
  --plum-2: #463257;
  --muted-on-dark: rgba(231, 232, 226, .68);
  --muted-on-light: rgba(18, 26, 47, .7);
  --sans: "Anek Malayalam", "Noto Sans Malayalam", "Segoe UI", system-ui, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --pad: clamp(18px, 4vw, 56px);
  --room-y: clamp(80px, 11vw, 160px);
  --tabs-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 12px; }

/* ---------- tabs ---------- */
.tabs {
  position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: 18px;
  min-height: var(--tabs-h); padding: 8px var(--pad); color: var(--paper);
  background: linear-gradient(rgba(8, 10, 22, .6), rgba(8, 10, 22, 0)); transition: background-color .35s ease;
}
.tabs.is-solid { background: rgba(18, 26, 47, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tabs__name { font-weight: 700; font-stretch: 80%; font-size: 22px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.tabs__nav { display: flex; gap: 2px; }
.tabs__nav a { text-decoration: none; font-size: 16px; padding: 7px 13px; border-radius: 999px; color: rgba(231,232,226,.78); white-space: nowrap; }
.tabs__nav a:hover { color: var(--paper); background: rgba(231,232,226,.1); }
.tabs__nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.tabs__sound { appearance: none; border: 0; background: var(--marigold); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 15px; cursor: pointer; white-space: nowrap; }
@media (max-width: 820px) {
  :root { --tabs-h: 96px; }
  .tabs { flex-wrap: wrap; row-gap: 4px; }
  .tabs__nav { order: 3; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 2px; overflow-x: auto; scrollbar-width: none; }
  .tabs__nav::-webkit-scrollbar { display: none; }
}

.view { display: none; }
.view.is-active { display: block; }

/* ---------- shared ---------- */
.room { padding: var(--room-y) var(--pad); position: relative; }
.room--ink { background: var(--ink); color: var(--paper); }
.room--paper { background: var(--paper); color: var(--ink); }
.room--black { background: #000; color: var(--paper); }
.room--moss { background: var(--moss); color: var(--paper); }
.room__head { max-width: 1400px; margin-bottom: clamp(32px, 5vw, 64px); }
.room__title { margin: 0; font-family: var(--sans); font-weight: 700; font-stretch: 75%; font-size: clamp(60px, 10.5vw, 172px); line-height: .86; letter-spacing: -.012em; }
.room__lede { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; max-width: 38em; margin: 22px 0 0; }
.room--black .room__lede, .room--moss .room__lede { color: var(--muted-on-dark); }
.room--paper .room__lede { color: var(--muted-on-light); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: #000; color: var(--paper); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 2s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img, .peek img { width: 100%; height: 100%; object-fit: cover; }
.peek { position: absolute; z-index: 2; overflow: hidden; background: #000; will-change: clip-path; }
.peek--left   { left: 0; top: 0; bottom: 0; width: 46vw;  clip-path: inset(0 100% 0 0); }
.peek--right  { right: 0; top: 0; bottom: 0; width: 46vw; clip-path: inset(0 0 0 100%); }
.peek--top    { top: 0; left: 0; right: 0; height: 54%;   clip-path: inset(0 0 100% 0); }
.peek--bottom { bottom: 0; left: 0; right: 0; height: 54%; clip-path: inset(100% 0 0 0); }
.hero.is-peeking { cursor: pointer; }
.hero__scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,0) 42%), linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 24%);
  box-shadow: inset 0 0 180px rgba(0,0,0,.4); }
.hero__id { position: absolute; z-index: 4; left: var(--pad); bottom: var(--pad); max-width: min(38vw, 600px); }
.hero__name { margin: 0; font-weight: 700; font-stretch: 75%; line-height: .84; letter-spacing: -.012em; font-size: clamp(56px, 7.4vw, 124px); }
.hero__tag { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; color: rgba(231,232,226,.92); }
.hero__edges { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.edge {
  --w: 75; --wt: 520; position: absolute; pointer-events: auto; appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--paper); font-size: clamp(24px, 2.5vw, 40px); line-height: 1; padding: 10px;
  font-variation-settings: "wdth" var(--w), "wght" var(--wt); text-shadow: 0 1px 22px rgba(0,0,0,.5); transition: color .3s ease;
}
.edge.is-near { color: var(--marigold); }
.edge--left   { left: calc(var(--pad) - 10px); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }
.edge--right  { right: calc(var(--pad) - 10px); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); }
.edge--top    { top: calc(var(--tabs-h) + 12px); left: 50%; transform: translateX(-50%); }
.edge--bottom { bottom: calc(var(--pad) - 10px); left: 50%; transform: translateX(-50%); }
.hero__hint { position: absolute; z-index: 4; right: var(--pad); bottom: var(--pad); margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(231,232,226,.78); max-width: 16em; text-align: right; }
@media (hover: none), (pointer: coarse), (max-width: 760px) { .hero__hint, .peek { display: none; } }
@media (max-width: 760px) {
  .hero__id { left: var(--pad); right: var(--pad); bottom: 96px; max-width: none; }
  .hero__edges { inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 6px; padding: 0 var(--pad) 28px; pointer-events: auto; }
  .edge, .edge--left, .edge--right, .edge--top, .edge--bottom { position: static; transform: none; writing-mode: horizontal-tb; font-size: 21px; padding: 8px 0; border-bottom: 1px solid rgba(231,232,226,.45); }
}

/* ---------- through my eyes ---------- */
.eyes { overflow-x: clip; position: relative; color: var(--eink, #2a1430); transition: color .9s ease; }
.eyes__bg { position: sticky; top: 0; height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh; background: var(--ebg, #edc7da); transition: background-color 1.1s ease; z-index: 0; }
.eyes__in { position: relative; z-index: 1; }
.eyes__head { padding: var(--room-y) var(--pad) 0; max-width: 1400px; }
.eyes__lede { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; max-width: 36em; margin: 22px 0 0; opacity: .82; }
.chapter { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 120px); }
.chapter__head { padding: 0 var(--pad); margin-bottom: clamp(48px, 7vw, 96px); }
.chapter__title { margin: 0; font-variation-settings: "wdth" 125, "wght" 800; font-size: clamp(42px, 6.2vw, 104px); line-height: .92; letter-spacing: -.015em; }
.chapter__line { display: inline-block; margin: 14px 0 0; font-family: var(--hand); font-size: clamp(20px, 1.9vw, 30px); transform: rotate(-1.5deg); opacity: .9; }

/* polaroids */
.pwall { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0 clamp(26px, 5vw, 96px); align-items: start; padding: 0 var(--pad); }
.pcol { position: relative; display: flex; flex-direction: column; }
.pcol:nth-child(2) { padding-top: clamp(60px, 9vw, 150px); }
.pcol:nth-child(3) { padding-top: clamp(20px, 3vw, 50px); }
.pw { margin: 0 0 var(--mb, 80px); position: relative; will-change: transform; }
.pw.is-top { z-index: 20; }
.pw:hover { z-index: 10; }
.pol {
  --r: var(--r0, 0deg); --ey: -60px; --er: 9deg; --s: 1.1; --dx: 0px; --dy: 0px;
  position: relative; display: block; width: var(--pw, 100%); margin-left: var(--ml, 0%); appearance: none; border: 0; cursor: pointer;
  background: #fbfaf5; padding: clamp(9px, 1.1vw, 16px) clamp(9px, 1.1vw, 16px) 0; text-align: center; user-select: none; -webkit-user-select: none;
  box-shadow: 0 18px 36px rgba(30, 10, 25, .22), 0 2px 5px rgba(30, 10, 25, .14);
  transform: translate(var(--dx), calc(var(--dy) + var(--ey))) rotate(calc(var(--r) + var(--er))) scale(var(--s));
  opacity: 0; transition: transform .8s cubic-bezier(.2, .9, .25, 1.2), opacity .5s ease, box-shadow .4s ease;
}
.pol.is-in { --ey: 0px; --er: 0deg; --s: 1; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .pol.is-in:hover { --r: 0deg; --s: 1.045; box-shadow: 0 34px 60px rgba(30, 10, 25, .3), 0 4px 10px rgba(30, 10, 25, .16); }
}
.pol.is-drag { transition: none; cursor: grabbing; --s: 1.06; box-shadow: 0 40px 70px rgba(30, 10, 25, .34); }
.pol__img { display: block; background: var(--c, #ccc); }
.pol__img img { width: 100%; height: auto; pointer-events: none; }
.pol__cap { display: block; font-family: var(--hand); font-size: clamp(16px, 1.55vw, 25px); line-height: 1.15; color: #2b2230; padding: .7em .3em .85em; }
.pol.has-tape::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* stacked cards */
.stack { padding: 0 var(--pad) 6vh; }
.card { position: sticky; top: calc(var(--tabs-h) + 18px + var(--i) * 14px); height: min(76vh, 740px); margin-bottom: 9vh; }
.card:last-child { margin-bottom: 0; }
.card__in { position: relative; height: 100%; display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 28px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px rgba(0,0,0,.28); transform-origin: 50% 0; }
.card__in::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.card__img { appearance: none; border: 0; padding: 0; margin: 0; background: #000; cursor: zoom-in; overflow: hidden; min-height: 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__panel { background: var(--panel); color: #23130f; padding: clamp(26px, 4vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
.card__note { font-family: var(--hand); font-size: clamp(18px, 1.5vw, 24px); margin: 0 0 auto; transform: rotate(-2deg); transform-origin: left; opacity: .75; }
.card__title { margin: 0; font-variation-settings: "wdth" 125, "wght" 800; font-size: clamp(34px, 4.4vw, 80px); line-height: .95; letter-spacing: -.015em; }
.card__line { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; max-width: 24em; }
@media (max-width: 820px) {
  .card { height: 74vh; height: 74svh; }
  .card__in { grid-template-columns: 1fr; grid-template-rows: 58% 42%; border-radius: 22px; }
  .card__panel { justify-content: flex-start; }
  .card__note { margin-bottom: 10px; }
}

/* ---------- imagined ---------- */
.im__title { margin-bottom: clamp(28px, 4vw, 56px); }
.im__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.im__lead { grid-column: 1 / span 8; margin-left: calc(-1 * var(--pad)); appearance: none; border: 0; padding: 0; background: #000; cursor: zoom-in; }
.im__lead img { width: 100%; height: auto; }
.im__lede { grid-column: 9 / span 4; margin: 0; }
.strip { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 18px; scrollbar-width: thin; scrollbar-color: rgba(18,26,47,.35) transparent; }
.strip figure { margin: 0; flex: none; }
.strip button { appearance: none; border: 0; padding: 0; background: var(--c); cursor: zoom-in; display: block; }
.strip img { height: clamp(240px, 40vh, 440px); width: auto; }
.strip figcaption { margin-top: 10px; font-family: var(--hand); font-size: 19px; color: var(--muted-on-light); }
@media (max-width: 900px) { .im__lead { grid-column: 1 / -1; margin-right: calc(-1 * var(--pad)); } .im__lede { grid-column: 1 / -1; } }

/* ---------- a smaller world ---------- */
.small .stack { padding: 0 0 4vh; }
.small__quote { margin: 26px 0 0; max-width: 30em; font-family: var(--hand); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.4; color: rgba(231,232,226,.88); transform: rotate(-1deg); }

/* ---------- stories ---------- */
.story { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; margin-bottom: clamp(80px, 12vw, 160px); }
.story__img { grid-column: 1 / span 7; appearance: none; border: 0; padding: 0; background: var(--c); cursor: zoom-in; }
.story__img img { width: 100%; height: auto; }
.story__text { grid-column: 8 / span 5; }
.story--flip .story__img { grid-column: 6 / span 7; order: 2; }
.story--flip .story__text { grid-column: 1 / span 5; order: 1; }
.story__title { margin: 0; font-weight: 650; font-stretch: 85%; font-size: clamp(34px, 3.6vw, 56px); line-height: .95; }
.story__place { margin: 10px 0 0; font-family: var(--hand); font-size: 20px; color: var(--muted-on-light); }
.story__ml { margin: 24px 0 0; font-family: var(--sans); font-stretch: 100%; font-weight: 400; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.75; }
.story__en p { margin: 18px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; max-width: 34em; }
.story__ml + .story__en p:first-child { color: var(--muted-on-light); }
@media (max-width: 900px) {
  .story__img, .story--flip .story__img { grid-column: 1 / -1; order: 0; }
  .story__text, .story--flip .story__text { grid-column: 1 / -1; order: 1; }
}

/* scroll-driven tales */
.tale { position: relative; height: var(--h, 440vh); margin: 0 calc(-1 * var(--pad)) clamp(80px, 12vw, 160px); background: var(--tbg, #0b0806); color: var(--paper); }
.tale__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: calc(var(--tabs-h) + 16px) var(--pad) 24px; }
.tale__title { position: absolute; left: var(--pad); top: calc(var(--tabs-h) + 18px); margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); color: rgba(231,232,226,.7); }
.tale__frame { position: relative; flex: none; width: min(92vw, 1100px, calc((100svh - var(--tabs-h) - 250px) * var(--ar))); aspect-ratio: var(--ar); overflow: hidden; background: #000; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tale__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; will-change: transform; }
.tale__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.tale__beats { position: relative; flex: none; width: min(92vw, 860px); height: 140px; text-align: center; }
.beat { position: absolute; inset: 0; margin: 0; opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.beat__ml { font-family: var(--sans); font-stretch: 100%; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.5; }
.beat__en { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: rgba(231,232,226,.8); }
.tale__hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; font-family: var(--hand); font-size: 16px; color: rgba(231,232,226,.5); }
.tale--static { height: auto; }
.tale--static .tale__pin { position: static; height: auto; padding-top: 80px; }
.tale--static .tale__title { position: static; }
.tale--static .tale__beats { height: auto; }
.tale--static .beat { position: static; opacity: 1; margin-bottom: 16px; }
.tale--static .tale__hint { display: none; }

/* ---------- in the dark ---------- */
.dark { padding-left: 0; padding-right: 0; }
.dark__intro { padding: 0 var(--pad); max-width: 1100px; }
.frame { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 6vh var(--pad); margin: 0; }
.frame img { max-height: 74vh; max-height: 74svh; width: auto; max-width: min(92vw, 1100px); opacity: 0; transition: opacity 1.8s ease; cursor: zoom-in; }
.frame figcaption { text-align: center; max-width: 34em; }
.frame__word { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(231,232,226,.55); opacity: 0; transition: opacity 1.4s ease .9s; }
.frame__line { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 300; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(231,232,226,.84); opacity: 0; transition: opacity 1.4s ease 1.3s; }
.frame.is-in img, .frame.is-in .frame__word, .frame.is-in .frame__line { opacity: 1; }

/* ---------- footer of the frames tab ---------- */
.foot { padding-bottom: clamp(100px, 10vw, 140px); }
.foot__big { margin: 0; font-weight: 700; font-stretch: 75%; font-size: clamp(44px, 7vw, 112px); line-height: .9; }
.foot__line { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 2vw, 30px); color: var(--muted-on-dark); }
.site-foot { background: var(--ink); color: rgba(231,232,226,.5); padding: 22px var(--pad) 90px; font-size: 14px; border-top: 1px solid rgba(231,232,226,.1); }
.site-foot p { margin: 0; }

/* ---------- listen ---------- */
.listen { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; color: var(--paper); }
.listen__bg, .listen__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.listen__bg img { object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.listen__bg img.is-on { opacity: 1; }
.listen__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2) 55%, rgba(0,0,0,.25)); }
.listen__panel { position: relative; z-index: 2; padding: calc(var(--tabs-h) + 60px) var(--pad) var(--pad); max-width: 820px; }
.listen__lede { font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; max-width: 32em; margin: 18px 0 28px; color: rgba(231,232,226,.86); }
.listen__places { display: flex; gap: 22px; margin-bottom: 22px; }
.listen__places button { appearance: none; background: none; border: 0; padding: 0 0 4px; cursor: pointer; font-size: clamp(28px, 3vw, 44px); font-weight: 600; font-stretch: 80%; color: rgba(231,232,226,.55); border-bottom: 2px solid transparent; }
.listen__places button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--marigold); }
.listen__places button:hover { color: var(--paper); }
.listen__sounds { display: flex; flex-wrap: wrap; gap: 10px; }
.snd { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(231,232,226,.4); background: rgba(0,0,0,.25); color: var(--paper); border-radius: 999px; padding: 10px 18px 10px 14px; font-size: 16px; }
.snd::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.snd[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.snd[aria-pressed="true"]::before { background: var(--marigold); border-color: var(--marigold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); } }
.listen__photo { margin: 22px 0 0; font-family: var(--hand); font-size: 17px; color: rgba(231,232,226,.6); }

/* ---------- coming soon ---------- */
.soon { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: calc(var(--tabs-h) + 60px) var(--pad) 80px; }
.soon--blog { background: var(--marigold); color: var(--ink); }
.soon--movies { background: var(--plum); color: var(--paper); }
.soon__title { margin: 0; font-variation-settings: "wdth" 125, "wght" 800; font-size: clamp(80px, 17vw, 280px); line-height: .85; letter-spacing: -.02em; }
.soon__line { margin: 26px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.5; max-width: 26em; }
.soon__tag { margin: 34px 0 0; font-family: var(--hand); font-size: clamp(24px, 2.4vw, 34px); background: #fbfaf5; color: #2b2230; padding: 6px 22px 4px; transform: rotate(-3deg); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.soon__back { margin-top: 48px; font-size: 17px; text-underline-offset: 5px; }

/* ---------- books that stayed with me ---------- */
.books { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: calc(var(--tabs-h) + 56px) var(--pad) 140px; color: #f6ead8; background: #3a2414 url("images/books/wood-back.jpg") repeat center top / 800px auto; }
.books::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 205, 140, .22), rgba(0,0,0,0) 70%), linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,.05) 28%, rgba(0,0,0,.4)); }
.books > * { position: relative; }
.books__head { max-width: 1200px; margin: 0 auto clamp(60px, 7vw, 96px); text-align: center; }
.books .room__title { font-size: clamp(52px, 8vw, 132px); text-shadow: 0 4px 34px rgba(0,0,0,.5); }
.books__hint { display: inline-block; margin: 18px 0 0; font-family: var(--hand); font-size: clamp(20px, 1.8vw, 26px); color: #f2c98a; transform: rotate(-1.5deg); }
.shelves { max-width: 1240px; margin: 0 auto; }
.shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(22px, 3.6vw, 60px); padding: 0 clamp(14px, 3vw, 44px); margin-bottom: clamp(90px, 9vw, 124px); }
.shelf::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0)); }
.shelf::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -24px; height: 24px; border-radius: 2px; background: #8a5a2e url("images/books/wood-plank.jpg") repeat-x center / auto 100%; box-shadow: 0 24px 32px rgba(0,0,0,.5), 0 5px 0 rgba(30,15,6,.55), inset 0 2px 0 rgba(255,228,186,.4), inset 0 -4px 6px rgba(0,0,0,.3); }
.book {
  --s: 1; --tilt: 0deg; position: relative; z-index: 1; flex: none; appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
  width: calc(clamp(108px, 11.5vw, 178px) * var(--s)); aspect-ratio: var(--ar, .66);
  transform: rotate(var(--tilt)); transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 10px rgba(0,0,0,.5));
  transition: transform .5s cubic-bezier(.2, .9, .3, 1.2), filter .35s ease;
}
.book:hover, .book:focus-visible { transform: translateY(-8px) scale(1.08); filter: drop-shadow(0 32px 26px rgba(0,0,0,.6)); z-index: 3; }
.book.is-away { visibility: hidden; }
.book::before { content: ""; position: absolute; top: 2%; bottom: 1.2%; right: -5px; width: 5px; border-radius: 0 2px 2px 0; background: repeating-linear-gradient(to bottom, #f3ecdc 0 1px, #d6ccb6 1px 2px); }
.book::after, .flip__front::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0,0,0,.38) 0, rgba(0,0,0,.06) 3.5%, rgba(255,255,255,.24) 5%, rgba(255,255,255,0) 9%), linear-gradient(115deg, rgba(255,255,255,.14), rgba(255,255,255,0) 42%); }
.book::after { border-radius: 2px 4px 4px 2px; }
.book__face, .book__cover { position: absolute; inset: 0; border-radius: 2px 4px 4px 2px; overflow: hidden; }
.book__cover { width: 100%; height: 100%; object-fit: cover; }
.book__face { display: flex; flex-direction: column; justify-content: space-between; text-align: center; padding: 18% 12% 13% 17%; background-color: var(--bc); color: var(--bt); }
.book__title { font-family: var(--serif); font-size: calc(clamp(13px, 1.15vw, 18px) * var(--s)); line-height: 1.15; }
.book__author { font-family: var(--serif); font-style: italic; font-size: calc(clamp(10.5px, .85vw, 13px) * var(--s)); opacity: .85; }

/* the open book */
.reader { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: #2a1d14; --accent: #7a2b10; }
.reader::backdrop { background: transparent; }
.reader__shade { position: absolute; inset: 0; opacity: 0; background: color-mix(in srgb, var(--accent) 28%, #0b0604); transition: opacity .5s ease; }
.reader.is-open .reader__shade { opacity: .92; }
.spread { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 2); height: var(--ph); transform: translate(-50%, calc(-50% - 22px)); perspective: 2600px; }
.page { position: absolute; top: 0; width: var(--pw); height: var(--ph); }
.page--right { left: var(--pw); opacity: 0; border-radius: 0 6px 6px 0; overflow: hidden; background: linear-gradient(90deg, rgba(60,35,15,.2), rgba(60,35,15,0) 8%), linear-gradient(#fbf6ec, #f5eedf); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.page--right::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none; background: linear-gradient(to top, #f5eedf, rgba(245,238,223,0)); }
.page__in { height: 100%; overflow: auto; padding: clamp(26px, 3.2vw, 44px) clamp(22px, 2.8vw, 40px) 52px clamp(30px, 3.4vw, 50px); scrollbar-width: thin; scrollbar-color: rgba(42,29,20,.3) transparent; }
.page__kicker { margin: 0 0 12px; font-family: var(--hand); font-size: 18px; color: var(--accent); transform: rotate(-1.5deg); transform-origin: left; }
.page__title { margin: 0; font-weight: 650; font-stretch: 88%; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.02; color: #23170f; }
.page__author { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); }
.page__rule { width: 46px; height: 2px; margin: 18px 0 2px; border: 0; background: var(--accent); opacity: .7; }
.page__text p { margin: 14px 0 0; font-family: var(--serif); font-weight: 300; font-size: 16.5px; line-height: 1.66; color: #2a1d14; }
.page__text p:first-child::first-letter { float: left; font-weight: 400; font-size: 3.3em; line-height: .8; margin: .07em .09em 0 0; color: var(--accent); }
.page__text p.is-quote { font-style: italic; font-weight: 400; font-size: 18px; padding-left: 14px; border-left: 3px solid var(--accent); }
.flip { position: absolute; top: 0; left: var(--pw); z-index: 2; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transform-origin: 0 50%; }
.flip__face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__front { border-radius: 2px 6px 6px 2px; background: #222; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; }
.flip__back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; display: grid; place-items: center; background: linear-gradient(270deg, rgba(60,35,15,.22), rgba(60,35,15,0) 9%), linear-gradient(#f6efe1, #efe5d1); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.plate { width: 60%; text-align: center; }
.plate img { width: 100%; height: auto; border: 7px solid #fffdf8; box-shadow: 0 12px 26px rgba(60,40,20,.28); transform: rotate(-2.5deg); }
.plate__note { margin: 24px 0 0; font-family: var(--hand); font-size: clamp(18px, 1.6vw, 22px); color: var(--accent); transform: rotate(-2deg); }
.reader__ctl { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 10px; opacity: 0; transition: opacity .35s ease; }
.reader.is-open .reader__ctl { opacity: 1; transition-delay: .5s; }
.reader__ctl button { appearance: none; border: 1px solid rgba(246,234,216,.38); background: rgba(0,0,0,.3); color: #f6ead8; border-radius: 999px; padding: 9px 16px; font-size: 15px; cursor: pointer; }
.reader__ctl button:hover { border-color: #f6ead8; }
.reader.is-narrow .spread { left: 50%; top: 14px; bottom: 74px; width: min(92vw, 520px); height: auto; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; perspective: none; }
.reader.is-narrow .flip { order: -1; position: relative; left: auto; top: auto; flex: none; width: auto; height: 30vh; height: 30svh; aspect-ratio: var(--ar); }
.reader.is-narrow .flip__back { display: none; }
.reader.is-narrow .page--right { position: relative; left: auto; top: auto; flex: 1; width: 100%; height: auto; min-height: 0; margin-top: 16px; border-radius: 12px; }
.reader.is-narrow .reader__ctl button { padding: 8px 12px; font-size: 14px; }

.books__note { margin: clamp(30px, 4vw, 50px) auto 0; text-align: center; font-family: var(--hand); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.35; color: #f2d3a2; transform: rotate(-1.5deg); max-width: 22em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.reader__ctl button { max-width: min(30vw, 300px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- films I keep coming back to ---------- */
.movies { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: calc(var(--tabs-h) + 110px) 0 210px; color: #f3e6d0;
  background: radial-gradient(ellipse 85% 60% at 50% 0%, #4d0e16 0%, #1c070a 55%, #0a0405 100%); }
.movies__curtain { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--tabs-h) + 64px); border-bottom: 5px solid #b8862e;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 60%),
              repeating-linear-gradient(90deg, #4d0b13 0 14px, #7e1723 14px 30px, #5e0f18 30px 44px, #3a080e 44px 56px);
  box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 -6px 0 rgba(0,0,0,.25); }
.movies__head { position: relative; text-align: center; padding: 0 var(--pad); margin-bottom: clamp(50px, 6vw, 84px); }
.movies__title { margin: 0; font-variation-settings: "wdth" 125, "wght" 800; font-size: clamp(38px, 6.2vw, 100px); line-height: .96; letter-spacing: -.01em; text-shadow: 0 0 48px rgba(255, 190, 120, .28); }
.movies__hint { display: inline-block; margin: 18px 0 0; font-family: var(--hand); font-size: clamp(20px, 1.8vw, 26px); color: #e9b86a; transform: rotate(-1.5deg); }
.reels { position: relative; }
.reel { position: relative; overflow: hidden; background: #0d0b0a; padding: 34px 0; margin-bottom: clamp(44px, 5vw, 70px); transform: rotate(-1.2deg); box-shadow: 0 24px 60px rgba(0,0,0,.65); }
.reel--rev { transform: rotate(1deg); }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(240, 232, 214, .82) 10px 22px, transparent 22px 32px); }
.reel::before { top: 9px; } .reel::after { bottom: 9px; }
.reel__track { display: flex; width: max-content; animation: reel var(--dur, 70s) linear infinite; }
.reel--rev .reel__track { animation-direction: reverse; }
.reel:hover .reel__track, .reel:focus-within .reel__track, .movies.is-paused .reel__track { animation-play-state: paused; }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.poster { --glow: rgba(255, 210, 150, .34); position: relative; flex: none; appearance: none; border: 0; padding: 0; margin: 0 18px 0 0; background: #000; cursor: pointer; height: clamp(200px, 27vh, 300px); aspect-ratio: var(--par, .7); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), box-shadow .4s ease; }
.poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8) saturate(.9); transition: filter .4s ease; }
.poster:hover, .poster:focus-visible { transform: translateY(-4px) scale(1.07); z-index: 3; box-shadow: 0 0 0 2px rgba(255, 220, 160, .7), 0 0 60px var(--glow), 0 18px 40px rgba(0,0,0,.6); }
.poster:hover img, .poster:focus-visible img { filter: brightness(1.05) saturate(1.05); }
.poster.is-away { visibility: hidden; }
.movies__seats { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none;
  background: radial-gradient(ellipse 31px 44px at 50% 100%, #050203 97%, transparent 100%) 0 100% / 76px 74px repeat-x,
              radial-gradient(ellipse 31px 44px at 50% 100%, #0d0507 97%, transparent 100%) 38px 62% / 76px 64px repeat-x,
              linear-gradient(to top, #050203 0, rgba(5,2,3,0) 100%); }

/* the big screen */
.cinema { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; color: #f3e6d0; --glow: rgba(255, 210, 150, .34); }
.cinema::backdrop { background: transparent; }
.cinema__dark { position: absolute; inset: 0; background: #050304; opacity: 0; transition: opacity .6s ease; }
.cinema.is-open .cinema__dark { opacity: .96; }
.cinema__beam { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease .25s;
  background: conic-gradient(from -24deg at 50% 112%, transparent 0deg, rgba(255, 236, 200, .07) 12deg, rgba(255, 236, 200, .13) 24deg, rgba(255, 236, 200, .07) 36deg, transparent 48deg, transparent 360deg); filter: blur(4px); }
.cinema.is-open .cinema__beam { opacity: 1; }
.cinema__screen { position: absolute; left: 50%; top: calc(50% - 26px); transform: translate(-50%, -50%); width: min(1080px, 92vw); height: min(560px, calc(100vh - 170px)); height: min(560px, calc(100svh - 170px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(22px, 3vw, 46px); align-items: center; padding: clamp(18px, 2.2vw, 30px); overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1c1510, #0f0b08 75%); border-radius: 6px; opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 230, 190, .08), 0 0 140px var(--glow), 0 40px 90px rgba(0,0,0,.7); }
.cinema__poster { align-self: stretch; height: 100%; aspect-ratio: var(--par, .7); max-width: 42vw; box-shadow: 0 20px 50px rgba(0,0,0,.6); opacity: 0; }
.cinema__poster img { width: 100%; height: 100%; object-fit: cover; }
.cinema__text { max-height: 100%; overflow: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(243,230,208,.3) transparent; }
.cinema__title { margin: 0; font-variation-settings: "wdth" 125, "wght" 800; font-size: clamp(30px, 3.8vw, 60px); line-height: .98; letter-spacing: -.01em; }
.cinema__year { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(243, 230, 208, .65); }
.cinema__body p { margin: 22px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.7; color: rgba(243, 230, 208, .92); max-width: 32em; }
.cinema__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: screen; animation: grain .9s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -4%); } 60% { transform: translate(-2%, 5%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); } }
.cinema__fly { position: fixed; z-index: 5; opacity: 0; pointer-events: none; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.cinema__ctl { z-index: 6; }
.cinema.is-open .reader__ctl { opacity: 1; transition-delay: .6s; }
@media (max-width: 760px) {
  .cinema__screen { top: 14px; bottom: 74px; height: auto; transform: translateX(-50%); grid-template-columns: minmax(0, 1fr); grid-template-rows: 32svh minmax(0, 1fr); align-items: start; }
  .cinema__poster { justify-self: center; max-width: none; }
  .cinema__text { height: 100%; }
}

/* ---------- blog: notes from the long way ---------- */
.blog, .post { --hl: #ffd84a; --bink: #151515; --bmute: #5d5a55; --display: "DM Serif Display", "Spectral", Georgia, serif; background: #fbfbf9; color: var(--bink); }
.blog { min-height: 100vh; min-height: 100svh; padding: calc(var(--tabs-h) + 70px) var(--pad) 120px; }
.blog { position: relative; color: #1f2a22; background: radial-gradient(ellipse 70% 50% at 18% 0%, rgba(247, 249, 242, .9), rgba(247, 249, 242, 0) 70%), radial-gradient(ellipse 60% 45% at 90% 100%, rgba(196, 209, 186, .7), rgba(196, 209, 186, 0) 70%), linear-gradient(#e3e9dd, #d7dfd1); }
.blog::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.blog > * { position: relative; }
.blog .blog__mast { border-bottom-color: rgba(31, 42, 34, .55); }
.blog .blog__sub { color: rgba(31, 42, 34, .65); }
.blog .note--lead { border-bottom-color: rgba(31, 42, 34, .16); }
.blog .note__cover { background: #c9d2c2; box-shadow: 0 22px 46px rgba(30, 44, 32, .22); }
.blog .note__read { color: rgba(31, 42, 34, .6); }
.blog .note__dek { color: #3a473d; }
.blog .note__more { color: #1f2a22; border-bottom-color: #1f2a22; }
.blog .note__title span { background-image: linear-gradient(var(--hl), var(--hl)); padding: 0 .08em; transition: background-size .8s cubic-bezier(.3, .7, .2, 1); }
.blog__mast { max-width: 1200px; margin: 0 auto clamp(48px, 6vw, 80px); padding-bottom: 26px; border-bottom: 3px double rgba(21, 21, 21, .8); }
.blog__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8.4vw, 136px); line-height: .95; letter-spacing: -.01em; }
.blog__ul { position: relative; display: inline-block; white-space: nowrap; }
.blog__ul svg { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .26em; overflow: visible; }
.blog__ul path { fill: none; stroke: var(--hl); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.blog.is-shown .blog__ul path { animation: draw 1.1s .25s cubic-bezier(.5, .1, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.blog__ul { z-index: 0; } .blog__ul svg { z-index: -1; }
.blog__sub { margin: 22px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(19px, 1.6vw, 24px); color: var(--bmute); }
.blog__list { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 60px); }
.note { display: block; color: inherit; text-decoration: none; }
.note--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; padding-bottom: clamp(40px, 5vw, 70px); border-bottom: 1px solid rgba(21,21,21,.15); }
.note__cover { display: block; overflow: hidden; border-radius: 4px; background: #e9e7e1; box-shadow: 0 18px 40px rgba(20, 20, 20, .12); }
.note__cover img { width: 100%; height: auto; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.note:hover .note__cover img, .note:focus-visible .note__cover img { transform: scale(1.035); }
.note__body { display: block; padding-top: 22px; }
.note--lead .note__body { padding-top: 0; }
.note__read { display: block; font-family: var(--hand); font-size: 18px; color: var(--bmute); }
.note__title { display: block; margin: 8px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.9vw, 44px); line-height: 1.08; }
.note--lead .note__title { font-size: clamp(38px, 4.4vw, 68px); line-height: 1.02; }
.note__title span, .hl-sweep { background-image: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .8s cubic-bezier(.3, .7, .2, 1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note:hover .note__title span, .note:focus-visible .note__title span { background-size: 100% 100%; }
.note__dek { display: block; margin: 16px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: #3a3833; }
.note__more { display: inline-block; margin-top: 18px; font-size: 16px; font-weight: 600; border-bottom: 2px solid var(--bink); padding-bottom: 2px; }
@media (max-width: 820px) {
  .blog__list { grid-template-columns: minmax(0, 1fr); }
  .note--lead { grid-template-columns: minmax(0, 1fr); }
  .note--lead .note__body { padding-top: 6px; }
}

/* a single essay */
.post { min-height: 100vh; padding: calc(var(--tabs-h) + 40px) var(--pad) 120px; }
.post__back, .post__all { display: inline-block; font-size: 16px; color: var(--bmute); text-decoration: none; padding: 6px 0; }
.post__back:hover, .post__all:hover { color: var(--bink); }
.post__head { max-width: 900px; margin: clamp(24px, 4vw, 48px) auto 0; text-align: center; }
.post__read { margin: 0; font-family: var(--hand); font-size: 20px; color: var(--bmute); }
.post__title { margin: 10px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6.4vw, 96px); line-height: 1; letter-spacing: -.01em; }
.post__cover { max-width: 1100px; margin: clamp(36px, 5vw, 64px) auto 0; }
.post__cover img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 30px 60px rgba(20,20,20,.16); }
.post__body { max-width: 680px; margin: clamp(48px, 6vw, 80px) auto 0; font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.45vw, 21px); line-height: 1.78; color: #1d1c1a; }
.post__body p { margin: 0 0 1.05em; }
.post__body > p:first-child::first-letter { float: left; font-family: var(--display); font-size: 4.3em; line-height: .82; margin: .06em .1em 0 0; padding: .04em .08em 0; background: var(--hl); color: var(--bink); }
.post__body strong { font-weight: 600; color: var(--bink); }
.post__body strong, .post__body .mark span { background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 94%, transparent 94%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 1.1s cubic-bezier(.3, .7, .2, 1) .15s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.post__body .is-lit strong, .post__body .mark.is-lit span { background-size: 100% 100%; }
.post__body h3 { margin: 2.2em 0 .7em; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; color: var(--bink); }
.post__body .mark { margin: 1.5em 0; font-family: var(--display); font-weight: 400; font-size: clamp(25px, 2.3vw, 33px); line-height: 1.3; color: var(--bink); }
.post__body .mark + .mark { margin-top: -.6em; }
.post__body .mark strong { font-weight: 400; background: none; }
.post__end { max-width: 680px; margin: 56px auto 0; }
.post__sign { margin: 0 0 56px; font-family: var(--hand); font-size: 26px; transform: rotate(-2deg); transform-origin: left; }
.post__next { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(21,21,21,.18); border-bottom: 1px solid rgba(21,21,21,.18); color: inherit; text-decoration: none; }
.post__next img { width: 100%; height: auto; border-radius: 3px; }
.post__next-label { display: block; font-family: var(--hand); font-size: 18px; color: var(--bmute); }
.post__next-title { display: block; margin-top: 4px; font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.post__next:hover .hl-sweep { background-size: 100% 100%; }
.post__all { margin-top: 18px; }
.post__progress { position: fixed; left: 0; right: 0; top: var(--tabs-h); z-index: 59; height: 4px; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.post__progress.is-on { opacity: 1; }
.post__progress span { display: block; height: 100%; width: 100%; background: var(--hl, #ffd84a); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 560px) { .post__next { grid-template-columns: 110px minmax(0, 1fr); } }

/* ---------- about me ---------- */
.about { background: var(--paper); color: var(--ink); }
.about__hero { position: relative; height: 72vh; height: 72svh; min-height: 420px; overflow: hidden; background: #000; }
.about__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.about__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.5), rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 30%); }
.about__title { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(28px, 5vw, 64px); margin: 0; color: var(--paper); font-weight: 700; font-stretch: 75%; font-size: clamp(52px, 7vw, 120px); line-height: .88; letter-spacing: -.012em; max-width: 7.2em; text-align: right; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.about__hero { height: 86vh; height: 86svh; }
@media (max-width: 760px) {
  .about__hero { height: auto; min-height: 0; overflow: visible; background: var(--paper); }
  .about__hero img { height: 62svh; object-position: 32% 40%; }
  .about__hero::after { display: none; }
  .about__title { position: static; color: var(--ink); text-align: left; max-width: none; text-shadow: none; padding: 36px var(--pad) 0; font-size: clamp(48px, 13vw, 72px); }
  .essay { padding-top: 28px; }
}
.essay { max-width: 40em; margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--pad) clamp(80px, 10vw, 140px); font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.75; }
.essay p { margin: 0 0 1.1em; }
.essay__quote { margin: 1.6em 0; padding: 0; font-family: var(--hand); font-size: clamp(28px, 3vw, 42px); line-height: 1.3; color: #7a2b10; transform: rotate(-1deg); }
.essay__ig { font-size: 17px; color: var(--muted-on-light); }
.essay__ig a { color: #7a2b10; text-underline-offset: 4px; }

/* ---------- floating chapter bar ---------- */
.pill { position: fixed; left: 50%; bottom: 20px; z-index: 55; display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: var(--plum); box-shadow: 0 14px 34px rgba(20, 8, 30, .38); transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2, .9, .3, 1); max-width: calc(100vw - 20px); }
.pill.is-shown { transform: translate(-50%, 0); }
.pill button { appearance: none; border: 0; border-radius: 999px; padding: 12px 20px; font-size: 17px; font-weight: 600; font-stretch: 92%; color: #fff4ea; background: transparent; cursor: pointer; white-space: nowrap; line-height: 1.1; }
.pill .pill__alt { background: var(--plum-2); }
.pill button:hover { background: #5b4473; }
.pill__chapter { display: inline-flex; align-items: center; max-width: 46vw; }
.pill__chapter span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pill__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #a3286c); margin-right: 10px; transition: background-color .5s ease; }
.pill__menu { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 56; display: grid; min-width: 250px; padding: 8px; border-radius: 22px; background: var(--plum); box-shadow: 0 20px 44px rgba(20, 8, 30, .45); }
.pill__menu button { appearance: none; border: 0; background: transparent; color: #fff4ea; text-align: left; padding: 10px 14px; border-radius: 14px; font-size: 17px; cursor: pointer; display: flex; align-items: center; }
.pill__menu button:hover, .pill__menu button[aria-current="true"] { background: var(--plum-2); }
@media (max-width: 560px) {
  .pill { bottom: 12px; gap: 4px; padding: 5px; }
  .pill button { padding: 10px 12px; font-size: 15px; }
}

/* ---------- lightbox + slideshow ---------- */
.lb, .show { --c: #111; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--paper); }
.lb { background: color-mix(in srgb, var(--c) 22%, #050505); transition: background .5s ease; }
.lb::backdrop, .show::backdrop { background: rgba(0,0,0,.6); }
.lb[open] { display: grid; place-items: center; }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 88px 28px; max-width: 100%; }
.lb__img { max-width: min(100%, 1200px); max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; }
.lb__cap { text-align: center; }
.lb__title { display: block; font-family: var(--hand); font-size: 28px; line-height: 1.1; }
.lb__meta { display: block; margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted-on-dark); }
.lb__btn { position: absolute; appearance: none; border: 1px solid rgba(231,232,226,.3); background: rgba(0,0,0,.35); color: var(--paper); border-radius: 999px; padding: 9px 16px; font-size: 15px; cursor: pointer; }
.lb__btn:hover { border-color: var(--paper); }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }
.show { background: color-mix(in srgb, var(--c) 30%, #07050a); transition: background 1.2s ease; overflow: hidden; }
.show__img { position: absolute; inset: 56px 4vw 92px; width: calc(100% - 8vw); height: calc(100% - 148px); object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.show__img.is-on { opacity: 1; animation: drift 6s ease-out forwards; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
.show__cap { position: absolute; left: 0; right: 0; bottom: 44px; margin: 0; text-align: center; font-family: var(--hand); font-size: 26px; }
.show__ctl { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.show__ctl .lb__btn { position: static; }
@media (max-width: 760px) {
  .lb__fig { padding: 60px 12px 80px; }
  .lb__prev, .lb__next { top: auto; bottom: 18px; transform: none; }
  .show__ctl { left: 10px; right: 10px; justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

.imagined, .stories, .small { overflow-x: clip; }
