/* FOLIO // LOUPE — the page around the player (Solheath Studio screening room) */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Var"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3ede4;
  --paper-2: #f7f2eb;
  --linen: #ebe1d3;
  --ink: #2a2520;
  --ink-soft: #5a5047;
  --muted: #6e6359;
  --accent: #c4552b;
  --accent-ink: #9f3f1a;
  --hair: rgb(110 85 60 / 0.18);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter Var", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --grain: 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .24 0 0 0 .085 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --linen-weave:
    repeating-linear-gradient(0deg, rgb(120 92 64 / 0.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(120 92 64 / 0.04) 0 1px, transparent 1px 3px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  background-image: var(--grain), var(--linen-weave);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------ spread -- */
.spread {
  display: grid;
  grid-template-columns: minmax(300px, 26%) 1fr;
  min-height: 100vh;
}

/* the spine: linen board with a deckled edge and window light */
.spine {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 2.8vw, 48px) clamp(24px, 4vh, 44px);
  background:
    linear-gradient(118deg, rgb(255 250 240 / 0) 30%, rgb(255 250 240 / 0.55) 42%, rgb(255 250 240 / 0) 54%),
    linear-gradient(128deg, rgb(70 50 30 / 0.0) 8%, rgb(70 50 30 / 0.10) 16%, rgb(70 50 30 / 0) 26%, rgb(70 50 30 / 0.07) 60%, rgb(70 50 30 / 0) 72%),
    var(--grain), var(--linen-weave), var(--linen);
  overflow: hidden auto;
  z-index: 1;
}
/* deckled right edge + the shadow it casts on the sheet */
.spine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 9px;
  background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='400' viewBox='0 0 9 400' preserveAspectRatio='none'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04 .9' numOctaves='3' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3C/filter%3E%3Crect x='4.5' width='9' height='400' filter='url(%23d)'/%3E%3C/svg%3E") 0 0 / 100% 400px repeat-y;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='400' viewBox='0 0 9 400' preserveAspectRatio='none'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04 .9' numOctaves='3' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3C/filter%3E%3Crect x='4.5' width='9' height='400' filter='url(%23d)'/%3E%3C/svg%3E") 0 0 / 100% 400px repeat-y;
  filter: drop-shadow(-2px 0 2px rgb(60 40 20 / 0.18));
}

.brand {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand__slash { color: var(--accent); font-style: italic; letter-spacing: -0.05em; margin-inline: 0.12em; }
.brand__loupe { font-style: italic; }
.spine__rule { display: block; width: 76px; height: 2px; margin-block: clamp(28px, 6vh, 64px) clamp(28px, 6vh, 64px); background: var(--accent); }

.headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 4.6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.headline em { font-style: italic; }
.headline__dot { color: var(--accent); }
.lede {
  margin: 22px 0 0;
  max-width: 30ch;
  color: var(--ink-soft);
  font-size: 15px;
}

.index { margin-top: clamp(28px, 6vh, 64px); }
.index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.index__item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px 6px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 6px;
}
.index__dash { height: 2px; width: 0; background: var(--accent); transition: width 0.35s cubic-bezier(.2,.75,.2,1); }
.index__n { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); font-weight: 400; }
.index__item[aria-current="true"] .index__dash { width: 28px; }
.index__item[aria-current="true"] { color: var(--accent-ink); }
@media (hover: hover) {
  .index__item:hover .index__dash { width: 14px; }
  .index__item[aria-current="true"]:hover .index__dash { width: 28px; }
}

.folio { margin-top: auto; padding-top: 28px; display: flex; align-items: center; gap: 16px; }
.folio__page { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0.08em; white-space: nowrap; }
.folio__line { position: relative; flex: 1; height: 2px; background: rgb(196 85 43 / 0.25); }
.folio__line-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); transition: width 0.6s cubic-bezier(.2,.75,.2,1); }

