/* District 2 Media: black studio, warm white type, one accent (white by default, matching the logo).
   Display: Archivo expanded caps. Body: Inter. Motif: camera viewfinder (REC, timecode, frame corners). */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --black: #0b0b0c;
  --ink: #141416;
  --ink-2: #1b1b1e;
  --line: #2a2a2e;
  --white: #f4f2ee;
  --muted: #9c9a96;
  --dim: #6d6b68;
  /* Accent: one switch. Monochrome by default to match the black-and-white logo.
     To try a color, set --accent (and --accent-ink for text on it), e.g. #ffb81c / #1a1200. */
  --accent: #f4f2ee;
  --accent-ink: #0b0b0c;
  --hl-fill: transparent;   /* highlighted headline words: outline in the accent color */
  --rec: #ff3b30;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding: clamp(80px, 11vw, 144px) 0; border-top: 1px solid var(--line); }

.display { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; }
.h1 { font-size: clamp(44px, 8.2vw, 116px); }
.hero-copy { container-type: inline-size; }
.hero .h1 { font-size: clamp(32px, 10.2cqi, 120px); }
.h1 .phrase { display: inline-block; }
.h2 { font-size: clamp(34px, 5.2vw, 68px); }
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.05; }
.hl { color: var(--hl-fill); -webkit-text-stroke: clamp(1.5px, .16vw, 2.5px) var(--accent); paint-order: stroke fill; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(255, 59, 48, .18); flex: none; }
@media (prefers-reduced-motion: no-preference) { .rec { animation: blink 1.6s steps(1) infinite; } @keyframes blink { 50% { opacity: .25; } } }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 620px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); background: transparent; color: var(--accent); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink-2); border-color: var(--white); color: var(--white); }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(11, 11, 12, .86); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--black); z-index: 60; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid var(--line); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; font-size: 18px; color: var(--white); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; min-height: 52px; }
}

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.tagline { font-stretch: 112%; font-weight: 700; text-transform: none; letter-spacing: -.005em; line-height: 1.15; font-size: clamp(20px, 4.6cqi, 38px); margin: 0 0 22px; color: var(--white); }
.hero .lead { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Viewfinder */
.viewfinder { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 380px; justify-self: end; background: var(--ink); border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 18%, transparent 80%, rgba(0,0,0,.55)); }
.viewfinder > :not(video) { z-index: 2; }
.vf-corner { position: absolute; width: 30px; height: 30px; border: 2px solid #fff; }
.vf-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.vf-top, .vf-bottom { position: absolute; left: 58px; right: 58px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vf-top { top: 28px; }
.vf-bottom { bottom: 28px; }
.vf-rec { display: inline-flex; align-items: center; gap: 8px; }
.vf-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.vf-cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.vf-sound { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 10px; font: inherit; letter-spacing: .08em; cursor: pointer; }
.vf-sound:hover { background: rgba(0,0,0,.8); }
.vf-sound svg { width: 14px; height: 14px; }
@media (max-width: 960px) { .viewfinder { justify-self: start; max-width: 360px; } }
@media (max-width: 480px) { .vf-top, .vf-bottom { left: 50px; right: 50px; font-size: 10.5px; } }

/* Ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 40px; padding: 20px 0; animation: marquee 45s linear infinite; }
.ticker-track span { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--muted); display: inline-flex; align-items: center; gap: 40px; }
.ticker-track span::after { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; min-width: 0; }
.service:hover { background: var(--ink); }
.service .label { display: block; margin-bottom: 40px; }
.service h3 { margin-bottom: 14px; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Who */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who-card { background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; min-width: 0; }
.who-card.lead-card { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.who-card.lead-card p { color: var(--accent-ink); opacity: .78; }
.who-card .label { display: block; margin-bottom: 28px; }
.who-card.lead-card .label { color: var(--accent-ink); opacity: .7; }
.who-card h3 { margin-bottom: 10px; }
.who-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } }

/* Work */
.work { display: grid; gap: clamp(48px, 7vw, 88px); }
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.case:nth-child(even) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); aspect-ratio: 16 / 9; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.case:hover .case-media img { transform: scale(1.02); }
.case-media .tag { position: absolute; left: 14px; top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(11, 11, 12, .82); padding: 6px 10px; border-radius: 4px; display: inline-flex; gap: 8px; align-items: center; }
.case h3 { font-size: clamp(28px, 3.4vw, 44px); margin: 10px 0 16px; }
.case p { color: var(--muted); }
.deliverables { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.deliverables li { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.deliverables li::before { content: ""; width: 14px; height: 2px; background: var(--accent); flex: none; transform: translateY(-4px); }
.text-link { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); }
@media (max-width: 860px) { .case, .case:nth-child(even) { grid-template-columns: 1fr; } .case:nth-child(even) .case-media { order: 0; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { border-top: 2px solid var(--white); padding-top: 22px; min-width: 0; }
.step .num { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 54px; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about .lead { color: var(--white); margin-bottom: 20px; }
.about p { color: var(--muted); }
.facts { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact h2 { margin-bottom: 24px; font-size: clamp(34px, 4.4vw, 60px); }
.contact-alt { margin-top: 32px; display: grid; gap: 8px; font-size: 15.5px; color: var(--muted); }
.form { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field .opt { color: var(--dim); font-weight: 500; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input { width: 100%; min-height: 50px; padding: 13px 14px; font: 400 16px/1.4 var(--body); color: var(--white); background: var(--black); border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .15s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { font-size: 15px; font-weight: 600; min-height: 1em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff8a80; }
.hp { position: absolute !important; left: -9999px !important; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.big-sign { padding: clamp(40px, 6vw, 72px) 0 0; opacity: .1; }
.big-sign img { width: 100%; max-width: 1100px; height: auto; }

/* Reveal */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } }
