/* El sitio de Tinela, con los tokens de la app (docs/design/tokens.css): papel, una tinta a
   cuatro opacidades y una sola gota de rojo, la del cursor. El movimiento es CSS: el ícono se
   escribe al cargar, el cursor llega como una gota, y lo demás avanza con el scroll donde el
   navegador lo permite. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #FFFFFF;
  --ink: 29, 29, 31;
  --fg-1: rgba(var(--ink), 0.90);
  --fg-2: rgba(var(--ink), 0.62);
  --fg-3: rgba(var(--ink), 0.40);
  --fg-4: rgba(var(--ink), 0.10);
  --fill: rgba(var(--ink), 0.045);
  --accent: #CC4B32;
  --shadow: 0 30px 80px rgba(15, 20, 30, 0.14), 0 2px 8px rgba(15, 20, 30, 0.06);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --measure: 580px;
  --wide: 1040px;
  --ease-quiet: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141416;
    --ink: 245, 245, 247;
    --accent: #FF7A5C;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--fg-1);
  font-family: var(--serif);
  font-weight: 350;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(204, 75, 50, 0.16); }

a { color: inherit; text-decoration-color: var(--fg-4); text-underline-offset: 3px; }
/* Los nombres de la app y de sus controles, en la tinta plena y apenas más gruesos. */
strong { font-weight: 500; color: var(--fg-1); }
a:hover { text-decoration-color: var(--fg-2); }

.wrap { width: 100%; max-width: calc(var(--wide) + 56px); margin: 0 auto; padding: 0 28px; }

/* ---------- Portada ---------- */

/* Un poco menos que la pantalla: el comienzo de la primera escena se asoma abajo. */
.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 128px;
}

/* La invitación a bajar: una pluma que cae meciéndose. Cada tramo se escribe tras el anterior,
   frena en la punta como un péndulo y se apaga en el mismo orden. */
.cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 46px;
  height: 94px;
  margin-left: -23px;
  overflow: visible;
}

.cue path {
  fill: none;
  stroke-width: 0.65;
  stroke-linecap: round;
  stroke-dasharray: 1 1.1;
  animation: fall 4.2s 2.7s infinite both;
}

.cue path:nth-child(1) { stroke: rgba(var(--ink), 0.9); }
.cue path:nth-child(2) { stroke: rgba(var(--ink), 0.74); animation-delay: 3.12s; }
.cue path:nth-child(3) { stroke: rgba(var(--ink), 0.58); animation-delay: 3.54s; }
.cue path:nth-child(4) { stroke: rgba(var(--ink), 0.42); animation-delay: 3.96s; }
.cue path:nth-child(5) { stroke: rgba(var(--ink), 0.28); animation-delay: 4.38s; }
.cue path:nth-child(6) { stroke: rgba(var(--ink), 0.14); animation-delay: 4.8s; }

@keyframes fall {
  /* Un poco más que 1: con 1 justo, el borde del trazo asoma como un punto antes de escribirse. */
  0% { stroke-dashoffset: 1.05; opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  10%, 70% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.hero-inner { max-width: var(--measure); }

h1 {
  font-weight: 300;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: 48px;
}

.sign {
  margin-top: 14px;
  font-weight: 350;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--fg-2);
}

.platforms {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-3);
}

/* El botón oficial de Apple va aquí: `badge-es.svg` y `badge-en.svg`, sin modificarlos. */
.badge { display: inline-block; margin-top: 36px; line-height: 0; }
.badge img { height: 48px; width: auto; }

/* El ícono, escribiéndose: los renglones de un punto a su largo y después el cursor, que llega
   como una gota de tinta. */
.mark { position: relative; width: 132px; height: 82px; }

.mark i {
  position: absolute;
  left: 0;
  height: 12px;
  border-radius: 6px;
  background: rgba(var(--ink), 0.9);
  animation: write 0.55s var(--ease-quiet) both;
}

.mark i:nth-child(1) { top: 0; width: 132px; animation-delay: 0.4s; }
.mark i:nth-child(2) { top: 29px; width: 132px; background: rgba(var(--ink), 0.62); animation-delay: 0.88s; }
.mark i:nth-child(3) { top: 58px; width: 90px; background: rgba(var(--ink), 0.4); animation-delay: 1.36s; animation-duration: 0.4s; }