/* --------------------------------------------------------------- sheet -- */
.sheet {
  min-width: 0;
  padding: clamp(22px, 4vh, 40px) clamp(20px, 3.4vw, 64px) 40px;
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(14px, 2.4vh, 24px);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sheet__head p { margin: 0; }
.sheet__plate-no { font-weight: 550; color: var(--ink); }
.sheet__plate-no .slash { color: var(--accent); }

/* the plate the player sits on: a mounted print with a paper mat */
.plate {
  margin: 0;
  padding: clamp(8px, 1vw, 14px);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--paper-2), #efe7dc);
  box-shadow: 0 0 0 1px var(--hair), 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 30px 60px -36px rgb(60 40 20 / 0.55);
  outline: none;
}
.plate .fl-skin { --media-border-radius: 12px; }

/* ----------------------------------------------------------------- notes -- */
.notes {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(24px, 4vh, 40px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}
.notes__kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-ink); font-weight: 550; }
.notes__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.2vw, 50px); line-height: 1; letter-spacing: -0.01em; }
.notes__tech { margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.notes__body { margin: 4px 0 0; color: var(--ink-soft); max-width: 52ch; }
.notes__keys { margin: 4px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.notes__keys div { display: grid; grid-template-columns: 92px auto; align-items: center; }
.notes__keys dt, .notes__keys dd { margin: 0; }
kbd {
  display: inline-block; min-width: 24px; padding: 1px 6px; text-align: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  border-radius: 5px; background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--hair), 0 1px 0 rgb(110 85 60 / 0.25);
}

/* ------------------------------------------------------- contact sheet -- */
.contact { margin-top: 30px; }
.contact__title { margin: 0 0 14px; font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 550; }
.contact__title span { color: var(--muted); font-weight: 400; letter-spacing: 0.1em; text-transform: none; }
.contact__strip {
  list-style: none; margin: 0; padding: 12px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  background: #24201c;
  border-radius: 6px;
  box-shadow: 0 20px 40px -30px rgb(30 20 10 / 0.8);
}
.frame {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0 0 4px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: #efe6da;
  border-radius: 4px;
}
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; filter: saturate(0.9); transition: filter 0.3s; }
.frame__row { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; }
.frame__n { color: #f0a274; }
.frame__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame::after { /* grease-pencil circle on the chosen frame */
  content: "";
  position: absolute;
  left: -6px; right: -6px; top: -6px;
  aspect-ratio: 16 / 9.4;
  border: 2px solid var(--accent);
  border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%;
  rotate: -1.5deg;
  opacity: 0;
  scale: 1.04;
  transition: opacity 0.25s, scale 0.35s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}
.frame[aria-current="true"]::after { opacity: 1; scale: 1; }
.frame:focus-visible { outline: 3px solid #f6efe5; outline-offset: 5px; }
@media (hover: hover) { .frame:hover img { filter: saturate(1.05) brightness(1.06); } }

.colophon { margin-top: 36px; font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.colophon p { margin: 0; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1180px) {
  .notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .notes__keys { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .contact__strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .spread { grid-template-columns: 1fr; }
  .spine { position: relative; height: auto; padding: 22px 20px 18px; }
  .spine::after { display: none; }
  .brand { font-size: 24px; }
  .spine__rule { margin-block: 18px; width: 56px; }
  .headline { font-size: clamp(40px, 10vw, 60px); }
  .headline br { display: none; }
  .lede { margin-top: 12px; max-width: 46ch; }
  .index { margin-top: 18px; margin-inline: -20px; overflow-x: auto; scrollbar-width: none; }
  .index__list { display: flex; gap: 4px; padding-inline: 14px; width: max-content; }
  .index__item { grid-template-columns: auto auto; gap: 8px; padding: 6px 10px; letter-spacing: 0.18em; }
  .index__dash { display: none; }
  .index__item[aria-current="true"] { background: rgb(196 85 43 / 0.1); }
  .index__item > :last-child { display: none; }
  .folio { padding-top: 16px; }
  .sheet { padding: 14px 12px 32px; }
  .sheet__studio { display: none; }
  .plate { padding: 6px; border-radius: 16px; }
  .notes { grid-template-columns: 1fr; gap: 14px; }
  .notes__keys { display: none; }
}
@media (max-width: 560px) {
  .contact__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ==========================================================================
   v2 · PAGE MOTION — the spread is laid out on the table once, on load.
   ========================================================================== */
:root { --glide: cubic-bezier(0.22, 0.8, 0.2, 1); }

@keyframes rise   { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes line-up { from { translate: 0 105%; } to { translate: 0 0; } }
@keyframes plate-in { from { opacity: 0; translate: 0 22px; scale: 0.985; } to { opacity: 1; translate: 0 0; scale: 1; } }

.headline .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.headline .ln > span { display: inline-block; }

.js-intro .brand          { animation: fade 0.9s ease both 0.05s; }
.js-intro .spine__rule    { transform-origin: 0 50%; animation: draw-x 0.8s var(--glide) both 0.2s; }
.js-intro .headline .ln:nth-child(1) > span { animation: line-up 0.9s var(--glide) both 0.25s; }
.js-intro .headline .ln:nth-child(2) > span { animation: line-up 0.9s var(--glide) both 0.36s; }
.js-intro .lede           { animation: rise 0.8s var(--glide) both 0.5s; }
.js-intro .index__list > li { animation: rise 0.7s var(--glide) both calc(0.55s + var(--i, 0) * 0.06s); }
.js-intro .folio          { animation: fade 0.8s ease both 0.9s; }
.js-intro .sheet__head    { animation: fade 0.8s ease both 0.3s; }
.js-intro .plate          { animation: plate-in 1s var(--glide) both 0.35s; }
.js-intro .fl-dock        { animation: rise 0.8s var(--glide) both 0.85s; }
.js-intro .notes          { animation: rise 0.8s var(--glide) both 0.7s; }
.js-intro .contact        { animation: rise 0.8s var(--glide) both 0.85s; }

/* ---- film switch: a sheet of paper passes over the print ---------------- */
.plate { position: relative; }
.plate__veil {
  position: absolute;
  inset: calc(clamp(8px, 1vw, 14px) - 1px);
  z-index: 5;
  border-radius: 13px;
  pointer-events: none;
  opacity: 0;
  background: var(--grain), linear-gradient(180deg, var(--paper-2), #ece3d6);
}
@media (max-width: 900px) { .plate__veil { inset: 5px; } }

/* rolling numerals (plate no. and folio page) */
.roll { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.15; }
.roll > span { display: inline-block; }

/* ---- index: the active dash slides, hovered items lean in -------------- */
.index__item > span:nth-child(2) { transition: translate 0.35s var(--glide); }
@media (hover: hover) {
  .index__item:hover > span:nth-child(2) { translate: 4px 0; }
}
.index__item:active > span:nth-child(2) { translate: 2px 0; }

/* ---- contact sheet: frames lift; the chosen one gets a grease-pencil loop */
.frame::after { display: none; }   /* replaced by the drawn loop below */
.frame__loop {
  position: absolute;
  left: -8px; right: -8px; top: -9px;
  aspect-ratio: 16 / 9.6;
  overflow: visible;
  pointer-events: none;
}
.frame__loop path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;            /* viewBox units; the loop scales uniformly (16:9.6 = 100:60) */
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;                  /* a zero-length dash still paints a round cap */
  transition: stroke-dashoffset 0.25s ease, opacity 0s linear 0.25s;
}
.frame[aria-current="true"] .frame__loop path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset 0.75s cubic-bezier(0.5, 0.1, 0.25, 1) 0.1s, opacity 0s; }
.frame img { transition: filter 0.3s, translate 0.35s var(--glide), box-shadow 0.35s; }
@media (hover: hover) {
  .frame:hover img { translate: 0 -3px; box-shadow: 0 10px 18px -10px rgb(0 0 0 / 0.8); }
  .frame:hover .frame__n { text-decoration: underline; text-underline-offset: 3px; }
}
.frame:active img { translate: 0 -1px; }

@media (prefers-reduced-motion: reduce) {
  .js-intro * { animation: none !important; }
  .frame__loop path { stroke-dashoffset: 0 !important; opacity: 0; }
  .frame[aria-current="true"] .frame__loop path { opacity: 1; }
}

/* ==========================================================================
   v3 · PAGE — review round
   ========================================================================== */

/* headline: room for descenders (y) and the full stop while lines rise */
.headline .ln { padding-block: 0.06em 0.18em; margin-block: -0.06em -0.18em; }

/* spine: window light + leaf shadow on their own layer, breathing on a 12 s cycle */
.spine { background: var(--grain), var(--linen-weave), var(--linen); isolation: isolate; }
.spine > * { position: relative; z-index: 1; }
.spine::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 1200' preserveAspectRatio='xMinYMin slice'><filter id='b' x='-10%25' y='-10%25' width='120%25' height='120%25'><feGaussianBlur stdDeviation='7'/></filter><g filter='url(%23b)' fill='%233c2a18' opacity='.085'><path d='M-40 80 L3 106 L45 132 L85 162 L125 192 L165 223 L204 254 L246 282 L287 310 L327 339 L366 371 L407 400 L449 426 L494 448 L538 473' stroke='%23000' stroke-width='5.0' fill='none'/><ellipse cx='388' cy='361' rx='23' ry='8' transform='rotate(-25 388 361)'/><ellipse cx='394' cy='358' rx='29' ry='9' transform='rotate(-25 394 358)'/><ellipse cx='73' cy='119' rx='28' ry='10' transform='rotate(-25 73 119)'/><ellipse cx='354' cy='328' rx='26' ry='10' transform='rotate(-22 354 328)'/><ellipse cx='329' cy='364' rx='23' ry='9' transform='rotate(87 329 364)'/><ellipse cx='515' cy='437' rx='21' ry='7' transform='rotate(-28 515 437)'/><ellipse cx='184' cy='215' rx='19' ry='6' transform='rotate(-23 184 215)'/><ellipse cx='190' cy='204' rx='29' ry='9' transform='rotate(-37 190 204)'/><ellipse cx='157' cy='181' rx='31' ry='11' transform='rotate(-20 157 181)'/><ellipse cx='65' cy='120' rx='21' ry='7' transform='rotate(-31 65 120)'/><ellipse cx='204' cy='274' rx='19' ry='6' transform='rotate(91 204 274)'/><ellipse cx='110' cy='153' rx='24' ry='9' transform='rotate(-20 110 153)'/><ellipse cx='149' cy='174' rx='28' ry='10' transform='rotate(-38 149 174)'/><ellipse cx='208' cy='275' rx='20' ry='7' transform='rotate(79 208 275)'/><ellipse cx='491' cy='467' rx='17' ry='6' transform='rotate(99 491 467)'/><ellipse cx='515' cy='446' rx='19' ry='7' transform='rotate(-5 515 446)'/><ellipse cx='44' cy='157' rx='22' ry='7' transform='rotate(93 44 157)'/><ellipse cx='149' cy='191' rx='22' ry='8' transform='rotate(-5 149 191)'/><ellipse cx='84' cy='183' rx='19' ry='7' transform='rotate(93 84 183)'/><ellipse cx='324' cy='370' rx='28' ry='10' transform='rotate(96 324 370)'/><ellipse cx='147' cy='181' rx='22' ry='8' transform='rotate(-28 147 181)'/><ellipse cx='104' cy='160' rx='18' ry='7' transform='rotate(-8 104 160)'/><ellipse cx='134' cy='223' rx='29' ry='11' transform='rotate(74 134 223)'/><ellipse cx='192' cy='203' rx='31' ry='10' transform='rotate(-36 192 203)'/><ellipse cx='277' cy='274' rx='30' ry='10' transform='rotate(-14 277 274)'/><ellipse cx='50' cy='154' rx='20' ry='7' transform='rotate(79 50 154)'/><ellipse cx='186' cy='220' rx='19' ry='7' transform='rotate(-7 186 220)'/><ellipse cx='234' cy='240' rx='30' ry='11' transform='rotate(-24 234 240)'/><ellipse cx='202' cy='273' rx='17' ry='7' transform='rotate(98 202 273)'/><ellipse cx='254' cy='315' rx='31' ry='10' transform='rotate(76 254 315)'/><ellipse cx='312' cy='293' rx='27' ry='11' transform='rotate(-35 312 293)'/><ellipse cx='414' cy='428' rx='27' ry='11' transform='rotate(77 414 428)'/><ellipse cx='447' cy='445' rx='17' ry='6' transform='rotate(97 447 445)'/><ellipse cx='49' cy='150' rx='17' ry='6' transform='rotate(78 49 150)'/><path d='M-30 520 L8 533 L47 542 L86 549 L126 555 L166 559 L205 568 L243 578 L282 588 L321 597 L360 607 L398 617 L437 628 L476 636 L516 641' stroke='%23000' stroke-width='4.2' fill='none'/><ellipse cx='64' cy='525' rx='22' ry='9' transform='rotate(-45 64 525)'/><ellipse cx='179' cy='547' rx='16' ry='6' transform='rotate(-40 179 547)'/><ellipse cx='292' cy='607' rx='20' ry='8' transform='rotate(64 292 607)'/><ellipse cx='180' cy='575' rx='20' ry='8' transform='rotate(48 180 575)'/><ellipse cx='455' cy='612' rx='21' ry='8' transform='rotate(-41 455 612)'/><ellipse cx='103' cy='571' rx='25' ry='8' transform='rotate(53 103 571)'/><ellipse cx='53' cy='558' rx='16' ry='6' transform='rotate(69 53 558)'/><ellipse cx='489' cy='655' rx='21' ry='8' transform='rotate(54 489 655)'/><ellipse cx='376' cy='628' rx='24' ry='8' transform='rotate(52 376 628)'/><ellipse cx='331' cy='615' rx='18' ry='7' transform='rotate(61 331 615)'/><ellipse cx='61' cy='530' rx='17' ry='7' transform='rotate(-42 61 530)'/><ellipse cx='182' cy='535' rx='26' ry='9' transform='rotate(-55 182 535)'/><ellipse cx='93' cy='572' rx='23' ry='8' transform='rotate(74 93 572)'/><ellipse cx='259' cy='557' rx='23' ry='9' transform='rotate(-52 259 557)'/><ellipse cx='63' cy='529' rx='19' ry='7' transform='rotate(-37 63 529)'/><ellipse cx='302' cy='570' rx='24' ry='10' transform='rotate(-41 302 570)'/><ellipse cx='102' cy='564' rx='20' ry='8' transform='rotate(45 102 564)'/><ellipse cx='449' cy='649' rx='22' ry='8' transform='rotate(60 449 649)'/><ellipse cx='412' cy='638' rx='22' ry='8' transform='rotate(57 412 638)'/><ellipse cx='382' cy='591' rx='25' ry='11' transform='rotate(-35 382 591)'/><ellipse cx='492' cy='656' rx='23' ry='7' transform='rotate(50 492 656)'/><ellipse cx='299' cy='572' rx='21' ry='8' transform='rotate(-43 299 572)'/><ellipse cx='266' cy='562' rx='25' ry='9' transform='rotate(-35 266 562)'/><ellipse cx='59' cy='567' rx='25' ry='9' transform='rotate(65 59 567)'/><path d='M120 -40 L132 -12 L141 16 L150 45 L157 74 L165 103 L171 132 L176 162 L179 192 L181 222 L183 252 L184 282 L184 312 L182 342 L184 372' stroke='%23000' stroke-width='3.5' fill='none'/><ellipse cx='167' cy='204' rx='16' ry='6' transform='rotate(133 167 204)'/><ellipse cx='194' cy='321' rx='13' ry='5' transform='rotate(43 194 321)'/><ellipse cx='153' cy='117' rx='17' ry='6' transform='rotate(129 153 117)'/><ellipse cx='192' cy='229' rx='12' ry='5' transform='rotate(35 192 229)'/><ellipse cx='196' cy='204' rx='19' ry='6' transform='rotate(36 196 204)'/><ellipse cx='160' cy='201' rx='20' ry='7' transform='rotate(154 160 201)'/><ellipse cx='155' cy='117' rx='16' ry='6' transform='rotate(126 155 117)'/><ellipse cx='173' cy='321' rx='13' ry='5' transform='rotate(140 173 321)'/><ellipse cx='128' cy='34' rx='20' ry='6' transform='rotate(126 128 34)'/><ellipse cx='167' cy='87' rx='15' ry='6' transform='rotate(53 167 87)'/><ellipse cx='153' cy='120' rx='19' ry='6' transform='rotate(126 153 120)'/><ellipse cx='162' cy='203' rx='19' ry='8' transform='rotate(147 162 203)'/><ellipse cx='124' cy='26' rx='18' ry='7' transform='rotate(150 124 26)'/><ellipse cx='202' cy='324' rx='20' ry='8' transform='rotate(35 202 324)'/><ellipse cx='202' cy='319' rx='18' ry='6' transform='rotate(22 202 319)'/><ellipse cx='144' cy='81' rx='14' ry='5' transform='rotate(153 144 81)'/></g></svg>") 0 0 / 100% auto no-repeat,
    linear-gradient(118deg, rgb(255 250 240 / 0) 30%, rgb(255 250 240 / 0.55) 42%, rgb(255 250 240 / 0) 54%),
    linear-gradient(128deg, rgb(70 50 30 / 0) 8%, rgb(70 50 30 / 0.10) 16%, rgb(70 50 30 / 0) 26%, rgb(70 50 30 / 0.07) 60%, rgb(70 50 30 / 0) 72%);
  transform-origin: 0 0;
  animation: spine-breathe 12s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes spine-breathe {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(5px, 3px) scale(1.02); }
}

/* split-flap numerals */
.flip { display: inline-flex; perspective: 260px; vertical-align: baseline; }
.flip__d { display: inline-block; position: relative; text-align: center; }
.flip__f { display: inline-block; transform-origin: 50% 55%; backface-visibility: hidden; }

/* film switch: warm soft light rather than a flat sheet */
.plate__veil {
  background:
    radial-gradient(120% 90% at 50% 42%, rgb(255 251 243 / 1), rgb(246 236 222 / 1) 70%, rgb(236 224 207 / 1));
}

/* ---- contact sheet: a drawer that unrolls ------------------------------ */
.contact__title { margin: 0 0 6px; }
.contact__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  border-radius: 6px;
}
.contact__chev { width: 16px; height: 16px; color: var(--accent); transition: rotate 0.45s var(--glide); }
.contact[data-open] .contact__chev { rotate: 180deg; }
@media (hover: hover) { .contact__toggle:hover .contact__chev { translate: 0 2px; } }
.contact__drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--glide);
}
.contact[data-open] .contact__drawer { grid-template-rows: 1fr; }
.contact__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.65s; }
.contact[data-open] .contact__inner { visibility: visible; transition: visibility 0s; }
.contact__strip {
  margin-top: 8px;
  padding: 26px 14px;
  gap: 14px;
  background:
    radial-gradient(circle, #efe6da 0 2.4px, transparent 2.9px) 6px 9px / 16px 8px repeat-x,
    radial-gradient(circle, #efe6da 0 2.4px, transparent 2.9px) 6px calc(100% - 9px) / 16px 8px repeat-x,
    #221e1a;
}
.contact[data-open] .contact__strip > li { animation: rise 0.6s var(--glide) both calc(0.12s + var(--i, 0) * 0.06s); }
.frame { padding: 6px 6px 6px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(239 230 218 / 0.16); }
.frame__loop { left: -2px; right: -2px; top: -3px; }
.frame__meta { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: #b9ad9e; }
.frame__meta b { font-weight: 500; color: #efe6da; }

@media (prefers-reduced-motion: reduce) {
  .spine::before { animation: none; }
  .contact__drawer, .contact__inner { transition: none; }
  .contact[data-open] .contact__strip > li { animation: none; }
}

/* contact frames: long titles truncate instead of widening the frame */
.contact__strip > li { min-width: 0; }
.frame { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.frame__row { min-width: 0; }
.frame__t { min-width: 0; }

/* v3.1 · headline entrance: plain fade-up, no line mask (nothing can be clipped) */
.headline .ln { overflow: visible; padding-block: 0; margin-block: 0; }
@keyframes head-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.js-intro .headline .ln:nth-child(1) > span { animation: head-rise 0.9s var(--glide) both 0.25s; }
.js-intro .headline .ln:nth-child(2) > span { animation: head-rise 0.9s var(--glide) both 0.38s; }
