:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --panel: rgba(16, 16, 28, 0.72);
  --line: rgba(243, 230, 0, 0.22);
  --text: #e9e9f2;
  --muted: #9a9ab3;
  --yellow: #f3e600;
  --cyan: #00f0ff;
  --red: #ff2a6d;
  --cut: 18px;
  --font-head: "Chakra Petch", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { /* ambient neon glow */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 240, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(255, 42, 109, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(243, 230, 0, 0.07), transparent 60%);
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--cyan); }
strong { color: var(--yellow); font-weight: 600; }
::selection { background: var(--yellow); color: #000; }

/* ---------- overlays ---------- */
.fx-scan, .fx-noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.fx-scan {
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.fx-noise {
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(7,7,12,0.92), rgba(7,7,12,0.6));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.12em; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--yellow); color: #000; font-size: 15px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-name { font-size: 15px; }
.blink { animation: blink 1s steps(1) infinite; color: var(--yellow); }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: 28px; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links a { color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--yellow); }
.nav-links a:not(.nav-cta)::before { content: "> "; color: var(--yellow); opacity: 0; transition: opacity .2s; }
.nav-links a:not(.nav-cta):hover::before { opacity: 1; }
.nav-cta {
  color: #000 !important; background: var(--yellow); padding: 8px 16px; font-weight: 700;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav-cta:hover { background: var(--cyan); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--yellow); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary { background: var(--yellow); color: #000; box-shadow: 0 0 0 transparent; }
.btn-primary:hover { background: var(--cyan); }
.btn-primary::after { /* glitch slice on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.btn-primary:hover::after { transform: scaleX(1); }
.btn-ghost { color: var(--cyan); background: rgba(0, 240, 255, 0.06); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn-ghost:hover { background: rgba(0, 240, 255, 0.16); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 120px clamp(16px, 4vw, 48px) 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -1;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  animation: floor 4s linear infinite;
  opacity: 0.55;
}
@keyframes floor { to { background-position: 0 60px, 0 0; } }

.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; max-width: 1240px; margin: 0 auto; width: 100%; }
.tag { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.14em; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 12px var(--red); animation: blink 1.4s steps(1) infinite; }
h1 {
  font-size: clamp(44px, 7.4vw, 104px); line-height: 0.92; font-weight: 700; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--yellow);
  text-shadow: 0 0 30px rgba(243, 230, 0, 0.25);
  margin-bottom: 28px;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); max-width: 620px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; }

/* glitch effect */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--cyan); transform: translate(-3px, 0); clip-path: inset(0 0 100% 0); animation: glitch-a 3.2s infinite steps(1); mix-blend-mode: screen; }
.glitch::after  { color: var(--red);  transform: translate(3px, 0);  clip-path: inset(0 0 100% 0); animation: glitch-b 3.2s infinite steps(1); mix-blend-mode: screen; }
@keyframes glitch-a {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
  88% { clip-path: inset(10% 0 70% 0); transform: translate(-6px, 0); }
  91% { clip-path: inset(55% 0 20% 0); transform: translate(4px, 0); }
  94% { clip-path: inset(80% 0 5% 0); transform: translate(-3px, 0); }
}
@keyframes glitch-b {
  0%, 87%, 100% { clip-path: inset(0 0 100% 0); }
  89% { clip-path: inset(65% 0 15% 0); transform: translate(6px, 0); }
  92% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0); }
  95% { clip-path: inset(40% 0 45% 0); transform: translate(3px, 0); }
}

