/* ============================================================
   SYNOPSIS — One-Pager Stylesheet
   Aesthetic: Light editorial · Cormorant Garamond + Syne
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  /* Palette */
  --cream:        #F5F0E8;
  --cream-alt:    #EDE7D9;
  --ink:          #003366;
  --ink-mid:      #1A4D7A;
  --ink-muted:    #4A6E8A;
  --yellow:       #FFC900;
  --yellow-dark:  #E6B400;
  --off-white:    #FDFAF4;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Syne', system-ui, sans-serif;

  /* Layout */
  --nav-h:        72px;
  --pad-x:        clamp(1.25rem, 4vw, 3rem);
  --container:    min(1240px, calc(100% - 2 * var(--pad-x)));
  --sec-pad:      clamp(5rem, 9vw, 9rem);

  /* Motion */
  --ease-out:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  background: none;
  border: none;
}

ul { list-style: none; }

/* ── Grain Overlay ──────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Top accent stripe ──────────────────────────────────────── */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--ink);
  z-index: 10000;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 3px; /* below accent stripe */
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad-x);
  transition:
    background-color 0.35s var(--ease-out),
    backdrop-filter  0.35s var(--ease-out),
    border-color     0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0, 51, 102, 0.08);
}

/* Logo */
.nav-logo img {
  height: 34px;
  width: auto;
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.775rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  background-color: var(--ink);
  color: var(--cream);
  border-radius: 100px;
  transition: background-color 0.22s, color 0.22s;
}

.nav-cta:hover {
  background-color: var(--yellow);
  color: var(--ink);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 3px);
  padding-inline: var(--pad-x);
  overflow: hidden;
  text-align: center;
}

/* Background architectural lines */
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.12;
}

.hero-bg img {
  width: min(900px, 100%);
}

/* Hero inner stack */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Wordmark */
.hero-wordmark {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.1s both;
}

.hero-wordmark img {
  width: min(480px, 72vw);
  height: auto;
  margin-inline: auto;
}

/* Animated rule */
.hero-rule {
  width: 0;
  height: 1.5px;
  background-color: var(--yellow);
  margin-inline: auto;
  animation: expandWidth 0.9s var(--ease-out) 0.45s both;
}

@keyframes expandWidth {
  from { width: 0; }
  to   { width: min(320px, 55vw); }
}

/* Tagline lines */
.hero-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) var(--delay, 0.5s) both;
}

.hero-line--light {
  font-style: italic;
  color: var(--ink-mid);
}

/* CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) var(--delay, 1.2s) both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.6s both;
}

.hero-scroll-arrow {
  animation: bob 2.2s ease-in-out infinite;
  display: inline-block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.65rem;
  border-radius: 100px;
  transition: background-color 0.22s, color 0.22s, transform 0.22s var(--ease-out), border-color 0.22s;
  white-space: nowrap;
}

.btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--cream);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(0, 51, 102, 0.24);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
  padding-block: var(--sec-pad);
}

/* Small uppercase label above headings → "01 / About" */
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3rem;
}

/* Display heading shared class */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.heading-xl em {
  font-style: italic;
  color: var(--ink-mid);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background-color: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text .heading-xl {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
}

.about-lede {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.about-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 44ch;
}

.about-visual {
  position: relative;
}

.about-illus img {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  border-radius: 50%;
  background-color: var(--cream-alt);
}

.about-balloon {
  position: absolute;
  top: -3rem;
  right: -3rem;
  opacity: 0;
  animation: none;
}

.about-visual.in-view .about-balloon {
  animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}

.about-balloon img {
  width: 180px;
  filter: drop-shadow(0 4px 20px rgba(0, 51, 102, 0.1));
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background-color: var(--cream);
}

.features-header {
  max-width: 680px;
  margin-bottom: 4.5rem;
}

.features-header .heading-xl {
  margin-bottom: 1.5rem;
}

.features-lead {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-muted);
}

/* 3-column card grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background-color: var(--off-white);
  border-radius: 20px;
  border: 1px solid rgba(0, 51, 102, 0.06);
  transition-delay: var(--stagger, 0s);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 51, 102, 0.07);
}

.feature-badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.feature-badge svg {
  width: 52px;
  height: 52px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-muted);
  flex: 1;
}

/* Illustration below cards */
.features-illus {
  text-align: center;
  margin-top: -2rem;
}

