/* andrewphan.com landing, v2 (2026-10-16).
   The page is complete and still by default. html.motion (set in <head> only when reduced motion is not asked
   for) adds the scroll scene and the reveals. Motion follows the A kit: 0.9 s fades on a sine curve, 0.3 s lag. */

:root {
  --paper: #F4EFE7; --mat: #FBF8F2; --ink: #1F1A17; --ink-2: #4A413B; --muted: #6E655D;
  --bead: #B4835A; --bead-ink: #8A5D39; --hair: rgba(31, 26, 23, .14); --shadow: 20, 16, 15;
  --display: "Italiana", Didot, "Bodoni 72", serif;
  --serif: "EB Garamond", Georgia, serif;
  --ui: "Geist", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sine: cubic-bezier(.37, 0, .63, 1);
  --fade: .9s; --lag: .3s;
  --drift: cubic-bezier(.3, .1, .3, 1); /* slow, even tracking open; the A kit uses linear on video */
  --gut: 16px; --pad: clamp(12px, 1.6vw, 22px);
  --dpr: 1;
  color-scheme: light;
}
@media (min-resolution: 1.5dppx) { :root { --dpr: 1.5; } }
@media (min-resolution: 2dppx) { :root { --dpr: 2; } }
@media (min-resolution: 3dppx) { :root { --dpr: 3; } }
@media (min-width: 900px) { :root { --gut: 48px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #161210; --mat: #1E1916; --ink: #F1EBE2; --ink-2: #D8CFC4; --muted: #A9A097;
  --bead-ink: #D2A57C; --hair: rgba(241, 235, 226, .14); --shadow: 0, 0, 0; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #161210; --mat: #1E1916; --ink: #F1EBE2; --ink-2: #D8CFC4; --muted: #A9A097;
  --bead-ink: #D2A57C; --hair: rgba(241, 235, 226, .14); --shadow: 0, 0, 0; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.6 var(--serif); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* Paper grain: one fixed layer that never scrolls or repaints */
.grain { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .44  0 0 0 0 .38  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Type */
.cap { margin: 0; font: 500 11px/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cap.rule::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 14px; vertical-align: .32em; background: currentColor; transform-origin: left; }
h2 { margin: 0; font: 400 clamp(32px, 3.7vw, 52px)/1.08 var(--display); letter-spacing: .01em; text-wrap: balance; }
h3 { margin: 0; font-weight: 400; }

/* Links: a hairline that draws in on hover; the call to action keeps its line */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .55s var(--ease), color .3s; }
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.go { display: inline-flex; align-items: baseline; gap: .5em; font: 500 15px/1.2 var(--ui); letter-spacing: .01em; color: var(--ink); text-decoration: none; padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.go span { transition: transform .5s var(--ease); }
.go:hover span, .go:focus-visible span { transform: translateX(5px); }

/* Header: plain text, no bar, no blur */
.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: max(22px, env(safe-area-inset-top, 0px)) 22px; position: relative; z-index: 2; }
.wm { font: 400 17px/1 var(--display); letter-spacing: .24em; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; align-items: baseline; gap: clamp(16px, 2.2vw, 30px); font: 400 14px/1 var(--ui); color: var(--ink-2); }
.bar nav .go { font-size: 14px; }
@media (max-width: 760px) { .bar nav { display: none; } }

/* ---------- The scene (still by default) ---------- */
.scene { position: relative; }
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 112px); }
.words { display: grid; gap: 22px; align-content: center; }
.lines { margin: 0; display: grid; font: 400 clamp(44px, 5.4vw, 80px)/1.02 var(--display); letter-spacing: .005em; }
.qs, .steps, .cue { display: none; }
.q { margin: 0; max-width: 24rem; font: italic 400 20px/1.45 var(--serif); color: var(--muted); }
.stage-go { margin: 8px 0 0; }
.plate { position: relative; justify-self: center; width: min(100%, 520px); }
.plate-in { display: flex; flex-direction: column; background: var(--mat); padding: var(--pad); box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -50px rgba(var(--shadow), .55); }
.sp-mat { display: contents; }
.sp-cap { order: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 12px 0 0; font: 500 11px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sp-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #14100e; }
.sp-inner, .sp-inner img { width: 100%; height: 100%; }
.sp-inner img { object-fit: cover; }
.sp-glow, .sp-veil, .sp-marks { display: none; }
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .plate { justify-self: start; width: min(100%, 460px); }
}

