/* ============================================================
   ABSOLUTE R PRODUCTIONS — STUDIO LIGHT BUILD
   Bright cinematic: a white-cyc studio space rendered in WebGL
   behind every page, glass content panels floating over it.
   Palette from the logo: red #961d14 · ink #16110f · silver
   Type: Bodoni Moda (display) · Archivo (body) · JetBrains Mono
   ============================================================ */

:root {
  --paper: #f6f4f1;
  --paper-2: #efece7;
  --ink: #16110f;
  --muted: #59534d;
  --silver: #a2a0a0;
  --red: #961d14;
  --red-hot: #c9342a;
  --line: rgba(22, 17, 15, 0.10);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 30px 80px -30px rgba(22, 17, 15, 0.22);
  --font-display: "Bodoni Moda", serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max: 1300px;
  --pad: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============ THE FOOTAGE BACKDROP (scroll-scrubbed) ============ */
#bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* a whisper of light over the footage so glass + text stay readable */
#bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 88%, rgba(246, 244, 241, 0.55), transparent 58%),
    linear-gradient(rgba(246, 244, 241, 0.2), rgba(246, 244, 241, 0.2));
}

/* ============ THE UNIFIED 3D WORLD ============ */
#world {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}
/* everything else floats above the world */
main, .nav, .footer { position: relative; z-index: 3; }

/* page-load curtain */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity 0.9s ease;
}
#curtain.up { opacity: 0; pointer-events: none; }
#curtain img { height: 90px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.05); opacity: 1; } }

/* ============ CURSOR LIGHT (warm key on white) ============ */
#cursor-light {
  position: fixed;
  z-index: 2;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(201, 52, 42, 0.07), rgba(201, 52, 42, 0.03) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
}
body.cursor-on #cursor-light { opacity: 1; }
@media (hover: none) { #cursor-light { display: none; } }

/* ============ NAV — floating glass pill ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad) 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 50px -24px rgba(22, 17, 15, 0.3);
  transition: background 0.35s ease;
}
.nav.scrolled .nav-inner { background: rgba(255, 255, 255, 0.68); }
.logo-link img { height: 60px; width: auto; transition: transform 0.3s; }
.logo-link:hover img { transform: scale(1.06); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
}
.nav-toggle {
  display: none;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

/* ============ BUTTONS (magnetic) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  color: #fff;
  background: linear-gradient(140deg, var(--red-hot), var(--red));
  border: none;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 40px -14px rgba(150, 29, 20, 0.55);
  transition: box-shadow 0.3s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover { box-shadow: 0 22px 60px -14px rgba(150, 29, 20, 0.7); }
.btn:hover::before { opacity: 1; }
.btn.ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { border-color: var(--ink); box-shadow: 0 14px 40px -20px rgba(22,17,15,0.3); }

/* ============ SLATE (eyebrow) ============ */
.tc {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: 0.28em;
  color: var(--red);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tc::before {
  content: "";
  width: 30px; height: 3px;
  background: var(--red);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(30px, 5vh, 60px);
}
.hero .wrap { width: 100%; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  max-width: 15ch;
  margin: 18px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lede { color: var(--muted); max-width: 520px; font-size: clamp(15px, 1.35vw, 18px); }
.hero-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-content { opacity: 0; transform: translateY(26px); animation: rise 1.2s ease 0.7s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }


.scroll-hint {
  position: absolute;
  bottom: 30px; right: var(--pad);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 12px auto 0;
  background: linear-gradient(var(--red), transparent);
  animation: drop 2s ease infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* fallback logo if WebGL unavailable */
#hero-fallback {
  position: absolute;
  top: 12vh; left: 50%;
  transform: translateX(-50%);
  width: min(50vh, 78vw);
  display: none;
  filter: drop-shadow(0 40px 60px rgba(22, 17, 15, 0.18));
}
body.no-webgl #hero-fallback { display: block; }

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 30s linear infinite;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
}
.ticker span b { color: var(--red); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ SECTIONS / GLASS PANELS ============ */
.section { padding: clamp(90px, 13vh, 160px) 0; position: relative; }
.section-head { margin-bottom: clamp(40px, 6vh, 64px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.03;
  margin-top: 16px;
  max-width: 18ch;
}
.section-head h2 em { font-style: italic; color: var(--red); }
.section-head .sub { color: var(--muted); max-width: 560px; margin-top: 16px; }

.glass-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 34px 90px -34px rgba(22, 17, 15, 0.28);
  backdrop-filter: blur(26px) saturate(1.45);
  padding: clamp(30px, 4vw, 56px);
  overflow: hidden;
}
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255,255,255,0.4) 0%, transparent 32%, transparent 70%, rgba(255,255,255,0.22) 100%);
  pointer-events: none;
}

