:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --line: #26262a;
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --accent: #2f6bff;
  --accent-hi: #4d82ff;
  --radius: 16px;
  --gutter: 24px;
  --max: 1120px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.accent { color: var(--accent); }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 8px 32px -8px rgba(47, 107, 255, 0.6);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn:focus-visible, .ctl:focus-visible, .player-close:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 16px 36px; font-size: 18px; }

/* ── Nav ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-name { font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 88px;
  padding-bottom: 120px;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.headline {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.subhead {
  margin: 24px 0 48px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  text-wrap: pretty;
}
.intro {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(47, 107, 255, 0.35);
}
.intro-video { width: 100%; height: 100%; object-fit: cover; }

/* ── Shared video controls ───────────────── */
.controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.intro:hover .controls,
.tile:hover .controls,
.intro:focus-within .controls,
.tile:focus-within .controls,
.is-touch .controls { opacity: 1; transform: none; }
.ctl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.ctl:hover { background: rgba(10, 10, 11, 0.9); }
.ctl svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl svg .fill { fill: #fff; stroke: none; }

/* ── Sections ────────────────────────────── */
.section-head { margin-bottom: 40px; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kicker::before, .kicker::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hint { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
/* Sized so "Client work" spans the same width as the hint line under it. */
.work .section-head h2 { font-size: 63px; }

/* ── About ───────────────────────────────── */
.about { padding-bottom: 128px; }
.about { text-align: center; }
.about-text { max-width: 860px; margin: 0 auto; }
.about-text p {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.about-text strong { font-weight: 700; color: var(--text); }
.about-text p + p { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; letter-spacing: 0; }
.star-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}
.star-row li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.star-row .star { width: 9px; height: 9px; fill: var(--accent); flex: none; }

/* ── Work grid ───────────────────────────── */
.work { padding-bottom: 128px; }
.grid {
  --cols: 3;
  --gap: 20px;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 4px;
  grid-auto-flow: dense;
  column-gap: var(--gap);
}
.tile { margin: 0; align-self: start; }
.tile.wide { grid-column: span 2; }
.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}
.tile:hover .frame { box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.6), 0 24px 60px -24px rgba(47, 107, 255, 0.45); }
.frame video { width: 100%; height: 100%; object-fit: cover; }
/* Soft black fade in the top-left corner, just behind the format label. */
.frame:has(.pill)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: min(85%, 260px);
  height: 120px;
  background: radial-gradient(100% 100% at 0 0, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.32) 40%, rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}
.pill {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.controls { z-index: 2; }
.tile figcaption { padding: 12px 4px 0; font-size: 16px; font-weight: 700; }

/* ── CTA ─────────────────────────────────── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 128px;
  border-top: 1px solid var(--line);
}
.cta h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cta p { margin: 20px 0 40px; max-width: 46ch; color: var(--muted); font-size: 18px; text-wrap: pretty; }

.cta-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 16px;
}
.cta-contact span:first-child { width: 100%; font-size: 14px; }
.cta-contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.cta-contact a:hover { border-color: var(--accent); }

/* ── Footer ──────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Fullscreen player ───────────────────── */
.player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
}
.player[hidden] { display: none; }
.player-video {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain;
}
.player:fullscreen .player-video { inset: 0; width: 100%; height: 100%; }
.player-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.8);
}
.player-close svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .grid { --cols: 2; --gap: 14px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --radius: 12px; }
  .nav-links a { display: none; }
  .hero { padding-top: 56px; padding-bottom: 88px; }
  .subhead { margin-bottom: 36px; }
  .intro { margin-bottom: 36px; }
  .about, .work { padding-bottom: 96px; }
  .star-row { font-size: 16px; gap: 6px 20px; }
  .pill { top: 10px; left: 12px; font-size: 12px; }
  .frame:has(.pill)::before { height: 90px; }
  .tile figcaption { font-size: 14px; padding-top: 8px; }
  .ctl { width: 34px; height: 34px; }
  .controls { right: 8px; bottom: 8px; gap: 6px; }
  .cta { padding-top: 72px; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