/* ---------- The scene in motion ---------- */
html.motion .scene { height: 380svh; }
html.motion .stage { position: sticky; top: 0; height: 100svh; padding-block: max(80px, 10vh) clamp(28px, 5vh, 56px); }
html.motion .top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
html.motion .lines .line { grid-area: 1 / 1; opacity: 0; transform: translateY(.22em); transition: opacity var(--fade) var(--sine), transform 1.3s var(--ease); }
html.motion .qs { display: grid; }
html.motion .qs .q { grid-area: 1 / 1; opacity: 0; transition: opacity var(--fade) var(--sine); }
html.motion.ready .scene[data-stage="0"] [data-i="0"],
html.motion.ready .scene[data-stage="1"] [data-i="1"],
html.motion.ready .scene[data-stage="2"] [data-i="2"] { opacity: 1; transform: none; transition-delay: var(--lag); }
html.motion.ready .scene .qs .q[data-i] { transition-delay: 0s; }
html.motion.ready .scene[data-stage="0"] .q[data-i="0"],
html.motion.ready .scene[data-stage="1"] .q[data-i="1"],
html.motion.ready .scene[data-stage="2"] .q[data-i="2"] { transition-delay: calc(var(--lag) * 2); }

html.motion .steps { display: flex; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; font: 500 10.5px/1.3 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
html.motion .steps li { position: relative; flex: 1 1 0; max-width: 150px; padding-top: 12px; transition: color .6s var(--sine); }
html.motion .steps li::before, html.motion .steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair); }
html.motion .steps li::after { background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: left; }
html.motion .scene[data-stage="0"] .steps li:nth-child(1),
html.motion .scene[data-stage="1"] .steps li:nth-child(2),
html.motion .scene[data-stage="2"] .steps li:nth-child(3) { color: var(--ink); }

html.motion .plate { width: 100%; height: 100%; max-height: 900px; align-self: stretch; }
html.motion .plate-in { position: absolute; inset: 0; display: block; background: none; padding: 0; box-shadow: none; }
html.motion .sp-mat { display: block; position: absolute; left: 0; top: 0; width: 0; height: 0; background: var(--mat); box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -50px rgba(var(--shadow), .55); will-change: transform; }
html.motion .sp-cap { position: absolute; left: 0; right: 0; top: 100%; margin-top: 14px; }
html.motion .sp-frame { position: absolute; left: 0; top: 0; aspect-ratio: auto; transform-origin: 0 0; will-change: transform, clip-path; }
html.motion .sp-inner { transform-origin: 50% 50%; }
html.motion .sp-glow { display: block; position: absolute; left: 43.2%; top: 6%; width: 64%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; mix-blend-mode: screen; }
html.motion .sp-glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity 2.4s var(--sine) 2.2s;
  background: radial-gradient(closest-side, rgba(255, 222, 176, .5), rgba(255, 196, 128, .16) 45%, rgba(255, 190, 120, 0) 100%); }
html.motion.ready .sp-glow::before { opacity: 1; }
/* Crop marks and the shade outside them move by transform and clip-path only: no layout while scrolling */
html.motion .sp-veil { display: block; position: absolute; inset: 0; background: rgba(14, 11, 10, .42); opacity: 0; pointer-events: none; }
html.motion .sp-marks { display: block; position: absolute; inset: 0; opacity: 0; pointer-events: none; }
html.motion .sp-marks i { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border: 0 solid rgba(251, 248, 242, .92); will-change: transform; }
html.motion .sp-marks i:nth-child(1) { border-left-width: 1.5px; border-top-width: 1.5px; }
html.motion .sp-marks i:nth-child(2) { border-right-width: 1.5px; border-top-width: 1.5px; }
html.motion .sp-marks i:nth-child(3) { border-left-width: 1.5px; border-bottom-width: 1.5px; }
html.motion .sp-marks i:nth-child(4) { border-right-width: 1.5px; border-bottom-width: 1.5px; }
html.motion .plate-in { contain: layout; } /* the mat's size changes stay inside the plate */

