/* =====================================================================
   MANY SUBTLE CHANNELS — "Airy Reissue"
   A whitespace-first, whimsical reskin. Big friendly geometric type,
   drifting ovals, playful toys set in calm frames.
   ===================================================================== */

:root{
  --paper:      #FCFBF9;
  --paper-2:    #F4F2EC;
  --paper-soft: #EFEDE6;
  --ink:        #16130E;
  --ink-2:      #4B463C;
  --muted:      #948D7F;
  --line:       #E6E2D8;
  --line-soft:  #EEEBE3;

  --accent:     #1A1712;   /* set live by JS from tweaks */
  --accent-2:   #1A1712;   /* secondary (duo mode) */
  --on-accent:  #FFFFFF;
  --hand:       var(--accent);

  --f-display: "Canela", "Canela Text", "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body:    "Courier New", "Courier", monospace;
  --f-mono:    "Courier New", "Courier", monospace;
  --f-hand:    "Caveat", "Comic Sans MS", cursive;

  --maxw: 1240px;
  --pad:  7vw;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html,body{ margin:0; padding:0; }
body{
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.bg-pure{ --paper:#FFFFFF; --paper-2:#F6F6F6; --paper-soft:#F0F0F0; --line:#ECECEC; --line-soft:#F2F2F2; }
body.bg-warm{ --paper:#FBF8F1; --paper-2:#F2EEE3; --paper-soft:#ECE7DA; --line:#E7E1D2; --line-soft:#EFEAdd; }

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

a{ color: inherit; }

/* ---------- drifting ovals ---------- */
.blobs{
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: 1; transition: opacity .6s ease;
}
body.no-blobs .blobs{ opacity: 0; }
.blob{
  position: absolute; border-radius: 50%;
  filter: blur(8px);
  opacity: 0.12;
  will-change: transform;
}
.blob.b1{ width: 46vw; height: 38vw; left: -14vw; top: -8vw; background: var(--accent);
  animation: drift1 26s ease-in-out infinite; }
.blob.b2{ width: 30vw; height: 30vw; right: -8vw; top: 32vh; background: var(--accent-2);
  opacity: 0.09; animation: drift2 32s ease-in-out infinite; }
.blob.b3{ width: 34vw; height: 26vw; left: 8vw; bottom: -10vw; background: var(--accent);
  opacity: 0.07; animation: drift3 38s ease-in-out infinite; }
body.calm .blob{ animation: none !important; }
@keyframes drift1{ 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(6vw,4vh) scale(1.08);} }
@keyframes drift2{ 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-5vw,6vh) scale(1.12);} }
@keyframes drift3{ 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(4vw,-5vh) scale(1.06);} }

