/* ============================================================
   Slowfeed — calm marketing site
   Design tokens wired exactly to brief. Light + dark.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* shape + motion (theme-agnostic) */
  --radius: 18px;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 360ms;

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1300px;
  --gutter: clamp(22px, 5vw, 56px);

  /* spacing (8pt grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-8: 96px;

  /* section padding — overridden by [data-density] */
  --section-pad: clamp(80px, 11vw, 140px);
}

/* density */
:root[data-density="compact"]  { --section-pad: clamp(56px, 7vw, 92px); }
:root[data-density="regular"]  { --section-pad: clamp(56px, 8vw, 104px); }
:root[data-density="spacious"] { --section-pad: clamp(104px, 14vw, 184px); }

/* ---------- Light theme (arctic / frosted icy white) ---------- */
:root[data-theme="light"] {
  --bg: #EEF4F8;
  --bg-tint: #E4EDF3;
  --card: #FFFFFF;
  --ink: #1C2A33;
  --ink-2: #5C6B75;
  --ink-3: #93A2AC;
  --divider: #DBE5EC;
  --accent: #8FB6D4;
  --accent-ink: #143A4B;
  --field: #FFFFFF;
  --shadow: 0 1px 2px rgba(28, 42, 51, 0.04), 0 8px 30px rgba(28, 42, 51, 0.06);
  --phone-glow: rgba(110, 155, 184, 0.12);
}
:root[data-theme="light"][data-accent="whisper"] { --accent: #8FB6D4; }
:root[data-theme="light"][data-accent="sage"]    { --accent: #8FB6D4; }
:root[data-theme="light"][data-accent="deeper"]  { --accent: #8FB6D4; }

/* ---------- Dark theme (arctic night) ---------- */
:root[data-theme="dark"] {
  --bg: #14191D;
  --bg-tint: #11161A;
  --card: #1D242A;
  --ink: #E9EFF3;
  --ink-2: #8D9CA7;
  --ink-3: #67757F;
  --divider: #2A333A;
  --accent: #8FB6D4;
  --accent-ink: #11202B;
  --field: #1A2127;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.20), 0 14px 44px rgba(0, 0, 0, 0.34);
  --phone-glow: rgba(143, 182, 212, 0.10);
}
:root[data-theme="dark"][data-accent="whisper"] { --accent: #8FB6D4; }
:root[data-theme="dark"][data-accent="sage"]    { --accent: #8FB6D4; }
:root[data-theme="dark"][data-accent="deeper"]  { --accent: #8FB6D4; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--tint { background: var(--bg-tint); }

.divider-top { border-top: 1px solid var(--divider); }

/* eyebrow label */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--space-3);
}

.lede {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  max-width: 36ch;
  text-wrap: pretty;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav[data-scrolled="1"] { border-bottom-color: var(--divider); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: none;
  padding-inline: clamp(18px, 2.2vw, 34px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark__bear {
  width: 1.55em;
  height: auto;
  color: var(--accent);
  flex: none;
  position: relative;
  top: 0.04em;
}
.wordmark__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
#keeplose[data-hidden="true"] { display: none; }
.nav__right { display: flex; align-items: center; gap: var(--space-3); }
.nav__link {
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }

/* theme toggle */
.theme-toggle {
  appearance: none;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--ink-2);
  width: 38px; height: 38px;
  border-radius: var(--radius-pill);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   Buttons + form
   ============================================================ */
.btn {
  appearance: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  height: 52px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 90%, white); }
.btn--accent:active { transform: scale(0.985); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--divider);
}
.btn--ghost:hover { border-color: var(--ink-3); }

/* waitlist form */
.waitlist { max-width: 460px; }
.waitlist__row {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}
@media (max-width: 480px) {
  .waitlist__row { flex-direction: column; }
  .waitlist .btn { width: 100%; }
}
.field {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field::placeholder { color: var(--ink-3); }
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field[aria-invalid="true"] {
  border-color: var(--ink-3);
}

/* form messaging — calm, never red */
.form-note {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: var(--space-2);
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.form-note[data-show="1"] { opacity: 1; transform: none; }
.form-note__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }

.fineprint {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-top: var(--space-3);
  letter-spacing: 0.01em;
}

/* success state */
.waitlist__success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: var(--space-3) var(--space-4);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  max-width: 460px;
}
.waitlist.is-done .waitlist__form { display: none; }
.waitlist.is-done .waitlist__success { display: flex; }
.success__check {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  display: grid; place-items: center;
}
.success__check svg { width: 15px; height: 15px; }
.success__title { font-size: 1.05rem; color: var(--ink); margin-bottom: 3px; }
.success__body { font-size: 0.92rem; color: var(--ink-2); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(56px, 8vw, 92px); padding-bottom: calc(var(--section-pad) / 2); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 64px); }
}
.hero__title {
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 380;
  margin-bottom: var(--space-3);
}
.hero__sub {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  max-width: 40ch;
  margin-bottom: var(--space-5);
  text-wrap: pretty;
}

/* ============================================================
   Phone mockup (calm in-app browser — original, not Instagram)
   ============================================================ */
.phone-wrap {
  display: grid;
  place-items: center;
  position: relative;
  perspective: 1100px;
}

/* Hero phone — optional 3D product-shot tilt (toggled via Tweaks).
   Tilts the whole phone; the animation inside keeps playing on the
   tilted plane. Flat solid offset for depth — no blurry shadow.
   Desktop only, so a slight rightward bleed never scrolls mobile. */
:root[data-phone-tilt="on"] .hero__visual .phone {
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
@media (min-width: 901px) {
  /* Resting / reduced-motion end-state: the product-shot tilt. */
  :root[data-phone-tilt="on"] .hero__visual .phone {
    transform:
      rotateY(var(--tiltY, -25deg))
      rotateX(var(--tiltX, 6deg))
      scale(1.08);
    box-shadow: 26px 30px 0 -1px color-mix(in srgb, var(--accent) 16%, transparent);
  }
  /* Flat → slant: the phone starts lying flat and eases into the tilt,
     settling just before the tab-bar zoom begins. */
  @media (prefers-reduced-motion: no-preference) {
    :root[data-phone-tilt="on"] .hero__visual .phone[data-anim] {
      transform-origin: 50% 50%;
      animation: phoneSlant 1s var(--ease) 0.9s both;
    }
  }
}
@keyframes phoneSlant {
  from {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    box-shadow: 26px 30px 0 -1px color-mix(in srgb, var(--accent) 0%, transparent);
  }
  to {
    transform:
      rotateY(var(--tiltY, -25deg))
      rotateX(var(--tiltX, 6deg))
      scale(1.08);
    box-shadow: 26px 30px 0 -1px color-mix(in srgb, var(--accent) 16%, transparent);
  }
}
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 80%; height: 80%;
  background: radial-gradient(circle at 50% 40%, var(--phone-glow), transparent 70%);
  filter: blur(20px);
}
.phone {
  position: relative;
  width: 268px;
  max-width: 72vw;
  aspect-ratio: 290 / 600;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 38px;
  padding: 11px;
  box-shadow: var(--shadow);
}
.phone__screen {
  position: relative;
  height: 100%;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 5px;
  border-radius: 999px;
  background: var(--divider);
  z-index: 3;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 16px 12px;
  border-bottom: 1px solid var(--divider);
}
.app-bar__back { color: var(--ink-2); display: grid; place-items: center; }
.app-bar__back svg { width: 16px; height: 16px; }
.app-bar__mark {
  font-family: var(--font-head);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.app-bar__spacer { flex: 1; }
.app-bar__lock { color: var(--ink-3); display: grid; place-items: center; }
.app-bar__lock svg { width: 13px; height: 13px; }

.feed { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.post { display: flex; flex-direction: column; gap: 9px; }
.post__head { display: flex; align-items: center; gap: 8px; }
.post__avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); border: 1px solid var(--divider); }
.post__name { height: 8px; width: 88px; border-radius: 4px; background: var(--divider); }
.post__media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg-tint)), var(--bg-tint));
  border: 1px solid var(--divider);
}
.post__cap { height: 7px; border-radius: 4px; background: var(--divider); }
.post__cap--short { width: 55%; }

