:root {
  --ink: #0b0b0b;
  --paper: #ecebe8;
  --paper-2: #f6f5f2;
  --red: #e10600;
  --blue: #2563eb;
  --grid: rgba(0, 0, 0, .07);
  --wide: "Archivo", "Arial Black", sans-serif;
  --hand: "Caveat", cursive;
  --mono: "Space Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 64px);
  --crumple: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body.intro-locked {
  overflow: hidden !important;
  height: 100vh !important;
}
img { display: block; max-width: 100%; }

/* ---------- Lenis smooth scroll CSS ---------- */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- film grain & scroll progress ---------- */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99990;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--red);
  z-index: 99999;
  pointer-events: none;
  transition: width 0.05s linear;
  will-change: width;
}

/* ---------- custom video cursor (desktop) ---------- */
.vcursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99995;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(225, 6, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.vcursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (hover: none), (pointer: coarse) {
  .vcursor { display: none !important; }
}

/* ---------- INTRO "EDIT TIMELINE" LOADER ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  color: #fff;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.intro-curtain {
  position: absolute;
  left: 0;
  right: 0;
  background: #050505;
  z-index: 10;
  pointer-events: none;
}
.intro-curtain-top {
  top: 0;
  height: 50%;
  transform-origin: top;
}
.intro-curtain-bottom {
  bottom: 0;
  height: 50%;
  transform-origin: bottom;
}
.intro-overlay.split-open .intro-curtain-top {
  transform: translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}
.intro-overlay.split-open .intro-curtain-bottom {
  transform: translateY(100%);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
}
.intro-overlay.split-open .intro-content {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}
.intro-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3.5vw, 44px);
}
.intro-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: clamp(10px, 1.2vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intro-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.intro-rec-label {
  color: #fff;
}
.intro-sep {
  opacity: 0.35;
}
.intro-name {
  color: #ccc;
  letter-spacing: 0.05em;
}
.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: rec-blink 1s steps(1, start) infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes rec-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.intro-timecode {
  font-family: var(--mono);
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.intro-center {
  text-align: center;
  margin: auto 0;
  position: relative;
}
.intro-word {
  font-size: clamp(48px, 13vw, 170px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  color: #fff;
  min-height: 1.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 24px rgba(255,255,255,0.2);
  transition: transform 0.08s ease-out;
}
.intro-skip-hint {
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.22em;
  color: #666;
  margin-top: 20px;
}

.intro-timeline-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #09090c;
  border: 1px solid #1f1f26;
  border-radius: 6px;
  padding: 10px 14px 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
}
.intro-timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: #666;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #1a1a20;
}
.intro-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.intro-playhead {
  position: absolute;
  top: -14px;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 15;
  left: 0%;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255,255,255,0.9);
}
.intro-playhead-cap {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  margin-left: -5px;
}
.intro-playhead-stem {
  width: 2px;
  height: 100%;
  background: #fff;
}
.intro-track {
  display: flex;
  height: 24px;
  background: #111116;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #1d1d24;
}
.intro-track.a1 {
  height: 30px;
}
.intro-track-hdr {
  width: 34px;
  flex-shrink: 0;
  background: #181820;
  color: #888;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-right: 1px solid #242430;
}
.intro-track-body {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
}
.clip {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  overflow: hidden;
  white-space: nowrap;
  border-right: 1.5px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.c-teal { background: #0d9488; }
.c-amber { background: #d97706; }
.c-purple { background: #7c3aed; }
.c-red { background: #e10600; }
.c-grey { background: #4b5563; }
.c-audio {
  background: #064e3b;
  border-right: none;
}
.c-audio .waveform {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.c-audio span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.intro-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.04s ease-out;
}
.intro-flash.flash-active {
  opacity: 0.85;
}

/* ---------- textures ---------- */
.paper {
  position: relative;
  background-color: var(--paper);
  background-image:
    var(--crumple),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 900px 900px, 28px 28px, 28px 28px;
  background-blend-mode: multiply, normal, normal;
}
.dark-grid {
  background-color: #111;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- display type ---------- */
.mega {
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.label {
  font-family: var(--wide);
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(12px, 1.5vw, 22px);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.small { font-size: 12px; line-height: 1.5; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  width: min(1400px, 100%);
  position: relative;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: clamp(4px, 1vw, 14px);
}
.hero-top .label {
  transform: translateY(-24px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
  transition-delay: 150ms;
}
.hero.is-revealed .hero-top .label {
  transform: translateY(0);
  opacity: 1;
}

.hero-word {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 11vw, 190px);
  white-space: nowrap;
  min-width: 0;
}
.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.char-wrap .char {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--ci, 0) * 40ms + 100ms);
  will-change: transform;
}
.hero.is-revealed .char-wrap .char {
  transform: translateY(0);
}

.hero-o {
  position: relative;
  width: .78em;
  height: .9em;
  margin: 0 .02em;
  flex: none;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transition-delay: 240ms;
  will-change: transform, opacity;
}
.hero.is-revealed .hero-o {
  transform: scale(1);
  opacity: 1;
}
.hero-o img, .hero-o .ph {
  position: absolute;
  inset: -18% -12% -6%;
  width: 124%;
  height: 124%;
  object-fit: contain;
  object-position: bottom;
  filter: grayscale(1) contrast(1.25);
}
.hero-o .ph { border-radius: 50% 50% 46% 46%; font-size: 12px; }

.glyphs {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: clamp(22px, 3vw, 40px);
  margin-top: clamp(40px, 9vh, 110px);
}
.glyphs span {
  display: inline-block;
  transform: rotate(-180deg) scale(0);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.glyphs span:nth-child(1) { transition-delay: 450ms; }
.glyphs span:nth-child(2) { transition-delay: 530ms; }
.glyphs span:nth-child(3) { transition-delay: 610ms; }
.hero.is-revealed .glyphs span {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.scroll-cue {
  text-align: center;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: .3em;
  opacity: .55;
}

/* ---------- HERO VIEWFINDER CARD ---------- */
.viewfinder-card {
  /* sits in normal flow under the PORTFOLIO word so it never covers the letters */
  position: relative;
  display: block;
  margin: clamp(18px, 2.5vw, 34px) 0 0 auto;
  width: clamp(150px, 12vw, 190px);
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 16px 36px rgba(0,0,0,0.32), 0 0 0 1.5px rgba(0,0,0,0.12);
  z-index: 10;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.5s ease;
}
.hero.is-revealed .viewfinder-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 380ms;
}
.viewfinder-card:hover, .viewfinder-card:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 0 0 2px var(--red);
  outline: none;
}
.vf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.vf-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.45) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 22%, transparent 75%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  font-family: var(--mono);
}
.vf-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.9);
  pointer-events: none;
}
.vf-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.vf-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.vf-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.vf-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.vf-center-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.vf-center-cross::before {
  content: "";
  position: absolute;
  left: 5px; top: 0; width: 2px; height: 12px;
  background: rgba(255,255,255,0.6);
}
.vf-center-cross::after {
  content: "";
  position: absolute;
  top: 5px; left: 0; width: 12px; height: 2px;
  background: rgba(255,255,255,0.6);
}
.vf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.vf-rec {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}
.vf-fps {
  font-size: 8.5px;
  background: rgba(0,0,0,0.55);
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
}
.vf-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.vf-tag {
  font-family: var(--wide);
  font-weight: 800;
  font-size: 9.5px;
  color: var(--red);
}
.vf-tc {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- ABOUT (SCROLL-SCRUBBED PORTRAIT) ---------- */
.about {
  padding: clamp(60px, 9vw, 130px) var(--pad) clamp(90px, 12vw, 170px);
  position: relative;
}
.about-grid {
  width: min(1300px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 861px) {
  .about-stage-wrap {
    position: sticky;
    top: clamp(40px, 10vh, 90px);
    align-self: start;
  }
}
.select-frame {
  position: relative;
  border: 1.5px solid var(--blue);
  padding: 0;
  aspect-ratio: 900 / 1150;
  background: transparent;
}
.portrait-glow {
  position: absolute;
  inset: -14%;
  background: radial-gradient(circle at 50% 60%, rgba(225, 6, 0, 0.22) 0%, rgba(225, 6, 0, 0.05) 50%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.portrait-stack {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-origin: center bottom;
  will-change: transform;
}
.scrub-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.scrub-frame.f1 {
  opacity: 1;
}

.select-frame i {
  position: absolute;
  width: 10px; height: 10px;
  background: #fff;
  border: 1.5px solid var(--blue);
  z-index: 3;
}
.select-frame i:nth-of-type(1) { top: -5px; left: -5px; }
.select-frame i:nth-of-type(2) { top: -5px; right: -5px; }
.select-frame i:nth-of-type(3) { bottom: -5px; left: -5px; }
.select-frame i:nth-of-type(4) { bottom: -5px; right: -5px; }
.select-frame .dims {
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 3;
}
.about h2 { font-size: clamp(44px, 7vw, 110px); margin-bottom: 22px; }
.about .bio { font-size: clamp(14px, 1.3vw, 17px); line-height: 1.6; max-width: 58ch; margin-bottom: 40px; }
.cv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
}
.cv h3 {
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 38px);
  margin-bottom: 12px;
}
.cv .item { margin-bottom: 14px; }
.cv .item b { display: block; font-family: var(--wide); font-weight: 800; font-size: 14px; }
.cv .item span { font-size: 12px; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- TEXT & SCROLL ANIMATION CLASSES ---------- */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}
.word-mask .word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--wi, 0) * 50ms);
  will-change: transform, opacity;
  color: inherit;
  -webkit-text-stroke: inherit;
}
.is-inview .word-mask .word,
.word-mask.is-inview .word {
  transform: translateY(0);
  opacity: 1;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--ii, 0) * 60ms);
  will-change: opacity, transform;
}
.reveal-fade.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.chips span {
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--ci, 0) * 45ms);
  will-change: opacity, transform;
}
.chips.is-inview span {
  opacity: 1;
  transform: scale(1);
}

