/* ============================================================
   RSO MEDIA GROUP — styles.css
   "HUD Bento" system: dark obsidian + brand-red glass,
   "mission-control" aesthetic matching the RSO Ops product UI.
   Rules baked in here:
   - Obsidian (#08080a) is the wallpaper; red (#e0322f) is the
     accent, with a faint red radial glow on the page.
   - Glass panels: subtle borders, rounded corners (14-16px),
     soft depth shadows, and red glow on primary/hover accents.
   - Archivo for all UI/headings; JetBrains Mono for every
     number, label, kicker, and meta line.
   - Media placeholders are striped panels labeled with the real
     file that belongs there.
   (Converted from the original flat "Film Still" system.)
   ============================================================ */

:root {
  /* ---- HUD Bento palette (promoted from tour.css to the whole site) ---- */
  --red: #e0322f;        /* primary accent */
  --crimson: #b8231f;    /* pressed */
  --red-bright: #ff6a63; /* numbers / values / links */
  --red-soft: #ff8580;   /* kickers, pill text, tags */

  --green: #39d98a;  --green-t: #6fe0a8;
  --amber: #d98a1a;  --amber-t: #f0b658;

  /* obsidian surface ladder */
  --ink: #08080a;        /* page base — the wallpaper */
  --bg-2: #0a0a0c;       /* alt section base */
  --panel: #0e0e11;      /* glass panels / card fill */
  --tile: #141417;       /* tiles / inputs */

  --line: #1e1e22;       /* panel borders */
  --line-2: #26262a;     /* tile / input borders */
  --line-hair: #17171a;  /* list-row dividers */

  /* text ramp */
  --white: #ffffff;
  --off: #e9e8e6;        /* body copy */
  --text-3: #d4d3d0;     /* body over imagery */
  --smoke: #b4b3b0;      /* mono kickers, captions */
  --gray: #8a8986;       /* de-emphasized text */
  --faint: #5f5e5c;
  --stroke-num: #2a2a30; /* outlined giant numerals */

  /* type — two families only */
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif; /* UI + headings */
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace; /* numbers/labels */
  --font-serif: 'Archivo', system-ui, sans-serif; /* legacy alias; HUD Bento has no serif */

  /* geometry */
  --container: 1200px;
  --pad: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 10px;

  /* glow + depth */
  --glow-red: 0 0 28px -8px #e0322f;
  --glow-red-sm: 0 0 16px -2px #e0322f;
  --depth: 0 20px 50px -24px #000;
  --depth-lg: 0 40px 100px -40px #000;

  /* red radial glow for hero / section accents */
  --radial: radial-gradient(1100px 640px at 82% -6%, rgba(224,50,47,.16), transparent 58%);

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset / base ---------- */

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

html, body { overflow-x: clip; } /* no sideways scroll, ever */

/* Keyboard focus: the outline is suppressed only when the browser knows
   focus came from a pointer (":focus-visible" support), so mouse/touch
   clicks stay clean while Tab always shows a clear red ring. Browsers
   without :focus-visible just ignore both rules below and keep their
   native outline — a safe fallback, never "no focus indicator at all". */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

body {
  background: var(--radial), var(--ink);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--off);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }

ul { list-style: none; }

::selection { background: var(--red); color: var(--white); }

/* ---------- Type system ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: none;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.75rem, 7.4vw, 6.5rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red-soft);
  display: block;
  margin-bottom: 1.25rem;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--smoke);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--smoke);
}

.lede { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--off); max-width: 34em; }

/* The red bar — a section's single red element when used */
.redbar { width: 72px; height: 6px; background: var(--red); border: 0; margin: 1.5rem 0; }

/* ---------- Layout ---------- */

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

.section { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Buttons (flat, square, mono) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-red { background: var(--red); color: var(--white); box-shadow: var(--glow-red); }
.btn-red:hover { background: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 0 34px -6px #e0322f; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }

.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--off); }
.btn-ghost:hover { background: var(--tile); border-color: #3a3a3f; color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 0.6em 1.15em; font-size: 0.82rem; }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2rem); }

.site-nav a:not(.btn) {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #c4c3c0;
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:not(.btn):hover { color: var(--white); }

.site-nav a.active {
  color: var(--white);
  border-bottom-color: transparent;
}

/* ---------- Header actions + mobile nav toggle ----------
   Below 680px there isn't room for four nav links plus the "Book a
   call" button in one row (it was overflowing/wrapping). The CTA
   stays visible; the links tuck behind a small vanilla toggle that
   drops .site-nav into a full-width stack. Wired in interactions.js. */

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  color: var(--off);
  cursor: pointer;
  flex: none;
}
.nav-toggle:hover { border-color: var(--smoke); }
.nav-toggle.is-open { background: var(--red); border-color: var(--red); color: var(--white); }

@media (max-width: 680px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    padding: 0.95em 0.2rem;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-nav a:not(.btn)::after { display: none; } /* the grow-in underline only makes sense in a single row */
}

/* ---------- Logo (CSS wordmark on a black tile) ----------
   The tile is the ONLY rounded corner on the site.
   To swap in a real logo file, replace the two spans inside
   .logo with: <img src="media/logo.svg" alt="RSO Media Group">
   Never place the red wordmark on a red background. */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;          /* the one allowed radius */
  padding: 0.45rem 0.9rem 0.5rem;
  line-height: 1;
}

.logo-rso {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  transform: skewX(-8deg);     /* approximates the italic chrome-red mark */
  letter-spacing: 0.03em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 0.35rem;
  margin-left: 0.42em;         /* optically recenters the tracked text */
}

/* ---------- Media placeholders ----------
   Dark grayscale panels with a centered mono label saying what
   real file goes there. Real files drop into /media later. */

.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, #131316, #131316 12px, #0e0e11 12px, #0e0e11 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ph-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
  padding: 0 1rem;
  z-index: 1;
}

/* film-still treatment: bottom-to-black gradient (media only, never type) */
.ph::after,
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

/* real media dropped into a tile: swap class "ph" for "media-frame"
   on the figure and put an <img> or <video> inside. Grayscale +
   contrast + the bottom gradient are applied automatically. */
.media-frame { position: relative; overflow: hidden; background: var(--panel); }

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-916 { aspect-ratio: 9 / 16; }
.ratio-11  { aspect-ratio: 1 / 1; }
.ratio-43  { aspect-ratio: 4 / 3; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;       /* text lives in the bottom third */
  border-top: 0;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--panel); }

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  opacity: 0;                  /* revealed by render.js once it can play */
  transition: opacity 0.6s;
}

.hero-media video.is-live { opacity: 1; }

.hero-ph { position: absolute; inset: 0; border: 0; }

/* Tuck the placeholder label into the top-left corner (mirrors the
   top-right .hero-badge) so it never collides with the bottom-anchored
   H1. Lower prominence than a normal .ph-label since it's secondary to
   the headline here. Scoped to .hero-ph only — every other placeholder
   on the site keeps the default centered label. */
.hero-ph .ph-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  padding: 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--faint);
}

/* scrim so the type always reads */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.35) 0%, rgba(13, 13, 13, 0.15) 40%, rgba(13, 13, 13, 0.94) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
  width: 100%;
}

.hero-content .lede { margin: 1.25rem 0 2rem; }

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
}

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

.marquee-group { display: flex; flex-shrink: 0; }

.marquee-group span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--smoke);
  white-space: nowrap;
  padding: 0 1.6rem;
}

.marquee-group span::after { content: "·"; color: var(--gray); margin-left: 3.2rem; }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Logo wall ---------- */

.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.logo-wall .ph { aspect-ratio: 3 / 2; border: 0; }
.logo-wall .ph::after { display: none; }

