/* J&M Repuestos — dirección "Ficha técnica": papel blanco, tinta negra, un solo azul de acción. */
:root {
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --ink: #0b0b0c;
  --ink-2: #4a4d55;
  --ink-3: #767a84;
  --line: #e2e4e9;
  --blue: oklch(0.5 0.19 262);
  --blue-ink: oklch(0.42 0.18 262);
  --blue-soft: oklch(0.95 0.03 262);
  --ok: oklch(0.52 0.13 150);
  --ok-soft: oklch(0.95 0.04 150);
  --out: oklch(0.5 0.02 260);
  --danger: oklch(0.52 0.19 27);
  --r: 6px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.small { font-size: 0.8125rem; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.display-xl { font-size: clamp(2.6rem, 7.4vw, 6rem); font-weight: 800; font-stretch: 78%; letter-spacing: -0.035em; line-height: 0.92; }
.display-m { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; font-stretch: 80%; }
.display-s { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 82%; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0 1.25em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-wa { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-wa:hover { background: var(--blue-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26272b; }
.btn-ghost { border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-xl { min-height: 56px; font-size: 1.0625rem; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.link-arrow::after { content: ' →'; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { background: var(--ink); color: #fff; font-weight: 800; font-stretch: 75%; font-size: 1.15rem; padding: 4px 9px 5px; border-radius: 4px; letter-spacing: -0.01em; }
.logo-word { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.logo-inv .logo-mark { background: #fff; color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-reclamos { display: none; }
.header-wa { min-height: 42px; }
.menu-btn { display: none; }

/* El menú usa la Popover API en móvil; en escritorio es una barra normal. */
@media (min-width: 861px) {
  .nav[popover] { position: static; inset: auto; display: flex; padding: 0; border: 0; background: none; overflow: visible; margin: 0 0 0 auto; width: auto; height: auto; }
}
@media (max-width: 860px) {
  .header-wa span { display: none; }
  .header-wa { width: 44px; padding: 0; margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; }
  .nav[popover] { margin: 0; inset: 68px 0 auto 0; width: 100%; max-width: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; background: var(--paper); flex-direction: column; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .25); }
  .nav[popover]:not(:popover-open) { display: none; }
  .nav[popover]:popover-open { display: flex; }
  body:has(.product) .wa-float { display: none; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; color: var(--ink); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
  .nav-reclamos { display: block; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: 24px; }
.hero-figure { position: relative; aspect-ratio: 1; }
.hero-figure img { width: 100%; height: 100%; object-fit: contain; }
.callout { position: absolute; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.callout::before { content: ''; width: 38px; height: 1px; background: var(--ink); }
.callout b { color: var(--ink); font-weight: 500; }
.callout span { background: var(--paper); padding: 2px 4px; }
.c1 { top: 12%; left: 54%; }
.c2 { top: 62%; right: 76%; }
.c2::before { order: 1; }
.c3 { top: 92%; left: 40%; }
@media (max-width: 1100px) { .callout { display: none; } }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-facts div { padding: 18px 0; border-right: 1px solid var(--line); padding-right: 16px; }
.hero-facts div + div { padding-left: 20px; }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.hero-facts dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; width: 100%; margin-inline: auto; }
  .c2 { left: 0; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .hero-facts div:last-child { border-bottom: 0; }
}

/* Secciones */
.section { padding-block: clamp(48px, 8vw, 104px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin-top: 8px; }

/* Categorías */
.cats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat { background: var(--paper); text-decoration: none; padding: 24px; display: grid; grid-template-rows: auto 1fr auto; min-height: 280px; transition: background-color .2s ease; }
.cat:hover { background: var(--paper-2); }
.cat img { width: 64%; max-width: 220px; justify-self: center; align-self: center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.cat:hover img { transform: translateY(-4px) scale(1.03); }
.cat-n { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }
.cat-name { font-size: 1.6rem; font-weight: 800; font-stretch: 80%; display: flex; justify-content: space-between; align-items: baseline; }
.cat-name::after { content: '→'; color: var(--blue); font-weight: 600; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; } .cat { min-height: 200px; grid-template-columns: 1fr 120px; grid-template-rows: auto auto; } .cat img { grid-row: 1 / 3; grid-column: 2; width: 100%; } }

/* Tarjetas de producto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgb(0 0 0 / .35); transform: translateY(-2px); }
.card-media { aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 8%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.card-title { font-weight: 600; line-height: 1.3; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 800; font-size: 1.15rem; font-stretch: 85%; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 999px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.is-in { color: var(--ok); background: var(--ok-soft); }
.stock.is-out { color: var(--out); background: var(--paper-2); }

.skeleton { border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 0.72; background: linear-gradient(100deg, var(--paper-2) 30%, #fbfbfc 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Cómo comprar */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); counter-reset: s; }
.steps li { padding: 24px 24px 8px 0; counter-increment: s; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: '0' counter(s); font-family: var(--mono); color: var(--blue); font-size: .85rem; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; font-stretch: 85%; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Banda de mantenimiento */
.band { background: var(--ink); color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
.band .eyebrow { color: #a9adb6; }
.band .lead { color: #c9ccd2; margin-top: 18px; }
.band h2 em { font-style: normal; color: oklch(0.72 0.15 262); }
.band-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2c2e33; }
.band-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #2c2e33; }
.band-list span:last-child { font-family: var(--mono); font-size: .8rem; color: #a9adb6; text-align: right; }
.band .btn-ghost { border-color: #fff; color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* Catálogo */
.page-head { padding-block: clamp(32px, 5vw, 64px) 24px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 20px; position: sticky; top: 68px; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.search { flex: 1 1 280px; position: relative; }
.search input { width: 100%; min-height: 46px; padding: 0 16px 0 42px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.search input:focus { border-color: var(--ink); outline: none; }
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; color: var(--ink-3); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 500; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.results-count { padding-block: 16px; }
@media (max-width: 640px) {
  .toolbar { position: static; gap: 10px; padding-block: 14px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .pill { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: .92rem; }
  .card-foot { flex-direction: column; align-items: start; gap: 6px; }
  .price { font-size: 1.05rem; }
}
.empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 48px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 1.4rem; }

/* Ficha de producto */
.crumbs { padding-block: 20px; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: 48px; }
.gallery { position: sticky; top: 92px; }
.gallery-main { display: block; width: 100%; padding: 6%; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: zoom-in; position: relative; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-hint { position: absolute; right: 12px; bottom: 10px; color: var(--ink-3); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { width: 76px; height: 76px; flex: none; padding: 6px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; font-stretch: 80%; margin-top: 10px; }
.product-meta { color: var(--ink-2); font-size: .8rem; margin-top: 12px; }
.product-price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; font-stretch: 80%; margin-top: 22px; letter-spacing: -0.02em; }
.stock-line { display: flex; gap: 12px; align-items: center; margin: 10px 0 24px; flex-wrap: wrap; }
.cta-note { margin-top: 10px; }
.block { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.block-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); font-weight: 500; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs dt { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 500; }
.desc { white-space: pre-line; color: var(--ink-2); }
.zoom { border: 0; padding: 0; width: min(96vw, 1000px); max-height: 94vh; background: #fff; border-radius: var(--r); }
.zoom::backdrop { background: rgb(11 11 12 / .8); }
.zoom img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; padding: 4%; }
.zoom-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .gallery { position: static; } }

/* Formularios */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid, .field [aria-invalid="true"] { border-color: var(--danger); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input { accent-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: start; font-size: .9rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.notice { font-size: .85rem; color: var(--ink-2); background: var(--paper-2); border-radius: var(--r); padding: 14px 16px; }
.alert { border-radius: var(--r); padding: 14px 16px; font-weight: 500; }
.alert-error { background: oklch(0.96 0.03 27); color: var(--danger); }
.alert-ok { background: var(--ok-soft); color: oklch(0.38 0.1 150); }
.form-aside { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; align-content: start; }
.two-col { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Páginas legales */
.legal { padding-block: 32px 80px; }
.legal h2 { font-size: 1.35rem; font-stretch: 85%; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.pending { background: oklch(0.96 0.05 90); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: .85em; }
.empty-page { padding-block: 80px; display: grid; gap: 16px; }

/* Pie */
.site-footer { background: var(--ink); color: #d6d8dd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-block: 56px 40px; }
.footer-claim { margin-top: 16px; max-width: 34ch; color: #a9adb6; }
.footer-h { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8a8e98; font-weight: 500; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-list a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-list li { color: #d6d8dd; }
.reclamos-badge { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid #fff; color: #fff; text-decoration: none; padding: 10px 14px; border-radius: var(--r); font-weight: 600; min-height: 44px; }
.reclamos-badge:hover { background: #fff; color: var(--ink); }
.footer-base { border-top: 1px solid #2c2e33; padding-block: 20px 96px; color: #8a8e98; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 999px; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgb(31 79 209 / .6); transition: transform .2s ease, background-color .2s ease; }
.wa-float:hover { transform: scale(1.06); background: var(--blue-ink); }
.wa-float .ico { width: 28px; height: 28px; }

/* Entrada suave al hacer scroll (solo si el navegador lo soporta y el usuario no pidió menos movimiento). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { opacity: 0; translate: 0 24px; } }
  }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