/* ---------- TORN BLACK BAND ---------- */
.band-wrap { position: relative; margin: -60px 0; z-index: 2; }
.torn-band {
  background: #050505;
  color: #fff;
  height: clamp(320px, 46vw, 640px);
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.torn-band .scroller { font-size: clamp(80px, 15vw, 230px); color: #fff; }
.torn-band .cutout {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 80%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}
.torn-band .cutout img {
  height: 100%;
  width: auto;
  max-width: none;
  filter:
    grayscale(1) contrast(1.15)
    drop-shadow(9px 0 0 var(--red)) drop-shadow(-9px 0 0 var(--red))
    drop-shadow(0 -9px 0 var(--red)) drop-shadow(0 9px 0 var(--red));
}
.torn-band .cutout .ph { width: clamp(220px, 28vw, 380px); height: 90%; }

/* ---------- POLAROID NOTES ---------- */
.notes { padding: clamp(110px, 12vw, 170px) var(--pad) clamp(70px, 8vw, 120px); }
.notes-row {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 46px);
}
.polaroid {
  background: #fbfbf8;
  padding: 16px 16px 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.12);
  position: relative;
  opacity: 0;
  transform: translateY(-50px) rotate(0deg);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  will-change: opacity, transform;
}
.polaroid.is-inview:nth-child(1) {
  opacity: 1;
  transform: translateY(0) rotate(-3deg);
  transition-delay: 0.1s;
}
.polaroid.is-inview:nth-child(2) {
  opacity: 1;
  transform: translateY(16px) rotate(2deg);
  transition-delay: 0.25s;
}
.polaroid.is-inview:nth-child(3) {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg);
  transition-delay: 0.4s;
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 90px; height: 24px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(240, 235, 210, .75);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.polaroid .inner {
  background: #fff;
  border: 1px solid #e3e3e0;
  min-height: 150px;
  padding: 18px;
  font-family: var(--hand);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.1;
  display: grid;
  align-content: space-between;
  gap: 18px;
}
.polaroid .by { text-align: right; font-size: .8em; opacity: .75; }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  padding: clamp(10px, 1.4vw, 18px) 0;
  position: relative;
  z-index: 3;
}
.scroller {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  will-change: transform;
}
.scroller span {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: .5em;
}
.marquee .scroller { font-size: clamp(24px, 3.4vw, 50px); }
.marquee .star { color: #fff; letter-spacing: -.1em; }

/* ---------- PROJECT COVER ---------- */
.cover {
  position: relative;
  aspect-ratio: 2 / 1;
  min-height: 360px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.cover > img, .cover > .ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cover.is-inview > img {
  transform: scale(1);
}
.cover::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.65));
  pointer-events: none;
}
.cover .corner {
  position: absolute;
  z-index: 2;
  font-family: var(--wide);
  font-stretch: 115%;
  font-weight: 700;
  font-size: clamp(10px, 1.2vw, 16px);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cover .corner.tl { top: var(--pad); left: var(--pad); transform: translate(-10px, -10px); }
.cover .corner.tr { top: var(--pad); right: var(--pad); text-align: right; transform: translate(10px, -10px); }
.cover .corner.bl { bottom: var(--pad); left: var(--pad); transform: translate(-10px, 10px); }
.cover .corner.br { bottom: var(--pad); right: var(--pad); text-align: right; transform: translate(10px, 10px); }
.cover.is-inview .corner {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0.18s;
}

.cover .title {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(42px, 9vw, 150px);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.9);
  mix-blend-mode: difference;
}

