:root {
  --bg: #0b0b0a;
  --panel: #11110f;
  --text: #f2f0e9;
  --muted: #a8a69f;
  --line: rgba(242, 240, 233, 0.18);
  --acid: #d9ff4d;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.section-pad { padding-left: var(--pad); padding-right: var(--pad); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: rgba(11, 11, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 12px;
  color: var(--muted);
  transition: color .2s ease;
}
.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(54px, 7.5vh, 88px);
  padding-bottom: clamp(48px, 6.5vh, 76px);
}
.hero-copy { max-width: 1260px; }
.eyebrow,
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--acid);
  margin-bottom: 24px;
}
.hero h1 {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(48px, 7.4vw, 112px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: 46px;
}
.dek {
  margin: 0;
  max-width: 640px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.34;
  color: #d3d1ca;
  letter-spacing: -.02em;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.button-primary { background: var(--text); color: var(--bg); }
.button-ghost:hover { background: rgba(255, 255, 255, .06); }

.work,
.services,
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 54px;
  padding-bottom: 92px;
  border-top: 1px solid var(--line);
}
.work,
.services { scroll-margin-top: 4px; }
.section-kicker {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 24px;
}
.video-shell {
  position: relative;
  background: #000;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(62px, 5.6vw, 82px);
  height: clamp(62px, 5.6vw, 82px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 240, 233, .96);
  color: var(--bg);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.video-play:hover {
  background: var(--text);
  transform: translate(-50%, -50%) scale(1.04);
}
.video-play:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}
.video-play.is-hidden { display: none; }
.video-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
}
.reel {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(36px, 8vw, 120px);
  padding-top: 30px;
}
.project-client {
  margin-bottom: 10px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}
