/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #08080b;
  --bg-2: #0d0d12;
  --panel: #111117;
  --panel-2: #16161d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f3f5;
  --muted: #8b8b97;
  --dim: #5c5c68;
  --red: #e8364f;
  --red-2: #ff5770;
  --red-deep: #8e0f24;
  --blue: #1e9bff;
  --display: "Anton", "Impact", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Kaushan Script", cursive;
  --gutter: clamp(16px, 4.5vw, 96px);
  --max: 2400px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.touring { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.red { color: var(--red); }
.muted { color: var(--muted); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); line-height: 1.5;
}
.eyebrow.small { font-size: 10px; color: var(--muted); }
.eyebrow.small b { color: var(--text); }

.title-xl, .title-lg, .title-md, .title-sm, .hero-name, .hero-word {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em;
}
.title-xl { font-size: clamp(52px, 7.6vw, 112px); line-height: 0.92; }
.title-lg { font-size: clamp(40px, 5.4vw, 78px); line-height: 0.95; }
.title-md { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.title-sm { font-size: clamp(28px, 3vw, 42px); line-height: 0.95; }
.body { color: #c9c9d1; font-size: 15px; max-width: 44ch; }

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head .eyebrow { margin-bottom: 14px; }

.link-arrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; transition: color .25s;
}
.link-arrow:hover { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 16px 22px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 4px; transition: transform .25s, background .25s, box-shadow .25s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 54, 79, .7); }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); }