/* ============ FEATURED (showcase rows) ============ */
.features { display: grid; gap: 30px; }
.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.4);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 50px 110px -40px rgba(22, 17, 15, 0.3);
}
.feature .frame {
  aspect-ratio: 16 / 9;
  position: relative;
  background:
    radial-gradient(560px 240px at 30% 75%, rgba(150, 29, 20, 0.16), transparent 70%),
    linear-gradient(150deg, #ffffff, #e9e5df);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.feature .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 1s ease;
}
.feature:hover .frame::after { transform: translateX(130%); }
.feature .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .play {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 40px -10px rgba(22, 17, 15, 0.3);
  display: grid; place-items: center;
  transition: all 0.3s;
  z-index: 1;
}
.feature .play::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--red);
  margin-left: 4px;
}
.feature:hover .play { background: var(--red); transform: scale(1.1); }
.feature:hover .play::after { border-left-color: #fff; }
.feature .info { padding: clamp(26px, 3vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.feature .info .cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}
.feature .info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.7vw, 40px);
  margin: 12px 0 10px;
  line-height: 1.08;
}
.feature .info p { color: var(--muted); font-size: 15px; }
.feature:nth-child(even) .frame { order: 2; }

/* ============ SERVICES (3D glass cards) ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  perspective: 1400px;
}
.card3d {
  position: relative;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 26px 70px -32px rgba(22, 17, 15, 0.26);
  backdrop-filter: blur(24px) saturate(1.4);
  padding: 34px 30px 38px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.35s;
  will-change: transform;
}
.card3d:hover { box-shadow: 0 40px 90px -35px rgba(150, 29, 20, 0.4); }
.card3d .glare {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(440px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.8), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card3d:hover .glare { opacity: 1; }
.card3d .num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--red);
}
.card3d h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  margin: 16px 0 10px;
  transform: translateZ(34px);
}
.card3d p { color: var(--muted); font-size: 14.5px; transform: translateZ(20px); }

/* ============ MARKETS ============ */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.market {
  padding: 44px 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px -30px rgba(22, 17, 15, 0.18);
  backdrop-filter: blur(24px) saturate(1.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.market:hover { transform: translateY(-6px); }
.market::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% 130%, rgba(150, 29, 20, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.market:hover::before { opacity: 1; }
.market .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 5.5vw, 74px);
  line-height: 1;
  color: var(--red);
  position: relative;
}
.market .city {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  position: relative;
}

/* ============ WORK PAGE ============ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  padding: 11px 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  perspective: 1500px;
}
.work-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px -30px rgba(22, 17, 15, 0.2);
  backdrop-filter: blur(24px) saturate(1.4);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.35s;
  will-change: transform;
}
.work-card.hidden { display: none; }
.work-card:hover { box-shadow: 0 44px 100px -40px rgba(150, 29, 20, 0.35); }
.work-thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(420px 200px at 35% 80%, rgba(150, 29, 20, 0.15), transparent 70%),
    linear-gradient(150deg, #ffffff, #e8e4de);
  display: grid;
  place-items: center;
  position: relative;
}
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-thumb .play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 34px -8px rgba(22, 17, 15, 0.28);
  display: grid; place-items: center;
  transition: all 0.28s;
  z-index: 1;
}
.work-thumb .play::after {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--red);
  margin-left: 3px;
}
.work-card:hover .play { background: var(--red); transform: scale(1.12); }
.work-card:hover .play::after { border-left-color: #fff; }
.work-meta { padding: 22px 24px 28px; }
.work-meta .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}
.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-top: 10px;
}
.work-meta p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ============ PAGE HERO (interior) ============ */
.page-hero {
  position: relative;
  padding: clamp(160px, 26vh, 260px) 0 clamp(52px, 8vh, 90px);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(50px, 8.5vw, 120px);
  line-height: 0.98;
  margin-top: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--red); }