.project-grid h2,
.services-grid h2,
.about-grid h2 {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
  text-wrap: balance;
}
.project-copy p,
.about-grid p {
  margin: 0;
  color: #c2c0b9;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.meta div { display: grid; gap: 6px; }
.meta dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.meta dd { margin: 0; font-size: 14px; }

.services-grid,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.service-list { border-top: 1px solid var(--line); }
.service-list div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2vw, 24px);
}
.services-note {
  max-width: 600px;
  margin: 44px 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.contact {
  background: #E8E6E1;
  color: var(--bg);
  padding-top: clamp(76px, 9vw, 138px);
  padding-bottom: clamp(76px, 9vw, 138px);
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.contact .section-kicker { color: rgba(11, 11, 10, .60); }
.contact-pre {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact h2 {
  max-width: 1060px;
  margin: 0;
  font-size: clamp(52px, 7.8vw, 118px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 600;
  text-wrap: balance;
}
.contact-note {
  margin: 28px 0 0;
  font-size: 16px;
  color: rgba(11,11,10,.7);
}
.contact-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -.02em;
}
.contact-link:hover { opacity: .7; }
.contact-link:focus-visible { outline: 2px solid var(--bg); outline-offset: 4px; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

@media (max-width: 820px) {
  .site-header { padding-top: 17px; padding-bottom: 17px; }
  .nav { gap: 16px; }
  .nav a:nth-child(2) { display: none; }
  .brand,
  .nav a { position: relative; }
  .brand::before,
  .nav a::before {
    content: "";
    position: absolute;
    inset: -15px -8px;
  }
  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: clamp(46px, 13.2vw, 76px);
    line-height: .94;
  }
  .hero-bottom,
  .project-grid,
  .services-grid,
  .about-grid { grid-template-columns: 1fr; }
  .hero-bottom { margin-top: 36px; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .work, .services, .about { padding-top: 40px; padding-bottom: 72px; }
  .work, .services { scroll-margin-top: 12px; }
  .project-grid { gap: 26px; }
  .project-copy p, .about-grid p { font-size: 17px; }
  .services-note { margin-left: 0; margin-top: 34px; }
  .footer {
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .nav a { font-size: 11px; }
  .brand { font-size: 12px; }
  .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(44px, 14.6vw, 66px); }
  .dek { font-size: 18px; }
  .button { min-height: 44px; padding: 0 15px; }
  .meta { grid-template-columns: 1fr 1fr; }
  .contact h2 { font-size: clamp(50px, 15vw, 76px); }
}

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


/* Native controls remain available until the custom player is initialized. */
.video-shell:not(.is-enhanced) .video-play,
.video-shell:not(.is-enhanced) .video-controls,
.video-shell.has-error .video-play,
.video-shell.has-error .video-controls {
  display: none;
}
.video-fallback {
  margin: 0;
  padding: 16px;
  background: #11110f;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.video-shell.is-enhanced .video-fallback {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
}
.video-fallback[hidden],
.video-retry[hidden] { display: none; }
.video-fallback a {
  display: inline-block;
  padding: 10px 4px;
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-retry {
  min-height: 44px;
  margin-left: 8px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.video-fallback a:focus-visible,
.video-retry:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

/* Reel player ------------------------------------------------------------
   Research direction: icon-only, auto-hiding controls like Vimeo/Plyr,
   without handing Safari its native inline control overlay. */
.video-shell {
  position: relative;
  background: #000;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  outline: none;
  --player-white: #f5f3ec;
  --player-dim: rgba(245, 243, 236, .68);
}
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.video-shell:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}
.reel {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: clamp(64px, 5.8vw, 84px);
  height: clamp(64px, 5.8vw, 84px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .50);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .16s ease, background .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}
.video-play:hover {
  background: rgba(0, 0, 0, .62);
  transform: translate(-50%, -50%) scale(1.045);
}
.video-play:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}
.video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.94);
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  padding: 42px 16px 12px;
  color: var(--player-white);
  background: linear-gradient(to top, rgba(0,0,0,.64) 0%, rgba(0,0,0,.32) 45%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.video-shell.controls-visible .video-controls,
.video-shell:not(.is-playing) .video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* The pristine poster stays pristine: before first play we show only the
   central play button, not a bottom UI strip. */
.video-shell:not(.has-started) .video-controls {
  opacity: 0 !important;
  pointer-events: none !important;
}
.video-shell.has-started:not(.is-playing).controls-visible .video-controls,
.video-shell.has-started:not(.is-playing):focus-within .video-controls {
  opacity: 1;
  pointer-events: auto;
}

.video-control-row {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 6px;
}
.video-control-spacer { flex: 1 1 auto; }
.video-control {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--player-white);
  cursor: pointer;
  transition: color .14s ease, background .14s ease, transform .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.video-control:hover {
  color: #fff;
  background: rgba(255,255,255,.10);
}
.video-control:active { transform: scale(.94); }
.video-control:focus-visible,
.video-progress:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}
.video-control .icon {
  width: 19px;
  height: 19px;
  display: block;
}
.icon-pause,
.video-toggle.is-playing .icon-play,
.icon-muted {
  display: none !important;
}
.video-toggle.is-playing .icon-pause,
.video-mute.is-muted .icon-muted {
  display: block !important;
}
.video-mute.is-muted .icon-volume { display: none !important; }

.video-time {
  margin-left: 1px;
  color: rgba(245,243,236,.82);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  white-space: nowrap;
  user-select: none;
}

.video-progress {
  --progress: 0%;
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.video-progress::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--player-white) 0 var(--progress),
    rgba(245,243,236,.34) var(--progress) 100%);
}
.video-progress::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--player-white);
  opacity: 0;
  transform: scale(.75);
  transition: opacity .12s ease, transform .12s ease;
  -webkit-appearance: none;
}
.video-progress:hover::-webkit-slider-thumb,
.video-progress:focus-visible::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1);
}
.video-progress::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(245,243,236,.34);
}
.video-progress::-moz-range-progress {
  height: 2px;
  border-radius: 999px;
  background: var(--player-white);
}
.video-progress::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--player-white);
}

.video-shell:fullscreen,
.video-shell:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-shell:fullscreen .reel,
.video-shell:-webkit-full-screen .reel {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-shell:fullscreen .video-controls,
.video-shell:-webkit-full-screen .video-controls {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 18px;
}

@media (min-width: 621px) and (max-width: 820px) {
  .video-control { position: relative; }
  .video-control::before {
    content: "";
    position: absolute;
    inset: -4px -3px;
  }
  .video-progress {
    height: 32px;
    margin: -8px 0;
  }
}

@media (max-width: 620px) {
  .video-play {
    width: 58px;
    height: 58px;
  }
  .video-play svg { width: 24px; height: 24px; }
  .video-controls {
    padding: 34px 8px 6px;
    gap: 2px;
  }
  .video-control-row { gap: 2px; }
  .video-control {
    position: relative;
    width: 42px;
    height: 42px;
  }
  .video-control::before {
    content: "";
    position: absolute;
    inset: -1px;
  }
  .video-time { font-size: 9px; }
  .video-progress {
    height: 32px;
    margin: -9px 0;
  }
}

@media (hover: none) {
  .video-progress::-webkit-slider-thumb { opacity: 1; transform: scale(.85); }
}
