/* ==========================================================================
   v2 additions: retro TVs, doodles + sticky notes, section wipes, 3D
   experience timeline, client list, work rows, vertical reel ring,
   archives, "coming soon", scatter frames, zoom-into-project.
   ========================================================================== */

:root{
  color-scheme: dark;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --tv-orange-1: #e2703f;
  --tv-orange-2: #a9431f;
  --tv-teal-1: #2a9a87;
  --tv-teal-2: #155c51;
}

.hand{
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ---------- Doodles (placeholders - swap the files in assets/doodles) ---------- */

.doodle{
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 48px);
  height: auto;
  rotate: var(--r, 0deg);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  animation: doodleBob 7s ease-in-out infinite;
}

.doodle:nth-of-type(2n){ animation-duration: 9s; animation-delay: -3s; }

@keyframes doodleBob{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-8px) rotate(4deg); }
}

@media (max-width: 860px){
  .doodle{ opacity: .3; width: calc(var(--s, 48px) * .7); }
}

/* ==========================================================================
   00:00 HERO
   ========================================================================== */

.hero2{
  position: relative;
  padding: 0;
  border-bottom: none;
}

.hero-stage{
  position: relative;
  padding-bottom: 72px;
}

/* Pinned mode (desktop, motion allowed). JS adds .is-pinned. */
.hero2.is-pinned{ height: 185vh; }
.hero2.is-pinned .hero-stage > .wrap{ width: 100%; }

.hero2.is-pinned .hero-stage{
  position: sticky;
  top: 44px;
  height: calc(100vh - 44px);
  overflow: hidden;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.hero2.is-pinned .hero-grid2{ flex: 1; }

.hero-grid2{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 24px;
}

.hero-copy2{ will-change: transform, opacity; }

.hero-name{ font-size: clamp(56px, 8.4vw, 112px); }

.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scrollcue{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
  z-index: 1;
}

.hero-scrollcue i{
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--orange), transparent);
  animation: cueDrop 1.6s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cueDrop{
  0%{ transform: scaleY(0); opacity: 1; }
  70%{ transform: scaleY(1); opacity: 1; }
  100%{ transform: scaleY(1); opacity: 0; }
}

.hero2.is-pinned .hero-scrollcue{ display: flex; }

/* ==========================================================================
   RETRO TV
   ========================================================================== */

.tv-wrap{ position: relative; z-index: 1; }

.tv{
  --tv-1: var(--tv-orange-1);
  --tv-2: var(--tv-orange-2);
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  will-change: transform;
}

.tv-small{
  --tv-1: var(--tv-teal-1);
  --tv-2: var(--tv-teal-2);
  max-width: 470px;
}

.tv-body{
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(160deg, var(--tv-1), var(--tv-2));
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.22),
    inset 0 -8px 18px rgba(0,0,0,.35),
    0 44px 80px -34px rgba(0,0,0,.95),
    0 0 0 1px rgba(0,0,0,.4);
}

.tv-screen{
  position: relative;
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: 22px / 26px;
  overflow: hidden;
  background: #040404;
  box-shadow:
    0 0 0 7px #151210,
    0 0 0 9px rgba(255,255,255,.08),
    inset 0 0 40px rgba(0,0,0,.9);
  cursor: pointer;
  isolation: isolate;
}

.tv-screen:focus-visible{ outline: 2px solid var(--teal); outline-offset: 10px; }

.tv-channels{ position: absolute; inset: 0; }

.ch{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  background: #040404;
}

.ch.is-on{ opacity: 1; visibility: visible; }

/* Never cropped: the clip keeps its own shape and the screen shows bars. */
.ch > video,
.ch > img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.tv-static{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .12s linear;
}

.tv.is-tuning .tv-static{ opacity: 1; }

.tv-scan{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 58%, rgba(0,0,0,.55) 100%),
    linear-gradient(155deg, rgba(255,255,255,.10), transparent 32%);
  mix-blend-mode: normal;
}

.tv-osd{
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: #8dff9a;
  text-shadow: 0 0 6px rgba(80,255,120,.7), 2px 0 0 rgba(255,0,80,.35);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.tv-osd .osd-name{ font-size: 12px; letter-spacing: .08em; }
.tv.osd-on .tv-osd{ opacity: 1; }

.tv-panel{
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}

.tv-knob{
  --k: 0deg;
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #4a4440, #1d1a17 70%);
  box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 2px 1px rgba(255,255,255,.18), 0 0 0 3px rgba(0,0,0,.25);
  transition: transform .35s var(--ramp-soft);
  transform: rotate(var(--k));
}

.tv-knob span{
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 14px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
}

.tv-knob:hover{ filter: brightness(1.15); }
.tv-knob:active{ transform: rotate(var(--k)) scale(.94); }

.tv-knob-sm{ width: 34px; height: 34px; }
.tv-knob-sm span{ top: 4px; height: 9px; width: 3px; margin-left: -1.5px; }

.tv-speaker{
  width: 42px;
  flex: 1;
  min-height: 40px;
  border-radius: 8px;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.42) 0 3px, transparent 3px 7px);
  opacity: .8;
}

.tv-brand{
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.75);
}

.tv-feet{
  display: flex;
  justify-content: space-between;
  padding: 0 18%;
  height: 16px;
}

.tv-feet i{
  width: 14px;
  height: 16px;
  background: #141110;
  border-radius: 0 0 6px 6px;
}

.tv-caption{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  max-width: 540px;
  margin-left: auto;
}

.tv-small + .tv-caption{ max-width: 470px; }

.tv-hint{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 21px;
}

.hint-arrow{
  width: 34px;
  height: auto;
  opacity: .7;
  transform: scaleX(-1) rotate(-30deg);
}

.tv-link{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  white-space: nowrap;
  border-bottom: 1px solid var(--teal-dim);
  padding-bottom: 2px;
}

.tv-link:hover{ color: var(--text); border-color: var(--teal); }

/* About TV channel content */

.me-card{
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 30%, rgba(255,138,76,.55) 0 9%, transparent 10%),
    radial-gradient(circle at 78% 22%, rgba(47,191,166,.5) 0 7%, transparent 8%),
    radial-gradient(circle at 70% 72%, rgba(255,214,120,.35) 0 6%, transparent 7%),
    radial-gradient(circle at 15% 80%, rgba(47,191,166,.35) 0 8%, transparent 9%),
    linear-gradient(160deg, #24453f, #1b1815 70%);
}

/* The bokeh behind goes soft as the subject comes into focus. */
.me-card::before{
  content: '';
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(0);
  transition: filter 1.4s var(--ramp-soft);
}

.ch.is-on .me-card.focused::before{ filter: blur(14px); }

.me-photo{
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 104%;
  width: auto;
  max-width: none;
  transform: translateX(-50%) scale(1.06);
  filter: blur(16px) brightness(.85);
  transition: filter 1.5s var(--ramp-soft), transform 1.5s var(--ramp-soft);
}

.ch.is-on .me-card.focused .me-photo{
  filter: blur(0) brightness(1);
  transform: translateX(-50%) scale(1);
}

.me-tag{
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  background: rgba(18,16,14,.72);
  padding: 7px 10px;
  border-radius: 6px;
}

.me-tag small{ font-weight: 400; font-size: 10px; color: var(--muted); }

.soon-card, .hi-card{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 40%, #1f2a28, #0a0a09 75%);
}

.soon-card .hand, .hi-card .hand{ font-size: 30px; margin: 0; }

.soon-rec{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: #ff5c5c;
}

.soon-rec i, .coming-rec i{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5c5c;
  animation: pulse 1.2s ease-in-out infinite;
}

.hi-card a{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-dim);
}

.hi-card a:hover{ color: var(--text); }

/* ==========================================================================
   SECTION WIPES (built in v2.js)
   ========================================================================== */