/* real client logos: drop an <img> inside each logo-wall tile */
.logo-wall .ph img {
  max-width: 60%;
  max-height: 45%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
}

/* ---------- Process ---------- */

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--depth);
  padding: 1.75rem 1.5rem;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke-num);
  display: block;
  margin-bottom: 0.9rem;
}

.step h3 { margin-bottom: 0.7rem; }
.step p { color: var(--smoke); font-size: 0.95rem; }

/* ---------- RSO Ops page: feature grid ----------
   Reuses .step / .step-num cards in a 3-wide layout. */

.ops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2rem; }

/* ---------- Plans ---------- */

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }

.plan {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--depth);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* the featured card carries the section's red accent + glow */
.plan.featured { border-color: var(--red); box-shadow: var(--depth), var(--glow-red-sm); }

.plan-badge {
  position: absolute;
  top: 0;
  left: 2rem;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.45em 1em;
  border-radius: 6px;
  box-shadow: var(--glow-red-sm);
}

.plan-name { margin-bottom: 0.4rem; }

.plan-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.plan-price span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-left: 0.3rem;
}

.plan-blurb { font-size: 0.9rem; color: var(--smoke); margin-bottom: 1.4rem; }

.plan-features { border-top: 1px solid var(--line); margin-bottom: 1.8rem; flex: 1; }

.plan-features li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--off);
}

.plan .btn { text-align: center; }

.plans-subline { text-align: center; margin-top: 2.5rem; color: var(--smoke); }
.plans-subline .serif-accent { font-size: 1.05rem; }

/* ---------- What a month looks like (call-sheet rows) ---------- */

.month-sheet { border-top: 1px solid var(--line); }

.month-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.month-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--smoke);
  padding-top: 0.35rem;
}

.month-row h3 { margin-bottom: 0.5rem; }
.month-row p { color: var(--smoke); font-size: 0.95rem; max-width: 38em; }

/* ---------- Work teaser / portfolio tiles ---------- */

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }

.tile { position: relative; }

.tile-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off);
}

.section-foot { margin-top: 2.5rem; }

/* ---------- Stats ---------- */

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

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--depth); padding: 1.8rem 1.5rem; }

.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* ---------- Hero "about us" (sits beside the CTA buttons) ---------- */

/* Buttons stay left; the about-us block is pushed to the right edge of the
   hero container, filling the empty space beside them. Wraps underneath on
   narrow screens rather than squeezing either one. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  width: 100%;
}

.hero-about { display: flex; align-items: center; gap: 1rem; max-width: 24rem; }

/* Small square thumb. render.js swaps .ph for .media-frame once a photo is
   uploaded, which supplies the object-fit + grayscale treatment. */
.hero-about__photo { flex: 0 0 auto; width: 74px; height: 74px; }

.hero-about__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.hero-about__copy p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--smoke); }

@media (max-width: 860px) {
  .hero-about { max-width: none; }
}

/* ---------- About strip ---------- */

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }

.about-copy p { color: var(--smoke); max-width: 32em; }

/* ---------- Testimonial ---------- */

.testimonial {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--depth), var(--glow-red-sm);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.testimonial cite { font-style: normal; }

/* ---------- Closing CTA ---------- */

.cta-section { text-align: center; }
.cta-section .lede { margin: 1.25rem auto 2.25rem; }
.cta-section .redbar { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-tagline { font-family: var(--font-serif); font-style: italic; color: var(--smoke); margin-top: 1rem; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.9rem; color: var(--smoke); }
.footer-links a:hover { color: var(--white); }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gray);
}

/* ---------- Page hero (portfolio / contact) ---------- */

.page-hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem); border-top: 0; }
.page-hero .lede { margin-top: 1.25rem; }

/* ---------- Portfolio filters + gallery ---------- */