/* ============================================================
   Section heads + prose
   ============================================================ */
.head {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 22ch;
}
.head--center { margin-inline: auto; text-align: center; }
.measure { max-width: 60ch; }
.prose {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: 56ch;
  text-wrap: pretty;
}
.prose + .prose { margin-top: var(--space-3); }
.section__head-block { margin-bottom: var(--space-6); max-width: 60ch; }

/* ============================================================
   How it works — steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--space-5); } }
.step__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: var(--space-2);
  font-feature-settings: "lnum";
}
.step__title { font-size: 1.3rem; margin-bottom: var(--space-1); }
.step__body { color: var(--ink-2); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.step { position: relative; padding-top: var(--space-3); border-top: 1px solid var(--divider); }

/* ============================================================
   Keep vs Lose
   ============================================================ */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 720px) { .contrast { grid-template-columns: 1fr; } }
.panel {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}
.panel__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
}
.itemlist { display: flex; flex-direction: column; gap: var(--space-3); }
.item { display: flex; align-items: center; gap: 14px; }
.item__icon {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
}
.item__icon svg { width: 13px; height: 13px; }
.item--keep .item__icon { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.item--gone .item__icon { border: 1px solid var(--divider); color: var(--ink-3); }
.item__text { font-size: 1.1rem; color: var(--ink); }
.item--gone .item__text { color: var(--ink-3); }
.item--gone .item__text s { text-decoration-color: var(--ink-3); text-decoration-thickness: 1px; }

/* ============================================================
   Trust
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
}
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: var(--space-5); } }
.trust__icon { color: var(--ink-2); margin-bottom: var(--space-3); }
.trust__icon svg { width: 24px; height: 24px; }
.trust__title { font-size: 1.2rem; margin-bottom: 6px; }
.trust__body { color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; text-wrap: pretty; }

/* ============================================================
   Quiet lines (who / roadmap)
   ============================================================ */
.quiet {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 26ch;
  text-wrap: balance;
}
.quiet em { color: var(--ink-2); }

.roadmap { display: flex; flex-direction: column; gap: var(--space-4); max-width: 540px; }
.rm-row { display: flex; align-items: baseline; gap: var(--space-3); }
.rm-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  position: relative; top: 7px;
}
.rm-dot--now { background: var(--accent); }
.rm-dot--later { background: transparent; border: 1.5px solid var(--ink-3); }
.rm-when { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); width: 64px; flex: none; position: relative; top: 1px;}
.rm-text { color: var(--ink); font-size: 1.1rem; }
.rm-text span { color: var(--ink-2); }