.caret {
  background: var(--accent);
  animation: appear 0s 1.9s both, blink 1.06s steps(1) 1.9s infinite;
}

.mark b {
  position: absolute;
  left: 100px;
  top: 45px;
  width: 7px;
  height: 36px;
  animation: blink 1.06s steps(1) 2.5s infinite;
}

.mark b::before,
.mark b::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transform-origin: 50% 100%;
}

/* La gota cae desde arriba de los renglones y se aplasta donde va el cursor. Tinta, no agua: sin
   rebote ni salpicadura. */
.mark b::before {
  left: -3px;
  bottom: 0;
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  animation: drop 0.7s 1.8s both;
}

/* El cursor se levanta de la mancha. */
.mark b::after {
  inset: 0;
  border-radius: 4px;
  animation: stand 0.26s 2.28s var(--ease-quiet) both;
}

@keyframes drop {
  0% { transform: translateY(-112px) scale(0.5); opacity: 0; }
  /* La caída acelera, como con la gravedad, y la gota se estira un poco. */
  6% { transform: translateY(-112px) scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  60% { transform: translateY(0) scale(0.82, 1.3); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  72% { transform: translateY(0) scale(1.75, 0.45); opacity: 1; animation-timing-function: var(--ease-quiet); }
  100% { transform: translateY(0) scale(0.5, 0.3); opacity: 0; }
}

@keyframes stand {
  0% { transform: scale(1.8, 0.15); opacity: 0; }
  1% { opacity: 1; }
}

@keyframes write { from { width: 12px; opacity: 0; } }
@keyframes appear { from { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Escenas: texto a un lado, la app al otro ---------- */

.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 24px 0;
}

.scene.flip { grid-template-columns: auto minmax(0, 1fr); }
.scene.flip .copy { order: 2; }

.copy { max-width: 380px; position: relative; z-index: 1; }

h2 {
  font-weight: 320;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.copy p { margin-top: 16px; color: var(--fg-2); }

/* La fecha grande, sobre el título del Diario. */
/* Del ancho del texto: entra de lado, y con el ancho de la columna su borde salía de la
   pantalla. En el iPhone eso dejaba mover la página de lado hasta que la fecha llegaba. */
.ghost {
  width: fit-content;
  margin-bottom: 28px;
  font-weight: 250;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.03em;
  color: rgba(var(--ink), 0.22);
  pointer-events: none;
  user-select: none;
}

/* ---------- El teléfono ---------- */

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 620px;
  border-radius: 46px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.screen { padding: 64px 26px 26px; height: 100%; position: relative; }

.kicker { font-family: var(--sans); font-size: 10px; color: var(--fg-3); }
.date { font-weight: 320; font-size: 28px; line-height: 1.15; margin-top: 2px; }
.moment { margin-top: 22px; }
.moment .name { font-weight: 350; font-size: 18px; line-height: 1.25; margin-top: 2px; }
.moment .echo { color: var(--fg-2); font-size: 13px; margin-top: 2px; }
.moment .hint { color: var(--fg-3); font-size: 13px; font-style: italic; margin-top: 2px; }

.tabs {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(var(--ink), 0.05);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.tabs span { padding: 6px 16px; border-radius: 999px; color: var(--fg-2); }
.tabs span:first-child { background: var(--paper); color: var(--fg-1); }

.place { font-family: var(--sans); font-size: 10px; color: var(--fg-3); margin-top: 6px; }

.mosaic { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3px; margin: 16px -26px 0; height: 150px; }
.mosaic span:nth-child(1) { background: linear-gradient(180deg, #9db7c9 0%, #c9d7d3 42%, #5f7a55 43%, #3f5435 100%); }
.mosaic span:nth-child(2) { background: linear-gradient(160deg, #e8edee 0%, #b8c6c5 45%, #44513b 46%, #6f7d4a 100%); }

.text { margin-top: 18px; font-size: 14px; line-height: 1.6; }
.text span { display: block; }
.caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: -0.15em; margin-left: 1px; border-radius: 1px; }

.question { font-weight: 330; font-size: 22px; line-height: 1.2; }
.words { margin-top: 16px; font-size: 16px; line-height: 1.9; color: var(--fg-2); }
.words span { margin-right: 10px; transition: color 0.3s; }
.words .chosen { color: var(--fg-1); text-decoration: underline; text-decoration-color: var(--fg-3); text-underline-offset: 4px; }
.follow { margin-top: 18px; font-weight: 350; font-size: 16px; }
.follow + .echo { color: var(--fg-2); font-size: 13px; margin-top: 4px; }

/* ---------- El selector iPhone · iPad · Mac ---------- */

.device { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.device > input { position: absolute; opacity: 0; pointer-events: none; }

/* Un equipo grande adelante y otro chico. Con el teléfono adelante, el Mac queda chico y atrás;
   con el Mac o el iPad adelante, el teléfono queda chico, delante de su esquina. El tercero no
   se ve. */
.stage { position: relative; width: 640px; height: 620px; }

.stage .phone, .stage .mac, .stage .ipad {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform 0.8s var(--ease-quiet), opacity 0.8s var(--ease-quiet), box-shadow 0.8s var(--ease-quiet);
}

.stage .mac { display: grid; z-index: 1; transform: translate(-50%, -50%) translate(-150px, -150px) scale(0.56); opacity: 0.75; cursor: pointer; }
.stage .ipad { display: grid; z-index: 1; transform: translate(-50%, -50%) translate(-150px, -150px) scale(0.5); opacity: 0; pointer-events: none; }
.stage .phone { z-index: 2; transform: translate(-50%, -50%) translate(120px, 0) scale(1); }

.to-mac:checked ~ .stage .mac,
.to-ipad:checked ~ .stage .ipad { transform: translate(-50%, -50%) translate(-10px, -40px) scale(1); opacity: 1; cursor: default; pointer-events: auto; }
.to-mac:checked ~ .stage .phone,
.to-ipad:checked ~ .stage .phone { transform: translate(-50%, -50%) translate(250px, 170px) scale(0.5); cursor: pointer; }
.to-ipad:checked ~ .stage .mac { opacity: 0; pointer-events: none; }

.to-iphone:checked ~ .stage .mac:hover { transform: translate(-50%, -50%) translate(-150px, -150px) scale(0.59); opacity: 0.9; }
.to-mac:checked ~ .stage .phone:hover,
.to-ipad:checked ~ .stage .phone:hover { transform: translate(-50%, -50%) translate(250px, 170px) scale(0.53); }

.switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.switch label { padding: 5px 16px; border-radius: 999px; color: var(--fg-3); cursor: pointer; user-select: none; }
.switch label:hover { color: var(--fg-2); }
.to-iphone:checked ~ .switch .for-iphone,
.to-ipad:checked ~ .switch .for-ipad,
.to-mac:checked ~ .switch .for-mac { background: var(--paper); color: var(--fg-1); box-shadow: 0 1px 3px rgba(15, 20, 30, 0.12); }
.device > input:focus-visible ~ .switch { outline: 2px solid var(--fg-3); outline-offset: 3px; }

/* ---------- La ventana del Mac ---------- */

.mac {
  width: 620px;
  height: 412px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  grid-template-columns: 140px 190px 1fr;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.mac-side { background: rgba(var(--ink), 0.035); padding: 12px 10px; font-family: var(--sans); }
.dots { display: flex; gap: 6px; margin: 2px 0 22px 4px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-4); }
.mac-side .row { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 6px; color: var(--fg-2); font-size: 12px; }
.mac-side .row small { color: var(--fg-3); font-size: 11px; }
.mac-side .row.on { background: rgba(var(--ink), 0.075); color: var(--fg-1); }
.mac-side .gap { height: 10px; }

.mac-list { padding: 18px 16px; border-right: 1px solid var(--fg-4); overflow: hidden; }
.mac-list .title { font-weight: 330; font-size: 20px; line-height: 1.2; margin-top: 2px; }
.mac-list .moment { margin-top: 12px; }
.mac-list .moment .name { font-size: 14px; }
.mac-list .moment .echo, .mac-list .moment .hint { font-size: 11px; }
.mac-list .moment.on { margin-left: -8px; margin-right: -8px; padding: 2px 8px 4px; border-radius: 6px; background: rgba(var(--ink), 0.075); }
.mac-list .day { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--fg-4); font-size: 12px; }
.mac-list .day:first-of-type { border-top: 0; }
.mac-list .day.on { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; border-top-color: transparent; background: rgba(var(--ink), 0.075); }
.mac-list .day.on + .day { border-top-color: transparent; }
.mac-list .day b { font-family: var(--sans); font-weight: 400; font-size: 10px; color: var(--fg-3); width: 34px; flex: none; padding-top: 2px; }
.mac-list .day span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mac-page { padding: 28px 26px; overflow: hidden; }
.mac-page .date { font-size: 24px; }
.mac-page .question { font-size: 18px; }
.mac-page .hint { color: var(--fg-3); font-style: italic; font-size: 12px; margin-top: 4px; }
.mac-page .field { margin-top: 16px; font-size: 14px; }
.mac-page .mosaic { margin: 12px -26px 0; height: 110px; }
.mac-page .text { font-size: 13px; }
.mac-page .words { font-size: 13px; line-height: 1.8; margin-top: 10px; }
.mac-page .words span { margin-right: 8px; }
.mac-page .follow { font-size: 14px; margin-top: 12px; }

/* ---------- El iPad ----------
   Las mismas columnas que el Mac, en otro marco: más redondo, sin ventana, y la lateral flotante
   de vidrio de iPadOS 26. */

.ipad {
  width: 600px;
  height: 430px;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  grid-template-columns: 150px 180px 1fr;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.ipad-side {
  margin: 10px 0 10px 10px;
  padding: 12px 8px;
  border-radius: 20px;
  background: rgba(var(--ink), 0.04);
  box-shadow: inset 0 0 0 1px rgba(var(--ink), 0.05);
  font-family: var(--sans);
}

.ipad-side .glass {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 0 16px 2px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(15, 20, 30, 0.12);
}

.ipad-side .row { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 999px; color: var(--fg-2); font-size: 12px; }
.ipad-side .row small { color: var(--fg-3); font-size: 11px; }
.ipad-side .row.on { background: rgba(var(--ink), 0.075); color: var(--fg-1); }
.ipad-side .gap { height: 10px; }

.ipad .mac-list { border-right: 0; }

/* ---------- El archivo ---------- */

.file {
  position: relative;
  z-index: 1;
  width: 440px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.file-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fg-4);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-2);
}

.file-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-4); }
.file-bar b { font-weight: 500; margin-left: 8px; }

.file pre {
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-2);
  white-space: pre-wrap;
}

.file pre > span { display: block; }
.file pre .key { color: var(--fg-3); }

/* ---------- Lo que queda: privado, precio, descarga ---------- */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  margin-top: 48px;
  padding: 72px 0;
  border-top: 1px solid var(--fg-4);
}

.facts h3 { font-weight: 350; font-size: 22px; line-height: 1.3; }
.facts p { margin-top: 8px; color: var(--fg-2); }

.end { padding: 96px 0 48px; text-align: center; }
.end .mark { margin: 0 auto; }
.end h2 { margin-top: 36px; }

/* ---------- Páginas de texto: privacidad y soporte ---------- */

main.page { width: 100%; max-width: calc(var(--measure) + 56px); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.page { padding-top: 96px; padding-bottom: 48px; }
.page h1 { margin-top: 0; font-size: clamp(30px, 5vw, 38px); }
.page h2 { margin-top: 40px; font-size: 22px; font-weight: 350; }
.page p, .page ul { margin-top: 12px; color: var(--fg-2); }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 6px; }

.page .back { font-family: var(--sans); font-size: 14px; color: var(--fg-3); text-decoration: none; }

/* ---------- Pie ---------- */

/* El mismo en todas las páginas: el de la portada, centrado. */
footer {
  width: 100%;
  max-width: calc(var(--wide) + 56px);
  margin: 0 auto;
  padding: 40px 28px 64px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-3);
  text-align: center;
}

footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--fg-2); }
footer nav a[aria-current="page"] { color: var(--fg-1); }
footer p { margin-top: 12px; }