/* ---------- SKETCHBOOK CASE STUDY ---------- */
.case { padding: clamp(50px, 7vw, 110px) var(--pad); overflow: hidden; }
.sheet {
  width: min(1100px, 100%);
  margin: 0 auto;
  transform: translateY(50px) rotate(2deg);
  opacity: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  padding: clamp(22px, 4vw, 56px);
  font-family: var(--hand);
  color: #1b1b1b;
  --accent: #7c3aed;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}
.sheet.is-inview {
  transform: translateY(0) rotate(-.6deg);
  opacity: 1;
}
.sheet .head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.sheet .proj { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; }
.sheet .proj b {
  font-family: var(--wide);
  font-stretch: 125%;
  font-weight: 900;
  color: var(--accent);
  font-size: 1.05em;
  margin-left: 6px;
}
.sheet .stamp {
  border: 2.5px solid var(--red);
  color: var(--red);
  padding: 8px 14px;
  font-size: clamp(18px, 1.8vw, 24px);
  transform: rotate(2deg);
  align-self: start;
  max-width: 280px;
}
.sheet .body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
}
.sheet .sketch {
  border: 2px dashed rgba(0,0,0,.35);
  padding: 10px;
  background: rgba(255,255,255,.45);
}
.sheet .sketch img, .sheet .sketch .ph { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.sheet .caption { font-size: 22px; margin-top: 8px; color: var(--accent); }
.sheet h4 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.swatches { display: grid; gap: 10px; margin-bottom: 30px; }
.swatch { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.swatch i {
  width: 74px; height: 38px;
  border: 2px solid #222;
  flex: none;
  transform: rotate(-1deg);
}
.swatch small { font-family: var(--mono); font-size: 11px; opacity: .6; }
.say { list-style: none; font-size: clamp(20px, 1.9vw, 26px); }
.say li { padding-left: 34px; position: relative; margin-bottom: 6px; line-height: 1.1; }
.say li::before {
  content: "↳";
  position: absolute; left: 4px; top: -2px;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 0 var(--pad) clamp(60px, 8vw, 120px);
}
.gallery-grid {
  width: min(1300px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.6vw, 22px);
}
.gallery-grid > * {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1a1a1a;
  clip-path: inset(100% 0 0 0);
  opacity: 0.4;
  transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  transition-delay: calc(var(--gi, 0) * 120ms);
  will-change: clip-path, opacity;
}
.gallery-grid.is-inview > * {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}
.gallery-grid > :first-child:nth-last-child(odd),
.gallery-grid.n1 > * { grid-column: 1 / -1; aspect-ratio: 16 / 8; }

/* ---------- CONTACT ---------- */
.contact {
  padding: clamp(80px, 10vw, 160px) var(--pad) 40px;
  overflow: hidden;
}
.contact .mega { font-size: clamp(38px, 14.5vw, 240px); text-align: center; }
.contact .mega .red { color: var(--red); }
.contact-grid {
  width: min(1200px, 100%);
  margin: clamp(40px, 6vw, 80px) auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.contact-grid a, .contact-grid div {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-grid b { display: block; font-family: var(--wide); font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.contact-grid a:hover { color: var(--red); }
.foot {
  width: min(1200px, 100%);
  margin: 60px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: .6;
}

/* ---------- torn edges (clip-path set in JS) ---------- */
.torn { will-change: clip-path; }

/* ---------- placeholders for missing images ---------- */
.ph {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #777;
  background:
    repeating-linear-gradient(45deg, rgba(128,128,128,.12) 0 10px, transparent 10px 20px),
    rgba(128,128,128,.08);
  border: 1.5px dashed rgba(128,128,128,.55);
}
.ph b { display: block; color: inherit; font-size: 13px; margin-bottom: 4px; }
.dark .ph, .cover .ph, .torn-band .ph, .gallery .ph { color: #9a9a9a; }

/* ---------- REELS & VIDEO SECTION ---------- */
.videos { padding: clamp(50px, 7vw, 110px) var(--pad); color: #fff; }
.videos-inner { width: min(1300px, 100%); margin: 0 auto; }
.videos-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: clamp(24px, 3vw, 40px);
}
.videos-head h3 { font-size: clamp(36px, 6vw, 92px); }
.videos-head p { max-width: 46ch; font-size: 13px; line-height: 1.6; opacity: .75; }
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin-bottom: clamp(12px, 1.6vw, 22px);
}
.vtile {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 16; padding: 0; border: 1px solid rgba(255,255,255,0.08);
  background: #000; color: #fff; cursor: pointer; overflow: hidden;
  font: inherit; text-align: left; border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.vtile.wide { aspect-ratio: 16 / 9; }
.vtile:hover, .vtile:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 42px rgba(0,0,0,0.6), 0 0 0 2px var(--red);
  border-color: var(--red);
  outline: none;
}
.vtile-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), filter .5s;
  filter: saturate(.9) brightness(.85);
}
.vtile:hover .vtile-video {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1);
}
.vtile-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 5px;
  background: var(--red); color: #fff; font-size: 20px;
  box-shadow: 0 0 0 6px rgba(225, 6, 0, .28);
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vtile:hover .vplay { transform: translate(-50%, -50%) scale(1.12); }
.vmeta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #ddd;
}
.vmeta b {
  display: block; font-family: var(--wide); font-stretch: 115%; font-weight: 800;
  font-size: 14px; color: #fff; margin-bottom: 2px;
}

/* ---------- VIDEO LIGHTBOX MODAL ---------- */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.vmodal.is-active {
  opacity: 1;
  visibility: visible;
}
.vmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vmodal-dialog {
  position: relative;
  z-index: 2;
  width: min(960px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #09090c;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.vmodal.is-active .vmodal-dialog {
  transform: scale(1);
}
.vmodal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #111116;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
}
.vmodal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.vmodal-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: rec-blink 1s steps(1, start) infinite;
  flex-shrink: 0;
}
.vmodal-rec-text { color: var(--red); font-weight: 700; font-size: 11px; }
.vmodal-sep { opacity: 0.3; }
.vmodal-meta b { font-family: var(--wide); font-size: 13px; letter-spacing: 0.04em; }
.vmodal-type { opacity: 0.7; font-size: 11px; }
.vmodal-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.vmodal-close:hover, .vmodal-close:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  outline: none;
}
.vmodal-media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(92vh - 90px);
}
.vmodal-media video {
  width: 100%;
  max-height: calc(92vh - 90px);
  object-fit: contain;
  background: #000;
}
.vmodal-foot {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  background: #111116;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono);
  font-size: 10px;
  color: #777;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 860px) {
  .about-grid, .sheet .body { grid-template-columns: 1fr; }
  .about-stage-wrap { position: relative; top: auto; }
  .select-frame { max-width: 400px; margin: 0 auto 30px; }
  .notes-row { grid-template-columns: 1fr; gap: 36px; max-width: 420px; }
  .polaroid:nth-child(2) { transform: rotate(2deg); }
  .cover { aspect-ratio: 4 / 5; }
  .cover .title { font-size: clamp(28px, 10vw, 70px); }
  .viewfinder-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 32px auto 0;
    width: min(220px, 60vw);
  }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .cv { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid > * { grid-column: auto !important; aspect-ratio: 4 / 3 !important; }
  .hero-top .label { font-size: 10px; }
  .torn-band .cutout img { filter: grayscale(1) contrast(1.15) drop-shadow(5px 0 0 var(--red)) drop-shadow(-5px 0 0 var(--red)) drop-shadow(0 -5px 0 var(--red)); }
  .cover .title { font-size: clamp(24px, 9.5vw, 52px); }
  .reels-grid { grid-template-columns: repeat(2, 1fr); }
  .vplay { width: 44px; height: 44px; font-size: 16px; }
  .intro-timeline-wrap { padding: 8px 10px 10px; }
  .intro-timeline-ruler { display: none; }
  .intro-track { height: 20px; }
  .intro-track.a1 { height: 24px; }
  .vmodal-bar { padding: 10px 12px; }
  .vmodal-meta b { font-size: 12px; }
  .vmodal-type { display: none; }
}

