:root {
  --ink: #191816;
  --ink-2: #4a4640;
  --muted: #7d776d;
  --paper: #f6f2ea;
  --paper-2: #efe9de;
  --line: rgba(25, 24, 22, 0.12);
  --accent: #df5524;
  --sky: #9cc4e8;
  --glass: rgba(250, 248, 244, 0.62);
  --serif: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* display: Geist, set tight */
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #e9eef1;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  display: block;
  outline: none;
  /* if a frame ever comes up empty, it shows sky and sand, never the page's near-white */
  background: linear-gradient(#b9d3e8 0%, #e6dccb 42%, #e9d6bb 100%);
}
/* lens vignette + a whisper of film grain; zero cost to the GPU */
.fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(60, 48, 30, 0.10) 100%);
}
.fx::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── HUD ─────────────────────────────────────────────────────────── */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 28px; pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.hud > * { pointer-events: auto; }
body.is-loading .hud, body.is-intro .hud { opacity: 0; transform: translateY(-8px); pointer-events: none; }
body.is-intro .hud > * { pointer-events: none; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 23px; line-height: 1; letter-spacing: -0.035em; }
.brand-role { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ink-2); }
.brand-views::before { content: ' · '; }   /* the view count after NYC (assets/js/views.js) */
.hud-nav {
  display: flex; gap: 2px; padding: 4px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px; box-shadow: 0 6px 24px rgba(70, 60, 40, 0.10);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.hud-nav > * {
  border: 0; background: transparent; cursor: pointer; text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.hud-nav > *:hover { background: rgba(25, 24, 22, 0.06); }
.hud-nav > .is-solid { background: var(--ink); color: #fbf8f2; }
.hud-nav > .is-solid:hover { background: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── scene annotations (leader lines) ───────────────────────────── */
#annotations { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.anno {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  transition: opacity 0.45s var(--ease);
}
.anno .dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}
.anno .dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(25, 24, 22, 0.35);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.anno .line { position: absolute; left: 0; top: 0; height: 1px; background: rgba(25, 24, 22, 0.55); transform-origin: 0 0; }
.anno .tag {
  position: absolute; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 9px 5px; border-radius: 6px;
  background: rgba(250, 248, 244, 0.82); border: 1px solid rgba(25, 24, 22, 0.08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
}
.anno .tag b { font-weight: 600; }
.anno .tag em { font-style: normal; color: var(--muted); margin-left: 6px; }

/* ── tooltip ─────────────────────────────────────────────────────── */
#tooltip {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  max-width: min(320px, calc(100vw - 32px));
  padding: 11px 14px 12px; border-radius: 12px;
  background: rgba(252, 250, 246, 0.94); color: var(--ink);
  box-shadow: 0 10px 40px rgba(60, 45, 20, 0.16), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(25, 24, 22, 0.06);
  opacity: 0; transform: translate3d(-50%, -100%, 0);
  transition: opacity 0.18s ease;
  will-change: transform, opacity;
}
#tooltip.on { opacity: 1; }
#tooltip b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
#tooltip span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin-top: 3px; }
#tooltip span:empty { display: none; }
#tooltip i {
  display: block; font-style: normal; margin-top: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
#tooltip i:empty { display: none; }

/* ── staged CD caption ───────────────────────────────────────────── */
#caption {
  position: fixed; left: 0; top: 0; z-index: 25; text-decoration: none; color: var(--ink);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: end;
  padding: 14px 16px 15px; border-radius: 14px;
  background: rgba(250, 248, 244, 0.9);
  border: 1px solid rgba(25, 24, 22, 0.06);
  box-shadow: 0 18px 50px rgba(50, 40, 20, 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
#caption.on { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }
#caption .meta { grid-column: 1 / -1; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
#caption .title { font-family: var(--serif); font-weight: 650; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; }
#caption .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
#caption .tags i { font-style: normal; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: #ffedd5; border: 1px solid #fed7aa; color: #c2410c; }
#caption .blurb { grid-column: 1 / 2; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
#caption .go {
  grid-column: 2; grid-row: 2 / 4; align-self: center;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; background: var(--ink); color: #fbf8f2;
  font-size: 13px; font-weight: 500;
}
#caption .go svg { width: 14px; height: 14px; }

/* ── intro / tools ───────────────────────────────────────────────── */
.intro-title {
  position: fixed; left: 0; right: 0; top: 20vh; z-index: 15; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); transform: translateY(10px);
}
.intro-title.on { opacity: 1; transform: none; }
.intro-title h1 { margin: 0; font-family: var(--serif); font-weight: 650; font-size: clamp(46px, 7.4vw, 112px); letter-spacing: -0.045em; line-height: 0.95; color: #fffdf9; text-shadow: 0 2px 40px rgba(70, 110, 150, 0.25); }
.intro-title p { margin: 16px 0 0; font-family: var(--mono); font-size: clamp(10px, 1.1vw, 12.5px); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(60, 90, 120, 0.35); padding: 0 20px; }
.intro-title .intro-welcome { margin: 0 0 12px; font-family: var(--sans); font-size: clamp(17px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.015em; text-transform: none; color: #fffdf9; text-shadow: 0 2px 24px rgba(70, 110, 150, 0.3); }

.skip {
  position: fixed; right: 24px; bottom: calc(22px + var(--safe-b)); z-index: 16;
  border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.35); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
body.is-intro .skip { opacity: 1; pointer-events: auto; }

.tools {
  position: fixed; right: 24px; bottom: calc(22px + var(--safe-b)); z-index: 12; display: flex; gap: 8px;
  transition: opacity 0.5s;
}
body.is-loading .tools, body.is-intro .tools { opacity: 0; pointer-events: none; }
.tools button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.75); background: var(--glass); color: var(--ink);
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(70, 60, 40, 0.08);
}
.tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ── sheets / modal ──────────────────────────────────────────────── */
.sheet, .modal { position: fixed; inset: 0; z-index: 40; }
.sheet[hidden], .modal[hidden], .broadcast[hidden] { display: none; }
.sheet-scrim {
  position: absolute; inset: 0; background: rgba(40, 46, 52, 0.18);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.sheet.open .sheet-scrim, .modal.open .sheet-scrim { opacity: 1; }
.sheet-panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px;
  width: min(640px, calc(100vw - 20px));
  overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  background: var(--paper);
  border-radius: 22px; padding: 64px 52px 56px;
  box-shadow: 0 30px 90px rgba(40, 30, 15, 0.28);
  transform: translateX(calc(100% + 30px)); transition: transform 0.6s var(--ease);
  outline: none;
}
.sheet.open .sheet-panel { transform: none; }
.close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink);
}
.close:hover { background: #fff; }
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.sheet h2, .modal h2 { margin: 0; font-family: var(--serif); font-weight: 650; font-size: clamp(34px, 4.2vw, 50px); line-height: 1; letter-spacing: -0.04em; }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 18px 0 30px; max-width: 34em; }
.muted { color: var(--muted); }
.about-photos { position: relative; height: 250px; margin: 0 0 30px; }
.print { position: absolute; margin: 0; padding: 9px 9px 34px; background: #fffdf8; box-shadow: 0 14px 34px rgba(50, 35, 15, 0.18); width: 176px; }
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #3a352f; }
.print-a { left: 0; top: 12px; transform: rotate(-4deg); }
.print-b { left: 150px; top: 0; transform: rotate(3.5deg); }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.facts .muted { font-size: 13px; }
.sub { margin: 34px 0 12px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline span { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.timeline b { font-weight: 600; font-size: 14.5px; }
.timeline em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.tools-line { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(25, 24, 22, 0.18); background: transparent; color: var(--ink);
  font-size: 14px; font-weight: 500; transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: rgba(25, 24, 22, 0.05); }
.btn.is-solid { background: var(--ink); color: #fbf8f2; border-color: var(--ink); }
.btn.is-solid:hover { background: #000; }

.modal { display: grid; place-items: center; padding: 16px; }
.modal-card {
  position: relative; width: min(520px, 100%); background: var(--paper); border-radius: 22px;
  padding: 44px 40px 36px; box-shadow: 0 30px 90px rgba(40, 30, 15, 0.3);
  transform: translateY(16px) scale(0.98); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s ease; outline: none;
}
.modal.open .modal-card { transform: none; opacity: 1; }
.modal .close { top: 16px; right: 16px; padding: 7px 10px; }
.modal .muted { font-size: 14.5px; line-height: 1.55; margin: 14px 0 22px; }
.contact-rows { border-top: 1px solid var(--line); }
.contact-rows .row { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-rows .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-rows .v { font-size: 15px; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-rows .v:hover { color: var(--accent); }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; }

/* work list */
.sheet-work .sheet-panel { width: min(1080px, calc(100vw - 20px)); }

/* ── broadcast (why hire me) ─────────────────────────────────────── */
.broadcast { position: fixed; inset: 0; z-index: 50; background: #07080b; color: #f4efe6; overflow: hidden; }

/* ── loader / wipe / toast ───────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: linear-gradient(180deg, #a9cdeb 0%, #d6e6f2 46%, #ece8e0 74%, #e6dfd2 100%);
  transition: opacity 1s var(--ease);
}
.loader.done { opacity: 0; pointer-events: none; }
.loader-inner { width: min(320px, 70vw); text-align: center; }
.loader-glyph { height: 64px; margin: 0 auto 20px; --tag-h: 64px; }
.loader-name { margin: 0 0 22px; font-family: var(--serif); font-weight: 650; font-size: 38px; letter-spacing: -0.04em; color: #fffdf9; text-shadow: 0 2px 30px rgba(80, 120, 160, 0.3); }
.loader-bar { height: 2px; background: rgba(255, 255, 255, 0.55); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0%; background: var(--ink); transition: width 0.3s ease; }
.loader-msg { margin: 14px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(25, 24, 22, 0.6); }
.wipe { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: var(--paper); opacity: 0; transition: opacity 0.45s var(--ease-io); }
.wipe.on { opacity: 1; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); z-index: 80; transform: translate(-50%, 10px);
  background: var(--ink); color: #fbf8f2; padding: 10px 16px; border-radius: 999px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 90; background: #fff; padding: 14px 16px; border-radius: 12px; }

/* cursor feedback: grab to turn, a hand over things */
body:not(.is-loading):not(.is-intro) #gl { cursor: grab; }
body.is-pointer #gl { cursor: pointer; }
body.is-grabbing #gl, body.is-grabbing { cursor: grabbing; }
body.crate-open:not(.is-pointer) #gl { cursor: default; }

/* the open crate: one way back */
#fan-close {
  position: fixed; top: calc(22px + var(--safe-t, 0px)); left: 50%; z-index: 26;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(251, 248, 242, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 13px var(--sans); letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity 0.3s, transform 0.3s;
}
#fan-close i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fbf8f2; font-size: 11px; }
#fan-close.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
body.crate-open .hud { opacity: 0; pointer-events: none; }
.me-contact { margin: 22px 0 6px; }
.more-links { margin: 26px 0 0; font-size: 14px; }
.more-links a { color: var(--ink); }
body.overlay-open #gl { pointer-events: none; }

/* ── small screens ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .hud { padding: 14px 16px; align-items: center; }
  .brand { gap: 3px; }
  .brand-name { font-size: 21px; }
  .brand-role { font-size: 12px; }
  /* the film grain is a full-screen blend every frame: a cost a phone feels and a look it cannot see */
  .fx::after { display: none; }
  .door-back { top: 14px; left: 16px; padding: 8px 13px; font-size: 13px; }
  .door-card { padding: 22px 20px 24px; bottom: calc(24px + var(--safe-b)); }
  .door-card p:not(.eyebrow) { font-size: 13.5px; margin-bottom: 16px; }
  .door-enter { padding: 12px 26px; font-size: 15px; }

  .hud-nav > * { padding: 7px 11px; font-size: 12.5px; }
  .tools { right: 16px; bottom: calc(16px + var(--safe-b)); }
  .sheet-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 56px 22px calc(36px + var(--safe-b)); transform: translateY(100%); }
  .about-photos { height: 210px; }
  .print { width: 140px; }
  .print-b { left: 120px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .modal-card { padding: 40px 22px 28px; }
  #caption { grid-template-columns: 1fr; }
  #caption .go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  #caption .title { font-size: 26px; }
  .intro-title { top: 16vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── pavilion door ───────────────────────────────────────────────── */
body.in-flight .hud, body.in-flight .tools { opacity: 0; pointer-events: none; }
.door { position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: 0; transition: opacity 0.7s var(--ease); }
.door.on { opacity: 1; }
.door.on > * { pointer-events: auto; }
.door-back {
  position: absolute; top: 22px; left: 24px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.75); background: var(--glass); color: var(--ink);
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(40, 50, 70, 0.12);
}
.door-card {
  position: absolute; left: 50%; bottom: calc(40px + var(--safe-b)); transform: translateX(-50%) translateY(14px);
  width: min(560px, calc(100vw - 32px)); text-align: center;
  padding: 26px 30px 28px; border-radius: 24px;
  background: rgba(250, 248, 244, 0.72); border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(40, 50, 70, 0.18);
  transition: transform 0.8s var(--ease);
}
.door.on .door-card { transform: translateX(-50%); }
.door-card h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 650; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.04em; line-height: 1.02; }
.door-card p:not(.eyebrow) { margin: 0 auto 20px; max-width: 30em; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.door-enter {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; border: 0;
  padding: 14px 30px; border-radius: 999px; background: var(--ink); color: #fbf8f2; font-size: 16px; font-weight: 500;
  box-shadow: 0 0 0 0 rgba(255, 210, 150, 0.6); animation: doorPulse 2.6s var(--ease) infinite;
}
.door-enter kbd { font-family: var(--mono); font-size: 11px; padding: 3px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); }
@media (hover: none) { .door-enter kbd { display: none; } }
.door-enter:hover { background: #000; }
@keyframes doorPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 160, 0.55); } 70% { box-shadow: 0 0 0 18px rgba(255, 214, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 160, 0); } }
.door.entering .door-card { transform: translateX(-50%) scale(0.96); opacity: 0; transition: all 0.5s var(--ease); }
body.at-door .hud { opacity: 0; pointer-events: none; }

/* ── album constellation: labels + floating tags ─────────────────── */
#fan-labels, #fan-tags { position: fixed; inset: 0; pointer-events: none; z-index: 24; }
.fan-label {
  position: absolute; left: 0; top: 0; will-change: transform, opacity; transition: opacity 0.25s ease;
  display: flex; flex-direction: column; gap: 1px; color: var(--ink);
  text-shadow: 0 1px 10px rgba(250, 246, 238, 0.9);
}
.fan-label b { font-weight: 600; font-size: 12.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan-label span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.fan-tag {
  position: absolute; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; color: var(--ink);
  background: rgba(250, 248, 244, 0.86); border: 1px solid rgba(25, 24, 22, 0.08);
  box-shadow: 0 8px 22px rgba(60, 45, 20, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px) scale(0.92);
  transition: opacity 0.35s var(--ease) var(--d), transform 0.5s var(--ease) var(--d);
}
#fan-tags.on .fan-tag { opacity: 1; transform: none; animation: tagFloat var(--f) ease-in-out var(--d) infinite alternate; }
@keyframes tagFloat { from { translate: 0 -3px; } to { translate: 0 4px; } }

/* ── the broadcast (why hire me): the TV itself, filling the screen ── */
.broadcast { --rim: clamp(10px, 1.5vmin, 18px); --side: clamp(92px, 8.6vw, 132px); --bezel: clamp(8px, 1.2vmin, 14px); background: transparent; }
.tvp { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.35s var(--ease);
  background:
    radial-gradient(120% 110% at 18% 0%, rgba(255, 222, 200, 0.34), rgba(255, 222, 200, 0) 58%),
    radial-gradient(110% 120% at 100% 100%, rgba(90, 34, 16, 0.38), rgba(90, 34, 16, 0) 62%),
    #c86b47;
  box-shadow: inset 0 1px 0 rgba(255, 238, 226, 0.5), inset 0 -2px 0 rgba(60, 22, 10, 0.35); }
/* moulded plastic: a fine speckle */
.tvp::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.broadcast.is-on .tvp { opacity: 1; }
.tvp:focus { outline: none; }
.broadcast.is-off .tvp { opacity: 0; transition-delay: 0.3s; }
.tvp-screen { position: absolute; left: var(--rim); top: var(--rim); bottom: var(--rim); right: var(--side); padding: var(--bezel);
  border-radius: clamp(18px, 2.8vmin, 32px); background: linear-gradient(#272523, #151413);
  box-shadow: 0 0 0 2px rgba(236, 236, 236, 0.75), 0 0 0 3.5px rgba(70, 28, 14, 0.3), 0 8px 22px rgba(70, 25, 10, 0.3); }
.tvp-glass { position: relative; width: 100%; height: 100%; overflow: hidden; background: #050505; cursor: pointer;
  border-radius: clamp(12px, 2.1vmin, 24px) / clamp(14px, 2.5vmin, 28px); }
.tvp-glass::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%);
  box-shadow: inset 0 0 clamp(40px, 9vmin, 140px) rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.bc-stage { position: absolute; inset: 0; transform-origin: 50% 50%;
  transform: scale(0.62, 0.004); filter: brightness(6) saturate(0); opacity: 0.2; }
.broadcast.is-on .bc-stage { animation: crtOn 0.62s 0.12s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
.broadcast.is-off .bc-stage { animation: crtOff 0.5s cubic-bezier(0.7, 0, 0.8, 0.4) forwards; }
@keyframes crtOn {
  0% { transform: scale(0.62, 0.004); filter: brightness(6) saturate(0); opacity: 0.2; }
  35% { transform: scale(1, 0.006); filter: brightness(5) saturate(0); opacity: 1; }
  70% { transform: scale(1, 1.02); filter: brightness(1.6) saturate(0.6); }
  100% { transform: scale(1, 1); filter: none; opacity: 1; }
}
@keyframes crtOff {
  0% { transform: scale(1, 1); filter: none; opacity: 1; }
  45% { transform: scale(1, 0.005); filter: brightness(5) saturate(0); }
  80% { transform: scale(0.02, 0.005); filter: brightness(8) saturate(0); opacity: 1; }
  100% { transform: scale(0, 0); opacity: 0; }
}
.bc-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #050505; }
/* the TV as a computer: a desk with two files, the films' covers; a file opens out of its cover (hire.js) */
.bc-desk { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; color: #efe6d6;
  background: radial-gradient(120% 90% at 50% 0%, #2c2f39, #101219 72%); }
.bc-menu { flex: none; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); height: clamp(26px, 3.4vmin, 34px); padding: 0 clamp(16px, 2.4vw, 30px);
  background: rgba(239, 230, 214, 0.07); border-bottom: 1px solid rgba(239, 230, 214, 0.08); font: 500 clamp(11px, 1.1vw, 13.5px) var(--sans); color: rgba(239, 230, 214, 0.78); }
.bc-menu b { font-weight: 600; color: #efe6d6; }
.bc-clock { margin-left: auto; font-family: var(--mono); }
/* the files: the first film one large cover, the other two stacked beside it, their edges in line with it; each film's
   sentence sits small on its own cover, so the covers lead (--u is the small cover's width, sized to the screen) */
.bc-desk { container-type: size; }
.bc-files { --g: clamp(12px, 1.6cqw, 22px); --u: min(calc((84cqw - var(--g)) / 3), calc((78cqh - 40px - var(--g)) / 1.125));
  flex: 1; min-height: 0; display: grid; grid-template-columns: calc(var(--u) * 2) var(--u); grid-auto-rows: calc(var(--u) * 0.5625);
  gap: var(--g); place-content: center; padding: 2% 0 4%; }
.bc-file { position: relative; display: block; align-self: start; text-align: left; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bc-file[data-file="0"] { grid-row: span 2; align-self: stretch; }
.bc-file:focus { outline: none; }
.bc-thumb { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 8px; background: #000;
  box-shadow: 0 0 0 1px rgba(239, 230, 214, 0.16); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.bc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; pointer-events: none; }
.bc-thumb i { position: absolute; z-index: 1; right: 8px; top: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.66); font: 500 11px var(--mono); font-style: normal; color: #efe6d6; }
.bc-file:hover .bc-thumb, .bc-file:focus-visible .bc-thumb { transform: translateY(-2px); box-shadow: 0 0 0 2px #e8541f; }
.bc-file.is-open .bc-thumb { box-shadow: 0 0 0 2px #2f6bd8; }
.bc-file.is-seen .bc-thumb i::before { content: "✓ "; color: #8dffa0; }
.bc-file.is-next .bc-thumb { animation: bcNext 1.8s ease-in-out infinite; }
@keyframes bcNext { 50% { box-shadow: 0 0 0 3px #e8541f, 0 0 26px rgba(232, 84, 31, 0.45); } }
/* the sentence, small, on a dark fade at the foot of its cover */
.bc-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; text-align: left; color: rgba(244, 239, 230, 0.92);
  font: 400 clamp(10.5px, 0.9vw, 12px)/1.4 var(--sans); background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0)); }
.bc-file[data-file="0"] .bc-note { padding: 40px 16px 13px; font-size: clamp(12px, 1.05vw, 14px); }
.bc-film { position: absolute; inset: 0; }
.bc-zoom { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; border-radius: 0; visibility: hidden; }
.bc-zoom.on { visibility: visible; }
.broadcast.is-film .bc-desk { visibility: hidden; }
.broadcast.is-desk .bc-film { visibility: hidden; }
.broadcast.is-desk .tvp-bar { display: none; }
.broadcast.is-desk .tvp-glass { cursor: default; }
@media (max-aspect-ratio: 4/5) {
  /* a phone: the large cover across the top, the other two side by side under it */
  .bc-files { --u: calc((90cqw - var(--g)) / 2); grid-template-columns: var(--u) var(--u); grid-auto-rows: auto; align-content: center; }
  .bc-file[data-file="0"] { grid-row: auto; grid-column: span 2; }
  .bc-thumb { height: auto; aspect-ratio: 16 / 9; }
  .bc-note { padding: 18px 8px 6px; font-size: 10.5px; }
  .bc-file[data-file="0"] .bc-note { padding: 26px 12px 9px; font-size: 12px; }
  /* the two small covers are too small to carry a sentence: it goes just under each, level with the other */
  .bc-file:not([data-file="0"]) .bc-thumb { height: auto; aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
  .bc-file:not([data-file="0"]) .bc-thumb img { height: auto; aspect-ratio: 16 / 9; border-radius: 8px; box-shadow: 0 0 0 1px rgba(239, 230, 214, 0.16); }
  .bc-file:not([data-file="0"]) .bc-note { position: static; padding: 6px 1px 0; background: none; color: rgba(239, 230, 214, 0.78); }
  .bc-file:not([data-file="0"]):hover .bc-thumb, .bc-file:not([data-file="0"]).is-next .bc-thumb { box-shadow: none; animation: none; }
  .bc-file:not([data-file="0"]):hover img, .bc-file:not([data-file="0"]).is-next img { box-shadow: 0 0 0 2px #e8541f; }
}
/* the set's own on-screen display, shown while the volume turns */
.tvp-osd { position: absolute; left: 4.5%; top: 6%; z-index: 2; display: flex; align-items: center; gap: 12px; pointer-events: none;
  font: 600 clamp(12px, 1.4vw, 18px) var(--mono); letter-spacing: 0.2em; color: #8dffa0; text-shadow: 0 0 10px rgba(141, 255, 160, 0.55);
  opacity: 0; transition: opacity 0.2s; }
.tvp-osd.on { opacity: 1; }
.tvp-osd b { display: flex; gap: 3px; }
.tvp-osd b i { width: clamp(5px, 0.55vw, 8px); height: clamp(12px, 1.4vw, 18px); background: currentColor; opacity: 0.18; }
.tvp-osd b i.on { opacity: 1; }
/* when the browser holds the sound back, the same display says how to turn it on */
.tvp-osd.is-hint b { display: none; }
/* seeking: a thin line along the foot of the glass, thicker under the pointer, so it never covers the picture */
.tvp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 18px; cursor: pointer; }
.bc-track { position: absolute; inset: 0; cursor: pointer; touch-action: none; }
.bc-track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(239, 230, 214, 0.16); transition: height 0.15s; }
.bc-fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #e8541f; transition: height 0.15s; }
.bc-fill::after { content: ""; position: absolute; right: -6px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #efe6d6;
  box-shadow: 0 0 0 4px rgba(232, 84, 31, 0.28); opacity: 0; transition: opacity 0.15s; }
.tvp-bar:hover .bc-track::before, .tvp-bar:hover .bc-fill, .bc-track:focus-visible::before, .bc-track:focus-visible .bc-fill { height: 6px; }
.tvp-bar:hover .bc-fill::after, .bc-track:focus-visible .bc-fill::after { opacity: 1; }
.bc-track:focus { outline: none; }
.bc-ticks i { position: absolute; bottom: 0; width: 1px; height: 7px; background: rgba(239, 230, 214, 0.45); }
/* the film's buttons and its time, on the set under the volume knob, in the power button's silver */
.tvp-ctl { flex: none; display: flex; gap: 10px; }
.tvp-files, .tvp-play { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; color: #3b1c10;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #e9e9e9 32%, #ababab 78%, #8a8a8a 100%);
  box-shadow: 0 2px 0 rgba(60, 22, 10, 0.35), 0 6px 14px rgba(60, 22, 10, 0.32), inset 0 -2px 3px rgba(0, 0, 0, 0.22); }
.tvp-files:hover, .tvp-play:hover { color: #e8541f; }
.tvp-files:active, .tvp-play:active { transform: translateY(1px); }
.tvp-files svg, .tvp-play svg { width: 14px; height: 14px; fill: currentColor; }
.tvp-play .i-play { display: none; }
.broadcast.is-paused .tvp-play .i-play { display: block; }
.broadcast.is-paused .tvp-play .i-pause { display: none; }
.bc-time { flex: none; margin-top: -4px; font: 500 11px var(--mono); white-space: nowrap; color: rgba(45, 18, 8, 0.78); }
.broadcast.is-desk .tvp-ctl, .broadcast.is-desk .bc-time { visibility: hidden; }
/* the side of the set: power, the volume knob, the speaker */
.tvp-side { position: absolute; top: var(--rim); bottom: var(--rim); right: 0; width: var(--side);
  display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.4vh, 24px); padding: clamp(14px, 3vh, 34px) 0; }
.tvp-power { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; color: #3b1c10;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #e9e9e9 32%, #ababab 78%, #8a8a8a 100%);
  box-shadow: 0 2px 0 rgba(60, 22, 10, 0.35), 0 6px 14px rgba(60, 22, 10, 0.32), inset 0 -2px 3px rgba(0, 0, 0, 0.22); }
.tvp-power:hover { color: #e8541f; }
.tvp-power:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(60, 22, 10, 0.35), 0 3px 8px rgba(60, 22, 10, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.22); }
.tvp-power svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tvp-knob { position: relative; flex: none; width: clamp(66px, 6vw, 92px); aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: none;
  filter: drop-shadow(0 6px 10px rgba(60, 22, 10, 0.3)); }
.tvp-knob.is-turning { cursor: grabbing; }
.tvp-knob:focus-visible { outline: 2px solid #fff6ee; outline-offset: 5px; }
.tvp-dial { position: absolute; inset: 0; width: 100%; height: 100%; }
.tvp-dial circle { fill: #ddd8cf; }
.tvp-dial line { stroke: #2a2724; stroke-width: 1.8; stroke-linecap: round; }
.tvp-dial text { font: 600 13px var(--mono); fill: #2a2724; text-anchor: middle; dominant-baseline: central; }
.tvp-cap { position: absolute; inset: 25%; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #e6e6e6 30%, #a8a8a8 72%, #7c7c7c 100%);
  box-shadow: 0 3px 6px rgba(40, 14, 6, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.25); }
.tvp-cap i { position: absolute; left: 50%; top: 9%; width: 3px; height: 36%; margin-left: -1.5px; border-radius: 2px; background: #1d1c1b; }
.tvp-lbl { margin-top: -4px; font: 600 10.5px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(45, 18, 8, 0.72); }
.tvp-grille { flex: 1; width: 62%; max-height: 240px; border-radius: 10px;
  background: radial-gradient(circle, #0d0c0b 0 2.2px, transparent 2.7px) 0 0 / 11px 11px, #2b2623;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 232, 214, 0.35); }
.tvp-brand { font: 600 12.5px var(--sans); letter-spacing: 0.01em; color: rgba(255, 246, 238, 0.9); text-shadow: 0 1px 0 rgba(60, 22, 10, 0.35); }
/* a phone held upright: the controls move under the screen */
@media (max-aspect-ratio: 4/5) {
  .broadcast { --side: 0px; --foot: clamp(84px, 12vh, 112px); }
  .tvp-screen { right: var(--rim); bottom: calc(var(--foot) + var(--safe-b)); }
  .tvp-side { top: auto; left: 0; right: 0; bottom: var(--safe-b); width: auto; height: var(--foot); flex-direction: row; justify-content: center; padding: 0 16px; gap: 18px; }
  .tvp-knob { width: 64px; }
  .tvp-lbl, .tvp-brand { display: none; }
  .tvp-grille { flex: 0 0 auto; width: 64px; height: 46px; order: 4; }
  .tvp-ctl { order: 3; }
}
@media (max-width: 760px) { .bc-time { display: none; } }

/* ── Me: the old homepage's About, as it was — centred, laid flat ─────── */
.me-modal { padding: 20px; }
.me-card { width: min(1180px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; background: none; box-shadow: none; padding: 0; pointer-events: none; }
/* the seven cards float over the desert; a click between them goes to the sand and closes */
.me-card .b-card, .me-card .me-contact { pointer-events: auto; }
.me-modal .sheet-scrim { background: rgba(244, 236, 224, 0.12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.me-card .b-card { box-shadow: 0 18px 50px rgba(60, 40, 20, 0.18), 0 2px 8px rgba(60, 40, 20, 0.06); }
.me-title { text-align: center; margin: 0 0 34px !important; font-size: clamp(32px, 3.6vw, 46px) !important; }
.bento { display: grid; grid-template-columns: 250px repeat(3, minmax(0, 1fr)) 270px; grid-template-rows: auto auto; gap: 14px; }
.b-card { margin: 0; background: #fff; border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 20px; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07); padding: 22px; min-width: 0; }
.b-pill { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; white-space: nowrap; font: 600 10px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.b-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ea580c; flex: none; }
.b-card p { margin: 0; font-size: 12.5px; line-height: 1.75; color: #374151; }
.b-muted { color: #6b7280; font-size: 12px; font-weight: 600; margin-top: 6px; }
.b-photo { grid-column: 1; grid-row: 1 / 3; padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; }
.b-photo img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top center; display: block; }
.b-photo figcaption { padding: 16px 20px 18px; }
.b-photo b { display: block; font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.b-photo span { font-size: 11px; font-weight: 600; color: #ea580c; letter-spacing: 0.01em; }
.b-bio { grid-column: 2 / 5; grid-row: 1; padding: 28px 30px 26px; }
.b-bio h3 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 700; line-height: 1.35; color: #111827; letter-spacing: -0.01em; }
.b-bio p { font-size: 13.5px; line-height: 1.85; color: #4b5563; }
.b-degree { grid-column: 5; grid-row: 1; background: linear-gradient(145deg, #fff7ed, #fff); border-color: rgba(234, 88, 12, 0.18); padding: 24px 22px; }
.b-big { font: 800 2.2rem/1 var(--sans); color: #ea580c; margin-bottom: 6px; }
.b-deg { font-size: 12px; font-weight: 700; line-height: 1.45; color: #111827; margin-bottom: 8px; }
.b-school { font-size: 15px; font-weight: 700; color: #ea580c; }
.b-process { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; background: rgba(255, 247, 237, 0.95); border-color: rgba(234, 88, 12, 0.18); }
.b-link { margin-top: auto; padding-top: 14px; color: #ea580c; font-size: 12px; font-weight: 600; text-decoration: none; transition: letter-spacing 0.2s; }
.b-link:hover { letter-spacing: 0.02em; }
.b-ind { grid-column: 3; grid-row: 2; }
.b-do { grid-column: 4; grid-row: 2; }
.b-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.b-chips span { font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: transparent; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.b-cta { grid-column: 5; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; }
.b-cta p { font-size: 11.5px; color: #6b7280; line-height: 1.65; margin-bottom: 16px; }
.b-actions { display: flex; flex-direction: column; gap: 8px; }
.b-solid { width: 100%; background: #ea570b; color: #fff; font: 600 12px var(--sans); padding: 10px 14px; border-radius: 999px; border: 0; cursor: pointer; transition: background 0.2s; }
.b-solid:hover { background: #c2410c; }
.b-ghost { display: block; text-align: center; color: #ea580c; font-size: 12px; font-weight: 500; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(234, 88, 12, 0.3); text-decoration: none; transition: background 0.2s; }
.b-ghost:hover { background: rgba(234, 88, 12, 0.05); }
/* the contact card that Get in Touch opens */
.me-contact { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250, 248, 243, 0.7); backdrop-filter: blur(3px); border-radius: inherit; }
.me-contact[hidden] { display: none; }
.me-contact-card { position: relative; width: min(400px, calc(100% - 32px)); background: #fff; border-radius: 22px; padding: 34px 30px 26px; box-shadow: 0 24px 60px rgba(30, 20, 10, 0.18); }
.me-contact-card h3 { margin: 4px 0 18px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.b-kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #ea580c; }
.me-contact-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 16px; color: #9ca3af; cursor: pointer; }
.me-contact-x:hover { color: #ea580c; }
.me-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.me-row i { font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff7ed; font-size: 18px; }
.me-row small { display: block; font-size: 11px; color: #9ca3af; }
.me-row a { color: #111827; font-size: 14px; font-weight: 600; text-decoration: none; }
.me-row a:hover { color: #ea580c; }
/* a photograph, up close */
.lightbox-card { width: auto; max-width: min(92vw, 1100px); padding: 12px; background: #fffdf8; border-radius: 18px; cursor: zoom-out; margin: 0; }
.lightbox-card img { display: block; max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; }
.lightbox-card figcaption { padding: 10px 6px 2px; font-size: 13px; color: var(--ink-2); }
.me-bar { display: none; }
/* phones and tablets: a full-screen sheet of sand-paper with a way back at the top, not cards adrift */
@media (max-width: 980px) {
  .me-modal { padding: 0; place-items: stretch; }
  .me-modal .sheet-scrim { background: rgba(241, 233, 220, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .me-card {
    width: 100%; height: 100%; max-height: none; border-radius: 0; pointer-events: auto;
    padding: 0 16px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .me-card .b-card { box-shadow: 0 6px 22px rgba(60, 40, 20, 0.08); }
  .me-bar {
    display: flex; position: sticky; top: 0; z-index: 3; margin: 0 -16px 6px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 14px;
    background: linear-gradient(rgba(241, 233, 220, 0.97) 62%, rgba(241, 233, 220, 0));
  }
  .me-back {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 10px 16px 10px 13px; border-radius: 999px; font: 500 14px/1 var(--sans); color: #191816;
    background: rgba(252, 250, 246, 0.9); border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(70, 60, 40, 0.12);
  }
  .me-back span { font-size: 16px; }
  /* Get in Touch opens over whatever part of the sheet is in view */
  .me-contact { position: fixed; z-index: 5; border-radius: 0; background: rgba(243, 236, 225, 0.94); }
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; }
  .b-photo { grid-column: 1; grid-row: auto; min-height: 0; }
  .b-photo img { flex: none; height: 380px; }
  .b-bio { grid-column: 2; grid-row: auto; }
  .b-degree, .b-process, .b-ind, .b-do, .b-cta { grid-column: auto; grid-row: auto; }
}
/* phones, upright or on their side: the portrait sits beside the name instead of filling the screen */
@media (max-width: 640px), (max-width: 980px) and (max-height: 520px) {
  .b-photo { flex-direction: row; align-items: center; min-height: 0; padding: 12px; }
  .b-photo img { flex: none; width: 92px; height: 112px; max-height: none; border-radius: 12px; }
  .b-photo figcaption { padding: 10px 18px; }
  .b-photo b { font-size: 18px; margin-bottom: 4px; }
  .b-photo span { font-size: 12px; }
}
/* a phone on its side: the name card and the hello run the full width, the rest pair up */
@media (max-width: 980px) and (max-height: 520px) {
  .b-photo, .b-bio { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .b-photo, .b-bio { grid-column: 1; }
  .b-card { padding: 20px; }
  .b-bio { padding: 22px 20px; }
  .b-bio h3 { font-size: 1.2rem; margin-bottom: 10px; }
  .b-bio p { font-size: 14px; line-height: 1.7; }
}


/* ── the project list: a button by the crates, and the list itself centred ── */
#plist {
  position: fixed; left: 0; top: 0; z-index: 18; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(60, 40, 20, 0.14);
  background: rgba(250, 246, 239, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 13px var(--sans); color: var(--ink); box-shadow: 0 8px 24px rgba(60, 40, 20, 0.16);
  opacity: 0; pointer-events: none; transition: opacity 0.35s; will-change: transform;
}
#plist svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
#plist.on { opacity: 1; pointer-events: auto; }
#plist:hover { background: #fff; }
/* a phone: the nav already says Projects; the pill in the sand would only crowd the crates */
@media (max-width: 760px) { #plist { display: none; } }

/* the index: search, three facets, one row per project with its tags */
.work-modal { padding: 20px; }
.work-card { width: min(1180px, 100%); height: calc(100vh - 40px); height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 40px 48px 32px; }
.wk-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding: 0 56px 22px 0; }
.modal .wk-top h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.045em; }
.wk-top sup { position: relative; top: 0.15em; margin-left: 0.35em; vertical-align: top; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); }
.wk-search { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.wk-search:focus-within { border-color: rgba(25, 24, 22, 0.45); box-shadow: 0 0 0 4px rgba(25, 24, 22, 0.06); }
.wk-search svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.wk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 14.5px var(--sans); color: var(--ink); }
.wk-search input::placeholder { color: var(--muted); }
.wk-search input::-webkit-search-cancel-button { cursor: pointer; }
.wk-search kbd { flex: none; font: 500 11px var(--mono); color: var(--muted); padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; }
.wk-search:focus-within kbd { display: none; }

.wk-facets { display: grid; gap: 10px; padding: 16px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.wk-facet, .wk-active { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; }
.wk-active[hidden] { display: none; }
.wk-active { grid-template-columns: 104px auto; justify-content: start; }
.wk-active .wk-chip + .wk-chip { margin-left: 6px; }
.wk-facet-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wk-facet-v { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font: 500 13px var(--sans); color: var(--ink-2); transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s; }
.wk-chip i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.wk-chip:hover:not(:disabled):not([aria-pressed="true"]):not(.on) { border-color: rgba(25, 24, 22, 0.4); color: var(--ink); }
.wk-chip[aria-pressed="true"], .wk-chip.on { background: var(--ink); border-color: var(--ink); color: #fbf8f2; }
.wk-chip[aria-pressed="true"] i { color: rgba(251, 248, 242, 0.55); }
.wk-chip.on b { font-weight: 400; opacity: 0.6; margin-left: 2px; }
.wk-chip:disabled { opacity: 0.32; cursor: default; }
.wk-chip:focus-visible, .wk-tag:focus-visible, .work-item:focus-visible, .wk-sort button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wk-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 6px; }
.wk-status { margin: 0; font-size: 13px; color: var(--muted); }
.wk-status b { font-weight: 600; color: var(--ink); }
.wk-clear, .wk-empty button { margin-left: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 13px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.wk-sort { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(25, 24, 22, 0.05); }
.wk-sort button { padding: 5px 11px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 12px var(--sans); color: var(--muted); }
.wk-sort button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(40, 30, 15, 0.12); }

.wk-list { list-style: none; margin: 0; padding: 0; }
.wk-row {
  position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) 190px; column-gap: 26px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.wk-row[hidden] { display: none; }
.wk-row.wk-in { animation: wkIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes wkIn { from { opacity: 0; transform: translateY(8px); } }
.wk-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--paper-2); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.wk-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* the whole row opens the project; the tags sit above that and filter instead */
.work-item { color: var(--ink); text-decoration: none; }
.work-item::after { content: ""; position: absolute; inset: 0; }
.wk-title { font-family: var(--serif); font-weight: 650; font-size: 21px; line-height: 1.15; letter-spacing: -0.03em; transition: color 0.25s; }
.wk-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.wk-desc { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.wk-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wk-tag { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); cursor: pointer; font: 500 12px var(--sans); color: var(--ink-2); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.wk-tag:hover:not([aria-pressed="true"]) { border-color: rgba(25, 24, 22, 0.4); color: var(--ink); background: #fff; }
.wk-tag[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fbf8f2; }
.wk-side { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-content: start; padding-top: 4px; }
.wk-crate { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.wk-crate::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #c9a36b; }
.wk-crate[data-g="ai"]::before { background: #e4572e; }
.wk-crate[data-g="strategy"]::before { background: #3a6ea5; }
.wk-crate[data-g="code"]::before { background: #4f8a5b; }
.wk-year { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.wk-skills { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--muted); }
.wk-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.wk-empty[hidden] { display: none; }
.wk-empty p { margin: 0 0 8px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .wk-row:hover .wk-title { color: var(--accent); }
  .wk-row:hover .wk-thumb { transform: rotate(-1.5deg) scale(1.04); box-shadow: 0 14px 30px rgba(40, 30, 15, 0.2); }
}
@media (max-width: 1060px) {
  .wk-row { grid-template-columns: 140px minmax(0, 1fr) 150px; column-gap: 20px; }
}
@media (max-width: 760px) {
  .work-modal { padding: 10px; }
  .work-card { height: calc(100vh - 20px); height: calc(100dvh - 20px); padding: 22px 18px 14px; }
  .wk-top { padding: 0 52px 16px 0; gap: 14px; }
  .wk-search { flex-basis: 100%; max-width: none; margin-right: -52px; }
  .wk-search kbd { display: none; }
  .wk-facets { gap: 8px; padding: 12px 0; }
  /* one line per facet: its name, then its options scrolling sideways */
  .wk-facet, .wk-active { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
  .wk-facet-k { font-size: 9.5px; letter-spacing: 0.1em; line-height: 1.3; }
  .wk-facet-v { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .wk-facet-v::-webkit-scrollbar { display: none; }
  .wk-chip { flex: none; }
  .wk-bar { padding-top: 10px; }
  .wk-row { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; }
  .wk-thumb { aspect-ratio: 1; }
  .wk-title { font-size: 18px; }
  .wk-desc { font-size: 13px; }
  .wk-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 8px; }
  .wk-year { text-align: left; }
  .wk-skills { display: none; }
  .wk-tags .wk-tag:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-row.wk-in { animation: none; }
  .wk-row:hover .wk-thumb { transform: none; }
}

/* ── a project opening out of the sand: the desert hides its chrome ── */
body.on-stage .hud, body.on-stage .tools, body.on-stage #plist, body.on-stage #fan-close { opacity: 0; pointer-events: none; }
body.on-stage #gl { cursor: default; }
body.on-stage.is-pointer #gl { cursor: pointer; }

/* ── the photo album, open ───────────────────────────────────────── */
.album-ui { position: fixed; inset: 0; z-index: 26; pointer-events: none; }
.album-ui[hidden] { display: none; }
.album-close {
  position: absolute; top: calc(22px + var(--safe-t, 0px)); left: 50%;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(251, 248, 242, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 13px var(--sans); letter-spacing: -0.01em; color: var(--ink);
  opacity: 0; transform: translate(-50%, -8px); transition: opacity 0.3s, transform 0.3s;
}
.album-close i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fbf8f2; font-size: 11px; }
.album-ui.on .album-close { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
/* the caption under the print in the middle, and the bar that moves along the prints */
.album-label {
  position: absolute; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 6px); margin: 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: -0.02em; color: var(--ink);
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); white-space: nowrap;
}
.album-ui.on.captioned .album-label { opacity: 1; transform: translate(-50%, 0); }
.album-bar {
  position: absolute; left: 50%; bottom: calc(34px + var(--safe-b)); transform: translate(-50%, 10px);
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px;
  box-shadow: 0 8px 28px rgba(70, 60, 40, 0.12);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity 0.4s var(--ease) 0.5s, transform 0.5s var(--ease) 0.5s;
}
.album-ui.on .album-bar { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.album-nav {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; transition: background 0.2s, opacity 0.2s, transform 0.2s var(--ease);
}
.album-nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.album-nav:hover { background: rgba(25, 24, 22, 0.07); }
.album-nav:active { transform: scale(0.92); }
.album-count { margin: 0; min-width: 64px; display: flex; justify-content: center; align-items: baseline; gap: 5px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); }
.album-count b { font-weight: 600; color: var(--ink); }
.album-count i { font-style: normal; opacity: 0.5; }
.album-hint {
  position: absolute; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); margin: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  opacity: 0;
}
.album-ui.on .album-hint { animation: albumHint 5s 1.4s both; }
@keyframes albumHint { 0% { opacity: 0; } 12% { opacity: 0.9; } 70% { opacity: 0.9; } 100% { opacity: 0; } }
.album-hint .t { display: none; }
@media (hover: none) { .album-hint .k { display: none; } .album-hint .t { display: inline; } }

/* ── touch: marks on what answers a tap ─────────────────────────────── */
.hints { position: fixed; inset: 0; z-index: 14; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.hints.on { opacity: 1; }
.hint { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.4s var(--ease); will-change: transform; }
.hint.v { opacity: 1; }
/* a small white dot that twinkles: no words */
.hint i {
  position: relative; display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fffdf9; box-shadow: 0 0 0 0.5px rgba(25, 24, 22, 0.16), 0 0 8px 2px rgba(255, 252, 244, 0.85), 0 1px 4px rgba(60, 40, 15, 0.3);
  animation: hintTwinkle 1.8s ease-in-out var(--d, 0s) infinite;
}
.hint i::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 253, 249, 0.85);
  animation: hintPing 1.8s var(--ease) var(--d, 0s) infinite;
}
@keyframes hintTwinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes hintPing { 0% { transform: scale(0.4); opacity: 0.9; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hint i, .hint i::after { animation: none; } }

/* ── on the way to the Pavilion, upright: turn it sideways ─────────────── */
.turn {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: rgba(241, 233, 220, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.turn[hidden] { display: none; }
.turn:focus { outline: none; }
.turn.on { opacity: 1; }
.turn-in { max-width: 320px; text-align: center; transform: translateY(10px); transition: transform 0.6s var(--ease); }
.turn.on .turn-in { transform: none; }
.turn-device { width: 92px; height: 92px; margin: 0 auto 26px; display: grid; place-items: center; }
.turn-device i {
  position: relative; display: block; width: 34px; height: 60px; border-radius: 8px;
  border: 2px solid #191816; box-shadow: 0 10px 24px rgba(60, 40, 15, 0.14);
  animation: turnDevice 3s var(--ease) infinite;
}
.turn-device i::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 9px; height: 2px; margin-left: -4.5px; border-radius: 2px; background: #191816; }
@keyframes turnDevice { 0%, 22% { transform: rotate(0); } 48%, 78% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
.turn-kicker { margin: 0 0 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(25, 24, 22, 0.55); }
.turn h2 { margin: 0 0 12px; font: 650 27px/1.12 var(--sans); letter-spacing: -0.03em; color: #191816; }
.turn-text { margin: 0 0 26px; font-size: 14.5px; line-height: 1.55; color: rgba(25, 24, 22, 0.72); }
.turn-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.turn-go {
  padding: 12px 22px; border-radius: 999px; cursor: pointer; font: 500 14px/1 var(--sans); color: #191816;
  background: rgba(252, 250, 246, 0.9); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 14px rgba(70, 60, 40, 0.12);
}
.turn-stay { padding: 10px 16px; border: 0; background: none; cursor: pointer; font: 500 13px/1 var(--sans); color: rgba(25, 24, 22, 0.55); }
@media (prefers-reduced-motion: reduce) { .turn-device i { animation: none; transform: rotate(-90deg); } }

/* ── touch: controls big enough for a finger ────────────────────────── */
@media (pointer: coarse) {
  .album-nav { width: 44px; height: 44px; }
  .album-close { padding: 11px 14px 11px 18px; }
  .hud-nav > * { padding: 9px 14px; }
  #plist { padding: 12px 18px; }
}
body.album-open .hud, body.album-open .tools, body.album-open #plist { opacity: 0; pointer-events: none; }
/* things that only slide (the name block, the plaque): an open hand */
body.is-pointer.is-grab #gl { cursor: grab; }

/* ── the words on an open crate's cards (HTML over the 3D cards) ── */
#cardui { position: fixed; inset: 0; z-index: 24; pointer-events: none; overflow: hidden; }
.card-ui { position: absolute; left: 0; top: 0; --k: 1; opacity: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
.card-ui .year {
  position: absolute; top: calc(12px * var(--k)); right: calc(12px * var(--k));
  font-size: calc(12.5px * var(--k)); font-weight: 600; letter-spacing: 0.01em;
  padding: calc(3px * var(--k)) calc(10px * var(--k)); border-radius: 999px;
  background: #ffedd5; border: 1px solid #fed7aa; color: #c2410c; box-shadow: 0 4px 14px rgba(60, 30, 10, 0.18);
}
.card-ui .body { position: absolute; left: calc(18px * var(--k)); right: calc(18px * var(--k)); bottom: calc(15px * var(--k)); display: flex; flex-direction: column; gap: calc(5px * var(--k)); }
.card-ui .title { font-family: var(--serif); font-weight: 650; font-size: calc(24px * var(--k)); line-height: 1.05; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-ui .blurb { font-size: calc(14.5px * var(--k)); line-height: 1.42; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-ui .row { margin-top: auto; display: flex; align-items: center; gap: calc(8px * var(--k)); }
.card-ui .tags { display: flex; flex-wrap: nowrap; gap: calc(5px * var(--k)); overflow: hidden; }
.card-ui .tags i { font-style: normal; white-space: nowrap; font-size: calc(12.5px * var(--k)); padding: calc(3px * var(--k)) calc(10px * var(--k)); border-radius: 999px; background: #ffedd5; border: 1px solid #fed7aa; color: #c2410c; }
/* a phone: the open crate is one column of cards, scrolled by a finger; the words a step larger for the card's width */
@media (max-width: 760px) {
  .card-ui .title { font-size: calc(21px * var(--k)); letter-spacing: -0.02em; }
  .card-ui .blurb { font-size: calc(15px * var(--k)); line-height: 1.42; -webkit-line-clamp: 2; }
  .card-ui .tags i { font-size: calc(12.5px * var(--k)); }
  .card-ui .year { font-size: calc(12.5px * var(--k)); }
  .card-ui .body { gap: calc(7px * var(--k)); }
}

/* ── the letter (the envelope on the table) ─────────────────────── */
.letter-card { width: min(540px, 100%); background: #fbf7ee; border-radius: 6px; padding: 46px 44px 30px;
  box-shadow: 0 2px 4px rgba(60, 40, 15, 0.12), 0 30px 80px rgba(40, 30, 15, 0.3); }
.modal.open .letter-card { transform: rotate(-0.6deg); }
.letter-card h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 22px; }
.letter-lede { margin: 12px 0 22px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.letter-form { display: grid; gap: 12px; }
.letter-form textarea, .letter-form input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid rgba(120, 95, 60, 0.3); background: transparent;
  padding: 6px 2px; font: 400 24px/32px Caveat, "Segoe Print", cursive; color: #2b2620; outline: none; resize: vertical; }
.letter-form textarea { background-image: repeating-linear-gradient(transparent 0 37px, rgba(120, 95, 60, 0.16) 37px 38px); background-attachment: local; line-height: 38px; padding-top: 0; }
.letter-form input { font: 400 15px/1.4 var(--sans); padding: 8px 2px; }
.letter-form textarea:focus, .letter-form input:focus { border-bottom-color: var(--accent); }
.letter-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.letter-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.letter-mail { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink); text-underline-offset: 3px; }
.letter-send .btn[disabled] { opacity: 0.5; cursor: default; }
.letter-status { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.letter-status.is-error { color: #a33a1f; }
.letter-sign { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid rgba(120, 95, 60, 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.letter-sign a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
@media (max-width: 520px) { .letter-card { padding: 40px 22px 24px; } .letter-form textarea { font-size: 22px; } }