/* ---------- layout ---------- */
.wrap{ position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section{ position: relative; }
.sec{ margin-top: clamp(110px, 15vh, 200px); scroll-margin-top: 90px; }

/* ---------- top bar ---------- */
.topbar{
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad);
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled{ border-bottom-color: var(--line); }
.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .oval{
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  transition: transform .5s cubic-bezier(.5,1.6,.4,1);
}
.brand:hover .oval{ transform: rotate(-12deg) scale(1.06); }
.brand .bname{ font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand .bname em{ font-style: italic; }
.nav{ display: flex; align-items: center; gap: 6px; }
.nav a{
  text-decoration: none; color: var(--ink-2);
  font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover{ background: var(--paper-2); color: var(--ink); }
.chip-now{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-2); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.chip-now:hover{ border-color: var(--accent); color: var(--ink); }
.chip-now .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .4; transform: scale(.7);} }
@media (max-width: 880px){ .nav{ display: none; } }

/* ---------- hero ---------- */
.hero{ padding: clamp(64px, 12vh, 150px) 0 0; }
.hero .hello{
  font-family: var(--f-hand); font-size: clamp(26px, 4vw, 40px);
  color: var(--accent); transform: rotate(-3deg); display: inline-block;
  margin-bottom: 10px;
}
.hero h1{
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(44px, 8.4vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  max-width: 16ch;
}
.hero h1 .wave{ display: inline-block; transform-origin: 70% 80%; animation: wave 3.4s ease-in-out infinite; }
@keyframes wave{ 0%,60%,100%{ transform: rotate(0);} 70%{ transform: rotate(16deg);} 80%{ transform: rotate(-8deg);} 90%{ transform: rotate(12deg);} }
.hero h1 .ul{
  position: relative; white-space: nowrap; color: var(--accent);
}
.hero h1 .ul::after{ content: none; }
@keyframes drawline{ to{ transform: scaleX(1);} }
.hero .lede{
  margin: 34px 0 0; max-width: 30ch;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
.hero .lede a{ color: var(--ink); text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); transition: background .2s; }
.hero .lede a:hover{ background: color-mix(in oklab, var(--accent) 18%, transparent); }
.hero-row{ display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
@media (max-width: 820px){ .hero-row{ grid-template-columns: 1fr; } }

.scrollcue{
  margin-top: 60px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.scrollcue .ar{ width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }

/* the playful spot in the hero (drifting record) */
.hero-spot{ position: relative; width: clamp(150px, 20vw, 240px); aspect-ratio: 1; will-change: transform; cursor: pointer; }
.hero-spot .glow{
  position: absolute; inset: -36%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 60%, transparent) 0%, transparent 62%);
  filter: blur(30px); opacity: 0; transition: opacity .45s ease;
}
.hero-spot.lit .glow{ opacity: .6; }
.hero-spot .rec{
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 16%, transparent 16.5% 22%, var(--accent) 22% 22.6%, transparent 23% 100%),
    repeating-radial-gradient(circle at 50% 50%, var(--ink) 0 1px, transparent 1px 5px);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0 49%, transparent 49.5%);
          mask: radial-gradient(circle at 50% 50%, #000 0 49%, transparent 49.5%);
  border: 1px solid var(--line);
  animation: spin 18s linear infinite;
}
.hero-spot .hub{ position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); transform: translate(-50%,-50%); }
.hero-spot .hub::after{ content:""; position:absolute; left:50%; top:50%; width:18%; aspect-ratio:1; background: var(--paper); border-radius:50%; transform: translate(-50%,-50%); }
body.calm .hero-spot .rec{ animation-duration: 60s; }
@keyframes spin{ to{ transform: rotate(360deg);} }
.hero-spot .pen{
  position: absolute; right: -36px; top: 8%;
  font-family: var(--f-hand); font-size: 20px; color: var(--accent); transform: rotate(8deg); width: 90px; line-height: 1.05;
}
@media (max-width: 820px){ .hero-spot{ display:none; } }

/* ---------- constraint pill ---------- */
.constraint{
  margin-top: 40px; display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--paper-2); border-radius: 999px; padding: 12px 22px;
  font-size: 16px;
}
.constraint .k{ font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.constraint em{ font-style: italic; }
.constraint .src{ color: var(--muted); font-size: 14px; }

/* ---------- section heads ---------- */
.head{ display: flex; align-items: flex-end; gap: 22px; margin-bottom: 46px; }
.head .num{
  display: none;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent);
  padding-bottom: 10px;
}
.head h2{
  font-family: var(--f-hand); font-weight: 600; font-size: 22px;
  line-height: 1.2; letter-spacing: 0; margin: 0; color: var(--accent);
  transform: rotate(-2deg); padding-bottom: 6px; white-space: nowrap;
}
.head h2 em{ font-style: normal; color: var(--accent); }
.head .rule{ display: none; }
.head h2 ~ .aside{ margin-left: auto; }
.head .aside{ font-family: var(--f-hand); font-size: 22px; color: var(--accent); transform: rotate(-2deg); padding-bottom: 6px; white-space: nowrap; }
@media (max-width: 720px){ .head{ flex-wrap: wrap; gap: 10px; } .head .rule{ display:none; } .head .aside{ width: 100%; } }

