/* ============================================================
   Matthew Ohemu — portfolio
   Ported from Claude Design "Matthew Ohemu v4"
   ============================================================ */

:root {
  --paper: #f4f3ee; --ink: #1b1b1b; --card: #fffdf6; --muted: #3d3b37; --muted2: #5c5a55;
  --inkrgb: 27,27,27; --navbg: rgba(244,243,238,.92); --line: rgba(40,50,90,.075);
  --boxbg: rgba(255,255,255,.35); --tab: #d9d6cc;
  --yellow: #f5c842; --red: #e8452c; --blue: #3b4ad9; --pink: #ff5fa2; --green: #22c55e;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --nav-h: 52px;
}
:root[data-theme="dark"] {
  --paper: #121212; --ink: #f1efe8; --card: #1c1c1c; --muted: #c9c6bd; --muted2: #a5a29a;
  --inkrgb: 241,239,232; --navbg: rgba(18,18,18,.86); --line: rgba(255,255,255,.055);
  --boxbg: transparent; --tab: #2b2b2b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* colour transition only while switching theme (cheap, no global transition) */
html.theme-anim body, html.theme-anim body * { transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s !important; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
::selection { background: var(--yellow); color: #1b1b1b; }
textarea, input, button { font: inherit; }
img { max-width: 100%; }
figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px dashed var(--blue); outline-offset: 3px; }

.page {
  min-height: 100vh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px);
  overflow-x: clip;
}
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- type helpers ---------- */
.pixel { font-family: 'Jersey 10', monospace; font-weight: 400; }
.hand { font-family: 'Gaegu', cursive; font-size: 20px; }
.hand.lg { font-size: 22px; margin-bottom: 20px; }
.mono-h { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.mono-s { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.6; }
.mono-xs { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.muted { color: var(--muted); }
.tilt-2 { transform: rotate(-2deg); transform-origin: left; }
.tilt-3 { transform: rotate(-3deg); display: inline-block; }
.tilt-4 { transform: rotate(-4deg); transform-origin: left; }
.full { grid-column: 1 / -1; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor textarea, html.has-cursor input:not([type]), html.has-cursor input[type="text"], html.has-cursor input[type="email"] { cursor: text !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--red); border-radius: 50%;
  transition: opacity .2s, scale .2s;
}
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring),
              background-color .25s, border-color .25s, border-radius .35s var(--ease), opacity .2s;
}
.cursor-label {
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: #1b1b1b; opacity: 0; scale: .4; transition: opacity .2s, scale .3s var(--spring); white-space: nowrap;
}
.cursor.is-hover .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(245,200,66,.85); border-color: #1b1b1b; }
.cursor.is-hover .cursor-dot { scale: 0; }
.cursor.has-label .cursor-label { opacity: 1; scale: 1; }
.cursor.is-link:not(.has-label) .cursor-ring { width: 50px; height: 50px; margin: -25px 0 0 -25px; background: rgba(245,200,66,.35); }
.cursor.is-text .cursor-ring { width: 3px; height: 28px; margin: -14px 0 0 -1.5px; border-radius: 2px; background: var(--blue); border-color: var(--blue); }
.cursor.is-text .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { scale: .8; }
.cursor.is-hidden .cursor-ring, .cursor.is-hidden .cursor-dot { opacity: 0; }
.cursor-ring { transition-property: width, height, margin, background-color, border-color, border-radius, opacity, scale; }

/* click burst */
.burst { position: fixed; z-index: 9998; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.burst i { position: absolute; inset: 0; background: var(--c); border: 1px solid #1b1b1b; animation: burst .6s var(--ease) forwards; }
@keyframes burst {
  0% { transform: translate(0,0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.2); opacity: 0; }
}

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--blue)); transform-origin: 0 50%; transform: scaleX(0); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--navbg);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(var(--inkrgb), .08);
  transition: transform .4s var(--ease), box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.nav.hide { transform: translateY(-100%); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; }