@media (max-width: 480px) {
  .intro-rec-label, .intro-sep { display: none; }
  .intro-name { font-size: 9.5px; }
  .intro-timecode { font-size: 13px; }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroller { animation: none !important; }
  .intro-overlay { display: none !important; }
  body.intro-locked { overflow: auto !important; height: auto !important; }
  .char-wrap .char, .hero-o, .hero-top .label, .glyphs span, .viewfinder-card,
  .word-mask .word, .reveal-fade, .chips span, .polaroid, .cover > img,
  .cover .corner, .sheet, .gallery-grid > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* case study without a separate image: palette + notes side by side */
.sheet .body.no-sketch { grid-template-columns: 1fr; }
.sheet .body.no-sketch > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 clamp(20px, 4vw, 56px); }
.sheet .body.no-sketch > div > h4:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.sheet .body.no-sketch > div > .say { grid-column: 2; grid-row: 2; }
@media (max-width: 560px) {
  .sheet .body.no-sketch > div > h4:nth-of-type(2), .sheet .body.no-sketch > div > .say { grid-column: auto; grid-row: auto; }
}

/* portrait: instant cuts + quick flash instead of crossfade */
#portrait-stack .scrub-frame { transition: none !important; }
#portrait-stack.cut-flash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #fff; mix-blend-mode: soft-light;
  animation: portraitCut .16s ease-out forwards;
}
@keyframes portraitCut { from { opacity: .9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #portrait-stack.cut-flash::after { animation: none; } }

/* ---------- HERO MOTION GRAPHICS (replaces the reel card) ---------- */
.hero { position: relative; }
.viewfinder-card { display: none !important; }
.hero-badge {
  position: absolute;
  right: var(--pad); bottom: clamp(24px, 5vh, 56px);
  width: clamp(110px, 12vw, 170px); aspect-ratio: 1;
  opacity: 0; transform: scale(.6) rotate(-40deg);
  transition: opacity .6s ease .5s, transform .9s cubic-bezier(.16,1,.3,1) .5s;
}
.hero.is-revealed .hero-badge { opacity: 1; transform: none; }
.hero-badge-ring { width: 100%; height: 100%; animation: badgeSpin 16s linear infinite; overflow: visible; }
.hero-badge-ring text {
  font-family: var(--wide); font-stretch: 115%; font-weight: 800;
  font-size: 13px; letter-spacing: .04em; fill: var(--ink);
}
.hero-badge-core {
  position: absolute; inset: 30%;
  border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: clamp(22px, 2.6vw, 36px);
  box-shadow: 0 0 0 0 rgba(225,6,0,.45);
  animation: badgePulse 2.4s ease-out infinite;
}
.hero-badge-core span { display: block; animation: badgeSpin 6s linear infinite reverse; }
@keyframes badgeSpin { to { transform: rotate(360deg); } }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(225,6,0,.45); } 70%,100% { box-shadow: 0 0 0 18px rgba(225,6,0,0); } }

