:root {
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --text: #f5f4f0;
  --text-soft: #c9c7bf;
  --text-mute: #9a9890;
  --text-faint: #5f5e5a;
  --gold: #bd9e56;
  --gold-dark: #26200f;
  --red: #e24b4a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --sans: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.ch-social { --accent: #45c4e8; --accent-dark: #06222e; }
.ch-act { --accent: #ee6a3c; --accent-dark: #2d1004; }
.ch-design { --accent: #f5f4f0; --accent-dark: #111111; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* chrome */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 16, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.logo { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.logo span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-mute); flex-wrap: wrap; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--gold); }
.pill { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; color: var(--text); white-space: nowrap; }
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill-live { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; animation: blink 2.4s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ticker */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-block; padding: 7px 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold); animation: marquee 45s linear infinite; }
.ticker-inner span { margin-right: 48px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* type */
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 600; }
.lede { font-size: 17px; color: var(--text-soft); max-width: 56ch; }
.cue { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 14px; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--text-mute); display: block; margin-bottom: 12px; }
.gold { color: var(--gold); }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 7px; transition: transform 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--gold-dark); }
.btn-gold:hover { background: #cdb06b; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* sections */
section { padding: 56px 0; }
.section-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 14px; display: block; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 48px; }
.hero p { margin: 20px 0 28px; }

/* reel */
.reel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.reel .play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px; }
.bug { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--red); border: 1px solid rgba(226, 75, 74, 0.5); border-radius: 4px; padding: 2px 8px; }
.lower-third { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(14, 14, 16, 0.88); border-left: 3px solid var(--accent); font-family: var(--mono); font-size: 11px; color: var(--text-soft); padding: 8px 11px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border-radius: 8px; padding: 18px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.stat span { font-size: 12.5px; color: var(--text-mute); }

/* rundown */
.rundown { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background 0.15s ease; }
a.row:hover { background: var(--surface); }
a.row:hover .arrow { color: var(--accent); transform: translateX(4px); }
.cue-num { font-family: var(--mono); font-size: 12px; color: var(--accent); min-width: 32px; }
.row-body { flex: 1; }
.row-body b { display: block; font-size: 16.5px; font-weight: 600; }
.row-body span { font-size: 13px; color: var(--text-mute); }
.arrow { color: var(--text-mute); font-size: 18px; transition: all 0.15s ease; }

/* tiles */
.tiles { display: grid; gap: 12px; }
.tiles-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tiles-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color 0.15s ease; }
a.tile:hover { border-color: var(--accent); }
.tile .glyph { font-size: 26px; color: var(--text-faint); }
.r169 { aspect-ratio: 16 / 9; }
.r32 { aspect-ratio: 3 / 2; }
.r45 { aspect-ratio: 4 / 5; }
.r11 { aspect-ratio: 1 / 1; }
.cap { position: absolute; bottom: 10px; left: 10px; right: 10px; background: rgba(14, 14, 16, 0.88); border-left: 2px solid var(--accent); font-family: var(--mono); font-size: 10.5px; color: var(--text-soft); padding: 5px 8px; line-height: 1.45; }

/* chips */
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; color: var(--text-soft); }

/* work cards */
.work-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: block; transition: border-color 0.15s ease; }
.work-card:hover { border-color: var(--accent); }
.work-card .tags { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--accent); }
.work-card h3 { margin: 8px 0 6px; }
.work-card p { font-size: 13.5px; color: var(--text-mute); }

/* case studies */
.case { padding: 64px 24px; }
.case h1 { font-size: clamp(30px, 5vw, 46px); margin: 14px 0 22px; }
.case h2 { font-size: 23px; margin: 44px 0 14px; }
.case p { color: var(--text-soft); margin-bottom: 16px; max-width: 70ch; }
.case ul { color: var(--text-soft); margin: 0 0 16px 22px; max-width: 70ch; }
.case li { margin-bottom: 6px; }
.case b, .case strong { color: var(--text); }
.facts { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14px; }
.facts td { border-top: 1px solid var(--line); padding: 10px 4px; color: var(--text-soft); }
.facts td:first-child { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-mute); width: 130px; vertical-align: top; padding-top: 13px; }
.facts tr:last-child td { border-bottom: 1px solid var(--line); }
.img-slot { border: 1px dashed var(--line-strong); border-radius: 9px; padding: 36px 20px; text-align: center; margin: 26px 0; }
.img-slot b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent); font-weight: 400; display: block; margin-bottom: 6px; }
.img-slot span { font-size: 12.5px; color: var(--text-faint); }
.todo { background: var(--surface); border-left: 3px solid var(--red); border-radius: 0 7px 7px 0; padding: 12px 16px; font-size: 13px; color: var(--text-mute); margin: 20px 0; }
.todo b { color: var(--red); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; font-weight: 400; }

