/* ============================================================
   zacgibson.work — site.css
   The notebook: a sheet on a desk. Layout + sections + chrome.
   Foundation lives in paper.css.
   ============================================================ */

body {
  font-family: var(--hand-2);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: var(--cursor);
}
/* desk grain + faint vignette */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  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='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: multiply;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 0%, transparent 60%, rgba(60,42,8,.14) 100%);
}

.mono { font-family: var(--mono); }
.fr { font-family: var(--serif); font-style: italic; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--accent); color: #fff; padding: 9px 15px; border-radius: 5px;
  font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 12px; }

/* ── custom cursor (ink dot → pen ring) ── */
.cursor {
  position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 400;
  transform: translate(-50%,-50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease), border-width .2s;
  border: 0 solid var(--accent); will-change: transform;
}
.cursor.ring { width: 34px; height: 34px; background: transparent; border-width: 1.6px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } :root { --cursor: auto; } }

/* ── scroll progress (ink line) ── */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent);
  z-index: 200;
}

/* ── file chrome ── */
.doc {
  position: fixed; inset: 12px; z-index: 90; pointer-events: none;
  border: 1px solid rgba(70,48,8,.16); border-radius: 3px;
  opacity: 0; transition: opacity 1s var(--ease);
}
body.ready .doc { opacity: 1; }
.tick { position: absolute; width: 12px; height: 12px; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--ink-faint); }
.tick::before { width: 12px; height: 1px; top: 0; }
.tick::after { width: 1px; height: 12px; left: 0; }
.tick.tl { top: -1px; left: -1px; }
.tick.tr { top: -1px; right: -1px; } .tick.tr::after { left: auto; right: 0; }
.tick.bl { bottom: -1px; left: -1px; } .tick.bl::before { top: auto; bottom: 0; }
.tick.br { bottom: -1px; right: -1px; } .tick.br::before { top: auto; bottom: 0; } .tick.br::after { left: auto; right: 0; }
.margin-l, .margin-r {
  position: fixed; top: 50%; font-size: 9.5px; letter-spacing: .3em; color: var(--ink-faint);
  text-transform: uppercase; writing-mode: vertical-rl;
}
.margin-l { left: 17px; transform: translateY(-50%) rotate(180deg); }
.margin-r { right: 17px; transform: translateY(-50%); }
.timecode {
  position: fixed; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .12em; color: var(--ink-faint);
}
@media (max-width: 1000px) { .margin-l, .margin-r { display: none; } }
@media (max-width: 600px) { .timecode { bottom: 16px; right: 16px; } }
@media print { .doc, .timecode { display: none; } }

/* ── HEADER ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(18px, 4vw, 40px);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(9px) saturate(120%);
  border-bottom-color: rgba(70,48,8,.16);
}
.brand {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--ink); border-radius: 5px; box-shadow: var(--shadow-sm);
  background: var(--paper); transform: rotate(-2deg); will-change: transform;
}
.brand-mark { font-family: var(--hand); font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink); }
.nav-links { display: flex; gap: 20px; margin-left: 6px; }
.nav-links a {
  font-family: var(--stamp); font-weight: 600; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-tail { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.cmdk-trigger, .ink-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.6px solid var(--ink); border-radius: 5px; padding: 7px 12px;
  font-size: 11px; color: var(--ink); background: var(--paper);
  box-shadow: var(--shadow-sm); transition: transform .12s var(--ease), box-shadow .12s var(--ease);
  will-change: transform;
}
.cmdk-trigger:hover, .ink-toggle:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.cmdk-trigger, .ink-toggle { white-space: nowrap; }
.cmdk-trigger .mono, .ink-toggle .mono { font-size: 11px; letter-spacing: .04em; }
.ink-swatch { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--ink); flex: none; }
@media (max-width: 820px) { .nav-links { display: none; } .cmdk-word { display: none; } }

/* ── THE PAGE (sheet on a desk) ── */
.page {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--paper-edge); border-right: 1px solid var(--paper-edge);
  box-shadow: 0 0 0 1px rgba(70,48,8,.05), 0 30px 80px -40px rgba(40,26,8,.55);
  --mx: clamp(26px, 6vw, 78px);
  padding-left: calc(var(--mx) + clamp(18px, 2.6vw, 44px));
  padding-right: clamp(30px, 6vw, 78px);
  padding-bottom: 0;
}
/* the red margin rule */
.page::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--mx);
  width: 2px; background: color-mix(in oklab, var(--margin-red) 78%, transparent);
  z-index: 3; pointer-events: none;
}
/* binder clip at the top */
.page-clip {
  position: absolute; top: -8px; left: clamp(120px, 30%, 360px); z-index: 6;
  width: 70px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, #c9c2b0, #9a917b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 3px rgba(0,0,0,.25), 0 4px 8px -2px rgba(0,0,0,.4);
}
.page-clip::after {
  content: ""; position: absolute; inset: 5px 10px auto; height: 4px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(0,0,0,.18));
}
@media (max-width: 720px) { .page-clip { display: none; } }