/* Opening: the mat lands, then the photograph develops on it, then the bulb blooms */
html.motion .plate-in { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--sine) .3s, transform 1.5s var(--ease) .3s; }
html.motion .sp-inner img { opacity: 0; transition: opacity 1.8s var(--sine) .9s; }
html.motion .bar, html.motion .scene .cap, html.motion .stage-go, html.motion .steps { opacity: 0; transition: opacity var(--fade) var(--sine); }
html.motion .wm { letter-spacing: .14em; transition: letter-spacing 2.2s var(--drift), opacity var(--fade) var(--sine); }
html.motion.ready .sp-inner img.loaded { opacity: 1; }
html.motion.ready .plate-in, html.motion.ready .bar,
html.motion.ready .scene .cap, html.motion.ready .stage-go, html.motion.ready .steps { opacity: 1; transform: none; }
html.motion.ready .wm { letter-spacing: .24em; }
html.motion.ready .scene .cap { transition-delay: .5s; }
html.motion.ready .steps { transition-delay: 1.4s; }
html.motion.ready .stage-go { transition-delay: 1.7s; }

html.motion .cue { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: absolute; left: max(var(--gut), env(safe-area-inset-left, 0px)); bottom: max(28px, env(safe-area-inset-bottom, 0px)); margin: 0;
  font: 500 10px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .6s var(--sine); }
html.motion .cue::after { content: ""; width: 1px; height: 30px; background: linear-gradient(var(--muted), transparent); transform-origin: top; animation: cue 2.4s var(--sine) infinite; }
html.motion.ready .scene[data-cue] .cue { opacity: 1; transition-delay: 2.2s; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  html.motion .stage { grid-template-rows: minmax(0, 1.25fr) auto; align-content: stretch; gap: 18px; padding-block: 64px 56px; }
  html.motion .plate { order: -1; max-height: none; }
  html.motion .words { gap: 14px; align-content: start; }
  html.motion .lines { font-size: clamp(38px, 10vw, 52px); }
  html.motion .q { font-size: 17px; }
  html.motion .cue { display: none; }
}

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 6vw, 96px); align-items: end; padding-block: clamp(64px, 10vw, 150px) clamp(24px, 4vw, 48px); }
.lede { margin: 0; font: 400 clamp(26px, 2.7vw, 38px)/1.3 var(--serif); text-wrap: pretty; }
.bio { margin: 0; font-style: italic; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; margin: 22px 0 0; font: 400 15px/1.2 var(--ui); }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(96px, 12vw, 176px) 0; }
.sh { display: grid; gap: 16px; max-width: 46rem; }
.dek { margin: 0; color: var(--ink-2); max-width: 36rem; }

/* Prints: a mat, never wider than the photograph's own pixels, with its own light spilling onto the paper */
.print { position: relative; margin: 0; isolation: isolate; width: min(100%, calc(var(--nw) * 1px / var(--dpr))); }
.print > .amb { position: absolute; inset: 4% -5% -2%; z-index: -1; background: center / cover no-repeat; opacity: .26; transform: translateY(2%);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent); }
.pm { background: var(--mat); padding: var(--pad); box-shadow: 0 0 0 1px var(--hair), 0 34px 70px -46px rgba(var(--shadow), .5); }
.pf { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: color-mix(in srgb, var(--mat) 85%, var(--ink)); }
.pz { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.pf img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 500 11px/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Spreads: asymmetric pairs of print and words */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-block: clamp(56px, 8vw, 128px) 0; }
.spread .print { grid-column: 1 / span 6; grid-row: 1; justify-self: start; }
.spread .sw { grid-column: 8 / span 5; grid-row: 1; }
.spread.flip .print { grid-column: 7 / span 6; justify-self: end; }
.spread.flip .sw { grid-column: 1 / span 5; }
.spread.narrow .print { grid-column: 2 / span 5; }
.sw { display: grid; gap: 14px; align-content: center; }
.sw h3 { font: 400 clamp(30px, 3vw, 44px)/1.1 var(--serif); text-wrap: balance; }
.sw .sub { margin: -6px 0 6px; font-style: italic; color: var(--muted); }
.sw p { margin: 0; color: var(--ink-2); }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; margin: 14px 0 0; padding-top: 16px; border-top: 1px solid var(--hair); font: 400 14px/1.45 var(--ui); color: var(--ink-2); }
.meta div { display: contents; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
@media (max-width: 860px) {
  .spread { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .spread .print, .spread.flip .print, .spread.narrow .print { grid-column: 1; grid-row: 1; justify-self: start; max-width: 460px; }
  .spread .sw, .spread.flip .sw { grid-column: 1; grid-row: 2; }
}

/* The method */
.method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); position: relative; }
.method::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); transform-origin: left; }
.part { display: grid; gap: 14px; align-content: start; padding: 30px 28px 6px 0; }
.part + .part { padding-left: 28px; border-left: 1px solid var(--hair); }
.part h3 { font: 400 30px/1.1 var(--display); letter-spacing: .02em; }
.part .q { font-size: 17px; }
.part ol { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.part li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); }
.part li span { font: 500 13px/1.9 var(--ui); color: var(--bead-ink); font-variant-numeric: tabular-nums; }
.quote { margin: clamp(72px, 10vw, 140px) auto 0; max-width: 46rem; text-align: center; }
.quote p { margin: 0; font: italic 400 clamp(26px, 3vw, 40px)/1.35 var(--serif); text-wrap: balance; }
.quote cite { display: block; margin-top: 18px; font: 500 11px/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-style: normal; }
@media (max-width: 860px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .part, .part + .part { padding: 26px 0 8px; border-left: 0; }
  .part + .part { border-top: 1px solid var(--hair); }
}