/* ---------- about ---------- */
.about{ display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px){ .about{ grid-template-columns: 1fr; gap: 40px; } }
.portrait{
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4/5; background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.4,1.5,.4,1);
}
.about-portrait-wrap{ position: relative; transform: rotate(-2deg); transition: transform .5s cubic-bezier(.4,1.5,.4,1); }
.about-portrait-wrap:hover{ transform: rotate(0); }
.portrait .cap{
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-family: var(--f-hand); font-size: 22px; color: var(--ink);
}
.about-facts{ margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.about-facts dt{ font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.about-facts dd{ margin: 0; font-size: 16px; color: var(--ink-2); }
.about-facts dd em{ font-style: italic; color: var(--ink); }

.about-body .big{
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.25; letter-spacing: -0.02em;
  margin: 0 0 26px; text-wrap: pretty;
}
.about-body .big b{ font-weight: 700; color: var(--accent); }
.about-body p{ margin: 0 0 18px; max-width: 56ch; color: var(--ink-2); text-wrap: pretty; }
.about-body p:last-child{ margin-bottom: 0; }
.tagpill{ display: inline-block; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px dashed var(--accent); border-radius: 999px; padding: 6px 14px; }
.fn{ position: relative; cursor: help; box-shadow: inset 0 -1px 0 var(--accent); }
.fn::after{
  content: attr(data-fn); position: fixed; left: var(--fn-left, 50%); top: var(--fn-top, -999px);
  transform: translate(-50%, var(--fn-ty, -100%));
  background: var(--ink); color: var(--paper); padding: 9px 13px; border-radius: 10px;
  font-family: var(--f-body); font-size: 13px; letter-spacing: 0; line-height: 1.4; font-weight: 400;
  width: max-content; max-width: min(260px, 84vw); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; text-wrap: pretty;
}
.fn:hover::after, .fn.fn-open::after, .fn:focus-visible::after{ opacity: 1; }
.fn-img{ position: relative; cursor: help; box-shadow: inset 0 -1px 0 var(--accent); }
.fn-img img{
  position: fixed; left: var(--fn-left, 50%); top: var(--fn-top, -999px);
  transform: translate(-50%, var(--fn-ty, -100%)) scale(.96);
  width: min(170px, 54vw); height: auto; border-radius: 4px; border: 5px solid var(--paper);
  box-shadow: 0 20px 44px -14px rgba(22,19,14,.55); background: var(--paper);
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  transform-origin: bottom center; z-index: 60;
}
.fn-img:hover img, .fn-img.fn-open img, .fn-img:focus-visible img{ opacity: 1; transform: translate(-50%, var(--fn-ty, -100%)) scale(1); }
.strike{ text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; color: var(--muted); }

/* margin scribbles (whimsy) */
.scribble{ font-family: var(--f-hand); color: var(--accent); }

/* =====================================================================
   TOYS  (book / boombox / typewriter) — airy frames
   ===================================================================== */
.toy{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.toy.flip{ grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 860px){ .toy, .toy.flip{ grid-template-columns: 1fr; gap: 36px; } }
.toy-meta{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 18px; display:flex; gap:14px; flex-wrap:wrap; }
.toy-meta .ch{ color: var(--accent); }
.toy-aside .ribbon{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.toy-aside .t-title{ font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -0.03em; margin: 10px 0 6px; text-wrap: balance; }
.toy-aside .t-by{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 20px; }
.toy-aside p{ margin: 0 0 20px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.toy-aside .t-scribble{ font-family: var(--f-hand); font-size: 23px; color: var(--accent); line-height: 1.2; }
.toy-tracks{ margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; font-family: var(--f-mono); font-size: 13px; line-height: 2; color: var(--ink-2); }
.toy-tracks .t.playing{ color: var(--accent); }
.toy-tracks .t.playing::before{ content:"▶ "; }

.stage{ position: relative; }

/* --- book stack (SVG) --- */
.book-stage{ display: grid; place-items: center; min-height: 440px; }
.stack{ position: relative; width: min(500px, 94%); cursor: pointer; transition: transform .4s cubic-bezier(.5,1.4,.4,1); }
.stack:hover{ transform: translateY(-4px); }
.stack svg{ width: 100%; height: auto; display: block; color: var(--ink); }
.stack .books-img{ width: 100%; height: auto; display: block; margin: 0 auto; }
.stack .hint{ position: absolute; top: -32px; left: 12px; width: max-content; max-width: 60%; font-family: var(--f-hand); font-size: 22px; color: var(--accent); transform: rotate(-3deg); transition: opacity .3s; }
.book-stage.open .stack{ filter: blur(2px) saturate(.5); opacity: .35; transform: scale(.96); pointer-events: none; }
.book-stage.open .hint{ opacity: 0; }
@media (max-width: 600px){ .stack .hint{ top: -28px; left: 8px; font-size: 18px; } }
/* Book section: keep the fixed-width book image from forcing the grid wider than
   the phone viewport (which clipped both the stack and the paragraph text). */
@media (max-width: 860px){
  .toy.flip .toy-aside, .toy.flip .stage{ min-width: 0; }
  .toy.flip .book-stage{ min-height: 0; }
  .toy.flip .stack{ width: min(420px, 100%); margin: 0 auto; }
  .toy.flip .stack .books-img{ width: 100% !important; max-width: 100% !important; margin: 0 auto !important; }
}
.openbook{
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); box-shadow: 0 30px 60px -30px rgba(22,19,14,.4);
  opacity: 0; transform: scale(.7) rotateX(-22deg); transform-origin: center top; perspective: 1200px;
  pointer-events: none; transition: opacity .4s, transform .6s cubic-bezier(.5,1.5,.4,1);
}
.book-stage.open .openbook{ opacity: 1; transform: none; pointer-events: auto; }
.ob-page{ padding: 30px 30px 34px; position: relative; }
.ob-l{ border-right: 1px solid var(--line); background: var(--paper-2); }
.ob-corner{ font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.ob-title{ font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.ob-author{ font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; line-height: 1.8; }
.ob-headline{ font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.25; margin: 0 0 12px; }
.ob-page p{ margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.ob-scribble{ font-family: var(--f-hand); font-size: 21px; color: var(--accent); margin-top: 14px; }
.ob-close{ position: absolute; top: 12px; right: 14px; z-index: 5; appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: background .2s,color .2s,border-color .2s; }
.ob-close:hover{ background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 600px){ .openbook{ grid-template-columns: 1fr; overflow-y: auto; } .ob-l{ border-right: 0; border-bottom: 1px solid var(--line); } }

/* --- boombox --- */
.music-stage{ position: relative; display: grid; place-items: center; cursor: pointer; }
.boombox{ width: min(420px, 92%); height: auto; display: block; transition: transform .4s; transform-origin: center bottom; }
.music-stage.playing .boombox{ animation: bob2 .5s ease-in-out infinite alternate; }
@keyframes bob2{ 0%{ transform: rotate(-.8deg) translateY(0);} 100%{ transform: rotate(.8deg) translateY(-3px);} }
.music-stage .hint{ position: absolute; left: 2%; bottom: 12%; font-family: var(--f-hand); font-size: 22px; color: var(--accent); transform: rotate(-4deg); transition: opacity .3s; }
.music-stage.playing .hint{ opacity: 0; }
.notes{ position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.notes .nt{ position: absolute; font-family: "Times New Roman", serif; color: var(--accent); opacity: 0; }
.notes .n1{ top: 38%; left: 22%; font-size: 42px; } .notes .n2{ top: 30%; left: 12%; font-size: 50px; }
.notes .n3{ top: 26%; left: 30%; font-size: 56px; } .notes .n4{ top: 38%; right: 22%; font-size: 38px; }
.notes .n5{ top: 30%; right: 30%; font-size: 32px; } .notes .n6{ top: 24%; right: 12%; font-size: 40px; }
.music-stage.playing .n1{ animation: rise 2.6s ease-out infinite 0s; }
.music-stage.playing .n2{ animation: rise 3.0s ease-out infinite .4s; }
.music-stage.playing .n3{ animation: rise 2.8s ease-out infinite .9s; }
.music-stage.playing .n4{ animation: rise 2.5s ease-out infinite 1.3s; }
.music-stage.playing .n5{ animation: rise 3.2s ease-out infinite 1.7s; }
.music-stage.playing .n6{ animation: rise 2.7s ease-out infinite 2.1s; }
@keyframes rise{ 0%{ opacity:0; transform: translate(0,0) rotate(0);} 15%{ opacity:.9;} 100%{ opacity:0; transform: translate(26px,-90px) rotate(18deg);} }

/* --- typewriter --- */
.writing-stage{ position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.tw-img{ width: min(360px, 86%); height: auto; display: block; position: relative; z-index: 2; transition: transform .4s; }
.writing-stage:hover .tw-img{ transform: translateY(2px); }
.tw-paper{
  width: 58%; max-width: 250px; height: 0; overflow: hidden; position: relative; z-index: 1;
  margin-bottom: -2.5%;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, var(--line-soft) 23px 24px),
    var(--paper);
  border: 0 solid var(--line); border-radius: 4px 4px 0 0;
  transition: height 1.2s cubic-bezier(.5,1.4,.3,1), border-width 0s;
}
.writing-stage.rolling .tw-paper{ height: var(--tw-h, 320px); border-width: 1px 1px 0 1px; box-shadow: 0 -6px 14px -8px rgba(0,0,0,.2); }
.tw-paper .pc{ padding: 22px 22px 14px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.95; color: var(--ink); }
.tw-paper .ph{ font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--accent); text-align: center; margin-bottom: 12px; letter-spacing: -0.01em; }
.tw-paper .pb{ white-space: pre-line; }
.tw-paper .ps{ font-size: 10.5px; color: var(--muted); margin-top: 10px; font-style: italic; }
.writing-stage .hint{ position: absolute; bottom: -4%; right: auto; left: 50%; top: auto; font-family: var(--f-hand); font-size: 22px; color: var(--accent); transform: translateX(-50%) rotate(-2deg); transition: opacity .3s; z-index: 3; pointer-events: none; white-space: nowrap; }
.writing-stage.rolling .hint{ opacity: 0; }
@media (max-width: 600px){
  .tw-img{ width: min(360px, 94%); }
  .tw-paper{ width: 84%; max-width: 330px; }
  .tw-paper .pc{ padding: 20px 18px 14px; font-size: 13.5px; line-height: 1.85; }
}

/* nudge for untouched toys */
@keyframes nudge{ 0%,92%,100%{ transform: translate(0,0) rotate(0);} 94%{ transform: translate(0,-2px) rotate(-.4deg);} 96%{ transform: translate(0,-1px) rotate(.4deg);} 98%{ transform: translate(0,0);} }
.stack:not(.touched), .music-stage:not(.touched) .boombox, .writing-stage:not(.touched) .tw-img{ animation: nudge 5s ease-in-out infinite; transform-origin: center bottom; }
body.calm .stack, body.calm .boombox, body.calm .tw-img{ animation: none !important; }

/* =====================================================================
   PHOTOGRAPHS
   ===================================================================== */
.gallery{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px){ .gallery{ grid-template-columns: repeat(2, 1fr); } }
.photo{ position: relative; transition: transform .4s cubic-bezier(.4,1.5,.4,1); }
.photo:nth-child(1){ transform: rotate(-2deg); } .photo:nth-child(2){ transform: rotate(1.4deg) translateY(14px); }
.photo:nth-child(3){ transform: rotate(-1deg) translateY(-8px); } .photo:nth-child(4){ transform: rotate(2deg); }
.photo:nth-child(5){ transform: rotate(1.2deg) translateY(10px); } .photo:nth-child(6){ transform: rotate(-2.2deg); }
.photo:nth-child(7){ transform: rotate(.8deg) translateY(-6px); } .photo:nth-child(8){ transform: rotate(-1.4deg) translateY(8px); }
.photo:hover{ transform: rotate(0) translateY(-8px) scale(1.04); z-index: 5; }
.photo .frame{ border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.photo .cap{ margin-top: 10px; font-family: var(--f-hand); font-size: 18px; color: var(--ink-2); text-align: center; }
.video-frame{ position: relative; cursor: pointer; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.video-frame video{ border-radius: inherit; }
.video-frame .play-badge{
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--paper); pointer-events: none; transition: opacity .3s;
}
.video-frame .play-badge svg{
  width: 56px; height: 56px; padding: 14px; border-radius: 999px;
  background: rgba(20,17,12,.45); backdrop-filter: blur(2px);
}
.video-frame.playing .play-badge{ opacity: 0; }

/* placeholder fill */
.ph-img{
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--paper-soft) 0 10px, var(--paper-2) 10px 20px);
  display: grid; place-items: center; text-align: center; padding: 14px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase;
}

/* =====================================================================
   CURRENTLY
   ===================================================================== */
.currently{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 720px){ .currently{ grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.currently h4{ margin: 0 0 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.currently ul{ margin: 0; padding: 0; list-style: none; }
.currently li{ padding: 7px 0; font-size: 16px; line-height: 1.35; }
.currently li b{ font-weight: 600; }
.currently li .who{ display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); margin-top: 2px; }
.currently li a.ext{ color: inherit; text-decoration: none; transition: color .18s ease; }
.currently li a.ext::after{ content: "\2197"; font-size: 0.7em; line-height: 0; margin-left: 3px; opacity: 0; transition: opacity .18s ease; color: var(--accent); }
.currently li a.ext:hover::after, .currently li a.ext:focus-visible::after{ opacity: 1; }
/* one-time flash when the Currently section scrolls into view, so the link
   affordance is discoverable without being permanently visible */
@keyframes extFlash{ 0%{ opacity: 0; } 25%{ opacity: 1; } 65%{ opacity: 1; } 100%{ opacity: 0; } }
.currently.flash-ext li a.ext::after{ animation: extFlash 1.7s ease; }
.currently.flash-ext li:nth-child(2) a.ext::after{ animation-delay: .1s; }
.currently.flash-ext li:nth-child(3) a.ext::after{ animation-delay: .2s; }
@media (prefers-reduced-motion: reduce){ .currently.flash-ext li a.ext::after{ animation: none; } }
.currently li a.ext:hover b, .currently li a.ext:focus-visible b{ color: var(--accent); }

/* =====================================================================
   WRITINGS / ESSAYS
   ===================================================================== */
.essays{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
@media (max-width: 760px){ .essays{ grid-template-columns: 1fr; } }
.essay{ display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.essay .en{ width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; transition: background .25s, color .25s, border-color .25s; }
.essay:hover .en{ background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(-8deg); }
.essay .emeta{ font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.essay .etitle{ font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 9px; transition: color .2s; text-wrap: balance; }
.essay:hover .etitle{ color: var(--accent); }
.essay .eblurb{ margin: 0; font-size: 15.5px; color: var(--ink-2); text-wrap: pretty; }
.essay .etags{ margin-top: 11px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: flex; gap: 14px; flex-wrap: wrap; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.colophon{ margin-top: clamp(110px, 16vh, 200px); padding: 56px 0 80px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
@media (max-width: 720px){ .colophon{ grid-template-columns: 1fr; } }
.colophon .signoff{ font-family: var(--f-hand); font-size: clamp(34px, 5vw, 60px); color: var(--ink); line-height: 0.95; }
.colophon .signoff .accent{ color: var(--accent); }
.colophon .meta{ font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.9; text-align: right; }
.colophon .meta a{ color: var(--ink-2); text-decoration: none; box-shadow: inset 0 -1px 0 var(--line); }
.colophon .meta a:hover{ color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
.colophon .social{ display: flex; gap: 14px; justify-content: flex-end; margin-bottom: 14px; }
.colophon .social a{ color: var(--muted); box-shadow: none; display: inline-flex; transition: color .2s ease; }
.colophon .social a svg{ width: 20px; height: 20px; stroke-width: 1.75; }
.colophon .social a:hover{ color: var(--accent); box-shadow: none; }
@media (max-width: 720px){ .colophon .social{ justify-content: flex-start; } }
@media (max-width: 720px){ .colophon .meta{ text-align: left; } }

/* =====================================================================
   CHANNEL DIAL (reimagined, floating bottom-left)
   ===================================================================== */
.dial{
  position: fixed; left: 20px; bottom: 20px; z-index: 45; width: 176px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px 12px;
  box-shadow: 0 16px 40px -20px rgba(22,19,14,.45);
  font-family: var(--f-mono); user-select: none;
  transition: transform .4s cubic-bezier(.5,1.5,.4,1), opacity .3s;
}
.dial .dl{ font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dial .df{ font-size: 20px; color: var(--accent); letter-spacing: 0.02em; margin: 2px 0 8px; }
.dial .track{ position: relative; height: 16px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dial .needle{ position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); border-radius: 2px; transition: left .5s cubic-bezier(.6,1.6,.4,1); }
.dial .btns{ display: flex; gap: 5px; margin-top: 10px; }
.dial .btns button{ flex: 1; font-family: var(--f-mono); font-size: 9px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); padding: 5px 0; cursor: pointer; border-radius: 7px; letter-spacing: 0.06em; text-transform: uppercase; transition: all .15s; }
.dial .btns button:hover{ border-color: var(--accent); color: var(--ink); }
.dial .btns button[aria-current="true"]{ background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dial .hint{ font-size: 8.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; line-height: 1.4; }
@media (max-width: 600px){ .dial{ display: none; } }

/* channel fade */
.ch-fade{ animation: chfade .5s ease; }
@keyframes chfade{ 0%{ opacity: 0; filter: blur(6px); transform: translateY(5px);} 100%{ opacity: 1; filter: none; transform: none;} }
body.calm .ch-fade{ animation: none; }

/* ---------- headline variant: centered ---------- */
body.hl-center .hero{ text-align: center; }
body.hl-center .hero-row{ grid-template-columns: 1fr; justify-items: center; }
body.hl-center .hero h1{ max-width: 18ch; margin-inline: auto; }
body.hl-center .hero .lede{ margin-inline: auto; max-width: 34ch; }
body.hl-center .hero .hello{ transform: rotate(0); }
body.hl-center .hero-spot{ display: none; }
body.hl-center .scrollcue{ justify-content: center; }
body.hl-center .constraint{ display: inline-flex; }

/* ---------- scribbles toggle ---------- */
body.no-scribble .hero .hello,
body.no-scribble .head .aside,
body.no-scribble .scribble,
body.no-scribble .hero-spot .pen,
body.no-scribble .stack .hint,
body.no-scribble .music-stage .hint,
body.no-scribble .writing-stage .hint,
body.no-scribble .portrait .cap,
body.no-scribble .ob-scribble,
body.no-scribble .t-scribble,
body.no-scribble .photo .cap{ display: none !important; }

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html{ scroll-behavior: auto; }
}

/* =====================================================================
   TWEAKS PANEL (vanilla)
   ===================================================================== */
.twk{ position: fixed; right: 16px; bottom: 16px; z-index: 9999; width: 268px; display: none; flex-direction: column;
  background: rgba(252,251,249,.82); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  font-family: var(--f-body); color: var(--ink); overflow: hidden; }
.twk.on{ display: flex; }
.twk-hd{ display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 12px 16px; }
.twk-hd b{ font-size: 13px; font-weight: 700; }
.twk-x{ appearance: none; border: 0; background: transparent; color: var(--muted); width: 24px; height: 24px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.twk-x:hover{ background: rgba(0,0,0,.06); color: var(--ink); }
.twk-bd{ padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow-y: auto; }
.twk-sec{ font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.twk-row{ display: flex; flex-direction: column; gap: 7px; }
.twk-row > .twk-l{ font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.twk-swatches{ display: flex; gap: 8px; }
.twk-sw{ width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.twk-sw[aria-current="true"]{ border-color: var(--ink); }
.twk-sw.duo{ background: conic-gradient(var(--a) 0 50%, var(--b) 50% 100%) !important; }
.twk-seg{ display: flex; gap: 4px; background: rgba(0,0,0,.05); border-radius: 9px; padding: 3px; }
.twk-seg button{ flex: 1; appearance: none; border: 0; background: transparent; color: var(--ink-2); font-family: var(--f-body); font-size: 11.5px; font-weight: 500; padding: 6px 4px; border-radius: 7px; cursor: pointer; }
.twk-seg button[aria-current="true"]{ background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.twk-toggle{ display: flex; align-items: center; justify-content: space-between; }
.twk-tg{ width: 40px; height: 23px; border-radius: 999px; background: rgba(0,0,0,.15); border: 0; cursor: pointer; position: relative; transition: background .2s; }
.twk-tg::after{ content:""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.twk-tg[aria-checked="true"]{ background: var(--accent); }
.twk-tg[aria-checked="true"]::after{ left: 19px; }
.twk-range{ width: 100%; }

/* =====================================================================
   SERIF DISPLAY ADJUSTMENTS (Instrument Serif is single-weight)
   Lean on size, italic and colour for hierarchy — not faux-bold.
   ===================================================================== */
.hero h1, .about-body .big, .toy-aside .t-title,
.ob-title, .ob-headline, .tw-paper .ph, .essay .etitle{
  font-weight: 400 !important;
  font-synthesis-weight: none;
}
.hero h1{ letter-spacing: -0.01em; line-height: 1.02; max-width: 18ch; }
.toy-aside .t-title{ letter-spacing: -0.005em; }
.about-body .big{ letter-spacing: -0.005em; line-height: 1.3; }
.about-body .big b{ font-weight: 400; font-style: italic; }
.ob-title{ letter-spacing: -0.005em; }
/* Courier sets run a touch wide — tighten the tiny tracked labels */
.toy-meta, .ob-author, .currently li .who, .essay .emeta,
.essay .etags, .ribbon, .colophon .meta, .constraint .k,
.about-facts dt, .currently h4, .head .num, .dial .dl,
.scrollcue, .ph-img{ letter-spacing: 0.02em; }
.hero .hello{ font-family: var(--f-hand); }
