:root {
  /* overwritten from content.json (site.*Color) */
  --bg: #c2acc6;
  --accent: #e8402a;
  --ink: #1d1322;
  --glow: #fff4fb;
  --glow-k: 1;

  --bg-2: color-mix(in srgb, var(--bg) 70%, #fff);
  --ink-2: color-mix(in srgb, var(--ink) 68%, transparent);
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --on-ink: var(--bg);
  --on-ink-2: color-mix(in srgb, var(--bg) 72%, transparent);
  --display: "Anton", Impact, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--ink); color: var(--bg); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.accent { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } input, textarea, select { cursor: text; } }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
  transition: transform 1s var(--ease) .1s;
}
#preloader.done { transform: translateY(-100%); }
.pre-count { font-family: var(--display); font-size: clamp(100px, 22vw, 320px); line-height: .85; }
.pre-count small { font-size: .3em; color: var(--accent); margin-left: .1em; }
.pre-label { opacity: .6; margin-top: 12px; }

/* ---------- ambience ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* above everything, including the Studio pop-up (165) and confetti (160) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 300; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--ink);
  display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
}
.cursor-ring span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--accent) 25%, transparent); border-color: var(--accent); }
.cursor-ring.label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--ink); border-color: var(--ink); }
.cursor-ring.label span { opacity: 1; }
.cursor-ring.on-dark { border-color: var(--bg); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
.spark { position: fixed; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 140; background: var(--accent); }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 14px; left: var(--gutter); right: var(--gutter); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 60%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); transition: transform .5s var(--ease);
}
nav.hide { transform: translateY(-140%); }
.logo { font-family: var(--display); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; display: inline-block; }
nav ul { display: flex; gap: 26px; list-style: none; }
nav ul a { opacity: .65; transition: opacity .2s; position: relative; white-space: nowrap; }
@media (max-width: 1280px) { nav ul { gap: 16px; } nav ul a { font-size: 11px; letter-spacing: .08em; } }
@media (max-width: 1120px) { nav ul { gap: 12px; } nav .btn { display: none; } }
nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
nav ul a:hover, nav ul a.active { opacity: 1; }
nav ul a.active::after, nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s, background .3s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark::before { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent::before { background: var(--ink); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--bg); }
nav .btn { padding: 9px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; }
.spotlight {
  position: absolute; width: 900px; height: 900px; left: 0; top: 0; margin: -450px 0 0 -450px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow) 55%, transparent) 0%, transparent 60%); opacity: .7;
}
.hero-title {
  position: absolute; left: 0; right: 0; top: 13vh; text-align: center; pointer-events: none; will-change: transform;
  font-family: var(--display); font-weight: 400; line-height: .88; text-transform: uppercase; color: var(--ink);
  font-size: clamp(80px, 18.5vw, 330px); letter-spacing: -.005em; perspective: 800px;
}
.hero-title .line { display: block; white-space: nowrap; transition: font-size .5s var(--ease); }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.ch { display: inline-block; transform-origin: 50% 100%; transition: transform .6s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.ch.out { transform: translateY(-60%) rotateX(80deg); opacity: 0; }
.ch.pre { transform: translateY(60%) rotateX(-80deg); opacity: 0; transition: none; }

.me-wrap {
  position: absolute; bottom: 0; left: 50%; height: min(92svh, 140vw); aspect-ratio: 2 / 3;
  transform: translate(-50%, 110%); transition: transform 1.4s var(--ease); will-change: transform;
}
body.ready .me-wrap { transform: translate(-50%, 0); }
#me {
  position: relative; width: 100%; height: 100%; display: block;
  /* thin glow that follows the silhouette and hides rough cut-out edges.
     It's static: the soft, wide, pulsing glow is the .me-halo behind, which costs
     almost nothing to animate (opacity), unlike blurring the canvas every frame. */
  filter:
    drop-shadow(0 0 calc(1.5px * var(--glow-k)) var(--glow))
    drop-shadow(0 0 calc(7px * var(--glow-k)) color-mix(in srgb, var(--glow) 80%, transparent))
    drop-shadow(0 0 calc(18px * var(--glow-k)) color-mix(in srgb, var(--glow) 45%, transparent));
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.me-halo {
  position: absolute; left: -12%; right: -12%; top: -4%; bottom: 8%; pointer-events: none; border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--glow) 75%, transparent), color-mix(in srgb, var(--glow) 28%, transparent) 55%, transparent 78%),
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent 85%);
  opacity: .7; transition: opacity .6s;
}
/* Safari / slow devices: one thin outline glow; the halo does the rest */
html.lite #me { filter: drop-shadow(0 0 calc(2px * var(--glow-k)) var(--glow)); }
html.lite .me-halo { left: -16%; right: -16%; }
.hero-bio { position: absolute; left: var(--gutter); bottom: 48px; width: min(360px, 30vw); z-index: 2; }
.hero-bio p { font-size: 16px; color: var(--ink-2); margin: 14px 0 22px; }
.hero-bio p strong { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-side { position: absolute; right: var(--gutter); bottom: 48px; z-index: 2; width: min(300px, 26vw); }
.badge { display: inline-flex; align-items: center; gap: 10px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 4px rgba(47,191,91,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(47,191,91,0); } }
.side-exp { margin-top: 14px; color: var(--ink-2); }
.watching { margin-top: 14px; color: var(--ink); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--bg); mix-blend-mode: difference; }
.scroll-cue i { width: 1.5px; height: 36px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* hero intro */
.hero-bio, .hero-side, nav { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.ready .hero-bio, body.ready .hero-side { opacity: 1; transform: none; transition-delay: .6s; }
body.ready nav { opacity: 1; transform: none; transition-delay: .3s; }
body.ready nav.hide { transform: translateY(-140%); transition-delay: 0s; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 18px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee span { font-family: var(--display); font-size: 30px; letter-spacing: .03em; white-space: nowrap; display: flex; align-items: center; gap: 48px; padding-right: 48px; text-transform: uppercase; transition: color .3s; }
.marquee span:hover { color: var(--accent); }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 18px; display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 12vw, 150px) var(--gutter); position: relative; }
section[hidden] { display: none; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 18px; margin-bottom: 48px; position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.sec-head.in::after { transform: none; }
.sec-head h2 { font-family: var(--display); font-size: clamp(48px, 8vw, 120px); line-height: .9; text-transform: uppercase; font-weight: 400; overflow: hidden; padding-bottom: .04em; }
.sec-head h2 small { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.sec-head .mono { color: var(--ink-2); text-align: right; opacity: 0; transition: opacity 1s .4s; }
.sec-head.in .mono { opacity: 1; }
.split .w { display: inline-block; white-space: nowrap; }
.split .c { display: inline-block; transform: translateY(110%) rotate(6deg); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.sec-head.in .split .c { transform: none; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* work */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; perspective: 1200px; }
.card {
  position: relative; padding: 32px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line);
  min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transform-style: preserve-3d; transition: background .4s, color .4s;
  --mx: 50%; --my: 50%;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 28%, transparent), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.1); transition: opacity .6s, transform 1.2s var(--ease); }
.card-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), color-mix(in srgb, var(--ink) 40%, transparent)); }
.card:hover .card-bg { opacity: 1; transform: none; }
.card:hover { background: var(--ink); color: var(--bg); }
.card > * { position: relative; }
.card:hover .card-desc { color: var(--on-ink-2); }
.card-top { display: flex; justify-content: space-between; transform: translateZ(30px); }
.card-num { font-family: var(--display); font-size: 140px; line-height: .8; opacity: .1; position: absolute !important; right: 28px; bottom: 24px; transition: opacity .4s, transform .6s var(--ease); }
.card:hover .card-num { opacity: .25; transform: translateY(-10px); color: var(--accent); }
.card-body { transform: translateZ(50px); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: .95; text-transform: uppercase; margin: 70px 0 14px; max-width: 12ch; }
.card-desc { color: var(--ink-2); max-width: 42ch; transition: color .4s; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 18px; transition: transform .5s var(--ease), background .3s; }
.card:hover .arrow { transform: rotate(45deg) scale(1.1); background: var(--accent); border-color: var(--accent); color: #fff; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.skill { padding: 32px 24px 40px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.skill + .skill { padding-left: 24px; border-left: 1px solid var(--line); }
.skill::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); }
.skill:hover::before { transform: none; }
.skill > * { position: relative; transition: color .4s; }
.skill:hover > * { color: var(--bg); }
.skill:hover .mono { color: var(--accent); }
.skill .mono { color: var(--accent); }
.skill h3 { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; margin: 18px 0 10px; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.skill:hover h3 { transform: translateX(8px); }
.skill p { color: var(--ink-2); }
.skill:hover p { color: var(--on-ink-2); }
.skill-idx { position: absolute !important; right: 18px; top: 24px; font-family: var(--display); font-size: 64px; line-height: 1; opacity: .08; }

/* lab */
.lab-intro { max-width: 52ch; color: var(--ink-2); margin: -24px 0 40px; }
.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1200px; }
.exp { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 28px; min-height: 400px; display: flex; flex-direction: column; transform-style: preserve-3d; }
.exp[hidden] { display: none; }
.exp .mono { color: var(--accent); }
.exp h3 { font-family: var(--display); font-weight: 400; font-size: 36px; text-transform: uppercase; margin-top: 10px; line-height: 1; }
.exp p { color: var(--on-ink-2); margin-top: 8px; font-size: 15px; }
.exp-stage { flex: 1; display: grid; place-items: center; position: relative; min-height: 170px; }
.exp-stage > * { grid-area: 1 / 1; }
.exp button.pill { border: 1.5px solid var(--bg); border-radius: 999px; padding: 10px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s; }
.exp button.pill:hover { background: var(--bg); color: var(--ink); }
.exp-status { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .7; margin-top: 12px; }
.exp-overlay {
  align-self: center; justify-self: center; z-index: 2; pointer-events: none; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 80%, transparent); color: var(--bg);
  border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); backdrop-filter: blur(6px); transition: opacity .3s, scale .3s;
}
.exp-overlay.hide { opacity: 0; scale: .9; }

