/* =========================================================
   K-Dating Landing Page — v2
   Mood: Dynamic Colorful
   Stack: Vanilla CSS (Custom Properties, Flex/Grid)
========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Design tokens ---------- */
:root {
  --pink: #ff4d8d;
  --pink-soft: #ffd1e0;
  --purple: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --mint: #34d399;
  --yellow: #fbbf24;
  --orange: #fb923c;

  --ink-900: #0f0b1e;
  --ink-700: #2c2240;
  --ink-500: #5b5275;
  --ink-300: #9991ac;
  --ink-100: #efeaf7;
  --paper: #ffffff;
  --cream: #faf7ff;

  --grad-primary: linear-gradient(135deg, var(--pink) 0%, var(--purple) 55%, var(--cyan) 100%);
  --grad-pink: linear-gradient(135deg, #ff6fa7 0%, #ff4d8d 100%);
  --grad-purple: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  --grad-cyan: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);

  --shadow-sm: 0 2px 6px rgba(16, 12, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 12, 40, 0.10);
  --shadow-lg: 0 30px 80px rgba(16, 12, 40, 0.15);
  --shadow-phone: 0 40px 80px rgba(50, 20, 90, 0.25);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-sans: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Apple SD Gothic Neo',
               'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 14px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: #fff;
  border-bottom-color: rgba(16, 12, 40, 0.06);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { height: 32px; }
.nav__menu {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  color: var(--ink-700);
}
.nav__menu a { position: relative; }
.nav__menu a:hover { color: var(--pink); }

/* Language switcher button (opens modal dialog) */
.nav__lang-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-pill);
  transition: background .18s ease;
  letter-spacing: 0.04em;
}
.nav__lang-btn:hover { background: rgba(139, 92, 246, 0.16); }
.nav__lang-btn svg { width: 16px; height: 16px; }
.nav__lang-current { letter-spacing: 0; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 900px) {
  .nav__menu { display: flex; }
  .nav__lang-btn { margin-left: 0; }
}

/* Language dialog (searchable modal) */
.lang-dialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lang-dialog.is-open { display: flex; animation: video-modal-fade .18s ease-out; }
.lang-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.lang-dialog__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.lang-dialog__head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(16, 12, 40, 0.06);
}
.lang-dialog__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.lang-dialog__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  transition: background .15s ease, color .15s ease;
}
.lang-dialog__close:hover { background: rgba(16, 12, 40, 0.06); color: var(--ink-900); }
.lang-dialog__search-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(16, 12, 40, 0.06);
}
.lang-dialog__search {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(16, 12, 40, 0.06);
  font: inherit;
  font-size: 14px;
  color: var(--ink-900);
  transition: border-color .15s ease, background .15s ease;
}
.lang-dialog__search::placeholder { color: var(--ink-300); }
.lang-dialog__search:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--purple) 50%, transparent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.lang-dialog__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-dialog__item { margin: 0; }
.lang-dialog__item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.lang-dialog__item a:hover { background: rgba(139, 92, 246, 0.08); color: var(--purple); }
.lang-dialog__item a[aria-current="page"] {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  font-weight: 700;
}
.lang-dialog__item-native { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-dialog__item-english {
  font-size: 11px;
  color: var(--ink-300);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.lang-dialog__item a[aria-current="page"] .lang-dialog__item-english { color: var(--purple); opacity: 0.7; }
.lang-dialog__check { flex-shrink: 0; color: var(--purple); }
.lang-dialog__item--hidden { display: none; }
.lang-dialog__empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-500);
  font-size: 14px;
  display: none;
}
.lang-dialog.is-empty .lang-dialog__empty { display: block; }
.lang-dialog.is-empty .lang-dialog__list { display: none; }

