/* Layout: an edit timeline stacked by priority. V1 Social (orange) leads, then Trailers (teal), Commercials, Narrative. */
:root {
  --bg: #111418;
  --surface: #191d23;
  --fg: #e9ecef;
  --muted: #8b94a1;
  --line: #2a3039;
  --teal: #56b8b4;
  --orange: #ec8d4d;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0f2; --surface: #ffffff; --fg: #14181d; --muted: #586170;
    --line: #d4d9df; --teal: #1d7c79; --orange: #bf5d1c; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef0f2; --surface: #ffffff; --fg: #14181d; --muted: #586170;
  --line: #d4d9df; --teal: #1d7c79; --orange: #bf5d1c; color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* Mockup note */
.note { border-bottom: 1px solid var(--line); }
.note .wrap { padding-block: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.note p { margin: 0; font-size: 13px; color: var(--muted); }
.note b { color: var(--orange); font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; }

/* Header */
header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--muted); font-weight: 500; font-stretch: 100%; letter-spacing: 0.1em; margin-left: 8px; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--fg); }
@media (max-width: 640px) { header nav a:not(.cta-link) { display: none; } }
.cta-link { color: var(--fg) !important; border-bottom: 1px solid var(--orange); }

/* Hero */
.hero .wrap { padding-block: 64px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 36px; gap: 36px; } }
.hero-copy { min-width: 0; }
h1 {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(40px, 6vw, 74px); line-height: 0.98; letter-spacing: -0.02em;
  margin: 18px 0 22px; text-wrap: balance;
}
h1 .o { color: var(--orange); }
h1 .t { color: var(--teal); }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.lede strong { color: var(--fg); font-weight: 500; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 3px;
  border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; font-family: var(--body);
}
.btn.primary { background: var(--orange); color: #111418; border-color: var(--orange); }
.btn:hover { border-color: var(--fg); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Hero stage: a 9:16 phone in front, the 16:9 trailer frame behind it */
.monitor { min-width: 0; }
.stage { position: relative; aspect-ratio: 16 / 12; max-width: 100%; }
.wide {
  position: absolute; left: 0; top: 14%; width: 74%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden;
  background:
    radial-gradient(90% 120% at 15% 85%, rgba(40,120,130,.85), transparent 60%),
    linear-gradient(160deg, #0d2a30, #120f12 70%);
  opacity: .7;
}
.wide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#000 0 10%, transparent 10% 90%, #000 90%); opacity: .85; }
.wide span, .phone .tag {
  position: absolute; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: #fff; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 2px;
}
.wide span { left: 10px; bottom: 14%; }
.phone {
  position: absolute; right: 4%; top: 0; height: 100%; aspect-ratio: 9 / 16; z-index: 2;
  border-radius: 22px; overflow: hidden; border: 5px solid #05070a;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background:
    radial-gradient(90% 60% at 60% 25%, rgba(255,214,170,.9), transparent 60%),
    linear-gradient(175deg, #f0a46f, #c5583f 55%, #2c1620);
}
.phone .tag { left: 12px; top: 14px; }
.phone .hook {
  position: absolute; left: 12px; right: 12px; top: 38%; text-align: center;
  font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: clamp(13px, 1.6vw, 17px); line-height: 1.15;
  color: #111; background: #fff; padding: 6px 8px; border-radius: 6px;
}
.phone .rail { position: absolute; right: 10px; bottom: 26%; display: grid; gap: 10px; }
.phone .rail i { display: block; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.75); }
.phone .cap { position: absolute; left: 12px; right: 44px; bottom: 9%; display: grid; gap: 5px; }
.phone .cap i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.75); }
.phone .cap i:last-child { width: 60%; background: rgba(255,255,255,.5); }
.phone .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.3); }
.phone .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 20%; background: #fff; animation: fill 3s linear both; }
@keyframes fill { from { width: 0; } to { width: 20%; } }

.ruler { margin-top: 14px; position: relative; height: 34px; border-top: 1px solid var(--line); }
.ruler .ticks {
  position: absolute; inset: 0 0 auto; height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 6.666%);
}
.ruler .hookzone { position: absolute; top: 0; left: 0; width: 20%; height: 8px; background: color-mix(in srgb, var(--orange) 45%, transparent); }
.ruler .tc { position: absolute; top: 12px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.playhead {
  position: absolute; top: -6px; bottom: 0; width: 2px; background: var(--orange); left: 20%;
  animation: sweep 3s linear both;
}
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--orange); }
@keyframes sweep { from { left: 0%; } to { left: 20%; } }
@media (prefers-reduced-motion: reduce) { .playhead, .phone .bar::after { animation: none; } }
.caption { margin-top: 4px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Clients */
.clients { border-block: 1px solid var(--line); }
.clients .wrap { padding-block: 26px; display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.clients li { font-family: var(--display); font-weight: 700; font-stretch: 118%; font-size: 17px; letter-spacing: 0.03em; color: var(--fg); opacity: .82; text-transform: uppercase; }

/* Section heads */
section.block .wrap { padding-block: 88px; }
@media (max-width: 640px) { section.block .wrap { padding-block: 60px; } }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 110%;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -0.015em; margin: 10px 0 0; text-wrap: balance;
}
.head p { margin: 0; max-width: 30em; color: var(--muted); }

/* Tracks, ordered by priority. Each track sets its own --tc color. */
.track { display: grid; grid-template-columns: 132px 1fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); }
.track:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .track { grid-template-columns: 1fr; gap: 16px; } }
.track-id { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .track-id { flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; } }
.track-id .chan { font-family: var(--mono); font-weight: 500; font-size: 22px; color: var(--tc); }
.track-id .name { font-weight: 600; }
.t-social { --tc: var(--orange); }
.t-trailer { --tc: var(--teal); }
.t-spot { --tc: var(--fg); }
.t-narr { --tc: var(--muted); }
.t-social .track-id .name { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 22px; line-height: 1.1; }

