/* ============================================================
   shashank.design — a living lofi room in Bengaluru
   ============================================================ */

:root {
  --ink: #14100c;
  --paper: #f3ead9;
  --amber: #ffb454;
  --ember: #ff7a2f;
  --moss: #8aa06a;
  --sky: #7fb4d9;
  --pixel: "PP Editorial New", Georgia, "Times New Roman", serif;
  --sans: "PP Editorial New", Georgia, "Times New Roman", serif;
  --satoshi: "Satoshi Variable", "Satoshi", Inter, -apple-system, "Segoe UI", sans-serif;

  /* window glass rectangle, in scene coordinates */
  --win-x: 31.7%;
  --win-y: 8.5%;
  --win-w: 45.8%;
  --win-h: 43%;

  --tint-room: transparent;
  --scene-filter: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .8s ease, visibility .8s;
}
/* while it fades out the loader must not swallow clicks on the room */
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-pixels { display: flex; gap: 8px; justify-content: center; }
.loader-pixels i {
  width: 12px; height: 12px; background: var(--amber);
  animation: pix 1s infinite steps(2);
}
.loader-pixels i:nth-child(2) { animation-delay: .15s; background: var(--ember); }
.loader-pixels i:nth-child(3) { animation-delay: .3s; background: var(--moss); }
.loader-pixels i:nth-child(4) { animation-delay: .45s; background: var(--sky); }
@keyframes pix { 50% { transform: translateY(-10px); opacity: .4; } }
.loader-text {
  margin-top: 20px; text-align: center;
  font-family: var(--pixel); font-size: 17px; color: #a8977d;
  letter-spacing: 1px;
  min-height: 1.4em;
  transition: opacity .22s ease;
}

/* ---------- stage & scene (16:9 cover) ---------- */
#stage {
  position: fixed; inset: 0; overflow: hidden;
  /* settles from a gentle zoom as the room wakes up */
  transform: scale(1.04);
  transition: transform 2.4s cubic-bezier(.22, .8, .3, 1);
}
body.booted #stage { transform: scale(1); }

#scene {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;         /* 16:9 */
  min-width: 177.78vh; min-height: 100vh; /* cover */
  will-change: transform;
  transform: translate(-50%, -50%) translateZ(0); /* own GPU layer for the camera */
}
/* mobile browsers: track the dynamic viewport so the scene never
   jumps or leaves bars when the browser chrome collapses */
@supports (height: 100dvh) {
  #scene { min-width: 177.78dvh; min-height: 100dvh; }
}
body.in-bag #hud, body.in-bag #vignette { opacity: 0; }
#hud, #vignette { transition: opacity .6s ease; }

/* darkness of the bag mouth as the camera passes through it */
#diveShade {
  position: fixed; inset: 0; z-index: 23;
  background: radial-gradient(ellipse 90% 70% at 50% 55%, #0c0402 55%, #000 100%);
  opacity: 0; pointer-events: none;
}

.scene-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--scene-filter);
  opacity: 0;
  transition: filter 3s ease, opacity 2.5s ease;
}
.scene-video.active { opacity: 1; }
.scene-video.no-fade { transition: none; }

/* ---------- environment grading ----------
   Window-glass tints, rain, stars and city lights are drawn on the
   fx canvas (with the character punched out); the room grade is CSS. */
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

#roomTint {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--tint-room);
  transition: background 3s ease;
}

/* time of day — room. Golden hour and night have no overlays: the
   scene swaps to real evening / night master videos instead, so the
   remaining tints are only gentle accents. */
body[data-tod="dawn"]   { --tint-room: rgba(255,150,90,.05); }
body[data-tod="golden"] { --tint-room: rgba(255,130,50,.03); }
body[data-tod="dusk"]   { --tint-room: rgba(50,40,100,.07); }

body[data-wx="rain"]    .scene-video,
body[data-wx="thunder"] .scene-video { filter: var(--scene-filter) brightness(.94) saturate(.92); }

/* lamp off — pool of darkness over the desk */
#lampShadow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 44% 40% at 45% 55%, rgba(8,6,4,.55), transparent 70%);
  transition: opacity 1.2s ease;
}
body[data-lamp="off"] #lampShadow { opacity: 1; }
body[data-lamp="off"] .scene-video { filter: var(--scene-filter) brightness(.9); }

/* lightning flash */
#flash {
  position: absolute;
  left: var(--win-x); top: var(--win-y);
  width: var(--win-w); height: var(--win-h);
  background: #eef3ff; opacity: 0; pointer-events: none;
}
#flash.zap { animation: zap .65s steps(3) 1; }
@keyframes zap { 0% {opacity:.75;} 30% {opacity:.1;} 55% {opacity:.5;} 100% {opacity:0;} }

/* ---------- coffee steam ---------- */
#steam {
  position: absolute;
  left: 65.5%; top: 48.5%;
  width: 2.6%; height: 7.5%;
  pointer-events: none;
}
#steam i {
  position: absolute; bottom: 0;
  width: 14%; height: 26%;
  border-radius: 40%;
  background: rgba(240,235,225,.5);
  filter: blur(1.5px);
  opacity: 0;
  animation: steam 3.2s infinite ease-out;
}
#steam i:nth-child(1) { left: 22%; animation-delay: 0s; }
#steam i:nth-child(2) { left: 48%; animation-delay: 1.1s; }
#steam i:nth-child(3) { left: 70%; animation-delay: 2.2s; }
@keyframes steam {
  0%   { opacity: 0;   transform: translateY(0) scaleX(1); }
  25%  { opacity: .55; }
  100% { opacity: 0;   transform: translateY(-260%) scaleX(2.1); }
}
#steam.burst i { animation-duration: 1.4s; }

/* ---------- radio on-air ---------- */
#onair {
  position: absolute;
  left: 94%; top: 41.5%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d3a;
  opacity: 0; pointer-events: none;
  box-shadow: 0 0 8px rgba(255,77,58,.9);
}
body[data-radio="on"] #onair { animation: onair 1.4s infinite; }
@keyframes onair { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- hotspots ---------- */
.hotspot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  transform: translate(-50%, -50%);
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.hotspot:hover, .hotspot:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255,180,84,.55), 0 0 22px rgba(255,180,84,.18);
  background: rgba(255,180,84,.06);
  outline: none;
}
.hotspot::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  font-family: var(--satoshi); font-weight: 500;
  font-size: 12.5px; letter-spacing: .3px;
  white-space: nowrap;
  color: var(--paper);
  background: rgba(18,14,10,.92);
  border: 1px solid rgba(255,180,84,.35);
  padding: 3px 10px 4px;
  border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.hotspot:hover::after, .hotspot:focus-visible::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