section {
  position: relative; z-index: 2;
  padding-top: clamp(54px, 8vh, 92px); padding-bottom: clamp(10px, 2vh, 24px);
}

/* ── section labels ── */
.section-label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 26px;
  font-family: var(--stamp); font-weight: 600; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
.section-no {
  display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px;
  font-size: 10px; color: #fff; background: var(--accent); border-radius: 3px;
  letter-spacing: .06em; transform: rotate(-2deg);
}
.sec-div { margin: clamp(8px,2vh,18px) 0 0; opacity: .85; }

/* ── 1 · HERO ── */
.hero {
  padding-top: clamp(122px, 19vh, 188px);
  padding-bottom: clamp(40px, 8vh, 76px);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule-spacing) - 1px), var(--rule-blue) calc(var(--rule-spacing) - 1px) var(--rule-spacing));
  background-position: 0 6px;
}
.hero-kicker { margin: 0 0 26px; }
.name {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(76px, 16vw, 196px); line-height: .82; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 8px;
}
.name .mask { display: block; overflow: hidden; padding: 0 .04em; margin: 0 -.04em; }
.name .mask:last-child { position: relative; padding-bottom: .12em; }
.name-w { display: block; }
html.js .name-w { transform: translateY(112%); transition: transform 1.1s var(--ease); }
body.ready .name-w { transform: translateY(0); }
/* the hand-drawn underline that draws on load */
.name-draw {
  position: absolute; left: .02em; bottom: .02em; width: min(7.4em, 92%); height: .26em;
  overflow: visible; pointer-events: none;
}
.name-draw path {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 760; stroke-dashoffset: 760;
}
body.ready .name-draw path { animation: draw 1s var(--ease) .85s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-intro {
  font-size: clamp(18px, 2.1vw, 24px); line-height: 1.66; color: var(--ink-soft);
  max-width: 30ch; margin: 30px 0 0;
}
.hero-intro b { color: var(--ink); font-weight: 400; }
.lede-link {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent);
  border-bottom: 1.5px solid var(--accent-soft); transition: border-color .2s;
}
.lede-link:hover { border-bottom-color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-sticky {
  position: absolute; top: clamp(128px, 17vh, 188px); right: clamp(8px, 3vw, 36px);
  width: 224px; transform: rotate(2.4deg); max-width: 42vw;
}
.hero-sticky .tape { top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
@media (max-width: 900px) {
  .hero-intro { max-width: 36ch; }
  .hero-sticky { position: static; margin-top: 36px; transform: rotate(-1.4deg); width: 260px; max-width: 100%; }
}

.scrollcue { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(40px, 7vh, 72px); color: var(--ink-faint); }
.scrollcue .mono { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.scrollcue .sc-bar { width: 1.5px; height: 36px; background: var(--paper-edge); position: relative; overflow: hidden; }
.scrollcue .sc-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%);
  animation: scdrop 2.2s var(--ease) infinite;
}
@keyframes scdrop { 0% { transform: translateY(-100%); } 55%,100% { transform: translateY(100%); } }

/* ── 2 · RIBBON ── */
.ribbon {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.ribbon-cell { padding: 26px clamp(14px, 2vw, 26px); border-left: 1px dashed var(--paper-edge); }
.ribbon-cell:first-child { border-left: none; }
.fig {
  font-family: var(--hand); font-weight: 700; font-size: clamp(46px, 6vw, 72px); line-height: .9;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.fig-text { font-family: var(--stamp); font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: .01em; }
.fig-note { font-size: 11px; line-height: 1.5; color: var(--ink-faint); margin: 12px 0 0; letter-spacing: .02em; }
@media (max-width: 760px) {
  .ribbon { grid-template-columns: repeat(2, 1fr); }
  .ribbon-cell:nth-child(3) { border-left: none; }
  .ribbon-cell:nth-child(n+3) { border-top: 1px dashed var(--paper-edge); }
}

/* ── 3 · HEADLINER ── */
.card-feature { padding: clamp(28px, 4vw, 52px); transform: rotate(-.5deg); will-change: transform; }
.spotlight {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), var(--accent-soft), transparent 60%);
}
.card-feature:hover .spotlight { opacity: 1; }
.cf-stamp { position: absolute; top: -13px; left: 26px; }
.cf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 0; }
.cf-title { font-family: var(--hand); font-weight: 700; font-size: clamp(54px, 8vw, 104px); line-height: .9; color: var(--ink); }
.cf-domain { font-size: 12px; color: var(--ink-faint); }
.cf-sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 26px); color: var(--ink-soft); margin: 6px 0 22px; }
.cf-body { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--ink-soft); max-width: 64ch; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ── 4 · TRUST ── */
.card-trust { padding: clamp(26px, 3.6vw, 44px); transform: rotate(.45deg); margin-top: 30px; }
.ct-stamp { position: absolute; top: -13px; right: 28px; }
.ct-title { font-family: var(--hand); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: .95; color: var(--ink); }
.ct-body { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; color: var(--ink-soft); max-width: 70ch; margin-top: 12px; }
.ct-body .mono, .cf-body .mono { font-size: .85em; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }

/* ── 5 · APPS GRID ── */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.app-card {
  position: relative; aspect-ratio: 1; padding: 16px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: flex-end;
  transform: rotate(var(--rot, 0deg));
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  will-change: transform; overflow: hidden;
}
.app-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--tab); border-bottom: 1.5px solid var(--ink);
}
.app-card:hover { transform: rotate(0deg) translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.app-tag {
  position: absolute; top: 16px; right: 12px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 2px 7px; border-radius: 3px; transform: rotate(3deg);
}
.app-mark {
  font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink);
  width: 50px; height: 50px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--tab) 24%, var(--paper)); border: 1.6px solid var(--ink);
  margin-bottom: auto;
}
.app-foot { display: flex; flex-direction: column; gap: 2px; }
.app-name { font-family: var(--hand); font-weight: 600; font-size: 24px; line-height: 1; color: var(--ink); }
.app-cat { font-family: var(--stamp); font-weight: 600; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 880px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── 6 · CAPABILITIES ── */
.caps-box { padding: clamp(26px, 3.6vw, 46px) clamp(26px,3.6vw,46px) clamp(26px,3.6vw,46px) clamp(60px, 8vw, 104px); }
.caps-box.paper-ruled { background-position: 0 8px; }
.caps-margin-note {
  position: absolute; top: 36px; left: 14px; width: 60px; font-size: 16px; line-height: 1.1;
  color: var(--accent); transform: rotate(-5deg);
}
.cap-line { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.75; color: var(--ink-soft); margin: 0; }
.cap-line b { color: var(--ink); font-weight: 400; background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); background-repeat: no-repeat; background-position: 0 84%; background-size: 100% 42%; padding: 0 2px; }
.cap-div { margin: 22px 0; }
@media (max-width: 600px) { .caps-box { padding-left: clamp(26px,5vw,40px); } .caps-margin-note { display: none; } }

/* ── 7 · WORK LEDGER ── */
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.work-head .section-label { margin-bottom: 26px; }
.all-link { font-size: 12px; color: var(--ink-faint); border-bottom: 1px solid var(--paper-edge); }
.all-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.work-table { padding: 4px clamp(12px, 2vw, 26px); }
.work-row {
  display: grid; grid-template-columns: 54px 1fr auto; gap: clamp(14px, 2.4vw, 32px); align-items: start;
  padding: 26px clamp(6px, 1.4vw, 14px); position: relative;
  border-top: 1.5px solid var(--paper-edge);
  transition: transform .26s var(--ease), background .26s var(--ease), border-radius .26s;
}
.work-table .work-row:first-child { border-top: none; }
.work-row::before {
  content: ""; position: absolute; left: 0; top: -1.5px; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .26s var(--ease);
  border-radius: 2px;
}
.work-row:hover { transform: translateX(8px); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.work-row:hover::before { transform: scaleY(1); }
.wr-no { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--ink-ghost); line-height: 1; }
.work-row:hover .wr-no { color: var(--accent); }
.wr-title { font-family: var(--hand); font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1; color: var(--ink); margin-bottom: 9px; }
.wr-desc { font-size: 15px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 12px; max-width: 64ch; }
.wr-tags { display: flex; flex-wrap: wrap; gap: 9px; font-size: 10.5px; letter-spacing: .04em; color: var(--ink-faint); }
.wr-tags span:not(:last-child)::after { content: "·"; margin-left: 9px; color: var(--paper-edge); }
.wr-meta { font-size: 11px; color: var(--ink-faint); white-space: nowrap; letter-spacing: .04em; text-align: right; padding-top: 4px; }
@media (max-width: 680px) {
  .work-row { grid-template-columns: 38px 1fr; }
  .wr-meta { grid-column: 2; text-align: left; margin-top: 4px; padding-top: 0; }
}

