/*
Theme Name: Rivoq Labs Theme
Theme URI: https://rivoqlabs.com
Author: Rivoq Studio
Description: Custom WordPress theme for Rivoq Labs featuring cinematic animations and WPBakery compatibility.
Version: 2.0
*/

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

:root {
  --black:  #000000;
  --white:  #FCF8F9;
  --red:    #A21621;
  --gray:   #D1D5DB;
  --border: rgba(255,255,255,0.1);
  --font:   'Instrument Sans', Helvetica, Arial, sans-serif;
  --font-display: 'Poppins', sans-serif;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
body.menu-open nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

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

/* ── TEXT EFFECTS ── */
.clip-text {
  background: linear-gradient(to bottom, #fff 0%, #fff 55%, #ffe4de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #d4434a);
  z-index: 9997;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(162,22,33,0.55);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: padding-top 0.4s ease, padding-bottom 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(6,6,6,0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black) !important;
  background: var(--white);
  padding: 10px 20px;
  min-height: 36px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
  will-change: transform;
}

.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  position: relative;
  z-index: 102;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  display: block;
  transition: opacity 0.2s, transform 0.2s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO — TWO-COLUMN WITH VIDEO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 92px);
  justify-content: center;
  padding: 120px clamp(32px, 5vw, 72px) 80px clamp(32px, 6vw, 88px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 34% at 16% 22%, rgba(255,255,255,0.05) 0%, transparent 74%),
    radial-gradient(ellipse 34% 30% at 58% 62%, rgba(162,22,33,0.08) 0%, transparent 76%),
    radial-gradient(ellipse 34% 32% at 30% 88%, rgba(162,22,33,0.09) 0%, transparent 78%),
    linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 14%, rgba(255,255,255,0) 32%),
    linear-gradient(90deg, #050505 0%, #090909 38%, #080808 72%, #050505 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.08) 18%, rgba(0,0,0,0.18) 42%,
    rgba(0,0,0,0.08) 64%, rgba(0,0,0,0.22) 86%, rgba(0,0,0,0.3) 100%);
  filter: blur(52px);
  opacity: 0.64;
  pointer-events: none;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  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.4;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding-top: 22px;
}

.hero-tag {
  position: relative;
  color: var(--red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--red);
}

.hero-headline {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: 24px;
  margin-left: -2px;
  max-width: 100%;
}

.hero-headline-line { display: block; }

.hero-headline em {
  font-style: normal;
  color: var(--red);
  font-size: clamp(28px, 4.5vw, 54px);
  white-space: nowrap;
}

.hero-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  color: rgba(255,255,255,0.65);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-proof-item {
  color: rgba(255,255,255,0.18);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof-dot {
  color: var(--red);
  opacity: 0.45;
  font-size: 13px;
  line-height: 1;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  background: var(--red);
  padding: 14px 28px;
  border-radius: 4px;
  margin-top: 16px;
  transition: opacity 0.2s;
}

.hero-cta:hover { opacity: 0.9; }
.hero-cta svg { flex-shrink: 0; transition: transform 0.2s; }
.hero-cta:hover svg { transform: translate(3px, -3px); }

/* Hero video frame */
.hero-video-frame {
  position: relative;
  width: min(54vw, 860px);
  aspect-ratio: 16/9;
  min-height: 300px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  justify-self: end;
  box-shadow: 0 34px 110px rgba(0,0,0,0.62);
  background: #080808;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(12,12,12,1) 0%, rgba(12,12,12,0.82) 10%, rgba(12,12,12,0.26) 27%,
    rgba(12,12,12,0.05) 46%, transparent 68%);
  z-index: 2;
  pointer-events: none;
}

.hero-video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12,12,12,0.62) 0%, transparent 24%),
    linear-gradient(to bottom, rgba(12,12,12,0.5) 0%, transparent 18%, transparent 78%, rgba(12,12,12,0.66) 100%),
    radial-gradient(circle at 62% 8%, rgba(255,255,255,0.12), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.hero-model-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.82) contrast(1.06) saturate(0.62);
  transform: scale(1.01);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #fff, transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}