/* Stories: an asymmetric well, a 2.5% push on hover */
.well { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 5vw, 72px); align-items: start; margin-top: clamp(48px, 6vw, 88px); }
.story { display: grid; gap: 10px; justify-items: start; text-decoration: none; }
.story .print { margin-bottom: 10px; }
.story strong { font: 400 23px/1.25 var(--serif); }
.story:hover .pz, .story:focus-visible .pz { transform: scale(1.025); }
.st-a { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.st-b { grid-column: 8 / span 4; grid-row: 1; margin-top: clamp(40px, 10vw, 160px); }
.st-c { grid-column: 9 / span 4; grid-row: 2; }
.well-foot { margin: clamp(48px, 6vw, 80px) 0 0; }
@media (max-width: 760px) {
  .well { grid-template-columns: minmax(0, 1fr); }
  .st-a, .st-b, .st-c { grid-column: 1; grid-row: auto; margin-top: 0; }
  .st-b .print, .st-c .print { max-width: 82%; }
  .st-c { justify-self: end; }
}

/* Book */
.book { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(96px, 12vw, 176px); }
.book-words { display: grid; gap: 16px; }
.book-words p:last-child { margin: 4px 0 0; max-width: 34rem; color: var(--ink-2); }
.contact { display: grid; gap: 22px; justify-items: start; font: 400 15px/1.3 var(--ui); }
.email { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--hair); width: 100%; }
.email span { font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); user-select: all; overflow-wrap: anywhere; }
.copy { font: 500 11px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.copy:hover { color: var(--ink); }
@media (max-width: 860px) { .book { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.foot { padding-block: clamp(48px, 7vw, 96px) max(40px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); }
.foot .big { margin: 0; font: 400 clamp(28px, 5.2vw, 76px)/1 var(--display); letter-spacing: .17em; white-space: nowrap; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 22px; font: 400 14px/1.4 var(--ui); color: var(--muted); }

/* ---------- Reveals (motion only) ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--sine), transform 1.4s var(--ease); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
html.motion .print[data-reveal] .pf img { opacity: 0; transition: opacity 1.8s var(--sine) .5s; }
html.motion .print[data-reveal].in .pf img { opacity: 1; }
html.motion .sw[data-reveal] { transform: none; opacity: 1; }
html.motion .sw[data-reveal] > * { opacity: 0; transform: translateY(14px); transition: opacity var(--fade) var(--sine), transform 1.2s var(--ease); }
html.motion .sw[data-reveal].in > * { opacity: 1; transform: none; }
html.motion .sw[data-reveal].in > :nth-child(1) { transition-delay: .3s; }
html.motion .sw[data-reveal].in > :nth-child(2) { transition-delay: .4s; }
html.motion .sw[data-reveal].in > :nth-child(3) { transition-delay: .5s; }
html.motion .sw[data-reveal].in > :nth-child(4) { transition-delay: .6s; }
html.motion .sw[data-reveal].in > :nth-child(5) { transition-delay: .75s; }
html.motion [data-track] { letter-spacing: .1em; transition: opacity var(--fade) var(--sine), letter-spacing 2s var(--drift); }
html.motion .in [data-track], html.motion [data-track].in { letter-spacing: .2em; }
html.motion .foot .big[data-track] { opacity: 0; letter-spacing: .1em; }
html.motion .foot .big[data-track].in { opacity: 1; letter-spacing: .17em; }
html.motion .cap.rule::before { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
html.motion .in .cap.rule::before { transform: none; }
html.motion .method[data-reveal] { transform: none; opacity: 1; }
html.motion .method::before { transform: scaleX(0); transition: transform 1.6s var(--ease); }
html.motion .method.in::before { transform: none; }
html.motion .method .part > :not(ol), html.motion .method li { opacity: 0; transform: translateY(12px); transition: opacity var(--fade) var(--sine), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + .3s); }
html.motion .method.in .part > :not(ol), html.motion .method.in li { opacity: 1; transform: none; }
html.motion .pf img { transform: scale(1.07); }
html.motion [data-words] .w { opacity: .16; transition: opacity .35s var(--sine); }

/* Borrowed 2026-10-16 (see docs/references-andrewphan.md):
   one warm accent used only as punctuation (Refero "Home"), and prints laid on the paper at slight angles,
   straightening when you reach for one (Meech213, Refero "Flim"). */
.lines .dot { color: var(--bead); }
.story .pm { transform: rotate(var(--tilt, 0deg)); transition: transform .9s var(--ease); }
.story:hover .pm, .story:focus-visible .pm { transform: none; }
.st-a { --tilt: -1.1deg; } .st-b { --tilt: 1.4deg; } .st-c { --tilt: -.7deg; }
@media (max-width: 760px) { .story .pm { transform: none; } }
@media (prefers-reduced-motion: reduce) { .story .pm, .pz { transition: none; } }

/* A press you can feel on the calls to action */
.go { transition: transform .25s var(--ease); }
.go:active { transform: scale(.98); }

/* Menu: two hairlines cross into an X; a paper overlay, its lines rising out of their own masks in turn */
.menu-btn { position: fixed; top: max(8px, env(safe-area-inset-top, 0px)); right: max(calc(var(--gut) - 10px), env(safe-area-inset-right, 0px)); z-index: 6;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  color: #fff; mix-blend-mode: difference; opacity: 0; pointer-events: none; transition: opacity .6s var(--sine); }
.menu-btn i { grid-area: 1 / 1; width: 24px; height: 1px; background: currentColor; transition: transform .7s var(--ease); }
.menu-btn i:first-child { transform: translateY(-4px); }
.menu-btn i:last-child { transform: translateY(4px); }
.menu-btn:focus-visible { outline-color: #fff; }
html.nav-away .menu-btn, html.menu-open .menu-btn { opacity: 1; pointer-events: auto; }
html.menu-open .menu-btn i:first-child { transform: rotate(45deg); }
html.menu-open .menu-btn i:last-child { transform: rotate(-45deg); }
@media (max-width: 760px) { .menu-btn { opacity: 1; pointer-events: auto; } }

.menu { position: fixed; inset: 0; z-index: 5; display: grid; align-content: center; gap: clamp(32px, 6vh, 64px); background: var(--paper);
  padding: 96px max(var(--gut), env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px));
  opacity: 0; visibility: hidden; transition: opacity .6s var(--sine), visibility 0s .6s; }
html.menu-open { overflow: hidden; }
html.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .6s var(--sine), visibility 0s; }
.menu nav { display: grid; justify-items: start; gap: 4px; width: 100%; max-width: 1320px; margin: 0 auto; }
.menu nav a { display: block; overflow: hidden; padding-bottom: .06em; text-decoration: none; font: 400 clamp(34px, 5vw, 56px)/1.15 var(--display); letter-spacing: .01em; }
.menu nav a span { display: block; transform: translateY(105%); transition: transform .9s var(--ease); }
.menu nav a:hover span, .menu nav a:focus-visible span { color: var(--ink-2); }
html.menu-open .menu nav a span { transform: none; transition-delay: calc(.12s + var(--i, 0) * 70ms); }
.menu-foot { width: 100%; max-width: 1320px; margin: 0 auto; opacity: 0; transition: opacity var(--fade) var(--sine); }
html.menu-open .menu-foot { opacity: 1; transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .menu, .menu nav a span, .menu-btn i, .menu-foot { transition: none; } }
