:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --line: #262626;
  --text: #f5f5f0;
  --muted: #a3a39c;
  --y: #ffe03a;          /* accent yellow */
  --y2: #fff27a;
  --radius: 18px;
  --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(18px, 4.5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--y); color: #000; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad); background: linear-gradient(rgba(10,10,10,.85), rgba(10,10,10,0)); transition: background .2s; }
.nav.solid { background: rgba(10,10,10,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--y); }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #dcdcd5; }
.nav nav a:not(.btn):hover { color: var(--y); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; background: var(--y); color: #000; text-decoration: none;
  font: 800 15px var(--sans); text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--y); transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--y2); box-shadow: 0 10px 30px rgba(255,224,58,.25); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn.ghost:hover { border-color: var(--y); color: var(--y); box-shadow: none; }
.btn.small { padding: 9px 18px; font-size: 13px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.cta.center { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 140px var(--pad) 90px; overflow: hidden; isolation: isolate; max-width: none; }
.wall { position: absolute; inset: -12% -12%; z-index: -2; transform: rotate(-7deg); }
.wall-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; width: 100%; animation: drift 40s linear infinite alternate; }
.wall video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; background: var(--bg2); }
.wall video:nth-child(even) { margin-top: 18%; }
@keyframes drift { from { transform: translateY(-2%); } to { transform: translateY(-14%); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.8) 45%, rgba(10,10,10,.3) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(10,10,10,0) 40%); }
.hero-text { max-width: 1000px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } }
h1 { font: 400 clamp(56px, 9.5vw, 150px)/1.14 var(--display); text-transform: uppercase; margin: 0; }
.hl { color: #000; background: linear-gradient(transparent 13%, var(--y) 13%, var(--y) 93%, transparent 93%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: #d8d8d2; max-width: 640px; margin: 28px 0 0; }

/* ---------- ticker ---------- */
.ticker { background: var(--y); color: #000; overflow: hidden; transform: rotate(-1.5deg); margin: -12px -20px 0; position: relative; z-index: 2; border-block: 3px solid #000; }
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker span { font: 400 30px/1 var(--display); text-transform: uppercase; padding: 16px 0 16px 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.ticker span::after { content: "✦"; font-size: 22px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- layout ---------- */
section { padding-left: var(--pad); padding-right: var(--pad); max-width: 1360px; margin: 0 auto; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 100px; }
.facts div { padding: 6px 24px 6px 0; display: flex; flex-direction: column; }
.facts div + div { border-left: 2px solid var(--line); padding-left: 24px; }
.facts strong { font: 400 clamp(56px, 7vw, 104px)/1 var(--display); color: var(--y); }
.facts span { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 230px; }

/* ---------- headings ---------- */
h2 { font: 400 clamp(48px, 7vw, 96px)/.95 var(--display); text-transform: uppercase; margin: 0; }
h2 small { display: block; font: 600 14px/1 var(--mono); color: var(--y); letter-spacing: .1em; margin-bottom: 14px; }
h3 { font: 800 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--y); margin: 36px 0 14px; }

/* ---------- work ---------- */
.work { padding-top: 130px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font: 800 14px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--text); background: var(--bg2); border: 2px solid var(--line);
  padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.tab:hover { border-color: var(--y); }
.tab.active { background: var(--y); border-color: var(--y); color: #000; }
.hint { color: var(--muted); margin: 0 0 30px; font-size: 14px; }
.panel-note { color: #d0d0ca; max-width: 760px; margin: 0 0 28px; font-size: 17px; }
h3.group { margin: 48px 0 18px; font-size: 14px; }
.panel h3.group:first-child { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; align-items: start; }
.grid.horizontal, .grid.mixed { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid.mixed .frame[style*="9/16"], .grid.mixed .frame[style*="1/1"] { aspect-ratio: 16/9 !important; }
.grid.mixed .frame[style*="9/16"] img, .grid.mixed .frame[style*="9/16"] video,
.grid.mixed .frame[style*="1/1"] img, .grid.mixed .frame[style*="1/1"] video { object-fit: contain; background: #000; }

.card { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; text-align: left; font: inherit; }
.card .frame { position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; background: var(--bg2);
  outline: 3px solid transparent; outline-offset: 3px; transition: transform .2s, outline-color .2s, box-shadow .2s; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .2s; }
.card.playing video { opacity: 1; }
.card:hover .frame, .card:focus-visible .frame { transform: translateY(-6px) rotate(-1deg); outline-color: var(--y); box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.card .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 65%, rgba(0,0,0,.5)); pointer-events: none; }
.card .dur { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: #000; color: var(--y); padding: 3px 8px; border-radius: 6px; font: 600 12px var(--mono); }
.card .play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: var(--y);
  opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s; }
.card .play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #000; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.card:hover .play { opacity: 1; transform: scale(1); }
.card h4 { margin: 14px 2px 3px; font-size: 16px; font-weight: 800; line-height: 1.3; }
.card h4 + p { margin: 0 2px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- editing + ai ---------- */
.editing, .ai { padding-top: 150px; }
.split-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: end; margin-bottom: 44px; }
.split-head p { color: #d0d0ca; font-size: 18px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: c; }
.cards article { padding: 30px 26px 26px; background: var(--bg2); border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; counter-increment: c; }
.cards article::before { content: "0" counter(c); font: 400 44px/1 var(--display); color: var(--y); display: block; margin-bottom: 18px; }
.cards article:hover { border-color: var(--y); transform: translateY(-4px); }
.cards h4, .ai-grid h4 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.cards p, .ai-grid p { margin: 0; color: var(--muted); font-size: 15px; }

.process { margin-top: 70px; padding: 36px; border-radius: 24px; background: var(--y); color: #000; }
.process h3 { color: #000; margin-top: 0; }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process li span { font: 400 54px/1 var(--display); }
.process li strong { display: block; font: 400 26px/1.1 var(--display); text-transform: uppercase; margin: 8px 0; }
.process li p { margin: 0; font-size: 15px; color: #2a2a20; }

.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ai-grid article { padding: 28px 28px 28px 34px; border-radius: var(--radius); background: var(--bg2); border: 2px solid var(--line); position: relative; overflow: hidden; }
.ai-grid article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--y); }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stack span { font: 500 13px var(--mono); padding: 8px 14px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); color: #e2e2db; }
.aside { color: var(--muted); font: 13px var(--mono); margin-top: 20px; }
.aside::before { content: "// "; color: var(--y); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; padding-top: 150px; }
.portrait { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--y); margin-bottom: 26px; transform: rotate(-4deg); }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: #d0d0ca; font-size: 17px; max-width: 640px; }
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.services li { padding: 18px 20px; background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; color: var(--muted); }
.services strong { color: var(--text); }
.timeline { padding-top: 10px; }
.timeline h3:first-child { margin-top: 0; }
.timeline ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 24px 24px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--y); }
.timeline .when { font: 500 12px var(--mono); color: var(--muted); }
.timeline strong { font-size: 17px; }
.timeline li span:last-child { color: var(--muted); font-size: 15px; }
.tools { color: var(--muted); }

/* ---------- contact ---------- */
.contact { margin-top: 150px; padding-top: 110px; padding-bottom: 110px; text-align: center; background: var(--y); color: #000; max-width: none; border-radius: 40px 40px 0 0; }
.contact .eyebrow.dark { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.2); color: #000; }
.contact .huge { font-size: clamp(64px, 12vw, 180px); line-height: .9; }
.contact p { font-size: 19px; color: #222; }
.contact .btn { background: #000; color: var(--y); border-color: #000; }
.contact .btn:hover { background: #222; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.contact .btn.ghost { background: transparent; color: #000; border-color: #000; }
footer { display: flex; justify-content: space-between; padding: 22px var(--pad); background: #000; color: var(--muted); font-size: 14px; }

/* ---------- player ---------- */
dialog { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(0,0,0,.92); backdrop-filter: blur(6px); }
#playerVideo { height: min(86vh, 1280px); aspect-ratio: 9/16; max-width: 94vw; border-radius: var(--radius); background: #000; outline: 3px solid var(--y); }
#playerVideo[data-ar="16/9"], #playerVideo[data-ar="1/1"] { height: auto; width: min(92vw, 1280px); max-height: 82vh; aspect-ratio: 16/9; }
#playerCaption { text-align: center; color: var(--text); margin: 14px 0 0; font: 400 24px var(--display); text-transform: uppercase; }
.close { position: absolute; top: -8px; right: -58px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--y); color: #000; font-size: 26px; font-weight: 800; cursor: pointer; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .wall-track { grid-template-columns: repeat(4, 1fr); }
  .wall video:nth-child(n+9) { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .process ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav nav a:not(.btn) { display: none; }
  .brand span { font-size: 19px; }
  .hero { padding-bottom: 60px; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.8) 55%, rgba(10,10,10,.45) 100%); }
  .wall-track { grid-template-columns: repeat(3, 1fr); }
  .wall video:nth-child(n+7) { display: none; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .split-head, .cards, .ai-grid, .process ol, .about { grid-template-columns: 1fr; gap: 16px; }
  .about { gap: 30px; }
  .grid.horizontal, .grid.mixed { grid-template-columns: 1fr; }
  .grid.vertical { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ticker span { font-size: 22px; padding: 12px 0 12px 18px; gap: 18px; }
  .process { padding: 26px; }
  .contact { border-radius: 28px 28px 0 0; }
  .close { right: 6px; top: 6px; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-track, .ticker-track, .eyebrow .dot { animation: none; }
}
