/* NOMAD Agency — site styles */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */

.container {
  max-width: var(--page-max, 1440px);
  margin: 0 auto;
  padding: 0 var(--page-pad, 64px);
}
@media (max-width: 800px) { .container { padding: 0 24px; } }

/* ── Type helpers ───────────────────────────────────────── */

.eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); }
.display { font-family: var(--font-display); font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; margin: 0; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.body-lg { font-size: 18px; line-height: 1.7; max-width: 56ch; }
.body { font-size: 16px; line-height: 1.6; max-width: 60ch; }
.muted { color: var(--fg-muted); }

/* ── Section markers ────────────────────────────────────── */

.rule { display: inline-block; width: 40px; height: 2px; background: var(--accent); }
.section-label { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); }
.section-label .num { font-family: var(--font-display); color: var(--accent); font-size: 12px; letter-spacing: 0.04em; }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: color 200ms ease-out;
  overflow: hidden; user-select: none;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-101%);
  transition: transform 250ms cubic-bezier(0.16,1,0.3,1);
  z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn.primary { background: #fff; color: #000; }
.btn.primary::before { background: var(--accent); }
.btn.primary:hover { color: #fff; }
.btn.secondary { background: transparent; color: #fff; border-color: #fff; }
.btn.secondary::before { background: #fff; }
.btn.secondary:hover { color: #000; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.ghost::before { background: var(--accent); }
.btn.ghost:hover { color: #fff; }

/* ── Sections ───────────────────────────────────────────── */

.section { padding: var(--section-pad, 96px) 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
@media (max-width: 800px) { .section { padding: 64px 0; } }

/* ── Navigation ─────────────────────────────────────────── */

.nav-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 350ms cubic-bezier(0.16,1,0.3,1);
}
.nav-fixed.scrolled { background: #000; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--page-pad, 64px);
  max-width: var(--page-max, 1440px); margin: 0 auto;
}
.nav-wm { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: #fff; cursor: pointer; }
.nav-links { display: flex; gap: 36px; align-items: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav-links span { color: #fff; cursor: pointer; padding: 4px 0; position: relative; transition: color 200ms; }
.nav-links span:hover { color: var(--accent); }
.nav-links span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms cubic-bezier(0.16,1,0.3,1);
}
.nav-links span:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 9px 20px;
  font-size: 11px; letter-spacing: 0.18em;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 200ms, color 200ms;
  margin-left: 8px;
}
.nav-cta:hover { background: transparent; color: #fff; }
.nav-cta::before { display: none; }

/* ── Hero / Showreel ────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  background: #000;
}
.hero-media video,
.hero-media .showreel-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay, 0.55));
  z-index: 1;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: var(--hero-vignette, 1);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: var(--hero-align, flex-end);
  padding-top: 120px;
  padding-bottom: 96px;
}
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, var(--hero-size, 4vw), 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  max-width: 14ch;
}
.hero-supporting {
  font-size: 17px; line-height: 1.7; max-width: 46ch;
  color: var(--white-70); margin-top: 28px;
}
.hero-cta-row { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* ── Showreel meta strip ────────────────────────────────── */

.reel-meta {
  position: absolute;
  bottom: 24px; right: var(--page-pad, 64px);
  z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white-70);
}
.reel-meta .live-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 999px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.reel-mute {
  position: absolute; bottom: 24px; left: var(--page-pad, 64px);
  z-index: 3;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
  color: #fff;
}
.reel-mute:hover { background: var(--accent); border-color: var(--accent); }

/* ── CSS-only showreel fallback (cycling stills) ────────── */

.showreel-fallback {
  position: relative;
  background: #000;
  overflow: hidden;
}
.showreel-fallback .frame {
  position: absolute; inset: 0;
  opacity: 0;
  animation: reelCycle var(--reel-duration, 24s) infinite;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(1.05);
}
.showreel-fallback .frame:nth-child(1) { animation-delay: 0s; }
.showreel-fallback .frame:nth-child(2) { animation-delay: calc(var(--reel-duration, 24s) / 6 * 1); }
.showreel-fallback .frame:nth-child(3) { animation-delay: calc(var(--reel-duration, 24s) / 6 * 2); }
.showreel-fallback .frame:nth-child(4) { animation-delay: calc(var(--reel-duration, 24s) / 6 * 3); }
.showreel-fallback .frame:nth-child(5) { animation-delay: calc(var(--reel-duration, 24s) / 6 * 4); }
.showreel-fallback .frame:nth-child(6) { animation-delay: calc(var(--reel-duration, 24s) / 6 * 5); }

@keyframes reelCycle {
  0%, 14% { opacity: 1; transform: scale(1.0); }
  16%, 100% { opacity: 0; transform: scale(1.05); }
}

/* ── Film grain ─────────────────────────────────────────── */

.film-grain {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--grain, 0.08);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  animation: grainShift 1.2s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ── Work grid ──────────────────────────────────────────── */

#work .work-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
#work .work-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 2), 1fr);
  gap: var(--grid-gap, 16px);
}
@media (max-width: 800px) {
  #work .work-grid { grid-template-columns: 1fr !important; }
}

/* ── Case cards ─────────────────────────────────────────── */

.case-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-elev);
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 200ms ease-out;
}
.case-card::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 350ms cubic-bezier(0.16,1,0.3,1);
}
.case-card:hover::after { transform: scaleX(1); }
.case-video-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #000;
}
.case-card .case-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  transition: background 350ms;
}
.case-card:hover .case-shade {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.55) 100%);
}
.case-card .case-meta-top {
  position: absolute; top: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.case-card .case-num {
  font-family: var(--font-display); color: var(--accent); font-weight: 900;
  font-size: 14px; letter-spacing: 0;
}
.case-card .case-body {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  z-index: 2;
}
.case-card .case-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase; color: #fff;
  white-space: pre-line;
  text-wrap: balance;
}
.case-card .case-kind {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
}
.case-card .case-kind .arrow { color: var(--accent); transition: transform 250ms; }
.case-card:hover .case-kind .arrow { transform: translateX(4px); }

