/* ————— Planetlambo · Kinetic Editorial ————— */

:root {
  --bg: #fdf8f8;
  --ink: #1c1b1b;
  --secondary: #645c5d;
  --faint: #b8acad;
  --hairline: #c4c7c7;
  --line-strong: #9a8e8f;
  --lime: #d4ff00;
  --display: "Hanken Grotesk", -apple-system, sans-serif;
  --body: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1.5rem, 5vw, 4rem);
  --pad-y: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  /* Lock any horizontal wiggle on mobile */
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
}

a, button, select, label { cursor: crosshair; }

::selection { background: var(--lime); color: #000; }

img { display: block; max-width: 100%; }

section[id] { scroll-margin-top: 4.5rem; }

/* Visible to crawlers and screen readers, not on screen */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Electric-lime highlighter — only on the phrases Mari flagged */
mark {
  background: var(--lime);
  color: #000;
  padding: 0.06em 0.18em;
  margin: 0 -0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ————— Type utilities ————— */

.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 1.2;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 0.9rem;
}

/* ————— Loader — knockout type over the reel ————— */

#loader { display: none; }

.js #loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  overflow: hidden;
  transition: transform 1s var(--ease), visibility 1s;
}

.js #loader.done { transform: translateY(-100%); visibility: hidden; }

.js body.loading { overflow: hidden; }

/* The raw <video> stays invisible: iOS can't blend over hardware video
   layers, so its frames are painted onto the canvas below instead. */
#loader video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

#loaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.knockout {
  position: absolute;
  inset: 0;
  background: #fff;
  mix-blend-mode: screen;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.knock-line {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 16.5vw, 15rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #000;
  user-select: none;
}

.loader-count {
  position: absolute;
  bottom: 2.2rem;
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
}

.loader-dash { width: 44px; height: 1px; background: var(--ink); opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .js #loader { display: none; }
}

/* ————— Reveal (JS-gated, safe fallback) ————— */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ————— Header — fixed, blurred, hairline ————— */

/* Transparent over the hero so the index melts into the home;
   gains its cream plate once you scroll past the reel. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem var(--pad-x);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: padding 0.3s, background 0.4s, border-color 0.4s;
}

.nav .wordmark, .nav .brand-tag, .nav .nav-links a, .nav .nav-cta {
  transition: color 0.35s, border-color 0.35s;
}

.nav:not(.scrolled) .wordmark { color: #fff; }
.nav:not(.scrolled) .brand-tag { color: rgba(255, 255, 255, 0.7); }
.nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.75); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--lime); }
.nav:not(.scrolled) .nav-cta { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.nav:not(.scrolled) .nav-cta:hover { background: var(--lime); border-color: var(--lime); color: #000; }

.nav.scrolled {
  padding: 0.9rem var(--pad-x);
  background: rgba(253, 248, 248, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}

body.cinema-open .nav { opacity: 0; pointer-events: none; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.95rem, 0.6rem + 0.7vw, 1.15rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.brand-tag {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--secondary);
  white-space: nowrap;
}

.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 2rem); margin-left: auto; }

.nav-links a {
  font-family: var(--body);
  font-size: clamp(10px, 8px + 0.35vw, 13px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

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

/* ES / EN switch — sits between the index and the Contact button */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0 0.4rem;
}

.nav-lang i { font-style: normal; font-size: 11px; color: var(--faint); }

.lang-btn {
  background: none;
  border: none;
  padding: 0.2em 0.1em;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.25s, box-shadow 0.25s;
}

.lang-btn:hover { color: var(--lime); }

.lang-btn.active { color: var(--ink); box-shadow: 0 2px 0 var(--lime); }

.nav:not(.scrolled) .nav-lang i { color: rgba(255, 255, 255, 0.35); }
.nav:not(.scrolled) .lang-btn { color: rgba(255, 255, 255, 0.55); }
.nav:not(.scrolled) .lang-btn:hover { color: var(--lime); }
.nav:not(.scrolled) .lang-btn.active { color: #fff; }

/* Contact shrinks fluidly with the viewport */
.nav-cta {
  font-family: var(--body);
  font-size: clamp(10px, 8px + 0.35vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.75em clamp(1em, 0.6em + 1vw, 1.8em);
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.nav-cta:hover { background: var(--lime); border-color: var(--lime); color: #000; }

/* ————— Hero — full-bleed reel with HUD ————— */

.hero-reel {
  position: relative;
  height: 100svh;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-reel > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 100%);
}

.hud {
  position: absolute;
  inset: 0;
  padding: 5.6rem var(--pad-x) 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: #fff;
}

.hud-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }

.hud-item {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.65;
}

.hud-row--end { justify-content: flex-end; }

.hud-live { display: flex; align-items: center; gap: 0.7em; opacity: 1; }
.hud-live em { font-style: normal; color: var(--lime); display: flex; align-items: center; gap: 0.6em; }
.hud-live { color: rgba(255, 255, 255, 0.65); }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 1.4s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0.1; } }

.vprog { display: flex; align-items: center; gap: 0.8rem; opacity: 1; }