.hero-wave {
  position: absolute;
  left: var(--pad); bottom: clamp(24px, 5vh, 56px);
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease .7s, transform .7s ease .7s;
}
.hero.is-revealed .hero-wave { opacity: 1; transform: none; }
.hero-wave-bars { display: flex; align-items: center; gap: 3px; height: 34px; }
.hero-wave-bars i {
  display: block; width: 3px; height: 100%;
  background: var(--ink); border-radius: 2px;
  transform-origin: center;
  animation: waveBar 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.13s);
}
.hero-wave-bars i:nth-child(7n) { background: var(--red); }
@keyframes waveBar { 0% { transform: scaleY(.15); } 50% { transform: scaleY(.9); } 100% { transform: scaleY(.35); } }
.hero-wave-tc { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .7; }

@media (max-width: 560px) {
  .hero-badge { width: 92px; }
  .hero-badge-ring text { font-size: 13px; }
  .hero-wave-bars { height: 26px; gap: 2px; }
  .hero-wave-bars i:nth-child(n+19) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-ring, .hero-badge-core, .hero-badge-core span, .hero-wave-bars i { animation: none; }
}

/* =====================================================================
   AI STUDIO SECTION & ORBIT STUDIO APP MOCKUP
   ===================================================================== */

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

/* ---------- AI STUDIO SECTION LAYOUT ---------- */
.ai-studio {
  padding: clamp(60px, 8vw, 120px) var(--pad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-studio-inner {
  width: min(1300px, 100%);
  margin: 0 auto;
}
.ai-studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.ai-studio-head h3 {
  font-size: clamp(36px, 6vw, 92px);
  color: #fff;
  line-height: 0.84;
}
.ai-studio-head p {
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.75;
  color: #e2e2e8;
}

/* ---------- ORBIT STUDIO APP MOCKUP ---------- */
.orbit-wrap {
  width: 100%;
  margin-bottom: clamp(70px, 9vw, 120px);
}
.orbit-mockup {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Window Chrome */
.orbit-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #111118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}
.orbit-chrome-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.orbit-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.orbit-window-title {
  font-family: var(--wide);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff;
  margin-left: 8px;
}
.orbit-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.03em;
}
.orbit-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wide);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--red);
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}
.orbit-ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: aiDotPulse 2s infinite ease-out;
}
@keyframes aiDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