/* HUD card */
.hud-card {
  position: relative; background: var(--panel); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 26px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  font-family: var(--font-mono); font-size: 13px;
}
.hud-card::before { content: ""; position: absolute; top: 0; left: 0; width: 60px; height: 3px; background: var(--yellow); }
.hud-head { display: flex; justify-content: space-between; color: var(--muted); letter-spacing: 0.12em; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.hud-live { color: #39ff88; }
.hud-list div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 6px 0; }
.hud-list dt { color: var(--muted); }
.hud-list dd { color: var(--text); }
.hud-stat { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 12px; }
.hud-num { font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1; color: var(--cyan); text-shadow: 0 0 24px rgba(0, 240, 255, 0.45); }
.hud-plus { font-family: var(--font-head); font-size: 40px; color: var(--cyan); font-weight: 700; }
.hud-label { margin-left: 12px; color: var(--muted); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; }
.hud-bar { height: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--yellow), var(--cyan)); animation: bar 3s ease-in-out infinite alternate; transform-origin: left; }
@keyframes bar { from { transform: scaleX(0.35); } to { transform: scaleX(1); } }
.hud-foot { margin-top: 12px; color: var(--yellow); letter-spacing: 0.1em; font-size: 12px; }

/* hero photo glimpse: profile most of the time, photo flickers in */
.hud-photo {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  animation: glimpse 14s infinite 6s;
}
.hud-card::after { /* electric sweep that rides each switch */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 6; pointer-events: none; opacity: 0;
  background: var(--cyan); box-shadow: 0 0 18px 4px rgba(0, 240, 255, 0.75), 0 0 2px #fff;
  animation: zap 14s infinite 6s;
}
.hud-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: contrast(1.06) saturate(0.9); }
.hud-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(0, 240, 255, 0.25), transparent 45%),
    linear-gradient(340deg, rgba(255, 42, 109, 0.28), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
.hud-photo-tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--yellow); background: rgba(7, 7, 12, 0.8); padding: 5px 9px; border-left: 2px solid var(--yellow);
}
/* 14 s loop, first switch 6 s in (time to read the profile):
   photo fades in over 1.2 s, holds, fades out over 1.2 s (4 s total), then profile holds 10 s */
@keyframes glimpse {
  0%          { opacity: 0;   filter: brightness(1); }
  2.5%        { opacity: .35; filter: brightness(1.8) saturate(0) hue-rotate(160deg); }
  4%          { opacity: .2;  filter: brightness(1.5) saturate(.3); }
  6.5%        { opacity: .8;  filter: brightness(1.25) saturate(.7); }
  8.6%        { opacity: 1;   filter: none; }
  20%         { opacity: 1;   filter: none; }
  22.5%       { opacity: .8;  filter: brightness(1.25) saturate(.7); }
  24.5%       { opacity: .55; filter: brightness(1.8) saturate(0) hue-rotate(160deg); }
  26%         { opacity: .65; filter: brightness(1.4); }
  28.6%, 100% { opacity: 0;   filter: none; }
}
@keyframes zap {
  0%          { opacity: 0; top: 0; }
  .4%         { opacity: 1; top: 0; }
  8.2%        { opacity: 1; top: 100%; }
  8.6%        { opacity: 0; top: 100%; }
  20%         { opacity: 0; top: 100%; }
  20.4%       { opacity: 1; top: 100%; }
  28.2%       { opacity: 1; top: 0; }
  28.6%, 100% { opacity: 0; top: 0; }
}

/* timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; padding-top: 34px; }
.timeline::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--red));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}
.tl-step {
  position: relative; padding: 26px 22px 24px; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--line);
  display: flex; flex-direction: column;
}
.tl-node { position: absolute; top: -32px; left: 22px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--yellow); transform: rotate(45deg); box-shadow: 0 0 14px rgba(243, 230, 0, 0.6); }
.tl-week { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.16em; margin-bottom: 8px; }
.tl-step h3 { font-size: 26px; margin-bottom: 16px; }
.tl-step ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.tl-step li { font-size: 15px; color: var(--muted); padding-left: 18px; position: relative; }
.tl-step li::before { content: "▸"; position: absolute; left: 0; color: var(--yellow); }
.tl-out { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--text); }
.tl-out span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red); margin-bottom: 4px; }

/* clients */
.clients { max-width: 1240px; margin: 64px auto 0; width: 100%; }
.clients-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.14em; margin-bottom: 14px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: rgba(233, 233, 242, 0.55); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; transition: color .2s; }
.marquee-track span:hover { color: var(--yellow); }
.marquee-track span::after { content: "◆"; margin-left: 56px; color: var(--red); font-size: 0.5em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 48px); max-width: 1336px; margin: 0 auto; }
.section-head { max-width: 820px; margin-bottom: 56px; }
.kicker { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: 0.16em; margin-bottom: 18px; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 20px; }
.hl { color: var(--yellow); }
.sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 680px; }
h3 { font-size: 22px; line-height: 1.15; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }

/* scan */
.scan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.terminal { background: #05050a; border: 1px solid rgba(0, 240, 255, 0.3); box-shadow: 0 0 40px rgba(0, 240, 255, 0.08), inset 0 0 60px rgba(0, 240, 255, 0.04); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgba(0, 240, 255, 0.2); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.term-bar i { width: 10px; height: 10px; background: var(--red); }
.term-bar i:nth-child(2) { background: var(--yellow); }
.term-bar i:nth-child(3) { background: var(--cyan); }
.term-bar span { margin-left: 8px; }
.term-body { font-family: var(--font-mono); font-size: clamp(12px, 1.2vw, 14px); line-height: 1.9; color: var(--cyan); padding: 22px; min-height: 330px; white-space: pre-wrap; overflow-x: auto; }
.term-body .ok { color: #39ff88; }
.term-body .cur { display: inline-block; width: 9px; height: 1.1em; background: var(--yellow); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }

.scan-list { list-style: none; display: grid; gap: 14px; }
.scan-list li { padding: 18px 20px 18px 22px; border-left: 3px solid var(--yellow); background: linear-gradient(90deg, rgba(243, 230, 0, 0.06), transparent); }
.scan-list b { display: block; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.scan-list span { color: var(--muted); font-size: 15.5px; }

/* results */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 30px;
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  transition: border-color .25s, transform .25s;
}
.case::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--yellow), var(--red)); }
.case:hover { border-color: var(--line); transform: translateY(-4px); }
.case-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 22px; }
.case-client { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.case-role { font-family: var(--font-mono); font-size: 11.5px; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase; }
.case-hero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-from { font-size: clamp(30px, 3vw, 40px); font-weight: 700; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.case-arrow { font-family: var(--font-mono); font-size: 26px; color: var(--red); }
.case-to { font-size: clamp(48px, 5vw, 68px); font-weight: 700; line-height: 1; color: var(--yellow); text-shadow: 0 0 28px rgba(243, 230, 0, 0.3); letter-spacing: -0.02em; }
.case-hero-label { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); letter-spacing: 0.08em; text-transform: uppercase; margin: 10px 0 22px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.case-stats div { padding: 12px 14px; background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.22); }
.case-stats b { display: block; font-size: 24px; color: var(--cyan); line-height: 1.1; }
.case-stats span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.case-desc { color: var(--muted); font-size: 15px; margin-top: auto; }

.reel { margin-top: 72px; }
.reel-head h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 24px; }
.reel-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.film-play {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line); cursor: pointer;
  background: #000; overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.film-play img, .film-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film-play img { filter: saturate(0.9) brightness(0.8); transition: filter .3s, transform .5s; }
.film-play:hover img { filter: none; transform: scale(1.02); }
.film-btn {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%);
  background: var(--yellow); display: grid; place-items: center; box-shadow: 0 0 40px rgba(243, 230, 0, 0.45);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: background .2s;
}
.film-btn span { width: 0; height: 0; border-left: 24px solid #000; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.film-play:hover .film-btn { background: var(--cyan); }
.film-tag { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--yellow); background: rgba(7, 7, 12, 0.8); padding: 5px 9px; border-left: 2px solid var(--yellow); }
.film-cap { color: var(--muted); font-size: 15px; margin-top: 14px; }
.ads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ads img { width: 100%; height: auto; display: block; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform .25s, border-color .25s; }
.ads img:hover { transform: scale(1.03); border-color: var(--yellow); }