/* RTL adjustments for Arabic */
html[dir="rtl"] .nav__menu,
html[dir="rtl"] .hero__copy,
html[dir="rtl"] .pillar__copy,
html[dir="rtl"] .footer__col { text-align: right; }
html[dir="rtl"] .shots__rail { direction: ltr; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn--primary {
  color: #fff;
  background: var(--grad-primary);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius-md);
  background: var(--ink-900);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
  min-width: 180px;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.store-btn__icon { flex: 0 0 auto; display: inline-flex; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; gap: 5px; }
.store-btn__text small { font-size: 11px; opacity: .75; }
.store-btn__text strong { font-size: 16px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 96px) var(--gutter) clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #fff7fb 0%, #f4ecff 55%, #e7f8ff 100%);
}
.hero__blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  /* animation: float 18s ease-in-out infinite; -- disabled: causes flickering with blur(80px) */
}
.blob--pink { background: var(--pink); top: -120px; left: -120px; }
.blob--purple { background: var(--purple); top: 30%; right: -140px; animation-delay: -6s; }
.blob--cyan { background: var(--cyan); bottom: -140px; left: 30%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero__overline {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 10px;
}
.hero__sub {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 16px;
  color: var(--ink-500);
  max-width: 560px;
  margin-bottom: 24px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn-group { display: flex; gap: 12px; flex-wrap: nowrap; }

@media (max-width: 899px) {
  .hero { background: linear-gradient(180deg, #fafaff 0%, #f5f2fc 100%); }
  .hero__blobs { display: none; }
  .hero__desc { color: var(--ink-700); }
}

@media (max-width: 399px) {
  .store-btn-group { flex-wrap: wrap; }
}

.hero__device { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(320px, 80%);
  aspect-ratio: 1290 / 2796;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  background: #000;
  transition: transform .4s ease;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone--tilt { transform: rotate(-3deg) translateY(0); }
.phone--tilt:hover { transform: rotate(-3deg) translateY(-8px); }

/* ---------- Pillars ---------- */
.pillars { display: flex; flex-direction: column; }
.pillar {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  overflow: hidden;
  color: #fff;
}
.pillar--pink { background: linear-gradient(135deg, #ff4d8d 0%, #ff8ab8 60%, #a78bfa 100%); }
.pillar--purple { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #c084fc 100%); }
.pillar--cyan { background: linear-gradient(135deg, #22d3ee 0%, #34d399 100%); color: var(--ink-900); }

.pillar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
}
@media (min-width: 900px) {
  .pillar__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .pillar--reverse .pillar__inner > .pillar__copy { order: 2; }
  .pillar--reverse .pillar__inner > .pillar__device { order: 1; }
}

.pillar__kicker {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.pillar--cyan .pillar__kicker { background: rgba(15, 11, 30, 0.1); color: var(--ink-700); }

.pillar__title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.pillar__desc {
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 520px;
  opacity: 0.95;
}
.pillar__device { display: flex; justify-content: center; }
.pillar .phone { width: min(300px, 80%); }

/* ---------- Features ---------- */
.features { padding: clamp(80px, 10vw, 140px) var(--gutter); text-align: center; background: var(--cream); }
.features__head { max-width: 720px; margin: 0 auto 60px; }
.features__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1.5px solid rgba(16, 12, 40, 0.06);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent, var(--pink)) 45%, transparent);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--card-accent, var(--pink)) 20%, transparent);
}
.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  background: var(--card-accent, var(--pink));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--card-accent, var(--pink)) 35%, transparent);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.feature-card:hover .feature-card__icon { transform: rotate(-8deg) scale(1.04); }
.feature-card__icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--ink-500); font-size: 15px; }

.feature-card--pink   { --card-accent: var(--pink); }
.feature-card--purple { --card-accent: var(--purple); }
.feature-card--cyan   { --card-accent: var(--cyan); }
.feature-card--yellow { --card-accent: var(--yellow); }
.feature-card--green  { --card-accent: var(--mint); }
.feature-card--orange { --card-accent: var(--orange); }

/* ---------- Screenshots ---------- */
.shots { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.shots__head {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
  text-align: center;
}
.shots__hint { color: var(--ink-300); font-size: 14px; margin-top: 14px; }

.shots__viewport {
  position: relative;
  max-width: 100%;
}

.shots__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.shots__arrow:hover { background: var(--ink-900); color: #fff; transform: translateY(-50%) scale(1.06); }
.shots__arrow:disabled { opacity: 0.0; cursor: not-allowed; pointer-events: none; }
.shots__arrow--prev { left: 16px; }
.shots__arrow--next { right: 16px; }

@media (min-width: 900px) {
  .shots__arrow { display: inline-flex; }
}

.shots__rail {
  display: flex;
  gap: 28px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: 10px;
  padding-bottom: 0px;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.shots__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.shots__rail::-webkit-scrollbar { width: 0; height: 0; display: none; }

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0;
  width: 260px;
  text-align: center;
}
.shot .phone { width: 100%; box-shadow: none; }
.shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

@media (min-width: 900px) {
  .shot { width: 300px; }
}

/* ---------- Benefits ---------- */
.benefits { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--cream); }
.benefits__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.benefits__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.benefit {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit__emoji { font-size: 32px; line-height: 1; }
.benefit p { font-weight: 600; color: var(--ink-700); font-size: 15px; }

/* ---------- Final CTA ---------- */
.cta {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center;
  background: linear-gradient(135deg, #fff7fb 0%, #f4ecff 50%, #e7f8ff 100%);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.25), transparent 60%);
  filter: blur(30px);
}
.cta__inner { max-width: 720px; margin: 0 auto; position: relative; }
.cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.cta p { color: var(--ink-500); font-size: 17px; margin-bottom: 30px; }
.cta .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: #cbc5dc;
  padding: 60px var(--gutter) 30px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 30px; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer__col a {
  display: block;
  font-size: 14px;
  color: #9991ac;
  margin-bottom: 10px;
  transition: color .15s ease;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #6e6687;
  text-align: center;
}
.footer__bottom a { color: #cbc5dc; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Video CTA button ---------- */
.store-btn--video {
  background: var(--grad-primary);
}
.store-btn--video:hover { box-shadow: 0 14px 32px rgba(255, 77, 141, 0.45); }

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal.is-open { display: flex; animation: video-modal-fade .2s ease-out; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 25, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}
.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.video-modal__close:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.06); }

@keyframes video-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.is-modal-open { overflow: hidden; }

/* ---------- Reduced motion ---------- */
/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.scroll-top.is-visible {
  opacity: 1.0;
  pointer-events: auto;
  transform: translateY(0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255), var(--shadow-md);
}
.scroll-top:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
}