.clips { display: grid; gap: 18px; min-width: 0; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66%; }
@media (max-width: 760px) {
  .cols-4, .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2 { max-width: none; }
}
@media (max-width: 480px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

.clip { text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.frame { position: relative; border-radius: 3px; overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; }
.frame.v { aspect-ratio: 9 / 16; border-radius: 12px; }
.frame::before { content: ""; position: absolute; inset: 0; background: var(--g); transition: transform .5s ease; }
.clip:hover .frame::before { transform: scale(1.04); }
.frame .dur { position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 2px; }
.frame .ph { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #fff; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 2px; text-transform: uppercase; }
.frame.v .ui { position: absolute; left: 10px; right: 10px; bottom: 34px; display: grid; gap: 5px; }
.frame.v .ui i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.7); }
.frame.v .ui i:last-child { width: 55%; background: rgba(255,255,255,.45); }
.meta { display: flex; flex-direction: column; gap: 2px; }
.meta .t { font-weight: 600; line-height: 1.3; }
.meta .c { font-size: 14px; color: var(--muted); }
.result {
  align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 2px; border: 1px solid var(--orange); color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, transparent); font-variant-numeric: tabular-nums;
}
/* Play badge on tiles */
.clip .frame::after {
  content: ""; position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,12,15,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 4.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat;
  opacity: .8; transition: transform .2s ease, opacity .2s ease;
}
.clip:hover .frame::after, .clip:focus-visible .frame::after { opacity: 1; transform: scale(1.08); }

/* Pop-up player */
dialog.player { padding: 0; border: 0; background: transparent; color: #fff; width: min(92vw, 1100px); max-width: none; max-height: none; overflow: visible; }
dialog.player.is-vertical { width: min(92vw, calc(82vh * 9 / 16)); }
dialog.player::backdrop { background: rgba(5,7,10,.88); }
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.player-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-close { font: 500 14px var(--body); color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 3px; padding: 8px 12px; cursor: pointer; flex: none; }
.player-close:hover { background: rgba(255,255,255,.22); }
.player-box { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
dialog.player.is-vertical .player-box { aspect-ratio: 9 / 16; border-radius: 12px; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-out { display: inline-block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.7); }

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats .wrap { padding-block: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { min-width: 0; }
.stat b {
  display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(32px, 4vw, 48px); line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 22em; }

/* AI tools */
.ai .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .ai .wrap { grid-template-columns: 1fr; gap: 32px; } }
.ai .intro p { color: var(--muted); max-width: 30em; margin: 18px 0 0; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; min-width: 0; }
@media (max-width: 640px) { .tools { grid-template-columns: 1fr; } }
.tools h3 { margin: 0 0 6px; }
.tools ul { list-style: none; margin: 0; padding: 0; }
.tools li { display: grid; gap: 2px; padding-block: 14px; border-top: 1px solid var(--line); }
.tools li b { font-weight: 600; }
.tools li span { font-size: 14px; color: var(--muted); }
.track-more { margin-top: 8px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); align-self: flex-start; }
.track-more:hover { color: var(--fg); border-color: var(--tc); }

/* Archive page */
.page-head .wrap { padding-block: 56px 8px; }
.page-head p { color: var(--muted); max-width: 34em; margin: 14px 0 0; }
.back { font-size: 14px; color: var(--muted); }
.arch { padding-block: 36px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; scroll-margin-top: 80px; }
.arch:first-of-type { border-top: 0; }
@media (max-width: 760px) { .arch { grid-template-columns: 1fr; gap: 12px; } }
.arch h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; color: var(--tc, var(--fg)); }
.rows { list-style: none; margin: 0; padding: 0; min-width: 0; }
.rows a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.rows a:hover .t { color: var(--tc, var(--orange)); }
.rows .t { font-weight: 600; line-height: 1.35; }
.rows .c { grid-column: 1; font-size: 14px; color: var(--muted); }
.rows .src { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rows .src::before { content: "▶ "; }

/* Process */
.process { background: var(--surface); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 26px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps .tc { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.steps h3 { margin: 0; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); max-width: 30em; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; gap: 24px; } }
.headshot { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; margin-top: 28px; }
@media (max-width: 820px) { .headshot { max-width: 300px; margin-top: 20px; } }
.about p { margin: 0 0 16px; font-size: 18px; max-width: 36em; }
.about p.small { font-size: 15px; color: var(--muted); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 28px 0 0; font-size: 14px; }
.specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact .wrap { padding-block: 96px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.contact h2 { font-size: clamp(36px, 6vw, 72px); max-width: 12em; }
.mail { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mail .addr { font-family: var(--mono); font-size: clamp(16px, 2.4vw, 22px); user-select: all; border-bottom: 1px solid var(--orange); padding-bottom: 2px; word-break: break-all; }
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { gap: 18px; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }

/* Hero reel */
.hero-reel { display: block; }
.hero-reel .frame { border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hero-reel .frame::after { width: 64px; height: 64px; left: 16px; bottom: 16px; background-size: 24px; }