/* Pixel Perfect */
.swatches { width: min(100%, 230px); aspect-ratio: 1; display: grid; gap: 5px; grid-template-columns: repeat(var(--n, 3), 1fr); }
.swatch { border-radius: 6px; background: var(--c); transition: transform .15s, outline-color .2s; outline: 2px solid transparent; outline-offset: 2px; }
.swatch:hover { transform: scale(.94); }
.swatch.right { outline-color: #7be09a; }
.swatches.wrong { animation: look-shake .4s; }
.swatches.reveal-odd .swatch.odd { outline-color: var(--accent); }

/* Ease Match */
.ease-stage { display: flex !important; flex-direction: column; justify-content: center; align-items: stretch !important; gap: 18px; }
.ease-track { position: relative; height: 34px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); margin: 0 4px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), color-mix(in srgb, var(--bg) 14%, transparent) calc(10% - 1px) 10%); }
.ease-dot { position: absolute; top: 50%; left: 17px; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.ease-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ease-opt { border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 12px; padding: 8px 6px 6px; display: grid; gap: 4px; justify-items: center; transition: background .2s, border-color .2s; }
.ease-opt:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); border-color: var(--bg); }
.ease-opt svg { width: 100%; height: 46px; overflow: visible; }
.ease-opt path { fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-linecap: round; }
.ease-opt .axis { stroke: color-mix(in srgb, var(--bg) 25%, transparent); stroke-width: 1; }
.ease-opt span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.ease-opt.right { background: #2e7d4a; border-color: #7be09a; }
.ease-opt.wrong { background: #7a2318; border-color: #ff9b8a; }
.ease-opt:disabled { cursor: default; }

/* Dead Center */
.center-board { width: 100%; height: auto; border-radius: 14px; background: color-mix(in srgb, var(--bg) 6%, transparent); border: 1px dashed color-mix(in srgb, var(--bg) 25%, transparent); cursor: crosshair; }
.center-board .shape { fill: color-mix(in srgb, var(--bg) 85%, transparent); }
.center-board .truth { fill: none; stroke: #7be09a; stroke-width: 2; }
.center-board .guess { fill: var(--accent); }
.center-board .miss { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.center-board .score-tag { fill: var(--bg); font: 700 14px var(--mono); text-anchor: middle; }

.exp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.exp-row .exp-status { margin: 0; }

/* about */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.stat { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 9vw, 140px); line-height: .9; display: block; }
.stat b em { font-style: normal; color: var(--accent); }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); }
.about-lead { font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; text-transform: uppercase; }
.about-lead em { font-style: normal; color: var(--accent); }
.facts { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.facts li:hover { padding-left: 10px; }
.facts li span:first-child { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 40px; }
.tags span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; transition: background .3s, color .3s, transform .3s var(--ease); display: inline-block; }
.tags span:hover { background: var(--ink); color: var(--bg); transform: rotate(-4deg) scale(1.08); }
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.client { background: var(--bg-2); border-radius: 16px; padding: 18px; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, color .3s; }
.client:hover { transform: translateY(-4px); background: var(--accent); color: #fff; }
.client b { font-family: var(--display); font-weight: 400; font-size: 24px; display: block; text-transform: uppercase; }
.client span { opacity: .7; font-size: 13px; }

/* contact */
.contact { background: var(--ink); color: var(--bg); border-radius: 36px 36px 0 0; }
.contact .sec-head .mono { color: var(--on-ink-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; max-width: 30ch; }
.links { margin-top: 40px; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); transition: padding .35s var(--ease), color .25s; }
.links a:hover { padding-left: 14px; color: var(--accent); }
.links a span:last-child { font-size: clamp(18px, 2vw, 24px); overflow-wrap: anywhere; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; }
label .mono { opacity: .7; }
.hp { position: absolute; left: -9999px; }
input, select, textarea {
  font: inherit; color: var(--bg); background: transparent; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--bg) 40%, transparent);
  padding: 10px 0; outline: none; transition: border-color .2s; border-radius: 0;
}
select option { color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
form .btn { justify-self: start; margin-top: 8px; }
form .btn-accent::before { background: var(--bg); }
form .btn-accent:hover { color: var(--ink); }
.form-note { opacity: .7; min-height: 1.5em; }
.form-note.ok { color: #7be09a; opacity: 1; }
.form-note.err { color: #ff9b8a; opacity: 1; }
footer { background: var(--ink); color: var(--on-ink-2); display: flex; justify-content: space-between; padding: 24px var(--gutter) 32px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
footer a:hover { color: var(--bg); }

/* ---------- look toggle (formal / casual) ---------- */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #c2acc6; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #1d1322; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e8402a; }
@property --glow { syntax: "<color>"; inherits: true; initial-value: #fff4fb; }
:root { transition: --bg .8s var(--ease), --ink .8s var(--ease), --accent .8s var(--ease), --glow .8s var(--ease); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.look-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: inset 0 0 0 1px var(--line); isolation: isolate;
}
.look-opt { position: relative; z-index: 1; padding: 6px 12px; font-size: 11px; text-align: center; color: var(--ink-2); transition: color .4s; }
.look-knob {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--ink); transition: transform .55s cubic-bezier(.7,-0.4,.3,1.4), background .4s;
}
html:not([data-look=casual]) .look-opt[data-look=formal],
html[data-look=casual] .look-opt[data-look=casual] { color: var(--bg); }
html[data-look=casual] .look-knob { transform: translateX(100%); background: var(--accent); }
.look-toggle:hover .look-knob { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

/* character swap: the current one sinks, the new one rises */
body.switching .me-wrap { transform: translate(-50%, 110%); transition: transform .55s cubic-bezier(.7,0,.8,.3); }
body.switching .hero-title { opacity: 0 !important; transition: opacity .3s; }

/* colour wipe that grows out of the toggle (View Transitions where supported) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: look-reveal .9s cubic-bezier(.7,0,.2,1); }
@keyframes look-reveal {
  from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 5%)); }
  to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 5%)); }
}

/* ---------- floating outfit buttons beside the character ---------- */
.look-float { position: absolute; inset: 0; z-index: 4; pointer-events: none; --meW: calc(min(92svh, 140vw) * 2 / 3); }
.look-btn {
  position: absolute; top: 40%; pointer-events: auto; text-align: left; color: var(--b-ink);
  opacity: 0; transition: opacity .8s var(--ease) 1.1s;
  /* each button wears its own outfit's colours (set from content in site.js) */
  --b-bg: #c2acc6; --b-ink: #1d1322; --b-acc: #e8402a;
}
.look-btn[data-look=casual] { --b-bg: #efe9df; --b-ink: #17151c; --b-acc: #ff5a1f; }
.look-btn[data-look=formal] { right: calc(50% + var(--meW) * .42); }
.look-btn[data-look=casual] { left: calc(50% + var(--meW) * .42); }
body.ready .look-btn { opacity: 1; }
body.switching .look-btn { pointer-events: none; }

.look-btn-inner {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--b-bg) 88%, #fff); border: 2px solid var(--b-ink);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--b-ink) 55%, transparent), 4px 4px 0 var(--b-ink);
  transition: transform .4s var(--ease), box-shadow .3s, opacity .4s, filter .4s;
  animation: look-bob 3.2s ease-in-out infinite;
}
.look-btn[data-look=casual] .look-btn-inner { animation-delay: -1.6s; }
@keyframes look-bob { 50% { translate: 0 -10px; } }
.look-btn-avatar {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; position: relative;
  background: var(--b-bg); border: 2px solid var(--b-ink); transition: transform .5s cubic-bezier(.3,1.6,.5,1);
}
.look-btn-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.look-btn-text { display: grid; line-height: 1; gap: 4px; }
.look-hint { font-family: "Caveat", cursive; font-size: 20px; color: var(--b-acc); line-height: .9; }
.look-name { font-family: "Anton", sans-serif; font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.look-btn[data-look=casual] .look-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.03em; }
.look-btn-badge {
  position: absolute; top: -11px; left: 50%; translate: -50% 0; padding: 3px 9px; border-radius: 999px; font-size: 9px;
  background: var(--b-ink); color: var(--b-bg); white-space: nowrap; opacity: 0; scale: .6; transition: opacity .3s, scale .3s var(--ease);
}
.look-btn-badge::before { content: "✓ "; }

/* the one you can switch to: pulsing ring + sparkles */
.look-btn-ring { position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--b-acc); pointer-events: none; opacity: 0; }
.look-btn.is-next .look-btn-ring { animation: look-ring 1.9s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes look-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.7); } }
.look-btn.is-next .look-btn-inner::before, .look-btn.is-next .look-btn-inner::after {
  content: "✦"; position: absolute; color: var(--b-acc); font-size: 16px; pointer-events: none; animation: look-twinkle 2.4s ease-in-out infinite;
}
.look-btn.is-next .look-btn-inner::before { top: -14px; right: 6px; }
.look-btn.is-next .look-btn-inner::after { bottom: -12px; left: 18px; font-size: 11px; animation-delay: -1.2s; }
@keyframes look-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(90deg); } }
.look-btn.is-next:hover .look-btn-inner { transform: scale(1.07) rotate(var(--tilt, 0deg)); box-shadow: 0 18px 36px -12px color-mix(in srgb, var(--b-ink) 60%, transparent), 6px 6px 0 var(--b-acc); }
.look-btn.is-next:hover .look-btn-avatar { transform: rotate(-12deg) scale(1.12); }
.look-btn.is-next:active .look-btn-inner { transform: scale(.94); box-shadow: 0 8px 18px -10px var(--b-ink), 1px 1px 0 var(--b-ink); }