/* film + ad library */
.reel-grid { grid-template-columns: 1.6fr 1fr; align-items: center; }
.film-side { display: grid; gap: 6px; }
.film-side .eng-type { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); margin-top: 10px; }
.film-side .film-cap { margin: 0 0 8px; }

.adlib { margin-top: 48px; display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.adlib-stages { display: grid; gap: 8px; }
.st-btn {
  position: relative; text-align: left; cursor: pointer; padding: 14px 16px 16px; color: var(--muted);
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); font: inherit; overflow: hidden;
  transition: color .2s, border-color .2s, background .2s;
}
.st-btn:hover { color: var(--text); border-color: var(--line); }
.st-btn .st-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); display: block; margin-bottom: 4px; }
.st-btn .st-name { display: block; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }
.st-btn .st-job { display: block; font-family: var(--font-mono); font-size: 11.5px; margin-top: 2px; }
.st-btn .st-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--yellow), var(--red)); }
.st-btn[aria-selected="true"] { color: var(--text); border-color: var(--yellow); background: linear-gradient(90deg, rgba(243, 230, 0, 0.12), rgba(16, 16, 28, 0.8)); }
.st-btn[aria-selected="true"] .st-num { color: var(--yellow); }
.st-btn:focus-visible, .adlib-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.adlib-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr); gap: 24px; align-items: end; }
.adlib-screen {
  position: relative; aspect-ratio: 1 / 1; margin-top: 34px; border: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px), var(--bg-2);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.08);
}
.adlib-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adlib-screen.is-bb .adlib-img { object-fit: contain; }
.adlib-screen.glitch-in .adlib-img { animation: adglitch .45s steps(1); }
@keyframes adglitch {
  0%   { clip-path: inset(10% 0 60% 0); transform: translateX(-12px); filter: hue-rotate(90deg); }
  25%  { clip-path: inset(55% 0 15% 0); transform: translateX(10px); }
  50%  { clip-path: inset(30% 0 40% 0); transform: translateX(-6px); filter: none; }
  75%  { clip-path: inset(0 0 0 0); transform: translateX(3px); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
.adlib-hud { position: absolute; z-index: 3; top: -33px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; padding: 5px 9px; background: rgba(7, 7, 12, 0.82); }
.adlib-hud-tl { left: 0; color: var(--yellow); border-left: 2px solid var(--yellow); }
.adlib-hud-tr { right: 0; color: var(--cyan); border-right: 2px solid var(--cyan); }
.adlib-screen .op-corner { z-index: 3; }
.adlib-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, 0.5); z-index: 3; }
.adlib-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--yellow), var(--cyan)); transform-origin: left; transform: scaleX(0); }
.adlib-name { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; text-transform: uppercase; margin-bottom: 12px; }
.adlib-intro { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.adlib-ctrl { display: flex; gap: 8px; }
.adlib-btn {
  width: 48px; height: 44px; cursor: pointer; font-size: 14px; color: var(--yellow); background: rgba(243, 230, 0, 0.06);
  border: 1px solid var(--line); transition: background .2s, color .2s;
}
.adlib-btn:hover { background: var(--yellow); color: #000; }

@media (max-width: 1080px) {
  .adlib { grid-template-columns: 1fr; }
  .adlib-stages { grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; }
}
@media (max-width: 900px) {
  .adlib-main { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .adlib-stages { grid-template-columns: repeat(5, 150px); }
  .st-btn .st-job { display: none; }
}

/* animation page */
.anim-hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 120px clamp(16px, 4vw, 48px) 64px; overflow: hidden; }
.anim-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.85) brightness(0.55); }
.anim-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 7, 12, 0.95) 0%, rgba(7, 7, 12, 0.75) 45%, rgba(7, 7, 12, 0.35) 100%),
              repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
}
.anim-hero-inner { max-width: 1240px; margin: 0 auto; width: 100%; }
.anim-hero-inner h1 { max-width: 900px; }
.anim-film { position: relative; border: 1px solid var(--line); box-shadow: 0 0 70px rgba(0, 240, 255, 0.1); }
.anim-film video { display: block; width: 100%; height: auto; background: #000; }
.anim-film .op-corner { z-index: 2; pointer-events: none; }
.anim-film .film-tag { top: 14px; bottom: auto; z-index: 2; pointer-events: none; }
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.clip { margin: 0; }
.clip-frame { position: relative; aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; background: var(--bg-2); transition: border-color .25s, transform .25s; }
.clip-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip:hover .clip-frame { border-color: var(--yellow); transform: translateY(-4px); }
.clip figcaption { padding-top: 12px; display: grid; gap: 4px; }
.clip-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); }
.clip figcaption b { font-size: 18px; text-transform: uppercase; }
.clip figcaption span:last-child { color: var(--muted); font-size: 14.5px; }
.anim-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.anim-steps li { padding: 24px 22px; background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); border-top: 2px solid var(--line); }
.anim-steps p { color: var(--muted); font-size: 15.5px; }
.nav-links a[aria-current="page"] { color: var(--yellow); }
.reel-more { margin-top: 28px; }
@media (max-width: 1080px) { .clips, .anim-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .clips, .anim-steps { grid-template-columns: 1fr; } }

/* modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mod {
  position: relative; padding: 28px 24px 26px; background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: border-color .25s, transform .25s, background .25s;
}
.mod::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 0; height: 2px; background: var(--yellow); transition: width .35s; }
.mod:hover { border-color: var(--line); transform: translateY(-4px); background: rgba(22, 22, 38, 0.85); }
.mod:hover::before { width: 100%; }
.mod-id { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.12em; display: block; margin-bottom: 16px; }
.mod p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.mod ul { list-style: none; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); display: grid; gap: 6px; }
.mod li::before { content: "▸ "; color: var(--yellow); }

.nope {
  margin-top: 40px; display: flex; align-items: center; gap: 24px; padding: 22px 26px;
  border: 1px solid rgba(255, 42, 109, 0.45); background: repeating-linear-gradient(-45deg, rgba(255, 42, 109, 0.06) 0 12px, transparent 12px 24px);
}
.nope-tag { flex-shrink: 0; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: #000; background: var(--red); padding: 8px 12px; }
.nope p { color: var(--text); }

/* protocol */
.protocol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; border-top: 1px solid var(--line); }
.protocol li { position: relative; padding: 32px 26px 10px 0; }
.protocol li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.protocol li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.protocol li + li::before { left: -5px; }
.p-num { display: block; font-size: 56px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--cyan); margin-bottom: 18px; }
.protocol p { color: var(--muted); font-size: 15.5px; }

/* engage */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.eng {
  display: flex; flex-direction: column; padding: 32px 28px; background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.eng p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.eng .eng-type { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 14px; }
.eng-best { margin-top: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--yellow); }
.eng-feat { border-color: var(--yellow); background: linear-gradient(160deg, rgba(243, 230, 0, 0.12), rgba(16, 16, 28, 0.8) 55%); box-shadow: 0 0 50px rgba(243, 230, 0, 0.08); }

/* package */
.pack {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--yellow);
  background: linear-gradient(150deg, rgba(243, 230, 0, 0.12), rgba(16, 16, 28, 0.85) 50%);
  box-shadow: 0 0 60px rgba(243, 230, 0, 0.08);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 32px 100%, 0 calc(100% - 32px));
}
.pack-main { padding: clamp(28px, 4vw, 52px); }
.pack-side { padding: clamp(28px, 4vw, 52px); border-left: 1px dashed var(--line); background: rgba(5, 5, 10, 0.4); }
.pack .eng-type { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 14px; }
.pack-name { font-size: clamp(24px, 2.6vw, 34px); }
.pack-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; }
.pack-num { font-size: clamp(56px, 8vw, 104px); font-weight: 700; line-height: 1; color: var(--yellow); text-shadow: 0 0 30px rgba(243, 230, 0, 0.3); letter-spacing: -0.02em; }
.pack-unit { font-family: var(--font-mono); font-size: 16px; color: var(--text); text-transform: uppercase; letter-spacing: 0.1em; }
.pack-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin: 6px 0 22px; }
.pack-desc { color: var(--muted); margin-bottom: 30px; max-width: 460px; }
.pack-label { font-family: var(--font-mono); font-size: 12px; color: var(--red); letter-spacing: 0.16em; margin-bottom: 18px; }
.pack-list { list-style: none; display: grid; gap: 4px; }
.pack-list li { font-size: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pack-list li::before { content: "[✓] "; font-family: var(--font-mono); font-size: 13px; color: #39ff88; }
@media (max-width: 900px) {
  .pack { grid-template-columns: 1fr; }
  .pack-side { border-left: 0; border-top: 1px dashed var(--line); }
}

/* operator */
.operator { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.op-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: contrast(1.08) saturate(0.85) brightness(0.92);
  transition: filter .4s, transform .6s;
}
.op-frame::before { /* neon colour grade over the photo */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(160deg, rgba(0, 240, 255, 0.28), transparent 45%),
    linear-gradient(340deg, rgba(255, 42, 109, 0.30), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen; transition: opacity .4s;
}
.op-frame:hover img { filter: contrast(1.04) saturate(1) brightness(1); transform: scale(1.03); }
.op-frame:hover::before { opacity: 0.35; }
.op-frame::after { z-index: 2; }
.op-corner { z-index: 3; }
.op-hud {
  position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 5px 9px; background: rgba(7, 7, 12, 0.78); backdrop-filter: blur(4px);
}
.op-hud-a { top: 46px; left: 12px; color: var(--yellow); border-left: 2px solid var(--yellow); }
.op-hud-b { bottom: 46px; right: 12px; color: var(--cyan); border-right: 2px solid var(--cyan); }
.op-frame {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 42, 109, 0.25), transparent 50%),
    linear-gradient(315deg, rgba(0, 240, 255, 0.25), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 6px),
    var(--bg-2);
  border: 1px solid var(--line);
}
.op-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.18), transparent); animation: sweep 3.5s linear infinite; }
@keyframes sweep { from { top: -30%; } to { top: 100%; } }
.op-initials { font-size: clamp(90px, 14vw, 180px); font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--yellow); text-shadow: 0 0 40px rgba(243, 230, 0, 0.25); letter-spacing: -0.04em; }
.op-corner { position: absolute; width: 26px; height: 26px; border-color: var(--yellow); border-style: solid; border-width: 0; }
.op-corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.op-corner.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.op-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.op-corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
.op-caption { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.12em; margin-top: 12px; }
.op-copy p:not(.kicker) { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.op-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.op-tags li { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 12px; border: 1px solid rgba(0, 240, 255, 0.4); color: var(--cyan); }

/* contact */
.contact-box {
  text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line); background: radial-gradient(600px 300px at 50% 0%, rgba(243, 230, 0, 0.12), transparent 70%), var(--panel);
  clip-path: polygon(32px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%, 0 32px);
}
.contact-box h2 { color: var(--yellow); font-size: clamp(38px, 6.5vw, 88px); }
.contact-box .sub { margin: 0 auto 36px; }

/* footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
.footer-sig { color: var(--yellow); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
  .protocol { grid-template-columns: repeat(2, 1fr); }
  .protocol li:nth-child(3) { padding-left: 0; border-left: 0; }
  .protocol li:nth-child(3)::before { left: 0; }
}
@media (max-width: 900px) {
  .hero-inner, .scan-grid, .operator, .engage, .cases, .reel-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .op-portrait { max-width: 440px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 71px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 7, 12, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
  .nav-cta { clip-path: none; text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .modules, .protocol { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 26px; row-gap: 20px; }
  .timeline::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--red)); }
  .tl-node { top: 24px; left: -27px; }
  .protocol li, .protocol li + li { padding: 28px 0 10px; border-left: 0; }
  .protocol li + li::before, .protocol li::before { left: 0; }
  .hud-list div { grid-template-columns: 84px 1fr; }
  .nope { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
