/* =====================================================
   OFF BRAND — Global Styles
   offbrandvisuals.com
   ===================================================== */

/* Space Grotesk is loaded via a <link> tag in each page's <head>
   instead of @import here — @import blocks discovery of the font
   fetch until this stylesheet is downloaded and parsed. */

/* ---- Variables ---- */
:root {
  --bg: #0D1117;
  --bg-2: #131820;
  --text: #F0E6C3;
  --text-dim: #6B6254;
  --text-mid: #A89070;
  --accent: #C8952E;
  --accent-light: #F0E6C3;
  --blue: #08327F;
  --white: #FFFFFF;
  --border: rgba(240, 230, 195, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 1, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: none; font-family: inherit; }


/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(240,240,237,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
}

body.cursor-hover .cursor { width: 0; height: 0; opacity: 0; }
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  border-color: rgba(240,240,237,0.5);
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.loader-text {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-dim);
  overflow: hidden;
}

.loader-text span {
  display: inline-block;
  transform: translateY(120%);
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(240,240,237,0.1);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.8s var(--ease);
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(-10px);
}

.nav-logo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-contact {
  padding: 10px 20px;
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid) !important;
  transition: border-color 0.3s, color 0.3s !important;
}

.nav-contact::after { display: none !important; }
.nav-contact:hover {
  border-color: var(--text) !important;
  color: var(--text) !important;
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(8, 50, 127, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 40px;
  border-bottom: 1px solid rgba(200, 149, 46, 0.25);
  transition: padding 0.4s var(--ease), background 0.4s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: max(100dvh, 600px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform, border-radius;
}

.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8,50,127,0.25) 0%,
      rgba(13,17,23,0.1) 40%,
      rgba(13,17,23,0.75) 100%);
}

/* Thin gold frame that fades in as the hero pulls back on scroll */
.hero-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(200,149,46,0.45);
  opacity: var(--frame-opacity, 0);
  z-index: 3;
  pointer-events: none;
}

/* Subtle grain */
.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  animation: grain 0.8s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 4%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(1%, 3%); }
  70% { transform: translate(3%, -1%); }
  80% { transform: translate(-2%, 2%); }
  90% { transform: translate(2%, -3%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 36px 52px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-title-wrap {
  overflow: hidden;
}

.hero-title {
  font-size: clamp(72px, 13vw, 200px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(105%);
}

.hero-meta {
  text-align: right;
  opacity: 0;
  transform: translateY(16px);
}

.hero-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 230, 195, 0.55);
  line-height: 1.8;
  font-weight: 500;
}


/* ---- Marquee ---- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  white-space: nowrap;
}

.marquee-item span {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee-sep {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Section Utilities ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.work-section-title {
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
}

.section-link {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s;
}

.section-link:hover { color: var(--text); gap: 14px; }

/* ---- Featured Work Grid ---- */
.work-section {
  padding: 100px 36px 120px;
}

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

/* Asymmetric layout */
.work-card:nth-child(1) { grid-column: span 7; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 4; }
.work-card:nth-child(4) { grid-column: span 4; }
.work-card:nth-child(5) { grid-column: span 4; }
.work-card:nth-child(6) { grid-column: span 12; }

.work-card {
  position: relative;
  overflow: hidden;
  background: #131820;
  cursor: none;
}

.work-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.work-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.8);
  transition: transform 0.9s var(--ease), filter 0.5s;
  will-change: transform;
}

.work-card:hover .work-card-thumb img {
  transform: scale(1.06);
  filter: brightness(0.85) saturate(1);
}

.work-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s;
}

.work-card:hover .work-card-play { opacity: 1; }

.play-circle {
  width: 56px; height: 56px;
  border: 1px solid rgba(240,240,237,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.work-card:hover .play-circle {
  transform: scale(1);
  border-color: var(--white);
}

.play-circle svg {
  width: 14px; height: 14px;
  fill: var(--white);
  margin-left: 3px;
}

.work-card-info {
  padding: 14px 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
}

.work-card-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.work-card-cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Editorial Work List ---- */
.work-list {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Full-section image reveal layer */
.work-list-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.work-list-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.22) saturate(0.7);
  transition: opacity 0.55s ease;
  display: block;
}
.work-list.has-hover .wlb-img { opacity: 1; }

/* List items */
.work-list-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 36px;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: padding-left 0.4s var(--ease);
  overflow: hidden;
}