.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--smoke);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  padding: 0.65em 1.3em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s, color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.filter-btn:hover { border-color: #3a3a3f; color: var(--white); background: var(--tile); }

/* the active filter fills red with a soft glow */
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: var(--glow-red-sm); }

.gallery { columns: 3; column-gap: 1.5rem; }

.gallery .tile { break-inside: avoid; margin-bottom: 1.5rem; }

.gallery .tile.is-hidden { display: none; }

/* ---------- Contact ---------- */

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

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  background: var(--tile);
  border: 1px solid var(--line-2);
  color: var(--off);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8em 1em;
  border-radius: var(--radius-sm);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--red);
}

.form-status { margin-top: 1rem; min-height: 1.2em; letter-spacing: 0.1em; }

.hidden-field { position: absolute; left: -9999px; }

.info-cards { display: grid; gap: 1.5rem; }

.info-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: var(--depth); padding: 1.75rem; }

.info-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.info-card p, .info-card a { font-size: 0.9rem; color: var(--smoke); }
.info-card a:hover { color: var(--white); }

/* ---------- Quote popup (built by quote.js) ---------- */

.quote-tab {
  position: fixed;
  right: 0;
  bottom: 20vh;
  z-index: 800;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 1.1em 0.85em;
  min-width: 44px;
  cursor: pointer;
}

.quote-tab:hover { background: var(--crimson); }

.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;              /* grain (999) stays on top; it's inert */
  background: rgba(13, 13, 13, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* display:flex above would silently defeat the hidden attribute,
   leaving the popup stuck open. This keeps hidden meaning hidden. */
.quote-overlay[hidden] { display: none; }

.quote-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--depth-lg), var(--glow-red-sm);
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem 2rem 2rem;
}

.quote-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: 0;
  color: var(--gray);
  font-size: 1rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-close:hover { color: var(--white); }

.quote-modal h3 { margin-bottom: 0.75rem; }
.quote-intro { font-size: 0.9rem; color: var(--smoke); margin-bottom: 1.5rem; }

.quote-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 1.1rem;
}

.quote-form input,
.quote-form select {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  background: var(--tile);
  border: 1px solid var(--line-2);
  color: var(--off);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7em 0.9em;
  border-radius: var(--radius-sm);
}

.quote-form input:focus,
.quote-form select:focus { border-color: var(--red); }

.quote-form .btn { width: 100%; text-align: center; margin-top: 0.5rem; }

.quote-privacy { margin-top: 0.9rem; font-size: 0.65rem; color: var(--gray); text-align: center; }

.quote-back {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background: none;
  border: 0;
  color: var(--gray);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-align: center;
}

.quote-back:hover { color: var(--smoke); }

.quote-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
}

.quote-price span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-left: 0.3rem;
}

.quote-features { border-top: 1px solid var(--line); margin-bottom: 1.25rem; }

.quote-features li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--off);
}

.quote-note { font-size: 0.85rem; color: var(--smoke); margin-bottom: 1.5rem; }

.quote-step .btn { display: block; text-align: center; }

/* ---------- Film grain overlay ----------
   The SVG turbulence markup sits at the end of each page's body. */

/* HUD Bento drops the film-grain overlay. Rule kept as a no-op so the
   inline .grain markup still in each page renders nothing. */