/* ─────────────────────────────────────────
   MARQUEE
───────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  padding: 20px 0;
  background: transparent;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-right: 44px;
  flex-shrink: 0;
}

.marquee-dot {
  width: 3px; height: 3px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

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

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

/* ─────────────────────────────────────────
   SHARED SECTION STYLES
───────────────────────────────────────── */
.section-label {
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-link {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color 0.2s;
}

.section-link:hover { color: var(--red); }

/* ─────────────────────────────────────────
   SERVICES — ACCORDION + STICKY VIDEO
───────────────────────────────────────── */
.services {
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.services-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.svc-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0 72px;
  align-items: start;
}

.services-list { list-style: none; }

.svc-item {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative;
  cursor: pointer;
}

.svc-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.svc-item.active::before { transform: scaleY(1); }

.svc-top {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0 20px;
  padding: 36px 0;
  transition: padding-left 0.3s;
}

.svc-item.active .svc-top { padding-left: 16px; }

.svc-number {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.svc-name {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.svc-tagline {
  display: block;
  font-style: italic;
  color: rgba(255,255,255,0.2);
  margin-top: 5px;
  transition: color 0.3s;
  font-size: 13px;
  font-weight: 400;
}

.svc-item.active .svc-name { color: var(--red); }
.svc-item.active .svc-tagline { color: rgba(255,255,255,0.4); }

.svc-arrow {
  color: rgba(255,255,255,0.1);
  transition: color 0.25s, transform 0.25s;
  font-size: 20px;
}

.svc-item.active .svc-arrow {
  color: var(--red);
  transform: translateX(5px);
}

.svc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.svc-item.active .svc-body {
  max-height: 180px;
  opacity: 1;
}

.svc-body-inner { padding: 0 0 30px 72px; }

.svc-desc {
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.75;
}

.svc-tags {
  color: rgba(255,255,255,0.22);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* Sticky video player */
.svc-preview { position: sticky; top: 100px; }

.svc-player-frame {
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  background: #111;
  box-shadow: 0 28px 86px rgba(0,0,0,0.56), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.svc-player-frame video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.04) saturate(0.72);
}

/* ─────────────────────────────────────────
   WORK / REELS
───────────────────────────────────────── */
.work {
  padding: 0 48px 120px;
  position: relative;
  overflow: hidden;
}

.reels-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: none;
}

.reels-row::-webkit-scrollbar { display: none; }

.reel-card {
  display: block;
  flex: 0 0 calc(20% - 16px);
  min-width: 240px;
  aspect-ratio: 9/16;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s ease;
}

.reel-card:hover { transform: scale(1.02); }

.reel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.4s ease;
  z-index: 1;
}

.reel-card:hover::before { background: rgba(0,0,0,0.4); }

.reel-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

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

.reel-play-btn svg { margin-left: 2px; }

/* ─────────────────────────────────────────
   INSIGHTS
───────────────────────────────────────── */
.insights {
  padding: 120px 48px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.insight-card {
  background: #111;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover { transform: translateY(-5px); }

.insight-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.insight-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.insight-card:hover .insight-thumb img {
  transform: scale(1.03);
  filter: brightness(0.5);
}

.insight-body { padding: 28px 32px 32px; }

.insight-date {
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.insight-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.insight-card:hover .insight-title { color: var(--red); }

.insight-excerpt {
  color: rgba(255,255,255,0.45);
  font-size: 13.5px;
  line-height: 1.7;
}

.insight-read {
  display: inline-block;
  margin-top: 18px;
  color: var(--red);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-card:hover .insight-read {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────
   MANIFESTO — WHY RIVOQ LABS
───────────────────────────────────────── */
.manifesto {
  position: relative;
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  background-color: var(--black);
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(162,22,33,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.manifesto-left { position: sticky; top: 96px; }

.manifesto-body {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--gray);
  margin-top: 20px;
}

.manifesto-body strong {
  color: var(--white);
  font-weight: 600;
}

.manifesto-points { list-style: none; }

.manifesto-point {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.manifesto-point:first-child {
  padding-top: 0;
  border-top: none;
}

.point-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.point-body {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
}

/* ─────────────────────────────────────────
   CTA
───────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 100px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(162,22,33,0.12) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 40px;
}

.cta-headline .ghost {
  -webkit-text-stroke: 2px rgba(255,255,255,0.28);
  color: transparent;
}

.cta-sub {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 18px 40px;
  border-radius: 2px;
  transition: opacity 0.2s;
  will-change: transform;
}

.btn-primary:hover { opacity: 0.85; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  padding: 48px 48px 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-email {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ─────────────────────────────────────────
   SCROLL-REVEAL ANIMATIONS
───────────────────────────────────────── */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.sr.d1 { transition-delay: 0.07s; }
.sr.d2 { transition-delay: 0.14s; }
.sr.d3 { transition-delay: 0.21s; }
.sr.d4 { transition-delay: 0.28s; }
.sr.visible { opacity: 1; transform: none; }

/* Hero entrance animations */
.hero-tag {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1) 0.06s,
              transform 0.75s cubic-bezier(0.16,1,0.3,1) 0.06s;
}
.hero-headline-line:nth-child(1) {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.18s,
              transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.18s;
}
.hero-headline-line:nth-child(2) {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.28s,
              transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.28s;
}
.hero-headline-line:nth-child(3) {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.38s,
              transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.38s;
}
.hero-bottom {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.48s,
              transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.48s;
}
.hero-video-frame {
  opacity: 0;
  transition: opacity 1.2s ease 0.4s, transform 0.1s linear;
}

body.loaded .hero-tag,
body.loaded .hero-headline-line,
body.loaded .hero-bottom { opacity: 1; transform: none; }
body.loaded .hero-video-frame { opacity: 1; }

/* ─────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(330px, 0.86fr) minmax(360px, 1.14fr);
    gap: 32px;
  }
  .hero-headline { font-size: clamp(32px, 4.5vw, 42px); }
  .hero-video-frame { width: min(50vw, 680px); min-height: 260px; opacity: 0.9; }

  .svc-split { grid-template-columns: 1fr 300px; gap: 0 48px; }

  .manifesto { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-left { position: static; }

  .insights-grid { grid-template-columns: 1fr; }

  .services, .work, .insights, .manifesto, .cta-section { padding-left: 40px; padding-right: 40px; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 20px 24px; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background-color: #000000;
    background-image: radial-gradient(circle at 78% 18%, rgba(162,22,33,0.18) 0%, transparent 28%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 56px 24px 32px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.open li { opacity: 1; transform: translateY(0); }
  .nav-links.open li:nth-child(1) { transition-delay: 0.06s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.14s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.18s; }

  .nav-links a {
    font-size: 32px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    margin-top: 10px;
    font-size: 16px !important;
    padding: 16px 28px !important;
  }

  /* Hero — stack vertically */
  .hero {
    display: flex;
    flex-direction: column;
    padding: 110px 24px 80px;
    justify-content: flex-start;
    min-height: 100svh;
    gap: 0;
  }

  .hero-copy, .hero-tag, .hero-headline, .hero-bottom {
    margin-left: 0;
    width: 100%;
  }

  .hero-tag { order: 1; margin-bottom: 18px; }

  .hero-headline {
    order: 2;
    margin-bottom: 24px;
    max-width: none;
    overflow-wrap: break-word;
    font-size: clamp(32px, 8vw, 46px);
    line-height: 0.98;
  }

  .hero-bottom {
    order: 3;
    max-width: none;
    gap: 20px;
    margin-bottom: 32px;
  }

  .hero-desc { max-width: 100%; font-size: 14px; line-height: 1.65; }
  .hero-proof { gap: 8px; }
  .hero-proof-item { font-size: 10px; }

  .hero-video-frame {
    display: block;
    order: 4;
    width: calc(100% + 48px);
    max-width: none;
    min-height: 220px;
    aspect-ratio: 16/9;
    margin: 8px -24px 0 -24px;
    z-index: 1;
    align-self: stretch;
  }

  .hero-scroll { bottom: 24px; }

  /* Sections */
  .services, .insights, .manifesto, .cta-section { padding: 80px 24px; }
  .work { padding: 0 24px 80px; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 44px;
  }

  /* Services accordion */
  .svc-split { grid-template-columns: 1fr; }

  .svc-preview {
    position: static;
    margin-top: 40px;
  }

  .svc-player-frame {
    width: min(78vw, 320px);
    border-radius: 18px;
    margin: 0 auto;
  }

  .svc-top {
    grid-template-columns: 40px 1fr auto;
    gap: 0 14px;
    padding: 22px 0 16px;
  }

  .svc-item.active .svc-top { padding-left: 14px; }
  .svc-body-inner { padding: 0 0 22px 54px; }
  .svc-name { color: var(--red); font-size: 17px; }

  .svc-body { max-height: 0 !important; opacity: 0 !important; }
  .svc-item.active .svc-body { max-height: 280px !important; opacity: 1 !important; }

  /* Insights */
  .insights-grid { grid-template-columns: 1fr; }

  /* Manifesto */
  .manifesto { grid-template-columns: 1fr; gap: 44px; }
  .manifesto-left { position: static; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; gap: 10px; }
  .btn-primary { justify-content: center; padding: 16px 24px; }
  .cta-headline { font-size: clamp(36px, 12vw, 72px); }

  /* Footer */
  footer { padding: 40px 24px 28px; }
  .footer-links { gap: 20px; }
}

/* ─────────────────────────────────────────
   RESPONSIVE — SMALL PHONES
───────────────────────────────────────── */
@media (max-width: 390px) {
  .hero-headline { font-size: clamp(28px, 10vw, 38px); }
  .hero-desc { font-size: 13px; }
  .cta-headline { font-size: 32px; }
}