/* tooltips near the top edge open downward */
#hs-window::after, #hs-ubcity::after, #hs-neon::after, #hs-poster2::after {
  bottom: auto; top: calc(100% + 8px);
}
/* the arcade hugs the left screen edge — pin its tip to its right edge */
#hs-arcade::after {
  left: auto; right: 0; transform: translateX(0) translateY(4px);
}
#hs-arcade:hover::after, #hs-arcade:focus-visible::after {
  transform: translateX(0) translateY(0);
}

/* ---------- vignette & grain ---------- */
#vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 45%, transparent 58%, rgba(8,5,3,.42) 100%);
}
#grain {
  position: absolute; inset: -100px; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-30px,20px); }
  50% { transform: translate(25px,-30px); } 75% { transform: translate(-20px,-15px); }
  100% { transform: translate(0,0); }
}

/* ---------- landing hero hint ---------- */
#heroHint {
  position: fixed; z-index: 19;
  left: 50%; top: 8%;
  transform: translate(-50%, -8px);
  pointer-events: none;
  opacity: 0;
  text-align: center;
  transition: opacity 1s ease 1.2s, transform 1s ease 1.2s;
}
body.booted:not(.in-bag):not(.in-about):not(.in-contact):not(.in-case) #heroHint {
  opacity: 1; transform: translate(-50%, 0);
}
body.hint-done #heroHint { opacity: 0 !important; transform: translate(-50%, -8px) !important;
  transition: opacity .6s ease, transform .6s ease; }
.hh-line {
  display: inline-block;
  font-family: var(--pixel);
  font-size: clamp(15px, 2vw, 21px);
  letter-spacing: .3px;
  color: var(--paper);
  padding: 8px 20px 9px;
  border-radius: 999px;
  background: rgba(18,14,10,.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,180,84,.22);
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  animation: hintFloat 3.6s ease-in-out infinite;
}
@keyframes hintFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .hh-line { animation: none; } }

/* ---------- HUD ---------- */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: flex-end; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 24px 0;
  pointer-events: none;
  opacity: 0;
}
body.booted:not(.in-bag):not(.in-contact) #hud {
  opacity: 1; transition-delay: .5s;
}
#hud > * { pointer-events: auto; }
#wxChip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--satoshi); font-weight: 500;
  font-size: 14px; letter-spacing: .4px;
  color: var(--paper);
  background: rgba(18,14,10,.72);
  border: 1px solid rgba(255,180,84,.28);
  border-radius: 999px;
  padding: 6px 14px 7px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .3s;
}
#wxChip:hover { border-color: rgba(255,180,84,.7); }
#istTime { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ist-tag { color: var(--amber); font-size: 12px; letter-spacing: 1px; }

/* ---------- info card ---------- */
#card {
  position: fixed; z-index: 30;
  top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.96);
  width: min(340px, calc(100vw - 40px));
  background: rgba(20,15,10,.94);
  border: 1px solid rgba(255,180,84,.35);
  border-radius: 14px;
  padding: 22px;
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
#card.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-close {
  position: absolute; top: 8px; right: 12px;
  font-size: 22px; color: #9a8468;
}
.card-close:hover { color: var(--paper); }
#card h3 {
  font-family: var(--pixel); font-weight: 400; font-size: 21px;
  color: var(--amber); margin-bottom: 8px; letter-spacing: .5px;
}
#card p { font-size: 13.5px; line-height: 1.55; color: #cfc4b2; }
#card .big {
  font-family: var(--pixel); font-size: 34px; color: var(--paper);
  line-height: 1; margin: 6px 0 2px;
}
#card .row {
  display: flex; gap: 14px; margin-top: 12px;
  font-family: var(--pixel); font-size: 13.5px; color: #b8a88e;
}
#card .swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- dock ---------- */
#dock {
  position: fixed; z-index: 25;
  left: 50%; bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(90px);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2, .85, .3, 1.05) .35s, opacity .7s ease .35s;
  display: flex; align-items: center; gap: 4px;
  background: rgba(16,12,9,.82);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 6px;
  /* lighter live blur over the playing video — cheaper per frame, still glassy */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.dock-btn {
  font-family: var(--satoshi); font-weight: 500; font-size: 14px;
  letter-spacing: .2px;
  color: #d9cfbd;
  padding: 10px 22px;
  border-radius: 12px;
  transition: background .25s ease, color .25s ease, transform .15s ease;
}
.dock-btn:hover { background: rgba(255,180,84,.10); color: var(--paper); }
.dock-btn:active { transform: scale(.96); }
.dock-btn.active { background: var(--amber); color: #1c1408; }
.dock-sep { width: 1px; height: 18px; background: rgba(255,255,255,.10); }
body.booted #dock { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- inside the bag (Work) ---------- */
#bagWorld[hidden] { display: none; }
#bagWorld {
  position: fixed; inset: 0; z-index: 24; /* below the dock (25) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity .4s ease;
}
#bagWorld.lit { opacity: 1; }
/* landing inside: the interior opens around the camera and settles */
#bagWorld.lit .bag-inner {
  animation: bagLand .8s cubic-bezier(.16, .84, .3, 1) both;
}
#bagWorld.lit .bag-lining {
  animation: liningReveal .9s cubic-bezier(.3, .7, .2, 1) both;
}
@keyframes bagLand {
  0%   { transform: scale(1.14) translateY(26px); filter: blur(6px); opacity: 0; }
  45%  { opacity: 1; }
  100% { transform: scale(1) translateY(0); filter: blur(0); opacity: 1; }
}
@keyframes liningReveal {
  0%   { clip-path: ellipse(18% 9% at 50% 58%); filter: brightness(.25); }
  100% { clip-path: ellipse(120% 120% at 50% 55%); filter: brightness(1); }
}
.bag-lining {
  position: fixed; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(58deg, rgba(0,0,0,.14) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-58deg, rgba(0,0,0,.12) 0 2px, transparent 2px 5px),
    radial-gradient(ellipse 95% 80% at 50% 42%,
      #ff8a3d 0%, #e05f1a 34%, #94350a 62%, #3c1504 86%, #1c0a02 100%);
}
.bag-lining::after {
  /* zipper running along the top edge */
  content: "";
  position: absolute; top: 14px; left: 4%; right: 4%; height: 10px;
  background:
    repeating-linear-gradient(90deg,
      #201410 0 8px, #4a3220 8px 10px, #b8b0a4 10px 14px, #4a3220 14px 16px);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
  opacity: .85;
}
.bag-inner {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 780px; margin: 0 auto;
  padding: 72px 28px 110px;
}
#bagClose {
  position: fixed; z-index: 26;
  top: max(34px, env(safe-area-inset-top)); left: 40px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 17px; letter-spacing: .5px;
  color: #ffe6d0;
  background: rgba(20,8,2,.62);
  border: 1.5px solid rgba(255,217,184,.5);
  border-radius: 999px;
  padding: 12px 26px 13px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(20,6,0,.4);
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
#bagClose:hover {
  background: rgba(28,10,2,.85); border-color: #ffd9b8;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(20,6,0,.5);
}
#bagClose:active { transform: translateY(0) scale(.97); }
.bag-eyebrow {
  font-family: var(--pixel); font-size: 13px; letter-spacing: 3px;
  color: rgba(30,10,2,.85); margin-bottom: 6px;
}
#bagWorld h2 {
  font-family: var(--pixel); font-weight: 400;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05;
  color: #1c0a02;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
  margin-bottom: 26px;
}
/* ── work case cards (Airlearn / Feeltok) ──────────────────
   White app-shot cards on the tangerine lining, hover parallax,
   click → burn through into the case study. */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
}
.case-card {
  position: relative;
  aspect-ratio: 1.02 / 1;
  border-radius: 16px;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  --nx: 0; --ny: 0; --lift: 0;
}
.case-card.ghost { visibility: hidden; }
.cc-tilt {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--ny) * -9deg))
    rotateY(calc(var(--nx) * 11deg))
    translateZ(calc(var(--lift) * 14px));
  transition: transform .55s cubic-bezier(.2, .8, .25, 1);
  will-change: transform;
}
.case-card.hovering .cc-tilt { transition: transform .12s ease-out; }
.cc-face {
  position: absolute; inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fdfdfc;
  box-shadow:
    0 2px 0 rgba(255,255,255,.25) inset,
    0 14px 34px rgba(28, 8, 0, .38),
    0 3px 8px rgba(28, 8, 0, .28);
  transition: box-shadow .45s ease;
}
.case-card.hovering .cc-face {
  box-shadow:
    0 2px 0 rgba(255,255,255,.25) inset,
    0 30px 60px rgba(28, 8, 0, .45),
    0 8px 18px rgba(28, 8, 0, .3);
}
.case-card:focus-visible .cc-face {
  box-shadow: 0 0 0 3px #ffd9b8, 0 14px 34px rgba(28,8,0,.38);
}
/* parallax layers — each drifts against the tilt by its depth --d */
.cc-layer {
  position: absolute; inset: 0;
  transform:
    translate(calc(var(--nx) * var(--d, 0) * 1.1px),
              calc(var(--ny) * var(--d, 0) * 1.1px));
  transition: transform .55s cubic-bezier(.2, .8, .25, 1);
  will-change: transform;
}
.case-card.hovering .cc-layer { transition: transform .12s ease-out; }
.cc-head {
  position: absolute; inset: auto auto 0 0;
  top: 0; left: 0; right: auto; bottom: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  font-family: var(--satoshi); font-weight: 700; font-size: 16.5px;
  letter-spacing: .1px; color: #22252b;
  pointer-events: none;
}
.cc-ic {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  flex: none;
}
.cc-ic svg { width: 28px; height: 28px; display: block; }
.cc-ic-al svg { filter: drop-shadow(0 1px 2px rgba(30,80,140,.3)); }
/* the real card artwork, when dropped into assets/work/, replaces
   the coded recreation wholesale */