.vprog-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

#vprogFill {
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  width: 0;
  background: var(--lime);
}

#vprogNum { color: rgba(255, 255, 255, 0.65); }

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 var(--pad-x);
}

/* Same scale as the claim title (“El Tech Market Lab más inspirador”) */
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-family: var(--body);
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  letter-spacing: -0.01em;
  opacity: 0.8;
  margin: 0.9rem 0 2.4rem;
}

/* Staged entrance after loader */
.js .rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js body.loaded .rise, body.loaded .rise { opacity: 1; transform: none; }

.js .rise.d1 { transition-delay: 0.15s; }
.js .rise.d2 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
}

.playreel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.playreel:hover { color: #fff; }

.playreel-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border: 1px solid currentColor;
  border-radius: 9999px;
  transition: transform 0.5s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}

.playreel-ring svg { width: 16px; height: 16px; margin-left: 2px; }

.playreel:hover .playreel-ring { transform: scale(1.1); background: var(--lime); border-color: var(--lime); color: #000; }

.playreel-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ————— Knockout titles — video through the letters ————— */

.knock {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

/* If the reel can't play (error/stall), drop the blend so the
   letters read as solid ink instead of vanishing into the paper. */
.knock.no-video .knock-plate { mix-blend-mode: normal; }

.knock-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cap highlights just under the background tone so nothing leaks
     through the lighten blend outside the letters. */
  filter: brightness(0.9);
}

.knock-plate {
  position: relative;
  display: block;
  background: var(--bg);
  color: #000;
  mix-blend-mode: lighten;
}

/* ————— Split: Lab (left) + Capabilities (right) ————— */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-bottom: 1px solid var(--hairline);
}

.split-left {
  padding: var(--pad-y) var(--pad-x);
  border-right: 1px solid var(--hairline);
}

.split-right { padding: var(--pad-y) var(--pad-x); }

.split .eyebrow { margin-bottom: 3rem; }

.claim-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.claim-sub {
  margin-top: 2.2rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  max-width: 42ch;
}

/* Stats — compact strip under the claim */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 30rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat { padding: 1.5rem 1rem 1.4rem 0; }

.stat + .stat { border-left: 1px solid var(--hairline); padding-left: 1.3rem; }

.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 1.6;
}

/* Capabilities — indexed rows, lime flood on hover */
.cap-list { list-style: none; }

.cap-list li { border-bottom: 1px solid var(--hairline); }

.cap {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2.6rem 1.5rem;
  margin: 0 -1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s;
}

.cap:hover { background: var(--lime); }

.cap-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--faint);
  transition: color 0.3s;
}

.cap:hover .cap-num { color: #000; }

.cap h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.cap p { font-size: 15px; line-height: 1.6; color: var(--secondary); transition: color 0.3s; }

.cap:hover p, .cap:hover h3 { color: #000; }

.cap:hover mark { background: transparent; padding: 0; margin: 0; }

/* ————— Showreel ticker band ————— */

.band {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.65rem 0;
}

.band-dot { font-style: normal; color: var(--lime); font-size: 0.8em; }

.band-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: marquee 24s linear infinite; }
  .band:hover .band-track { animation-play-state: paused; }
}

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

/* ————— Work ————— */

.work { padding: var(--pad-y) var(--pad-x); border-bottom: 1px solid var(--hairline); }

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.show-all {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.show-all span { display: inline-block; transition: transform 0.3s var(--ease); }

.show-all:hover span { transform: translateX(5px); }

/* Filters */
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
  margin-bottom: 3rem;
}

.filters-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--faint);
}

.filters-group { display: flex; gap: 2.5rem; }

.filter {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.filter select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.2em 1.4em 0.2em 0.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M0 0 L4 6 L8 0' fill='%231c1b1b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2em center;
}

.filter select:hover { border-bottom-color: var(--ink); }

/* Ver más / Ver menos */
.work-more { text-align: center; margin-top: 3rem; }