.xwipe{
  position: relative;
  height: 22vh;
  min-height: 130px;
  overflow: hidden;
  perspective: 900px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.xwipe-pixel{ height: 16vh; min-height: 100px; }

.xw-plane{
  position: absolute;
  inset: -10% -4%;
  display: grid;
  transform-origin: 50% 50%;
  will-change: transform;
}

.xw-tile{
  transform: scale(0);
  will-change: transform;
}

.xwipe-checker .xw-tile.on{ background: var(--text); }
.xwipe-checker .xw-tile.alt{ background: #0a0908; }

@media (prefers-reduced-motion: reduce){
  .xwipe{ display: none; }
}

/* Pixel dissolve over media on first view */
.px-host{ position: relative; }

.px-cover{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  pointer-events: none;
}

.px-cover i{
  background: var(--surface);
  transition: opacity .01s linear;
}

.px-cover.go i{ opacity: 0; }

/* ==========================================================================
   00:01 ABOUT
   ========================================================================== */

.about2{ overflow: hidden; }

.about-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: start;
}

.about-grid .section-head{ margin-bottom: 26px; }

.notes{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  align-items: flex-start;
}

.notes-title{
  flex: 0 0 100%;
  margin: 0 0 2px;
  color: var(--orange);
  font-size: 24px;
  transform: rotate(-1.5deg);
}

.note{
  position: relative;
  flex: 1 1 150px;
  max-width: 200px;
  min-height: 150px;
  padding: 24px 18px 18px;
  color: #1d1712;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 18px 30px -16px rgba(0,0,0,.85), inset 0 -18px 30px -24px rgba(0,0,0,.35);
  border-radius: 2px 2px 14px 2px;
}

.notes .note.reveal{ transform: translateY(26px) rotate(var(--r, 0deg)); }
.notes .note.reveal.is-in{ transform: rotate(var(--r, 0deg)); }

.notes .note.is-in:hover{
  transform: rotate(0deg) translateY(-6px);
  transition: transform .3s var(--ramp-soft);
}

.note-yellow{ background: #f6dc78; }
.note-teal{ background: #9fe6d6; }
.note-orange{ background: #ffbb93; }

.note b{
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  opacity: .6;
  margin-bottom: 6px;
}

.note p{
  margin: 0;
  color: #1d1712;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.05;
}

.note-tape{
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 22px;
  margin-left: -35px;
  background: rgba(244,239,230,.45);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.tv-wrap-about{ padding-top: 40px; }

.about2 .stat-grid{ margin-top: 72px; }

/* ==========================================================================
   00:02 SERVICES
   ========================================================================== */

.do-doodle{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  opacity: .55;
  transform: translateZ(26px) rotate(-6deg);
  transition: opacity .25s ease, transform .3s var(--ramp-soft);
}

.do-grid .do-item:hover .do-doodle{
  opacity: 1;
  transform: translateZ(26px) rotate(6deg) scale(1.08);
}

/* ==========================================================================
   00:03 EXPERIENCE - 3D card timeline
   ========================================================================== */

.exp{ padding-bottom: 0; overflow: clip; }
.exp .section-head{ margin-bottom: 16px; }

.exp-pin{
  position: relative;
  height: var(--pin-h, 320vh);
}

.exp-stage{
  position: sticky;
  top: 44px;
  height: calc(100vh - 44px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-years{
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.exp-years span{
  position: absolute;
  top: 6%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(120px, 19vw, 300px);
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(244,239,230,.05);
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
}

.exp-years span.flip{ animation: yearFlip .5s steps(4, end); }

@keyframes yearFlip{
  0%{ opacity: 0; transform: translateX(-50%) translateY(18px); }
  100%{ opacity: 1; transform: translateX(-50%) translateY(0); }
}

.exp-scene{
  position: relative;
  perspective: 1500px;
  perspective-origin: 50% 30%;
  padding-bottom: 92px;
}

.exp-track{
  --card-w: 330px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 54px;
  padding-left: calc(50vw - var(--card-w) / 2);
  padding-right: calc(50vw - var(--card-w) / 2);
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
}

/* The ruler the cards stand on. */
.exp-track::before{
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
}

.exp-card{
  position: relative;
  flex: 0 0 var(--card-w);
  transform-style: preserve-3d;
  cursor: pointer;
}

.exp-card::before{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -54px;
  width: 2px;
  height: 16px;
  background: var(--line);
  transition: background .3s ease;
}

.exp-card::after{
  content: attr(data-year);
  position: absolute;
  left: 50%;
  bottom: -96px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  color: rgba(244,239,230,.28);
  transition: color .3s ease;
}

.exp-card.is-focus::before{ background: var(--orange); }
.exp-card.is-focus::after{ color: var(--text); }

.exp-card-in{
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: linear-gradient(170deg, #2b241e, #191511);
  border: 1px solid #3a322b;
  box-shadow:
    9px 11px 0 -1px #0c0a09,
    9px 11px 0 0 #2a241f,
    0 40px 60px -30px rgba(0,0,0,.95),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)) translateY(var(--ty, 0px));
  opacity: var(--op, 1);
  transition: transform .55s var(--ramp-soft), opacity .55s ease, background .45s ease, border-color .45s ease;
}

.exp-card.is-focus .exp-card-in{
  background: linear-gradient(165deg, #d0602f, #7c2f15 92%);
  border-color: #ff9a62;
  box-shadow:
    9px 11px 0 -1px #2b1208,
    9px 11px 0 0 #5a2410,
    0 50px 80px -30px rgba(0,0,0,.95),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.exp-kind{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.exp-card.is-focus .exp-kind{ color: rgba(255,240,230,.85); }

.live-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ff40;
  box-shadow: 0 0 6px #00ff40;
  animation: pulse 2s ease-in-out infinite;
}

.exp-card h3{
  font-size: 21px;
  margin: 8px 0 4px;
}

.exp-role{
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.exp-card.is-focus .exp-role{ color: rgba(255,240,230,.85); }

.exp-media{
  position: relative;
  height: 178px;
  margin: 14px 0 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0908;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.exp-media video,
.exp-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.exp-media-doodle img{ width: 46%; height: auto; opacity: .55; }

.exp-card p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 4.5em;
}

.exp-card.is-focus p{ color: rgba(255,244,236,.9); }

.exp-tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.exp-tags span{
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}

.exp-foot{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.exp-dots{ display: flex; gap: 8px; }

.exp-dots i{
  width: 9px; height: 9px;
  background: rgba(244,239,230,.18);
  transition: background .3s ease, transform .3s ease;
}

.exp-dots i.on{ background: var(--orange); transform: scale(1.25); }

.exp-hint{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

/* Flat mode: phones, tablets and reduced motion. A swipe row. */
.exp.is-flat .exp-pin{ height: auto; }

.exp.is-flat .exp-stage{
  position: relative;
  top: 0;
  height: auto;
  overflow: visible;
  padding: 24px 0 72px;
}

.exp.is-flat .exp-years{ display: none; }

.exp.is-flat .exp-scene{
  perspective: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 110px;
  scrollbar-width: none;
}

.exp.is-flat .exp-scene::-webkit-scrollbar{ display: none; }

.exp.is-flat .exp-track{
  --card-w: min(78vw, 320px);
  padding-left: 20px;
  padding-right: 20px;
  gap: 18px;
  transform: none !important;
}

.exp.is-flat .exp-card{ scroll-snap-align: center; }
.exp.is-flat .exp-card-in{ transform: none; opacity: 1; }

/* ==========================================================================
   CLIENTS - Been there, cut that
   ========================================================================== */

.clients{ position: relative; overflow: hidden; }

.clients h2{ font-size: clamp(30px, 4.4vw, 52px); }
.clients .hl{ color: var(--orange); }
.clients-sub{ color: var(--muted); margin: 0 0 34px; }

.cl-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .28em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 82px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.cl-list li{ display: inline-flex; align-items: baseline; }

.cl-list li:not(:last-child)::after{
  content: '/';
  margin-left: .28em;
  color: var(--orange);
  font-weight: 400;
  opacity: .8;
}

.cl-name{
  font: inherit;
  letter-spacing: inherit;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .25s ease, -webkit-text-stroke-color .25s ease;
  -webkit-text-stroke: 1px transparent;
}

.cl-list.is-hovering .cl-name{
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,239,230,.32);
}

.cl-list.is-hovering .cl-name.is-active{
  color: var(--text);
  -webkit-text-stroke-color: transparent;
}

.cl-name:focus-visible{ outline-offset: 6px; }

.cl-pop{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 250px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.95);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(.9) rotate(-3deg);
  transition: opacity .18s ease;
}

.cl-pop.show{
  opacity: 1;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1) rotate(-2deg);
}

.cl-pop-logo{
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(244,239,230,.04);
  border-radius: 8px;
}

.cl-pop-logo img{ max-height: 36px; max-width: 160px; width: auto; }
.cl-pop-logo.invert img{ filter: brightness(0) invert(1); }

.cl-pop-video{
  display: none;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  margin-top: 8px;
  border-radius: 6px;
  background: #0a0908;
}

.cl-pop.has-clip .cl-pop-video{ display: block; }

.cl-pop-note{
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

/* Touch: the card docks at the bottom of the screen instead of following. */
.cl-pop.is-docked{
  left: 50%;
  top: auto;
  bottom: 18px;
  transform: translateX(-50%) scale(.96);
}

.cl-pop.is-docked.show{ transform: translateX(-50%) scale(1); }

/* ==========================================================================
   00:04 WORK - project rows
   ========================================================================== */

.wrows{
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.wrow{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 52px;
  align-items: center;
}

.wrow:nth-child(even){ grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.wrow:nth-child(even) .wrow-media{ order: 2; }

.wrow-media{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(47,191,166,.10), transparent 70%),
    var(--surface);
  overflow: hidden;
}

.wrow:nth-child(even) .wrow-media{
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(255,138,76,.10), transparent 70%),
    var(--surface);
}

.wrow-media video,
.wrow-media img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 58vh;
  border-radius: 6px;
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.95);
  transition: transform .6s var(--ramp-soft);
  pointer-events: none;
}

.wrow:hover .wrow-media video,
.wrow:hover .wrow-media img{ transform: scale(1.025); }

.wrow:hover .wrow-media{ border-color: var(--teal-dim); }

.wrow-num{
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 72px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,239,230,.35);
  margin-bottom: 14px;
}

.wrow-cat{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
}

.wrow-info h3{
  font-size: clamp(26px, 3vw, 38px);
  margin: 8px 0 10px;
}

.wrow-info p{ color: var(--muted); font-size: 15px; margin: 0 0 18px; max-width: 44ch; }

.credit{
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
}

.credit div{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.credit div:nth-child(odd){ padding-right: 14px; }

.credit dt{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3px;
}

.credit dd{ margin: 0; font-size: 13.5px; }

.wrow-go{
  display: inline-flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--teal);
}

.wrow-go span{ transition: transform .25s var(--ramp-soft); }
.wrow:hover .wrow-go span{ transform: translate(4px, -2px); }

/* Playhead pointer over the projects (same as the live site's work cards). */
.wrow{
  cursor:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cg%20stroke%3D%27%2312100e%27%20stroke-width%3D%274%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%20fill%3D%27%2312100e%27%3E%3Cpath%20d%3D%27M10.5%203%20H21.5%20V10.5%20L16%2015.5%20L10.5%2010.5%20Z%27%2F%3E%3Cpath%20d%3D%27M16%2015.5%20V29.5%27%20fill%3D%27none%27%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%27M10.5%203%20H21.5%20V10.5%20L16%2015.5%20L10.5%2010.5%20Z%27%20fill%3D%27%23ff8a4c%27%2F%3E%3Cpath%20d%3D%27M16%2015.5%20V29.5%27%20stroke%3D%27%23ff8a4c%27%20stroke-width%3D%273.2%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3C%2Fsvg%3E") 16 3,
    pointer;
}

/* ---------- Vertical reels on a curved ring ---------- */

.reels-head{
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 110px;
}

.reels-head h3{ font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.reels-hint{ color: var(--muted); font-size: 20px; display: inline-flex; align-items: center; gap: 6px; }

.reels{
  position: relative;
  height: 520px;
  perspective: 1400px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  margin-top: 8px;
}

.reels.is-dragging{ cursor: grabbing; }

.reels-ring{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.reel{
  position: absolute;
  left: -105px;
  top: -200px;
  width: 210px;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0908;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.95);
  backface-visibility: hidden;
  will-change: transform, opacity;
  -webkit-user-drag: none;
}

.reel video{
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.reel span{
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  color: var(--text);
  background: rgba(18,16,14,.75);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
}

.reel.is-front{ border-color: var(--orange-dim); }

/* Flat mode for phones and reduced motion */
.reels.is-flat{
  height: auto;
  perspective: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: auto;
  touch-action: auto;
  padding: 10px 20px 20px;
  scrollbar-width: none;
}

.reels.is-flat::-webkit-scrollbar{ display: none; }

.reels.is-flat .reels-ring{
  position: static;
  width: auto;
  height: auto;
  display: flex;
  gap: 14px;
}

.reels.is-flat .reel{
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 min(58vw, 220px);
  transform: none !important;
  opacity: 1 !important;
  scroll-snap-align: center;
}

/* ---------- Archives + coming soon ---------- */

.archive-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 96px;
  align-items: start;
}

.archive h3{ font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }

.ar-list{ list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.ar-list li{
  display: grid;
  grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1fr) 80px auto;
  gap: 14px;
  align-items: baseline;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.ar-list li:hover{ background: rgba(244,239,230,.03); }

.ar-num{ font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ar-title{ font-weight: 600; }
.ar-kind{ font-size: 13.5px; color: var(--muted); }
.ar-year{ font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ar-go{ font-family: var(--mono); font-size: 12px; color: var(--teal); white-space: nowrap; }
.ar-go:hover{ color: var(--text); }
.ar-go-off{ color: var(--muted); }

.coming{
  position: relative;
  padding: 24px 24px 26px;
  border-radius: 14px;
  border: 1.5px dashed #4a4038;
  background: repeating-linear-gradient(135deg, rgba(244,239,230,.02) 0 12px, transparent 12px 24px);
  overflow: hidden;
}

.coming-rec{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #ff6b6b;
}

.coming-num{
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244,239,230,.25);
}

.coming h3{ font-size: 26px; margin: 22px 0 8px; }
.coming p{ color: var(--muted); font-size: 14px; margin: 0 0 20px; max-width: 30ch; }

.coming-bar{
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--line);
}

.coming-bar i{
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  animation: renderBar 3.2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes renderBar{
  0%{ transform: scaleX(.55); }
  60%{ transform: scaleX(1); }
  100%{ transform: scaleX(.55); }
}

.coming-doodle{
  position: absolute;
  right: 18px;
  bottom: 30px;
  width: 54px;
  opacity: .35;
  transform: rotate(12deg);
}

/* ==========================================================================
   00:06 CONTACT - scatter frames
   ========================================================================== */

.contact2{ overflow: hidden; }
.contact2 .wrap{ position: relative; z-index: 1; }

.scatter-layer{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scatter-frame{
  position: absolute;
  width: var(--w, 170px);
  padding: 7px 7px 26px;
  background: #f4efe6;
  box-shadow: 0 22px 40px -16px rgba(0,0,0,.9);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  animation: framePop .42s cubic-bezier(.2, 1.4, .4, 1) both;
}

.scatter-frame img{ width: 100%; height: auto; display: block; }

.scatter-frame b{
  position: absolute;
  left: 9px;
  bottom: 5px;
  font-family: var(--hand);
  font-size: 15px;
  color: #3a2f26;
}

@keyframes framePop{
  from{ opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) * 3)) scale(.4); }
  to{ opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
}

.scatter-row{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 44px;
}

.scatter-btn,
.scatter-clear{
  font-family: var(--hand);
  font-size: 24px;
  color: var(--text);
  background: transparent;
  border: 1.5px dashed #5a4d42;
  border-radius: 999px;
  padding: 8px 22px 10px;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s var(--ramp-soft);
}

.scatter-btn b{ color: var(--orange); }
.scatter-btn:hover{ border-color: var(--orange); transform: rotate(-2deg) scale(1.03); }
.scatter-clear{ font-size: 20px; color: var(--muted); }
.scatter-clear:hover{ color: var(--text); border-color: var(--teal); }

/* ---------- Zoom into a project ---------- */

.zoom-veil{
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  background: #0a0908 center / contain no-repeat;
  pointer-events: none;
  opacity: 0;
}

/* Project pages: the new page arrives under a fading veil. */
.arrive-veil{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0a0908;
  pointer-events: none;
  animation: arriveFade .55s ease .05s forwards;
}

@keyframes arriveFade{ to{ opacity: 0; visibility: hidden; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px){
  .hero-grid2{ gap: 36px; }
  .tv-panel{ flex-basis: 52px; }
  .tv-knob{ width: 40px; height: 40px; }
  .ar-list li{ grid-template-columns: 34px minmax(0, 1fr) auto; }
  .ar-kind, .ar-year{ display: none; }
}

@media (max-width: 860px){
  .hero-grid2{ grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .hero-name{ font-size: clamp(54px, 15vw, 92px); }
  .tv{ margin: 0 auto; }
  .tv-caption{ margin: 12px auto 0; }
  .tv-body{ padding: 14px; gap: 12px; border-radius: 24px; }
  .tv-panel{ flex-basis: 40px; gap: 10px; }
  .tv-knob{ width: 34px; height: 34px; }
  .tv-knob-sm{ width: 26px; height: 26px; }
  .tv-brand{ display: none; }
  .tv-hint{ font-size: 18px; }

  .about-grid{ grid-template-columns: 1fr; gap: 28px; }
  .tv-wrap-about{ padding-top: 0; }
  .notes{ gap: 14px; }
  .note{ flex-basis: calc(50% - 8px); max-width: none; min-height: 0; }

  .xwipe{ height: 14vh; min-height: 90px; }
  .xwipe-pixel{ height: 11vh; min-height: 70px; }

  .wrows{ gap: 64px; }
  .wrow,
  .wrow:nth-child(even){ grid-template-columns: 1fr; gap: 22px; }
  .wrow:nth-child(even) .wrow-media{ order: 0; }
  .wrow-media{ min-height: 0; padding: 18px; }
  .wrow-media video, .wrow-media img{ max-height: 70vh; }
  .wrow-num{ font-size: 52px; }

  .archive-grid{ grid-template-columns: 1fr; margin-top: 72px; }
  .reels-head{ margin-top: 80px; }
  .scatter-row{ flex-wrap: wrap; }
}

@media (max-width: 520px){
  .note{ flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce){
  .doodle, .coming-bar i, .hero-scrollcue i{ animation: none; }
  .me-photo, .me-card::before{ transition: none; }
  .ch .me-card .me-photo{ filter: none; transform: translateX(-50%); }
  .scatter-frame{ animation: none; }
}

/* ==========================================================================
   PROJECT PAGES
   ========================================================================== */

/* Credit block: six cells, 3 x 2 (2 x 3 on phones). */
.meta-grid.six{ grid-template-columns: repeat(3, 1fr); }
.meta-grid.six .meta-cell{ border-radius: 0; }
.meta-grid.six .meta-cell:nth-child(1){ border-top-left-radius: calc(var(--radius) - 1px); }
.meta-grid.six .meta-cell:nth-child(3){ border-top-right-radius: calc(var(--radius) - 1px); }
.meta-grid.six .meta-cell:nth-child(4){ border-bottom-left-radius: calc(var(--radius) - 1px); }
.meta-grid.six .meta-cell:nth-child(6){ border-bottom-right-radius: calc(var(--radius) - 1px); }

@media (max-width: 860px){
  .meta-grid.six{ grid-template-columns: repeat(2, 1fr); }
  .meta-grid.six .meta-cell{ border-radius: 0 !important; }
  .meta-grid.six .meta-cell:nth-child(1){ border-top-left-radius: calc(var(--radius) - 1px) !important; }
  .meta-grid.six .meta-cell:nth-child(2){ border-top-right-radius: calc(var(--radius) - 1px) !important; }
  .meta-grid.six .meta-cell:nth-child(5){ border-bottom-left-radius: calc(var(--radius) - 1px) !important; }
  .meta-grid.six .meta-cell:nth-child(6){ border-bottom-right-radius: calc(var(--radius) - 1px) !important; }
}

/* ---------- Edit breakdown ---------- */

.bd-wrap{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}

.breakdown{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px 18px 22px;
}

.bd-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.bd-tc{ color: var(--teal); font-size: 13px; }

.bd-video{
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  background: #0a0908;
}

.bd-video video{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52vh;
  border-radius: 4px;
  pointer-events: none;
}

.bd-note{
  min-height: 1.5em;
  margin: 12px 0 4px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  color: var(--orange);
}

.bd-ruler{
  position: relative;
  height: 18px;
  margin-left: 52px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
}

.bd-ruler span{
  position: absolute;
  left: calc(var(--a) * 1%);
  transform: translateX(-50%);
}

.bd-ruler span:first-child{ transform: none; }
.bd-ruler span:last-child{ transform: translateX(-100%); }

.bd-lanes{
  position: relative;
  margin-left: 52px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.bd-row{
  position: relative;
  height: 28px;
  border-radius: 4px;
  background: rgba(244,239,230,.035);
}

.bd-row > b{
  position: absolute;
  left: -52px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.bd-seg{
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: calc(var(--a) * 1%);
  width: calc((var(--b) - var(--a)) * 1%);
  padding: 0 6px;
  border-radius: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 22px;
  color: rgba(255,255,255,.88);
  background: var(--seg, #3a3a3a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: filter .2s ease, box-shadow .2s ease;
}

.bd-seg.is-on{ filter: brightness(1.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }

.lane-v2 .bd-seg{ --seg: #1d6f61; }
.lane-v1 .bd-seg{ --seg: #8a4a26; }
.lane-a1 .bd-seg{ --seg: #3b5e34; }
.lane-a2 .bd-seg{ --seg: #4d3f7a; }

.bd-mark{
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(var(--a) * 1%);
  width: 2px;
  border-radius: 1px;
  background: rgba(244,239,230,.45);
}

.bd-mark.big{ background: var(--orange); top: 1px; bottom: 1px; width: 3px; }

.bd-playhead{
  position: absolute;
  top: -24px;
  bottom: -4px;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  pointer-events: none;
}

.bd-playhead::before{
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 10px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

.bd-draft{
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.bd-side{ position: sticky; top: 90px; display: grid; gap: 18px; }
.bd-side .note{ width: 100%; }

@media (max-width: 860px){
  .bd-wrap{ grid-template-columns: 1fr; }
  .bd-side{ position: static; grid-template-columns: 1fr 1fr; }
  .bd-seg{ font-size: 0; }
}

/* ---------- Visual design: burst + draggable collage ---------- */

.collage-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.collage-head .hand{ color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }

.collage{
  position: relative;
  height: 680px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(244,239,230,.07) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface);
  overflow: hidden;
  touch-action: pan-y;
}

.piece{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 190px);
  padding: 7px 7px 24px;
  background: #f4efe6;
  box-shadow: 0 20px 36px -18px rgba(0,0,0,.95);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform .8s cubic-bezier(.2, 1.15, .35, 1), box-shadow .2s ease;
}

.collage.is-open .piece{ transition: transform .25s var(--ramp-soft), box-shadow .2s ease; touch-action: none; }
.piece.is-held{ cursor: grabbing; transition: none !important; box-shadow: 0 36px 50px -18px rgba(0,0,0,.95); }

.piece img{ width: 100%; height: auto; display: block; pointer-events: none; -webkit-user-drag: none; }

.piece figcaption{
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 3px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #3a2f26;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.piece.tape::before{
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 18px;
  margin-left: -27px;
  background: rgba(244,239,230,.5);
  transform: rotate(-5deg);
}

.collage-shuffle{
  font-family: var(--hand);
  font-size: 21px;
  color: var(--text);
  background: transparent;
  border: 1.5px dashed #5a4d42;
  border-radius: 999px;
  padding: 4px 18px 6px;
  cursor: pointer;
}

.collage-shuffle:hover{ border-color: var(--orange); }

@media (max-width: 860px){
  .collage{ height: 560px; }
  .piece{ width: calc(var(--w, 190px) * .66); }
}

/* ---- Wipe scenes: chess (Intro -> About) ---- */
.xwipe-chess{ height: 34vh; min-height: 230px; }
.xw-scene{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.cp{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cp-h, 70px);
  height: calc(var(--cp-h, 70px) * 1.25);
  transform-origin: 50% 92%;
  will-change: transform;
}
.cp svg{
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.45));
}
.cp-white svg *{ fill: #f3eee6; stroke: #0a0908; stroke-width: 1.6; stroke-linejoin: round; }
.cp-black svg *{ fill: #0a0908; stroke: #f3eee6; stroke-width: 1.4; stroke-linejoin: round; }
.cp-white .cp-eye{ fill: #0a0908; stroke: none; }
.cp-black .cp-eye{ fill: #f3eee6; stroke: none; }
.cp svg .cp-cut{ fill: none; stroke-width: 1.6; }
.cp-shadow{
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 2%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(3px);
  transform: translateY(calc(var(--hop, 0) * var(--cp-h, 70px) * 0.9)) scale(calc(1 - var(--hop, 0) * 0.8));
}
@media (max-width: 760px){
  .xwipe-chess{ height: 26vh; min-height: 170px; }
}
.cp-white.cp-knight svg{ transform: scaleX(-1); }

/* ---- Wipe scenes: shared ---- */
.xwipe-stage{ height: 34vh; min-height: 230px; }
.xwipe-pixel.xwipe-stage{ height: 32vh; min-height: 210px; }
.xwipe[data-scene="plane"]{ height: 40vh; min-height: 260px; }
.pxs{ position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.pxf, .pxf svg{ display: block; width: 100%; height: 100%; }
.pxf[hidden]{ display: none; }

/* Blocky world (About -> Services) */
.bk-ground{
  position: absolute; left: 0; right: 0; top: 80%; bottom: 0;
  background-color: #4a2a18;
  background-image:
    linear-gradient(#2a9d8f 0, #2a9d8f 24%, #1d6b62 24%, #1d6b62 34%, transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.4) 2px, transparent 2px),
    linear-gradient(rgba(0,0,0,.3) 2px, transparent 2px),
    radial-gradient(rgba(0,0,0,.25) 18%, transparent 20%);
  background-size: 100% var(--bk, 32px), var(--bk, 32px) var(--bk, 32px), var(--bk, 32px) var(--bk, 32px), calc(var(--bk, 32px) / 2) calc(var(--bk, 32px) / 2);
  background-repeat: repeat-x, repeat, repeat, repeat;
  border-top: 3px solid #1a120e;
}
.bk-cloud{ filter: none; opacity: .9; }
.bk-tree{ transform-origin: 50% 100%; }

/* Race (Services -> Experience) */
.rc-car{
  position: absolute; left: 0; top: 0;
  width: var(--rc-l, 100px); height: calc(var(--rc-l, 100px) / 2);
  transform-origin: 50% 50%; will-change: transform;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.5));
}
.rc-car svg{ display: block; width: 100%; height: 100%; }
.rc-puff{
  position: absolute; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,219,210,.95), rgba(225,219,210,0) 70%);
  will-change: transform, opacity;
}

/* Platformer (Experience -> Work) */
.pf-track{
  position: absolute; left: 0; right: 0; top: 78%;
  height: calc(var(--pf, 4px) * 7);
  display: flex; gap: 3px;
}
.pf-clip{
  display: flex; align-items: center; padding-left: 8px;
  border: 2px solid #1a120e; border-radius: 4px;
  font: 700 10px/1 "Space Mono", monospace; letter-spacing: .08em; color: #1a120e;
  overflow: hidden; white-space: nowrap;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.25);
}
.pf-o{ background: #f2622f; }
.pf-t{ background: #2a9d8f; }
.pf-w{ background: #f3eee6; }
.pf-pit{ background: transparent; border-color: transparent; box-shadow: none; }
.pf-hud{
  position: absolute; top: 10px; left: 18px; right: 18px;
  display: flex; justify-content: space-between;
  font: 700 12px/1 "Space Mono", monospace; letter-spacing: .12em;
  color: #f3eee6; text-shadow: 2px 2px 0 #1a120e;
}
.pf-hud b{ font-weight: 700; }
.pf-hero.is-powered{ filter: drop-shadow(0 0 5px #6fd3c1) drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.pf-hero.is-charged{ filter: drop-shadow(0 0 7px #f4c542) drop-shadow(0 0 3px #6fd3c1); }
.pf-hero.is-charged::before{
  content: ""; position: absolute; right: 100%; top: 30%; width: 70%; height: 40%;
  background: repeating-linear-gradient(#f4c542 0 3px, transparent 3px 9px);
  opacity: .8;
}
.pf-item{ transform-origin: 50% 50%; }
.pf-bug{ transform-origin: 50% 100%; }

/* Paper airplane + film strip (Work -> Tools) */
.pp-plane{
  position: absolute; left: 0; top: 0;
  width: var(--pl, 90px); height: calc(var(--pl, 90px) / 2);
  transform-origin: 50% 50%; will-change: transform;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.45));
}
.pp-plane svg{ display: block; width: 100%; height: 100%; }
.fs-frame{
  position: absolute; left: 0; top: 0;
  width: var(--fs, 60px); height: calc(var(--fs, 60px) * .8);
  box-sizing: border-box;
  padding: calc(var(--fs, 60px) * .15) 2px;
  background: #121010;
  transform-origin: 50% 50%; will-change: transform;
  box-shadow: 0 0 0 1px rgba(243,238,230,.35), 0 6px 10px rgba(0,0,0,.4);
}
.fs-frame::before, .fs-frame::after{
  content: ""; position: absolute; left: 3px; right: 3px; height: calc(var(--fs, 60px) * .07);
  background: repeating-linear-gradient(90deg, #f3eee6 0 calc(var(--fs, 60px) * .08), transparent 0 calc(var(--fs, 60px) * .16));
  opacity: .85;
}
.fs-frame::before{ top: calc(var(--fs, 60px) * .04); }
.fs-frame::after{ bottom: calc(var(--fs, 60px) * .04); }
.fs-frame img{ display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px){
  .xwipe-stage{ height: 26vh; min-height: 170px; }
  .xwipe-pixel.xwipe-stage{ height: 26vh; min-height: 170px; }
  .xwipe[data-scene="plane"]{ height: 30vh; min-height: 200px; }
  .pf-clip{ font-size: 8px; padding-left: 4px; }
  .pf-hud{ font-size: 10px; top: 8px; left: 12px; right: 12px; }
}
@media (max-width: 760px){ .pf-hud span:last-child{ display: none; } }

/* ---- Distinct backdrops per scene ---- */
/* Blocky world at sunset */
.bk-star{ position: absolute; width: 3px; height: 3px; background: #fff3d6; box-shadow: 0 0 5px #fff3d6; }
.bk-sun{ filter: drop-shadow(0 0 22px rgba(255,179,92,.7)); }
.bk-ridge{ position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.bk-ridge svg{ display: block; }
.bk-ridge-back path{ fill: #3a2160; }
.bk-ridge-front path{ fill: #24163f; }

/* Race track */
.rd-bg{
  position: absolute; inset: 0;
  background-color: #3f7a3a;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.1) 0 46px, transparent 46px 92px);
}
.rd-road{
  position: absolute; left: 0; right: 0; top: 11%; bottom: 11%;
  background-color: #34363b;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.6px), radial-gradient(rgba(0,0,0,.28) 1px, transparent 1.6px);
  background-size: 7px 7px, 11px 11px;
  box-shadow: inset 0 10px 18px rgba(0,0,0,.35), inset 0 -10px 18px rgba(0,0,0,.35);
}
.rd-kerb{
  position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, #e23b3b 0 28px, #f3eee6 28px 56px);
  background-position-x: var(--rd-shift, 0);
}
.rd-kerb-top{ top: -6px; }
.rd-kerb-bot{ bottom: -6px; }
.rd-dash{
  position: absolute; left: 0; right: 0; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, rgba(243,238,230,.85) 0 44px, transparent 44px 92px);
  background-position-x: var(--rd-shift, 0);
}
.rd-finish{
  position: absolute; top: 0; bottom: 0; left: 84%; width: 28px;
  background: repeating-conic-gradient(#f3eee6 0 25%, #111 0 50%) 0 0 / 14px 14px;
  opacity: .92;
}

/* Edit timeline (platformer) */
.xwipe[data-scene="platformer"]{ height: 40vh; min-height: 280px; }
.ed-bg{
  position: absolute; inset: 0;
  background-color: #121419;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 10%);
  transform-origin: 50% 50%;
}
.ed-ruler{
  position: absolute; left: 0; right: 0; top: 0; height: 24px;
  background: #1a1d24;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 2%);
  background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 100%;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ed-ruler span{
  position: absolute; top: 4px; padding-left: 4px;
  font: 9px/1 "Space Mono", monospace; color: #8b93a7;
  border-left: 1px solid rgba(255,255,255,.25);
}
.ed-lane{
  position: absolute; left: 0; right: 0;
  height: calc(var(--ed-ch, 36px) + 16px);
  background: linear-gradient(90deg, #1f232b 0 44px, rgba(255,255,255,.025) 44px);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ed-lane b{ position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 700 10px/1 "Space Mono", monospace; color: #8b93a7; }
.ed-lane-v2{ top: calc(var(--ed-u, 150px) - var(--ed-ch, 36px) - 30px); }
.ed-lane-v1{ top: calc(var(--ed-u, 150px) - 8px); }
.ed-lane-a1{ top: calc(var(--ed-lo, 240px) - 8px); }
.ed-lane-a2{ display: none; }
.xw-plat .pf-clip{
  position: absolute; display: block; padding: 0;
  border: 1.5px solid #0b0c10; border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18);
}
.xw-plat .pf-clip em{
  position: absolute; left: 7px; top: 4px;
  font: 600 10px/1 "Space Mono", monospace; font-style: normal; letter-spacing: .02em;
  color: rgba(255,255,255,.92); text-transform: none;
}
.pf-v{
  background-color: #4a62c9;
  background-image: linear-gradient(rgba(255,255,255,.08), transparent), repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 1px, transparent 1px 52px);
}
.pf-a{
  background-color: #2f9e62;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='20' viewBox='0 0 48 20'%3E%3Cpath d='M0 10h3v-3h2v7h2v-9h2v11h2v-6h2v3h2v-8h2v13h2v-10h2v6h2v-4h2v7h2v-11h2v9h2v-5h2v3h2v-7h2v10h2v-6h2v2h3' fill='none' stroke='%230d3d24' stroke-width='1.2' stroke-opacity='.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 70%; background-size: 48px 60%;
}
.ed-playhead{
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: #ff4b4b; box-shadow: 0 0 8px rgba(255,75,75,.6);
  will-change: transform; z-index: 1;
}
.ed-playhead::before{
  content: ""; position: absolute; top: 0; left: -6px;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 12px solid #ff4b4b;
}
.xw-plat .pf-hero{ z-index: 2; }
.xw-plat .pf-hud{ top: 6px; left: auto; right: 12px; font-size: 10px; text-shadow: none; color: #f4c542; }

/* Sky for the paper airplane */
.sky-bg{
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(#6fbfe9 0%, #9fd6f2 55%, #d6effb 100%);
}
.sky-cloud{
  position: absolute; width: 190px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.55); filter: blur(9px);
  box-shadow: 70px -16px 0 8px rgba(255,255,255,.45), -56px -6px 0 0 rgba(255,255,255,.4);
  will-change: transform;
}

@media (max-width: 760px){
  .xwipe[data-scene="platformer"]{ height: 34vh; min-height: 240px; }
  .ed-ruler span{ font-size: 7px; }
  .ed-ruler span:nth-child(even){ display: none; }
  .xw-plat .pf-clip em{ font-size: 8px; }
  .ed-lane{ background: linear-gradient(90deg, #1f232b 0 30px, rgba(255,255,255,.025) 30px); }
  .ed-lane b{ left: 6px; font-size: 8px; }
  .sky-cloud{ width: 120px; height: 36px; }
}

/* ============================================================
   About: instant camera prints the photo, the photo develops
   ============================================================ */
.pol-wrap{ display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.pol-stage{ position: relative; width: 100%; max-width: 470px; height: 640px; }
.cam{ position: absolute; left: 0; top: 0; width: 360px; z-index: 1; filter: drop-shadow(0 26px 30px rgba(0,0,0,.55)); }
.cam-svg{ display: block; width: 100%; height: auto; }
.cam-flash{
  position: absolute; left: 8%; top: 13%; width: 25%; height: 16%; border-radius: 8px;
  background: radial-gradient(circle, #fff 0%, rgba(255,250,235,.85) 35%, rgba(255,240,210,0) 70%);
  opacity: 0; pointer-events: none; transform: scale(1);
}
.cam.is-flash .cam-flash{ animation: camFlash .5s ease-out; }
@keyframes camFlash{ 0%{ opacity: 0; transform: scale(.6); } 15%{ opacity: 1; transform: scale(3.2); } 100%{ opacity: 0; transform: scale(4); } }

.polaroid{ position: absolute; z-index: 2; left: 0; top: 0; width: 220px; margin: 0; will-change: transform, clip-path; cursor: pointer; }
.pol-card{
  background: #f4efe6; padding: 10px 10px 0; border-radius: 3px;
  box-shadow: 0 26px 50px -22px rgba(0,0,0,.9), 0 2px 0 rgba(0,0,0,.2);
  transform-origin: 50% 20%;
}
.polaroid.is-shaking .pol-card{ animation: polShake .62s ease-in-out; }
@keyframes polShake{
  0%,100%{ transform: rotate(0); } 15%{ transform: rotate(-6deg) translateX(-4px); } 35%{ transform: rotate(5deg) translateX(4px); }
  55%{ transform: rotate(-4deg) translateX(-3px); } 75%{ transform: rotate(2deg) translateX(2px); }
}
.pol-photo{ position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: #1c2321; }
.pol-photo img{
  display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
  filter: saturate(0) brightness(.5) contrast(.65) blur(2px);
  transition: filter 2.6s cubic-bezier(.3,.1,.3,1) .05s;
}
.pol-dev{
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(78,92,88,.82), rgba(26,32,31,.97) 72%);
  transition: opacity 2.6s cubic-bezier(.3,.1,.3,1);
}
.polaroid.is-developed .pol-photo img{ filter: none; }
.polaroid.is-developed .pol-dev{ opacity: 0; }
.polaroid figcaption{ padding: 9px 3px 13px; color: #1d1712; font-size: 26px; line-height: 1; }
.polaroid figcaption small{ display: block; margin-top: 5px; font-family: var(--mono); font-size: 9px; color: #7a6d62; letter-spacing: .04em; }
.polaroid:focus-visible{ outline: 2px solid var(--teal); outline-offset: 6px; }

.pol-hint{ display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--muted); font-size: 21px; transition: color .4s ease; }
.pol-hint .hint-arrow{ width: 26px; transform: rotate(200deg); opacity: .7; }
.pol-wrap.is-done .pol-hint{ color: var(--orange); }

@media (max-width: 900px){
  .pol-stage{ max-width: 420px; }
}

/* Sticky notes driven by scroll (no CSS transition: JS writes the frame). */
.notes-fly .note{ will-change: transform, opacity; transition: none; }
.notes-fly .note:hover{ --lift: -8px; }

/* ============================================================
   Experience: edit-timeline layout
   ============================================================ */
.xp-tl{
  background: #15120f; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.xp-bar{
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font: 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted);
}
.xp-file{ display: inline-flex; align-items: center; gap: 9px; }
.xp-file i{ width: 8px; height: 8px; border-radius: 50%; background: #ff5c5c; box-shadow: 0 0 6px #ff5c5c; }
.xp-tc b{ margin-left: 6px; color: var(--orange); font-weight: 700; }
.xp-scroll{ overflow-x: auto; overflow-y: hidden; padding: 0 18px 6px; scrollbar-width: thin; scrollbar-color: #3a332c transparent; }
.xp-inner{ position: relative; min-width: 900px; padding: 46px 0 34px; }
.xp-ruler{ position: absolute; inset: 0; pointer-events: none; }
.xp-ruler span{ position: absolute; top: 14px; transform: translateX(-50%); font: 11.5px/1 var(--mono); color: var(--muted); }
.xp-ruler i{ position: absolute; top: 34px; bottom: 26px; width: 1px; background: rgba(244,239,230,.07); }
.xp-ruler b{ position: absolute; top: 34px; width: 1px; height: 5px; background: rgba(244,239,230,.18); }
.xp-future{
  position: absolute; top: 34px; bottom: 26px; right: 0;
  background: repeating-linear-gradient(135deg, rgba(47,191,166,.08) 0 7px, transparent 7px 14px);
  border-radius: 0 8px 8px 0; opacity: 0; transition: opacity .4s ease;
}
.xp-future span{ position: absolute; right: 8px; bottom: 8px; font: 10px/1 var(--mono); color: var(--teal); letter-spacing: .06em; white-space: nowrap; }
.xp-tl.is-now .xp-future{ opacity: 1; }
.xp-rows{ position: relative; display: flex; flex-direction: column; gap: 10px; }
.xp-row{ position: relative; height: 50px; }
.xp-clip{
  --c: rgba(244,239,230,.4);
  position: absolute; top: 0; height: 100%; min-width: 34px;
  display: flex; align-items: center; gap: 9px; padding: 0 14px 0 16px;
  border-radius: 10px; border: 1px solid rgba(244,239,230,.13);
  background-color: #1f1a17; color: var(--text); font: inherit; text-align: left;
  white-space: nowrap; overflow: hidden; cursor: pointer;
  transition: box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}
.xp-clip::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.xp-clip > *{ position: relative; }
.xp-clip b{ font-size: 13.5px; font-weight: 600; }
.xp-clip span{ font-size: 12.5px; color: rgba(244,239,230,.62); }
.xp-clip em{ font: 11px/1 var(--mono); font-style: normal; color: rgba(244,239,230,.55); margin-left: 2px; }
.xp-o{ --c: var(--orange); background-color: rgba(255,138,76,.13); border-color: rgba(255,138,76,.42); }
.xp-t{ --c: var(--teal); background-color: rgba(47,191,166,.11); border-color: rgba(47,191,166,.42); }
/* Clips with footage show a film-strip of thumbnails, like an NLE track. */
.xp-clip.has-thumb{
  background-image: linear-gradient(90deg, rgba(21,18,15,.95) 0%, rgba(21,18,15,.82) 38%, rgba(21,18,15,.45) 100%), var(--thumb);
  background-size: 100% 100%, auto 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: 0 0, 0 50%;
}
.xp-edu{ background: repeating-linear-gradient(135deg, rgba(244,239,230,.07) 0 6px, transparent 6px 12px); color: var(--muted); }
.xp-edu::before{ display: none; }
.xp-ghost{ background: transparent; border: 1.5px dashed rgba(47,191,166,.5); color: var(--teal); padding: 0 10px; justify-content: center; }
.xp-ghost::before{ display: none; }
.xp-ghost b{ color: var(--teal); font-weight: 600; }
.xp-key{ background: transparent; border-color: transparent; padding-left: 0; overflow: visible; }
.xp-key::before{ display: none; }
.xp-diamond{ width: 14px; height: 14px; background: #f4c542; transform: translateX(-7px) rotate(45deg); box-shadow: 0 0 10px rgba(244,197,66,.6); flex: none; }
.xp-badge{
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font: 700 11px/1 var(--mono); color: var(--text); background: rgba(244,239,230,.14);
}
.xp-badge-yt{ background: #e62117; }
.xp-badge-yt::after{ content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.xp-clip.is-narrow > :not(.xp-badge){ display: none; }
.xp-clip.is-narrow{ padding: 0 0 0 8px; justify-content: flex-start; }
.xp-out{
  position: absolute; top: 50%; transform: translateY(-50%); margin-left: 10px;
  font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; pointer-events: none;
}
.xp-out small{ font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.xp-rows:hover .xp-clip:not(:hover):not(.is-active){ filter: brightness(.72) saturate(.85); }
.xp-clip:hover, .xp-clip:focus-visible, .xp-clip.is-active{ border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 12px 30px -10px var(--c); }
.xp-edu:hover, .xp-edu.is-active{ --c: rgba(244,239,230,.45); }
.xp-ghost:hover, .xp-ghost.is-active{ --c: var(--teal); }
.xp-key:hover, .xp-key.is-active{ box-shadow: none; border-color: transparent; }
.xp-key.is-active b, .xp-key:hover b{ color: #f4c542; }
.xp-clip:focus-visible{ outline: none; }
.xp-now{
  position: absolute; top: 34px; bottom: 26px; width: 2px; margin-left: -1px;
  background: var(--orange); box-shadow: 0 0 12px rgba(255,138,76,.7); pointer-events: none; z-index: 2;
}
.xp-knob{ position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,138,76,.25); }
.xp-now span{
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font: 700 10px/1 var(--mono); letter-spacing: .08em; color: #1a1310; background: var(--orange);
  padding: 4px 6px; border-radius: 4px; white-space: nowrap;
}
.xp-detail{
  display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center;
  margin: 8px 18px 0; padding: 18px; min-height: 180px;
  background: #1b1714; border: 1px solid var(--line); border-radius: 14px;
}
.xp-detail.no-media{ grid-template-columns: 1fr; }
.xp-detail.no-media .xp-detail-media{ display: none; }
.xp-detail-media img{ width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
.xp-detail.is-swapping .xp-detail-copy, .xp-detail.is-swapping .xp-detail-media{ animation: xpSwap .38s cubic-bezier(.2,.8,.2,1); }
@keyframes xpSwap{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
.xp-detail-when{ font: 12px/1 var(--mono); color: var(--orange); }
.xp-detail-title{ margin: 8px 0 4px; font-size: 26px; }
.xp-detail-role{ font-size: 14px; color: var(--muted); }
.xp-detail-body{ margin: 10px 0 12px; color: rgba(244,239,230,.78); max-width: 64ch; font-size: 15px; }
.xp-detail-tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.xp-detail-tags span{ font: 11.5px/1 var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); }
.xp-detail-link{ display: inline-block; margin-top: 14px; font: 12px/1 var(--mono); color: var(--teal); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.xp-detail-link:hover{ color: var(--text); }
.xp-swipe{ margin: 10px 18px 0; }

/* ============================================================
   Clients: drifting logo strip (from the live site)
   ============================================================ */
.clients2{ padding: 56px 0 64px; }
.clients2-label{ margin: 0; font: 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.logos{
  --logo-gap: 12px;
  display: flex; gap: var(--logo-gap); margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.logos.is-dragging{ cursor: grabbing; }
.logos-track{ display: flex; flex: 0 0 auto; gap: var(--logo-gap); will-change: transform; }
.logos img{ -webkit-user-drag: none; }
.logo-chip{ flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; }
.logo-chip img{ height: 34px; width: auto; max-width: 170px; object-fit: contain; opacity: .9; transition: opacity .25s ease; }
.logo-chip.invert img{ filter: brightness(0) invert(1); }
.logo-chip:hover img{ opacity: 1; }

/* ============================================================
   Contact: eyes with the scatter button under them
   ============================================================ */
.contact-side{
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 30px; z-index: 2;
}
.contact-side .contact-eyes{ position: static; transform: none; }
.contact-side .scatter-row{ margin-top: 0; justify-content: center; }

@media (max-width: 900px){
  .contact-side{ position: static; transform: none; align-items: flex-start; margin: 36px 0 0; }
  .contact .contact-links{ margin-top: 8px; }
  .contact{ display: flex; flex-direction: column; align-items: flex-start; }
  .contact .caret{ display: none; }
  .contact-side{ order: 10; }
}
@media (max-width: 760px){
  .xp-inner{ min-width: 780px; }
  .xp-detail{ grid-template-columns: 1fr; margin: 8px 12px 0; }
  .xp-detail-media img{ max-width: 260px; }
  .xp-bar{ font-size: 9.5px; padding: 10px 12px; }
  .xp-scroll{ padding: 0 12px 6px; }
  .pol-stage{ width: min(300px, 80%); }
}
.xp-swipe{ display: none; margin: 6px 0 0; font: 11px/1 var(--mono); color: var(--muted); }
@media (max-width: 900px){ .xp-swipe{ display: block; } }
.notes-fly{ position: relative; z-index: 5; }
.notes-fly .note{ position: relative; }

/* "Tidy up" floats under the button so the button itself never moves. */
.contact-side .scatter-row{ position: relative; }
.contact-side .scatter-clear{
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 19px; padding: 6px 14px;
}
@media (max-width: 900px){
  .contact-side .scatter-clear{ left: 0; transform: none; }
}

/* Sticky notes: peel off a pad into a row (scroll-driven, see setupNotesFly). */
.notes-pad{ position: relative; z-index: 3; }
.notes-pad .note{
  position: relative; min-height: 186px; padding: 22px 16px 16px;
  transition: transform .12s linear, box-shadow .2s ease;
  will-change: transform;
}
.notes-pad .note.is-flying{ box-shadow: 0 34px 44px -18px rgba(0,0,0,.9); }
.notes-pad .note:hover{ --lift: -8px; }
.notes-pad .note b{ margin-bottom: 4px; }
.notes-pad .note strong{
  display: block; margin-bottom: 7px; color: #1d1712;
  font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1;
}
.notes-pad .note p{
  font-family: var(--body); font-weight: 500; font-size: 13px; line-height: 1.4; color: #2a211a;
}
@media (max-width: 760px){
  .notes-pad{ row-gap: 24px; }
  .notes-pad .note{ min-height: 0; }
  .notes-pad .note strong{ font-size: 24px; }
}

/* Vertical cuts: the 3D ring now runs on phones too (smaller cards). */
.reels:focus-visible{ outline: 2px solid var(--teal); outline-offset: -2px; }
@media (max-width: 860px){
  .reels{ height: 360px; }
  .reel{ width: 148px; left: -74px; top: -132px; border-radius: 10px; }
  .reel span{ font-size: 8.5px; padding: 4px 6px; }
}

/* ============================================================
   Tools: mixing desk
   ============================================================ */
.mixer{
  background: linear-gradient(180deg, #1e1a16 0%, #151210 100%);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04);
}
.mix-top{
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font: 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted);
}
.mix-brand{ display: inline-flex; align-items: center; gap: 9px; }
.mix-brand i{ width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.mix-legend{ display: inline-flex; gap: 8px; }
.mix-legend b{ font-weight: 400; font-size: 10px; padding: 4px 8px; border-radius: 999px; border: 1px solid; }
.mix-strips{ display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 16px 10px 8px; }
.strip{
  appearance: none; background: transparent; border: 0; color: var(--text); font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 10px 4px 14px; border-radius: 12px; cursor: pointer; position: relative;
  transition: background .25s ease, filter .25s ease;
}
.strip + .strip::before{ content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: rgba(244,239,230,.06); }
.strip:hover, .strip:focus-visible, .strip.is-active{ background: rgba(244,239,230,.045); }
.mix-strips:hover .strip:not(:hover):not(.is-active){ filter: brightness(.72); }
.strip:focus-visible{ outline: 2px solid var(--teal); outline-offset: -2px; }
.strip-ch{ font: 10px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.strip.is-active .strip-ch{ color: var(--orange); }
.strip-logo{
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .25s var(--ramp-soft), border-color .25s ease;
}
.strip-logo img{ width: 24px; height: 24px; object-fit: contain; }
.strip:hover .strip-logo, .strip.is-active .strip-logo{ transform: translateY(-2px); border-color: var(--orange-dim); }
.strip-knob{
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4d453e, #1b1714 72%);
  border: 1px solid #3a332c; box-shadow: 0 3px 6px rgba(0,0,0,.55);
}
.strip-knob i{
  position: absolute; left: 50%; top: 3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px;
  background: var(--orange); transform-origin: 50% 12px; transform: rotate(-135deg);
  transition: transform 1.1s cubic-bezier(.2,.9,.2,1.05) calc(var(--i) * 70ms);
}
.mixer.is-live .strip-knob i{ transform: rotate(calc(-135deg + var(--lvl) * 270deg)); }
.strip-body{ display: flex; gap: 10px; height: 188px; }
.strip-meter{
  position: relative; width: 9px; border-radius: 3px; background: rgba(244,239,230,.07);
  -webkit-mask: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 7px);
          mask: repeating-linear-gradient(to top, #000 0 5px, transparent 5px 7px);
}
.strip-meter::before{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--m, 0) * 100%);
  background: linear-gradient(to top, #2fbfa6 0, #2fbfa6 112px, #f4c542 150px, #ff5c4c 188px);
  background-size: 100% 188px; background-position: 0 100%;
}
.strip-fader{ position: relative; width: 28px; }
.strip-fader::before{
  content: ""; position: absolute; inset: 6px 0;
  background: repeating-linear-gradient(to top, rgba(244,239,230,.16) 0 1px, transparent 1px 17.6px);
  -webkit-mask: linear-gradient(90deg, #000 0 6px, transparent 6px 22px, #000 22px);
          mask: linear-gradient(90deg, #000 0 6px, transparent 6px 22px, #000 22px);
}
.strip-track{ position: absolute; left: 50%; top: 6px; bottom: 6px; width: 4px; margin-left: -2px; border-radius: 2px; background: #0a0908; box-shadow: inset 0 1px 2px #000; }
.strip-cap{
  position: absolute; left: 50%; width: 28px; height: 16px; margin-left: -14px; bottom: 0;
  border-radius: 3px; background: linear-gradient(180deg, #ece5d9, #b4a998);
  box-shadow: 0 5px 9px rgba(0,0,0,.6), inset 0 -2px 0 rgba(0,0,0,.25);
  transition: bottom 1.1s cubic-bezier(.2,.9,.2,1.08) calc(var(--i) * 70ms);
}
.strip-cap::after{ content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 2px; background: var(--orange); border-radius: 1px; }
.mixer.is-live .strip-cap{ bottom: calc(var(--lvl) * (100% - 16px)); }
.strip-name{ font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; min-height: 30px; display: flex; align-items: center; }
.strip-level, .mix-legend b, .mix-info-level{ font: 10px/1 var(--mono); padding: 4px 8px; border-radius: 999px; border: 1px solid; }
.lv-advanced{ color: var(--teal); border-color: rgba(47,191,166,.45); background: rgba(47,191,166,.08); }
.lv-intermediate{ color: var(--orange); border-color: rgba(255,138,76,.45); background: rgba(255,138,76,.08); }
.lv-basic{ color: var(--muted); border-color: var(--line); }
.mix-info{
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center;
  margin: 6px 18px 0; padding: 16px 18px; min-height: 112px;
  background: #1b1714; border: 1px solid var(--line); border-radius: 14px;
}
.mix-info-logo{ width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.mix-info-logo img{ width: 36px; height: 36px; object-fit: contain; }
.mix-info.is-swapping .mix-info-copy, .mix-info.is-swapping .mix-info-logo{ animation: xpSwap .35s cubic-bezier(.2,.8,.2,1); }
.mix-info-name{ margin: 8px 0 4px; font-size: 22px; }
.mix-info-use{ margin: 0 0 10px; color: rgba(244,239,230,.78); font-size: 15px; max-width: 70ch; }
.mix-info-tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.mix-info-tags span{ font: 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }

@media (max-width: 860px){
  .mix-strips{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 8px 8px; scrollbar-width: none; }
  .mix-strips::-webkit-scrollbar{ display: none; }
  .strip{ flex: 0 0 96px; scroll-snap-align: start; }
  .strip-body{ height: 150px; }
  .strip-meter::before{ background-image: linear-gradient(to top, #2fbfa6 0, #2fbfa6 90px, #f4c542 120px, #ff5c4c 150px); background-size: 100% 150px; background-position: 0 100%; }
  .strip-fader::before{ background: repeating-linear-gradient(to top, rgba(244,239,230,.16) 0 1px, transparent 1px 13.8px); }
  .mix-legend{ display: none; }
  .mix-info{ grid-template-columns: 44px 1fr; margin: 6px 12px 0; gap: 14px; align-items: start; padding: 16px 14px; }
  .mix-info-name{ font-size: 20px; }
  .mix-info-use{ font-size: 14px; }
  .mix-info-logo{ width: 44px; height: 44px; border-radius: 12px; }
  .mix-info-logo img{ width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce){
  .strip-cap, .strip-knob i{ transition: none; }
}

/* Services: one line on what you actually get */
.do-item .do-desc{ display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); transform: translateZ(14px); }
.do-item p{ margin-top: 14px; }

/* Contact: copy button + live clock */
.copy-email{
  margin-left: 12px; vertical-align: 6px;
  font: 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.copy-email:hover{ color: var(--text); border-color: var(--teal); }
.copy-email.is-done{ color: #1a1310; background: var(--teal); border-color: var(--teal); }
.contact-clock{ margin: -14px 0 26px; font: 12px/1.5 var(--mono); color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.contact-clock b{ color: var(--text); font-weight: 700; }
.clock-dot{ width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px #3ddc84; }
.clock-tz{ opacity: .8; }
.clock-you:not(:empty)::before{ content: "·"; margin-right: 8px; }

/* Footer: rewind to the top */
.rewind{ display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color .2s ease; }
.rewind:hover{ color: var(--orange); }
.rewind-icon{ position: relative; width: 16px; height: 10px; }
.rewind-icon::before, .rewind-icon::after{
  content: ""; position: absolute; top: 0; border-right: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.rewind-icon::before{ left: 0; } .rewind-icon::after{ left: 7px; }
.rewind:hover .rewind-icon{ animation: rewindNudge .6s ease-in-out infinite; }
@keyframes rewindNudge{ 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(-4px); } }
@media (max-width: 900px){
  .copy-email{ margin: -18px 0 22px; vertical-align: 0; }
  .contact-clock{ margin-top: 0; }
}
@media (max-width: 560px){
  .clock-you:not(:empty){ flex-basis: 100%; padding-left: 15px; margin-top: -4px; }
  .clock-you:not(:empty)::before{ content: none; }
}

/* Chess: brilliant move badge (chess.com style) */
.cp-brill{
  position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 7px;
  transform-origin: 14px 50%; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity;
}
.cp-brill b{
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #26c2a3; color: #fff; font: 800 17px/1 var(--body); letter-spacing: -1.5px; padding-right: 1.5px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 0 #148a73, 0 10px 18px rgba(0,0,0,.45);
}
.cp-brill span{
  font: 700 11px/1 var(--mono); letter-spacing: .04em; color: #26c2a3; white-space: nowrap;
  background: rgba(16,14,12,.88); border: 1px solid rgba(38,194,163,.5); border-radius: 999px; padding: 6px 9px;
}
.cp-brill.is-on b{ animation: brillGlow 1.4s ease-in-out infinite; }
@keyframes brillGlow{ 0%,100%{ box-shadow: 0 4px 0 #148a73, 0 10px 18px rgba(0,0,0,.45), 0 0 0 0 rgba(38,194,163,.6); } 50%{ box-shadow: 0 4px 0 #148a73, 0 10px 18px rgba(0,0,0,.45), 0 0 0 9px rgba(38,194,163,0); } }
@media (max-width: 600px){
  .cp-brill b{ width: 24px; height: 24px; font-size: 12px; }
  .cp-brill span{ font-size: 9.5px; padding: 5px 7px; }
}

/* ============================================================
   Drag anything (see Drag in v2.js)
   ============================================================ */
html, body{ overflow-x: clip; }
.about2{ overflow: visible; }
.drag-host{ position: relative; }
.is-draggable{ cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.is-draggable img{ -webkit-user-drag: none; pointer-events: none; }
html.is-dragging, html.is-dragging *{ cursor: grabbing !important; -webkit-user-select: none !important; user-select: none !important; }
.is-returning{ transition: translate .65s cubic-bezier(.3,1.3,.5,1) !important; }

/* Paper grain shared by the notes and polaroids */
.ipol::after, .snote::after, .dframe::after{
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .26  0 0 0 0 .2  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity: .45;
}

/* ---------- About me: interest polaroids ---------- */
.ipols-wrap{ margin-top: 36px; }
.ipols-title{ margin: 0 0 16px; color: var(--orange); font-size: 32px; line-height: 1; transform: rotate(-1.5deg); transform-origin: left; }
.ipols-title span{ margin-left: 10px; color: var(--muted); font-size: 19px; }
.ipols{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; max-width: 540px; position: relative; z-index: 3; }
.ipol{
  position: relative; margin: 0; padding: 8px 8px 0; border-radius: 3px; background: #f7f2e8;
  box-shadow: 0 16px 26px -14px rgba(0,0,0,.85), 0 2px 4px rgba(0,0,0,.25);
  translate: var(--dx, 0px) var(--dy, 0px);
  rotate: calc(var(--r, 0deg) + var(--tilt, 0deg));
  opacity: 0; transform: translateY(-70px) rotate(14deg) scale(1.12);
  transition: opacity .35s ease calc(var(--i) * 90ms), transform .75s cubic-bezier(.2,1.25,.35,1) calc(var(--i) * 90ms), scale .2s ease, box-shadow .2s ease, rotate .25s ease;
}
.ipols.is-in .ipol{ opacity: 1; transform: none; }
.ipol:hover{ scale: 1.04; }
.ipol.is-grabbed, .snote.is-grabbed, .desk-item.is-grabbed{ scale: 1.07; box-shadow: 0 34px 46px -18px rgba(0,0,0,.9), 0 4px 8px rgba(0,0,0,.3); transition: scale .15s ease, box-shadow .15s ease; }
.ipol-pic{ aspect-ratio: 1; overflow: hidden; border-radius: 1px; }
.ipol-pic svg{ display: block; width: 100%; height: 100%; }
.ipic-edit{ background: #1f3d43; }
.ipic-game{ background: #ff8a4c; }
.ipic-chess{ background: #f6efe4; }
.ipic-br{ background: linear-gradient(180deg, #6fbfd0, #cdeae2); }
.ipic-film{ background: #2a2320; }
.ipic-poem{ background: #f6dc78; }
.ipol figcaption{ padding: 7px 2px 9px; text-align: center; color: #1d1712; font-size: 21px; line-height: 1; letter-spacing: -.01em; }

/* ---------- Stat sticky notes ---------- */
.about2 .snotes{ margin-top: 76px; }
.snotes{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: start; position: relative; z-index: 3; }
.snote{
  position: relative; display: block; padding: 24px 18px 18px; color: #1d1712; border-radius: 2px;
  box-shadow: 0 18px 28px -16px rgba(0,0,0,.85), 0 2px 4px rgba(0,0,0,.2);
  translate: var(--dx, 0px) var(--dy, 0px);
  rotate: calc(var(--r, 0deg) + var(--tilt, 0deg));
}
.snotes .snote{
  margin-top: var(--y, 0px); min-height: 206px;
  opacity: 0; transform: translateY(-60px) rotate(-10deg) scale(1.1);
  transition: opacity .35s ease calc(var(--i) * 100ms), transform .75s cubic-bezier(.2,1.25,.35,1) calc(var(--i) * 100ms), scale .2s ease, box-shadow .2s ease, rotate .25s ease;
}
.snotes.is-in .snote{ opacity: 1; transform: none; }
.snote-tag{ display: block; font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(29,23,18,.6); }
.snote-num{ display: block; margin: 10px 0 8px; font-size: 60px; line-height: .9; font-weight: 700; color: #1d1712; }
.snote-label{ display: block; font: 600 14px/1.3 var(--body); }
.snote-meta{ display: block; margin-top: 10px; font: 10.5px/1.4 var(--mono); color: rgba(29,23,18,.62); }
.snote .note-tape{ position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: rgba(255,255,255,.42); box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: rotate(-3deg); z-index: 2; }

/* lined notebook page, torn off a spiral (holes drawn on top) */
.snote-lined{
  padding-left: 38px; padding-top: 28px;
  background:
    linear-gradient(90deg, transparent 27px, rgba(214,80,70,.6) 27px 28.5px, transparent 28.5px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(70,110,190,.38) 25px 26.5px) 0 16px,
    #efe6d2;
}
.snote-lined::before{
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 7px; z-index: 1;
  background: radial-gradient(circle 5.5px at 9px 0, #15110f 96%, transparent 100%) 0 0 / 18px 100% repeat-x;
}
/* grid paper with a torn bottom */
.snote-grid{
  background:
    linear-gradient(rgba(40,40,40,.16) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(40,40,40,.16) 1px, transparent 1px) 0 0 / 14px 14px,
    #dedad0;
  border-radius: 2px 2px 0 0;
}
.snote-grid::before{
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: #dedad0;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 94% 85%, 88% 35%, 81% 100%, 74% 45%, 67% 95%, 59% 30%, 52% 80%, 45% 40%, 37% 100%, 30% 45%, 22% 90%, 15% 35%, 8% 85%, 0 50%);
}
/* brown kraft paper with a clip */
.snote-kraft{ background: #ccb092; border-radius: 3px 7px 2px 9px / 5px 2px 7px 3px; }
.snote-clip{ position: absolute; top: -20px; left: 20px; width: 18px; height: 48px; z-index: 2; }
.snote-yellow{ background: #f6dc78; }
.snote-teal{ background: #9fe6d6; border-radius: 2px 2px 20px 2px; }
.snote-cream{ background: #f3ecdc; }

@media (max-width: 860px){
  .snotes{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .snotes .snote{ min-height: 0; margin-top: calc(var(--y, 0px) * .4); }
  .snotes .snote:last-child{ grid-column: 1 / -1; justify-self: center; width: 62%; }
  .snote-num{ font-size: 48px; }
  .snote{ padding: 22px 14px 16px; }
  .snote-lined{ padding-left: 34px; }
}
@media (max-width: 560px){
  .ipols{ gap: 16px 12px; }
  .ipol{ padding: 5px 5px 0; }
  .ipol figcaption{ font-size: 15px; padding: 6px 1px 7px; }
  .ipols-title{ font-size: 28px; }
  .ipols-title span{ display: block; margin: 6px 0 0; font-size: 16px; }
}

/* ---------- Camera: click to snap ---------- */
.cam{ cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cam:focus-visible{ outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 24px; }
.cam.is-snap .cam-svg{ animation: camSnap .34s cubic-bezier(.3,1.4,.5,1); }
@keyframes camSnap{ 0%{ transform: scale(1); } 30%{ transform: scale(.965) translateY(3px); } 100%{ transform: scale(1); } }
.cam-hint{
  position: absolute; right: -6px; top: -26px; color: var(--orange); font-size: 21px; white-space: nowrap;
  transform: rotate(5deg); opacity: 0; transition: opacity .5s ease .6s; pointer-events: none;
}
.pol-wrap.is-done .cam-hint{ opacity: 1; }
.polaroid.is-grabbed{ scale: 1.05; }
.polaroid.is-grabbed .pol-card{ box-shadow: 0 40px 50px -20px rgba(0,0,0,.9); }

/* ---------- What I do: the desk ---------- */
.desk-top{ display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; min-height: 40px; }
.desk-hint{ display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 23px; }
.desk-hint .hint-arrow{ position: static; width: 26px; transform: rotate(90deg) scaleX(-1); opacity: .7; }
.desk-reset{
  font-family: var(--hand); font-size: 20px; color: var(--text); cursor: pointer;
  background: rgba(47,191,166,.12); border: 1.5px solid rgba(47,191,166,.5); border-radius: 999px; padding: 6px 18px 8px;
  transition: background .2s ease, transform .2s ease;
}
.desk-reset:hover{ background: rgba(47,191,166,.22); transform: rotate(-2deg); }
.desk{
  position: relative; z-index: 3; min-height: 420px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(rgba(244,239,230,.08) 1.1px, transparent 1.5px) 0 0 / 22px 22px, #181411;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5);
}
.desk-item{
  position: absolute; left: 0; top: 0; margin: 0;
  translate: var(--dx, 0px) var(--dy, 0px);
  rotate: calc(var(--r, 0deg) + var(--tilt, 0deg));
  opacity: 0; transform: translateY(-70px) rotate(10deg) scale(1.1);
  transition: opacity .35s ease calc(var(--d, 0) * 70ms), transform .75s cubic-bezier(.2,1.25,.35,1) calc(var(--d, 0) * 70ms), scale .2s ease, box-shadow .2s ease, rotate .25s ease;
}
.desk.is-in .desk-item{ opacity: 1; transform: none; }
.dnote{ z-index: 2; padding: 22px 18px 18px; }
.dnote.snote-lined{ padding-left: 38px; }
.dnote-title{ margin: 9px 0 8px; font: 700 16.5px/1.25 var(--body); color: #1d1712; letter-spacing: -.01em; }
.dnote-desc{ margin: 0; font: 500 13px/1.45 var(--body); color: #3a2f26; }
.dframe{ z-index: 1; padding: 8px 8px 0; border-radius: 4px; background: #fbf8f1; box-shadow: 0 16px 28px -14px rgba(0,0,0,.9), 0 2px 4px rgba(0,0,0,.3); }
.dframe img{ display: block; width: 100%; height: auto; border-radius: 2px; }
.dframe figcaption{ padding: 6px 2px 8px; text-align: center; color: #1d1712; font-size: 18px; line-height: 1.05; }
.dframe-ph{ aspect-ratio: .8; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: 2px; background: repeating-linear-gradient(45deg, #2a2420 0 10px, #231e1a 10px 20px); }
.dframe-ph img{ width: 46%; opacity: .85; }
.dframe-ph span{ font: 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #cfc6b8; }
@media (max-width: 620px){
  .desk{ border-radius: 16px; }
  .dnote{ padding: 18px 12px 14px; }
  .dnote.snote-lined{ padding-left: 32px; }
  .dnote-title{ font-size: 14px; }
  .dnote-desc{ font-size: 12px; }
  .dframe figcaption{ font-size: 15px; }
  .desk-hint{ font-size: 19px; }
}

/* ---------- Tools: faders you can push ---------- */
.strip-fader{ cursor: ns-resize; touch-action: none; }
.strip.is-holding .strip-cap, .strip.is-holding .strip-knob i{ transition: none; }
.strip.is-holding .strip-cap{ background: linear-gradient(180deg, #fff6e8, #d6c9b4); box-shadow: 0 0 0 3px rgba(255,138,76,.35), 0 6px 12px rgba(0,0,0,.6); }
.strip.is-snapping .strip-cap{ transition: bottom .65s cubic-bezier(.3,1.55,.5,1); }
.strip.is-snapping .strip-knob i{ transition: transform .65s cubic-bezier(.3,1.55,.5,1); }

/* ---------- Contact buttons: easier to spot ---------- */
.scatter-btn{ background: rgba(255,138,76,.13); border: 1.5px solid rgba(255,138,76,.55); }
.scatter-btn:hover{ background: rgba(255,138,76,.22); border-color: var(--orange); }
.scatter-clear{ color: var(--text); background: rgba(47,191,166,.12); border: 1.5px solid rgba(47,191,166,.5); }
.scatter-clear:hover{ background: rgba(47,191,166,.22); border-color: var(--teal); }

/* ---------- Click sparks ---------- */
.spark{ position: fixed; width: 100px; height: 100px; margin: -50px 0 0 -50px; pointer-events: none; z-index: 9999; overflow: visible; }
.spark path{ fill: none; stroke-width: 3.4; stroke-linecap: round; }

/* ============================================================
   Stats on a strip of film, backlit
   ============================================================ */
.about2 .filmstrip{ margin: 84px -40px 0; }
.filmstrip{ position: relative; z-index: 2; }
.film-roll{
  position: relative; background: #0b0908; padding: 0 18px; border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.04);
  transform: rotate(-1deg); will-change: transform;
}
/* faint grain + a couple of scratches over the whole strip */
.film-roll::after{
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .5; mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent 23.4%, rgba(255,240,220,.06) 23.5%, transparent 23.7%),
    linear-gradient(90deg, transparent 71.2%, rgba(255,240,220,.05) 71.3%, transparent 71.4%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .92  0 0 0 0 .8  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.film-edge{
  position: relative; height: 34px; display: flex; align-items: center; gap: 22px; overflow: hidden; white-space: nowrap;
  font: 700 9px/1 var(--mono); letter-spacing: .14em; color: rgba(255,170,90,.55);
}
.film-edge span{ flex: none; }
/* sprocket holes, lit from behind */
.film-edge::before{
  content: ""; position: absolute; left: -18px; right: -18px; top: 50%; height: 14px; margin-top: -7px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='14'><rect x='8' y='0.5' width='14' height='13' rx='3' fill='%23efe4cf'/></svg>") 0 0 / 30px 14px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255,214,160,.35));
}
.film-edge span{ position: relative; top: 12px; }
.film-edge-b span{ top: -12px; }
.film-frames{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.film-frame{
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 210px; padding: 22px 18px 18px; border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(255,196,130,.20), rgba(255,160,90,.05) 55%, transparent 75%),
    linear-gradient(180deg, #2b2119, #1d1612);
  box-shadow: inset 0 0 40px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,220,180,.08);
}
.film-no{ position: absolute; right: 12px; top: 10px; font: 700 9px/1 var(--mono); letter-spacing: .12em; color: rgba(255,170,90,.6); }
.film-tag{ font: 700 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,230,.62); }
.film-num{
  display: block; margin: 14px 0 10px; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: .95; letter-spacing: -.02em;
  color: var(--orange); text-shadow: 0 0 22px rgba(255,138,76,.35);
}
.film-frame:nth-child(even) .film-num{ color: var(--teal); text-shadow: 0 0 22px rgba(47,191,166,.35); }
.film-label{ font: 600 14.5px/1.3 var(--body); color: #f4efe6; }
.film-meta{ margin-top: auto; padding-top: 12px; font: 10.5px/1.4 var(--mono); color: rgba(244,239,230,.55); }
@media (max-width: 1180px){ .about2 .filmstrip{ margin-left: 0; margin-right: 0; } }
@media (max-width: 860px){
  .about2 .filmstrip{ margin: 64px -20px 0; }
  .film-roll{ transform: none; border-radius: 0; padding: 0; }
  .film-frames{ display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding: 0 20px; scrollbar-width: none; }
  .film-frames::-webkit-scrollbar{ display: none; }
  .film-frame{ flex: 0 0 64%; scroll-snap-align: center; min-height: 190px; }
  .film-num{ font-size: 50px; }
  .film-edge{ padding: 0 20px; }
}

/* ============================================================
   Experience + Tools: details sit in a panel on the right
   ============================================================ */
@media (min-width: 1100px){
  .xp-tl{ display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "bar bar" "scroll side" "swipe side"; }
  .xp-bar{ grid-area: bar; }
  .xp-scroll{ grid-area: scroll; }
  .xp-swipe{ grid-area: swipe; }
  .xp-inner{ min-width: 0; }
  .xp-detail{
    grid-area: side; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    margin: 0; padding: 20px 20px 22px; min-height: 0; border: 0; border-left: 1px solid var(--line);
    border-radius: 0 0 18px 0; background: #191512; align-self: stretch;
  }
  .xp-detail::before{ content: "CLIP INFO"; font: 700 10px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
  .xp-detail-media img{ aspect-ratio: 16 / 10; }
  .xp-detail-title{ font-size: 22px; }
  .xp-detail-body{ font-size: 14px; }

  .mixer{ display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "top top" "strips side"; }
  .mix-top{ grid-area: top; }
  .mix-strips{ grid-area: strips; padding-bottom: 14px; }
  .mix-info{
    grid-area: side; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    margin: 0; padding: 22px 20px; min-height: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0 0 18px 0;
    background: #191512;
  }
  .mix-info::before{ content: "CHANNEL INFO"; font: 700 10px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
  .mix-info-name{ font-size: 24px; }
  .mix-info-use{ font-size: 14.5px; }
  .strip-name{ font-size: 12px; }
}


/* ---------- Side panels: prompt until the first hover ---------- */
.panel-empty{ display: none; }
.xp-detail.is-empty > :not(.panel-empty), .mix-info.is-empty > :not(.panel-empty){ display: none !important; }
.is-empty > .panel-empty{
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  flex: 1; width: 100%; min-height: 150px; padding: 18px; border: 1.5px dashed rgba(244,239,230,.14); border-radius: 12px;
  grid-column: 1 / -1;
}
.panel-empty-text{ margin: 0; max-width: 22ch; font-family: var(--hand); font-size: 22px; line-height: 1.15; color: var(--muted); }
.panel-empty-icon{ position: relative; width: 26px; height: 26px; }
.panel-empty-icon::before{
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a4c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 3l14 8-6 1.5L10 19z'/></svg>") center / contain no-repeat;
  animation: emptyNudge 1.6s ease-in-out infinite;
}
@keyframes emptyNudge{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-4px,-4px); } }

.xp-clip > *{ transform: translateX(var(--stick, 0px)); }

/* ============================================================
   Hero intro: logos spiral out, pour into the TV
   ============================================================ */
.hero2.is-intro .tv{ opacity: 0; animation: introFailsafe 0s linear 6s forwards; }
.hero2.is-intro .tv-caption{ visibility: hidden; animation: introFailsafeV 0s linear 6s forwards; }
@keyframes introFailsafe{ to{ opacity: 1; } }
@keyframes introFailsafeV{ to{ visibility: visible; } }
/* No fill-mode: once the fade-in finishes the caption releases back to normal
   styles so the hero-zoom can fade it out as the TV grows over it. */
.hero2.intro-done .tv-caption{ animation: introCaption .6s ease; }
@keyframes introCaption{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
.hero-orbit{ position: absolute; left: 50%; top: 45%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.orb{ position: absolute; left: 0; top: 0; width: 54px; height: 54px; opacity: 0; will-change: transform, opacity; }
.orb img{ display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)); }
@media (max-width: 600px){ .orb{ width: 38px; height: 38px; } }
.tv-power{
  position: absolute; inset: 0; z-index: 6; pointer-events: none; background: #fffaf0;
  animation: tvPower .6s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes tvPower{ 0%{ opacity: 1; transform: scale(1, .02); } 35%{ opacity: 1; transform: scale(1, 1); } 100%{ opacity: 0; transform: scale(1, 1); } }

/* ============================================================
   Pixel cat on the TV
   ============================================================ */
.kitty{
  position: absolute; left: 0; top: 0; z-index: 7; cursor: grab; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  opacity: 0; will-change: transform;
}
.kitty.is-here{ opacity: 1; }
.kitty.is-held{ cursor: grabbing; }
.kitty .pxs{ position: relative; display: block; image-rendering: pixelated; transform-origin: 50% 100%;
  transform: scaleX(var(--face, 1)) scale(var(--sx, 1), var(--sy, 1)); filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.kitty .pxs svg{ display: block; width: 100%; height: 100%; }
.kitty.is-held .pxs{ transform-origin: 50% 8%; transform: scaleX(var(--face, 1)) rotate(var(--swing, 0deg)); }
.kitty-say{
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 6px) scale(.6); opacity: 0;
  font: 700 12px/1 var(--mono); color: #1a120e; background: #f3eee6; padding: 6px 8px; white-space: nowrap;
  box-shadow: 0 0 0 2px #1a120e, 3px 3px 0 2px rgba(0,0,0,.35); transition: opacity .15s ease, transform .2s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.kitty-say::after{ content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: #1a120e; }
.kitty-say.is-on{ opacity: 1; transform: translate(-50%, 0) scale(1); }
.kitty-heart, .kitty-z{ position: absolute; top: 4px; pointer-events: none; font-style: normal; }
.kitty-heart{ color: #ff6b8a; font-size: 15px; animation: kittyFloat 1s ease-out forwards; text-shadow: 1px 1px 0 #1a120e; }
.kitty-z{ color: #cfe9ff; font: 700 13px/1 var(--mono); animation: kittyZ 1.6s ease-out forwards; }
@keyframes kittyFloat{ from{ opacity: 1; transform: translate(0, 0) scale(.7); } to{ opacity: 0; transform: translate(6px, -38px) scale(1.15); } }
@keyframes kittyZ{ from{ opacity: 0; transform: translate(0, 0); } 20%{ opacity: 1; } to{ opacity: 0; transform: translate(14px, -34px) scale(1.4); } }
.kitty .pxs[hidden]{ display: none; }

/* Plane band: night sky */
.sky-night{ background: radial-gradient(120% 90% at 70% 0%, #26306a 0%, #151b3d 45%, #0c1024 100%); }
.sky-night .sky-cloud{ background: rgba(150,170,235,.10); filter: blur(12px);
  box-shadow: 70px -16px 0 8px rgba(150,170,235,.08), -56px -6px 0 0 rgba(150,170,235,.07); }
.sky-star{ position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #f3eee6; opacity: .7;
  animation: starTwinkle 2.8s ease-in-out var(--d, 0s) infinite; }
.sky-star-big{ width: 3px; height: 3px; box-shadow: 0 0 6px rgba(255,255,255,.7); }
@keyframes starTwinkle{ 0%,100%{ opacity: .25; } 50%{ opacity: .95; } }
.sky-moon{ position: absolute; right: 9%; top: 14%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff8e6, #f1e3bf 60%, #d9c79a);
  box-shadow: 0 0 30px 8px rgba(255,240,200,.18), inset -8px -6px 0 rgba(0,0,0,.08); }
.sky-moon::after{ content: ""; position: absolute; left: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.07); box-shadow: 14px 8px 0 -1px rgba(0,0,0,.06); }
.xw-plane-scene .fs-frame{ box-shadow: 0 10px 24px rgba(0,0,0,.55); }

/* Platformer: score pop-ups */
.pf-pop{ position: absolute; left: 0; top: 0; z-index: 4; opacity: 0; white-space: nowrap; pointer-events: none;
  font: 700 12px/1 var(--mono); letter-spacing: .06em; color: #f4c542; text-shadow: 2px 2px 0 #1a120e, -1px -1px 0 #1a120e; }
@media (max-width: 760px){ .pf-pop{ font-size: 9px; } .sky-moon{ width: 32px; height: 32px; } }

/* Experience: timeline pins while the playhead sweeps */
.xp-pin.is-on > .xp-tl{ position: sticky; }

/* Work: playhead cursor */
#work.has-ph, #work.has-ph *{ cursor: none !important; }
.ph-cursor{ position: fixed; left: 0; top: 0; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.ph-cursor.is-on{ opacity: 1; }
.ph-head{ position: absolute; left: -7px; top: -24px; width: 14px; height: 12px; background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); filter: drop-shadow(0 0 6px rgba(255,138,76,.6)); }
.ph-line{ position: absolute; left: -1px; top: -13px; width: 2px; height: 40px; background: var(--orange); box-shadow: 0 0 8px rgba(255,138,76,.55); }
.ph-label{ position: absolute; left: 10px; top: -25px; white-space: nowrap; font: 700 10px/1 var(--mono); letter-spacing: .06em;
  color: #1a120e; background: var(--orange); padding: 3px 6px; border-radius: 3px; }
.ph-cursor[data-mode="open"] .ph-label{ background: var(--teal); }
.ph-cursor[data-mode="open"] .ph-head{ background: var(--teal); filter: drop-shadow(0 0 6px rgba(47,191,166,.6)); }
.ph-cursor[data-mode="open"] .ph-line{ background: var(--teal); box-shadow: 0 0 8px rgba(47,191,166,.55); }
.ph-cursor.is-down .ph-line{ height: 30px; }
/* Work: 3D tilt with a soft glare */
.wrow-media{ transform-style: preserve-3d; will-change: transform; }
.wrow-media::after{ content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(60% 50% at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.10), transparent 70%); }
.wrow:hover .wrow-media::after{ opacity: 1; }

/* ============================================================
   Loading sequence (classes set by an inline script, cleared by
   setupHeroIntro): logos -> TV -> top timeline -> hero text -> rest
   ============================================================ */
/* Nothing about the loader may change the layout: hiding overflow would take
   the scrollbar away and shift the whole page sideways. Scrolling instead ends
   the intro early (see setupHeroIntro). */
.hero-orbit.is-loader{ position: fixed; left: 50%; top: 50%; z-index: 9990; }
.scrubber{ transition: transform .6s cubic-bezier(.2,.8,.2,1); }
html.hide-bar .scrubber{ transform: translateY(-110%); }
html.hide-copy .hero-copy2{ visibility: hidden; }
html.hide-rest .hero-stage .nav, html.hide-rest .hero-stage .doodle, html.hide-rest .hero-scrollcue,
html.hide-rest .tv-caption, html.hide-rest .kitty{ opacity: 0 !important; }
.hero-stage .nav, .hero-scrollcue, .tv-caption{ transition: opacity .6s ease; }
.hero-stage .doodle{ transition: opacity .8s ease; }
/* Failsafe: if the script never runs, show the page anyway. */
html.is-loading .hero-copy2, html.hide-copy .hero-copy2{ animation: introFailsafeV 0s linear 8s forwards; }
html.hide-bar .scrubber{ animation: barFailsafe 0s linear 8s forwards; }
@keyframes barFailsafe{ to{ transform: none; } }

/* ============================================================
   Tools -> Contact: asteroid field
   ============================================================ */
.sp-bg{
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 10%, #1b1b3a 0%, #0f1026 40%, #07070f 100%);
}
.sp-neb{
  position: absolute; left: 55%; top: -30%; width: 60%; height: 160%; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,90,200,.28), rgba(47,191,166,.10) 45%, transparent 70%);
  filter: blur(26px);
}
.sp-stars{ position: absolute; inset: 0; }
.sp-stars b{ position: absolute; border-radius: 50%; background: #f3eee6; animation: starTwinkle 2.6s ease-in-out var(--d, 0s) infinite; }
.sp-s0 b{ width: 1px; height: 1px; opacity: .45; }
.sp-s1 b{ width: 2px; height: 2px; opacity: .7; }
.sp-s2 b{ width: 3px; height: 3px; box-shadow: 0 0 6px rgba(255,255,255,.6); }
.xw-space .pxs{ filter: none; }
.sp-ship{ filter: drop-shadow(0 0 10px rgba(47,191,166,.35)) !important; }
.sp-flame{
  position: absolute; left: 0; top: 0; border-radius: 50% 0 0 50%;
  background: linear-gradient(270deg, #f4c542, #f2622f 55%, rgba(242,98,47,0));
  filter: blur(.6px); will-change: transform;
}
.sp-shot{
  position: absolute; left: 0; top: 0; border-radius: 2px; background: #6fd3c1;
  box-shadow: 0 0 10px rgba(111,211,193,.95), 0 0 20px rgba(47,191,166,.6);
}
.sp-rock, .sp-chunk{ will-change: transform, opacity; }
.sp-boom{
  position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,250,235,.95) 0%, rgba(244,197,66,.6) 28%, rgba(242,98,47,.35) 52%, transparent 70%);
}
.sp-clear{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font: 700 15px/1 var(--mono); letter-spacing: .22em; color: #6fd3c1;
  text-shadow: 0 0 14px rgba(47,191,166,.7); opacity: 0; pointer-events: none;
}
@media (max-width: 760px){
  .sp-clear{ font-size: 11px; }
  .sp-neb{ filter: blur(18px); }
}

/* ============================================================
   Project page: engagement film showcase (projects/varad.html)
   ============================================================ */
.film-showcase{
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px; align-items: center; margin-top: 26px;
}
.fs-player{
  position: relative; border-radius: 16px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.fs-player video{ display: block; width: 100%; height: auto; }
.fs-side{ display: grid; gap: 18px; align-content: center; }
.fs-side .note{ width: 100%; max-width: 420px; }
@media (max-width: 760px){
  .film-showcase{ grid-template-columns: 1fr; gap: 22px; }
  .fs-player{ max-width: 340px; margin: 0 auto; }
  .fs-side{ grid-template-columns: 1fr 1fr; }
}

/* ---- v18: grey chess squares, scroll hint under the TV ---- */
.xwipe-chess .xw-tile.alt{ background: #4b4642; }
.tv-scrollhint{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.tv-scrollhint i{ font-style: normal; color: var(--teal); display: inline-block; animation: tvHintBob 1.6s ease-in-out infinite; }
@keyframes tvHintBob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce){ .tv-scrollhint i{ animation: none; } }

/* ---- v18: Experience, full width, track headers, no dragging ---- */
.xp-bleed{ width: 100%; max-width: 1720px; margin: 0 auto; padding: 0 clamp(14px, 2.4vw, 40px); box-sizing: border-box; }
.xp-tl{ --head: 270px; }
.xp-tl .xp-scroll{ overflow: hidden; padding: 0 22px 8px calc(var(--head) + 22px); }
.xp-tl .xp-inner{ min-width: 0; padding: 48px 0 36px; }
.xp-rows{ gap: 10px; }
.xp-row{ height: 52px; }
.xp-cap{
  position: absolute; top: 0; height: 100%;
  left: calc(-10px - var(--head)); width: calc(var(--head) - 8px);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 12px 0 18px; box-sizing: border-box; cursor: pointer;
  background: #1b1714; border: 1px solid var(--line); border-radius: 10px;
  opacity: .4; transition: opacity .35s ease, border-color .25s ease, background-color .25s ease;
  overflow: hidden;
}
.xp-cap.is-lit{ opacity: 1; }
.xp-cap i{ position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(244,239,230,.4); }
.xp-cap.is-o i{ background: var(--orange); }
.xp-cap.is-t i{ background: var(--teal); }
.xp-cap.is-key i{ background: #f4c542; }
.xp-cap.is-ghost{ background: transparent; border-style: dashed; border-color: rgba(47,191,166,.5); }
.xp-cap.is-ghost i{ display: none; }
.xp-cap.is-ghost b{ color: var(--teal); }
.xp-cap b{ font-size: 14px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.xp-cap:hover, .xp-cap.is-active{ border-color: rgba(244,239,230,.38); background-color: #221c18; }
.xp-cap.is-o.is-active{ border-color: rgba(255,138,76,.6); }
.xp-cap.is-t.is-active{ border-color: rgba(47,191,166,.6); }
.xp-rows:hover .xp-clip:not(:hover):not(.is-active){ filter: none; }
.xp-scroll{ cursor: default; -webkit-mask: none; mask: none; }
.xp-detail .panel-empty-text{ font-size: 14px; }

@media (min-width: 1100px){
  .xp-tl{ grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "bar bar" "scroll side"; }
}
@media (min-width: 761px) and (max-width: 1099px){
  .xp-tl{ --head: 200px; }
  .xp-detail{ margin: 4px 18px 18px; }
}

/* Phone: header text sits above each bar, the whole span fits the screen. */
@media (max-width: 760px){
  .xp-tl .xp-scroll{ padding: 0 14px 6px; }
  .xp-tl .xp-inner{ min-width: 0; padding: 40px 0 34px; }
  .xp-ruler span.odd{ display: none; }
  .xp-rows{ gap: 8px; }
  .xp-row{ height: 62px; }
  .xp-cap{ left: 0; width: 100%; height: 34px; padding: 0 0 0 12px; background: transparent; border: 0; border-radius: 0; gap: 3px; z-index: 3; }
  .xp-cap i{ top: 3px; bottom: 3px; width: 3px; border-radius: 2px; }
  .xp-cap b{ font-size: 13.5px; }
  .xp-cap:hover, .xp-cap.is-active{ background: transparent; }
  .xp-cap.is-ghost{ border: 0; }
  .xp-clip{ top: 38px; height: 22px; min-width: 6px; padding: 0; border-radius: 6px; }
  .xp-clip > *{ display: none !important; }
  .xp-clip.xp-key > .xp-diamond{ display: block !important; width: 12px; height: 12px; }
  .xp-clip.has-thumb{ background-image: none; }
  .xp-detail{ min-height: 360px; align-content: start; }
}

.xp-cap > span{ display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.xp-cap-top b{ flex: 1 1 auto; min-width: 0; }
.xp-cap-top em{ flex: 0 0 auto; font: 600 11.5px/1 var(--mono); font-style: normal; color: var(--orange); letter-spacing: .02em; }
.xp-cap.is-t .xp-cap-top em{ color: var(--teal); }
.xp-cap.is-key .xp-cap-top em{ color: #f4c542; }
.xp-cap.is-edu .xp-cap-top em, .xp-cap.is-ghost .xp-cap-top em{ color: var(--muted); }
.xp-cap-sub{ font-size: 12.5px; color: rgba(244,239,230,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; }
.xp-ghost b{ font-size: 12.5px; }
@media (min-width: 761px) and (max-width: 1099px){ .xp-tl{ --head: 240px; } }
@media (max-width: 760px){
  .xp-cap-top em{ font-size: 11px; }
  .xp-cap-sub{ font-size: 12px; }
}
@media (max-width: 760px){
  .xp-cap-top em, .xp-cap-top b{ background: #15120f; box-shadow: 0 0 0 4px #15120f; border-radius: 2px; }
  .xp-cap-top b{ flex: 0 1 auto; }
  .xp-cap-top{ justify-content: space-between; }
}

/* ---- v19: tool logos around the What I Do board ---- */
.desk-zone{ position: relative; }
.desk-logos{ display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: 26px; }
.dlogo{
  --s: 46px; position: relative; width: var(--s); height: var(--s); flex: 0 0 auto;
  translate: var(--mx, 0px) var(--my, 0px); transition: translate .45s cubic-bezier(.2,.9,.3,1.2);
  outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dlogo-in{
  display: block; width: 100%; height: 100%;
  opacity: 0; transform: translateY(18px) scale(.4) rotate(-25deg);
  transition: opacity .4s ease calc(var(--i) * 55ms), transform .7s cubic-bezier(.2,1.4,.35,1) calc(var(--i) * 55ms), filter .25s ease;
}
.desk-logos.is-in .dlogo-in{ opacity: 1; transform: none; }
.dlogo-in img{
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.65));
  animation: dlFloat calc(4.2s + var(--i) * .27s) ease-in-out calc(var(--i) * -.6s) infinite;
  transition: transform .35s cubic-bezier(.2,1.4,.35,1), filter .3s ease;
}
@keyframes dlFloat{
  0%,100%{ transform: translateY(0) rotate(-4deg); }
  50%{ transform: translateY(-7px) rotate(4deg); }
}
.dlogo:hover .dlogo-in img, .dlogo:focus-visible .dlogo-in img, .dlogo.is-hot .dlogo-in img{
  animation-play-state: paused; transform: scale(1.32) rotate(0deg) !important;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(255,138,76,.45));
}
.desk-logos.is-ring:hover .dlogo:not(:hover) .dlogo-in{ filter: saturate(.6) brightness(.75); }
.dlogo.is-pop .dlogo-in{ animation: dlPop .6s cubic-bezier(.2,1.3,.35,1); }
@keyframes dlPop{ 0%{ transform: rotate(0) scale(1); } 45%{ transform: rotate(200deg) scale(.75); } 100%{ transform: rotate(360deg) scale(1); } }
.dlogo b{
  position: absolute; left: 50%; top: calc(100% + 12px); transform: translate(-50%, -4px);
  font: 600 11px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; color: #1a1310;
  background: var(--orange); padding: 5px 7px; border-radius: 5px; pointer-events: none;
  opacity: 0; transition: opacity .2s ease, transform .25s ease; z-index: 6;
}
.dlogo b::before{ content: ""; position: absolute; left: 50%; top: -4px; margin-left: -4px; border: 4px solid transparent; border-top: 0; border-bottom-color: var(--orange); }
.dlogo:hover b, .dlogo:focus-visible b, .dlogo.is-hot b{ opacity: 1; transform: translate(-50%, 0); }

/* Wide screens: the logos float in the space either side of the board. */
.desk-logos.is-ring{ position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; z-index: 2; }
.desk-logos.is-ring .dlogo{ --s: 52px; position: absolute; top: var(--y); pointer-events: auto; }
.desk-logos.is-ring .dl-l{ right: calc(100% + var(--x)); }
.desk-logos.is-ring .dl-r{ left: calc(100% + var(--x)); }

@media (max-width: 620px){
  .desk-logos{ gap: 12px; }
  .dlogo{ --s: 38px; }
}
@media (prefers-reduced-motion: reduce){
  .dlogo-in img{ animation: none; }
  .dlogo-in{ transition: none; }
}

/* ---- v20: hand-drawn doodles that draw themselves ---- */
.hd{
  position: absolute; left: var(--x); top: var(--y); width: var(--w, 90px); aspect-ratio: var(--ar, 1);
  pointer-events: none; z-index: 0; opacity: .78;
}
.hd > img, .hd > canvas{ position: absolute; inset: 0; width: 100%; height: 100%; rotate: var(--r, 0deg); }
.hd > img{ opacity: 0; transition: opacity .45s ease; }
.hd.is-done > img{ opacity: 1; animation: hdBob 7s ease-in-out infinite; }
.hd:nth-of-type(2n).is-done > img{ animation-duration: 9s; animation-delay: -3s; }
.hd > canvas{ transition: opacity .45s ease; }
.hd.is-done > canvas{ opacity: 0; }
.hd > .hd-src{ position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
@keyframes hdBob{ 0%,100%{ transform: translateY(0) rotate(0deg); } 50%{ transform: translateY(-7px) rotate(3deg); } }
html.hide-rest .hero-stage .hd{ opacity: 0 !important; }
.hero-stage .hd{ transition: opacity .8s ease; }
@media (max-width: 860px){
  .hd{ opacity: .42; width: calc(var(--w, 90px) * .62); }
  .hd:not(.hd-m){ display: none; }
}
@media (prefers-reduced-motion: reduce){ .hd.is-done > img{ animation: none; } }
@media (max-width: 860px){ .hd.hd-m{ left: auto; right: 3%; } }
/* v21: doodles placed in the gaps of a layout only show where that layout exists */
@media (max-width: 1239px){ .hd.hd-wide{ display: none; } }
.clients2{ position: relative; }
.hd.hd-ele{ z-index: 2; opacity: .85; }
@media (max-width: 860px){ .hd.hd-ele{ left: 18px; right: auto; top: -4px; width: 96px; opacity: .6; } }
.reels-head, .archive-grid{ position: relative; }
.hd.hd-off{ visibility: hidden; }
@media (min-width: 861px) and (max-width: 1399px){ .hd{ width: calc(var(--w, 90px) * .78); } }

/* ---- v23: About me mini games ---- */
.ipol[data-game]{ cursor: pointer; }
.ipol-play{
  position: absolute; top: -9px; right: -8px; z-index: 3;
  font: 700 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: #10201c; background: var(--teal); padding: 5px 7px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.7); rotate: 6deg; pointer-events: none;
  animation: ipolPlay 2.4s ease-in-out infinite;
}
@keyframes ipolPlay{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.08); } }
.ipol[data-game]:hover .ipol-play, .ipol[data-game]:focus-visible .ipol-play{ background: var(--orange); }
.ipol.is-inserting{ transition: scale .3s ease, opacity .3s ease; scale: .25; opacity: 0; }

.pc{ position: relative; width: min(430px, 100%); margin: 34px auto 0; display: flex; flex-direction: column; align-items: center; }
.pc-body{
  position: relative; width: 100%; padding: 18px 18px 0; box-sizing: border-box;
  background: linear-gradient(#f6efe4, #ddd2c1); border: 3px solid #1d1916; border-radius: 22px;
  box-shadow: 0 30px 50px -28px rgba(0,0,0,.9), inset 0 -6px 0 rgba(0,0,0,.08);
  transition: box-shadow .25s ease, transform .25s ease;
}
.pc-screen{
  position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; outline: none;
  background: #0d0b0a; border: 3px solid #1d1916; border-radius: 14px;
  box-shadow: inset 0 0 0 6px #2a2420, inset 0 0 40px rgba(0,0,0,.9);
}
.pc-screen::after{
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 11px;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
              radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.07), transparent 60%);
}
.pc-screen:focus-visible{ box-shadow: inset 0 0 0 6px #2a2420, 0 0 0 3px var(--teal); }
.pc-host{ position: absolute; inset: 9px; }
.pc-host .gm-canvas{ display: block; border-radius: 6px; touch-action: none; }
.pc-idle{
  position: absolute; inset: 9px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  font-family: var(--mono); color: var(--text); text-align: center; padding: 10px;
}
.pc-os{ margin: 0; font-size: 11px; letter-spacing: .1em; color: var(--teal); }
.pc-os span{ color: var(--muted); }
.pc-blink{ margin: 0; font-size: 17px; letter-spacing: .08em; }
.pc-blink i{ font-style: normal; animation: pcBlink 1s steps(1) infinite; color: var(--orange); }
@keyframes pcBlink{ 50%{ opacity: 0; } }
.pc-menu{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.pc-menu button{
  font: 700 10.5px/1 var(--mono); letter-spacing: .04em; color: var(--text); background: rgba(244,239,230,.06);
  border: 1px solid rgba(244,239,230,.25); border-radius: 6px; padding: 8px 10px; cursor: pointer;
}
.pc-menu button:hover, .pc-menu button:focus-visible{ border-color: var(--orange); color: var(--orange); outline: none; }
.pc-note{ margin: 4px 0 0; font-size: 11px; color: var(--orange); max-width: 30ch; line-height: 1.5; }
.pc-chin{ display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 6px; }
.pc-brand{ font: 700 10px/1 var(--mono); letter-spacing: .14em; color: #8a7f72; }
.pc-slot{ flex: 1; height: 8px; border-radius: 4px; background: #1d1916; box-shadow: inset 0 2px 2px rgba(0,0,0,.6); transition: box-shadow .25s ease, background .25s ease; }
.pc-eject{ font: 700 10px/1 var(--mono); color: #1d1916; background: #ece3d4; border: 2px solid #1d1916; border-radius: 6px; padding: 5px 8px; cursor: pointer; }
.pc-eject:hover{ background: var(--orange); }
.pc-led{ width: 9px; height: 9px; border-radius: 50%; background: #5a514a; box-shadow: inset 0 1px 1px rgba(0,0,0,.4); }
.pc.is-on .pc-led{ background: #3cff8a; box-shadow: 0 0 8px #3cff8a; }
.pc-neck{ width: 78px; height: 22px; background: linear-gradient(#ddd2c1, #c9bda9); border: 3px solid #1d1916; border-top: 0; }
.pc-foot{ width: 190px; height: 14px; background: linear-gradient(#e8dfd0, #c9bda9); border: 3px solid #1d1916; border-radius: 8px 8px 12px 12px; }
.pc-hint{ position: absolute; right: -14px; top: -26px; color: var(--muted); font-size: 20px; rotate: 5deg; transition: opacity .3s ease; }
.pc.is-on .pc-hint{ opacity: 0; }
.pc.is-target .pc-body{ transform: translateY(-4px) scale(1.02); box-shadow: 0 30px 50px -28px rgba(0,0,0,.9), 0 0 0 4px var(--teal), 0 0 40px rgba(47,191,166,.45); }
.pc.is-target .pc-slot{ background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.pc.is-booting .pc-host{ animation: pcBoot .6s ease-out; }
@keyframes pcBoot{ 0%{ clip-path: inset(49% 0 49% 0); filter: brightness(3); } 60%{ clip-path: inset(0 0 0 0); filter: brightness(1.6); } 100%{ clip-path: inset(0); filter: none; } }
@media (max-width: 999px){ .pc{ display: none; } }

/* The game window (clicks, phones) */
.gm-modal{ position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; background: rgba(10,8,7,.72); backdrop-filter: blur(4px); padding: 16px; }
.gm-modal[hidden]{ display: none; }
html.gm-open{ overflow: hidden; }
.gm-win{
  width: min(560px, 100%); background: #1b1714; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; outline: none;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.95); animation: gmIn .35s cubic-bezier(.2,1.2,.35,1);
}
@keyframes gmIn{ from{ transform: translateY(20px) scale(.94); opacity: 0; } }
.gm-bar{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 11px/1 var(--mono); color: var(--muted); }
.gm-dots{ display: inline-flex; gap: 6px; }
.gm-dots i{ width: 9px; height: 9px; border-radius: 50%; background: #ff5c5c; }
.gm-dots i:nth-child(2){ background: var(--yellow, #f4c542); }
.gm-dots i:nth-child(3){ background: var(--teal); }
.gm-title{ flex: 1; letter-spacing: .06em; }
.gm-close{ font: 13px/1 var(--mono); color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; }
.gm-close:hover{ border-color: var(--orange); color: var(--orange); }
.gm-host{ position: relative; height: min(70vh, 420px); background: #12100e; }
.gm-host .gm-canvas{ display: block; touch-action: none; }

/* Chess puzzles */
.gc{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px; box-sizing: border-box; font-family: var(--mono); color: var(--text); }
.gc.is-tall{ flex-direction: column-reverse; gap: 10px; }
.gc-side{ width: 112px; display: flex; flex-direction: column; gap: 7px; }
.gc.is-tall .gc-side{ width: 100%; align-items: center; text-align: center; }
.gc-kicker{ font-size: 9.5px; letter-spacing: .12em; color: var(--teal); }
.gc-name{ font: 700 15px/1.15 var(--body); }
.gc-msg{ font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.gc-msg.is-good{ color: var(--teal); }
.gc-msg.is-bad{ color: #ff8a7a; }
.gc-next{ align-self: flex-start; font: 700 10.5px/1 var(--mono); color: #10201c; background: var(--teal); border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.gc.is-tall .gc-next{ align-self: center; }
.gc-board{ display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border: 3px solid #1d1916; border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
.gc-sq{ position: relative; border: 0; padding: 0; margin: 0; background: #efe6d6; cursor: pointer; display: grid; place-items: center; }
.gc-sq.is-dark{ background: #4b4642; }
.gc-sq.is-sel{ box-shadow: inset 0 0 0 3px var(--teal); }
.gc-sq.is-hl{ background: #f4c86a; }
.gc-sq.is-dark.is-hl{ background: #c9963c; }
.gc-sq.is-bad{ animation: gcBad .45s ease; }
@keyframes gcBad{ 0%,100%{ box-shadow: none; } 30%,70%{ box-shadow: inset 0 0 0 3px #e2483b; } }
.gc-sq em{ position: absolute; font: 700 7.5px/1 var(--mono); font-style: normal; color: rgba(29,23,18,.55); pointer-events: none; }
.gc-sq.is-dark em{ color: rgba(244,239,230,.55); }
.gc-rk{ left: 2px; top: 2px; }
.gc-fl{ right: 2px; bottom: 2px; }
.gp{ width: 82%; height: 82%; pointer-events: none; }
.gp-w *{ fill: #f6efe4; stroke: #1d1712; stroke-width: 1.6; stroke-linejoin: round; }
.gp-b *{ fill: #15110e; stroke: #f3eee6; stroke-width: 1.4; stroke-linejoin: round; }
.gp-w .gp-eye{ fill: #1d1712; stroke: none; }
.gp-b .gp-eye{ fill: #f3eee6; stroke: none; }
.gc-brill{ position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.gc-brill i{ display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #1baca6; color: #fff; font: 800 20px/1 var(--body); font-style: normal; box-shadow: 0 8px 20px -6px rgba(0,0,0,.8), 0 0 0 3px rgba(255,255,255,.9); }
.gc-brill span{ font: 700 12px/1 var(--mono); color: #fff; background: rgba(18,16,14,.85); padding: 7px 9px; border-radius: 6px; }
.gc-brill.is-on{ animation: gcBrill 1.4s cubic-bezier(.2,1.3,.35,1) forwards; }
@keyframes gcBrill{ 0%{ opacity: 0; transform: translate(-50%, -50%) scale(.5); } 25%{ opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70%{ opacity: 1; transform: translate(-50%, -50%) scale(1); } 100%{ opacity: 0; transform: translate(-50%, -62%) scale(1); } }
.pc-idle[hidden], .pc-note[hidden], .pc-eject[hidden], .gc-next[hidden]{ display: none; }
.pc-hint{ top: auto; bottom: -6px; right: 4px; rotate: -4deg; }

/* Word games: editing layers, movie quiz, poetry */
.gq{ position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; box-sizing: border-box; font-family: var(--mono); color: var(--text); background: #12100e; }
.gq-head{ display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; }
.gq-kicker{ color: var(--teal); }
.gq-score{ color: var(--muted); }
.gq-main{ flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; position: relative; }
.gq-prompt{ margin: 0; font: 600 15px/1.35 var(--body); max-width: 34ch; }
.gq-big{ margin: 0; font: 800 44px/1 var(--body); color: var(--orange); }
.gq-opts{ display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.gq-opt{
  display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px/1 var(--mono); color: var(--text);
  background: rgba(244,239,230,.06); border: 1px solid rgba(244,239,230,.22); border-radius: 7px; padding: 8px 11px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.gq-opt kbd{ font: inherit; font-size: 9px; color: var(--muted); border: 1px solid rgba(244,239,230,.2); border-radius: 3px; padding: 2px 4px; }
.gq-opt:hover:not(:disabled){ border-color: var(--orange); transform: translateY(-1px); }
.gq-opt:disabled{ cursor: default; opacity: .55; }
.gq-opt.is-good{ opacity: 1; border-color: var(--teal); background: rgba(47,191,166,.18); }
.gq-opt.is-bad{ opacity: 1; border-color: #e2483b; background: rgba(226,72,59,.16); }
.gq-msg{ margin: 0; min-height: 1.4em; font-size: 10.5px; line-height: 1.4; text-align: center; color: var(--muted); }
.gq-msg.is-good{ color: var(--teal); }
.gq-msg.is-bad{ color: #ff8a7a; }
.gq.is-small{ gap: 6px; padding: 10px 10px; }
.gq.is-small .gq-prompt{ font-size: 13px; }
.gq.is-small .gq-opt{ font-size: 10px; padding: 6px 8px; }
.gq.is-small .gq-big{ font-size: 34px; }
/* editing: the clip to place */
.gq-clip{
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 8px; font-size: 12px;
  background: #1f1a17; border: 1px solid rgba(244,239,230,.2); position: relative; overflow: hidden; animation: gqClip .4s cubic-bezier(.2,1.3,.35,1);
}
.gq-clip i{ position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.gq-clip.is-video i{ background: #6b8cff; }
.gq-clip.is-audio i{ background: #3fbf6a; }
.gq-clip.is-gfx i{ background: #c86bff; }
@keyframes gqClip{ from{ transform: translateY(-14px) scale(.9); opacity: 0; } }
.gq-layers .gq-opts{ flex-direction: column; align-items: stretch; gap: 5px; }
.gq-layers .gq-opt{ justify-content: flex-start; padding: 7px 10px; }
.gq-layers .gq-opt:nth-child(-n+3){ border-left: 3px solid #6b8cff; }
.gq-layers .gq-opt:nth-child(3){ border-left-color: #c86bff; }
.gq-layers .gq-opt:nth-child(n+4){ border-left: 3px solid #3fbf6a; }
.gq.is-small.gq-layers .gq-opt{ padding: 5px 8px; }
/* movies: the doodle reveal */
.gq-reveal{ height: 34%; min-height: 56px; display: grid; place-items: center; }
.gq-reveal img{ height: 100%; width: auto; opacity: 0; filter: blur(6px); transform: scale(.85); transition: opacity .5s ease, filter .5s ease, transform .5s cubic-bezier(.2,1.3,.35,1); }
.gq-reveal::before{ content: "?"; position: absolute; font: 800 34px/1 var(--body); color: rgba(244,239,230,.18); transition: opacity .3s ease; }
.gq-reveal.is-on::before{ opacity: 0; }
.gq-reveal.is-on img{ opacity: 1; filter: none; transform: none; }
/* poetry */
.gq-verse{ margin: 0; display: flex; flex-direction: column; gap: 4px; font: italic 500 17px/1.4 Georgia, 'Times New Roman', serif; color: #efe6d6; }
.gq-verse b{ font-style: normal; font-family: var(--mono); font-size: .85em; padding: 0 4px; border-radius: 3px; }
.gq-verse b.is-blank{ color: var(--muted); letter-spacing: .1em; }
.gq-verse b.is-good{ color: var(--teal); }
.gq-verse b.is-fix{ color: var(--orange); }
.gq-full{ font-size: 14px; gap: 2px; }
.gq.is-small .gq-verse{ font-size: 14px; }
.gq.is-small .gq-full{ font-size: 11.5px; }
.pc-menu button{ padding: 7px 8px; font-size: 10px; }
.gq-reveal{ position: relative; }
.gq-reveal{ height: auto; min-height: 0; flex: 0 0 auto; }
.gq-reveal img{ height: 86px; width: auto; max-width: 160px; object-fit: contain; pointer-events: none; }
.gq.is-small .gq-reveal img{ height: 62px; }

.gq-layers .gq-opt:nth-child(1){ border-left: 3px solid #c86bff; }
.gq-layers .gq-opt:nth-child(2), .gq-layers .gq-opt:nth-child(3){ border-left: 3px solid #6b8cff; }
.gc-boardwrap{ position: relative; flex: 0 0 auto; }
.gp.is-falling{ animation: gpFall 1s cubic-bezier(.3,1.4,.5,1) forwards; transform-origin: 50% 92%; }
@keyframes gpFall{ 0%{ transform: rotate(0); } 20%{ transform: rotate(-14deg); } 55%{ transform: rotate(96deg) translateY(-2px); } 75%{ transform: rotate(84deg); } 100%{ transform: rotate(90deg); } }
.gc-mate{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  font: 800 clamp(16px, 4.5vw, 26px)/1 var(--body); letter-spacing: .06em; color: #fff; white-space: nowrap;
  background: rgba(226,72,59,.92); padding: 8px 14px; border-radius: 8px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.8);
}
.gc-mate.is-on{ animation: gcMate .6s .35s cubic-bezier(.2,1.4,.35,1) forwards; }
@keyframes gcMate{ to{ opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); } }
.gq-hint{ font: 700 10px/1 var(--mono); letter-spacing: .04em; color: var(--yellow, #f4c542); background: transparent; border: 1px dashed rgba(244,197,66,.55); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.gq-hint:hover{ background: rgba(244,197,66,.12); }
.gq-hint[hidden], .gq-hinttxt[hidden]{ display: none; }
.gq-hinttxt{ margin: 0; font-size: 10.5px; line-height: 1.45; color: #f4c542; max-width: 36ch; animation: gqClip .35s ease; }
.gq.is-small .gq-reveal img{ height: 52px; }
.gc-sq.is-move::after{ content: ""; position: absolute; width: 26%; height: 26%; border-radius: 50%; background: rgba(47,191,166,.7); pointer-events: none; }
.gc-sq.is-cap::after{ content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 3px solid rgba(47,191,166,.8); pointer-events: none; }
.gc-sq.is-hint{ animation: gcHint 1.1s ease-in-out infinite; }
@keyframes gcHint{ 0%,100%{ box-shadow: inset 0 0 0 3px #f4c542; } 50%{ box-shadow: inset 0 0 0 3px #f4c542, inset 0 0 18px rgba(244,197,66,.8); } }
.gc-hint{ align-self: flex-start; font: 700 10px/1 var(--mono); color: #f4c542; background: transparent; border: 1px dashed rgba(244,197,66,.55); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.gc-hint:hover{ background: rgba(244,197,66,.12); }
.gc-hint[hidden]{ display: none; }
.gc.is-tall .gc-hint{ align-self: center; }
.ipol.is-away{ visibility: hidden; pointer-events: none; }
.ipol.is-flying{ z-index: 99 !important; pointer-events: none; }
.about-grid.is-flying .about-copy{ position: relative; z-index: 6; }
.pc.is-eating .pc-slot{ background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.gq-by{ margin: 0; font: 10px/1 var(--mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.gq-poem .gq-verse{ font-size: 15.5px; line-height: 1.5; gap: 1px; }
.gq.is-small.gq-poem .gq-verse{ font-size: 12.5px; }
.gc-go{ position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); font: 700 13px/1 var(--mono); color: #10201c; background: var(--teal); border: 0; border-radius: 8px; padding: 11px 16px; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.8); animation: gqClip .4s .5s both; white-space: nowrap; }
.gc-go:hover{ background: var(--orange); }
.gc-go[hidden]{ display: none; }
.gc-mate.is-on ~ .gc-go{ }
.pol-hint .hint-arrow{ width: 34px; transform: rotate(-38deg) translateY(-6px); opacity: .8; }
.pol-hint .hint-arrow{ order: 2; width: 44px; transform: rotate(-62deg) translate(4px, -10px); opacity: .85; }
/* Name tags sit above everything; in the row layout they open above the logo */
.dlogo:hover, .dlogo:focus-visible, .dlogo.is-hot{ z-index: 20; }
.desk-logos:not(.is-ring) .dlogo b{ top: auto; bottom: calc(100% + 12px); transform: translate(-50%, 4px); }
.desk-logos:not(.is-ring) .dlogo:hover b, .desk-logos:not(.is-ring) .dlogo:focus-visible b, .desk-logos:not(.is-ring) .dlogo.is-hot b{ transform: translate(-50%, 0); }
.desk-logos:not(.is-ring) .dlogo b::before{ top: auto; bottom: -4px; border-bottom: 0; border-top: 4px solid var(--orange); }
.scrubber-seg{ touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---- v36: case studies in the new design ---- */
.fs-player img{ display: block; width: 100%; height: auto; }
.film-showcase.is-wide{ grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 760px){
  .film-showcase.is-wide{ grid-template-columns: 1fr; }
  .film-showcase.is-wide .fs-player{ max-width: none; }
}

/* ---- v36: proof line in the intro ---- */
.hero-sub{ margin-bottom: 18px; }
.hero-proof{
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; letter-spacing: .01em;
  color: var(--muted); max-width: 56ch; margin: 0 0 26px;
}
.hero-proof b{ color: var(--text); font-weight: 700; }
.hero-proof .hp-dot{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); margin-right: 9px; vertical-align: 1px;
  box-shadow: 0 0 0 3px rgba(47,191,166,.18);
}
@media (max-width: 560px){ .hero-proof{ font-size: 11.5px; margin-bottom: 20px; } }

/* ---- v36: FAQ ---- */
.faq{ position: relative; }
.faq-grid{ display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-side{ position: sticky; top: 90px; }
.faq-side .section-head{ display: block; margin-bottom: 22px; }
.faq-side .section-head p{ margin-top: 16px; }
.faq-mail{
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px;
  color: var(--teal); text-decoration: none; border-bottom: 1px dashed currentColor; padding-bottom: 2px;
}
.faq-mail:hover{ color: var(--orange); }
.faq-mail span{ transition: transform .2s ease; }
.faq-mail:hover span{ transform: translateX(4px); }
.faq-list{ border-top: 1px solid var(--line); }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px 1fr 28px;
  align-items: center; gap: 10px; padding: 20px 4px; border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-num{ font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: .06em; }
.faq-q{ font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.3; color: var(--text); transition: color .2s ease; }
.faq-item summary:hover .faq-q{ color: var(--teal); }
.faq-icon{ position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .2s ease, background .2s ease, transform .3s ease; }
.faq-icon::before, .faq-icon::after{
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px;
  background: var(--text); border-radius: 2px; transition: transform .3s ease;
}
.faq-icon::after{ transform: rotate(90deg); }
.faq-item[open] .faq-icon{ border-color: var(--teal); background: rgba(47,191,166,.12); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after{ transform: rotate(0deg); }
.faq-item summary:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }
.faq-a{ padding: 0 36px 22px 60px; color: var(--muted); }
.faq-a p{ margin: 0 0 10px; line-height: 1.65; max-width: 62ch; }
.faq-a p:last-child{ margin-bottom: 0; }
.faq-item[open] .faq-a{ animation: faqIn .35s ease; }
@keyframes faqIn{ from{ opacity: 0; transform: translateY(-6px); } }
@media (max-width: 900px){
  .faq-grid{ grid-template-columns: 1fr; gap: 26px; }
  .faq-side{ position: static; }
}
@media (max-width: 560px){
  .faq-item summary{ grid-template-columns: 34px 1fr 26px; gap: 8px; padding: 17px 0; }
  .faq-a{ padding: 0 4px 18px 42px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce){
  .faq-item[open] .faq-a{ animation: none; }
  .faq-icon, .faq-icon::before, .faq-icon::after{ transition: none; }
}

/* ---- v36: no layout jump on load ----
   The intro used to start at its natural height and only grow to the
   pinned height once JS ran, so the chess band showed for a moment and
   then jumped down. These are the same rules as .is-pinned, applied by
   CSS from the first paint whenever JS would pin anyway (wide screen,
   motion allowed). */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference){
  .hero2{ height: 185vh; }
  .hero2 .hero-stage > .wrap{ width: 100%; }
  .hero2 .hero-stage{
    position: sticky; top: 44px; height: calc(100vh - 44px);
    overflow: hidden; padding-bottom: 0; display: flex; flex-direction: column;
  }
  .hero2 .hero-grid2{ flex: 1; }
  .hero2 .hero-scrollcue{ display: flex; }
}
.hero-proof{ padding-left: 16px; text-indent: -16px; }
.hero-proof .nw{ white-space: nowrap; text-indent: 0; }

/* ---- v37: FAQ button under services, FAQ on its own page ---- */
.do-faq{ display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 34px; }
.do-faq-q{ font-size: 24px; color: var(--muted); }
.faq-page{ border-bottom: none; }
.faq-page h1{ font-size: clamp(40px, 4.6vw, 66px); }
.faq-page .project-lede{ margin-bottom: 22px; }
.faq-page .faq-grid{ padding-bottom: 40px; }

/* Small print under project stat grids (data sources, caveats). */
.p-footnote{ margin: 16px 0 0; max-width: 72ch; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.p-stats{ margin-top: 56px; }
.p-stats .stat-grid{ margin-top: 20px; }