.grain { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .gallery { columns: 2; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .month-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .work-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .stats-row { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-sub { display: none; } /* tighten header on small screens */
}

/* ============================================================
   MOTION & INTERACTIVITY  (progressive enhancement)
   interactions.js adds .reveal to below-the-fold blocks and flips
   .is-visible when they scroll in. Above-the-fold content is never
   hidden, so there's no flash — and with JS off, nothing hides.
   The "Film Still" system stays flat: motion is fades + tiny lifts
   + accent, never shadows or gradients.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* hover life */
.plan, .info-card, .step, .stat, .tile { transition: transform 0.2s ease, border-color 0.2s ease; }
.plan:hover, .info-card:hover { transform: translateY(-4px); border-color: rgba(224, 50, 47, 0.4); box-shadow: var(--depth), var(--glow-red-sm); }
.step:hover { border-color: rgba(224, 50, 47, 0.4); }
.step:hover h3 { color: var(--red-bright); }
.stat:hover { border-color: rgba(224, 50, 47, 0.4); }
.stat:hover .stat-num { color: var(--red-bright); transition: color 0.2s ease; }
.gallery .tile:hover, .work-grid .tile:hover { transform: translateY(-4px); }
.filter-btn:active, .btn:active { transform: translateY(1px); }

/* nav links: an underline that grows in from the left on hover */
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a.active::after { display: none; } /* active already has a solid underline */

/* header gains solidity once you scroll */
.site-header { transition: background-color 0.3s ease, border-color 0.3s ease; }
.site-header.is-scrolled { background: rgba(8, 8, 10, 0.72); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- Homepage RSO Ops teaser ---------- */

.ops-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.ops-teaser__copy .btn-row { margin-top: 1.75rem; }
.ops-teaser__vis { max-width: none; margin: 0; }
.ops-teaser__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
}
.ops-teaser__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

@media (max-width: 860px) {
  .ops-teaser { grid-template-columns: 1fr; }
  .ops-teaser__vis { order: -1; max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .plan:hover, .info-card:hover, .gallery .tile:hover, .work-grid .tile:hover { transform: none; }
  .site-nav a:not(.btn)::after { display: none; }
}

/* ============================================================
   PORTFOLIO — film-tile badge + hover caption  (Phase 4)
   Added on top of the shared .tile / .ph primitives. Each tile
   carries a mono category badge (top-left) and a client + title
   caption over a bottom scrim that brightens and rises on hover.
   ============================================================ */

/* mono category badge, pinned top-left over the media */
.tile__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4c3c0;
  background: rgba(8, 8, 10, 0.6);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* client tag + film title over a bottom scrim */
.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 1.1rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(8, 8, 10, 0.92), transparent);
  opacity: 0.6;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.tile__cap-client {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-soft);
}

.tile__cap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.15;
  color: var(--white);
}

/* reveal on hover and keyboard focus within the tile */
.gallery .tile:hover .tile__cap,
.gallery .tile:focus-within .tile__cap { opacity: 1; transform: translateY(0); }

/* empty-state line when a filter matches nothing */
.gallery-empty { margin-top: 2.5rem; text-align: center; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  /* no motion: captions stay fully legible, no fade/rise */
  .tile__cap { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   CONTACT — split layout, info rows, package chips  (Phase 5)
   New page-specific rules; the form stays wired to Netlify via
   the shared .contact-form base above.
   ============================================================ */

/* first section doubles as the hero — drop the divider under the nav */
.contact-lead { border-top: 0; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info .lede { margin: 1.25rem 0 2.5rem; }

/* --- left: contact info rows --- */
.info-rows { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2.5rem; }

.info-row { display: flex; align-items: center; gap: 0.85rem; }

.info-row__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--red-soft);
}

.info-row__body { display: flex; flex-direction: column; gap: 2px; }

.info-row__title { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--white); }
a.info-row__title:hover { color: var(--red-bright); }

.info-row__sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}

/* live availability dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: liveDotPulse 2.4s infinite;
}

@keyframes liveDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(57, 217, 138, 0); }
}

/* --- left: "what happens next" card --- */
.next-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(224, 50, 47, 0.08), var(--panel));
  padding: 1.4rem 1.5rem;
}

.next-card__title { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--white); margin-bottom: 0.9rem; }

.next-step { display: flex; gap: 0.75rem; align-items: flex-start; }
.next-step + .next-step { margin-top: 0.75rem; }

.next-step__num { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--red-soft); line-height: 1.5; }
.next-step__text { font-size: 0.85rem; line-height: 1.5; color: var(--smoke); }