/* gallery (design door) */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; }
.g-2x2 { grid-column: span 2; grid-row: span 2; }
.g-1x2 { grid-row: span 2; }
.g-2x1 { grid-column: span 2; }

/* contact band */
.band { border-top: 1px solid var(--line); padding: 64px 0; }
.band h2 { margin-bottom: 10px; }
.band p { color: var(--text-mute); margin-bottom: 24px; }

/* forms */
.form { display: grid; gap: 14px; max-width: 540px; }
.form label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-mute); display: block; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); font-family: var(--sans); font-size: 14.5px; padding: 11px 13px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); }
.foot a:hover { color: var(--gold); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* misc */
.clients { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-faint); line-height: 2; }
.testimonial { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; max-width: 64ch; }
.testimonial p { font-size: 18px; line-height: 1.55; color: var(--text-soft); }
.testimonial cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.center { text-align: center; }
.center .lede, .center .chips, .center .btns { margin-left: auto; margin-right: auto; justify-content: center; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; }
  section { padding: 40px 0; }
  .nav { gap: 14px; }
}

/* showreel in-edit placeholder */
.inedit { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(189, 158, 86, 0.45); } 100% { box-shadow: 0 0 0 22px rgba(189, 158, 86, 0); } }
.bug.edit { color: var(--gold); border-color: rgba(189, 158, 86, 0.5); }

/* real images */
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case figure { margin: 26px 0; }
.case figure img { width: 100%; border-radius: 9px; border: 1px solid var(--line); display: block; }
.case figure figcaption { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 8px; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 26px 0; }
.fig-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }

/* filter chips */
button.chip { background: none; font-family: var(--sans); cursor: pointer; transition: all 0.15s ease; }
button.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { border-color: var(--accent); color: var(--accent); }

/* animated credential line */
.creds { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--text-faint); line-height: 2; margin-top: 12px; }
.creds .role { transition: color 0.5s ease; }
.creds .role.on { color: var(--accent); }
.creds .sep { margin: 0 7px; opacity: 0.5; }


/* 3d credential iframe */
.tag-frame { position: absolute; top: 0; right: 1%; width: 440px; height: 74vh; border: none; z-index: 40; background: transparent; }
@media (max-width: 800px) { .tag-frame { top: 110px !important; right: -60px !important; width: 380px !important; height: 62vh !important; } }

/* case mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 118px; grid-auto-flow: dense; gap: 10px; margin: 26px 0 10px; }
.mosaic img, .mosaic video { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }
.m-2w { grid-column: span 2; }
.m-2h { grid-row: span 2; }
@media (max-width: 700px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 105px; } }

/* bottom channel bar (mobile) */
.botbar { display: none; }
.botbar a { text-decoration: none; }
.botbar svg { display: block; }
@media (max-width: 800px) {
  .botbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(14,14,16,0.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 9px 2px calc(9px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .botbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--text-mute); font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; }
  .botbar a svg { width: 21px; height: 21px; }
  .botbar a.on { color: var(--accent); }
  body { padding-bottom: 66px; }
  .nav a:not(.pill) { display: none; }
  .nav { gap: 0; }
}

/* subtle reveal on load */
@keyframes ogrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero > div > *, .hero > .reel { animation: ogrise 0.62s cubic-bezier(.2,.65,.25,1) both; }
.hero > div > *:nth-child(1) { animation-delay: 0.04s; }
.hero > div > *:nth-child(2) { animation-delay: 0.10s; }
.hero > div > *:nth-child(3) { animation-delay: 0.16s; }
.hero > div > *:nth-child(4) { animation-delay: 0.22s; }
.hero > .reel { animation-delay: 0.18s; }
.stats .stat { animation: ogrise 0.55s cubic-bezier(.2,.65,.25,1) both; }
.stats .stat:nth-child(1) { animation-delay: 0.26s; }
.stats .stat:nth-child(2) { animation-delay: 0.32s; }
.stats .stat:nth-child(3) { animation-delay: 0.38s; }
.stats .stat:nth-child(4) { animation-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) { .hero > div > *, .hero > .reel, .stats .stat { animation: none; } }

/* in-production case tiles */
.tile.wip { background: var(--surface); }
.tile.wip::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 11px, transparent 11px 22px); }
.wip-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; z-index: 1;
  color: var(--accent); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 7px 14px;
  background: rgba(14,14,16,0.4); white-space: nowrap; }
.wip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: wippulse 2s ease infinite; }
@keyframes wippulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