.show-more {
  background: none;
  border: 1px solid var(--ink);
  font-family: var(--body);
  font-size: clamp(10px, 8px + 0.35vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.9em clamp(1.4em, 1em + 1.2vw, 2.4em);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.show-more:hover { background: var(--lime); border-color: var(--lime); color: #000; }

.grid-empty {
  grid-column: 1 / -1;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 3rem 0;
  text-align: center;
}

/* Grid cards — masonry mosaic: columns pack tight, shapes create the rhythm */
.grid {
  columns: 3;
  column-gap: 1.5rem;
}

.grid .card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.card--land .card-img img { aspect-ratio: 4 / 3; }
.card--mid .card-img img  { aspect-ratio: 3 / 4; }
.card--full .card-img img { aspect-ratio: 16 / 10; }

.card {
  text-decoration: none;
  color: var(--ink);
  display: block;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background 0.3s;
}

.card:hover { background: #f1edec; }

.card-img { display: block; overflow: hidden; background: #ddd; }

.card-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.5s;
}

.card:hover .card-img img { transform: scale(1.04); filter: grayscale(0) contrast(1); }

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.2rem 0;
}

.card-title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.card:hover .card-title { color: #7a8f00; }

.card-year {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--secondary);
}

.card-meta {
  display: block;
  padding: 0.35rem 1.2rem 0;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
}

.card-desc {
  display: block;
  padding: 0.5rem 1.2rem 1.2rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--secondary);
}

/* ————— Our Lab ————— */

.studio { padding: var(--pad-y) var(--pad-x) 3rem; border-bottom: 1px solid var(--hairline); }

.studio .section-title { margin-bottom: 2.2rem; }

.studio-line {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 52rem;
  margin-bottom: 3rem;
}

.trusted {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
  margin-bottom: 3rem;
}

.trusted .clients-list {
  margin-top: 0.9rem;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 2;
  max-width: 52rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}

.office p {
  margin-top: 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ————— FAQ — accordion rows ————— */

.faq { padding: var(--pad-y) var(--pad-x); border-bottom: 1px solid var(--hairline); }

.faq .section-title { margin-bottom: 3rem; }

.faq-list { border-top: 1px solid var(--hairline); max-width: 60rem; }

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.5rem 0.2rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.15rem);
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: #7a8f00; }

.faq-item summary i {
  font-style: normal;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--faint);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), color 0.25s;
}

.faq-item[open] summary i { transform: rotate(45deg); color: var(--ink); }

.faq-item summary:hover i { color: var(--lime); }

.faq-item p {
  padding: 0 0.2rem 1.8rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 68ch;
}

/* ————— Contact ————— */

.contact { padding: var(--pad-y) var(--pad-x); }

.contact-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0.9rem 0 2.2rem;
}

.contact-sub {
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--secondary);
  margin-bottom: 2.8rem;
}

.contact-actions { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }

.btn-box {
  display: inline-block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 1.1em 2.2em;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-box:hover { background: var(--lime); border-color: var(--lime); color: #000; }

.btn-ghost {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.btn-ghost:hover { color: var(--ink); }

/* ————— Footer ————— */

.footer { border-top: 1px solid var(--hairline); padding: var(--pad-y) var(--pad-x) 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand .wordmark { font-size: 1.4rem; }

.footer-tag {
  margin-top: 1.2rem;
  font-size: 15px;
  color: var(--secondary);
  max-width: 30ch;
}

.footer-copy {
  display: block;
  margin-top: 2.4rem;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col { display: flex; flex-direction: column; gap: 0.9rem; }

.footer-col .eyebrow { margin-bottom: 0.4rem; }

.footer-col span:not(.eyebrow), .footer-col a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-col a:hover { color: #7a8f00; }

/* ————— Case modal — campaign clip + description ————— */

#caseModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

body.case-open #caseModal { opacity: 1; visibility: visible; }

body.case-open .nav { opacity: 0; pointer-events: none; }

.case-box {
  position: relative;
  width: min(880px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  background: var(--bg);
}

.case-media { position: relative; background: #000; }

.case-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: none;
}

.case-info { padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem) 2rem; }

.case-info h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.7rem 0 0.9rem;
}

.case-info p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 62ch;
}

.case-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.case-close:hover { color: var(--lime); }

/* ————— Cinema mode ————— */

#cinema {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

body.cinema-open #cinema { opacity: 1; visibility: visible; }

#cinema video { width: 100%; height: 100%; object-fit: contain; }

.cinema-close {
  position: absolute;
  top: 2rem;
  right: var(--pad-x);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.cinema-close:hover { color: var(--lime); }

.cinema-bar {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.75);
}

.cinema-progress {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
}

.cinema-progress::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.cinema-progress-fill {
  position: absolute;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--lime);
}

/* ————— Responsive ————— */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split-left { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .grid { columns: 2; }
  .studio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .brand-tag { display: none; }
  .nav-links { gap: 1.3rem; }
}

/* ————— Mobile index — burger + dropdown panel ————— */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), background 0.35s;
}

.nav:not(.scrolled) .nav-burger span { background: #fff; }

body.menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-cta { padding: 0.7em 1.2em; }
  .nav-burger { display: flex; }

  /* The index becomes a dark dropdown under the header */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    padding: 0.4rem 0 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }

  body.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav .nav-links a,
  .nav:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    padding: 1rem var(--pad-x);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .nav-links a:last-child { border-bottom: 0; }

  .nav .nav-links a:hover,
  .nav:not(.scrolled) .nav-links a:hover { color: var(--lime); }
}

@media (max-width: 640px) {
  .hud { padding-top: 5rem; }
  .hud-row .hud-item:first-child { display: none; }
  .grid { columns: 1; }
  .card--mid .card-img img { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: 1fr; max-width: none; }
  .stat { padding: 1.1rem 0 1rem; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
  .contact-actions { flex-direction: column; align-items: flex-start; }
  .filters { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .cap { flex-direction: column; gap: 0.9rem; padding: 2rem 1.5rem; }
  .cinema-close { right: 1.4rem; }
  .cinema-bar { left: 1.4rem; right: 1.4rem; }
}
