/* Layout idea: an edit bay. The reel plays full-bleed up top, the work sits on a slate with runtimes, one tally-light accent throughout. Single dark theme by choice. */
:root {
  color-scheme: dark;
  --ink: #0b0e13;
  --panel: #141a23;
  --line: #252e3c;
  --text: #efeae2;
  --muted: #929bab;
  --tally: #ff5a36;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.mark { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 15px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); }
.mark span { font-weight: 500; opacity: 0.7; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 15px; }
nav a { text-decoration: none; opacity: 0.82; padding: 6px 0; }
nav a:hover { opacity: 1; }
nav a.pill { opacity: 1; border: 1px solid rgba(239, 234, 226, 0.4); border-radius: 999px; padding: 8px 16px; }
nav a.pill:hover { border-color: var(--text); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 19, 0.72) 0%, rgba(11, 14, 19, 0.38) 34%, rgba(11, 14, 19, 0.86) 78%, var(--ink) 100%); }
.hero .wrap { padding-top: clamp(130px, 19vw, 230px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero h1 { font-family: var(--display); font-stretch: 114%; font-weight: 850; font-size: clamp(40px, 7.6vw, 104px); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 26px; max-width: 13ch; text-wrap: balance; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--tally); }
.hero p.lede { max-width: 54ch; font-size: clamp(17px, 1.7vw, 21px); margin: 0 0 32px; color: #d9d4cb; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--body); text-decoration: none; padding: 14px 24px; border-radius: 4px; border: 1px solid rgba(239, 234, 226, 0.35); background: rgba(11, 14, 19, 0.35); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--tally); border-color: var(--tally); color: #17100d; }
.btn.primary:hover { filter: brightness(1.08); }
.slate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: clamp(40px, 7vw, 84px); padding-top: 18px; border-top: 1px solid rgba(239, 234, 226, 0.22); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: #cfcac1; }
.slate .rec { display: flex; align-items: center; gap: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.slate .rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); animation: blink 1.6s steps(2, start) infinite; }
.slate ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Brand line */
.brands { border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 30px; }
.brands span.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.brands ul { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(15px, 1.7vw, 19px); color: #c9c4bb; }

/* Sections */
section { padding: clamp(52px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
h2 { font-family: var(--display); font-stretch: 114%; font-weight: 850; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.head p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font-family: var(--mono); font-size: 13px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; cursor: pointer; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.piece { text-decoration: none; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.piece[hidden] { display: none; }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); border-radius: 3px; }
.frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(239, 234, 226, 0.1); border-radius: 3px; pointer-events: none; transition: border-color 0.2s ease; }
.piece:hover .frame::after, .piece:focus-visible .frame::after { border-color: var(--tally); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.piece:hover .frame img { transform: scale(1.045); }
.frame .run { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 12px; background: rgba(8, 11, 15, 0.84); padding: 3px 8px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.frame .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--tally); display: grid; place-items: center; opacity: 0; transform: scale(0.85); transition: opacity 0.2s ease, transform 0.2s ease; }
.piece:hover .play, .piece:focus-visible .play { opacity: 1; transform: scale(1); }
.play::before { content: ""; border-left: 17px solid #17100d; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meta b { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.meta span { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.grid[data-f="all"] .piece.feature { grid-column: span 2; grid-row: span 2; }
.grid[data-f="all"] .piece.feature .frame { aspect-ratio: auto; flex: 1; min-height: 240px; }
.grid[data-f="all"] .piece.feature .meta b { font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: clamp(20px, 2.2vw, 28px); }
.allwork { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; background: var(--panel); min-height: 180px; }
.allwork:hover { border-color: var(--tally); }
.allwork b { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.05; }
.allwork span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.allwork i { font-style: normal; color: var(--tally); font-size: 26px; line-height: 1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services article { background: var(--ink); padding: 30px 26px 32px; display: flex; flex-direction: column; gap: 12px; }
.services .no { font-family: var(--mono); font-size: 13px; color: var(--tally); }
.services h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.08; margin: 0; }
.services p { margin: 0; color: var(--muted); }
.services ul { margin: 6px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; display: grid; gap: 7px; }
.services li::before { content: "+ "; color: var(--tally); }

/* Why */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 36px; }
.why h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.why p { margin: 0; color: var(--muted); max-width: 40ch; }

/* Process: laid out like clips on a timeline */
.track { display: grid; grid-template-columns: 1.1fr 1.5fr 1.3fr 0.9fr; gap: 6px; }
.clip { background: var(--panel); border-left: 3px solid var(--tally); border-radius: 2px; padding: 18px 18px 20px; min-width: 0; }
.clip .tc { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.clip h3 { font-size: 18px; font-weight: 600; margin: 8px 0 6px; }
.clip p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Contact */
.contact { background: var(--tally); color: #17100d; border-top: 0 !important; }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; align-items: end; }
.contact h2 { font-size: clamp(34px, 6.4vw, 84px); max-width: 12ch; }
.contact p { margin: 0 0 20px; max-width: 44ch; font-size: 18px; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail { font-family: var(--mono); font-weight: 500; font-size: clamp(17px, 2.2vw, 24px); overflow-wrap: anywhere; }
.copy { font: 600 14px var(--body); background: #17100d; color: var(--text); border: 0; border-radius: 4px; padding: 10px 16px; cursor: pointer; }
.contact :focus-visible { outline-color: #17100d; }

footer { padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Player */
dialog { border: 0; padding: 0; background: transparent; width: min(1160px, 94vw); max-width: none; color: var(--text); }
dialog::backdrop { background: rgba(5, 7, 10, 0.9); }
.player { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.player .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.player .bar b { font-weight: 600; overflow-wrap: anywhere; }
.player .bar button { background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 4px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.player .stage { aspect-ratio: 16 / 9; background: #000; position: relative; }
.player iframe, .player .still { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player .note { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.player .note a { color: var(--text); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .grid[data-f="all"] .piece.feature { grid-column: auto; grid-row: auto; }
  .grid[data-f="all"] .piece.feature .frame { aspect-ratio: 16 / 9; min-height: 0; }
  .track { grid-template-columns: 1fr; }
  nav a:not(.pill) { display: none; }
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--ink); padding: 10px 14px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.mark { white-space: nowrap; }
nav a { white-space: nowrap; }
.errorpage { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding-top: 120px; padding-bottom: 80px; }
.errorpage h1 { font-family: var(--display); font-stretch: 114%; font-weight: 850; text-transform: uppercase; font-size: clamp(36px, 7vw, 84px); line-height: 1; margin: 0; }
.errorpage p { color: var(--muted); margin: 0; max-width: 46ch; }
@media (hover: none) {
  .frame .play { opacity: 1; transform: none; left: 10px; top: auto; bottom: 10px; margin: 0; width: 34px; height: 34px; }
  .play::before { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; margin-left: 3px; }
}
@media (max-width: 560px) {
  .mark { font-size: 12.5px; gap: 8px; letter-spacing: 0.03em; }
  nav a.pill { font-size: 13.5px; padding: 7px 13px; }
  .top .wrap { min-height: 60px; }
}
@media (max-width: 350px) { .mark span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img, .frame .play, .frame::after { transition: none; }
  .slate .rec i { animation: none; }
}