/* ── Manifesto ──────────────────────────────────────────── */

.manifesto {
  padding: 128px 0;
  background: #fff;
  border-bottom: none;
  --fg: #000;
  --fg-muted: rgba(0,0,0,0.5);
  --white-70: rgba(0,0,0,0.5);
  --border: rgba(0,0,0,0.1);
}
.manifesto .section-label { color: rgba(0,0,0,0.4); }
.manifesto .section-label .num { color: var(--accent); }
.manifesto .manifesto-line { color: #000; }
.manifesto .muted { color: rgba(0,0,0,0.5); }
.manifesto-block { max-width: 920px; }
.manifesto-line {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15; letter-spacing: -0.01em;
  text-transform: none; margin: 0;
}

/* ── Stat row ───────────────────────────────────────────── */

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.15);
}
.stat-cell {
  padding: 32px;
  display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 0.95; letter-spacing: -0.02em; color: #fff; }
.stat-lbl { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.stat-desc { font-size: 12px; color: var(--white-70); line-height: 1.5; margin-top: 4px; max-width: 28ch; }
@media (max-width: 800px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.15); }
}

/* ── Clients marquee ────────────────────────────────────── */

.clients {
  padding: 48px 0;
  background: #000;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.clients-track {
  display: flex; gap: 72px; align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.clients-track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.01em;
  color: var(--white-70);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex; align-items: center; gap: 12px;
  transition: color 250ms;
}
.clients-track span:hover { color: #fff; }
.clients-sep {
  color: var(--accent) !important;
  font-size: 24px;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Stat section ────────────────────────────────────────── */

/* ── Contact CTA ────────────────────────────────────────── */

.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.cta-head {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 5.5vw, 72px); line-height: 1;
  letter-spacing: -0.02em; text-transform: none; margin: 0;
}
@media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Contact section (white) ─────────────────────────────── */

#contact {
  background: #fff;
  --fg: #000;
  --fg-muted: rgba(0,0,0,0.5);
  --white-70: rgba(0,0,0,0.45);
  --border: rgba(0,0,0,0.1);
}
#contact .section-label { color: rgba(0,0,0,0.4); }
#contact .section-label .num { color: var(--accent); }
#contact .cta-head { color: #000; }
#contact .body-lg { color: rgba(0,0,0,0.7); }
#contact p { color: rgba(0,0,0,0.45); }
#contact .btn.primary { background: #000; color: #fff; border-color: #000; }
#contact .btn.primary::before { background: var(--accent); }
#contact .btn.primary:hover { color: #fff; }

/* ── Contact form ────────────────────────────────────────── */