.nav-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.logo {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #1b1b1b !important;
  display: grid; place-items: center; font-family: 'Jersey 10'; font-size: 17px; margin-right: 8px; border: 1.5px solid var(--ink);
  transition: rotate .5s var(--spring);
}
.logo:hover { rotate: 360deg; }
.nav-links { position: relative; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative; z-index: 1; flex: none;
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 6px 10px; display: flex; gap: 6px; align-items: center; color: var(--ink); transition: color .25s;
}
.nav-links a i { font-style: normal; display: inline-block; transition: rotate .4s var(--spring), scale .4s var(--spring); }
.nav-links a:hover i { rotate: -15deg; scale: 1.3; }
.nav-links a.active, .nav-links a.active:hover { color: #1b1b1b; }
.nav-ind {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0; background: var(--yellow);
  transition: left .45s var(--spring), width .45s var(--spring);
}
.nav-right { display: flex; align-items: center; gap: 6px; flex: none; }
.soc {
  width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #1b1b1b !important;
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  font-family: 'Space Mono'; font-size: 10px; font-weight: 700;
  transition: translate .3s var(--spring), rotate .3s var(--spring);
}
.soc:hover { translate: 0 -3px; rotate: -10deg; }
.theme-btn {
  margin-left: 6px; width: 28px; height: 28px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); padding: 0; overflow: hidden;
  transition: background-color .2s, translate .2s, box-shadow .2s;
}
.theme-btn > span { grid-area: 1 / 1; transition: translate .45s var(--spring), rotate .45s var(--spring); }
.theme-btn .ti-sun { translate: 0 140%; rotate: 90deg; }
[data-theme="dark"] .theme-btn .ti-sun { translate: 0 0; rotate: 0deg; }
[data-theme="dark"] .theme-btn .ti-moon { translate: 0 -140%; rotate: -90deg; }
.theme-btn:hover { background: var(--yellow); color: #1b1b1b; translate: -1px -1px; box-shadow: 3px 3px 0 var(--ink); }
.theme-btn:active { translate: 1px 1px; box-shadow: 1px 1px 0 var(--ink); }
.nav-contact {
  margin-left: 2px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border: 1.5px solid var(--ink); background: #fff; color: #1b1b1b !important; box-shadow: 2px 2px 0 var(--ink);
  display: inline-flex; gap: 6px; align-items: center; transition: background-color .2s, box-shadow .2s;
}
.nav-contact:hover { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.heart { display: inline-block; color: var(--pink); animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 40%, 100% { scale: 1; } 15% { scale: 1.35; } 25% { scale: .95; } 32% { scale: 1.2; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  padding-top: 70px; padding-bottom: 70px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 50px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-hi { font-size: 24px; transform: rotate(-3deg); transform-origin: left; }
.name-wrap { position: relative; align-self: flex-start; padding: 18px clamp(44px, 6vw, 70px) 62px 0; max-width: 100%; }
.sel-box { position: relative; border: 1.5px solid var(--bc); padding: 4px 22px 0; background: var(--boxbg); }
.sel-box.red { --bc: var(--red); }
.sel-box.blue { --bc: var(--blue); padding: 4px 18px 0; }
.sel-box .h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--bc); }
.sel-box .h1 { left: -5px; top: -5px; } .sel-box .h2 { right: -5px; top: -5px; }
.sel-box .h3 { left: -5px; bottom: -5px; } .sel-box .h4 { right: -5px; bottom: -5px; }
.sel-tag { position: absolute; right: -2px; top: -24px; font-family: 'Space Mono'; font-size: 10px; background: var(--red); color: #fff; padding: 2px 6px; }
.hero-name { font-size: calc(clamp(58px, 11vw, 150px) * var(--ns, 1)); line-height: .85; letter-spacing: .01em; white-space: nowrap; }

.float-icons { position: absolute; inset: 0; pointer-events: none; }
.fi {
  position: absolute; width: 44px; height: 44px; background: var(--bg); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  display: grid; place-items: center; pointer-events: auto; rotate: var(--r);
  animation: bob var(--dur) ease-in-out var(--dl) infinite;
  transition: scale .35s var(--spring), box-shadow .2s;
}
.fi:hover { scale: 1.2; box-shadow: 4px 4px 0 var(--ink); animation-play-state: paused; }
.fi svg { width: 22px; height: 22px; fill: none; stroke: #1b1b1b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.mono-line { display: flex; align-items: center; gap: 10px; font-family: 'Space Mono'; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.live-dot { flex: none; position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(3); opacity: 0; } }

.hero-lede { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; max-width: 560px; text-wrap: pretty; }
.hl {
  color: #1b1b1b; padding: 0 6px;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 0 / 0% 100%;
  transition: background-size .9s var(--ease) 1.3s;
}
.loaded .hl { background-size: 100% 100%; }
:root[data-theme="dark"] .hl { color: var(--ink); }
.loaded:root[data-theme="dark"] .hl { color: #1b1b1b; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-hire {
  background: var(--ink); color: var(--paper) !important; font-family: 'Space Mono'; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 10px 16px 10px 10px; display: flex; align-items: center; gap: 10px; box-shadow: 3px 3px 0 var(--blue);
  transition: box-shadow .25s var(--ease);
  animation: shadow-pulse 2.4s ease-in-out 2.2s infinite;
}
.btn-hire .arr { width: 16px; height: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 10px; transition: translate .3s var(--spring); }
.btn-hire:hover { box-shadow: 6px 6px 0 var(--blue); animation: none; }
.btn-hire:hover .arr { translate: 3px 0; }
@keyframes shadow-pulse { 0%, 100% { box-shadow: 3px 3px 0 var(--blue); } 50% { box-shadow: 6px 6px 0 var(--blue); } }
.btn-ghost {
  font-family: 'Space Mono'; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 9px 14px;
  border: 1.5px solid var(--ink); background: #fff; color: #1b1b1b !important; transition: background-color .2s;
}
.btn-ghost:hover { background: #a8e6c9; }
.btn-ghost .down { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
[data-magnetic] { will-change: transform; }

/* hero board */
.hero-board { position: relative; min-height: clamp(470px, 118vw, 560px); min-width: 0; }
.px { will-change: translate; }
.polaroid { position: relative; background: #fff; color: #1b1b1b; box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.polaroid img { display: block; width: 100%; height: auto; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; text-align: center; }
.tape {
  position: absolute; z-index: 2; background: var(--tc, rgba(170,190,240,.75)); rotate: var(--tr, -5deg);
  transform-origin: left center;
}
.hero-pol {
  position: absolute; left: 22%; top: 10px; width: min(330px, 68%); padding: 12px 12px 48px; z-index: 1;
  rotate: 3deg; transition: rotate .5s var(--spring), scale .5s var(--spring), box-shadow .3s;
}
.hero-pol:hover { rotate: 1deg; scale: 1.02; box-shadow: 0 22px 46px rgba(0,0,0,.2); }
.hero-pol img { height: clamp(280px, 72vw, 380px); object-position: 50% 22%; }
.hero-pol figcaption { bottom: 12px; right: 16px; text-align: right; font-size: 20px; }

.note-px { position: absolute; left: 0; bottom: 0; z-index: 3; }
.todo {
  width: min(260px, 74vw); background: #f8dca0; color: #1b1b1b; padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14); rotate: -4deg; position: relative;
  transition: rotate .5s var(--spring);
}
.todo:hover { rotate: -2deg; }
.todo .mono-h { margin-bottom: 10px; }
.todo-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 5px 0; cursor: pointer;
  text-align: left; font-family: 'Gaegu'; font-size: 20px; color: #1b1b1b; border-bottom: 1px dashed rgba(17,17,17,.25);
}
.todo-list .box {
  flex: none; width: 18px; height: 18px; border: 1.5px solid #1b1b1b; display: grid; place-items: center;
  font-family: 'Space Mono'; font-size: 12px; color: #fff; transition: background-color .2s, scale .35s var(--spring);
}
.todo-list .lbl { position: relative; transition: opacity .3s; }
.todo-list .lbl::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px; background: #1b1b1b;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.todo-list button:hover .box { scale: 1.12; }
.todo-list .done .box { background: #1b1b1b; animation: tick-pop .4s var(--spring); }
.todo-list .done .box::before { content: "✓"; }
.todo-list .done .lbl { opacity: .55; }
.todo-list .done .lbl::after { transform: scaleX(1); }
@keyframes tick-pop { 0% { scale: .6; } 100% { scale: 1; } }
.todo-count { margin-top: 10px; font-size: 10px; letter-spacing: 0; }
.todo-count.all { animation: wiggle .6s ease-in-out 2; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -2deg; } 75% { rotate: 2deg; } }

.sticker-px { position: absolute; right: 0; top: 40px; z-index: 2; }
.sticker {
  width: 104px; height: 104px; border-radius: 50%; background: var(--yellow); color: #1b1b1b; border: 1.5px solid var(--ink);
  display: grid; place-items: center; rotate: -8deg; position: relative; transition: scale .4s var(--spring);
}
.sticker:hover { scale: 1.1; }
.sticker:hover .ring { animation-duration: 4s; }
.sticker > .pixel { font-size: 32px; line-height: 1; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.18; rotate: 20deg; } }
.ring { position: absolute; inset: 4px; animation: spin 14s linear infinite; }
.ring span {
  position: absolute; left: 50%; top: 4px; height: 44px; transform-origin: 0 44px;
  font-family: 'Space Mono'; font-size: 8px; font-weight: 700;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* hero intro (on load): soft rise + focus, nothing bounces or drops */
.js .intro { opacity: 0; translate: 0 22px; filter: blur(6px); }
.loaded .intro { opacity: 1; translate: 0 0; filter: blur(0); transition: opacity .9s var(--ease), translate 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(.35s + var(--i) * .1s); }
.js .intro-box { clip-path: inset(0 100% 0 0); }
.loaded .intro-box { clip-path: inset(-30px -30px -30px -30px); transition: clip-path 1.2s cubic-bezier(.65,0,.35,1) .15s; }
.js .intro-box .h { scale: 0; }
.loaded .intro-box .h { scale: 1; transition: scale .6s var(--ease) 1.2s; }
.loaded .intro-box.settled .h { transition: scale .25s var(--spring), background-color .2s; }
.js .fi { opacity: 0; scale: .6; filter: blur(4px); }
.loaded .fi { opacity: 1; scale: 1; filter: blur(0); transition: opacity .7s, scale .9s var(--ease), filter .7s; transition-delay: calc(1.15s + var(--i) * .12s); }
.loaded .fi:hover { scale: 1.2; transition: scale .35s var(--spring); }
.js .drop-in { opacity: 0; translate: 0 50px; rotate: 8deg; filter: blur(10px); }
.loaded .drop-in { opacity: 1; translate: 0 0; rotate: 3deg; filter: blur(0); transition: opacity 1s var(--ease) .4s, translate 1.4s var(--ease) .4s, rotate 1.4s var(--ease) .4s, filter 1s var(--ease) .4s, scale .5s var(--spring), box-shadow .3s; }
.loaded .drop-in.settled { filter: none; transition: rotate .5s var(--spring), scale .5s var(--spring), box-shadow .3s; }
.loaded .drop-in.settled:hover { rotate: 1deg; }
.js .slide-in { opacity: 0; translate: -40px 40px; rotate: -10deg; filter: blur(10px); }
.loaded .slide-in { opacity: 1; translate: 0 0; rotate: -4deg; filter: blur(0); transition: opacity 1s var(--ease) .75s, translate 1.4s var(--ease) .75s, rotate 1.4s var(--ease) .75s, filter 1s var(--ease) .75s; }
.loaded .slide-in.settled { filter: none; transition: rotate .5s var(--spring); }
.loaded .slide-in.settled:hover { rotate: -2deg; }
.js .pop-in { opacity: 0; scale: .7; filter: blur(8px); }
.loaded .pop-in { opacity: 1; scale: 1; filter: blur(0); transition: opacity .9s var(--ease) 1.05s, scale 1.2s var(--ease) 1.05s, filter .9s var(--ease) 1.05s; }
.loaded .pop-in.settled { filter: none; transition: scale .4s var(--spring); }
.loaded .pop-in.settled:hover { scale: 1.1; }

/* split headings: letters rise out of each word's mask, driven by scroll (--c per letter) */
.split .wd { display: inline-block; white-space: nowrap; clip-path: inset(-.4em -.3em -.12em -.3em); }
.split .ch { display: inline-block; transition: color .2s; }
.js .split:not(.hero-name) .ch { translate: 0 calc((1 - var(--k, 0)) * 112%); opacity: calc(var(--k, 0) * 1.5); }
.js:not(.loaded) .hero-name .ch { translate: 0 112%; }
.loaded .hero-name .ch { animation: ch-rise 1.1s var(--ease) backwards; animation-delay: calc(.5s + var(--i) * 70ms); }
@keyframes ch-rise { from { translate: 0 112%; } to { translate: 0 0; } }
.split.in .ch { transition: translate .35s var(--spring), color .2s; }
.split.in .ch:hover { translate: 0 -.12em; color: var(--hc, var(--red)); }
.split .sp { display: inline; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative; overflow: hidden; background: var(--yellow); color: #1b1b1b;
  border-block: 1.5px solid var(--ink); rotate: -1.2deg; margin: 10px -20px 0; padding: 12px 0;
}
.marquee-track { display: flex; width: max-content; gap: 22px; align-items: center; animation: marquee 32s linear infinite; transform: skewX(var(--skew, 0deg)); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: 'Jersey 10'; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; letter-spacing: .02em; }
.marquee b { font-size: 18px; display: inline-block; animation: spin 6s linear infinite; }
@keyframes marquee { to { translate: -50% 0; } }

/* ============================================================
   SECTIONS & REVEAL
   ============================================================ */
.sec { position: relative; padding-top: 90px; padding-bottom: 100px; border-top: 1.5px solid rgba(var(--inkrgb), .15); }
#about.sec { border-top: 0; padding-top: 110px; }
.h-sec { font-size: clamp(64px, 10vw, 120px); line-height: .85; margin: 0 0 40px; }
.h-sec.tight { margin: 8px 0 10px; }
#work .h-sec { margin-bottom: 44px; }

/* SCROLL REVEALS: main.js sets --p (0→1) as an element scrolls into view.
   Things rise, fade in and come into focus with the scroll, then settle. */
.js .rv { opacity: var(--p, 0); translate: 0 calc((1 - var(--p, 0)) * 56px); filter: blur(calc((1 - var(--p, 0)) * 10px)); }
.js .rv-pop { opacity: var(--p, 0); translate: 0 calc((1 - var(--p, 0)) * 90px); scale: calc(.86 + var(--p, 0) * .14); filter: blur(calc((1 - var(--p, 0)) * 12px)); }
.js .rv-clip { clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0); }
.js .rv-clip .slot img { scale: calc(1 + (1 - var(--p, 0)) * .18); }
.rv.in, .rv-pop.in { filter: none; transition: translate .45s var(--spring), rotate .45s var(--spring), scale .45s var(--spring), box-shadow .25s, background-color .2s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 60px; align-items: start; }
.about-intro { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pixel.big { font-size: clamp(80px, 11vw, 150px); line-height: .8; }
.about-intro p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 340px; text-wrap: pretty; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: flex; gap: 4px; }
.pill b, .pill i {
  background: var(--c); color: #1b1b1b; font-style: normal;
  transition: translate .3s var(--spring), rotate .3s var(--spring);
}
.pill b { padding: 6px 12px; font-size: 14px; font-weight: 600; }
.pill i { width: 30px; display: grid; place-items: center; }
.pill.light b, .pill.light i { color: #fff; }
.pill:hover b { translate: 0 -3px; }
.pill:hover i { translate: 0 -3px; rotate: 20deg; }

.bio-col { position: relative; min-width: 0; grid-column: 1 / -1; }
.side-tabs { display: none; }
.side-tabs a {
  position: absolute; left: -98px; width: 108px; white-space: nowrap; padding: 6px 10px; display: flex; align-items: center; gap: 6px;
  background: var(--c); color: var(--f) !important; border: 1.5px solid var(--ink);
  font-family: 'Space Mono'; font-size: 10px; font-weight: 700; letter-spacing: .06em; box-shadow: 2px 2px 0 var(--ink);
  transition: left .3s var(--spring);
}
.side-tabs a:nth-child(1) { top: 36px; } .side-tabs a:nth-child(2) { top: 74px; } .side-tabs a:nth-child(3) { top: 112px; }
.side-tabs a:hover { left: -112px; }
.bio-card {
  position: relative; background: var(--card); border: 1.5px solid var(--ink); border-left: 4px solid #f39a5b;
  box-shadow: 6px 6px 0 rgba(var(--inkrgb), .12); padding: 34px clamp(22px, 4vw, 44px) 40px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(232,69,44,.12) 31px 32px);
}
.tag { display: inline-block; font-family: 'Space Mono'; font-size: 10px; font-weight: 700; letter-spacing: .08em; background: var(--c); color: #1b1b1b; padding: 3px 8px; margin-bottom: 18px; }
.bio-text p { margin: 0; font-size: 25px; line-height: 1.3; text-wrap: pretty; }
/* word-by-word reveal (bio style) for every [data-type] block */
.w { transition: opacity .3s, color .3s; }
.js [data-type] .w { opacity: .18; }
.js [data-type] .w.on { opacity: 1; }

.bio-pol1, .bio-pol2 { position: relative; margin-top: 28px; transition: rotate .5s var(--spring), scale .5s var(--spring); }
.bio-pol1 { width: clamp(150px, 42vw, 200px); padding: 9px 9px 34px; box-shadow: 0 10px 24px rgba(0,0,0,.15); rotate: 5deg; }
.bio-pol1:hover { rotate: 2deg; scale: 1.03; }
.bio-pol1 img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.bio-pol1 figcaption { bottom: 8px; font-size: 15px; }
.name-chip {
  position: absolute; left: -18px; bottom: -14px; background: var(--yellow); color: #1b1b1b; border: 1.5px solid var(--ink);
  font-family: 'Space Mono'; font-size: 10px; font-weight: 700; padding: 3px 8px; rotate: -8deg;
}
.bio-pol2 { width: clamp(190px, 52vw, 250px); padding: 9px 9px 30px; box-shadow: 0 8px 20px rgba(0,0,0,.14); rotate: -6deg; margin-left: auto; }
.bio-pol2:hover { rotate: -2deg; scale: 1.04; }
.bio-pol2 .slot { height: clamp(160px, 40vw, 210px); }
.bio-pol2 figcaption { bottom: 5px; font-size: 16px; }

@media (min-width: 760px) {
  .bio-col { margin-left: 98px; grid-column: span 2; }
  .side-tabs { display: block; }
  .bio-card { min-height: 540px; }
  .bio-text { padding-right: clamp(0px, 18vw, 200px); }
  .bio-pol1 { position: absolute; right: -8px; top: -34px; margin: 0; width: clamp(150px, 17vw, 200px); }
  .bio-pol2 { position: absolute; right: 28px; bottom: -40px; margin: 0; width: clamp(190px, 22vw, 250px); }
  .bio-pol2 .slot { height: clamp(160px, 18vw, 210px); }
}

/* services */
.services { margin-top: 110px; }
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.svc-nav { display: flex; align-items: center; gap: 10px; }
.svc-btn {
  width: 40px; height: 40px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer;
  font-size: 16px; box-shadow: 3px 3px 0 var(--ink); transition: translate .2s, box-shadow .2s, background-color .2s, opacity .2s;
}
.svc-btn:hover { background: var(--yellow); color: #1b1b1b; translate: -2px -2px; box-shadow: 5px 5px 0 var(--ink); }
.svc-btn:active { translate: 1px 1px; box-shadow: 1px 1px 0 var(--ink); }
.svc-btn:disabled { opacity: .35; pointer-events: none; }
.svc-count { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
/* horizontal slider: cards run off the right edge of the screen */
.svc-track {
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 4px; scrollbar-width: none;
  margin-right: calc(50% - 50vw); padding: 26px 40px 34px 4px; outline: none; cursor: grab;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.svc-track.dragging .svc { pointer-events: none; }
.svc-track:focus-visible { outline: 2px dashed var(--blue); outline-offset: 4px; }
.svc-track .svc { flex: 0 0 clamp(270px, 33vw, 400px); scroll-snap-align: start; user-select: none; -webkit-user-select: none; }
.svc-track .svc:last-child { scroll-snap-align: end; }
.svc-bar { height: 4px; background: rgba(var(--inkrgb), .12); margin-top: 2px; overflow: hidden; }
.svc-bar span { display: block; height: 100%; width: 25%; background: var(--ink); transform-origin: 0 50%; will-change: transform; }
.svc {
  position: relative; background: var(--card); border: 1.5px solid var(--ink); padding: 26px 20px 22px; box-shadow: 4px 4px 0 var(--ink);
  rotate: var(--rot);
}
.svc.in:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 7px 9px 0 var(--ink); }
.svc .tape { top: -11px; left: 18px; width: 64px; height: 20px; background: var(--tape); opacity: .85; rotate: -4deg; transition: rotate .4s var(--spring), width .4s var(--spring); }
.svc:hover .tape { rotate: 3deg; width: 84px; }
.svc h3 { margin-bottom: 14px; }
.svc li { font-size: 14.5px; line-height: 1.5; padding: 5px 0; border-bottom: 1px dashed rgba(var(--inkrgb), .18); transition: padding-left .25s var(--ease), color .2s; }
.svc li:hover { padding-left: 8px; }
.svc li::before { content: "→ "; color: var(--tape); font-weight: 700; display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; transition: width .25s var(--ease); }
.svc li:hover::before { width: 1.2em; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 40px; align-items: start; }
.jobs { border-top: 1.5px solid var(--ink); }
.jobs li {
  position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1.5px dashed rgba(var(--inkrgb), .25);
}
.jobs li::before {
  content: ""; position: absolute; inset: 0 -10px; background: rgba(245,200,66,.16); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.jobs li:hover::before { transform: scaleX(1); }
.jobs .date { font-family: 'Space Mono'; font-size: 12px; color: var(--muted2); }
.jobs .role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 17px; font-weight: 500; }
.jobs em { font-style: normal; color: #8a877f; }
.jobs b {
  background: var(--c); color: #1b1b1b; padding: 4px 10px; font-family: 'Space Mono'; font-size: 12px; font-weight: 700; rotate: var(--rot);
  transition: rotate .4s var(--spring), scale .4s var(--spring);
}
.jobs li:hover b { rotate: 0deg; scale: 1.08; }
@media (max-width: 520px) { .jobs li { grid-template-columns: 1fr; gap: 6px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.torn {
  background: var(--c); color: #1b1b1b; padding: 22px; rotate: var(--rot);
  clip-path: polygon(0 4%,6% 0,14% 3%,22% 0,31% 4%,40% 0,50% 3%,60% 0,70% 4%,80% 0,90% 3%,100% 0,100% 96%,92% 100%,82% 97%,72% 100%,62% 96%,52% 100%,42% 97%,32% 100%,22% 96%,12% 100%,0 97%);
}
.torn.in:hover { rotate: 0deg; scale: 1.04; }
.f-big { margin-top: 10px; font-size: 18px; font-weight: 600; }
.f-sm { font-size: 14px; }
.quote-card { grid-column: 1 / -1; background: #fff; color: #1b1b1b; border: 1.5px solid var(--ink); padding: 20px 22px; box-shadow: 4px 4px 0 var(--ink); }
.quote-card.in:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.quote-card .hand { font-size: 22px; line-height: 1.3; }

.tools { margin-top: 80px; text-align: center; }
.tools > .hand { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px 10px; justify-content: center; max-width: 960px; margin: 0 auto; }
.chip {
  background: var(--c); color: #1b1b1b; padding: 8px 16px; font-weight: 700; font-size: 15px; rotate: var(--rot);
  clip-path: polygon(0 10%,8% 0,18% 8%,30% 0,42% 9%,55% 0,68% 8%,80% 0,92% 9%,100% 0,100% 90%,92% 100%,80% 92%,68% 100%,55% 91%,42% 100%,30% 92%,18% 100%,8% 91%,0 100%);
}
.js [data-stagger] .chip { opacity: var(--k, 0); translate: 0 calc((1 - var(--k, 0)) * 34px); scale: calc(.8 + var(--k, 0) * .2); filter: blur(calc((1 - var(--k, 0)) * 6px)); }
[data-stagger].in .chip { filter: none; transition: rotate .35s var(--spring), translate .35s var(--spring), scale .35s var(--spring); }
[data-stagger].in .chip:hover { rotate: calc(var(--rot) * -3); translate: 0 -5px; scale: 1.08; }

/* ============================================================
   WORK
   ============================================================ */
.work-sec { padding-bottom: 60px; }
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.work-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.work-card:hover { color: var(--ink); }
.work-card.in:hover { translate: 0 -6px; }
.folder { position: relative; background: var(--fc); color: #1b1b1b; padding: 44px 22px 22px; clip-path: polygon(0 0,max(34%, 200px) 0,calc(max(34%, 200px) + 22px) 26px,100% 26px,100% 100%,0 100%); }
.badge { position: absolute; top: 8px; left: 16px; background: #fff; color: #1b1b1b; border-radius: 20px; padding: 3px 10px; font-family: 'Space Mono'; font-size: 10px; font-weight: 700; }
.badge::first-letter { color: var(--green); }
.folder-shot { height: 280px; background: var(--inner); padding: 8px; overflow: hidden; }
.folder-shot .slot { transition: scale .6s var(--ease); }
.work-card:hover .folder-shot .slot { scale: 1.04; }
.work-meta { text-align: center; }
.w-title { font-size: 22px; font-weight: 600; display: inline-block; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 90% / 0% 40%; transition: background-size .4s var(--ease); }
.work-card:hover .w-title { background-size: 100% 40%; }
.w-sub { font-size: 13px; color: var(--muted2); margin-top: 4px; }

/* image slots */
.slot {
  position: relative; width: 100%; height: 100%; min-height: 60px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, rgba(27,27,27,.05) 0 10px, transparent 10px 20px), #f2efe6;
  display: grid; place-items: center; text-align: center; color: #5c5a55;
}
.slot::before {
  content: "+"; position: absolute; top: 50%; left: 50%; translate: -50% -130%;
  width: 34px; height: 34px; border: 1.5px dashed currentColor; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Space Mono'; font-size: 18px; opacity: .7;
}
.slot::after {
  content: attr(data-label); padding: 46px 18px 0; max-width: 90%;
  font-family: 'Space Mono'; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
}
.slot.filled { background: #ddd; }
.slot.filled::before, .slot.filled::after { display: none; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.folder.dark .slot, .case-hero .slot { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px), #2a2a2a; color: #a5a29a; }

/* ============================================================
   CASE STUDY
   ============================================================ */
.case { padding-top: 60px; padding-bottom: 100px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.case-intro { max-width: 560px; }
.case-intro p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-family: 'Space Mono'; font-size: 10px; font-weight: 700; letter-spacing: .06em; background: #ece0c8; color: #1b1b1b; border: 1px solid rgba(0,0,0,.15); padding: 4px 10px; }
.case-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); gap: 14px; }
.torn.sm { padding: 12px 14px; font-size: 13px; clip-path: polygon(0 6%,10% 0,22% 5%,36% 0,50% 6%,64% 0,78% 5%,90% 0,100% 6%,100% 94%,90% 100%,78% 95%,64% 100%,50% 94%,36% 100%,22% 95%,10% 100%,0 94%); }
.torn.sm .mono-xs { margin-bottom: 4px; letter-spacing: 0; }
.case-hero { margin-top: 40px; height: clamp(260px, 42vw, 520px); background: var(--ink); padding: 10px; }
.block { margin-top: 70px; }
.block:last-child { margin-top: 80px; }
.approach { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.step { border-top: 1.5px solid var(--ink); padding-top: 14px; position: relative; }
.step::before { content: ""; position: absolute; top: -1.5px; left: 0; height: 1.5px; width: 0; background: var(--red); transition: width .6s var(--ease); }
.step:hover::before { width: 100%; }
.step .num { font-size: 56px; line-height: .9; display: inline-block; transition: translate .4s var(--spring), rotate .4s var(--spring); }
.step:hover .num { translate: 6px 0; rotate: -6deg; }
.step h3 { font-size: 18px; font-weight: 600; margin: 8px 0; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

.deliv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.dv { background: var(--card); border: 1.5px solid var(--ink); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.dv.in:hover { box-shadow: 5px 5px 0 var(--ink); translate: -2px -2px; }
.dv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: 'Space Mono'; font-size: 11px; font-weight: 700; }
.dv-top b { background: var(--c); color: #1b1b1b; padding: 3px 8px; font-size: 10px; transition: rotate .35s var(--spring); }
.dv:hover .dv-top b { rotate: -4deg; }
.dv h3 { font-size: 19px; font-weight: 600; line-height: 1.2; }
.dv p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.dv a { font-family: 'Space Mono'; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-decoration: underline; margin-top: auto; align-self: flex-start; }

.results-lede { margin: 8px 0 28px; font-size: 15px; line-height: 1.55; max-width: 640px; }
.hand.lg + .results-lede { margin-top: -12px; }
.results { display: flex; flex-wrap: wrap; gap: 18px; }
.res {
  background: var(--c); color: #1b1b1b; padding: 16px 20px; min-width: 170px; rotate: var(--rot); flex: 1 1 170px; max-width: 260px;
  clip-path: polygon(0 5%,8% 0,18% 4%,30% 0,42% 5%,55% 0,68% 4%,80% 0,92% 5%,100% 0,100% 95%,92% 100%,80% 96%,68% 100%,55% 95%,42% 100%,30% 96%,18% 100%,8% 95%,0 100%);
}
.res.in:hover { rotate: 0deg; scale: 1.06; }
.r-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.r-sub { font-size: 12px; margin-top: 2px; }
.res .mono-xs { margin-top: 8px; }
.shots { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.shot { height: 300px; overflow: hidden; }
.shot .slot { transition: scale .6s var(--ease); }
.shot:hover .slot { scale: 1.03; }

/* screenshots inside cards */
.slot.zoom.filled { cursor: zoom-in; }
.slot.zoom img { transition: scale .6s var(--ease); }
.slot.zoom.filled:hover img { scale: 1.04; }
.dv-shot { height: 170px; border: 1.5px solid var(--ink); background: #f2efe6; overflow: hidden; }
.dv-shot .slot { background-color: #fff; }

/* operational leadership */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.lead { position: relative; padding: 18px 18px 18px 22px; background: var(--card); border: 1.5px solid var(--ink); overflow: hidden; }
.lead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); transition: width .45s var(--ease); z-index: 0; }
.lead.in:hover::before { width: 100%; }
.lead > * { position: relative; z-index: 1; transition: color .3s; }
.lead.in:hover > * { color: #1b1b1b; }
.lead h3 { font-size: 17px; font-weight: 600; margin: 6px 0 8px; line-height: 1.25; }
.lead p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lead.in:hover { translate: 0 -4px; box-shadow: 4px 4px 0 var(--ink); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 16px 24px;
  background: rgba(18,18,18,.88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: lb-in .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.closing { animation: lb-out .22s ease forwards; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1400px, 100%); }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); background: #fff; padding: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #f4f3ee; text-align: center; }
.lb-close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 1.5px solid #f4f3ee; background: var(--yellow); color: #1b1b1b;
  font-size: 16px; cursor: pointer; box-shadow: 3px 3px 0 #f4f3ee; transition: rotate .3s var(--spring);
}
.lb-close:hover { rotate: 90deg; }

/* ============================================================
   MORE PROJECTS
   ============================================================ */
.more { padding-top: 40px; padding-bottom: 100px; }
.more > .hand { margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; position: relative; z-index: 2; }
.tab {
  border: none; cursor: pointer; font-family: 'Space Mono'; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 10px 22px;
  background: var(--tab); color: var(--ink); clip-path: polygon(0 0,88% 0,100% 100%,0 100%);
  transition: background-color .3s, color .3s, padding .3s var(--spring);
}
.tab:hover { padding-top: 13px; }
.tab[data-tab="0"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab[data-tab="1"][aria-selected="true"] { background: var(--yellow); color: #1b1b1b; }
.proj {
  background: var(--ink); color: var(--paper); --rule: rgba(255,255,255,.2);
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 36px; align-items: center;
  transition: background-color .4s, color .4s;
}
:root[data-theme="dark"] .proj[data-proj="0"] { --rule: rgba(0,0,0,.2); }
.proj[data-proj="1"] { background: var(--yellow); color: #1b1b1b; --rule: rgba(0,0,0,.2); }
.proj-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.proj-copy > * { transition: opacity .3s var(--ease), translate .4s var(--ease); }
.proj.swapping .proj-copy > * { opacity: 0; translate: 0 10px; }
.p-title { font-size: clamp(34px, 4.5vw, 52px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.p-sum { font-size: 15px; line-height: 1.55; max-width: 480px; }
.p-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 20px; margin-top: 6px; }
.p-cols .mono-xs { margin-bottom: 8px; letter-spacing: .08em; }
.p-cols li { font-size: 13.5px; line-height: 1.4; padding: 4px 0; border-bottom: 1px dashed var(--rule); }
.p-impact { font-size: 21px; line-height: 1.3; margin-top: 4px; }
.proj-shot {
  position: relative; height: clamp(260px, 32vw, 400px); background: #fff; color: #1b1b1b; padding: 8px; rotate: 1.5deg;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: rotate .5s var(--spring);
}
.proj-shot:hover { rotate: 0deg; }
.proj.swapping .proj-shot { rotate: -3deg; }
.proj-shot.flip { animation: shot-flip .45s var(--spring); }
@keyframes shot-flip { 0% { scale: .94; opacity: .5; } 100% { scale: 1; opacity: 1; } }
.p-thumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: -12px; }
.p-thumbs:empty { display: none; }
.p-thumb {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1.5px solid var(--rule); color: inherit;
  font-family: 'Space Mono'; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left;
  transition: background-color .2s, border-color .2s, translate .3s var(--spring);
}
.p-thumb img { width: 64px; height: 40px; object-fit: cover; object-position: 0 0; display: block; background: #fff; }
.p-thumb:hover { translate: 0 -3px; }
.p-thumb.on { background: var(--yellow); color: #1b1b1b; border-color: var(--yellow); }
@media (max-width: 640px) { .p-thumb span { display: none; } .p-thumb { padding: 5px; } .p-thumbs { justify-content: center; } }

/* ============================================================
   LET'S TALK
   ============================================================ */
.talk { padding-top: 100px; padding-bottom: 80px; border-top: 1.5px solid rgba(var(--inkrgb), .15); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.smiley {
  margin-top: 60px; width: 110px; height: 110px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); position: relative;
  transition: rotate .5s var(--spring), scale .5s var(--spring);
  animation: float 4s ease-in-out infinite;
}
.smiley.in:hover { rotate: -12deg; scale: 1.08; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.smiley .eye { position: absolute; top: 34px; width: 10px; height: 18px; border-radius: 50%; background: #1b1b1b; animation: blink 5s infinite; transform-origin: 50% 50%; }
.smiley .eye.l { left: 32px; } .smiley .eye.r { right: 32px; }
.smiley .pupil { position: absolute; left: 2px; top: 3px; width: 3px; height: 4px; border-radius: 50%; background: #fff; }
.smiley .eye { translate: var(--ex, 0) var(--ey, 0); transition: translate .15s linear; }
@keyframes blink { 0%, 46%, 50%, 100% { scale: 1 1; } 48% { scale: 1 .1; } }
.smiley .cheek { position: absolute; top: 58px; width: 16px; height: 10px; border-radius: 50%; background: #ff8fb3; opacity: .8; transition: opacity .3s, scale .3s; }
.smiley .cheek.l { left: 22px; } .smiley .cheek.r { right: 22px; }
.smiley:hover .cheek { opacity: 1; scale: 1.3; }
.smiley .mouth { position: absolute; left: 32px; top: 50px; width: 46px; height: 30px; border-bottom: 4px solid #1b1b1b; border-radius: 0 0 30px 30px; transition: height .3s var(--spring), top .3s var(--spring); }
.smiley:hover .mouth { height: 36px; top: 46px; }
.big-talk { font-size: clamp(72px, 11vw, 130px); line-height: .85; }
.talk-p { margin: 0; font-size: 22px; line-height: 1.3; max-width: 460px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative; padding-top: 40px; padding-bottom: 120px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; align-items: center;
}
.c-pol1, .c-pol2 { justify-self: center; padding: 10px 10px 40px; box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.c-pol1 { rotate: -6deg; width: 220px; }
.c-pol1.in:hover { rotate: -2deg; }
.c-pol1 img { height: 230px; object-position: 50% 15%; }
.c-pol2 { rotate: 5deg; width: 210px; }
.c-pol2.in:hover { rotate: 2deg; }
.c-pol2 .slot { height: 210px; }
.c-pol1 figcaption, .c-pol2 figcaption { bottom: 10px; font-size: 16px; }
.c-mid { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.c-title { font-size: calc(clamp(60px, 7vw, 84px) * var(--ns, 1)); line-height: .85; }
.form-note {
  width: 100%; max-width: 380px; background: #f8dca0; color: #1b1b1b; padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.1);
  rotate: -1deg; position: relative;
}
.form-note.in:hover { rotate: 0deg; }
.step-pane { display: flex; flex-direction: column; gap: 12px; }
.step-pane[hidden] { display: none; }
.step-pane:not([hidden]) { animation: pane-in .45s var(--ease); }
@keyframes pane-in { from { opacity: 0; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }
.form-note textarea, .form-note input {
  width: 100%; border: none; border-bottom: 1.5px dashed rgba(17,17,17,.4); background: transparent; padding: 6px 0;
  font-family: 'Gaegu'; font-size: 20px; outline: none; color: #1b1b1b; transition: border-color .2s;
}
.form-note textarea { resize: vertical; }
.form-note textarea:focus, .form-note input:focus { border-bottom-color: var(--blue); border-bottom-style: solid; }
.form-note ::placeholder { color: rgba(27,27,27,.5); }
.f-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.f-btn {
  align-self: flex-start; border: none; cursor: pointer; background: #1b1b1b; color: #f4f3ee;
  font-family: 'Space Mono'; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 9px 14px;
  transition: background-color .2s, translate .2s, box-shadow .2s;
}
.f-btn:hover { background: var(--blue); translate: -2px -2px; box-shadow: 2px 2px 0 #1b1b1b; }
.f-btn:active { translate: 0 0; box-shadow: none; }
.f-btn.ghost { border: 1.5px solid #1b1b1b; background: transparent; color: #1b1b1b; padding: 8px 12px; }
.f-btn.ghost:hover { background: rgba(255,255,255,.5); }
.f-err { font-family: 'Gaegu'; font-size: 17px; color: #b8321c; }
.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { translate: 0 0; } 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.thanks { font-size: 40px; line-height: 1; animation: pop .6s var(--spring); }
@keyframes pop { from { scale: .5; opacity: 0; } to { scale: 1; opacity: 1; } }
.open-work { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.mail { font-family: 'Space Mono'; font-size: 12px; color: var(--blue) !important; text-decoration: underline; }
:root[data-theme="dark"] .mail { color: #8f9bff !important; }
.soc-bar { display: flex; background: #fff; color: #1b1b1b; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.soc-bar a {
  padding: 10px 18px; font-family: 'Space Mono'; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #1b1b1b !important;
  display: flex; flex-direction: column; align-items: center; gap: 4px; border-right: 1.5px solid var(--ink); transition: background-color .2s;
}
.soc-bar a:last-child { border-right: 0; }
.soc-bar a span { font-size: 14px; transition: translate .3s var(--spring); }
.soc-bar a:hover { background: var(--h); }
.soc-bar a:hover span { translate: 0 -3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1.5px solid rgba(var(--inkrgb), .15); }
.foot-in { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: 'Space Mono'; font-size: 11px; color: var(--muted2); }
.to-top { color: var(--muted2); }
.to-top:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 640px) {
  .nav-in { flex-wrap: wrap; padding: 8px 16px; }
  .nav-left { order: 2; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; }
  .nav-left .logo { display: none; }
  .nav-right { order: 1; width: 100%; justify-content: flex-end; }
  .nav-right::before { content: "M.O."; margin-right: auto; font-family: 'Jersey 10'; font-size: 22px; line-height: 1; }
  :root { --nav-h: 86px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .fi { width: 38px; height: 38px; }
  .fi svg { width: 19px; height: 19px; }
  .sec { padding-top: 70px; padding-bottom: 80px; }
  .services { margin-top: 80px; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .res { max-width: none; }
  .contact { padding-bottom: 80px; }
  .c-pol2 { display: none; }
  .soc-bar a { padding: 10px 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .rv-pop, .js .rv-clip, .js .intro, .js .drop-in, .js .slide-in, .js .pop-in, .js .fi, .js [data-stagger] .chip, .js .split .ch, .js [data-type] .w { opacity: 1 !important; translate: none !important; scale: 1 !important; clip-path: none !important; filter: none !important; }
  .js .intro-box { clip-path: none !important; }
  .marquee-track { animation: none; }
}

/* ============================================================
   PROJECT COVERS (generated by scripts/build_work.py)
   ============================================================ */
.works { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.folder-shot { height: 300px; }
.peekable { position: relative; overflow: hidden; container-type: size; }
.peekable > .slot { position: absolute; inset: 0; }

.cover {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  background-color: var(--cv-bg); color: var(--cv-ink);
  background-image: repeating-linear-gradient(to bottom, transparent 0 23px, color-mix(in srgb, var(--cv-ink) 9%, transparent) 23px 24px);
  transition: translate .6s var(--ease), rotate .6s var(--ease);
  transform-origin: 0% 100%;
}
.cv-tape { position: absolute; top: -8px; left: 50%; width: 22%; height: 20px; margin-left: -11%; background: rgba(255,255,255,.55); rotate: -3deg; z-index: 3; }
.cv-top {
  position: absolute; top: 5.5cqh; left: 5cqi; right: 5cqi; display: flex; justify-content: space-between; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: clamp(9px, 2.6cqi, 13px); font-weight: 700; letter-spacing: .06em;
}
.cv-title {
  position: absolute; left: 5cqi; top: 15cqh;
  font-family: 'Jersey 10', monospace; line-height: .8; letter-spacing: .01em;
  font-size: min(23cqi, 37cqh);
}
.cv-note {
  position: absolute; left: 6cqi; top: calc(15cqh + min(23cqi, 37cqh) * 1.65); rotate: -3deg; transform-origin: left;
  font-family: 'Gaegu', cursive; font-size: clamp(15px, 5cqi, 30px); line-height: 1;
}
.cv-stamp {
  position: absolute; right: 6cqi; top: 16cqh; width: clamp(64px, 22cqi, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cv-accent); color: #1b1b1b; border: 1.5px solid #1b1b1b; box-shadow: 3px 3px 0 #1b1b1b;
  display: grid; place-content: center; text-align: center; rotate: 10deg;
  animation: stamp-bob 3.4s ease-in-out infinite;
}
.cv-stamp::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgba(27,27,27,.45); animation: spin 18s linear infinite; }
.cv-stamp b { font-family: 'Jersey 10', monospace; font-weight: 400; font-size: clamp(22px, 7.5cqi, 54px); line-height: .85; }
.cv-stamp span { font-family: 'Space Mono', monospace; font-size: clamp(7px, 2cqi, 12px); font-weight: 700; letter-spacing: .06em; }
@keyframes stamp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.cv-board { position: absolute; left: 5cqi; bottom: 7cqh; display: flex; gap: 6px; align-items: flex-end; }
.cv-board i {
  display: block; width: clamp(14px, 4.4cqi, 30px); height: calc(var(--h) * clamp(7px, 2.6cqh, 18px));
  border: 1.5px solid currentColor; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, color-mix(in srgb, currentColor 35%, transparent) 4px 6px);
  opacity: .8;
}
.cv-tools { position: absolute; right: 5cqi; bottom: 7cqh; display: flex; gap: 8px; }
.cv-tool {
  width: clamp(34px, 11cqi, 66px); aspect-ratio: 1; display: grid; place-items: center;
  background: #fff; border: 1.5px solid #1b1b1b; box-shadow: 2px 2px 0 #1b1b1b; rotate: var(--r);
  animation: bob 3s ease-in-out calc(var(--i) * -.6s) infinite;
}
.cv-tool svg { width: 62%; height: 62%; }
.cv-peek {
  position: absolute; left: 50%; bottom: 7cqh; translate: -50% 0; padding: 4px 9px; border-radius: 99px;
  background: var(--cv-ink); color: var(--cv-bg); white-space: nowrap;
  font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em;
  opacity: 0; transition: opacity .3s;
}
@container (max-width: 430px) or (max-height: 260px) {
  .cv-board { display: none; }
  .cv-peek { left: 5cqi; translate: 0 0; }
}
.cover-big .cv-title { font-size: min(17cqi, 34cqh); }
.cover-big .cv-note { top: calc(15cqh + min(17cqi, 34cqh) * 1.65); font-size: clamp(18px, 3.4cqi, 34px); }
.cover-big .cv-stamp { width: clamp(90px, 16cqi, 170px); }
.cover-big .cv-tool { width: clamp(44px, 7cqi, 74px); }

/* hover reveals the real project; leaving brings the cover back */
@media (hover: hover) {
  .work-card:hover .cover, .work-card:focus-visible .cover,
  .cs-cover:hover .cover, .next-card:hover .cover {
    translate: 0 -106%; rotate: -5deg; transition: translate .75s var(--spring), rotate .75s var(--spring);
  }
  .cover .cv-peek { opacity: .9; }
  .peekable > .slot img { scale: 1.06; transition: scale .8s var(--ease); }
  .work-card:hover .peekable > .slot img, .cs-cover:hover > .slot img, .next-card:hover .peekable > .slot img { scale: 1; }
}
.peekable.peek .cover { translate: 0 -106%; rotate: -5deg; transition: translate .75s var(--spring), rotate .75s var(--spring); }
.work-card:hover .folder-shot .slot { scale: 1; }

.w-tools { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.tchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; background: var(--card); border: 1.5px solid var(--ink);
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.tchip svg { width: 16px; height: 16px; background: #fff; border-radius: 3px; padding: 1px; }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.cs-hero { padding-top: 34px; padding-bottom: 40px; }
.back-link { display: inline-block; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 6px 10px; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 2px 2px 0 var(--ink); margin-bottom: 30px; transition: translate .2s, box-shadow .2s; }
.back-link:hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.cs-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.cs-intro { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.cs-intro .w-tools { justify-content: flex-start; margin-top: 4px; }
.cs-title { font-size: clamp(52px, 10vw, 128px); }
.cs-tagline { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; text-wrap: pretty; }
.cs-intro .muted { margin: 0; font-size: 15px; line-height: 1.55; }
.cs-cover-wrap { margin-top: 44px; position: relative; }
.cs-cover { height: clamp(300px, 48vw, 600px); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 rgba(var(--inkrgb), .15); background: #fff; }
.peek-btn {
  position: absolute; right: 16px; bottom: -16px; z-index: 5; cursor: pointer;
  font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 8px 12px;
  background: var(--yellow); color: #1b1b1b; border: 1.5px solid #1b1b1b; box-shadow: 3px 3px 0 #1b1b1b;
  transition: translate .2s, box-shadow .2s;
}
.peek-btn:hover { translate: -2px -2px; box-shadow: 5px 5px 0 #1b1b1b; }
.peek-btn[aria-pressed="true"] { background: #a8e6c9; }

.cs-block { padding-top: 70px; padding-bottom: 10px; }
.cs-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 60px; align-items: start; }
.cs-ov-text p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cs-ov-text p:first-of-type { color: var(--ink); font-size: 19px; }
.cs-challenge {
  position: relative; background: #f8dca0; color: #1b1b1b; padding: 26px 24px 22px; rotate: 1.5deg;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.cs-challenge.in:hover { rotate: 0deg; }
.cs-challenge .mono-h { margin-bottom: 12px; }
.cs-challenge li { display: flex; gap: 10px; align-items: baseline; font-family: 'Gaegu', cursive; font-size: 21px; line-height: 1.25; padding: 6px 0; border-bottom: 1px dashed rgba(17,17,17,.3); }
.cs-challenge li span { color: var(--red); font-family: 'Space Mono'; font-size: 13px; font-weight: 700; }

.builds { display: flex; flex-direction: column; gap: 80px; }
.build { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 30px 50px; align-items: center; }
@media (min-width: 900px) {
  .build { grid-template-columns: 1.25fr 1fr; }
  .build.flip { grid-template-columns: 1fr 1.25fr; }
  .build.flip .build-media { order: 2; }
}
.build-media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.build-shot { height: clamp(220px, 30vw, 380px); background: #fff; padding: 8px; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); rotate: -1deg; }
.build.flip .build-shot { rotate: 1deg; }
.build-shot .slot, .build-extra .slot { height: 100%; }
.build-extra { height: clamp(160px, 20vw, 240px); background: #fff; padding: 6px; border: 1.5px solid var(--ink); margin-left: 12%; rotate: 1.5deg; box-shadow: 4px 4px 0 var(--ink); }
.build-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.build-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.build-num { font-size: 52px; line-height: .8; color: var(--red); }
.build-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.build-copy h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.build-copy .lbl { margin-bottom: 4px; color: var(--muted2); }
.build-copy p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.build-link { align-self: flex-start; font-family: 'Space Mono'; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-decoration: underline; }

.cs-outcome { margin: -6px 0 28px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.3; max-width: 760px; text-wrap: pretty; }
.r-big.txt { font-family: 'Jersey 10', monospace; font-weight: 400; font-size: 40px; line-height: .9; letter-spacing: 0; }
.outcome-points { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.outcome-points li { font-family: 'Gaegu', cursive; font-size: 21px; }

.cs-next { padding-top: 90px; }
.cs-next > .hand { margin-bottom: 14px; }
.next-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: center;
  padding: 22px; background: var(--card); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); color: var(--ink);
  transition: translate .3s var(--ease), box-shadow .3s;
}
.next-card:hover { color: var(--ink); translate: -3px -3px; box-shadow: 9px 9px 0 var(--ink); }
.next-copy { display: flex; flex-direction: column; gap: 10px; }
.next-title { font-size: clamp(48px, 7vw, 92px); line-height: .85; }
.next-copy .w-sub { font-size: 15px; }
.next-shot { height: 300px; border: 1.5px solid var(--ink); }
.slot[data-fit="contain"].filled { background: #eef1f4; }
.cs-cta { padding-top: 100px; padding-bottom: 110px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }

/* ============================================================
   RESIZABLE SELECTION BOXES (drag the pixel corners)
   ============================================================ */
.sel-box[data-resize] .h { z-index: 3; cursor: nwse-resize; touch-action: none; transition: scale .25s var(--spring), background-color .2s; }
.sel-box[data-resize] .h2, .sel-box[data-resize] .h3 { cursor: nesw-resize; }
.sel-box[data-resize] .h::after { content: ""; position: absolute; inset: -12px; }
html .sel-box[data-resize] .h:hover, html .sel-box.resizing .h { scale: 1.7; background: var(--bc); }
.sel-box[data-resize] { transition: box-shadow .25s; width: max-content; }
.name-wrap { z-index: 4; max-width: none; }
.sel-box[data-resize]:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bc) 14%, transparent); }
.sel-box.resizing { user-select: none; -webkit-user-select: none; outline: 1px dashed var(--bc); outline-offset: 7px; }
.sel-box.snap { transition: left .7s var(--spring), top .7s var(--spring), box-shadow .25s; }
.sel-box.snap .hero-name, .sel-box.snap .c-title { transition: font-size .7s var(--spring); }
.sel-tag { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* case pages: objective + text-only build card */
.cs-objective { margin-top: 8px; padding: 14px 18px; border-left: 4px solid var(--yellow); background: var(--card); border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.cs-objective .mono-xs { color: var(--muted2); }
.cs-objective p { margin: 6px 0 0 !important; font-size: 16px !important; color: var(--ink) !important; line-height: 1.5; }
.build-note {
  position: relative; min-height: 240px; padding: 34px 26px 24px; background: #f8dca0; color: #1b1b1b; rotate: -1.5deg;
  box-shadow: 0 12px 28px rgba(0,0,0,.14); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(27,27,27,.08) 27px 28px);
}
.build-note .bn-tools { position: absolute; top: 28px; right: 26px; display: flex; gap: 8px; }
.build-note .cv-tool { width: 64px; }
.build-note .hand { font-size: 34px; line-height: 1.05; }

/* ============================================================
   HERO ON PHONES & TABLETS: compact board, no parallax
   ============================================================ */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 40px; padding-bottom: 50px; gap: 34px; }
  .hero-name { font-size: calc(clamp(56px, 17.5vw, 130px) * var(--ns, 1)); }
  .name-wrap { padding: 16px 52px 58px 0; }
  .hero-board { min-height: 0; height: clamp(430px, 112vw, 640px); width: 100%; max-width: 640px; margin: 0 auto; }
  .hero-board .px { translate: none !important; }
  .hero-pol { left: auto; right: 2%; top: 4px; width: min(380px, 60%); padding: 10px 10px 40px; }
  .hero-pol img { height: auto; aspect-ratio: 4 / 5; }
  .hero-pol figcaption { font-size: 17px; bottom: 10px; right: 12px; }
  .note-px { left: 0; bottom: 6px; }
  .todo { width: min(260px, 64vw); padding: 16px 16px 14px; }
  .todo-list button { font-size: 18px; padding: 4px 0; }
  .sticker-px { right: auto; left: 3%; top: 6%; }
  .sticker { width: 92px; height: 92px; }
  .ring span { height: 39px; transform-origin: 0 39px; font-size: 7.5px; }
  .marquee { margin-top: 0; }
}
@media (max-width: 420px) {
  .hero-board { height: clamp(400px, 118vw, 500px); }
  .todo { width: 63vw; }
  .todo-list button { font-size: 17px; gap: 8px; }
  .todo .mono-h { font-size: 10px; }
  .sticker { width: 80px; height: 80px; }
  .ring span { height: 34px; transform-origin: 0 34px; font-size: 6.5px; }
  .fi { width: 36px; height: 36px; }
  .name-wrap { padding-right: 46px; }
}

/* experience: location under the dates + "now" tag */
.jobs .when { display: flex; flex-direction: column; gap: 4px; }
.jobs .loc { display: inline-flex; align-items: center; gap: 4px; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .02em; color: var(--muted2); opacity: .85; }
.jobs .loc svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.jobs .now { position: relative; display: inline-flex; align-items: center; gap: 5px; font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--green); }
.jobs .now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: now-pulse 1.8s ease-in-out infinite; }
@keyframes now-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }
@media (max-width: 520px) { .jobs .when { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: center; } }

/* ============================================================
   FIZZ LAYER (fizz.js)
   ============================================================ */

/* ---------- boot intro ---------- */
.boot { display: none; }
html.booting { overflow: hidden; }
html.booting .boot, .boot.out {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px);
}
.boot.out { translate: 0 -105%; transition: translate .85s cubic-bezier(.76,0,.24,1) .05s; }
.boot-in { width: min(460px, 86vw); display: flex; flex-direction: column; gap: 16px; transition: opacity .3s, translate .4s var(--ease); }
.boot.out .boot-in { opacity: 0; translate: 0 -30px; }
.boot-top { display: flex; justify-content: space-between; color: var(--muted2); }
.boot-clock { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.boot-count { font-size: clamp(96px, 22vw, 150px); line-height: .78; letter-spacing: .01em; display: flex; align-items: flex-start; }
.boot-count i { font-style: normal; font-size: .4em; margin-top: .12em; color: var(--red); }
.boot-board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 132px; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 4px 4px 0 var(--ink); }
.bcol { border-right: 1.5px dashed rgba(var(--inkrgb), .25); padding: 8px; }
.bcol:last-of-type { border-right: 0; }
.bcol b { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .08em; }
.bcard {
  position: absolute; top: 40px; left: calc(var(--step, 0) * 33.333% + 8px); width: calc(33.333% - 16px);
  padding: 8px 9px; background: #f8dca0; color: #1b1b1b; border: 1.5px solid #1b1b1b; box-shadow: 2px 2px 0 #1b1b1b;
  font-family: 'Space Mono', monospace; font-size: 9.5px; font-weight: 700; line-height: 1.3; rotate: -2deg;
  transition: left .5s cubic-bezier(.34,1.56,.64,1), background-color .3s, rotate .5s var(--spring);
}
.boot[data-step="1"] .bcard { background: #b8bff5; rotate: 2deg; }
.boot[data-step="2"] .bcard { background: #a8e6c9; rotate: -1deg; }
.bcard em { display: block; font-family: 'Gaegu', cursive; font-style: normal; font-size: 15px; font-weight: 400; margin-top: 2px; }
.bdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 5px; vertical-align: 1px; }
.boot[data-step="2"] .bdot { background: var(--green); }
.boot-line { color: var(--muted); }
.boot-shutter {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #1b1b1b 14px 28px);
  border-top: 1.5px solid #1b1b1b;
}

/* ---------- name scramble ---------- */
.hero-name .ch.scr { color: var(--red); }

/* ---------- chaos → clarity ---------- */
.chaos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.chaos-head .h-sec { margin-bottom: 0; }
.chaos-side { max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.chaos-side p { margin: 0; font-size: 15px; line-height: 1.55; }
.chaos-meter { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1.5px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); align-self: flex-start; }
.chaos-meter b { font-size: 46px; line-height: .8; color: var(--red); min-width: 1.1em; text-align: center; transition: color .3s; }
.chaos-meter b.zero { color: var(--green); }
.chaos-meter b.zero::after { content: " ✓"; font-size: .6em; }
.chaos-board {
  position: relative; margin-top: 36px; height: 560px;
  border: 1.5px dashed rgba(var(--inkrgb), .3);
  background-image: radial-gradient(rgba(var(--inkrgb), .14) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  transition: height .8s var(--ease), border-color .4s;
}
.chaos-board[data-mode="clarity"] { border-color: transparent; background-image: none; }
.cb-lane {
  position: absolute; left: 0; top: 0; width: 33%; height: 100%;
  border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--c) 22%, var(--card));
  opacity: 0; scale: .97; pointer-events: none;
  transition: opacity .4s, scale .6s var(--ease), left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .7s var(--ease);
}
.chaos-board[data-mode="clarity"] .cb-lane { opacity: 1; scale: 1; transition-delay: .1s; }
.cb-lane span { position: absolute; left: 14px; top: 14px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.cb-lane em { position: absolute; right: 14px; top: 11px; font-style: normal; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--c); color: #1b1b1b; border: 1.5px solid #1b1b1b; }
.tk {
  position: absolute; left: 0; top: 0; z-index: 2; padding: 12px 14px 12px; cursor: grab;
  background: var(--c); color: #1b1b1b; box-shadow: 0 10px 22px rgba(0,0,0,.16);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; will-change: transform;
  transition: transform .95s cubic-bezier(.34,1.32,.5,1) calc(var(--o, 0) * 45ms), background-color .5s, box-shadow .3s, border-color .5s;
  border: 1.5px solid transparent;
}
.tk::before { content: ""; position: absolute; top: -9px; left: 50%; width: 46px; height: 16px; margin-left: -23px; background: rgba(255,255,255,.55); rotate: -4deg; transition: opacity .3s; }
.tk.drag { transition: none; cursor: grabbing; box-shadow: 12px 18px 0 rgba(var(--inkrgb), .2); }
.chaos-board.instant .tk, .chaos-board.instant .cb-lane, .chaos-board.instant { transition: none !important; }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.tk-tag { font-family: 'Space Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; background: rgba(255,255,255,.55); }
.tk-own { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1b1b1b; color: #f4f3ee; font-family: 'Space Mono', monospace; font-size: 8px; font-weight: 700; opacity: 0; scale: .4; transition: opacity .3s, scale .4s var(--spring); }
.tk-t { margin: 0; font-family: 'Gaegu', cursive; font-size: 21px; line-height: 1.1; }
.tk-meta { display: flex; justify-content: space-between; align-items: center; max-height: 0; overflow: hidden; opacity: 0; transition: opacity .4s .3s; font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted2); }
.tk-ok { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 11px; scale: 0; transition: scale .4s var(--spring) .6s; }
.chaos-board[data-mode="clarity"] .tk { background: var(--card); color: var(--ink); border-color: var(--ink); border-top: 5px solid var(--c); box-shadow: 3px 3px 0 var(--ink); cursor: default; }
.chaos-board[data-mode="clarity"] .tk::before { opacity: 0; }
.chaos-board[data-mode="clarity"] .tk-tag { background: var(--c); color: #1b1b1b; }
.chaos-board[data-mode="clarity"] .tk-own { opacity: 1; scale: 1; }
.chaos-board[data-mode="clarity"] .tk-t { font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3; }
.chaos-board[data-mode="clarity"] .tk-meta { max-height: 30px; opacity: 1; margin-top: 8px; }
.tk.is-done .tk-ok { scale: 1; }
.tk.is-done .tk-t { text-decoration: line-through; text-decoration-color: rgba(var(--inkrgb), .35); }
.tk.swap .tk-t { animation: tswap .55s var(--ease) backwards; animation-delay: calc(var(--o, 0) * 45ms + .18s); }
@keyframes tswap { from { opacity: 0; filter: blur(6px); translate: 0 6px; } }
.tk.wob { animation: wob .5s; }
@keyframes wob { 25% { translate: -6px 0; } 50% { translate: 5px -3px; } 75% { translate: -3px 0; } }
@media (hover: hover) { .chaos-board[data-mode="chaos"] .tk:hover { box-shadow: 0 16px 30px rgba(0,0,0,.2); } }
.chaos-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.chaos-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); padding: 15px 24px;
  font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  box-shadow: 5px 5px 0 var(--pink); animation: btn-pulse 1.8s ease-in-out infinite;
  transition: box-shadow .25s, background-color .2s;
}
.chaos-btn.used { animation: none; }
.chaos-btn:hover { box-shadow: 8px 8px 0 var(--pink); }
.chaos-btn[aria-pressed="true"] { background: var(--yellow); color: #1b1b1b; box-shadow: 5px 5px 0 var(--ink); }
.cb-ico { display: inline-block; animation: spin 4s linear infinite; }
@keyframes btn-pulse { 0%, 100% { box-shadow: 5px 5px 0 var(--pink), 0 0 0 0 rgba(255,95,162,.5); } 50% { box-shadow: 5px 5px 0 var(--pink), 0 0 0 12px rgba(255,95,162,0); } }
.chaos-hint { font-size: 20px; animation: bob 1.6s ease-in-out infinite; transition: opacity .4s; }
.chaos-hint.gone { opacity: 0; }

/* ---------- contact: intake ticket ---------- */
.c-lede { margin: 0; font-size: 20px; }
.intake, .c-links { grid-column: 1 / -1; }
.intake { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: start; max-width: 1040px; width: 100%; margin: 10px auto 0; }
.c-links { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intake-form {
  position: relative; background: #f8dca0; color: #1b1b1b; padding: 26px 26px 24px; rotate: -.6deg;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(27,27,27,.07) 31px 32px);
}
.intake-form.in:hover { rotate: 0deg; }
.ik-steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; }
.ik-steps li { padding: 4px 9px; border: 1.5px solid rgba(27,27,27,.35); color: rgba(27,27,27,.55); transition: background-color .3s, color .3s, border-color .3s; }
.ik-steps li.done { border-color: #1b1b1b; color: #1b1b1b; }
.ik-steps li.done::before { content: "✓ "; }
.ik-steps li.on { background: #1b1b1b; color: #f8dca0; border-color: #1b1b1b; }
.ik-pane { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ik-pane[hidden] { display: none; }
.ik-pane:not([hidden]) { animation: pane-in .45s var(--ease); }
.ik-q { padding: 0; font-family: 'Gaegu', cursive; font-size: 28px; line-height: 1.1; display: flex; flex-direction: column; gap: 4px; }
.ik-q .mono-xs { color: rgba(27,27,27,.6); }
.ik-q.sm { font-size: 22px; margin-top: 4px; }
.ik-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.ik-chip { position: relative; cursor: pointer; }
.ik-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ik-chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; background: rgba(255,255,255,.55);
  border: 1.5px solid #1b1b1b; font-size: 14px; font-weight: 600; box-shadow: 2px 2px 0 #1b1b1b;
  transition: background-color .2s, translate .25s var(--spring), rotate .25s var(--spring), box-shadow .2s;
}
.ik-chip:hover span { translate: 0 -2px; box-shadow: 3px 4px 0 #1b1b1b; }
.ik-chip input:checked + span { background: #1b1b1b; color: #f8dca0; rotate: -2deg; box-shadow: 3px 3px 0 var(--pink); }
.ik-chip:nth-child(even) input:checked + span { rotate: 2deg; }
.ik-chip input:focus-visible + span { outline: 2px dashed var(--blue); outline-offset: 3px; }
.ik-chaos { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 6px 16px; align-items: center; }
.ik-level-face { grid-row: 1 / span 2; grid-column: 2; font-size: 46px; line-height: 1; }
.ik-level-face.bump { animation: face-bump .4s var(--spring); }
@keyframes face-bump { 0% { scale: .6; rotate: -15deg; } }
.ik-level-label { color: rgba(27,27,27,.7); }
#ik-level {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; background: transparent; cursor: pointer;
  --fill: 50%;
}
#ik-level::-webkit-slider-runnable-track { height: 14px; border: 1.5px solid #1b1b1b; background: linear-gradient(90deg, #22c55e, #f5c842 50%, #e8452c) 0 0 / 100% 100%; background-clip: padding-box; }
#ik-level::-moz-range-track { height: 14px; border: 1.5px solid #1b1b1b; background: linear-gradient(90deg, #22c55e, #f5c842 50%, #e8452c); }
#ik-level::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -7.5px; background: #fff; border: 2px solid #1b1b1b; box-shadow: 2px 2px 0 #1b1b1b; transition: scale .2s var(--spring); }
#ik-level::-moz-range-thumb { width: 22px; height: 22px; border-radius: 0; background: #fff; border: 2px solid #1b1b1b; }
#ik-level:active::-webkit-slider-thumb { scale: 1.2; }
.intake-form textarea, .intake-form input:not([type]), .intake-form input[type="email"] {
  width: 100%; border: none; border-bottom: 1.5px dashed rgba(17,17,17,.4); background: transparent; padding: 6px 0;
  font-family: 'Gaegu', cursive; font-size: 21px; outline: none; color: #1b1b1b; resize: vertical;
}
.intake-form textarea:focus, .intake-form input:focus { border-bottom: 1.5px solid var(--blue); }
.intake-form ::placeholder { color: rgba(27,27,27,.5); }
.ik-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.f-btn.send { background: var(--blue); }
.f-btn.send:hover { background: #1b1b1b; }
.ik-done .hand { font-size: 21px; margin: 0; }
.intake-form.shake { animation: shake .4s; }

/* the live ticket */
.ticket {
  position: relative; background: #fff; color: #1b1b1b; border: 1.5px solid #1b1b1b; box-shadow: 6px 6px 0 #1b1b1b;
  padding: 20px 22px 18px 30px; rotate: 1deg; font-size: 14px;
  transition: rotate .4s var(--spring), box-shadow .3s;
}
.ticket::before { /* perforated edge */
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 8px;
  background: radial-gradient(circle, var(--paper) 3px, transparent 3.5px) 0 0 / 8px 14px repeat-y;
}
.ticket.in:hover { rotate: 0deg; }
.tkt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1.5px dashed rgba(27,27,27,.3); padding-bottom: 10px; }
.tkt-id { font-size: 32px; line-height: .8; color: var(--red); }
.tkt-status { display: flex; gap: 4px; margin: 12px 0; flex-wrap: wrap; }
.tkt-status span { padding: 3px 8px; border: 1.5px solid rgba(27,27,27,.25); color: rgba(27,27,27,.45); transition: all .3s; }
.tkt-status span.on { background: #1b1b1b; color: #fff; border-color: #1b1b1b; animation: pop .4s var(--spring); }
.tkt-rows { margin: 0; display: flex; flex-direction: column; }
.tkt-rows > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed rgba(27,27,27,.15); transition: background-color .6s; }
.tkt-rows > div.flash { animation: row-flash .9s ease; }
@keyframes row-flash { 0% { background: rgba(245,200,66,.7); } 100% { background: transparent; } }
.tkt-rows dt { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: rgba(27,27,27,.55); }
.tkt-rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tkt-rows dd.empty { color: rgba(27,27,27,.35); font-weight: 400; font-family: 'Gaegu', cursive; font-size: 17px; }
.tkt-rows .notes dd { font-family: 'Gaegu', cursive; font-size: 18px; font-weight: 400; line-height: 1.2; }
.tkt-rows .tag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 7px; background: #b8bff5; font-size: 12px; font-weight: 600; animation: pop .35s var(--spring); }
.tkt-rows .tag:nth-child(3n+2) { background: #a8e6c9; }
.tkt-rows .tag:nth-child(3n+3) { background: #ffb3cf; }
.tkt-bar { display: block; height: 10px; border: 1.5px solid #1b1b1b; background: #f2efe6; }
.tkt-bar i { display: block; height: 100%; width: calc(var(--l) * 100%); background: linear-gradient(90deg, #22c55e, #f5c842 50%, #e8452c); background-size: calc(100% / var(--l)) 100%; transition: width .5s var(--spring); }
.tkt-prio { font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; padding: 3px 8px; border: 1.5px solid #1b1b1b; display: inline-block; }
.tkt-prio.p1 { background: var(--red); color: #fff; animation: prio-throb 1s ease-in-out infinite; }
.tkt-prio.p2 { background: var(--yellow); }
.tkt-prio.p3 { background: #a8e6c9; }
@keyframes prio-throb { 50% { box-shadow: 0 0 0 5px rgba(232,69,44,.25); } }
.tkt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; color: rgba(27,27,27,.6); }
.tkt-barcode { height: 30px; color: #1b1b1b; flex: none; }
.tkt-stamp {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; rotate: -14deg; pointer-events: none;
  font-size: 54px; line-height: 1; padding: 6px 16px 2px; white-space: nowrap;
  color: var(--red); border: 4px solid var(--red); border-radius: 6px; background: rgba(255,255,255,.4);
  opacity: 0; scale: 2.6;
}
.ticket.stamped { animation: tkt-hit .45s .2s; }
.ticket.stamped .tkt-stamp { animation: stamp-slam .5s cubic-bezier(.2,1.5,.4,1) forwards; }
@keyframes stamp-slam { 0% { opacity: 0; scale: 2.6; } 60% { opacity: 1; scale: .92; } 100% { opacity: .92; scale: 1; } }
@keyframes tkt-hit { 30% { translate: 0 6px; rotate: -.5deg; } 60% { translate: 0 -2px; } }
.ticket.on-fire { box-shadow: 6px 6px 0 var(--red); }
.ticket.on-fire::after { content: "🔥"; position: absolute; right: -14px; top: -18px; font-size: 34px; animation: bob 1s ease-in-out infinite; }

@media (max-width: 860px) {
  .intake { grid-template-columns: 1fr; gap: 26px; }
  .ticket { order: -1; rotate: .5deg; }
}

/* ---------- live status chip ---------- */
.status-chip {
  position: fixed; left: 16px; bottom: 16px; z-index: 55; display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px; background: var(--card); color: var(--ink) !important; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  max-width: calc(100vw - 32px); translate: 0 160%; opacity: 0;
  transition: translate .6s var(--spring), opacity .3s, box-shadow .2s;
}
.status-chip.show { translate: 0 0; opacity: 1; }
.status-chip:hover { box-shadow: 5px 5px 0 var(--ink); translate: -2px -2px; }
.sc-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sc-main { font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
.sc-main b { color: var(--red); }
.sc-sub { font-size: 16px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .status-chip { left: 10px; bottom: 10px; padding: 7px 11px 7px 10px; } .sc-sub { display: none; } .sc-main { font-size: 9px; } }

/* ---------- approval stamps ---------- */
.stamp {
  position: absolute; z-index: 9997; pointer-events: none; translate: -50% -50%; rotate: var(--rot);
  font-family: 'Jersey 10', monospace; font-size: 30px; line-height: 1; letter-spacing: .04em; white-space: nowrap;
  color: var(--sink); border: 3px solid var(--sink); border-radius: 5px; padding: 4px 10px 1px;
  animation: stamp-in .35s cubic-bezier(.2,1.6,.4,1) both, stamp-out .45s ease 1.2s forwards;
}
@keyframes stamp-in { from { scale: 2.4; opacity: 0; } to { scale: 1; opacity: .9; } }
@keyframes stamp-out { to { opacity: 0; scale: .9; } }

/* ---------- pixel sign-off ---------- */
.signoff { padding: 30px 0 30px; border-top: 1.5px solid rgba(var(--inkrgb), .15); overflow: hidden; }
.signoff-in { position: relative; }
.signoff-hint { position: absolute; left: 20px; top: -6px; rotate: -4deg; font-size: 20px; z-index: 1; }
.pixel-sign { display: block; margin: 18px auto 0; touch-action: pan-y; cursor: crosshair; }

@media (max-width: 700px) {
  .chaos-board[data-mode="chaos"] .tk-t { font-size: 18px; }
  .tk { padding: 10px 12px; }
  .bcard { font-size: 8.5px; overflow-wrap: anywhere; padding: 7px; }
  .bcard em { font-size: 13px; }
}

/* ============================================================
   PICK UP & MOVE (polaroids, sticker, floating icons, smiley)
   ============================================================ */
[data-drag] { touch-action: auto; }
.moved.fi, .moved.smiley { animation: none; }
.is-held {
  z-index: 60 !important; scale: 1.06; filter: none !important;
  transition: scale .3s var(--spring), rotate .3s var(--spring), box-shadow .3s !important;
  box-shadow: 14px 22px 0 rgba(var(--inkrgb), .18), 0 24px 50px rgba(0,0,0,.18) !important;
}
.moved { z-index: 5; }
.going-home { transition: translate .7s var(--spring) !important; }
html.grabbing, html.grabbing * { user-select: none; -webkit-user-select: none; }
.cursor.is-grab .cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: color-mix(in srgb, var(--blue) 25%, transparent); }

/* ============================================================
   BIRTHDAY MODE (Nov 18, or ?bday=1): set in the page head
   ============================================================ */
html.booting .burst { z-index: 10001; }
.boot-stamp {
  position: absolute; left: 44%; top: 52%; translate: -50% -50%; rotate: -12deg; z-index: 3; pointer-events: none;
  font-family: 'Jersey 10', monospace; font-size: clamp(30px, 9vw, 46px); line-height: 1; white-space: nowrap;
  color: var(--red); border: 3px solid var(--red); outline: 1.5px solid var(--red); outline-offset: 3px; padding: 2px 12px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  animation: stamp-slam .45s cubic-bezier(.2,.8,.2,1) both;
}
.boot-board:has(.boot-stamp) { animation: boot-thud .35s .2s; }
@keyframes boot-thud { 30% { translate: 0 3px; } 60% { translate: 0 -1px; } }
.boot-count.flip .boot-num { display: inline-block; color: var(--red); animation: count-flip .5s var(--spring); }
@keyframes count-flip { 0% { scale: 1 0; } 100% { scale: 1 1; } }
.boot.is-bday .boot-clock { color: var(--red); }
.confetti { position: fixed; inset: 0; z-index: 10002; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 0; top: 0; border: 1px solid #1b1b1b; will-change: transform; }