/* ── 8 · STACK ── */
.stack-box { padding: 6px clamp(16px, 2.6vw, 34px); }
.stack-row { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: baseline; padding: 18px 4px; }
.stack-key { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.stack-rule { border: none; border-top: 1px dashed var(--paper-edge); margin: 0; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.stack-chips span {
  font-family: var(--stamp); font-weight: 600; font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); border: 1.4px solid var(--ink-faint); border-radius: 4px; padding: 5px 11px;
  background: rgba(255,255,255,.35); transition: transform .14s var(--ease), border-color .14s, color .14s, box-shadow .14s;
  will-change: transform;
}
.stack-chips span:hover { transform: translate(-1px,-1px); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 680px) { .stack-row { grid-template-columns: 1fr; gap: 10px; } }

/* ── 9 · MARQUEE ── */
.marquee-sec { padding-top: clamp(46px, 7vh, 80px); }
.marquee {
  overflow: hidden; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; gap: 54px; width: max-content; animation: marq 30s linear infinite; }
.marquee:has(.icon-wrap:hover) .marquee-track { animation-play-state: paused; }
.icon-wrap { flex: none; display: grid; place-items: center; }
.icon-wrap img { width: 32px; height: 32px; filter: grayscale(1) brightness(.55) opacity(.6); transition: filter .25s, transform .25s; }
.icon-wrap:hover img { filter: none; transform: translateY(-4px) scale(1.1); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 10 · CONNECT + SUNO ── */
.connect-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.connect-h { font-family: var(--hand); font-weight: 700; font-size: clamp(40px, 5.4vw, 68px); line-height: .92; color: var(--ink); }
.connect-sub { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 36ch; margin: 14px 0 26px; }
.connect-row { display: flex; gap: 14px; }
.connect-icon {
  width: 54px; height: 54px; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), color .14s; will-change: transform;
}
.connect-icon svg { width: 22px; height: 22px; }
.connect-icon:hover { transform: translate(-2px,-2px) rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); color: var(--accent); }

/* cassette */
.suno-cassette { position: relative; padding: 22px 22px 18px; transform: rotate(1.6deg); max-width: 380px; }
.suno-tape { top: -12px; left: 30px; transform: rotate(-4deg); }
.cassette-window {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #15110b; border: 1.5px solid var(--ink); border-radius: 4px; padding: 16px 18px;
}
.reel { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,244,142,.5); display: grid; place-items: center; position: relative; }
.reel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,244,142,.3); }
.reel span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,244,142,.7); }
.suno-cassette.playing .reel { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.eq i { width: 4px; height: 6px; background: var(--sticky-yellow); border-radius: 2px; }
.suno-cassette.playing .eq i { animation: eq .85s ease-in-out infinite; }
.suno-cassette.playing .eq i:nth-child(2) { animation-delay: .12s; }
.suno-cassette.playing .eq i:nth-child(3) { animation-delay: .26s; }
.suno-cassette.playing .eq i:nth-child(4) { animation-delay: .38s; }
.suno-cassette.playing .eq i:nth-child(5) { animation-delay: .5s; }
@keyframes eq { 0%,100% { height: 6px; } 50% { height: 26px; } }
.cassette-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.cassette-meta { display: flex; flex-direction: column; gap: 2px; }
.cassette-label { font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; color: var(--ink); }
.cassette-sub { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.suno-play {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease); will-change: transform;
}
.suno-play:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.suno-play svg { width: 18px; height: 18px; }
.cassette-link { display: inline-block; margin-top: 14px; font-size: 11px; color: var(--ink-faint); border-bottom: 1px solid var(--paper-edge); }
.cassette-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 760px) { .connect-grid { grid-template-columns: 1fr; } .suno-cassette { margin: 0 auto; transform: rotate(-1.2deg); } }

/* ── FOOTER ── */
.foot {
  margin-top: clamp(46px, 7vh, 80px);
  border-top: 1.5px solid var(--ink);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 30px 0 48px;
}
.foot-sign { font-family: var(--hand); font-weight: 600; font-size: 40px; line-height: 1; color: var(--ink); margin: 0; }
.foot-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.foot-meta span { font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; }

