/* Shared styles for the work pages. Same tokens as the home page. */
:root {
  --bg: #f2f4f8; --surface: #ffffff; --ink: #131926; --muted: #586379; --line: #dde2ea;
  --accent: #e0302b; --accent-soft: #fde8e7;
  --stage: #313b4f; --stage-2: #263042; --stage-ink: #f3f5f9; --stage-muted: #b4bdcd;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e121a; --surface: #161c27; --ink: #edf0f6; --muted: #9aa5b8; --line: #263043;
    --accent: #ff4a43; --accent-soft: #3a1a1c; --stage: #252e3f; --stage-2: #1b2331;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e121a; --surface: #161c27; --ink: #edf0f6; --muted: #9aa5b8; --line: #263043;
  --accent: #ff4a43; --accent-soft: #3a1a1c; --stage: #252e3f; --stage-2: #1b2331;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.nav { background: var(--stage-2); color: var(--stage-ink); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; }
.brand span { color: var(--accent); }
.nav .links { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav .links a { text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 6px; color: var(--stage-muted); white-space: nowrap; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--stage-ink); background: rgba(255,255,255,0.07); }

.hero { background: radial-gradient(120% 100% at 80% 20%, #44506a 0%, var(--stage) 45%, var(--stage-2) 100%); color: var(--stage-ink); }
.hero .wrap { padding-block: 48px 56px; }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stage-muted); text-decoration: none; }
.crumb:hover { color: var(--stage-ink); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.03em; margin: 20px 0 0; text-wrap: balance; }
.hero .lede { color: var(--stage-muted); max-width: 60ch; margin: 18px 0 0; font-size: 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: var(--stage-ink); }
.pill.red { background: var(--accent); border-color: var(--accent); color: #fff; }

/* video-style progress strip: one segment per role, sized by months */
.roles { display: flex; gap: 4px; margin-top: 36px; }
.roles .seg { min-width: 0; }
.roles .seg i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.roles .seg.lit i { background: var(--accent); }
.roles .seg b { display: block; font-family: var(--display); font-size: 15px; margin-top: 10px; line-height: 1.25; }
.roles .seg small { display: block; font-family: var(--mono); font-size: 11px; color: var(--stage-muted); margin-top: 2px; }

section.block { padding-block: 72px 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: flex; gap: 10px; align-items: center; }
.eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--line); }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 0; max-width: 24ch; text-wrap: balance; }
.sub { color: var(--muted); max-width: 62ch; margin: 12px 0 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 32px; }
.stat { background: var(--surface); padding: 24px 22px; min-width: 0; }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.8vw, 44px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .num .arrow { color: var(--accent); font-weight: 500; }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.item .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.item h3 { font-family: var(--display); font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.item p { margin: 0; color: var(--muted); }
.item .result { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; }
.item .result b { color: var(--accent); font-weight: 600; }
.item.wide { grid-column: 1 / -1; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.step { border-top: 3px solid var(--accent); padding-top: 16px; min-width: 0; }
.step .k { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { font-family: var(--display); font-size: 19px; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.role-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); margin-top: 24px; }
.role-card:last-of-type { border-bottom: 1px solid var(--line); }
.role-card .when { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.role-card h3 { font-family: var(--display); font-size: 24px; margin: 0; }
.role-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.role-card li { position: relative; padding-left: 20px; }
.role-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

.next { margin-top: 88px; background: var(--stage-2); color: var(--stage-ink); }
.next .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: 48px; }
.next .who { display: flex; gap: 16px; align-items: center; min-width: 0; }
.next img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex: none; }
.next strong { font-family: var(--display); font-size: 22px; display: block; line-height: 1.2; }
.next span { color: var(--stage-muted); font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid rgba(255,255,255,0.22); color: var(--stage-ink); }
.btn:hover { background: rgba(255,255,255,0.08); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work, .how { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 520px) {
  .brand { display: none; }
  .nav .links { margin-left: 0; }
  .roles { flex-direction: column; gap: 14px; }
  .roles .seg { flex: none !important; }
  section.block { padding-top: 56px; }
}

/* ---------- campaigns ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filters button { font-family: var(--body); font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.vid { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--stage); max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vid:hover .thumb img { transform: scale(1.04); }
.thumb .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 10px; background: rgba(15,18,26,0.72); display: grid; place-items: center; transition: background .2s; }
.vid:hover .thumb .play { background: var(--accent); }
.thumb .play::after { content: ""; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.thumb .mk { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; background: rgba(15,18,26,0.78); color: #fff; }
.thumb .mk.us { background: var(--accent); }
.thumb .kind { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.75); color: #fff; }
.vid .by { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.vid .title { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; margin-top: 24px; }
.chan { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; min-width: 0; }
.chan:hover { border-color: var(--accent); }
.chan img, .chan .ini { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.chan .ini { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 22px; }
.chan div { min-width: 0; }
.chan strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.25; }
.chan span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan .go { margin-left: auto; color: var(--accent); font-size: 18px; flex: none; }
@media (max-width: 860px) { .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vids { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