/* ============================================================
   Final CTA
   ============================================================ */
.cta { text-align: center; }
.cta .waitlist { margin-inline: auto; }
.cta__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: var(--space-3); }
.cta__sub { color: var(--ink-2); font-size: 1.15rem; margin-bottom: var(--space-5); max-width: 38ch; margin-inline: auto; text-wrap: pretty; }
.cta .waitlist__success { margin-inline: auto; text-align: left; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding-block: var(--space-6); border-top: 1px solid var(--divider); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__links { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer__link { font-size: 0.92rem; color: var(--ink-2); transition: color var(--dur) var(--ease); }
.footer__link:hover { color: var(--ink); }
.footer__legal { font-size: 0.85rem; color: var(--ink-3); }

/* ============================================================
   Scroll-in motion — soft blur + rise + fade as each block enters
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3.5px);
  transition:
    opacity 760ms var(--ease),
    transform 760ms var(--ease),
    filter 760ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* word-by-word rise: only the words animate; the container stays put */
.reveal[data-reveal-words] { opacity: 1 !important; transform: none !important; filter: none !important; }
.rw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.rw__i {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 680ms var(--ease);
  will-change: transform;
}
.reveal.in .rw__i { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rw__i { transform: none; transition: none; }
}

/* ============================================================
   Waitlist modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[data-open="true"] { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #0a1014 58%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--ink-3);
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.modal__close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
}
.modal__sub {
  font-family: var(--font-body);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--space-5);
  max-width: 36ch;
}
.modal .waitlist__row { flex-direction: column; align-items: stretch; }
.modal .waitlist__row .btn { width: 100%; }

/* video modal: a wider dialog holding a 16:9 embed */
.modal__dialog--video {
  /* cap by both width and height so the 16:9 video always fits the viewport */
  width: min(900px, 100%, calc((82vh) * 16 / 9));
  padding: 0;
  background: #000;
  border-color: #000;
  overflow: hidden;
  line-height: 0;
}
/* intrinsic sizing (width:100% + height:auto) — no aspect-ratio container that
   can collapse to 0 height inside the flex modal */
.modal__dialog--video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.modal__dialog--video .modal__close {
  color: #fff;
  background: color-mix(in srgb, #000 42%, transparent);
  z-index: 2;
}
.modal__dialog--video .modal__close:hover {
  color: #fff;
  background: color-mix(in srgb, #000 62%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .modal[data-open="true"] .modal__backdrop { animation: modalFade 220ms var(--ease) both; }
  .modal[data-open="true"] .modal__dialog { animation: modalRise 320ms var(--ease) both; }
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* minimal look: flat, sharp */
:root[data-look="minimal"] .modal__dialog { border-radius: 0; box-shadow: none; }
:root[data-look="minimal"] .modal__close { border-radius: 0; }
