:root {
  --bg: #0a0908;
  --bg-soft: #12110f;
  --paper: #f3eadc;
  --paper-dim: #cfc4b4;
  --stone: #8f877c;
  --line: rgba(243, 234, 220, 0.12);
  --gold: #d4b483;
  --serif: "Manrope", "Helvetica Neue", sans-serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--chrome-offset, 72px);
}

html, body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 22px 36px 22px 248px;
  color: var(--paper);
}

.nav a,
.nav button {
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.nav-brand {
  position: absolute;
  top: 22px;
  left: 36px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.nav-links { display: flex; gap: 28px; }

.chrome-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  padding: 0 36px;
  transform: translateY(-6px);
  transition: max-height 0.35s var(--ease), opacity 0.28s var(--ease), transform 0.35s var(--ease), padding 0.35s var(--ease);
}

body.is-scrolled .chrome {
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}


body.is-scrolled .chrome-filters {
  max-height: 52px;
  opacity: 1;
  overflow-x: auto;
  overflow-y: hidden;
  pointer-events: auto;
  padding: 0 36px 12px;
  transform: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.is-scrolled .chrome-filters::-webkit-scrollbar { display: none; }

.chrome-filters button {
  flex: 0 0 auto;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--stone);
  border: 1px solid transparent;
  padding: 7px 12px;
  white-space: nowrap;
}

.chrome-filters button:hover,
.chrome-filters button.is-active {
  color: var(--paper);
}

.chrome-filters button.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 0 36px 108px;
}

.hero-media { position: absolute; inset: 0; }

.hero-marquee {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  overflow: hidden;
  padding: 72px 0 200px;
}

.logo-rail {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 16px 20px 20px;
  background: var(--bg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.logo-rail::-webkit-scrollbar { display: none; }

.logo-lockup {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: max-content;
  min-width: 100%;
}

.logo-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  opacity: 0.88;
  color: #fff;
}

.logo-item:hover,
.logo-item:focus-visible {
  opacity: 1;
}

.logo-item img {
  width: auto;
  height: 22px;
  max-width: 78px;
  object-fit: contain;
}

.logo-word {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.marquee-row {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 200s linear infinite;
  backface-visibility: hidden;
}

.marquee-row.is-reverse { animation-direction: reverse; }

.marquee-still {
  position: relative;
  flex: 0 0 auto;
  width: min(42vw, 640px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.62) 0%, rgba(10, 9, 8, 0.18) 28%, rgba(10, 9, 8, 0.15) 42%, rgba(10, 9, 8, 0.88) 100%),
    radial-gradient(ellipse at 30% 20%, transparent 0%, rgba(10, 9, 8, 0.35) 70%);
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 3; max-width: min(100%, 1280px); }

.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(36px, 8.4vw, 92px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  opacity: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 28px;
  color: var(--paper-dim);
  font-size: 14px;
}

.hero-meta a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.reel {
  overflow: hidden;
  background: #000;
}

.section { padding: 96px 36px; }

.reel { padding-top: 48px; }

.reel .archive-grid { margin-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.work-head {
  align-items: flex-end;
}

.section-head h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-head p,
.muted { color: var(--stone); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.featured-grid .card {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.featured-grid .card-copy { padding: 16px; }

.featured-grid .card-client { font-size: 16px; }

.card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  isolation: isolate;
  min-height: 280px;
  text-align: left;
}

.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card-media { position: absolute; inset: 0; }

.card-media img {
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92) contrast(1.05);
}

.card:hover .card-media img,
.card:focus-visible .card-media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.08);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 9, 8, 0.82) 100%);
}

.card-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
}

.card-copy span { display: block; }

.card-client {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.card-title {
  margin-top: 7px;
  color: var(--paper-dim);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.archive-grid .card { min-height: 240px; }

.archive-grid.is-category { margin-top: 0; }

.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stills-grid .card {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.stills-grid .card-client { font-size: 18px; }

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.about h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}

.about p + p { margin-top: 18px; }

.about p {
  max-width: 58ch;
  color: var(--paper-dim);
  font-size: 17px;
}

.contact-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-head p { max-width: 52ch; }

.contact { display: grid; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 72px;
  max-width: 820px;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.contact-value {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  white-space: nowrap;
}

.contact-links a:hover .contact-value {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer {
  padding: 28px 36px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-style: normal;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 5, 4, 0.92);
  display: none;
  place-items: center;
  padding: 28px;
}

.overlay.is-open { display: grid; animation: fade 0.28s var(--ease); }

.player {
  width: min(1100px, 100%);
  animation: rise 0.42s var(--ease);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  color-scheme: dark;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.player-poster.is-ready {
  opacity: 0;
}

.player-fallback {
  position: absolute;
  inset: 0;
}

.player-fallback img {
  filter: brightness(0.45);
}

.player-fallback-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.player-fallback-copy p {
  color: var(--paper-dim);
  max-width: 36ch;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding-top: 18px;
}

.player-meta h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.player-meta p {
  color: var(--stone);
  margin-top: 4px;
}

.player-nav { display: flex; gap: 12px; }

.ghost {
  border: 1px solid var(--line);
  padding: 10px 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.close {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}


@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav { padding: 18px 20px 18px 220px; }
  .nav-brand { top: 18px; left: 20px; }
  .chrome-filters { padding-left: 20px; padding-right: 20px; }
  body.is-scrolled .chrome-filters { padding: 0 20px 10px; }
  .nav-links { gap: 16px; }
  .hero, .section, .footer { padding-left: 20px; padding-right: 20px; }
  .hero-marquee { padding: 58px 0 180px; }
  .logo-rail { padding: 14px 16px 20px; }
  .logo-item img { height: 22px; max-width: 80px; }
  .logo-word { font-size: 11px; letter-spacing: 0.14em; }
  .featured-grid,
  .archive-grid,
  .stills-grid { grid-template-columns: repeat(2, 1fr); }
  .marquee-still { width: 72vw; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .hero { padding-bottom: 88px; }
  .hero-marquee { padding: 54px 0 160px; }
  .hero h1 {
    font-size: clamp(28px, 9vw, 48px);
    letter-spacing: 0.03em;
  }
  .featured-grid,
  .archive-grid,
  .stills-grid,
  .contact-links { grid-template-columns: 1fr; }
  .player-meta { flex-direction: column; align-items: flex-start; }
  body.is-scrolled .chrome-filters { max-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-row,
  .card-media img { animation: none; transition: none; }
}
