@font-face {
  font-family: 'Cormorant';
  src: url('assets/fonts/cormorant.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat.woff2') format('woff2');
  font-weight: 300 600;
  font-display: swap;
}

:root {
  /* Brand palette (logo y paleta de colores) */
  --cream: #FAF7EF; /* matches logo.webp background */
  --cream-2: #EFE8D8;
  --olive: #4A5226;
  --olive-deep: #2F3418;
  --gold: #C29A55;
  --gold-text: #8A6424; /* AA on cream */
  --wine: #6B1E23;
  --ink: #1F1C17;
  --muted: #5C5648;
  --line: rgba(74, 82, 38, .18);

  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: min(1160px, 100% - 2.5rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--olive); margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--olive); color: var(--cream); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--olive); color: var(--cream); border: 1px solid var(--olive);
  font: 500 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--olive-deep); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: .65rem 1.2rem; font-size: .74rem; }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--cream); }
.btn--light { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); }
.link { color: var(--olive); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link:hover { color: var(--gold-text); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(1.25rem, (100% - 1160px) / 2);
  background: rgba(250, 247, 239, .94);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: var(--cream); box-shadow: 0 12px 30px -24px rgba(31, 28, 23, .5); }
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__brand img { width: 18px; }
.nav__brand span { font: 500 1.35rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.nav__links { display: none; gap: 2rem; }
.nav__links a { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--olive); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.lang {
  min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--olive); font: 600 .75rem/1 var(--sans); letter-spacing: .12em; cursor: pointer;
}
.lang:hover { border-color: var(--olive); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* Hero */
.hero {
  width: var(--wrap); margin: 0 auto; min-height: calc(100svh - 66px);
  display: grid; gap: 2.5rem; align-items: center; padding: 2.5rem 0 4rem;
}
.hero__logo { width: min(340px, 78%); margin: 0 auto 1.5rem; }
.hero__text { text-align: center; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-style: italic; font-weight: 400; }
.hero__lead { color: var(--muted); max-width: 34rem; margin: 0 auto 2rem; font-size: 1.05rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; }
.hero__media { margin: 0; position: relative; max-width: 460px; justify-self: center; width: 100%; }
.hero__media::before {
  content: ''; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--gold);
  border-radius: 999px 999px var(--radius) var(--radius);
}
.arch { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; position: relative; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero__text { text-align: left; }
  .hero__logo { margin: 0 0 1.75rem; }
  .hero__lead { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }
}

/* Origin */
.origin { position: relative; overflow: hidden; min-height: 640px; display: grid; align-items: end; padding: 2rem 1.25rem; isolation: isolate; }
.origin__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.origin::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(31, 28, 23, .45)); }
.origin__card {
  width: min(560px, 100%); margin: 0 auto; background: var(--cream); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: 0 30px 60px -30px rgba(31, 28, 23, .45);
}
.origin__card > p:not(.eyebrow) { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.facts dd { margin: .2rem 0 0; font: 500 1.2rem/1.2 var(--serif); color: var(--olive); }
@media (min-width: 900px) { .origin { min-height: 720px; padding: 4rem; } .origin__card { margin: 0 0 0 max(0px, (100% - 1160px) / 2); } }

/* Sections */
.section { width: var(--wrap); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 3.5rem; }
.section__head--left { text-align: left; margin: 0 0 2rem; }
.section__head p:not(.eyebrow) { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0 0 6rem; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { background: var(--cream); padding: 2rem 1.6rem; transition: background .3s var(--ease); }
.steps li:hover { background: var(--cream-2); }
.steps__n { display: block; font: italic 400 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 1rem; }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }

.pillars { display: grid; gap: 3rem; align-items: center; }
.pillars__img { overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.pillars__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.pillars__list li { padding-left: 1.5rem; border-left: 2px solid var(--gold); }
.pillars__list p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .pillars { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }

/* Roasts */
.roasts { padding-top: 0; }
.roasts__grid { display: grid; gap: 1.25rem; }
.roast {
  position: relative; background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.25rem 2rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.roast:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(31, 28, 23, .35); }
.roast p { color: var(--muted); margin: 0; }
.roast__swatch { display: block; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 1.5rem; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .25); }
.roast__swatch--1 { background: #8B5A2B; }
.roast__swatch--2 { background: #5E3A1C; }
.roast__swatch--3 { background: #3A2412; }
.roast .roast__tag {
  position: absolute; top: 1.4rem; right: 1.4rem; margin: 0; padding: .35rem .8rem; border-radius: 999px;
  background: var(--wine); color: var(--cream); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
}
@media (min-width: 800px) { .roasts__grid { grid-template-columns: repeat(3, 1fr); } }

/* Products */
.products { display: grid; gap: 3rem; align-items: center; border-top: 1px solid var(--line); }
.products__media { overflow: hidden; border-radius: var(--radius); }
.products__media img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.prices { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.prices li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.25rem;
  padding: 1rem 1rem 1rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFDF8;
}
.prices__size { font: 500 1.6rem/1 var(--serif); color: var(--olive); }
.prices__amount { font-weight: 500; letter-spacing: .04em; }
.note { color: var(--muted); font-size: .88rem; margin: 0 0 .5rem; }
.note--accent { color: var(--wine); font-weight: 500; }
@media (min-width: 900px) { .products { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* Quote */
.quote {
  background: var(--olive-deep); color: var(--cream); text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 1.25rem;
  display: flex; flex-direction: column; align-items: center;
}
.quote img { width: 44px; margin-bottom: 2rem; }
.quote blockquote { margin: 0; max-width: 46rem; }
.quote blockquote p { font: italic 400 clamp(1.8rem, 4.2vw, 3rem)/1.25 var(--serif); margin: 0 0 1.5rem; text-wrap: balance; }
.quote__sub { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; margin-bottom: 2.5rem; }

/* Gallery */
.gallery h2 a { text-decoration: none; }
.gallery h2 a:hover { color: var(--gold-text); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery__grid a { overflow: hidden; border-radius: var(--radius); display: block; }
.gallery__grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.gallery__grid a:hover img { transform: scale(1.05); }
@media (min-width: 800px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

/* Footer */
.footer { background: var(--cream); text-align: center; padding: 5rem 1.25rem 2.5rem; border-top: 1px solid var(--line); }
.footer__logo { width: 220px; margin: 0 auto 2rem; }
.contact { list-style: none; padding: 0; margin: 2rem auto 3rem; display: grid; gap: 1.5rem; max-width: 960px; }
.contact li { display: grid; gap: .3rem; }
.contact span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); }
.contact a { color: var(--olive); font: 500 1.25rem/1.3 var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { color: var(--wine); }
.footer__small { font-size: .78rem; color: var(--muted); margin: 0; }
@media (min-width: 800px) { .contact { grid-template-columns: 1fr auto 1fr; gap: 3rem; } }

/* "Coming soon" roast */
.roast--soon { background: transparent; border-style: dashed; }
.roast--soon .roast__swatch { opacity: .4; }
.roast--soon h3 { color: var(--muted); }
.roast .roast__tag--soon { background: transparent; color: var(--gold-text); border: 1px solid var(--gold); }

/* ───────── Ornament & micro-interactions (static, always on) ───────── */
.hero { position: relative; }
.hero::before {
  content: ''; position: absolute; z-index: -1; width: 46vmax; aspect-ratio: 1; left: -18vmax; top: -10vmax;
  background: radial-gradient(closest-side, rgba(194, 154, 85, .16), transparent); border-radius: 50%;
}
.scroll-cue { display: none; }
@media (min-width: 900px) {
  .scroll-cue { display: block; position: absolute; left: 50%; bottom: 1rem; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
  .scroll-cue::after { content: ''; position: absolute; inset: 0; background: var(--gold); translate: 0 -100%; }
}

.marquee {
  overflow: hidden; padding: 1.5rem 0; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__track span { font: italic 400 clamp(1.5rem, 3vw, 2.3rem)/1 var(--serif); color: var(--olive); white-space: nowrap; display: inline-flex; align-items: center; }
.marquee__track span::after { content: '✦'; font-style: normal; font-size: .55em; color: var(--gold); margin: 0 2.2rem; }

.eyebrow { display: inline-flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; transform-origin: 0 50%; }

.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; translate: -110% 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
  transition: translate .8s var(--ease-out, ease);
}
.btn:hover::after { translate: 110% 0; }

.nav__links a { position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); scale: 0 1; transform-origin: right; transition: scale .45s cubic-bezier(.16, 1, .3, 1); }
.nav__links a:hover::after { scale: 1 1; transform-origin: left; }

.roast__swatch { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.roast:hover .roast__swatch { transform: rotate(35deg) scale(1.12); }
.steps__n { transition: color .4s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.steps li:hover .steps__n { color: var(--wine); transform: translateX(6px); }
.prices li { transition: border-color .3s, transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; }
.prices li:hover { border-color: var(--gold); transform: translateX(6px); box-shadow: 0 18px 30px -26px rgba(31, 28, 23, .5); }

.quote { position: relative; overflow: hidden; isolation: isolate; }
.quote::after { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--olive-deep); }
.quote::before {
  content: ''; position: absolute; z-index: -1; width: 70vmax; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(194, 154, 85, .22), transparent 70%); border-radius: 50%;
}

/* Language switch: View Transitions API cross-fade (≤350ms per ui-ux-pro-max page-transition guidance) */
::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ───────── Motion ─────────
   ui-ux-pro-max guidance: expo-out easing, small offsets, mask reveals on short headlines only,
   parallax on background layers only, final readable state under reduced motion.
   Pure CSS (keyframes + scroll-driven timelines): zero JS, zero dependencies.
   Keyframes animate individual `translate`/`scale`/`rotate` so hover `transform`s still compose. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.progress { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* ── On load ── */
  .hero__logo { animation: bloom 1.6s var(--ease-out) both; }
  .hero__title { animation: mask-up 1.3s var(--ease-out) .2s both; }
  .hero__lead { animation: rise 1.1s var(--ease-out) .45s both; }
  .hero__ctas { animation: rise 1.1s var(--ease-out) .6s both; }
  .hero__media .arch { animation: unveil 1.8s var(--ease-out) .15s both, breathe 16s ease-in-out 2s infinite alternate; }
  .hero__media::before { animation: frame 1.6s var(--ease-out) .8s both; }
  .hero::before { animation: float 18s ease-in-out infinite alternate; }
  .scroll-cue { animation: rise 1s var(--ease-out) 1.2s both; }
  .scroll-cue::after { animation: cue 2.4s cubic-bezier(.65, 0, .35, 1) 1.6s infinite; }
  .marquee__track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .quote::before { animation: float 22s ease-in-out infinite alternate; }

  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
  @keyframes bloom { from { opacity: 0; scale: .92; } }
  @keyframes mask-up { from { clip-path: inset(-.3em -.3em 100% -.3em); translate: 0 .5em; opacity: 0; } to { clip-path: inset(-.3em); } }
  @keyframes unveil { from { clip-path: inset(100% 0 0 0); scale: 1.15; } to { clip-path: inset(0); scale: 1; } }
  @keyframes breathe { from { scale: 1; } to { scale: 1.06; } }
  @keyframes frame { from { opacity: 0; translate: -18px 18px; } }
  @keyframes float { from { translate: 0 0; } to { translate: 6vmax 4vmax; } }
  @keyframes cue { 0% { translate: 0 -100%; } 60%, 100% { translate: 0 100%; } }
  @keyframes marquee { to { translate: -50% 0; } }

  @supports (animation-timeline: view()) {
    /* Reading progress + nav firming up */
    .progress {
      display: block; position: fixed; inset: 0 0 auto; height: 2px; z-index: 60;
      background: linear-gradient(90deg, var(--gold), var(--wine));
      transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(root);
    }
    @keyframes grow { from { scale: 0 1; } to { scale: 1 1; } }
    .nav::before { animation: fade-in linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
    @keyframes fade-in { to { opacity: 1; } }

    /* Generic reveal + extra elements revealed without markup changes */
    .reveal, .footer__logo, .footer h2, .contact li, .quote__sub, .quote .btn, .note {
      animation: reveal var(--ease-out) both; animation-timeline: view(); animation-range: entry 5% cover 28%;
    }
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } }

    /* Headlines rise out of a mask */
    .section__head h2, .origin__card h2, .footer h2 {
      animation: heading var(--ease-out) both; animation-timeline: view(); animation-range: entry 10% cover 32%;
    }
    /* Eyebrow rule draws itself */
    .eyebrow { view-timeline: --eyebrow; }
    .eyebrow::before { animation: draw var(--ease-out) both; animation-timeline: --eyebrow; animation-range: entry 0% cover 30%; }
    @keyframes draw { from { scale: 0 1; } }
    @keyframes heading { from { opacity: 0; translate: 0 .6em; } }

    /* Staggers for items that share a row */
    .steps li:nth-child(2), .roasts__grid > :nth-child(2), .prices li:nth-child(2), .gallery__grid > :nth-child(2), .pillars__list li:nth-child(2), .contact li:nth-child(2), .facts > :nth-child(2) { animation-range: entry 12% cover 34%; }
    .steps li:nth-child(3), .roasts__grid > :nth-child(3), .prices li:nth-child(3), .gallery__grid > :nth-child(3), .pillars__list li:nth-child(3), .contact li:nth-child(3), .facts > :nth-child(3) { animation-range: entry 19% cover 40%; }
    .steps li:nth-child(4), .gallery__grid > :nth-child(4) { animation-range: entry 26% cover 46%; }
    .steps li:nth-child(5) { animation-range: entry 33% cover 52%; }

    /* Step numerals drop in after their card */
    .steps__n { animation: drop var(--ease-out) both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    @keyframes drop { from { opacity: 0; translate: 0 -16px; } }

    /* Origin: card glides up over a slow parallax valley; facts stagger in */
    .origin__card { animation: glide var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes glide { from { opacity: 0; translate: 0 90px; } }
    .facts > div { animation: reveal var(--ease-out) both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .origin__bg { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { translate: 0 -8%; scale: 1.2; } to { translate: 0 8%; scale: 1.2; } }

    /* Photos rise out of their frames; gallery zooms out into place */
    .wipe img { animation: emerge var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .gallery__grid img { animation: settle-in var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes settle-in { from { scale: 1.3; opacity: .3; } }
    @keyframes emerge { from { scale: 1.25; opacity: 0; } }

    /* Roast beans spin into place; price rows slide in from the side */
    .roast__swatch { animation: spin-in var(--ease-out) both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    @keyframes spin-in { from { opacity: 0; rotate: -140deg; scale: .3; } }
    .prices li { animation-name: slide-in; }
    @keyframes slide-in { from { opacity: 0; translate: 48px 0; } }

    /* Hero drifts away as you leave it */
    .hero__media { animation: lift linear both; animation-timeline: view(); animation-range: exit; }
    @keyframes lift { to { translate: 0 -70px; opacity: .5; } }

    /* Quote: the dark panel opens to full width, the icon descends, the line comes into focus */
    .quote { background: transparent; }
    .quote::after { animation: open var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes open { from { scale: .88 1; } }
    .quote img { animation: rise var(--ease-out) both; animation-timeline: view(); animation-range: entry 15% cover 38%; }
    .quote blockquote { animation: focus var(--ease-out) both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
    @keyframes focus { from { opacity: 0; scale: .94; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