/* ── reveal entrance (placed-on-desk) ── */
.reveal { opacity: 0; transform: translateY(14px) rotate(-.4deg); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── entrance choreography (JS-gated) ── */
html.js .he { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.ready .he { opacity: 1; transform: none; }

/* ── archive failsafe ──
   This page is an archived "era" snapshot. If site.js ever fails to run
   (404, throws, or scripts blocked), the inline html.js class still clips
   the hero name and every .reveal/.he section would stay invisible.
   These keyframes guarantee the name + all content surface after 3s even
   with no JS. When site.js runs normally, body.ready wins and the original
   choreography plays untouched. */
@keyframes zg-failsafe-up   { to { transform: translateY(0); } }
@keyframes zg-failsafe-show { to { opacity: 1; transform: none; } }
html.js .name-w { animation: zg-failsafe-up   .01s linear 3s forwards; }
html.js .he     { animation: zg-failsafe-show .01s linear 3s forwards; }
.reveal         { animation: zg-failsafe-show .01s linear 3s forwards; }
body.ready .name-w, body.ready .he { animation: none; }
.reveal.in { animation: none; }

/* ── FINDER (CMD+K) ── */
dialog { border: none; padding: 0; background: transparent; color: inherit; }
dialog::backdrop { background: rgba(40,28,10,.4); backdrop-filter: blur(2px); }
.cmdk { position: fixed; top: 13vh; left: 50%; transform: translateX(-50%); width: min(560px, 92vw); }
.cmdk-box { background: var(--paper); overflow: hidden; padding: 0; }
.cmdk-input {
  width: 100%; border: none; outline: none; background: transparent; color: var(--ink);
  padding: 18px 20px; font-family: var(--hand-2); font-size: 17px; border-bottom: 2px solid var(--ink);
}
.cmdk-input::placeholder { color: var(--ink-ghost); }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 48vh; overflow-y: auto; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 5px; font-size: 15px; color: var(--ink-soft); cursor: var(--cursor); }
.cmdk-item .ci-kind { font-family: var(--stamp); font-weight: 600; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-left: auto; }
.cmdk-item[aria-selected="true"] { background: var(--accent); color: #fff; }
.cmdk-item[aria-selected="true"] .ci-kind { color: rgba(255,255,255,.8); }
.cmdk-foot { display: flex; gap: 18px; padding: 11px 16px; border-top: 1.5px solid var(--paper-edge); font-size: 10px; color: var(--ink-faint); letter-spacing: .04em; }
.cmdk { transition: opacity .2s ease, transform .2s ease; }
@starting-style { .cmdk { opacity: 0; transform: translateX(-50%) translateY(-8px); } }

/* ── HELP ── */
.help { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(440px, 92vw); }
.help-box { padding: 30px; transform: rotate(-.8deg); }
.help-title { font-family: var(--hand); font-weight: 700; font-size: 38px; color: var(--ink); margin-bottom: 22px; }
.help-grid { display: grid; grid-template-columns: auto 1fr; gap: 13px 16px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.help-grid kbd { font-family: var(--mono); font-size: 12px; background: var(--paper-warm); border: 1.5px solid var(--ink); border-bottom-width: 3px; border-radius: 5px; padding: 4px 8px; min-width: 30px; text-align: center; color: var(--ink); }
.help-close { margin-top: 24px; font-size: 14px; }

/* ── focus rings ── */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ── nav over hero ── */
body.at-hero .nav { background: transparent !important; backdrop-filter: none !important; border-bottom-color: transparent !important; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .he, .name-w { opacity: 1 !important; transform: none !important; }
  .name-draw path { stroke-dashoffset: 0; }
  .cursor { display: none; }
}

/* ── PRINT — one-page résumé ── */
@media print {
  @page { margin: 14mm; }
  .nav, .progress, .cursor, .marquee-sec, .suno-cassette, .connect-row, .apps, .help, .cmdk, .skip, .scrollcue, .hero-sticky, .page-clip, body::before, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .page { box-shadow: none; border: none; max-width: 100%; padding: 0; }
  .page::before { display: none; }
  section { padding: 0 0 14pt; }
  .hero { background: none; padding-top: 0; }
  .name { font-size: 40pt; }
  .box, .box-soft { box-shadow: none !important; border-color: #999 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-family: var(--mono); font-size: 8pt; color: #555; }
  .work-row:hover { transform: none; background: none; }
}