/* Underline that draws across on hover */
.work-list-item::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}
.work-list-item:hover::after { width: 100%; }

.work-list-item:hover { padding-left: 52px; }

/* Dim non-hovered rows when any row is hovered */
.work-list.has-hover .work-list-item {
  opacity: 0.3;
  transition: opacity 0.35s ease, padding-left 0.4s var(--ease);
}
.work-list.has-hover .work-list-item:hover { opacity: 1; }

.wli-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
  font-variant-numeric: tabular-nums;
}

.wli-title {
  font-size: clamp(32px, 4.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--text);
  flex: 1;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.4s var(--ease);
  transform-origin: left center;
}
.work-list-item:hover .wli-title {
  color: var(--text);
  transform: skewX(-2deg);
}

.wli-cat {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.work-list-item:hover .wli-cat {
  opacity: 1;
  transform: translateX(0);
}

.wli-arrow {
  font-size: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease), color 0.3s;
}
.work-list-item:hover .wli-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

/* Full Portfolio CTA row */
.work-list-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 36px;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding-left 0.4s var(--ease);
  cursor: none;
}
.work-list-cta:hover {
  background: rgba(200, 149, 46, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(200, 149, 46, 0.35);
  padding-left: 52px;
}

.wlc-text {
  font-size: clamp(32px, 4.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--text);
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.work-list-cta:hover .wlc-text { color: var(--accent); }

.wlc-arrow {
  font-size: clamp(28px, 3vw, 56px);
  color: var(--text-dim);
  transition: color 0.3s ease, transform 0.4s var(--ease);
}
.work-list-cta:hover .wlc-arrow {
  color: var(--accent);
  transform: translateX(12px);
}

/* Clip-path entrance for list items */
.work-list-item,
.work-list-cta {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0s,
              opacity 0.35s ease,
              padding-left 0.4s var(--ease),
              background 0.4s ease;
}
.work-list-item.wl-revealed,
.work-list-cta.wl-revealed {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              padding-left 0.4s var(--ease),
              background 0.4s ease;
}

/* ---- Documentary Showcase ---- */
.doc-section {
  padding: 100px 0 120px;
}

.doc-head {
  padding: 0 36px;
  max-width: 1600px;
  margin: 0 auto 48px;
}

.doc-title {
  font-size: clamp(32px, 4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--text);
}

.doc-track-wrap {
  position: relative;
}
.doc-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.doc-track-wrap.at-end::after {
  opacity: 0;
}

.doc-grid {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 36px;
  overflow-x: scroll;
  /* snap removed: x-proximity snapping latched trackpad gestures and made
     vertical page scrolling feel stuck over this section */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.doc-grid:active { cursor: grabbing; }
.doc-grid::-webkit-scrollbar { display: none; }

.doc-card {
  position: relative;
  flex: 0 0 calc(25% - 6px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: none;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0s, transform 0s;
}

.doc-card.doc-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-card:hover .doc-card-img {
  transform: scale(1.06);
}

.doc-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  background: linear-gradient(to bottom, transparent 20%, rgba(13,17,23,0.92) 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.doc-card:hover .doc-card-overlay {
  opacity: 1;
}

.doc-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,230,195,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: border-color 0.3s, background 0.3s;
}

.doc-card:hover .doc-play-circle {
  border-color: var(--accent);
  background: rgba(200,149,46,0.15);
}

.doc-play-circle svg {
  width: 14px;
  height: 14px;
  fill: var(--text);
  margin-left: 2px;
}

.doc-card-title {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 6px;
}

.doc-card-cat {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Statement Section ---- */
.statement-section {
  padding: 140px 36px;
  border-top: 1px solid var(--border);
  max-width: 1600px;
  margin: 0 auto;
}

.statement-text {
  font-size: clamp(28px, 3.8vw, 68px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.statement-text strong {
  font-weight: 700;
  color: var(--white);
}

.statement-text em {
  font-style: italic;
  color: var(--accent);
}

.statement-sig {
  margin-top: 48px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Post House Teaser ---- */
.ph-teaser {
  border-top: 1px solid var(--border);
  padding: 120px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  background: linear-gradient(135deg, rgba(8,50,127,0.18) 0%, transparent 60%);
}

.ph-teaser-title {
  font-size: clamp(44px, 5.5vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--white);
}

.ph-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  transition: color 0.3s, gap 0.3s, border-color 0.3s;
}

.ph-teaser-cta:hover {
  color: var(--text);
  gap: 20px;
  border-color: rgba(240,240,237,0.4);
}

.ph-teaser-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 440px;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.footer-email {
  font-size: 12px;
  color: var(--text-mid);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.footer-email:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--text); }

/* ---- Video Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,0.96);
  cursor: pointer;
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(92vw, 1280px);
}

.modal-aspect {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.modal-aspect iframe,
.modal-aspect video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Vertical (9:16) modal variant — social reels ---- */
.modal.modal-vertical .modal-box {
  width: min(46vh, 88vw);
}
.modal.modal-vertical .modal-aspect {
  padding-bottom: 177.78%;
}
.modal.modal-vertical .modal-aspect video {
  object-fit: contain;
  background: #000;
}

.modal-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s;
  cursor: none;
}

.modal-close-btn:hover { color: var(--text); }

.modal-close-icon {
  width: 28px; height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

/* ---- Vimeo intercept overlay ---- */
#vimeoOverlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: none;
}

#vimeoOverlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg);
  pointer-events: none;
}

/* ---- Custom Video Player Controls ---- */
.modal-aspect {
  cursor: none;
}

.vid-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(13,17,23,0.95) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.vid-controls.visible {
  opacity: 1;
  pointer-events: all;
}

.vid-progress-wrap {
  position: relative;
  height: 3px;
  background: rgba(240,230,195,0.15);
  margin-bottom: 14px;
  cursor: pointer;
  border-radius: 2px;
}
.vid-progress-wrap:hover { height: 4px; }
.vid-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}
.vid-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.vid-progress-wrap:hover .vid-progress-thumb { transform: translate(-50%, -50%) scale(1); }

.vid-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vid-btn {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-dim);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.vid-btn:hover { color: var(--text); }
.vid-btn svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vid-play-btn svg { width: 18px; height: 18px; }
.vid-icon-play { fill: currentColor; stroke: none; }
.vid-icon-muted { fill: none; }
.vid-icon-vol polygon { fill: currentColor; stroke: none; }
.vid-icon-vol path { fill: none; stroke: currentColor; stroke-width: 1.5; }

.vid-icon-pause { display: none; }
.vid-icon-pause rect { fill: currentColor; }
.playing .vid-icon-play  { display: none; }
.playing .vid-icon-pause { display: block; }

.vid-icon-muted { display: none; }
.muted .vid-icon-vol   { display: none; }
.muted .vid-icon-muted { display: block; }

.vid-time {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vid-sep { opacity: 0.4; }
.vid-spacer { flex: 1; }

/* ---- Work Page ---- */
.page-hero {
  padding: 160px 36px 80px;
}

.page-title {
  font-size: clamp(56px, 9vw, 150px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-subtitle {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  max-width: 480px;
}

.category-section {
  padding: 0 36px 100px;
}

.category-header {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.category-name {
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.category-count {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  background: #131820;
  cursor: none;
}

.project-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.7);
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}

.project-card:hover .work-card-play { opacity: 1; }

.project-card-info {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
}

.project-card-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.project-card-crew {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* ---- Post House Page ---- */
.ph-intro {
  padding: 160px 36px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}

.ph-page-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.ph-page-title {
  font-size: clamp(52px, 7.5vw, 120px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.ph-page-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 420px;
  align-self: end;
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 60px 36px 120px;
}

.ph-card {
  position: relative;
  overflow: hidden;
  background: #131820;
  cursor: none;
}

.ph-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #131820;
}

.ph-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6) grayscale(0.2);
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.ph-card:hover .ph-card-thumb img {
  transform: scale(1.06);
  filter: brightness(0.9) grayscale(0);
}

.ph-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(13,17,23,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.ph-card:hover .ph-card-overlay { opacity: 1; }

.ph-card-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.ph-card-info {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.ph-card-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.ph-card-thumb.loading {
  background: repeating-linear-gradient(
    90deg,
    #131820 0px, #1a2233 40px, #131820 80px
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---- Scroll Reveal Utility ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ph-teaser { grid-template-columns: 1fr; }
  .ph-intro { grid-template-columns: 1fr; }
  .ph-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links { gap: 20px; }
  .nav-contact { display: none; }
  .hero-content { padding: 0 24px 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(n) { grid-column: span 12; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .work-section,
  .statement-section,
  .ph-teaser,
  .category-section { padding-left: 24px; padding-right: 24px; }
  .work-list-item { padding: 18px 24px; gap: 16px; }
  .work-list-item:hover { padding-left: 32px; }
  .work-list-cta { padding: 24px 24px; }
  .work-list-cta:hover { padding-left: 32px; }
  .wli-cat { display: none; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .footer-social { justify-content: center; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* =====================================================
   GSAP WORD SPLIT
   ===================================================== */
.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.sw-inner {
  display: inline-block;
}

/* =====================================================
   PAGE TRANSITION OVERLAY
   ===================================================== */
.pg-transition {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: var(--bg, #0D1117);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-transition-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.pg-transition-logo {
  width: clamp(100px, 13vw, 180px);
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(200,149,46,0));
  will-change: filter;
}

/* =====================================================
   LOADER — with logo + iris dissolve
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(8,50,127,0.35) 0%, var(--bg) 70%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
  clip-path: circle(150% at 50% 50%);
}

.loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(13,17,23,0.7) 100%);
  pointer-events: none;
}

.loader-logo-img {
  width: 260px;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
  will-change: transform, opacity, filter;
}

.loader-bar-wrap {
  width: 220px;
  height: 1px;
  background: rgba(240, 230, 195, 0.12);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #F0E6C3);
  width: 0%;
}

/* =====================================================
   REEL STRIP
   ===================================================== */
.reel-section {
  position: relative;
  padding-top: 80px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.reel-track-wrap {
  position: relative;
}
.reel-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 100%;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.reel-track-wrap.at-end::after { opacity: 0; }

/* Drag-pill cursor */
.reel-drag-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #F0E6C3;
  color: #0D1117;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.reel-drag-cursor.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.reel-drag-cursor.dragging .rdc-left  { opacity: 0.3; }
.reel-drag-cursor.dragging .rdc-right { opacity: 1; }
.rdc-left, .rdc-right { font-size: 11px; transition: opacity 0.2s ease; }
.rdc-label { letter-spacing: 0.25em; }

.reel-meta {
  padding: 0 36px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reel-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.reel-section-title {
  font-size: 22px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
}

.reel-counter {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.reel-counter-current {
  color: var(--text);
  font-weight: 600;
}

.reel-track {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 62vh;
  min-height: 360px;
  padding: 0 36px 36px;
  overflow-x: auto;
  overflow-y: hidden;
  /* snap removed: same trackpad-latching issue as the doc grid */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.reel-track:active { cursor: grabbing; }
.reel-track::-webkit-scrollbar { display: none; }

.reel-card {
  position: relative;
  flex-shrink: 0;
  width: 50vw;
  height: 100%;
  overflow: hidden;
  cursor: none;
  scroll-snap-align: start;
}

.reel-card:first-child { width: 56vw; }

.reel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.8);
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.reel-card:hover img {
  filter: brightness(0.82) saturate(1);
  transform: scale(1.03);
}

.reel-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 64px 28px 28px;
  background: linear-gradient(to top, rgba(13,17,23,0.85) 0%, transparent 100%);
  z-index: 4;
}

.reel-card-num {
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.reel-card-title {
  font-size: clamp(16px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.reel-card-cat {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.reel-hover-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.reel-frost {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.18);
  backdrop-filter: blur(16px) brightness(0.72) saturate(0.6);
  -webkit-backdrop-filter: blur(16px) brightness(0.72) saturate(0.6);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.reel-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 4;
  pointer-events: none;
}

.reel-card:hover .reel-card-play,
.reel-card.is-playing .reel-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reel-card-dur {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  z-index: 4;
  pointer-events: none;
}

.reel-card-video-full {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* =====================================================
   WORK GRID — clip-path wipe reveal
   ===================================================== */
.work-card .work-card-thumb {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0s;
}

.work-card.clip-revealed .work-card-thumb {
  clip-path: inset(0 0 0% 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   HOVER VIDEO PREVIEW
   ===================================================== */
.card-video-preview {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: brightness(0.85);
}

.work-card-thumb,
.project-card-thumb {
  position: relative;
}

/* =====================================================
   NAV — logo image
   ===================================================== */
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav-logo-img:hover { opacity: 1; }