/* --- right: quote form panel --- */
.quote-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--depth-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* rhythm now comes from the flex gap, not per-label margins */
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-form label { margin-bottom: 0; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form .field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea { margin-top: 0; }
.contact-form textarea { resize: vertical; }

.field-label,
.pkg-field .field-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-form ::placeholder { color: var(--faint); }

/* package chips: multi-select, toggle red when aria-pressed */
.pkg-field { display: flex; flex-direction: column; gap: 0.55rem; }

.pkg-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pkg-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7em 0.85em;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  color: var(--off);
  background: var(--tile);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pkg-chip__glyph { color: var(--red-soft); font-size: 0.9rem; }

.pkg-chip:hover { border-color: #3a3a3f; }

.pkg-chip[aria-pressed="true"] {
  background: rgba(224, 50, 47, 0.14);
  border-color: rgba(224, 50, 47, 0.5);
  color: var(--white);
  box-shadow: var(--glow-red-sm);
}

.pkg-chip[aria-pressed="true"] .pkg-chip__glyph { color: var(--red-bright); }

.form-reassure { text-align: center; font-size: 0.62rem; color: var(--faint); letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .contact-form .form-row,
  .pkg-group { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME (Phase 3) — hero reel badge, stats bar, services,
   inline RSO Ops tour intro. Additive; the scroll tour itself
   is fully styled in tour.css under .rso-optour / .ot-*.
   ============================================================ */

/* hero: mono "reel is autoplaying" status pill, top-right */
.hero-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  background: rgba(8, 8, 10, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: var(--glow-red-sm);
}

/* stats bar: 4 KPI cards (reuse .stat; values count up via .stat-num) */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stat--accent .stat-num { color: var(--red-bright); }
.stat--accent:hover .stat-num { color: var(--red-bright); }

.stat--green {
  background: linear-gradient(180deg, rgba(57, 217, 138, 0.08), var(--panel));
  border-color: rgba(57, 217, 138, 0.25);
}
.stat--green .stat-num { color: var(--green-t); }
.stat--green:hover { border-color: rgba(57, 217, 138, 0.5); }
.stat--green:hover .stat-num { color: var(--green-t); }

/* services: red-tinted glyph tile on a .step card */
.svc-glyph {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(224, 50, 47, 0.12);
  border: 1px solid rgba(224, 50, 47, 0.28);
  color: var(--red-bright);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 1.1rem;
  box-shadow: var(--glow-red-sm);
}

/* RSO Ops tour intro (shared by index #ops + rso-ops.html #tour) */
.ops-intro { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.ops-intro .lede { margin-left: auto; margin-right: auto; }

.ops-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(224, 50, 47, 0.1);
  border: 1px solid rgba(224, 50, 47, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
}
.ops-kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: var(--glow-red-sm);
}

.ops-scroll {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (max-width: 860px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTFOLIO LIGHTBOX — click a film tile to play it full-screen
   (YouTube/Vimeo embed or a native player for uploaded clips).
   Tiles carry data-video-src; wired in render.js.
   ============================================================ */

/* play affordance: a red disc centered over a video tile */
.tile__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0;
}
.tile__play::before {
  content: "\25B6"; /* ▶ */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: var(--glow-red);
  transition: transform 0.18s var(--ease);
}
.tile:hover .tile__play::before,
.tile__play:focus-visible::before { transform: scale(1.09); }

/* full-screen overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(4, 4, 6, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--depth-lg), var(--glow-red-sm);
}
.lightbox__media { position: absolute; inset: 0; }
.lightbox__media iframe,
.lightbox__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--glow-red);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 560px) {
  .lightbox__close { top: 8px; right: 8px; }
}

/* contact-form status line (submits into RSO Ops) */
.form-status { min-height: 1.2em; margin-top: 0.9rem; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--smoke); }
.form-status[data-state="error"] { color: var(--red-bright); }
.form-status[data-state="ok"] { color: var(--green-t); }