.page-hero p { color: var(--muted); max-width: 560px; margin-top: 22px; }
.page-hero .hero-content { animation-delay: 0.35s; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.about-grid .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.14;
}
.about-grid .big em { font-style: italic; color: var(--red); }
.about-copy p { color: var(--muted); margin-bottom: 18px; }

.cap-list { list-style: none; }
.cap-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cap-list li:first-child { border-top: 1px solid var(--line); }
.cap-list .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(48px, 8vh, 90px); }
.stat {
  border-radius: 24px;
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px -30px rgba(22, 17, 15, 0.18);
  backdrop-filter: blur(24px) saturate(1.4);
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1;
  color: var(--red);
}
.stat .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  display: block;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1;
  margin-bottom: 26px;
}
.contact-info h2 em { font-style: italic; color: var(--red); }
.contact-info p { color: var(--muted); max-width: 420px; }
.contact-lines { margin-top: 38px; list-style: none; }
.contact-lines li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.contact-lines .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  min-width: 84px;
}
.contact-lines a:hover { color: var(--red); }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 15px 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field select { appearance: none; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(150, 29, 20, 0.12);
}
.form-field textarea { min-height: 150px; resize: vertical; }

/* ============ CTA BAND ============ */
.cta-band { padding: clamp(80px, 13vh, 150px) 0; text-align: center; }
.cta-band .glass-panel { max-width: 900px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.02;
}
.cta-band h2 em { font-style: italic; color: var(--red); }
.cta-band .btn { margin-top: 36px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 44px 0; background: rgba(246,244,241,0.7); backdrop-filter: blur(10px); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer .fine {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }

/* ============ REVEALS ============ */
.reveal { opacity: 0; transform: translateY(38px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .scroll-hint::after, #curtain img { animation: none; }
  .hero-content { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card3d, .work-card, .feature, .market { transition: box-shadow 0.3s; }
  #cursor-light { display: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 77px; left: 0; right: 0;
    background: rgba(246, 244, 241, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px var(--pad); }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .frame { order: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .markets, .stats { grid-template-columns: 1fr; }
}


/* ============ TYPE PROTECTION over the footage ============
   A soft paper-light halo around any text that sits directly on
   the video, so it stays legible no matter which frame is behind
   it as you scroll. */
.hero-content h1,
.page-hero h1,
.section-head h2,
.contact-info h2,
.cta-band h2,
.about-grid .big {
  text-shadow:
    0 2px 6px rgba(246, 244, 241, 0.95),
    0 0 28px rgba(246, 244, 241, 0.9),
    0 0 64px rgba(246, 244, 241, 0.65);
}
.hero-content .lede,
.page-hero p,
.section-head .sub,
.tc,
.scroll-hint {
  text-shadow:
    0 1px 4px rgba(246, 244, 241, 0.95),
    0 0 18px rgba(246, 244, 241, 0.85);
}
/* soft paper pool behind the hero block for guaranteed contrast */
.hero-content {
  position: relative;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: -12% -8% -18% -10%;
  background: radial-gradient(70% 80% at 30% 65%, rgba(246, 244, 241, 0.55), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============ VIDEO LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(12, 10, 14, 0.82);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 60px);
  opacity: 0;
  animation: lb-in 0.3s ease forwards;
}
@keyframes lb-in { to { opacity: 1; } }
.lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lightbox-inner video,
.lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -46px; right: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }
[data-video]:not([data-video=""]) { cursor: pointer; }

/* ============ HERO EYEBROW — original style, larger ============ */
.hero-tc {
  font-size: clamp(17px, 1.9vw, 24px);
  letter-spacing: 0.3em;
}
.hero-tc::before {
  width: 34px;
  height: 3px;
}