.cc-photo {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.cc-face.has-photo .cc-photo { display: block; }
.cc-face.has-photo .cc-layer,
.cc-face.has-photo .cc-head { display: none; }
.cc-face.has-photo + .cc-gloss, .cc-face.has-photo .cc-gloss { z-index: 5; }
/* moving sheen that follows the pointer */
.cc-gloss {
  position: absolute; inset: -30%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(38% 32% at calc(50% + var(--nx) * 55%) calc(42% + var(--ny) * 55%),
              rgba(255,255,255,.5), rgba(255,255,255,0) 70%);
  mix-blend-mode: soft-light;
  transition: opacity .35s ease;
}
.case-card.hovering .cc-gloss { opacity: 1; }

/* — Airlearn face — */
.cc-airlearn { background: linear-gradient(165deg, #f6fafd 0%, #eef5fb 55%, #e8f1f9 100%); }
.al-pattern { position: absolute; inset: -6%; width: 112%; height: 112%; }
.alp-outline use { fill: #e8f2fb; stroke: #bad9f0; stroke-width: 2px; }
.al-phone {
  position: absolute;
  width: 30%; height: 76%;
  background: #fff;
  border: 1px solid #dfeaf4;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(47, 91, 138, .16);
  overflow: hidden;
  font-family: var(--satoshi);
}
.al-phone-l { left: -17%; top: 20%; }
.al-phone-r { right: -16%; top: 5%; }
.al-phone i { position: absolute; display: block; }
.alp-status {
  left: 10%; top: 3.5%; width: 34%; height: 5px;
  border-radius: 3px; background: #e5edf5;
}
.alp-copy {
  position: absolute; left: 10%; top: 9%; width: 84%;
  font-weight: 600; font-size: 8px; line-height: 1.45; color: #313d4c;
}
.alp-copy b { font-weight: 700; }
.alp-copy-c { top: 12%; }
.alp-board, .alp-board-b {
  left: 10%; top: 26%; width: 84%; aspect-ratio: 1;
  border-radius: 8px;
  background:
    conic-gradient(#cfe2f3 90deg, #f4f9fe 90deg 180deg, #cfe2f3 180deg 270deg, #f4f9fe 270deg) 0 0/25% 25%;
  outline: 2px solid #c4dcf0;
}
.alp-board-b { top: 30%; }
.alp-bulb {
  position: absolute; left: 10%; bottom: 5%;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1.5px solid #cfe2f4; border-radius: 7px;
  background: #f6fafd;
}
.alp-bulb svg { width: 14px; height: 14px; }
.alp-time {
  position: absolute; left: 10%; top: 3.5%;
  font-weight: 700; font-size: 8px; color: #22303e;
}
.alp-x {
  position: absolute; right: 8%; top: 3%;
  font-size: 9px; color: #7e8ea0;
}
.alp-kn {
  position: absolute; left: 10%; top: 8.5%;
  font-weight: 700; font-size: 7px; letter-spacing: 1px; color: #2f7de0;
}
.alp-flag {
  left: 10%; bottom: 4%;
  width: 16px; height: 16px;
}
.al-hero {
  position: absolute; left: 16%; right: 16%; top: 14%; bottom: 8%;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(38, 82, 128, .17), 0 2px 6px rgba(38, 82, 128, .08);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 8.5%;
  overflow: hidden;
}
.al-logo {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--satoshi); font-weight: 700; font-size: 13px; color: #2f9ae8;
}
.al-cat-s { width: 16px; height: 16px; }
.al-word {
  font-family: var(--satoshi); font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.8px;
  color: #1d4e7e;
  margin-top: 0;
  line-height: 1.05;
}
.al-art { width: 96%; margin-top: auto; display: block; }

/* — Feeltok face — */
.cc-feeltok { background: #ffffff; font-family: var(--satoshi); }
.ft-feed {
  position: absolute; right: -8%; top: 4%; width: 66%; bottom: 4%;
  display: flex; flex-direction: column; gap: 8px;
}
.ftf-q {
  font-weight: 700; font-size: 9px; line-height: 1.3; color: #22262e;
  padding-right: 18%;
}
.ftf-row { display: flex; align-items: center; gap: 8px; margin: -2px 0 2px; }
.ftf-share {
  font-weight: 600; font-size: 7.5px; color: #fff;
  background: #23262d; border-radius: 99px; padding: 3px 9px 4px;
}
.ftf-cnt { font-weight: 500; font-size: 7px; color: #9aa2b0; }
.ft-post {
  position: relative;
  background: #fff; border: 1px solid #edeff3; border-radius: 11px;
  box-shadow: 0 4px 12px rgba(40, 44, 56, .07);
  padding: 9px 10px 8px 36px;
}
.ft-post b {
  display: block;
  font-weight: 700; font-size: 8.5px; color: #23262d;
}
.ftp-feat, .ftp-join {
  font-style: normal; font-weight: 600; font-size: 6.5px;
  color: #9aa2b0; margin-left: 4px;
}
.ftp-join {
  color: #fff; background: #23262d;
  border-radius: 99px; padding: 1.5px 7px 2px;
  float: right;
}
.ft-post em {
  display: block; font-style: normal;
  font-weight: 650; font-size: 8px; color: #303743;
  margin: 2px 0 3px;
}
.ft-post u, .ft-phone u {
  display: block; text-decoration: none;
  height: 5px; width: 86%; border-radius: 3px; background: #eef0f4;
  margin-top: 3px;
}
.ft-post u.w8 { width: 70%; }
.ft-post s {
  display: block; text-decoration: none;
  font-weight: 500; font-size: 7px; color: #a3aab8; margin-top: 5px;
}
.ft-heart { color: #e2504a; font-size: 7.5px; font-weight: 400; }
.fa {
  position: absolute; left: 10px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.fa.a1 { background: linear-gradient(135deg, #f6b73c, #ef7d3b); }
.fa.a2 { background: linear-gradient(135deg, #7cc4f4, #3f8fd8); }
.fa.a3 { background: linear-gradient(135deg, #b18cf0, #7a55d8); }
.fa.a4 { background: linear-gradient(135deg, #f08cae, #d8558a); }
.fa.a5 { background: linear-gradient(135deg, #8ce0b8, #3fb47e); }
.fa.a6 { background: linear-gradient(135deg, #f0d08c, #d8a23f); }
.fa-stack { position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; }
.fa-stack .fa { width: 13px; height: 13px; }
.fa-stack .fa:nth-child(1) { left: 0; top: 0; }
.fa-stack .fa:nth-child(2) { left: 7px; top: 3px; }
.fa-stack .fa:nth-child(3) { left: 2px; top: 8px; }
.ftf-nav {
  display: flex; align-items: center; gap: 16px;
  padding: 2px 0 0 6px;
  margin-top: auto;
}
.ftf-nav svg { width: 15px; height: 15px; }
.ftf-plus {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #17191e; color: #fff;
  font-weight: 600; font-size: 13px; line-height: 1;
}
.ft-phone {
  position: absolute; left: -9%; top: 20%; width: 38%; bottom: -6%;
  background: #fff; border: 1px solid #e8ebf0; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(40, 44, 56, .12);
  padding: 7px 9px 0;
  overflow: hidden;
}
.ftp-status {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 7.5px; color: #22262e;
  padding: 0 2px 5px;
}
.ftp-sig { color: #6d7686; font-size: 6.5px; letter-spacing: 1px; }
.ftp-row { position: relative; height: 24px; margin-bottom: 5px; }
.ftp-row .fa { position: static; float: left; width: 17px; height: 17px; margin-right: 4px; }
.fa.ring { box-shadow: 0 0 0 1.6px #fff, 0 0 0 3px #e94f60; }
.ftp-name {
  font-weight: 700; font-size: 7.5px; color: #22262e;
  clear: both; margin-bottom: 2px;
}
.ftp-name span { font-weight: 500; color: #8d96a5; font-size: 6.5px; }
.ftp-body {
  font-weight: 500; font-size: 7px; line-height: 1.45; color: #3a4150;
  margin-bottom: 4px;
}
.ftp-dim { color: #9aa2b0; }
.ftp-meta { font-weight: 500; font-size: 6.5px; color: #9aa2b0; margin-bottom: 5px; }
.ft-phone i { display: block; }
.ftp-img, .ftp-img2 {
  width: 100%; height: 34px; border-radius: 7px;
  background: linear-gradient(120deg, #e8ebf0, #dde2e9);
  margin-bottom: 5px;
}
.ftp-img2 { height: 26px; opacity: .7; }
.ftp-search { position: absolute; left: 10px; bottom: 8px; width: 13px; height: 13px; }
.ft-warn {
  position: absolute; left: 47%; top: 45%;
  transform: translate(-50%, -50%);
  width: 66%;
  text-align: center;
  filter: drop-shadow(0 16px 26px rgba(35, 74, 128, .32));
}
.ft-tri { width: 52%; display: block; margin: 0 auto -4%; }
.ft-banner {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-weight: 900;
  font-size: clamp(16px, 2.1vw, 23px);
  letter-spacing: 1px;
  color: #cfe6fb;
  background: #3f6be3;
  border-radius: 10px;
  padding: 5px 14px 7px;
  transform: rotate(-4deg);
  text-shadow:
    -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff,
    -1.5px 1.5px 0 #fff, 1.5px 1.5px 0 #fff;
  box-shadow: 0 10px 24px rgba(63, 107, 227, .35);
}
.cc-social {
  inset: auto auto 16px 22%;
  display: flex; gap: 14px; align-items: center;
}
.soc {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  box-shadow: 0 5px 14px rgba(20, 24, 34, .22);
}
.soc svg { width: 24px; height: 24px; display: block; }
.soc-ig { background: #fff; border-radius: 11px; }
.soc-ig svg { width: 26px; height: 26px; }
.soc-tt { background: #0f0f13; border-radius: 50%; }
.soc-x  { background: #0c0c0e; border-radius: 50%; }
.soc-fb { background: #1877f2; border-radius: 50%; overflow: hidden; }
.soc-fb svg { width: 34px; height: 34px; margin-top: 7px; }

/* ── burn transition ─────────────────────────────────────
   The clicked card chars away from the click point; the case
   study is already sitting inside the hole, and the camera
   dives through. */
@property --burnR {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}
.burn-clone {
  position: fixed; z-index: 29;
  pointer-events: none;
  perspective: 900px;
  --nx: 0; --ny: 0; --lift: 0;
  --burnR: 0%;
  --bx: 50%; --by: 50%;
}
.burn-clone .cc-tilt { transition: none; }
/* the hole: two offset circles chewing outward for a ragged feel */
.burn-clone .cc-face {
  -webkit-mask-image:
    radial-gradient(circle at var(--bx) var(--by),
      transparent var(--burnR), #000 calc(var(--burnR) + 5%)),
    radial-gradient(circle at calc(var(--bx) + 8%) calc(var(--by) - 8%),
      transparent calc(var(--burnR) * .78), #000 calc(var(--burnR) * .78 + 7%));
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at var(--bx) var(--by),
      transparent var(--burnR), #000 calc(var(--burnR) + 5%)),
    radial-gradient(circle at calc(var(--bx) + 8%) calc(var(--by) - 8%),
      transparent calc(var(--burnR) * .78), #000 calc(var(--burnR) * .78 + 7%));
  mask-composite: intersect;
}
/* charred, glowing rim riding just behind the burn front */
.burn-clone .cc-face::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--bx) var(--by),
      transparent calc(var(--burnR) + 1%),
      rgba(24, 8, 2, .95)  calc(var(--burnR) + 3.5%),
      rgba(120, 32, 4, .9) calc(var(--burnR) + 6%),
      rgba(255, 122, 26, .8) calc(var(--burnR) + 8%),
      rgba(255, 196, 90, .35) calc(var(--burnR) + 10.5%),
      transparent calc(var(--burnR) + 14%));
  opacity: 0;
}
.burn-clone.burning { animation: burnHole 1.05s cubic-bezier(.4, .1, .6, .9) forwards; }
.burn-clone.burning .cc-face::after { opacity: 1; }
@keyframes burnHole { from { --burnR: 0%; } to { --burnR: 125%; } }
/* embers & smoke */
.ember {
  position: fixed; z-index: 30;
  width: 4px; height: 4px; border-radius: 50%;
  background: #ffb454;
  box-shadow: 0 0 8px 2px rgba(255, 122, 26, .8);
  pointer-events: none;
  animation: emberFly var(--t, 900ms) ease-out forwards;
}
@keyframes emberFly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--ex, 0px), var(--ey, -90px)) scale(.2); opacity: 0; }
}
.smoke {
  position: fixed; z-index: 28;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,50,44,.4), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  animation: smokeRise var(--t, 1400ms) ease-out forwards;
}
@keyframes smokeRise {
  0%   { transform: translate(0, 0) scale(.6); opacity: .8; }
  100% { transform: translate(var(--ex, 0px), -140px) scale(2.4); opacity: 0; }
}
/* bag world diving toward the burning card */
#bagWorld.dive {
  transition: transform .9s cubic-bezier(.55, .05, .55, .95), opacity .9s ease;
  transform: scale(2.1);
  opacity: 0;
  pointer-events: none;
}

/* ── case study pages ──────────────────────────────────── */
#caseWorld[hidden] { display: none; }
#caseWorld {
  position: fixed; inset: 0; z-index: 26;
  overflow: hidden;
  will-change: transform;
}
.case-page[hidden] { display: none; }
.case-page {
  position: absolute; inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.case-page.entering { animation: caseIn .45s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes caseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* the case study itself — the standalone HTML lives in this frame */
.cs-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  background: transparent;
}
.cs-back-float {
  position: fixed; top: 22px; left: 22px; z-index: 6;
}
.case-page[data-brand="airlearn"] {
  background:
    radial-gradient(90% 60% at 80% -10%, #dcedfb 0%, transparent 60%),
    linear-gradient(180deg, #f6fafe 0%, #eef5fc 100%);
  color: #14283c;
  --acc: #2f7de0; --acc-deep: #17436e;
}
.case-page[data-brand="feeltok"] {
  background:
    radial-gradient(90% 60% at 15% -10%, #e4ecfa 0%, transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, #f2f4f8 100%);
  color: #1c2230;
  --acc: #4a90e2; --acc-deep: #23262d;
}
.cs-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 84px 26px 90px;
}
.cs-back {
  position: fixed; top: 26px; left: 26px; z-index: 5;
  font-family: var(--satoshi); font-weight: 600; font-size: 13.5px;
  color: var(--acc-deep);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(20, 40, 70, .12);
  border-radius: 999px;
  padding: 8px 16px 9px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(20, 40, 70, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cs-back:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20,40,70,.14); }
.cs-eyebrow {
  font-family: var(--satoshi); font-weight: 700; font-size: 11.5px;
  letter-spacing: 2.4px; color: var(--acc);
  margin-bottom: 14px;
}
.cs-hero h1 {
  font-family: var(--pixel); font-weight: 400;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04; letter-spacing: -.5px;
  color: var(--acc-deep);
}
.cs-hero h1 em { font-style: italic; color: var(--acc); }
.cs-lede {
  font-family: var(--satoshi); font-weight: 500;
  font-size: 16px; line-height: 1.6;
  color: #44536a;
  max-width: 560px;
  margin-top: 18px;
}
.cs-meta {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: start; gap: 34px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 40, 70, .12);
}
.cs-meta li {
  font-family: var(--satoshi); font-weight: 500; font-size: 13.5px;
  color: #2c3a50;
}
.cs-meta b {
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: #8494ab;
  margin-bottom: 5px;
}
/* phone band */
.cs-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 44px 0 10px;
  padding: 30px 26px 0;
  border-radius: 22px;
  overflow: hidden;
  min-height: 240px;
}
.cs-band-al { background: linear-gradient(135deg, #cfe5fa 0%, #a9cef2 100%); }
.cs-band-ft { background: linear-gradient(135deg, #dfe7f6 0%, #c3d3ee 100%); }
.csb-screen {
  position: relative;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 30px rgba(23, 52, 88, .18);
  padding: 34px 14px 12px;
  transform: translateY(var(--ly, 0));
}
.cs-band .s1 { --ly: 18px; }
.cs-band .s2 { --ly: 0; }
.cs-band .s3 { --ly: 26px; }
.csb-pill {
  position: absolute; top: 10px; left: 50%;
  width: 34%; height: 5px; border-radius: 4px;
  transform: translateX(-50%);
  background: #e8edf4;
}
.csb-screen u {
  display: block; text-decoration: none;
  height: 7px; border-radius: 4px; background: #edf1f7;
  margin: 8px 0; width: 92%;
}
.csb-screen u.w8 { width: 74%; } .csb-screen u.w7 { width: 60%; } .csb-screen u.w6 { width: 48%; }
.csb-king {
  display: block; text-align: center;
  font-size: 44px; color: #2f7de0;
  margin: 6px 0 2px;
}
.csb-board {
  display: block; width: 74%; aspect-ratio: 1; margin: 2px auto 6px;
  border-radius: 8px;
  background:
    conic-gradient(#cfe2f3 90deg, #f2f8fd 90deg 180deg, #cfe2f3 180deg 270deg, #f2f8fd 270deg) 0 0/50% 50%;
  outline: 2px solid #bcd6ec;
}
.csb-mood {
  display: block; text-align: center;
  font-size: 26px; letter-spacing: 4px;
  margin: 10px 0 6px;
}
.csb-warn {
  display: block; width: fit-content; margin: 10px auto 8px;
  font-family: var(--satoshi); font-weight: 800; font-size: 13px;
  color: #fff; background: #4a90e2;
  border-radius: 8px; padding: 6px 12px;
  box-shadow: 0 6px 14px rgba(74, 144, 226, .4);
}
.csb-cta {
  display: block;
  margin-top: 12px;
  font-family: var(--satoshi); font-weight: 600; font-size: 11px;
  text-align: center; font-style: normal;
  color: #fff; background: var(--acc, #2f7de0);
  border-radius: 8px; padding: 8px 6px;
}
.cs-block { margin-top: 46px; }
.cs-block h2 {
  font-family: var(--pixel); font-weight: 400; font-size: 27px;
  color: var(--acc-deep);
  margin-bottom: 12px;
}
.cs-block p, .cs-list li {
  font-family: var(--satoshi); font-weight: 500;
  font-size: 15px; line-height: 1.7; color: #3c4a60;
  max-width: 640px;
}
.cs-list { list-style: none; }
.cs-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.cs-list li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--acc);
  transform: rotate(45deg);
}
.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 46px;
}
.stat {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(20, 40, 70, .1);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 24px rgba(20, 40, 70, .06);
}
.stat b {
  display: block;
  font-family: var(--pixel); font-weight: 400; font-size: 34px;
  color: var(--acc);
  margin-bottom: 6px;
}
.stat span {
  font-family: var(--satoshi); font-weight: 500; font-size: 12.5px;
  line-height: 1.5; color: #5a6a84;
}
.cs-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 40, 70, .12);
}
.cs-back-big, .cs-next {
  font-family: var(--satoshi); font-weight: 600; font-size: 14.5px;
  color: var(--acc-deep);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(20, 40, 70, .16);
  transition: background .25s ease, color .25s ease, transform .2s ease, filter .25s ease;
}
.cs-next { background: var(--acc); border-color: var(--acc); color: #fff; }
.cs-back-big:hover { background: rgba(20, 40, 70, .06); transform: translateY(-1px); }
.cs-next:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.in-case #hud { opacity: 0; pointer-events: none; }
body.in-case #dock { opacity: 0; pointer-events: none; transition: opacity .3s ease; }

/* ---------- about — inside the laptop ---------- */
/* soft screen-light bloom as the camera reaches the display */
#laptopGlow {
  position: fixed; inset: 0; z-index: 23;
  background: radial-gradient(ellipse 70% 62% at 50% 50%,
              rgba(240, 246, 252, .55) 0%, rgba(215, 228, 240, .25) 55%, transparent 100%);
  opacity: 0; pointer-events: none;
}
/* the laptop bezel, locked to the viewport edges at the end of the zoom */
/* the laptop's screen bezel — stays wrapped around the About page so it
   reads as the page living on the laptop screen, stuck to the frame edge */
#laptopFrame {
  position: fixed; inset: 0; z-index: 27;
  pointer-events: none;
  opacity: 0;
  border-radius: 16px;
  /* dark aluminium bezel with a thicker chin at the bottom */
  border: 14px solid #17191d;
  border-bottom-width: 30px;
  box-shadow:
    inset 0 0 0 1.5px #34383f,
    inset 0 0 0 3px rgba(255,255,255,.05),
    inset 0 0 42px rgba(0,0,0,.4),
    0 0 0 3px rgba(0,0,0,.25);
  transition: opacity .5s ease;
}
/* appears just as the camera settles onto the screen, then stays put */
body.in-about #laptopFrame { opacity: 1; transition-delay: .8s; }
body.in-about.about-closing #laptopFrame { opacity: 0; transition-delay: 0s; transition-duration: .3s; }
#laptopFrame::before {
  /* webcam dot, centred in the top bezel */
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translateX(-50%);
  background: #0a0c10;
  box-shadow: 0 0 0 1.5px #2a2e35, 0 0 4px rgba(120,180,255,.4);
}
#laptopFrame::after {
  /* subtle brand mark on the bottom chin */
  content: "";
  position: absolute; bottom: -21px; left: 50%;
  width: 34px; height: 5px; border-radius: 3px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.09);
}
#aboutWorld[hidden] { display: none; }
#aboutWorld {
  position: fixed; inset: 0; z-index: 24; /* below the dock */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fbfaf7;
  color: #171614;
  opacity: 0;
  transition: opacity .45s ease;
}
#aboutWorld.lit { opacity: 1; }
#aboutWorld.lit .ab-page { animation: abLand .7s cubic-bezier(.16,.84,.3,1) both; }
@keyframes abLand {
  0%   { transform: scale(1.05) translateY(18px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
body.in-about #hud { opacity: 0; pointer-events: none; }

/* about — the provided About-me artwork, shown as a long scrollable page */
.ab-scroll {
  height: 100%;
  background: #5e3a1c;               /* corkboard brown behind any letterbox */
  display: grid; place-items: center;
  padding: 16px 16px 32px;           /* clear the laptop bezel */
}
/* the board is a fixed 16:9 stage so overlays map to exact % positions */
.ab-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 100%;
  margin: 0 auto;
}
.ab-svg { display: block; width: 100%; height: 100%; }
.ab-back { z-index: 28; top: 26px; left: 26px; }

/* ---- the living character taped to the board ---- */
.ab-char {
  position: absolute;
  /* the taped-character's spot on the board */
  left: 58.9%; top: 23.6%; width: 8.3%; height: 22.2%;
  --cx: 0px; --cy: 0px; --rot: 0deg; --flip: 1; --sq: 1;
}
/* a patch shaped like the card interior, so the spot looks empty once he leaves */
.abc-cover {
  position: absolute; left: -32%; top: -10%; width: 164%; height: 122%;
  background:
    radial-gradient(120% 120% at 50% 40%, #ebecec 0%, #e3e4e4 60%, #dcdedd 100%);
  border-radius: 8px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(120% 120% at 50% 50%, #000 58%, transparent 100%);
  opacity: 0; transition: opacity .3s ease;
}
.ab-char.freed .abc-cover { opacity: 1; }
.abc-body {
  position: absolute; inset: 0;
  transform: translate(var(--cx), var(--cy)) rotate(var(--rot))
             scaleX(var(--flip)) scaleY(var(--sq));
  transform-origin: 50% 100%;
  will-change: transform;
}
.abc-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(20,10,4,.28));
  pointer-events: auto; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
/* struggling wiggle while still taped */
.ab-char.taped .abc-body { animation: abcWiggle 1.6s ease-in-out infinite; }
@keyframes abcWiggle {
  0%,100% { transform: translate(var(--cx),var(--cy)) rotate(-2.2deg) scaleX(var(--flip)) scaleY(var(--sq)); }
  50%     { transform: translate(var(--cx),var(--cy)) rotate(2.2deg)  scaleX(var(--flip)) scaleY(var(--sq)); }
}
/* the black tape strips across him */
.abc-tape {
  position: absolute; left: 50%; top: 62%;
  width: 150%; height: 15%;
  transform: translate(-50%, -50%) rotate(-16deg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 40%),
    #191a1e;
  box-shadow: 0 2px 5px rgba(0,0,0,.4);
  transition: transform .5s cubic-bezier(.5,-0.2,.7,1), opacity .5s ease;
}
.abc-tape-1 { top: 55%; transform: translate(-50%,-50%) rotate(-16deg); }
.abc-tape-2 { top: 70%; width: 120%; transform: translate(-50%,-50%) rotate(-14deg); }
.ab-char.freeing .abc-tape-1 { transform: translate(30%,-160%) rotate(80deg); opacity: 0; }
.ab-char.freeing .abc-tape-2 { transform: translate(-70%,120%) rotate(-90deg); opacity: 0; }
.ab-char.freed .abc-tape { display: none; }
/* speech bubble above him */
.abc-bubble {
  position: absolute; left: 50%; bottom: 104%;
  transform: translateX(-50%) scale(.6);
  transform-origin: 50% 120%;
  white-space: nowrap;
  font-family: "Caveat", cursive; font-weight: 600;
  font-size: clamp(14px, 1.7vw, 22px);
  color: #1c1a17;
  background: #fff;
  border: 1.5px solid #e6dfce;
  border-radius: 12px;
  padding: 5px 13px 6px;
  box-shadow: 0 8px 20px rgba(20,15,8,.18);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,1.4,.4,1);
}
.abc-bubble::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #fff;
}
.abc-bubble.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* narrow screens: read the board at a comfortable width and pan */
@media (max-width: 720px) {
  #aboutWorld { overflow: auto; }
  .ab-scroll { display: block; padding: 16px; }
  .ab-stage { width: 900px; max-width: none; max-height: none; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-char.taped .abc-body { animation: none; }
}
#aboutWorld.lit .ab-scroll { animation: abLand .7s cubic-bezier(.16,.84,.3,1) both; }

.ab-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 22px 130px;
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
}
.ab-sk {
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 24px; font-weight: 600;
  margin-bottom: 26px;
}
.ab-title {
  text-align: center;
  font-family: "Caveat", cursive;
  font-weight: 600; font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  margin-bottom: 30px;
}
.ab-role { font-size: .55em; font-weight: 500; color: #6f6b64; white-space: nowrap; }

/* scroll reveals */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.25,1); }
.rv.in { opacity: 1; transform: translateY(0); }

/* hero collage — draggable polaroids */
.ab-hero { position: relative; margin: 0 auto 44px; }
.ab-collage {
  position: relative;
  height: clamp(300px, 52vw, 430px);
  margin: 0 6%;
}
.pold {
  position: absolute;
  background: #fff;
  padding: 5px 5px 6px;
  border-radius: 4px;
  box-shadow: 0 8px 26px rgba(20,15,8,.18);
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg));
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow .25s ease;
}
.pold.drag { cursor: grabbing; box-shadow: 0 20px 44px rgba(20,15,8,.3); z-index: 5; transition: none; }
.pold:hover { box-shadow: 0 14px 34px rgba(20,15,8,.26); }
.ph {
  display: grid; place-items: center;
  aspect-ratio: 4/3.4;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(145deg, #ece7dc, #dcd4c4);
  font-size: clamp(24px, 4vw, 40px);
}
.ph::before { content: attr(data-ph); grid-area: 1/1; opacity: .8; }
.ph img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; display: none; }
.ph.has img { display: block; }
.ph.has::before { content: none; }
.ph-wide { aspect-ratio: 16/8.5; width: min(440px, 86%); margin: 0 auto; border-radius: 8px; }

.ab-note {
  position: absolute;
  font-family: "Caveat", cursive;
  font-size: 21px; font-weight: 600;
  color: #23211e;
}
.ab-note-me { right: -2%; top: -6%; }
.ab-note-me svg { display: block; width: 64px; margin: 4px 0 0 -30px; color: #23211e; }
.ab-note-scroll { left: 0; bottom: -34px; font-size: 19px; }
.ab-sign { position: absolute; right: 0; bottom: -36px; font-family: "Caveat", cursive; font-size: 22px; font-weight: 500; font-style: italic; }

.ab-doodle { width: 108px; margin: 54px auto 10px; }
.ab-doodle svg { width: 100%; display: block; }
.ab-doodle-small { width: 96px; margin: 0 auto; position: relative; z-index: 1; }

.ab-block { margin: 44px auto 0; }
.ab-h2 {
  font-size: 24px; font-weight: 600; letter-spacing: .2px;
  margin-bottom: 22px;
}
.ab-h2-sans { font-size: 16.5px; font-weight: 600; margin-bottom: 12px; }
.ab-center { text-align: center; }
.ab-body { font-size: 13.5px; line-height: 1.65; color: #3c3a36; margin: 8px 0; }

/* timeline */
.ab-timeline { list-style: none; margin-left: 8px; }
.ab-timeline li {
  position: relative;
  padding: 0 0 34px 26px;
  border-left: 2px solid #17161422;
}
.ab-timeline li::before {
  content: "";
  position: absolute; left: -6px; top: 34px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #171614;
}
.ab-timeline li:last-child { border-left-color: transparent; padding-bottom: 6px; }
.ab-meta { font-size: 11.5px; color: #77726a; line-height: 1.5; margin-bottom: 4px; }
.ab-timeline h3 { font-size: 19px; font-weight: 600; margin: 2px 0 8px; }
.ab-logo {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  font-size: 11px; font-weight: 700;
  vertical-align: -5px;
  margin: 0 2px;
}
.lg-airlearn { background: linear-gradient(135deg, #58b7f0, #2f7de0); color: #fff; }
.lg-isd { background: #fff; color: #e33; border: 1.5px solid #e33; font-style: italic; }
.lg-aikyam { background: #f2efe8; color: #444; border: 1.5px solid #ccc; font-size: 14px; }
.lg-newave { background: #ffd83d; color: #232019; font-size: 9px; letter-spacing: .5px; }

.ab-photo { margin: 18px 0 6px; text-align: center; }
.ab-photo .ph { box-shadow: 0 10px 30px rgba(20,15,8,.14); }
.ab-photo figcaption { margin-top: 10px; }

.ab-links {
  display: flex; justify-content: center; gap: 34px;
  margin: 22px 0 8px;
}
.ab-links a {
  font-family: "Caveat", cursive;
  font-size: 22px; font-weight: 600;
  color: #171614; text-decoration: none;
  border-bottom: 2px solid #171614;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s, transform .2s;
}
.ab-links a:hover { color: #e0632f; border-color: #e0632f; transform: translateY(-2px); }

/* design process */
.ab-process {
  position: relative;
  min-height: 300px;
  display: grid; place-items: center;
  margin: 10px 0 6px;
}
.ab-pnote {
  position: absolute;
  left: var(--px); top: var(--py);
  max-width: 200px;
  font-family: "Caveat", cursive;
  font-size: 17.5px; font-weight: 500; line-height: 1.25;
  color: #33302b;
}
.ab-pnote-top { text-align: center; }
.ab-pink {
  display: block;
  margin: 22px auto 0;
  background: #ff7ab8; color: #fff;
  font-family: "Inter", sans-serif; font-size: 12.5px; font-weight: 600;
  border-radius: 999px;
  padding: 10px 22px;
  box-shadow: 0 10px 26px rgba(255,122,184,.35);
  transition: transform .2s, box-shadow .2s;
}
.ab-pink:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 32px rgba(255,122,184,.45); }

.ab-foot {
  display: flex; justify-content: center; gap: 44px;
  margin-top: 64px;
}
.ab-foot-link {
  font-family: "Caveat", cursive;
  font-size: 24px; font-weight: 600;
  color: #2f6fe0;
  border-bottom: 2px solid #2f6fe0;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.ab-foot-link:hover { color: #e0632f; border-color: #e0632f; }

@media (max-width: 720px) {
  .ab-collage { margin: 0 2%; height: clamp(280px, 66vw, 380px); }
  .ab-note-me { right: 0; top: -10%; font-size: 18px; }
  .ab-note-scroll { position: static; display: block; margin-top: 40px; font-size: 16px; }
  .ab-sign { position: static; display: block; text-align: right; margin-top: 4px; font-size: 18px; }
  .ab-process { min-height: 420px; }
  .ab-pnote { max-width: 150px; font-size: 15px; }
}

/* ---------- contact page ---------- */
#contactWorld[hidden] { display: none; }
#contactWorld {
  position: fixed; inset: 0; z-index: 24; /* below the dock */
  display: flex; flex-direction: column;
  padding: max(64px, calc(46px + env(safe-area-inset-top)))
           max(44px, env(safe-area-inset-right))
           max(60px, calc(40px + env(safe-area-inset-bottom)))
           max(44px, env(safe-area-inset-left));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(10, 7, 5, .45);
  -webkit-backdrop-filter: blur(9px) brightness(.9);
  backdrop-filter: blur(9px) brightness(.9);
  opacity: 0;
  transition: opacity .45s ease;
  overflow-y: auto;
}
#contactWorld.open { opacity: 1; }
body.in-contact #hud { opacity: 0; pointer-events: none; }
.sk-mini {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--pixel); font-style: italic; font-weight: 500;
  font-size: 21px; color: #fff;
  text-shadow: 0 0 12px rgba(255,220,160,.4);
}
.ct-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 26px;
  max-width: 1560px; width: 100%;
  margin: 0 auto;
}
.ctile {
  display: flex; flex-direction: column; justify-content: space-between;
  background: #f3f1ed;
  border-radius: 26px;
  padding: 34px 38px 30px;
  text-decoration: none;
  color: #191817;
  min-height: 200px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  /* dropped in from above the screen */
  transform: translateY(-125vh);
  transition:
    transform .95s cubic-bezier(.24, .8, .25, 1.05) var(--d, 0ms),
    background .3s ease, box-shadow .3s ease;
}
#contactWorld.open .ctile { transform: translateY(0); }
.ctile:hover {
  background: #ffffff;   /* a few shades lighter on hover */
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
.ct-label {
  font-family: var(--satoshi); font-weight: 500; font-size: 21px;
  color: #9b968e;
  min-height: 28px;
}
.ct-foot {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--satoshi); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: .1px;
}
.ct-ic {
  display: grid; place-items: center;
  width: 1.35em; height: 1.35em;
  border-radius: .3em;
  font-style: normal; font-size: .78em;
  flex: none;
}
.ic-li { background: #0a66c2; color: #fff; font-weight: 600; font-family: Arial, sans-serif; }
.ic-x  { background: #111; color: #fff; }
.ic-gm { background: #fff; color: #ea4335; font-weight: 700; font-family: Arial, sans-serif;
         box-shadow: inset 0 0 0 1px #e5e2dc; }
.ic-face { font-size: 1.05em; }
.ct-credit {
  margin: 26px auto 0;
  background: #fff; color: #454340;
  font-family: var(--satoshi); font-weight: 500; font-size: 13px;
  border-radius: 999px;
  padding: 9px 20px 10px;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- toast ---------- */
#toast {
  position: fixed; z-index: 50;
  left: 50%; bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  font-family: var(--pixel); font-size: 15px; letter-spacing: .5px;
  color: var(--paper);
  background: rgba(18,14,10,.94);
  border: 1px solid rgba(255,180,84,.4);
  border-radius: 10px;
  padding: 8px 18px 9px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  #contactWorld { padding: 58px 16px 96px; }
  .ct-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
  .ctile { min-height: 138px; padding: 20px 22px 18px; border-radius: 20px; }
  .ct-label { font-size: 16px; min-height: 20px; }
  .ct-foot { font-size: 19px; gap: 12px; overflow-wrap: anywhere; }
  .ct-credit { font-size: 11.5px; margin-bottom: 8px; }
  #wxChip { font-size: 13px; padding: 5px 12px 6px; }
  #hud { padding: max(14px, env(safe-area-inset-top)) 16px 0; }
  .dock-btn { font-size: 13px; padding: 9px 16px; }
  .case-grid { grid-template-columns: 1fr; gap: 18px; max-width: 420px; }
  .cs-wrap { padding: 76px 18px 80px; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 18px 26px; }
  .cs-band { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 14px 0; min-height: 170px; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-back { top: max(14px, env(safe-area-inset-top)); left: 16px; }
  .cs-foot { flex-direction: column; gap: 14px; align-items: stretch; text-align: center; }
  .bag-inner { padding: 96px 20px 110px; justify-content: flex-start; }
  #bagClose { top: max(14px, env(safe-area-inset-top)); left: 16px; font-size: 13.5px; }
  .hotspot::after { font-size: 12px; }
  #toast { bottom: 84px; font-size: 13.5px; }
}

/* ---------- short landscape phones ---------- */
@media (max-height: 520px) {
  .ct-grid { gap: 14px; }
  .ctile { min-height: 120px; padding: 16px 20px 14px; border-radius: 18px; }
  .ct-label { font-size: 14px; min-height: 16px; }
  .ct-foot { font-size: 18px; }
  .ct-credit { font-size: 11px; margin-top: 14px; }
  #contactWorld { padding-top: max(46px, calc(34px + env(safe-area-inset-top))); }
  .bag-inner { padding: 92px 24px 96px; justify-content: flex-start; }
  #bagWorld h2 { font-size: 30px; margin-bottom: 16px; }
  .case-grid { gap: 12px; max-width: 560px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #grain, #steam i, .loader-pixels i { animation: none !important; }
  #scene, #stage, #dock { transition: none; }
  #stage { transform: none; }
}