/* Studio Body: 3 Panels */
.orbit-body {
  display: grid;
  grid-template-columns: 1fr 310px 1fr;
  min-height: 430px;
  background: #09090e;
}
.orbit-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.orbit-director {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.orbit-monitor-panel {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #07070b;
}
.orbit-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-hdr-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-icon {
  color: var(--red);
  font-size: 11px;
}
.panel-status {
  color: #22c55e;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.panel-tag {
  color: #fbbf24;
  font-size: 8.5px;
  background: rgba(251, 191, 36, 0.12);
  padding: 1px 5px;
  border-radius: 2px;
}

/* Left Panel: Chat & Director */
.orbit-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.orbit-msg {
  border-radius: 6px;
  padding: 12px;
}
.msg-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.msg-user {
  background: #13131c;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-prompt {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #f1f1f1;
  min-height: 2.8em;
}
.prompt-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--red);
  margin-left: 2px;
  vertical-align: middle;
}
.msg-ai {
  background: #0e0e16;
  border: 1px solid rgba(225, 6, 0, 0.25);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ai-badge-sm {
  font-family: var(--wide);
  font-weight: 800;
  font-size: 9.5px;
  color: var(--red);
  letter-spacing: 0.05em;
}
.ai-typing-indicator {
  display: none;
  gap: 4px;
  align-items: center;
}
.ai-typing-indicator i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #aaa;
  animation: typingDot 0.8s infinite alternate;
}
.ai-typing-indicator i:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-indicator i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0% { opacity: 0.25; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-3px); }
}

.orbit-checklist {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #666;
  transform: translateX(-4px);
  opacity: 0.55;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.check-box {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid #444;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.check-item.is-checked {
  color: #fff;
  opacity: 1;
  transform: translateX(0);
}
.check-item.is-checked .check-box {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.check-item.is-checked .check-box::after {
  content: "✓";
  font-size: 9px;
}

/* Centre Panel: 9:16 Preview Monitor */
.monitor-rec {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.monitor-tc {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #ddd;
  letter-spacing: 0.08em;
}
.orbit-monitor-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 6px 0;
}
.orbit-monitor-bezel {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}
.monitor-top-info {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  z-index: 6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.orbit-frames-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbit-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.05) brightness(0.95);
}
.orbit-frame-img.is-active {
  opacity: 1;
}
.orbit-flash-cut {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.04s ease-out;
}
.orbit-flash-cut.flash-active {
  animation: orbitFlash .16s ease-out forwards; /* flashes once, then fades back to 0 */
}
@keyframes orbitFlash { from { opacity: .85; } to { opacity: 0; } }

/* Burned-in caption */
.orbit-caption-overlay {
  position: absolute;
  bottom: 24px;
  left: 10px;
  right: 10px;
  z-index: 6;
  text-align: center;
  pointer-events: none;
}
.orbit-caption-words {
  display: inline-block;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--wide);
  font-stretch: 110%;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  color: #facc15;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  max-width: 90%;
  line-height: 1.25;
}

/* Right Panel: Engine Switcher */
.orbit-engine {
  background: #09090e;
}
.engine-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.engine-card {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 10px 12px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  will-change: transform, border-color;
}
.engine-card.is-active {
  background: rgba(225, 6, 0, 0.08);
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(225, 6, 0, 0.22);
  transform: translateX(3px);
}
.engine-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.engine-name {
  font-family: var(--wide);
  font-weight: 800;
  font-size: 10.5px;
  color: #e5e5e5;
  letter-spacing: 0.04em;
}
.engine-card.is-active .engine-name {
  color: #fff;
}
.engine-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}
.engine-card.is-active .engine-badge {
  background: var(--red);
  color: #fff;
}
.engine-desc {
  font-family: var(--mono);
  font-size: 9.5px;
  color: #777;
}
.engine-card.is-active .engine-desc {
  color: #aaa;
}