.contact-form {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
}
.contact-input {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.15);
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 200ms;
  width: 100%;
}
.contact-input::placeholder { color: rgba(0,0,0,0.35); }
.contact-input:focus { border-color: var(--accent); }
.contact-textarea { min-height: 120px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────────── */

.footer { padding: 64px 0 48px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-wm { font-family: var(--font-display); font-weight: 700; font-size: 56px; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.footer-lbl { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-70); margin-bottom: 14px; display: block; }
.footer-item { font-size: 12px; line-height: 1.9; color: #fff; cursor: pointer; transition: color 200ms; display: block; text-decoration: none; }
.footer-item:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; margin-top: 64px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #4d4d4d;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── About overlay ───────────────────────────────────────── */

.about-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  overflow-y: auto;
  animation: fadeIn 280ms cubic-bezier(0.16,1,0.3,1);
}
.about-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--page-pad, 64px);
  position: sticky; top: 0; background: #000; z-index: 10;
  border-bottom: 1px solid var(--border);
}
.about-close {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-muted); background: none; border: none; cursor: pointer;
  transition: color 200ms; font-family: var(--font-body);
}
.about-close:hover { color: #fff; }
.about-body-wrap {
  max-width: var(--page-max, 1440px);
  margin: 0 auto;
  padding: 96px var(--page-pad, 64px) 128px;
  display: flex; flex-direction: column; gap: 96px;
}
.about-hero { max-width: 840px; }
.about-heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: #fff; margin: 24px 0 0;
  text-transform: none;
}
.about-intro {
  font-size: 18px; line-height: 1.8; max-width: 52ch;
  color: var(--white-70); margin-top: 32px;
}
.about-team {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 56px;
  border-top: 1px solid var(--border); padding-top: 64px;
}
.about-team-divider { background: var(--border); }
.about-team-role {
  display: block; margin-bottom: 16px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.about-team-desc { font-size: 16px; line-height: 1.75; color: var(--white-70); max-width: 36ch; }
.about-quote {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0; text-align: center;
}
.about-quote-text {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 1.35; color: #fff; letter-spacing: -0.01em; margin: 0;
}
.about-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.about-detail-label {
  display: block;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted);
  margin-bottom: 6px;
}
.about-detail-value { font-size: 15px; color: #fff; }
@media (max-width: 800px) {
  .about-team { grid-template-columns: 1fr; }
  .about-team-divider { display: none; }
  .about-footer-row { flex-direction: column; align-items: flex-start; }
}

/* ── Scroll reveal utility ──────────────────────────────── */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(0.16,1,0.3,1), transform 600ms cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Edit toolbar ────────────────────────────────────────── */

.edit-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  background: #000;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px;
  gap: 2px;
  white-space: nowrap;
}
.edit-tb-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: transparent; border: none; cursor: pointer;
  transition: color 150ms, background 150ms;
}
.edit-tb-btn:hover { color: #fff; }
.edit-tb-btn.active { color: var(--accent); background: rgba(85,0,34,0.2); }
.edit-tb-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); }
.edit-tb-hint {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding: 0 14px 0 6px;
}

/* ── Editable text elements ──────────────────────────────── */

.editable {
  cursor: text;
  border-radius: 2px;
  outline: 1px dashed rgba(255,255,255,0.22);
  outline-offset: 5px;
  transition: outline-color 150ms;
}
.editable:hover { outline-color: rgba(255,255,255,0.55); }
.editable:focus {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
  background: rgba(255,255,255,0.04);
}

/* ── Case card still + play hint ─────────────────────────── */

.case-card .case-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 600ms cubic-bezier(0.16,1,0.3,1), filter 350ms;
  filter: saturate(0.9) contrast(1.05);
}
.case-card:hover .case-img { transform: scale(1.04); filter: saturate(1.05) contrast(1.1); }

.case-play-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 250ms;
}
.case-play-hint svg {
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 16px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.case-card:hover .case-play-hint { opacity: 1; }

/* ── Project modal ───────────────────────────────────────── */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex; flex-direction: column;
  animation: fadeIn 200ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-inner {
  display: flex; flex-direction: column;
  height: 100%;
}

.modal-close {
  position: absolute; top: 24px; right: 24px;
  z-index: 10;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
  transition: background 200ms, border-color 200ms;
  background: transparent;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); }

.modal-video {
  position: relative;
  flex: 1;
  background: #000;
}
.modal-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.modal-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 28px var(--page-pad, 64px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase; margin: 8px 0 0; color: #fff;
  white-space: pre-line;
}
.modal-meta-right { display: flex; gap: 8px; padding-bottom: 4px; }
.modal-tag {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white-70); border: 1px solid var(--border);
  padding: 5px 12px;
}