/* ---------- Pantallas más angostas ---------- */

@media (max-width: 1100px) {
  .stage { zoom: 0.8; }
}

/* Desde aquí no caben lado a lado: el texto arriba, los equipos abajo. */
@media (max-width: 960px) {
  .scene, .scene.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; justify-items: center; }
  .scene.flip .copy { order: 0; }
  .copy { width: 100%; max-width: 560px; }
  .stage { zoom: 1; }
}

@media (max-width: 760px) {
  .stage { zoom: 0.52; }

  .file { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- El movimiento con el scroll ----------
   Donde el navegador lo permite (Safari 26, Chrome): cada escena entra cuando aparece, el
   teléfono va más rápido que el texto y la fecha del Diario llega de lado. Sin soporte, todo
   queda en su lugar final. */

@supports (animation-timeline: view()) {
  .cue {
    animation: vanish linear both;
    animation-timeline: scroll(root);
    animation-range: 0 160px;
  }

  .hero-inner {
    animation: lift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }

  .copy {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  .stage, .file {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  .ghost {
    animation: slow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 50%;
  }

  /* Hoy: los momentos aparecen uno tras otro. */
  .today .moment {
    animation: rise linear both;
    animation-timeline: --today;
  }
  .today { view-timeline: --today; }
  .today .m1 { animation-range: entry 40% cover 30%; }
  .today .m2 { animation-range: entry 55% cover 36%; }
  .today .m3 { animation-range: entry 70% cover 42%; }
  .today .m4 { animation-range: entry 85% cover 48%; }

  /* El Diario: el texto se escribe renglón por renglón. */
  .diary { view-timeline: --diary; }
  .diary .text span {
    animation: type linear both;
    animation-timeline: --diary;
  }
  .diary .text span:nth-child(1) { animation-range: cover 22% cover 32%; }
  .diary .text span:nth-child(2) { animation-range: cover 32% cover 42%; }
  .diary .text span:nth-child(3) { animation-range: cover 42% cover 52%; }
  .diary .text span:nth-child(4) { animation-range: cover 52% cover 60%; }

  /* Cómo estás: las demás palabras se apagan y queda una. */
  .mood { view-timeline: --mood; }
  .mood .words span:not(.chosen) {
    animation: dim linear both;
    animation-timeline: --mood;
    animation-range: cover 30% cover 45%;
  }
  .mood .words .chosen, .mood .follow, .mood .follow + .echo {
    animation: rise linear both;
    animation-timeline: --mood;
    animation-range: cover 38% cover 50%;
  }
  .mood .words .chosen { animation-name: choose; }

  /* El archivo: las líneas aparecen como si se abriera. */
  .files { view-timeline: --files; }
  .file pre > span {
    display: block;
    animation: rise linear both;
    animation-timeline: --files;
  }
  .file pre > span:nth-child(1) { animation-range: cover 25% cover 32%; }
  .file pre > span:nth-child(2) { animation-range: cover 28% cover 35%; }
  .file pre > span:nth-child(3) { animation-range: cover 31% cover 38%; }
  .file pre > span:nth-child(4) { animation-range: cover 34% cover 41%; }
  .file pre > span:nth-child(5) { animation-range: cover 37% cover 44%; }
  .file pre > span:nth-child(6) { animation-range: cover 40% cover 47%; }
  .file pre > span:nth-child(7) { animation-range: cover 43% cover 50%; }
  .file pre > span:nth-child(8) { animation-range: cover 46% cover 53%; }
}

@keyframes vanish { to { opacity: 0; } }
@keyframes lift { to { transform: translateY(-80px); opacity: 0.2; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } }
@keyframes drift { from { transform: translateY(90px); } to { transform: translateY(-90px); } }
@keyframes slow { from { transform: translateX(8%); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dim { to { color: var(--fg-3); } }
@keyframes choose { from { text-decoration-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Quieto, el cursor ya está y la gota no. */
  .mark b::before { display: none; }
}