/* the one you're wearing: calmer, with a badge */
.look-btn.is-current .look-btn-inner { opacity: .72; filter: saturate(.7); animation-duration: 5s; box-shadow: 0 10px 24px -14px var(--b-ink), 2px 2px 0 var(--b-ink); }
.look-btn.is-current .look-btn-badge { opacity: 1; scale: 1; }
.look-btn.is-current:hover .look-btn-inner { opacity: 1; filter: none; }
.look-btn.shake .look-btn-inner { animation: look-shake .45s; }
@keyframes look-shake { 20%, 60% { transform: translateX(-7px) rotate(-3deg); } 40%, 80% { transform: translateX(7px) rotate(3deg); } }

/* nudge: hand-drawn arrow + speech bubble */
.look-bubble {
  position: absolute; bottom: calc(100% + 30px); left: 50%; translate: -50% 0; width: max-content; max-width: 210px;
  padding: 8px 14px; border-radius: 16px; background: var(--b-ink); color: var(--b-bg);
  font-family: "Caveat", cursive; font-size: 22px; line-height: 1.05; text-align: center;
  opacity: 0; scale: .5; transform-origin: 50% 120%; transition: opacity .3s, scale .45s cubic-bezier(.3,1.6,.5,1); pointer-events: none;
}
.look-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--b-ink); }
.look-btn.nudge .look-bubble, .look-btn.say .look-bubble { opacity: 1; scale: 1; }
.look-arrow { position: absolute; width: 90px; height: 54px; top: -46px; fill: none; stroke: var(--b-acc); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; opacity: 0; }
.look-btn[data-look=formal] .look-arrow { right: -70px; }
.look-btn[data-look=casual] .look-arrow { left: -70px; }
.look-arrow path { stroke-dasharray: 140; stroke-dashoffset: 140; }
.look-btn.nudge .look-arrow { opacity: 1; }
.look-btn.nudge .look-arrow path { animation: look-draw .7s var(--ease) forwards; }
.look-btn.nudge .look-arrow path + path { animation-delay: .5s; }
@keyframes look-draw { to { stroke-dashoffset: 0; } }
.look-btn.nudge .look-btn-inner { animation: look-bob 3.2s ease-in-out infinite, look-wiggle .9s ease-in-out 2; }
@keyframes look-wiggle { 15%, 45% { rotate: -6deg; } 30%, 60% { rotate: 6deg; } 75% { rotate: 0deg; } }