.features-illus img {
  width: min(460px, 100%);
  margin-inline: auto;
}

/* ============================================================
   APP PREVIEW  (dark section)
   ============================================================ */
.app-preview {
  background-color: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.app-preview .section-label {
  color: var(--yellow);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.app-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.app-text .heading-xl {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.5vw, 4.25rem);
}

.app-text .heading-xl em {
  color: var(--yellow);
}

.app-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.65);
  max-width: 42ch;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.9);
}

.dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--yellow);
}

/* Phone mockup */
.app-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 3rem;
}

.phone-wrap {
  position: relative;
  z-index: 2;
}

.phone-wrap img {
  width: min(300px, 80%);
  height: auto;
  border-radius: 36px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  margin-inline: auto;
}

.phone-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.phone-deco--bottom {
  bottom: 0;
  right: 0;
  opacity: 0.75;
}

.phone-deco--top {
  top: 0.5rem;
  left: 0;
  opacity: 0.65;
}

.phone-deco img {
  width: 160px;
  height: auto;
}

.phone-deco--top img {
  width: 120px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background-color: var(--cream);
}

.faq-header {
  max-width: 500px;
  margin-bottom: 4rem;
}

.faq-list {
  max-width: 780px;
}

/* Individual item */
.faq-item + .faq-item {
  border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(0, 51, 102, 0.1);
}

/* Question button */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 400;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--ink-mid);
}

/* Plus/minus icon */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  transition: background-color 0.22s, border-color 0.22s;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background-color: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Open state */
.faq-q[aria-expanded="true"] .faq-icon {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* Answer panel */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
}

.faq-q[aria-expanded="true"] + .faq-a {
  max-height: 500px;
  transition: max-height 0.5s ease-in-out;
}

.faq-a-inner {
  padding-bottom: 1.5rem;
  padding-right: 3rem;
}

.faq-a-inner p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 65ch;
}

/* ============================================================
   LAUNCH CTA
   ============================================================ */
.launch {
  background-color: var(--cream-alt);
  padding-block: 0; /* handled by .launch-wrap */
}

.launch-wrap {
  position: relative;
  padding-block: var(--sec-pad);
  overflow: hidden;
}

.launch-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.25rem;
}

.launch-pre {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.launch-heading {
  font-size: clamp(3rem, 8vw, 7rem) !important;
}

.launch-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.store-btn {
  display: block;
  transition: transform 0.25s var(--ease-out), opacity 0.22s;
}

.store-btn:hover {
  transform: translateY(-4px);
  opacity: 0.82;
}

.store-btn img {
  height: 54px;
  width: auto;
}

.launch-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}

/* Decorative circle */
.launch-deco {
  position: absolute;
  bottom: -5rem;
  right: 4%;
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(30deg);
}

.launch-deco img {
  width: 300px;
  height: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--ink);
  color: var(--cream);
  padding-block: 4.5rem 3.5rem;
}

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

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.42);
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  margin-bottom: 1.25rem;
}

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

.footer-col a {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--yellow);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal--slide-right {
  transform: translateX(28px);
}

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger for feature cards via inline --stagger */
.feature-card.reveal {
  transition-delay: var(--stagger, 0s);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid,
  .app-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-visual {
    order: -1;
  }

  .app-phone {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sec-pad: clamp(3.5rem, 7vw, 5.5rem);
  }

  /* Hide desktop nav links, show toggle */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Full-width dropdown on mobile */
  .nav-right {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 3px);
    left: 0;
    right: 0;
    background-color: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--pad-x) 2rem;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.08);
  }

  .nav-right.open {
    display: flex;
  }

  .nav-right .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .nav-right .nav-links a {
    font-size: 0.875rem;
  }

  .nav-right .nav-cta {
    display: inline-flex;
  }

  /* Hero */
  .hero-line {
    font-size: clamp(1.8rem, 8vw, 3.2rem);
  }

  /* About balloon: smaller on tablet */
  .about-balloon img {
    width: 140px;
  }

  /* Features: 1 col */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* App decorations: hide on small screens */
  .phone-deco {
    display: none;
  }

  /* App grid: single column */
  .app-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: single column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .launch-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .about-balloon {
    display: none;
  }
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 20, 51, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease both;
}

.video-modal-box {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  background-color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.35s var(--ease-out) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.video-modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  transition: background-color 0.2s;
}

.video-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

/* 16:9 ratio wrapper */
.video-modal-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.video-modal-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