.chip {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: #cfcfd6;
  transition: background .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.chip.is-active { background: #fff; color: #0a0a0d; border-color: #fff; }
.chip.sm { padding: 6px 12px; font-size: 11px; border-radius: 4px; background: var(--panel-2); border-color: var(--line); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 8, 11, .94); border-color: var(--line); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.logo { font-family: var(--display); font-size: 24px; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 4px; justify-self: start; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; margin-left: 3px; box-shadow: 0 0 12px var(--red); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 13px; color: #bdbdc6; position: relative; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.replay-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); transition: color .25s; }
.replay-link svg { width: 12px; height: 12px; fill: currentColor; }
.replay-link:hover { color: var(--blue); }
.talk { font-size: 13px; font-weight: 700; display: inline-flex; gap: 8px; }
.talk span { color: var(--red); transition: transform .25s; }
.talk:hover span { transform: translate(2px, -2px); }
.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: max(680px, 100vh); min-height: max(680px, 100svh);
  overflow: hidden; padding-top: var(--nav-h);
  background:
    radial-gradient(60% 55% at 58% 38%, rgba(200, 20, 45, .22), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(232, 54, 79, .08), transparent 70%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 32%; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}
.hero-word {
  position: absolute; z-index: 1; left: 50%; top: calc(var(--nav-h) + 1vh);
  transform: translateX(calc(-50% + var(--wx, 0px)));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  font-size: clamp(120px, 21.5vw, 360px); line-height: 0.86; white-space: nowrap; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ff4560 0%, #d71f3c 38%, #7d0b1d 72%, rgba(60, 0, 10, 0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 20px 60px rgba(232, 54, 79, .18));
  user-select: none;
}
.hero-portrait {
  position: absolute; z-index: 2; bottom: 0; left: 57%;
  transform: translate(calc(-50% + var(--px, 0px)), var(--py, 0px));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  height: min(92%, 980px); aspect-ratio: 981 / 1300;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0 40px rgba(0,0,0,.6)); }

.hero-grid {
  position: relative; z-index: 4; height: calc(max(680px, 100vh) - var(--nav-h) - 110px);
  height: calc(max(680px, 100svh) - var(--nav-h) - 110px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
}
.hero-left { max-width: 420px; padding-top: 6vh; }
.hero-left .eyebrow { font-size: 10px; margin-bottom: 18px; color: var(--red); }
.hero-left .eyebrow .muted { color: var(--muted); }
.hello { font-family: var(--script); font-size: clamp(26px, 2.6vw, 40px); line-height: 1; transform: rotate(-4deg); transform-origin: left; margin-bottom: 4px; }
.hero-name {
  font-size: clamp(64px, 8.4vw, 132px); line-height: .9; color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .55); margin-left: -4px; white-space: nowrap;
}
.hero-surname { font-family: var(--display); font-size: clamp(26px, 3vw, 46px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-top: 6px; }
.hero-role { margin-top: 18px; font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.12; text-transform: uppercase; color: var(--red); }
.hero-desc { margin-top: 18px; font-size: 14px; color: #c8c8d0; max-width: 34ch; }
.hero-left .btn { margin-top: 26px; min-width: 210px; }
.hero-loc { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-loc svg { width: 13px; height: 13px; fill: var(--red); }

.hero-right { width: 220px; display: flex; flex-direction: column; gap: 26px; padding-top: 4vh; }
.tagline { font-size: 12px; color: #d4d4da; line-height: 1.5; position: relative; padding-left: 26px; }
.tagline .spark { position: absolute; left: 0; top: -2px; color: var(--red); font-size: 18px; }
.stats { display: flex; flex-direction: column; gap: 16px; }
.stats li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0 2px; }
.stats b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--red); min-width: 1ch; }
.stats .red { font-family: var(--display); font-size: 46px; line-height: 1; }
.stats small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-left: 14px; line-height: 1.4; }
.dl-link { display: inline-flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.dl-link svg { width: 14px; height: 14px; color: var(--red); }
.dl-link:hover { color: var(--red); }

.hero-bottom {
  position: relative; z-index: 4; height: 110px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.showreel { display: inline-flex; align-items: center; gap: 14px; text-align: left; justify-self: start; }
.showreel b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.showreel small { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.play-ring { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--red); display: grid; place-items: center; transition: background .25s, transform .25s; }
.play-ring svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
.showreel:hover .play-ring { background: var(--red); transform: scale(1.06); }
.scroll-hint { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-hint span { display: inline-block; animation: bob 1.8s ease-in-out infinite; color: var(--red); }
.hero-meta { justify-self: end; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* =========================================================
   WORK
   ========================================================= */
.work { padding-top: 60px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.work-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px;
}
.work-track::-webkit-scrollbar { display: none; }
.work-card { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .3s, transform .4s; cursor: pointer; }
.work-card:hover { border-color: rgba(232, 54, 79, .5); transform: translateY(-4px); }
.work-card.is-hidden { display: none; }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1b1b22; }
.thumb img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.thumb::before { content: ""; position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); background: inherit; }
.work-card:hover .thumb::before, .work-card:hover .thumb img { transform: scale(1.06); }

.tag { position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.72); padding: 4px 8px; border-radius: 3px; }
.thumb-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(232,54,79,.9); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; }
.thumb-play::after { content: ""; position: absolute; left: 22px; top: 18px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.work-card:hover .thumb-play { opacity: 1; transform: scale(1); }

/* Placeholder "frames" — replace with real thumbnails */
.scene-1 { background:
  radial-gradient(30% 45% at 30% 45%, #f2d6c9 0%, transparent 70%),
  radial-gradient(20% 30% at 72% 30%, #ffb7c8 0%, transparent 70%),
  radial-gradient(14% 18% at 85% 70%, #7fd6ff 0%, transparent 70%),
  linear-gradient(120deg, #b7c9d6 0%, #6b7f99 40%, #2b2f40 100%); }
.scene-2 { background:
  radial-gradient(26% 40% at 62% 46%, #ffd2b8 0%, transparent 70%),
  radial-gradient(22% 36% at 36% 52%, #2b5a3c 0%, transparent 70%),
  linear-gradient(90deg, #3a0d12 0%, #c2423a 45%, #e3734e 70%, #5e1a17 100%); }
.scene-3 { background:
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(160, 255, 255, .18) 22px 24px),
  radial-gradient(10% 8% at 30% 40%, #ff5e8a 0%, transparent 70%),
  radial-gradient(8% 6% at 66% 28%, #ffd36b 0%, transparent 70%),
  linear-gradient(180deg, #071d2a 0%, #0f5f74 55%, #8ff3ff 100%); }
.scene-4 { background:
  radial-gradient(35% 50% at 50% 60%, #ffe0a3 0%, transparent 70%),
  linear-gradient(150deg, #2d1d0a 0%, #a8701e 50%, #1a1206 100%); }
.scene-5 { background:
  radial-gradient(30% 50% at 70% 40%, #ff7ad9 0%, transparent 70%),
  radial-gradient(30% 40% at 25% 65%, #5d5bff 0%, transparent 70%),
  linear-gradient(160deg, #120a2a 0%, #3b1260 60%, #0b0716 100%); }
.scene-6 { background:
  radial-gradient(16% 34% at 50% 52%, #f5f7fa 0%, #9aa7b8 45%, transparent 72%),
  linear-gradient(180deg, #0c1016 0%, #273242 60%, #0b0d12 100%); }

.work-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 20px 20px 24px; }
.work-meta .num { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--red); }
.work-meta h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.work-meta p { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.work-meta .arrow { color: var(--muted); transition: color .25s, transform .25s; }
.work-card:hover .arrow { color: var(--red); transform: translate(2px, -2px); }

.track-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; }
.track-nav .count { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.round:hover { background: var(--red); border-color: var(--red); }

.clients { margin-top: 70px; display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
.logo-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; align-items: center; gap: 64px; width: max-content; padding: 20px 4%; }
html.live .logo-track.marquee { animation: marquee 32s linear infinite; }
.logo-row:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lg { white-space: nowrap; color: #d9d9df; opacity: .85; transition: opacity .25s, color .25s; }
.lg:hover { opacity: 1; color: #fff; }
.lg-1 { font-family: var(--display); font-size: 36px; color: var(--red); letter-spacing: .04em; }
.lg-2 { font-family: var(--display); font-size: 26px; font-style: italic; background: linear-gradient(90deg, #ff5a6e, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-3 { font-weight: 800; font-size: 22px; letter-spacing: .06em; }
.lg-3 i { font-style: normal; font-weight: 400; }
.lg-4 { font-family: var(--script); font-size: 28px; color: #ffb347; }
.lg-5 { font-weight: 700; font-size: 20px; letter-spacing: .2em; color: #7dffb0; }
.lg-6 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; color: #9fb6ff; }
.lg-7 { font-family: var(--display); font-size: 24px; letter-spacing: .1em; }

/* =========================================================
   AWARDS
   ========================================================= */
.awards { background: linear-gradient(180deg, var(--bg) 0%, #120a10 30%, #0d0a0f 70%, var(--bg) 100%); }
.awards-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 90px); }
.awards-left .eyebrow { margin-bottom: 18px; color: var(--muted); }
.laurel { position: relative; display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 6px; margin: 40px 0 26px; }
.laurel .leaf { width: 34px; height: 76px; fill: var(--red); }
.laurel .leaf.r { transform: scaleX(-1); }
.laurel .big { font-family: var(--display); font-size: 104px; line-height: 1; display: inline-flex; }
.laurel .big .red { font-size: 50px; margin-top: 8px; }
.laurel small { grid-column: 1 / -1; text-align: center; font-size: 10px; letter-spacing: .2em; color: var(--red); font-weight: 700; text-transform: uppercase; }
.awards-left .body { margin-bottom: 28px; }
.list-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.award-list li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s;
}
.award-list li:hover { background: linear-gradient(90deg, rgba(232,54,79,.08), transparent); padding-left: 10px; }
.award-list .i { font-size: 10px; color: var(--dim); }
.award-list h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.award-list p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.award-list .yr { font-family: var(--display); font-size: 30px; color: var(--red); }

/* =========================================================
   RAW -> REAL
   ========================================================= */
.raw-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.raw-left .title-xl, .contact-left .title-xl { font-size: clamp(48px, 6.2vw, 96px); white-space: nowrap; }
.raw-left .eyebrow { margin-bottom: 20px; color: var(--muted); }
.raw-left .body { margin-top: 26px; }
.hint { margin-top: 28px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); --pos: 50%; user-select: none; background: #111; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-before img { filter: saturate(.55) contrast(.85) brightness(1.08); }
.cmp-before::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(30,155,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(30,155,255,.35) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cmp-label { position: absolute; top: 14px; z-index: 3; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; background: rgba(0,0,0,.6); border-radius: 3px; }
.cmp-label.l { left: 14px; }
.cmp-label.r { right: 14px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; z-index: 3; pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: 18px; box-shadow: 0 0 0 6px rgba(232,54,79,.25); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-bottom: 70px; }
.about-head .eyebrow { margin-bottom: 20px; color: var(--muted); }
.about-bio { font-size: 13px; color: #b9b9c2; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.col-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 24px; }
.label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 12px; }
.edu { padding: 12px 0; border-bottom: 1px solid var(--line); }
.edu h4 { font-size: 14px; font-weight: 700; }
.edu p { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #15151c; border: 1px solid var(--line-2); transition: transform .25s, border-color .25s; }
.tool img { width: 22px; height: 22px; }
.tool:hover { border-color: rgba(232, 54, 79, .5); }
.tool:hover { transform: translateY(-3px); }

.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 47px; top: 10px; bottom: 10px; width: 1.5px; background: linear-gradient(var(--red), rgba(232,54,79,.2)); transform-origin: top; }
.steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 30px; padding-bottom: 26px; }
.steps li::before { content: ""; position: absolute; left: 42px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--red); background: var(--bg); }
.steps .n { font-family: var(--display); font-size: 24px; color: var(--red); line-height: 1; }
.steps h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.steps p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

.quote-card {
  position: relative; padding: 34px 30px 30px; border-radius: 4px; min-height: 420px;
  background: linear-gradient(160deg, #e8364f 0%, #b01a33 45%, #5e0a19 100%);
  box-shadow: 0 30px 80px -30px rgba(232, 54, 79, .6);
  display: flex; flex-direction: column;
}
.qc-photo {
  width: calc(100% + 60px); max-width: none; height: auto; margin: -34px -30px 26px; aspect-ratio: 4 / 3.4;
  object-fit: cover; object-position: 50% 18%; border-radius: 4px 4px 0 0; display: block;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.quote-card .q { font-family: Georgia, serif; font-size: 70px; line-height: .6; color: rgba(255,255,255,.55); }
.quote-card blockquote { font-size: 24px; line-height: 1.25; font-weight: 500; margin-top: 22px; }
.quote-card .sig { font-family: var(--script); font-size: 32px; margin-top: 20px; }
.qc-foot { margin-top: auto; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.quote-card .spark { position: absolute; right: 26px; bottom: 26px; font-size: 22px; opacity: .8; }

/* =========================================================
   JOURNEY
   ========================================================= */
.journey-line { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + max(0px, (100% - var(--max)) / 2) + 180px); width: 1.5px; background: linear-gradient(transparent, var(--red) 10%, var(--red) 80%, transparent); transform-origin: top; opacity: .8; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(30px, 6vw, 90px); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.timeline .when.red { color: var(--red); }
.timeline h3 { font-size: 20px; font-weight: 700; }
.timeline .sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 2px 0 10px; }
.timeline p:not(.sub) { font-size: 13px; color: #b6b6bf; max-width: 56ch; }
.wins .eyebrow { margin-bottom: 14px; }
.wins ul { margin-top: 30px; }
.wins li { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.wins li span { color: var(--red); font-weight: 700; font-size: 12px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 20% 40%, rgba(232,54,79,.08), transparent 70%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.contact-left .eyebrow { margin-bottom: 20px; color: var(--muted); }
.contact-left .body { margin-top: 22px; }
.cta-link { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.cta-link .ring { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--red); display: grid; place-items: center; color: #fff; font-size: 16px; transition: background .25s, transform .25s; }
.cta-link:hover .ring { background: var(--red); transform: rotate(45deg); }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .ic { width: 40px; height: 40px; flex: none; color: var(--red); display: grid; place-items: center; }
.contact-list .ic svg { width: 24px; height: 24px; }
.contact-list small { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-size: 14px; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.cta-card {
  position: relative; aspect-ratio: 4 / 3.2; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.6)),
    radial-gradient(60% 70% at 70% 30%, rgba(232,54,79,.25), transparent 70%),
    linear-gradient(135deg, #1a1a22, #0b0b0f);
  padding: 20px 22px; display: flex; flex-direction: column;
}
.cta-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.mini-logo { font-family: var(--display); font-size: 14px; display: inline-flex; align-items: center; }
.mini-logo .dot { width: 5px; height: 5px; }
.rec { display: inline-flex; gap: 6px; align-items: center; letter-spacing: .14em; color: var(--muted); }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cta-title { font-family: var(--display); font-size: clamp(40px, 4.4vw, 64px); line-height: .92; margin-top: auto; margin-bottom: auto; }
.cta-play { position: absolute; right: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .25s, box-shadow .25s; }
.cta-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.cta-play:hover { transform: scale(1.08); }
.cta-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(232,54,79,.45); animation: pulseRing 2.4s ease-out infinite; pointer-events: none; }
.cta-play svg { position: relative; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.65); opacity: 0; } }

.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.footer .logo { font-size: 20px; color: var(--text); }
.to-top:hover { color: var(--red); }

/* Showreel modal */
.reel-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.reel-modal[hidden] { display: none; }
.reel-box { position: relative; width: min(1000px, 100%); }
.reel-frame { aspect-ratio: 16 / 9; background: #0e0e13; border: 1px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; overflow: hidden; }
.reel-frame iframe { width: 100%; height: 100%; border: 0; }
.reel-frame code { color: var(--red); }
.reel-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-column: 1 / -1; min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
  .hero-right { width: 180px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8,8,11,.97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .replay-link, .talk { display: none; }

  .hero { min-height: auto; padding-bottom: 0; }
  .hero-word { font-size: 25vw; top: calc(var(--nav-h) + 12px); }
  .hero-portrait { position: relative; left: auto; transform: none; margin: 8vw auto 0; height: auto; width: min(86vw, 460px); }
  .hero::after { height: 18%; }
  .hero-portrait img { -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); }
  .hero-grid { height: auto; grid-template-columns: 1fr; margin-top: -26vw; gap: 30px; padding-bottom: 20px; }
  .hero-left { padding-top: 0; max-width: none; }
  .hero-right { width: auto; padding-top: 0; }
  .stats { flex-direction: row; justify-content: space-between; }
  .stats li { display: flex; flex-wrap: wrap; align-items: baseline; }
  .stats small { flex-basis: 100%; padding-left: 0; margin-top: 4px; }
  .hero-bottom { height: auto; grid-template-columns: 1fr; gap: 14px; padding: 20px var(--gutter) 40px; }
  .hero-meta, .scroll-hint { justify-self: start; }

  .sec-head { flex-direction: column; align-items: flex-start; }
  .work-track { grid-auto-columns: 82%; }
  .clients { grid-template-columns: 1fr; gap: 10px; }
  .awards-grid, .raw-grid, .about-head, .about-grid, .journey-grid, .contact-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .journey-line { display: none; }
  .cta-card { aspect-ratio: 4 / 3; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   AGENT BUILD TOUR
   ========================================================= */
/* Layers waiting for an agent */
html.tour-pending [data-b]:not(.b-done):not(.b-active) { opacity: 0 !important; }
html.tour-pending .logo-track.marquee { animation: none; }
html.tour-pending .lg-clone { opacity: 0; }

[data-b].b-active { opacity: 1; }
.b-done { animation: bDone .35s ease-out; }
@keyframes bDone { from { filter: brightness(1.6); } }

/* wireframe box */
.b-wire { background: transparent !important; box-shadow: inset 0 0 0 1px rgba(30,155,255,.75) !important; border-color: transparent !important; }
.b-wire > :not([data-b]) { opacity: 0; }
.b-wire::before, .b-wire::after { opacity: 0 !important; }
.b-fill { animation: bFill calc(.5s / var(--spd, 1)) ease-out both; }
@keyframes bFill { from { opacity: .3; filter: saturate(0) brightness(1.4); } }

/* typing */
.b-typing { background-color: rgba(30, 155, 255, .16); border-radius: 2px; }
.b-glitch { animation: glitch .12s steps(2) infinite; }
@keyframes glitch {
  0% { text-shadow: 3px 0 #ff2a55, -3px 0 #2af5ff; transform: translateX(1px); }
  50% { text-shadow: -2px 0 #ff2a55, 2px 0 #2af5ff; transform: translateX(-1px); }
  100% { text-shadow: 1px 0 #ff2a55, -1px 0 #2af5ff; transform: none; }
}

/* outline -> fill (giant words) */
.b-outline { -webkit-text-stroke: 1.5px rgba(30,155,255,.95); -webkit-text-fill-color: transparent !important; background: none !important; filter: none !important; }
.b-clip { clip-path: inset(0 var(--clip, 100%) 0 0); }

/* image reveal */
.b-reveal { animation: bReveal calc(.8s / var(--spd, 1)) cubic-bezier(.2,.7,.2,1) both; }
@keyframes bReveal { from { opacity: 0; filter: blur(18px) saturate(0); transform: scale(1.02); } }

/* pop */
.b-pop { animation: bPop calc(.45s / var(--spd, 1)) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes bPop { from { opacity: 0; transform: scale(.6); } }

/* fade */
.b-fade { animation: bFade calc(.5s / var(--spd, 1)) ease-out both; }
@keyframes bFade { from { opacity: 0; transform: translateY(10px); } }

/* line draw */
.b-line { animation: bLine calc(1s / var(--spd, 1)) cubic-bezier(.6,0,.2,1) both; }
@keyframes bLine { from { transform: scaleY(0); } }

/* overlay layer */
#bt-layer { position: fixed; inset: 0; z-index: 9000; pointer-events: none; overflow: hidden; }
#bt-layer * { pointer-events: none; }
.bt-agent { position: absolute; left: 0; top: 0; width: 18px; height: 18px; transform-origin: 0 0; will-change: transform; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.bt-agent svg { display: block; width: 18px; height: 18px; overflow: visible; }
.bt-agent .nm { position: absolute; left: 14px; top: 16px; font: 700 9px/1 var(--sans); padding: 3px 5px; border-radius: 3px; color: #0b0b0e; white-space: nowrap; opacity: 0; transition: opacity .3s; }

.bt-sel { position: absolute; left: 0; top: 0; border: 1px solid var(--blue); box-shadow: 0 0 0 1px rgba(30,155,255,.15), 0 0 20px rgba(30,155,255,.15); }
.bt-sel i { position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid var(--blue); }
.bt-sel i:nth-child(1) { left: -4px; top: -4px; }
.bt-sel i:nth-child(2) { right: -4px; top: -4px; }
.bt-sel i:nth-child(3) { left: -4px; bottom: -4px; }
.bt-sel i:nth-child(4) { right: -4px; bottom: -4px; }
.bt-sel b { position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); background: var(--blue); color: #fff; font: 600 9px/1 var(--sans); padding: 3px 6px; border-radius: 2px; white-space: nowrap; }
.bt-sel.out { opacity: 0; }
.bt-ph { position: absolute; left: 0; top: 0; background: linear-gradient(135deg, #4b5b72, #2e3a4d); transition: opacity .5s; overflow: hidden; }
.bt-ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); animation: shimmer 1.1s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.bt-ph.out { opacity: 0; }
.bt-ghost { position: absolute; left: 0; top: 0; border: 1px solid rgba(255, 60, 90, .9); background: rgba(232,54,79,.12); box-shadow: 0 0 14px rgba(232,54,79,.5); }
.bt-caret { position: absolute; left: 0; top: 0; width: 2px; background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.bt-caret::before, .bt-caret::after { content: ""; position: absolute; left: -3px; width: 8px; height: 2px; background: var(--blue); }
.bt-caret::before { top: 0; }
.bt-caret::after { bottom: 0; }
.bt-mark { position: absolute; left: 0; top: 0; font: 700 15px/1 var(--sans); transform: translate(-50%, -50%); transition: transform .35s, opacity .5s; }
.bt-mark.plus { transform: translate(-50%, -50%) rotate(45deg); }
.bt-mark.out { opacity: 0; }
.bt-guide { position: absolute; background: rgba(30,155,255,.45); transition: transform .6s cubic-bezier(.6,0,.2,1), opacity .5s; }
.bt-guide.h { height: 1px; left: 0; right: 0; transform: scaleX(0); transform-origin: left; }
.bt-guide.v { width: 1px; top: 0; bottom: 0; transform: scaleY(0); transform-origin: top; }
.bt-guide.on { transform: none; }
.bt-guide.out { opacity: 0; }
.bt-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 120px/1 var(--display); color: #23232b; transition: opacity .6s, transform .6s; }
.bt-mono.out { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
.bt-ruler { position: absolute; background: rgba(14, 22, 34, .92); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s; overflow: hidden; }
.bt-ruler.top { left: 0; right: 0; top: 0; height: 18px; transform: translateY(-100%); border-bottom: 1px solid rgba(30,155,255,.5);
  background-image: repeating-linear-gradient(90deg, rgba(120,180,255,.5) 0 1px, transparent 1px 10px), linear-gradient(rgba(14,22,34,.92), rgba(14,22,34,.92));
  background-size: 100% 5px, 100% 100%; background-repeat: no-repeat; background-position: bottom, 0 0; }
.bt-ruler.left { left: 0; top: 0; bottom: 0; width: 18px; transform: translateX(-100%); border-right: 1px solid rgba(30,155,255,.5);
  background-image: repeating-linear-gradient(180deg, rgba(120,180,255,.5) 0 1px, transparent 1px 10px), linear-gradient(rgba(14,22,34,.92), rgba(14,22,34,.92));
  background-size: 5px 100%, 100% 100%; background-repeat: no-repeat; background-position: right, 0 0; }
.bt-ruler.on { transform: none; }
.bt-ruler.out { opacity: 0; }
.bt-ruler span { position: absolute; font: 500 8px/1 var(--sans); color: rgba(150,200,255,.75); }
.bt-ruler.top span { top: 3px; }
.bt-ruler.left span { left: 2px; writing-mode: vertical-rl; transform: rotate(180deg); }
.bt-glow { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 30px 6px rgba(30,155,255,.45); opacity: 0; transition: opacity .6s; }
.bt-glow.on { opacity: 1; }

/* control bar */
.bt-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 9100; transform: translate(-50%, 30px); opacity: 0;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-radius: 12px;
  background: rgba(20, 22, 30, .88); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); font: 600 12px/1 var(--sans); color: #e8e8ee; white-space: nowrap;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s; max-width: calc(100vw - 24px);
}
.bt-bar.on { transform: translate(-50%, 0); opacity: 1; }
.bt-bar .avs { display: flex; }
.bt-bar .avs i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #15161d; margin-left: -6px; font: 800 9px/16px var(--sans); text-align: center; color: #111; font-style: normal; }
.bt-bar .avs i:first-child { margin-left: 0; }
.bt-bar .stat { color: #c7c7d0; font-variant-numeric: tabular-nums; gap: .3em; }
.bt-bar .stat b { color: #fff; }
.bt-bar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.15); }
.bt-bar .prog { width: 80px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.bt-bar .prog i { display: block; height: 100%; width: 0; background: var(--blue); box-shadow: 0 0 8px var(--blue); transition: width .3s; }
.bt-bar button { height: 28px; min-width: 28px; padding: 0 10px; border-radius: 7px; background: rgba(255,255,255,.07); color: #dcdce4; font-size: 11px; font-weight: 700; transition: background .2s; pointer-events: auto; }
.bt-bar button:hover { background: rgba(255,255,255,.14); }
.bt-bar button.pri { background: var(--blue); color: #fff; }
.bt-bar button.pri:hover { background: #3aa9ff; }
.bt-bar button svg { width: 13px; height: 13px; fill: currentColor; vertical-align: middle; }
.bt-bar [data-m] { display: none; }
.bt-bar[data-mode="scan"] [data-m~="scan"], .bt-bar[data-mode="run"] [data-m~="run"], .bt-bar[data-mode="done"] [data-m~="done"] { display: inline-flex; align-items: center; justify-content: center; }
.bt-bar .scan { color: #c7c7d0; gap: 10px; }
.bt-bar .scan .prog i { width: 40%; animation: scanbar 1s ease-in-out infinite alternate; }
@keyframes scanbar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

@media (max-width: 860px) {
  .bt-ruler, .bt-bar .prog, .bt-bar .avs, .bt-bar .sep { display: none !important; }
  .bt-bar { gap: 8px; font-size: 11px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Apps list: long descriptions need room on small screens */
@media (max-width: 640px) {
  .award-list .yr { font-size: 20px; }
}

/* =========================================================
   SCROLL 3D: "AGENT RENDER" (js/scroll3d.js)
   Individual transform properties compose with each element's
   own `transform`, so hover lifts and parallax keep working.
   ========================================================= */
.s3d-stage { perspective: 1100px; perspective-origin: 50% 50%; }
main, .footer { overflow: clip; } /* 3D-tilted blocks must not grow the page */
html.s3d-live .s3d { outline: 1px dashed transparent; outline-offset: 4px; }
/* Cards/images: solid blue wireframe while "rendering". */
html.s3d-live .s3d-img { outline-style: solid; outline-offset: 8px; will-change: translate, rotate, opacity; }
html.s3d-live .work-card.s3d { transition: border-color .3s, transform .4s; }
html.s3d-measure .s3d { translate: none !important; rotate: none !important; scale: none !important; }

.s3d-hud { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.s3d-label {
  position: absolute; left: 0; top: 0; display: flex; gap: 8px; align-items: center; white-space: nowrap;
  font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  padding: 4px 7px; border-radius: 3px; background: #1e9bff; color: #04121f;
  box-shadow: 0 6px 20px -6px rgba(30, 155, 255, .7);
}
.s3d-label span { font-weight: 500; opacity: .75; }

.s3d-log {
  position: fixed; right: 18px; bottom: 18px; z-index: 61; width: 340px; pointer-events: none;
  background: rgba(8, 10, 16, .96); border: 1px solid rgba(30, 155, 255, .35); border-radius: 8px;
  font: 11px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #9fb0c8;
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s;
}
.s3d-log.on { opacity: 1; transform: none; }
.s3d-log-head { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.07); color: #6f7d93; }
.s3d-log-head i { width: 8px; height: 8px; border-radius: 50%; background: #3a3f4b; }
.s3d-log-head i:first-child { background: #e8364f; }
.s3d-log-head span { margin-left: 6px; }
.s3d-log ol { list-style: none; margin: 0; padding: 8px 10px; min-height: 96px; }
.s3d-log li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: s3dLine .25s ease-out; }
.s3d-log li b { color: #7dffb0; font-weight: 700; }
.s3d-log li.un b { color: #ffb36b; }
.s3d-log li code { color: #e6edf7; }
.s3d-log li em { color: #5d6b80; font-style: normal; }
@keyframes s3dLine { from { opacity: 0; transform: translateX(-6px); } }
@media (max-width: 700px) { .s3d-log { display: none; } .s3d-label { font-size: 10px; } }

/* =========================================================
   FROM CODE → TO APP slider (real Nova Player source vs. app)
   ========================================================= */
.compare.code-app { container-type: inline-size; background: #0d1117; }
.compare.code-app .cmp-after { object-position: 50% 50%; }
.compare.code-app .cmp-before::after { opacity: .12; }
.code-pane {
  position: absolute; inset: 0; background: #0d1117; color: #c9d1d9;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 1.48cqw; line-height: 1.55; display: flex; flex-direction: column;
}
.code-tabs { display: flex; gap: 1px; background: #010409; border-bottom: 1px solid #21262d; padding-top: 2.6em; flex: none; }
.code-tabs span { padding: .55em 1.2em; color: #7d8590; background: #010409; }
.code-tabs span.on { color: #e6edf3; background: #0d1117; box-shadow: inset 0 2px 0 var(--red); }
.code-pane pre { margin: 0; padding: .9em 0; overflow: hidden; flex: 1; }
.code-pane code { font: inherit; white-space: pre; display: block; }
.code-pane .ln { display: inline-block; width: 3.6em; padding-right: 1.1em; text-align: right; color: #484f58; user-select: none; }
.c-kw { color: #ff7b72; }
.c-self { color: #79c0ff; }
.c-fn { color: #d2a8ff; }
.c-str { color: #a5d6ff; }
.c-num { color: #79c0ff; }
.c-com { color: #8b949e; font-style: italic; }
.c-cls { color: #ffa657; }
@media (max-width: 640px) {
  .compare.code-app { aspect-ratio: 4 / 5; }
  .compare.code-app .cmp-after { object-fit: contain; background: #0a0a10; }
  .code-pane { font-size: 2.35cqw; }
  .code-pane .ln { width: 3em; padding-right: .8em; }
}

/* Tech stack marquee: real logos + name */
.logo-track .lg {
  display: inline-flex; align-items: center; gap: 12px; opacity: 1;
  font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #e4e4ea;
}
.logo-track .lg img { width: 30px; height: 30px; flex: none; }
.logo-track .lg:hover { color: #fff; }
@media (max-width: 640px) {
  .logo-track .lg { font-size: 15px; gap: 9px; }
  .logo-track .lg img { width: 24px; height: 24px; }
}

/* Pause looping animations while their section is off screen (main.js). */
.is-off .logo-track, .is-off .cta-play::before, .is-off .rec i, .is-off .scroll-hint span { animation-play-state: paused !important; }