.confetti { position: fixed; width: 9px; height: 14px; pointer-events: none; z-index: 160; border-radius: 2px; }

/* ---------- "Off the clock" (casual mode only) ---------- */
html:not([data-look=casual]) .casual-only { display: none !important; }
.oc-intro { max-width: 52ch; color: var(--ink-2); margin: -24px 0 32px; font-size: 18px; }
.oc-intro::after { content: " ↓"; color: var(--accent); }

.sticker-board { position: relative; height: 560px; margin-bottom: 56px; border-radius: 32px; border: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.sticker {
  position: absolute; width: 230px; padding: 18px 18px 20px; border-radius: 22px; border: 2px solid var(--ink);
  background: var(--s-bg, #fff); color: var(--s-ink, var(--ink)); box-shadow: 5px 5px 0 var(--ink);
  rotate: var(--r, 0deg); cursor: grab; user-select: none; touch-action: none;
  transition: rotate .4s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, scale .2s;
}
.sticker:hover { rotate: calc(var(--r, 0deg) * -0.4); scale: 1.03; }
.sticker.dragging { cursor: grabbing; scale: 1.08; rotate: calc(var(--r, 0deg) + 4deg); box-shadow: 14px 16px 0 var(--ink); transition: rotate .2s, box-shadow .2s, scale .2s; }
.sticker::before { /* a strip of tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; translate: -50% 0; rotate: -4deg;
  background: color-mix(in srgb, #fff 70%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.sticker .s-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1.5px solid currentColor; }
.sticker h4 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.03em; line-height: 1; margin: 12px 0 8px; }
.sticker p { font-size: 14px; line-height: 1.4; opacity: .88; }
.sticker-hint { position: absolute; right: 18px; bottom: 14px; font-family: "Caveat", cursive; font-size: 22px; color: var(--ink-2); pointer-events: none; rotate: -3deg; }

.oc-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-bottom: 72px; align-items: stretch; }
.currently {
  background: #fff8c9; color: #2a2410; border-radius: 6px; padding: 26px 28px 30px; rotate: -1.5deg;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); position: relative;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(47,140,255,.18) 31px 32px);
}
.currently::before { content: ""; position: absolute; top: -10px; left: 30px; width: 90px; height: 24px; background: rgba(255,90,95,.55); rotate: 3deg; }
.currently h3 { font-family: "Caveat", cursive; font-size: 38px; line-height: 1; margin-bottom: 10px; }
.currently ul { list-style: none; display: grid; gap: 4px; }
.currently li { font-family: "Caveat", cursive; font-size: 25px; line-height: 1.25; }
.currently li b { font-weight: 700; color: #d9480f; }
.yt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yt-stat { border: 2px solid var(--ink); border-radius: 24px; padding: 20px; background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 4px 4px 0 var(--ink); transition: translate .25s, box-shadow .25s; }
.yt-stat:hover { translate: -3px -3px; box-shadow: 7px 7px 0 var(--accent); }
.yt-stat b { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; }
.yt-stat .mono { color: var(--ink-2); }
.yt-stat:first-child { background: #ff3b30; color: #fff; }
.yt-stat:first-child .mono { color: rgba(255,255,255,.8); }

.oc-sub { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 28px; }
.oc-sub h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(32px, 4.5vw, 60px); letter-spacing: -.035em; line-height: 1; }
.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 22px; margin-bottom: 80px; }
.polaroid {
  display: block; background: #fff; color: #222; padding: 10px 10px 14px; border-radius: 4px; text-align: left;
  box-shadow: 0 16px 28px -16px rgba(0,0,0,.5); rotate: var(--r, 0deg); position: relative;
  transition: rotate .45s cubic-bezier(.3,1.6,.5,1), translate .3s, box-shadow .3s;
}
.polaroid::before { content: ""; position: absolute; z-index: 1; top: -9px; left: 50%; width: 64px; height: 20px; translate: -50% 0; rotate: var(--tr, 3deg); background: var(--tape, rgba(245,179,1,.6)); }
.polaroid:hover { rotate: 0deg; translate: 0 -8px; box-shadow: 0 26px 40px -18px rgba(0,0,0,.55); }
.polaroid .thumb { display: block; position: relative; aspect-ratio: 16 / 9; /* crops YouTube's letterbox bars */ overflow: hidden; background: #111; border-radius: 2px; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s var(--ease); }
.polaroid:hover img { scale: 1.08; }
.polaroid .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 38px; border-radius: 12px; background: #ff0033; display: grid; place-items: center; scale: .8; opacity: .9; transition: scale .3s cubic-bezier(.3,1.6,.5,1), opacity .3s; }
.polaroid .play::after { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 3px; }
.polaroid:hover .play { scale: 1.1; opacity: 1; }
.polaroid .cap { display: block; font-family: "Caveat", cursive; font-size: 21px; line-height: 1.1; margin-top: 10px; min-height: 2.2em; }

/* Shorts: a swipeable reel of phone-shaped cards */
.shorts-wrap { margin: -20px 0 80px; }
.shorts-wrap[hidden] { display: none; }
.shorts-wrap h3 { display: flex; align-items: center; gap: 14px; }
.shorts-badge { display: inline-grid; place-items: center; width: .9em; height: .9em; font-size: .62em; border-radius: 28%; background: #ff0033; color: #fff; rotate: -8deg; padding-left: .08em; }
.shorts-nav { display: flex; gap: 10px; }
.shorts-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid var(--ink); color: var(--ink); font-size: 20px; background: transparent; transition: background .2s, color .2s, translate .25s cubic-bezier(.3,1.6,.5,1); }
.shorts-arrow:hover { background: var(--ink); color: var(--bg); translate: 0 -3px; }
.shorts-reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 17vw, 210px); gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 18px 6px 30px; margin: -18px -6px 0;
}
.shorts-reel::-webkit-scrollbar { display: none; }
.short-card {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; padding: 0;
  background: #111; border: 5px solid #17151c; scroll-snap-align: start; text-align: left; color: #fff;
  rotate: var(--r, 0deg); box-shadow: 0 18px 30px -18px rgba(0,0,0,.6);
  transition: rotate .45s cubic-bezier(.3,1.6,.5,1), translate .3s, box-shadow .3s;
}
.short-card::before { content: ""; position: absolute; z-index: 2; top: 7px; left: 50%; translate: -50% 0; width: 34%; height: 6px; border-radius: 6px; background: #17151c; }
.short-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.short-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.85)); }
.short-card:hover { rotate: 0deg; translate: 0 -10px; box-shadow: 0 30px 40px -20px rgba(0,0,0,.6); }
.short-card:hover img { scale: 1.08; }
.short-tag { position: absolute; z-index: 1; top: 20px; left: 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: #ff0033; padding: 4px 8px; border-radius: 999px; }
.short-cap { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.stamps { display: flex; flex-wrap: wrap; gap: 18px 22px; padding: 10px 0 20px; }
.stamp {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--st, var(--accent)); border: 2.5px solid currentColor; border-radius: var(--sr, 10px); padding: 12px 16px 10px;
  rotate: var(--r, 0deg); opacity: .85; position: relative; outline: 1.5px dashed currentColor; outline-offset: 4px;
  transition: rotate .3s, opacity .3s, scale .3s;
}
.stamp small { display: block; font-size: 9px; opacity: .75; letter-spacing: .2em; margin-top: 2px; }
.stamp:hover { opacity: 1; rotate: 0deg; scale: 1.08; }
.stamps.in .stamp { animation: stamp-in .45s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes stamp-in { from { scale: 2.2; opacity: 0; } }

.video-modal { position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 16px; background: rgba(10,8,12,.8); backdrop-filter: blur(6px); animation: fade-in .25s; }
.video-modal[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.video-box { width: min(960px, 100%); position: relative; animation: pop-in .4s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop-in { from { scale: .8; opacity: 0; } }
.video-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 3px solid #fff; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal.is-short .video-box { width: min(400px, 100%, calc((100vh - 110px) * 9 / 16)); }
.video-modal.is-short .video-frame { aspect-ratio: 9 / 16; }
.video-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #111; font-size: 18px; }

@media (max-width: 960px) {
  .oc-row { grid-template-columns: 1fr; }
  .polaroids { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px), (pointer: coarse) {
  /* phones: stickers flow in a grid instead of being dragged around */
  .sticker-board { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 22px 12px; padding: 26px 10px; }
  .sticker { position: relative; left: auto !important; top: auto !important; width: auto; cursor: default; padding: 14px 12px 16px; border-radius: 18px; }
  .sticker h4 { font-size: 19px; margin: 10px 0 6px; }
  .sticker p { font-size: 12.5px; }
  .sticker-hint { display: none; }
}
@media (max-width: 560px) {
  .yt-stats { grid-template-columns: 1fr 1fr; }
  .yt-stat:first-child { grid-column: 1 / -1; }
  .polaroids { gap: 22px 14px; }
}

/* ---------- lite mode (Safari, or any browser that measures as slow) ----------
   Live blurs over an animated background get re-rendered every frame; solid
   look-alikes cost nothing. */
html.lite nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg-2) 94%, transparent); }
html.lite .grain { display: none; }
html.lite .spotlight { display: none; }   /* the background's aurora already follows the cursor */
html.lite .exp-overlay, html.lite .video-modal { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lite .video-modal { background: rgba(10,8,12,.92); }

/* ---------- ambient background (ambient.js) ---------- */
.ambient, .ambient-glow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ambient-glow { transition: opacity .8s; }   /* drawn at 1/8 size; stretching it is what makes it soft */

/* ---------- scroll to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 55; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--ink) 70%, transparent);
  opacity: 0; translate: 0 30px; scale: .6; pointer-events: none;
  transition: opacity .4s var(--ease), translate .5s var(--ease), scale .5s cubic-bezier(.3,1.6,.5,1), background .3s;
}
.to-top.show { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.to-top > * { grid-area: 1 / 1; }
.to-top-ring { width: 64px; height: 64px; rotate: -90deg; }
.to-top-ring circle { fill: none; stroke-width: 3; }
.to-top-ring .track { stroke: color-mix(in srgb, var(--bg) 20%, transparent); }
.to-top-ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 182.2; stroke-dashoffset: 182.2; }
.to-top-arrow { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .35s var(--ease); }
.to-top:hover .to-top-arrow { translate: 0 -4px; }
.to-top:hover { background: var(--accent); }
.to-top:hover .to-top-ring .bar { stroke: var(--bg); }
.to-top-label { position: absolute; right: calc(100% + 10px); top: 50%; translate: 8px -50%; font-size: 10px; color: var(--ink); background: var(--bg-2); padding: 4px 8px; border-radius: 999px; opacity: 0; transition: opacity .3s, translate .3s; white-space: nowrap; border: 1px solid var(--line); }
.to-top:hover .to-top-label { opacity: 1; translate: 0 -50%; }
.to-top-rocket { display: none; width: 30px; height: 30px; }
.to-top.going .to-top-arrow { animation: arrow-zip .6s var(--ease); }
@keyframes arrow-zip { 50% { translate: 0 -40px; opacity: 0; } 51% { translate: 0 30px; opacity: 0; } }

/* casual: a sticker with a rocket that blasts off */
html[data-look=casual] .to-top { border-radius: 22px; rotate: -6deg; background: var(--accent); color: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
html[data-look=casual] .to-top:hover { rotate: 4deg; background: #f5b301; }
html[data-look=casual] .to-top-ring, html[data-look=casual] .to-top-arrow { display: none; }
html[data-look=casual] .to-top-rocket { display: block; }
html[data-look=casual] .to-top-label { font-family: "Caveat", cursive; font-size: 19px; letter-spacing: 0; text-transform: none; }
.r-body { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.r-window { fill: #2f8cff; stroke: var(--ink); stroke-width: 1.3; }
.r-fin { fill: #ff5a5f; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.r-flame { fill: #f5b301; transform-origin: 16px 22px; animation: flame .18s ease-in-out infinite alternate; }
@keyframes flame { to { transform: scaleY(1.35); } }
html[data-look=casual] .to-top:hover .to-top-rocket { animation: rumble .12s linear infinite; }
@keyframes rumble { 50% { translate: 1px -1px; } }
.to-top.launch .to-top-rocket { animation: blastoff .9s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes blastoff { 20% { translate: 0 4px; } 100% { translate: 0 -110vh; } }
.smoke { position: fixed; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 25%, #fff); pointer-events: none; z-index: 54; }

/* ---------- casual mini-games ---------- */
html[data-look=casual] .formal-only { display: none !important; }
html[data-look=casual] .exp-chai { background: #ff5a1f; }
html[data-look=casual] .exp-watch { background: #2f8cff; }
html[data-look=casual] .exp-beat { background: #9b5cff; }
.game { color: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.game .mono { color: #fff; opacity: .85; }
.game p { color: rgba(255,255,255,.88); }
.game h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.03em; }
.game button.pill { border-color: #fff; background: #fff; color: var(--ink); font-weight: 500; box-shadow: 3px 3px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.game button.pill:hover { background: #fff; color: var(--ink); translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.game .exp-status { color: #fff; opacity: 1; font-weight: 500; }

.chai-canvas { width: 100%; height: auto; aspect-ratio: 360 / 250; border-radius: 16px; background: linear-gradient(#ffe7c2, #ffd08a); border: 2px solid var(--ink); touch-action: none; cursor: none; }
.game-overlay { align-self: center; justify-self: center; font-family: "Caveat", cursive; font-size: 24px; color: var(--ink); background: #fff; padding: 6px 14px; border-radius: 12px; rotate: -3deg; border: 2px solid var(--ink); pointer-events: none; transition: opacity .3s, scale .3s; }
.game-overlay.hide { opacity: 0; scale: .8; }

.watch { width: min(190px, 70%); aspect-ratio: 1; border-radius: 50%; transition: scale .15s; }
.watch:active { scale: .96; }
.watch svg { width: 100%; height: 100%; display: block; filter: drop-shadow(4px 5px 0 rgba(23,21,28,.85)); }
.w-case { fill: #d8dde4; stroke: var(--ink); stroke-width: 3; }
.w-dial { fill: #1d3557; stroke: var(--ink); stroke-width: 2; }
.w-ticks line { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.w-ticks line.major { stroke-width: 4; }
.w-brand { fill: #fff; font: 700 10px var(--mono); letter-spacing: .15em; text-anchor: middle; }
.w-sub { fill: #f5b301; font: 500 7px var(--mono); letter-spacing: .2em; text-anchor: middle; }
.w-target { fill: #f5b301; }
.w-hand { stroke: #ff5a5f; stroke-width: 3; stroke-linecap: round; }
.w-pin { fill: #ff5a5f; stroke: #fff; stroke-width: 1.5; }
.watch.hit svg { animation: watch-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes watch-pop { 40% { scale: 1.08; } }
.watch-verdict { position: absolute; top: 4px; left: 50%; translate: -50% 0; font-family: "Caveat", cursive; font-size: 24px; background: #fff; color: var(--ink); padding: 3px 12px; border-radius: 10px; border: 2px solid var(--ink); white-space: nowrap; rotate: -2deg; animation: pop-in .4s cubic-bezier(.3,1.5,.5,1); }

.pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.pad {
  aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--ink); background: var(--pad, #fff); color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 7px;
  box-shadow: 3px 3px 0 var(--ink); transition: translate .06s, box-shadow .06s, filter .2s;
}
.pad kbd { font: inherit; opacity: .6; }
.pad.hit { translate: 3px 3px; box-shadow: 0 0 0 var(--ink); filter: brightness(1.25) saturate(1.2); }

/* ---------- Studio: Trailer Maker + VFX Lab ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1200px; }
.tool { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.tool[hidden] { display: none; }
.tool-head .mono { color: var(--accent); }
.tool-head h3 { font-family: var(--display); font-weight: 400; font-size: 38px; text-transform: uppercase; line-height: 1; margin: 8px 0 6px; }
.tool-head p { color: var(--on-ink-2); font-size: 15px; }
.tool-controls { display: grid; gap: 12px; }
.tool-controls label { display: grid; gap: 6px; }
.tool-controls label .mono { opacity: .7; }
.tool-controls textarea, .tool-controls select {
  font: inherit; font-size: 15px; color: var(--bg); background: color-mix(in srgb, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 12px; padding: 10px 12px; outline: none; resize: none;
}
.tool-controls select option { color: var(--ink); }
.tool-controls textarea:focus, .tool-controls select:focus { border-color: var(--accent); }
.tool-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-note { opacity: .65; font-size: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--bg); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.range-wide input { accent-color: var(--accent); width: 100%; }

.trailer-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg) 15%, transparent);
}
.trailer-screen::before, .trailer-screen::after { content: ""; position: absolute; left: 0; right: 0; height: 11%; background: #000; z-index: 2; transition: height .6s var(--ease); }
.trailer-screen::before { top: 0; } .trailer-screen::after { bottom: 0; }
.trailer-screen.rolling { background: radial-gradient(ellipse at 50% 60%, #2a1a30, #000 70%); }
.trailer-screen.rolling::before, .trailer-screen.rolling::after { height: 14%; }
.trailer-words { position: relative; z-index: 1; padding: 0 8%; text-align: center; }
.trailer-idle { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.tw { display: inline-block; font-family: "Anton", sans-serif; text-transform: uppercase; color: #f4ecdf; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: .04em;
  text-shadow: 0 0 30px rgba(255,200,150,.35); animation: tw-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
.tw.big { color: #fff; letter-spacing: .12em; animation: tw-big 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tw-in { from { opacity: 0; scale: 1.35; filter: blur(8px); } 70% { opacity: 1; } to { opacity: 1; scale: 1; filter: blur(0); } }
@keyframes tw-big { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .12em; } }

.vfx-stage { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.vfx-stage canvas { display: block; width: 100%; height: auto; }
.vfx-drop { position: absolute; left: 10px; bottom: 10px; padding: 7px 12px; border-radius: 999px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; border: 1px dashed rgba(255,255,255,.5); }
.vfx-stage.over { outline: 3px dashed var(--accent); outline-offset: -6px; }
.live-fx { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); }
.live-fx > .mono { color: var(--accent); }

/* ---------- Studio pop-up ---------- */
.studio-modal { position: fixed; inset: 0; z-index: 165; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--ink) 55%, transparent); opacity: 0; transition: opacity .25s; }
.studio-modal[hidden] { display: none; }
.studio-modal.show { opacity: 1; }
.studio-panel {
  width: min(980px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--ink); color: var(--bg);
  border-radius: 24px; padding: 20px 22px 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  translate: 0 24px; scale: .97; transition: translate .35s var(--ease), scale .35s var(--ease);
}
.studio-modal.show .studio-panel { translate: 0 0; scale: 1; }
.studio-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.studio-top h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; }
.studio-kicker { color: var(--accent); }
.studio-tabs { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 10%, transparent); }
.studio-tabs[hidden] { display: none; }
.studio-tab { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.studio-tab.on { background: var(--bg); color: var(--ink); }
.studio-tab[hidden] { display: none; }
.studio-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: color-mix(in srgb, var(--bg) 12%, transparent); flex: none; }
.studio-close:hover { background: var(--accent); color: #fff; }
.studio-tabs[hidden] + .studio-close { margin-left: auto; }
.vo-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.vo-left, .vo-right { display: grid; gap: 12px; }
.vo-label { opacity: .7; font-size: 10px; }
.vo-field { display: grid; gap: 6px; }
.vo-field > .mono { opacity: .7; font-size: 10px; }
.vo-field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; font-family: var(--body); font-size: 11px; }
.vo-field textarea, .vo-field select {
  font: inherit; font-size: 15px; color: var(--bg); background: color-mix(in srgb, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); border-radius: 12px; padding: 10px 12px; outline: none; resize: vertical;
}
.vo-field select option { color: var(--ink); }
.vo-field textarea:focus, .vo-field select:focus { border-color: var(--accent); }
.vo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vo-sliders { display: grid; gap: 10px; }
.vo-sliders label { display: grid; gap: 4px; }
.vo-sliders .mono { font-size: 10px; opacity: .8; display: flex; justify-content: space-between; }
.vo-sliders b { font-weight: 500; color: var(--accent); }
.vo-sliders input { accent-color: var(--accent); width: 100%; }
.vo-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.vo-toggle input { display: none; }
.vo-toggle i { width: 34px; height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 25%, transparent); position: relative; transition: background .2s; }
.vo-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.vo-toggle input:checked + i { background: var(--accent); }
.vo-toggle input:checked + i::after { transform: translateX(14px); }
.studio-panel .trailer-screen { aspect-ratio: 21 / 9; }
.studio-panel .trailer-screen::before, .studio-panel .trailer-screen::after { height: 0; }
.studio-panel .trailer-screen.cinematic::before, .studio-panel .trailer-screen.cinematic::after { height: 12%; }
.vo-cap { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.35; color: rgba(255,255,255,.35); font-weight: 500; }
.vo-cap .lit { color: #fff; transition: color .15s; }
.vo-cap.stress { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .03em; }
.vo-cap.stress .lit { color: var(--accent); }
.studio-panel .chip { font-size: 10px; padding: 5px 10px; }
.studio-panel .vfx-stage canvas { max-height: 52svh; object-fit: contain; }
body.studio-open { overflow: hidden; }

/* launcher, sitting above the sound button */
.studio-btn {
  position: fixed; left: 24px; bottom: 24px; z-index: 55; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px;
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  opacity: 0; translate: 0 20px; transition: opacity .6s, translate .6s var(--ease), background .3s;
}
body.ready .studio-btn { opacity: 1; translate: 0 0; }
.studio-btn[hidden] { display: none; }
.studio-btn:hover { background: var(--ink); }
.studio-btn > span:first-child { display: inline-block; animation: spin 6s linear infinite; }
.studio-btn .mono { font-size: 10px; }
html[data-look=casual] .studio-btn { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); rotate: -3deg; }
html[data-look=casual] .studio-panel { border: 2px solid #000; box-shadow: 10px 10px 0 #000; border-radius: 30px; }
html[data-look=casual] .studio-top h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.03em; text-transform: none; }
html.lite .studio-modal { background: color-mix(in srgb, var(--ink) 75%, transparent); }

@media (max-width: 860px) {
  .vo-grid { grid-template-columns: 1fr; }
  .studio-top { flex-wrap: wrap; }
  .studio-tabs { order: 3; margin-left: 0; width: 100%; justify-content: center; }
  .studio-modal { padding: 0; place-items: end stretch; }
  .studio-panel { border-radius: 22px 22px 0 0; max-height: 92svh; }
}
@media (max-width: 560px) {
  .studio-btn { left: 14px; bottom: 14px; padding: 9px 12px; }
  .studio-btn .mono { display: none; }
}

/* live effects on the hero character (VFX Lab → "Live on me") */
html[data-fx=noir] #me { filter: grayscale(1) contrast(1.35) brightness(1.05) drop-shadow(0 0 2px #fff); }
html[data-fx=thermal] #me { filter: invert(1) hue-rotate(180deg) saturate(4) contrast(1.3) drop-shadow(0 0 3px #ff3d00); }
html[data-fx=hologram] #me { filter: sepia(1) hue-rotate(140deg) saturate(5) brightness(1.15) drop-shadow(0 0 10px #00e5ff); opacity: .82; animation: holo 3s infinite; }
html[data-fx=hologram] .me-wrap::after { content: ""; position: absolute; inset: 0 10% 15%; pointer-events: none; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(0,229,255,.35) 0 2px, transparent 2px 5px); animation: holo-scan 4s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 38% 50% at 50% 45%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 38% 50% at 50% 45%, #000 40%, transparent 100%); }
@keyframes holo { 0%, 100% { opacity: .82; } 47% { opacity: .82; } 48% { opacity: .4; } 50% { opacity: .9; } 52% { opacity: .5; } 53% { opacity: .82; } }
@keyframes holo-scan { to { background-position: 0 60px; } }
html[data-fx=glitch] #me { animation: glitch-me 1.4s steps(1) infinite; }
@keyframes glitch-me {
  0%, 100% { filter: drop-shadow(0 0 2px var(--glow)); translate: 0 0; }
  12% { filter: drop-shadow(6px 0 0 rgba(255,0,80,.8)) drop-shadow(-6px 0 0 rgba(0,240,255,.8)); translate: 4px 0; }
  14% { filter: drop-shadow(-3px 0 0 rgba(255,0,80,.8)) drop-shadow(3px 0 0 rgba(0,240,255,.8)); translate: -6px 1px; }
  16% { filter: drop-shadow(0 0 2px var(--glow)); translate: 0 0; }
  62% { filter: drop-shadow(10px 0 0 rgba(255,0,80,.7)) drop-shadow(-10px 0 0 rgba(0,240,255,.7)); translate: -3px 0; clip-path: inset(30% 0 40% 0); }
  64% { filter: drop-shadow(0 0 2px var(--glow)); translate: 0 0; clip-path: none; }
}

/* ---------- sound button (in the top bar) ---------- */
.sound-btn {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: background .3s, color .3s, box-shadow .3s;
}
.sound-btn[hidden] { display: none; }
.sound-btn:hover { background: var(--ink); color: var(--bg); }
.sound-btn.on { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 14px; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.2); transition: transform .08s; }
.sound-btn:not(.on) .eq i:nth-child(2) { transform: scaleY(.45); } .sound-btn:not(.on) .eq i:nth-child(3) { transform: scaleY(.3); }
.sound-btn.on .eq i { background: var(--accent); }
/* the label is for screen readers; sighted visitors get the tooltip */
.sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-look=casual] .sound-btn { box-shadow: inset 0 0 0 2px var(--ink); }
html[data-look=casual] .sound-btn.on { background: #f5b301; color: var(--ink); }
html[data-look=casual] .sound-btn.on .eq i { background: var(--ink); }

/* ---------- Lite / Immersive switch (in the top bar) ---------- */
.mode-btn {
  height: 38px; padding: 0 14px 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; flex: none;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.mode-btn:hover { background: var(--ink); color: var(--bg); }
.mode-ico { width: 14px; height: 14px; border-radius: 50%; position: relative; flex: none; }
/* immersive: a glowing orb; lite: a half-filled circle */
.mode-btn[data-mode=immersive] .mode-ico { background: radial-gradient(circle at 35% 35%, #fff, var(--accent) 60%); box-shadow: 0 0 10px var(--accent); }
.mode-btn[data-mode=lite] .mode-ico { border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
html[data-look=casual] .mode-btn { box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 1280px) {
  .mode-btn { width: 38px; padding: 0; justify-content: center; }
  .mode-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.mode-toast {
  position: fixed; z-index: 180; left: 50%; bottom: 22px; translate: -50% 30px; opacity: 0;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); transition: translate .35s cubic-bezier(.3,1.4,.5,1), opacity .3s;
}
.mode-toast.show { translate: -50% 0; opacity: 1; }
.mode-toast[hidden] { display: none; }
.mode-toast-go { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.mode-toast-x { flex: none; width: 30px; height: 30px; border-radius: 50%; color: inherit; opacity: .7; }
.mode-toast-x:hover { opacity: 1; }
@media (max-width: 560px) { .mode-toast { border-radius: 18px; flex-wrap: wrap; bottom: 84px; } }
/* small phones: the top bar fits logo + sound + version + look switch */
@media (max-width: 480px) {
  #nav { padding-left: 14px; }
  .nav-right { gap: 6px; }
  .logo { font-size: 17px; }
  .sound-btn, .mode-btn { width: 34px; height: 34px; }
  .look-opt { padding: 6px 7px; font-size: 10px; letter-spacing: .04em; }
}

/* switching versions: a quick fade before the reload */
body.mode-leaving { opacity: 0; transition: opacity .25s; }

/* ---------- the Lite version ----------
   Normal cursor, still background (ambient.js draws one frame), and looping
   decorations play once instead of forever. The character and all content stay. */
html[data-mode=lite] body { cursor: auto; }
html[data-mode=lite] a, html[data-mode=lite] button { cursor: pointer; }
html[data-mode=lite] .chai-canvas { cursor: crosshair; }
html[data-mode=lite] .cursor-dot, html[data-mode=lite] .cursor-ring { display: none; }
html[data-mode=lite] *, html[data-mode=lite] *::before, html[data-mode=lite] *::after { animation-iteration-count: 1 !important; }

/* the floating Studio button only shows once you've scrolled past the hero */
body:not(.past-hero) .studio-btn { opacity: 0 !important; translate: 0 20px !important; pointer-events: none; }
.studio-pane { padding: 0; }

/* ---------- casual look ---------- */
html[data-look=casual] {
  --bg: #efe9df; --ink: #17151c; --accent: #ff5a1f; --glow: #ffffff;
  --display: "Bricolage Grotesque", "Anton", sans-serif;
}
html[data-look=casual] .hero-title { font-weight: 800; letter-spacing: -.035em; line-height: .84; }
html[data-look=casual] .hero-title .outline { color: var(--accent); -webkit-text-stroke: 0; }
html[data-look=casual] .sec-head h2,
html[data-look=casual] .card h3, html[data-look=casual] .skill h3, html[data-look=casual] .exp h3,
html[data-look=casual] .about-lead, html[data-look=casual] .stat b, html[data-look=casual] .client b,
html[data-look=casual] .marquee span, html[data-look=casual] .logo, html[data-look=casual] .pre-count {
  font-weight: 800; letter-spacing: -.03em;
}
html[data-look=casual] .sec-head h2 small {
  display: table; margin-bottom: 14px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 500; transform: rotate(-3deg);
}
/* chunky "sticker" buttons */
html[data-look=casual] .btn { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: color .3s, background .3s, box-shadow .2s, translate .2s; }
html[data-look=casual] .btn:hover { box-shadow: 1px 1px 0 var(--ink); translate: 3px 3px; }
html[data-look=casual] .btn-ghost { box-shadow: 4px 4px 0 var(--ink); }
html[data-look=casual] nav .btn { box-shadow: 3px 3px 0 var(--accent); border-color: var(--ink); }
html[data-look=casual] .contact .btn { border-color: var(--bg); box-shadow: 4px 4px 0 var(--bg); }
/* playful cards */
html[data-look=casual] .card { border-radius: 30px; border: 2px solid var(--ink); }
html[data-look=casual] .card:nth-child(odd):hover { rotate: -1deg; }
html[data-look=casual] .card:nth-child(even):hover { rotate: 1deg; }
html[data-look=casual] .exp { border-radius: 30px; }
html[data-look=casual] .client { border: 2px solid var(--ink); border-radius: 20px; }
html[data-look=casual] .tags span { border-width: 2px; }
html[data-look=casual] .tags span:nth-child(5n+1):hover { background: #ff5a5f; border-color: #ff5a5f; }
html[data-look=casual] .tags span:nth-child(5n+2):hover { background: #f5b301; border-color: #f5b301; color: var(--ink); }
html[data-look=casual] .tags span:nth-child(5n+3):hover { background: #2fbf6b; border-color: #2fbf6b; }
html[data-look=casual] .tags span:nth-child(5n+4):hover { background: #2f8cff; border-color: #2f8cff; }
html[data-look=casual] .tags span:nth-child(5n+5):hover { background: #9b5cff; border-color: #9b5cff; }
/* rainbow sparkles in the marquee, like the T-shirt print */
html[data-look=casual] .marquee span:nth-child(5n+1)::after { color: #ff5a5f; }
html[data-look=casual] .marquee span:nth-child(5n+2)::after { color: #f5b301; }
html[data-look=casual] .marquee span:nth-child(5n+3)::after { color: #2fbf6b; }
html[data-look=casual] .marquee span:nth-child(5n+4)::after { color: #2f8cff; }
html[data-look=casual] .marquee span:nth-child(5n+5)::after { color: #9b5cff; }
html[data-look=casual] .progress i { background: linear-gradient(90deg, #ff5a5f, #f5b301, #2fbf6b, #2f8cff, #9b5cff); }
html[data-look=casual] .grain { opacity: .05; }

@media (max-width: 960px) {
  nav ul { display: none; }
  body.switching .me-wrap { transform: translateY(25%); opacity: 0; transition: transform .45s, opacity .45s; }
  /* buttons sit in a row just under the character */
  .look-float { position: relative; inset: auto; order: 2; display: flex; justify-content: center; gap: 12px; margin: -84px 0 18px; padding: 0 12px; flex-wrap: wrap; }
  .look-btn { position: relative; top: auto; left: auto !important; right: auto !important; }
  .look-btn-inner { gap: 8px; padding: 5px 14px 5px 5px; }
  .look-btn-avatar { width: 44px; height: 44px; }
  .look-name { font-size: 20px; }
  .look-hint { font-size: 16px; }
  .look-arrow { display: none; }
  .look-bubble { font-size: 18px; bottom: calc(100% + 16px); }
  .look-opt { padding: 6px 9px; }
  .hero { height: auto; min-height: 0; padding-top: 90px; display: flex; flex-direction: column; }
  .hero-title { position: relative; top: 0; font-size: 21vw; }
  .me-wrap { position: relative; left: auto; transform: translateY(30%); margin: -16vw auto 0; height: auto; width: min(100%, 520px); order: 2; }
  body.ready .me-wrap { transform: none; }
  .hero-bio, .hero-side { position: relative; left: auto; right: auto; bottom: auto; width: auto; padding: 0 var(--gutter); }
  .hero-bio { order: 3; margin: 8px 0 28px; }
  .hero-side { order: 1; margin-bottom: 18px; }
  .side-exp, .watching, .scroll-cue, .spotlight { display: none; }
  .work, .lab, .about, .contact-grid { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .skill:nth-child(3) { padding-left: 0; border-left: 0; }
  .sec-head { flex-direction: column; align-items: start; }
  .sec-head .mono { text-align: left; }
}
@media (max-width: 560px) {
  nav .btn { display: none; }
  .to-top { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .to-top-ring { width: 54px; height: 54px; }
  .skills, .stats { grid-template-columns: 1fr; }
  .skill + .skill { padding-left: 0; border-left: 0; }
  .card { min-height: 290px; padding: 24px; }
  footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .split .c { opacity: 1; transform: none; }
}
