:root {
  --bg: #050505;
  --fg: #f5f4f0;
  --muted: rgba(245, 244, 240, .58);
  --line: rgba(245, 244, 240, .14);
  --gold: #c9913b;
  --radius: 18px;
  --wall-gap: clamp(8px, .75vw, 14px);
  --ease: cubic-bezier(.22,.8,.18,1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
video { display: block; }

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  padding: 0 clamp(20px, 2.4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.92);
  pointer-events: none;
  transition: opacity .35s ease;
}
.site-header a { pointer-events: auto; }
.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  color: rgba(255,255,255,.72);
}
.header-dot { font-size: 8px; opacity: .72; }

.intro-sequence {
  position: relative;
  height: 592vh;
}
.intro-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #020202;
  isolation: isolate;
}

/* V3 — all tiles are equal 16:9, straight, rounded and deliberately subdued. */
.video-wall {
  position: absolute;
  z-index: 1;
  inset: -5.5svh -18vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--wall-gap);
  opacity: .58;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}
.wall-row {
  height: calc((111svh - 3 * var(--wall-gap)) / 4);
  flex: 0 0 auto;
  overflow: visible;
  display: flex;
  align-items: center;
}
.wall-track {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--wall-gap);
  width: max-content;
  will-change: transform;
}
.tile {
  position: relative;
  height: 100%;
  aspect-ratio: 16 / 9;
  width: auto;
  overflow: hidden;
  flex: 0 0 auto;
  background: #0a0a0a;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translateZ(0);
}
.tile video,
.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile video {
  transform: none;
  filter: brightness(.66) saturate(.82) contrast(.98);
  image-rendering: auto;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.05));
  pointer-events: none;
}
.showreel-source { outline: none; }

.wall-vignette {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.22) 0%, rgba(0,0,0,.18) 30%, rgba(0,0,0,.35) 74%, rgba(0,0,0,.55) 115%),
    linear-gradient(180deg, rgba(0,0,0,.24), transparent 18%, transparent 78%, rgba(0,0,0,.34));
  will-change: opacity;
}

.hero-brand {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transform: translateY(-1.5svh);
  will-change: opacity, transform;
}
.hero-logo {
  margin-left: .16em;
  white-space: nowrap;
  font-size: clamp(42px, 6.2vw, 112px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,.28);
}
.hero-divider {
  width: clamp(72px, 7vw, 122px);
  height: 1px;
  margin: clamp(26px, 3vh, 36px) 0 clamp(20px, 2.4vh, 30px);
  background: rgba(255,255,255,.52);
}
.hero-brand p {
  margin: 0;
  padding: 0 24px;
  font-size: clamp(14px, 1.3vw, 23px);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: .01em;
  color: rgba(255,255,255,.86);
}

.scroll-cue {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 21px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255,255,255,.70);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .22em;
  will-change: opacity;
}
.scroll-ring {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
}
.scroll-ring i {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,.88);
  border-radius: 50%;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%,100% { transform: translateY(-5px); opacity: .35; }
  50% { transform: translateY(5px); opacity: 1; }
}

.showreel-layer {
  position: absolute;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: #000;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
  will-change: left, top, width, height, border-radius, opacity;
}
.showreel-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#showreelHigh {
  opacity: 0;
  transition: opacity 170ms linear;
}
.showreel-label {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 24px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .17em;
  color: rgba(255,255,255,.80);
  opacity: 0;
  transition: opacity .35s ease;
}
.showreel-label.is-visible { opacity: 1; }

.content-section {
  min-height: 100vh;
  padding: 120px 5vw 140px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.section-kicker {
  margin-bottom: 9vh;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
.section-heading-wrap {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 11vh;
}
.section-heading-wrap h1 {
  margin: 0;
  font-size: clamp(52px, 8.4vw, 150px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 600;
}
.section-heading-wrap p {
  margin: 0 0 1.2vw;
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.work-card {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #101010;
  border-radius: 15px;
}
.work-card-large {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: calc(100vh - 180px);
}
.work-meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 17px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .11em;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

.services { min-height: auto; }
.services-list { border-top: 1px solid var(--line); }
.services-list > div {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) minmax(220px,.45fr);
  gap: 20px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.services-list span { color: var(--gold); font-size: 9px; font-weight: 600; }
.services-list h2 { margin: 0; font-weight: 500; font-size: clamp(28px,4vw,62px); letter-spacing: -.04em; }
.services-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.clients { min-height: 72vh; overflow: hidden; }
.client-marquee {
  margin: 14vh -5vw 0;
  white-space: nowrap;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 34px 0;
}
.client-marquee div {
  width: max-content;
  font-size: clamp(42px,8vw,130px);
  font-weight: 500;
  letter-spacing: -.045em;
  animation: marquee 24s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.clients-note { margin-top: 26px; color: var(--muted); font-size: 11px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .19em;
}
.contact-section {
  min-height: 100vh;
  padding: 120px 5vw 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.contact-section > a {
  width: max-content;
  font-size: clamp(72px,13vw,220px);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .88;
}
.contact-section > a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.contact-section > a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-footer {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
}

@media (max-width: 800px) {
  :root { --radius: 13px; --wall-gap: 7px; }
  .site-header { height: 64px; padding: 0 18px; }
  .wordmark { font-size: 13px; }
  .header-right span:first-child,
  .header-dot { display: none; }
  .header-right { gap: 0; font-size: 9px; }

  .intro-sequence { height: 370.6vh; }
  .video-wall {
    inset: -3svh -62vw;
    gap: var(--wall-gap);
  }
  .wall-row { height: calc((106svh - 3 * var(--wall-gap)) / 4); }
  .tile video { filter: brightness(.63) saturate(.80); }
  .hero-brand { transform: translateY(-1svh); }
  .hero-logo {
    font-size: clamp(34px, 10.5vw, 54px);
    letter-spacing: .10em;
    margin-left: .10em;
  }
  .hero-divider { width: 64px; margin: 23px 0 18px; }
  .hero-brand p { max-width: 360px; padding: 0 28px; font-size: 13px; line-height: 1.55; }
  .scroll-cue { bottom: 17px; }
  .scroll-ring { width: 30px; height: 30px; }

  .content-section { padding: 90px 20px 100px; }
  .section-kicker { margin-bottom: 70px; }
  .section-heading-wrap { grid-template-columns: 1fr; gap: 34px; margin-bottom: 70px; }
  .section-heading-wrap h1 { font-size: 56px; }
  .section-heading-wrap p { font-size: 13px; }
  .work-grid { grid-template-columns: 1fr; gap: 12px; }
  .work-card-large { grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .work-card { aspect-ratio: 16 / 10; border-radius: 12px; }
  .services-list > div { grid-template-columns: 34px 1fr; padding: 26px 0; }
  .services-list p { grid-column: 2; }
  .client-marquee { margin-inline: -20px; }
  .contact-section { padding: 90px 20px 30px; }
  .contact-section > a { font-size: 68px; }
  .contact-footer { left: 20px; right: 20px; }
  .showreel-label { left: 18px; bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee div,
  .scroll-ring i { animation: none !important; }
}

/* V3.2 transition stability */
html, body { overflow-anchor: none; }
.showreel-layer {
  position: absolute;
  visibility: hidden;
  transform-origin: center center;
  contain: layout paint;
  backface-visibility: hidden;
}