.engine-fallback {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}
.engine-fallback.is-active {
  opacity: 1;
  transform: translateY(0);
}
.fallback-icon {
  font-size: 12px;
  animation: badgeSpin 4s linear infinite;
}

/* Bottom Timeline */
.orbit-timeline-wrap {
  background: #0d0d14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px 14px;
}
.orbit-timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8.5px;
  color: #666;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.orbit-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.orbit-playhead {
  position: absolute;
  top: -14px;
  bottom: 0;
  width: 2px;
  background: #fff;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
  will-change: left;
}
.playhead-cap {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #fff;
  margin-left: -4px;
}
.playhead-line {
  width: 2px;
  height: 100%;
  background: #fff;
}
.orbit-track {
  display: flex;
  height: 22px;
  background: #111119;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.track-label {
  width: 95px;
  flex-shrink: 0;
  background: #171722;
  color: #888;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.track-lane {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
}
.track-clip {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  white-space: nowrap;
  border-right: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.clip-purple {
  background: #7c3aed;
}
.clip-teal {
  background: #0d9488;
}
.clip-amber {
  background: #d97706;
}
.clip-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  animation: clipShimmer 2.4s infinite linear;
}
@keyframes clipShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.caption-blocks-lane {
  background: #16140e;
}
.cap-block {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 2px;
  background: #ca8a04;
  opacity: 0.35;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.cap-block.is-passed {
  opacity: 1;
  background: #facc15;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.45);
}

.audio-lane {
  background: #042414;
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.orbit-waveform-bars {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 2px;
}
.orbit-waveform-bars i {
  flex: 1;
  background: #22c55e;
  border-radius: 1px;
  min-height: 2px;
}

/* Mockup Caption */
.orbit-caption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #999;
  line-height: 1.5;
}
.orbit-caption b {
  font-family: var(--wide);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

/* ---------- AI PIPELINE ---------- */
.ai-pipeline-wrap {
  margin-bottom: clamp(70px, 9vw, 120px);
}
.ai-pipeline-header {
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.ai-sublabel {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  display: block;
  margin-bottom: 6px;
}
.ai-pipeline-header h4 {
  font-size: clamp(28px, 4.5vw, 64px);
  color: #fff;
}
.ai-pipeline {
  position: relative;
  width: 100%;
}

/* Connecting Lines */
.pipeline-svg-desktop {
  position: absolute;
  top: 26px;
  left: 30px;
  right: 30px;
  width: calc(100% - 60px);
  height: 24px;
  z-index: 1;
  pointer-events: none;
}
.pipeline-svg-bg {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2px;
}
.pipeline-svg-path {
  stroke: var(--red);
  stroke-width: 2.5px;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 5px var(--red));
  transition: stroke-dashoffset 0.08s linear;
  will-change: stroke-dashoffset;
}

.pipeline-line-track {
  position: absolute;
  top: 36px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}
.pipeline-line-fill {
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  will-change: transform;
  box-shadow: 0 0 8px var(--red);
}
.pipeline-line-track-v {
  display: none;
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}
.pipeline-line-fill-v {
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.08s linear;
  will-change: transform;
  box-shadow: 0 0 8px var(--red);
}

/* Step Cards */
.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  position: relative;
  z-index: 2;
}
.pipeline-step {
  background: #101018;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: clamp(12px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  opacity: 0.28;
  transform: translateY(22px) scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
  will-change: transform, opacity;
}
.pipeline-step.is-reached {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #1a1a24;
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.pipeline-step.is-reached .step-num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.55);
}
.pipe-tag {
  font-family: var(--wide);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
}
.tag-ai {
  background: rgba(225, 6, 0, 0.2);
  border: 1px solid var(--red);
  color: #fff;
}
.tag-handmade {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid var(--blue);
  color: #fff;
}
.step-title {
  font-family: var(--wide);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(11px, 1.1vw, 13.5px);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.step-detail {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: #777;
  transition: color 0.3s;
}
.pipeline-step.is-reached .step-detail {
  color: #bbb;
}

/* ---------- FACTS ROW ---------- */
.ai-facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(70px, 9vw, 120px);
}
.ai-fact-tile {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: clamp(24px, 3.5vw, 40px) clamp(18px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ai-fact-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  opacity: 0.7;
}
.fact-big {
  font-size: clamp(52px, 7vw, 108px);
  line-height: 0.85;
  color: #fff;
  transform-origin: left bottom;
  will-change: transform, opacity;
}
.fact-small {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: #aaa;
}

/* ---------- TOOLS MARQUEE ---------- */
.ai-tools-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(32px, 4vw, 56px);
}
.ai-tools-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}
.ai-tools-marquee {
  background: transparent;
  border: none;
  padding: 8px 0;
  overflow: hidden;
}
.ai-tools-marquee .scroller {
  font-size: clamp(13px, 1.6vw, 20px);
  gap: 12px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #161622;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 99px;
  font-family: var(--wide);
  font-weight: 800;
  color: #fff;
  margin-right: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tool-sep {
  color: var(--red);
  font-style: normal;
  font-size: 10px;
  margin-left: 6px;
}

/* ---------- RESPONSIVE BREAKPOINTS (AI STUDIO) ---------- */
@media (max-width: 1080px) {
  .pipeline-steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .pipeline-line-track, .pipeline-svg-desktop {
    display: none;
  }
}

@media (max-width: 860px) {
  .orbit-body {
    grid-template-columns: 1fr 280px;
  }
  .orbit-engine {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .orbit-body {
    grid-template-columns: 1fr;
  }
  .orbit-director {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .orbit-monitor-panel {
    border-right: none;
  }
  .orbit-monitor-bezel {
    max-width: 200px;
  }
  .ai-pipeline-wrap {
    position: relative;
  }
  .pipeline-line-track-v {
    display: block;
    left: 20px;
  }
  .pipeline-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 48px;
  }
  .pipeline-step {
    position: relative;
  }
  .step-top {
    margin-bottom: 8px;
  }
  .step-num {
    position: absolute;
    left: -42px;
    top: 14px;
    width: 28px;
    height: 28px;
  }
  .ai-facts-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .ai-studio {
    padding: clamp(48px, 8vw, 80px) var(--pad);
  }
  .orbit-chrome {
    padding: 9px 12px;
  }
  .orbit-window-title {
    display: none;
  }
  .orbit-pill {
    font-size: 9px;
    padding: 2px 8px;
  }
  .orbit-timeline-wrap {
    padding: 8px 10px 10px;
  }
  .orbit-timeline-ruler span:nth-child(2),
  .orbit-timeline-ruler span:nth-child(4) {
    display: none;
  }
  .track-label {
    width: 70px;
    font-size: 7.5px;
    padding-left: 4px;
  }
  .tool-chip {
    padding: 6px 14px;
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  .pipeline-steps-grid {
    padding-left: 42px;
  }
  .step-num {
    left: -38px;
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .pipeline-line-track-v {
    left: 17px;
  }
  .orbit-monitor-bezel {
    max-width: 180px;
  }
}

/* ---------- PREFERS REDUCED MOTION (AI STUDIO) ---------- */
@media (prefers-reduced-motion: reduce) {
  .orbit-ai-dot,
  .prompt-cursor,
  .fallback-icon,
  .clip-shimmer::after {
    animation: none !important;
  }
  .orbit-flash-cut {
    display: none !important;
  }
  .pipeline-step {
    opacity: 1 !important;
    transform: none !important;
  }
  .pipeline-line-fill {
    transform: scaleX(1) !important;
  }
  .pipeline-line-fill-v {
    transform: scaleY(1) !important;
  }
  .pipeline-svg-path {
    stroke-dashoffset: 0 !important;
  }
  .engine-fallback {
    opacity: 1 !important;
    transform: none !important;
  }
  .check-item {
    opacity: 1 !important;
    transform: none !important;
    color: #fff !important;
  }
  .check-item .check-box {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
  }
  .check-item .check-box::after {
    content: "✓" !important;
  }
}


/* ---------- HERO BADGE v2: single SVG, everything rotates around the same centre ---------- */
.hero-badge-ring, .hero-badge-core { display: none !important; }
.hero-badge-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-badge-svg .hb-ring,
.hero-badge-svg .hb-glow,
.hero-badge-svg .hb-star {
  transform-box: view-box;
  transform-origin: 100px 100px;
}
.hero-badge-svg .hb-ring { animation: badgeSpin 16s linear infinite; }
.hero-badge-svg text {
  font-family: var(--wide); font-stretch: 115%; font-weight: 800;
  font-size: 14px; letter-spacing: .04em; fill: var(--ink);
}
.hero-badge-svg .hb-disc { fill: var(--red); }
.hero-badge-svg .hb-glow { fill: var(--red); opacity: .35; animation: hbGlow 2.4s ease-out infinite; }
.hero-badge-svg .hb-star { fill: #fff; animation: badgeSpin 6s linear infinite reverse; }
@keyframes hbGlow { 0% { transform: scale(1); opacity: .4; } 70%, 100% { transform: scale(1.38); opacity: 0; } }
@media (max-width: 560px) { .hero-badge-svg text { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-badge-svg .hb-ring, .hero-badge-svg .hb-glow, .hero-badge-svg .hb-star { animation: none; }
}


/* Perspective and depth for the studio badge and Motion cards. */
.hero.is-revealed .hero-badge {
  transform: perspective(420px) rotateX(13deg) rotateY(-17deg);
}
.hero-badge-svg .hb-disc {
  filter: drop-shadow(1px 2px 0 #a71018) drop-shadow(2px 4px 0 #580c14);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #motion .vtile:hover {
    transform: perspective(900px) translateY(-6px) rotateX(6deg) rotateY(-7deg);
    box-shadow: 6px 10px 0 #261316, 12px 23px 32px rgba(0,0,0,.52);
  }
}
