/*
Theme Name: Fewer Rooms
Theme URI: https://fewer-rooms.labs.fabrica.studio
Author: fabrica Studio
Author URI: https://fabrica.studio/
Description: Block theme for Fewer Rooms — small country houses in Spain, booked direct from the owner. One lit window: the ochre is a light with a source, and everything that has depth is lit from it. Exported to static HTML for production.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Version: 1.0.0
License: Unlicensed (private concept project)
Text Domain: fewer-rooms
*/

/* =====================================================================
   1. Tokens — from concepts/slow-stays/design.md (OKLCH, roles)
   ===================================================================== */
:root {
  --stone:     oklch(26% 0.014 62);          /* ground: dark stone */
  --stone-2:   oklch(30% 0.016 62);          /* surface: the sheet */
  --stone-3:   oklch(33.5% 0.018 62);        /* surface: row hover */
  --photo:     oklch(35% 0.024 58);          /* hero placeholder: lit stone */
  --night:     oklch(17% 0.010 60);          /* near-black band */
  --light:     oklch(93% 0.020 84);          /* ink: warm light */
  --light-2:   oklch(74% 0.018 80);          /* ink, secondary */
  --ochre:     oklch(73% 0.135 74);          /* signal: the one lit window */
  --ochre-2:   oklch(78% 0.130 76);          /* signal, hover */
  --ochre-ink: oklch(20% 0.030 70);          /* ink on ochre */
  --pane:      oklch(90% 0.110 86);          /* the lit pane itself */
  --sill:      oklch(28% 0.025 60);          /* mullion of the hero window */
  --rule:      oklch(93% 0.020 84 / 0.14);   /* hairline on stone */
  --rule-ochre: oklch(73% 0.135 74 / 0.55);  /* table head rule */
  --edge:      oklch(93% 0.020 84 / 0.18);   /* 1px light edge on the sheet */
  --shadow:    oklch(12% 0.030 60 / 0.85);   /* the one shadow colour */

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --overlap: 88px;                            /* how far the sheet rises into the photo */
  --measure: 78rem;                           /* the page's own wide size */

  /* scale: 17px base, ratio 1.333 */
  --s-0: 0.8125rem;  --s-1: 1.0625rem; --s-2: 1.4375rem; --s-3: 1.875rem;
  --s-4: 2.5rem;     --s-5: 3.375rem;  --s-6: 4.5rem;    --s-7: 6rem;

  --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px;
  --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-36: 144px;

  --radius-block: 0;
  --radius-control: 2px;
  --shadow-sheet: -28px 56px 80px -24px var(--shadow), -6px 12px 24px -10px var(--shadow);
  --shadow-cta: 0 14px 32px -10px oklch(73% 0.135 74 / 0.55);
  --motion: 150ms;

  --window-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2.75h10v18.5H7zM12 2.75v18.5M7 11.75h10' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Crect x='12.75' y='3.5' width='3.5' height='7.5' fill='%23fff'/%3E%3C/svg%3E");
  --ashlar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='180'%3E%3Cg fill='%23eee7d9' fill-opacity='.22'%3E%3Crect x='60' width='160' height='60'/%3E%3Crect x='140' y='60' width='160' height='60'/%3E%3Crect y='120' width='100' height='60'/%3E%3C/g%3E%3Cpath d='M0 .5H360M0 60.5H360M0 120.5H360M60.5 0V60M220.5 0V60M140.5 60V120M300.5 60V120M100.5 120V180M250.5 120V180' fill='none' stroke='%23eee7d9'/%3E%3C/svg%3E");
  --ashlar-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='180'%3E%3Cg fill='%23eee7d9' fill-opacity='.011'%3E%3Crect x='60' width='160' height='60'/%3E%3Crect x='140' y='60' width='160' height='60'/%3E%3Crect y='120' width='100' height='60'/%3E%3C/g%3E%3Cpath d='M0 .5H360M0 60.5H360M0 120.5H360M60.5 0V60M220.5 0V60M140.5 60V120M300.5 60V120M100.5 120V180M250.5 120V180' fill='none' stroke='%23eee7d9' stroke-opacity='.048'/%3E%3C/svg%3E");
}

/* =====================================================================
   2. Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--light);
  font: 400 var(--s-1)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--ochre); color: var(--ochre-ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 10; left: var(--gutter); top: 8px;
  transform: translateY(-200%);
  padding: 10px 16px; background: var(--ochre); color: var(--ochre-ink);
  font-weight: 600; text-decoration: none; border-radius: var(--radius-control);
}
.skip:focus { transform: none; }

/* small caps of the serif: data */
.sc {
  font-family: var(--display);
  font-variant-caps: small-caps;
  font-variation-settings: "opsz" 12;
  font-weight: 600;
  letter-spacing: 0.035em;
}

/* the glyph set: one stroke, butt caps, one lit pane each */
.glyph { display: inline-block; width: 24px; height: 24px; flex: none; }
.glyph path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; }
.glyph rect { fill: currentColor; }
.mark { width: 18px; height: 18px; color: var(--ochre); vertical-align: -0.14em; margin-right: 0.45em; }

.wrap { max-width: var(--measure); margin-inline: auto; }

/* the block canvas wraps everything in one flow group; the sections space themselves.
   .prose keeps the flow spacing, because legal copy needs it. */
.wp-site-blocks > * { margin-block-start: 0; }
.main:not(.prose) > *,
.main:not(.prose) .wp-block-post-content > * { margin-block-start: 0; }

/* a section's own glyph, ahead of its heading */
.sec-mark { width: 26px; height: 26px; color: var(--light-2); vertical-align: -0.2em; margin-right: 0.45em; }

/* =====================================================================
   3. Header — wordmark + numbered index of sections
   ===================================================================== */
.site {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--sp-6);
  padding: 22px var(--gutter);
}
.wordmark {
  font-family: var(--display);
  font-size: 1.375rem; font-weight: 500;
  font-variation-settings: "opsz" 9, "SOFT" 60;
  letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; align-items: baseline; gap: 28px; }
.index { margin: 0; }
.index ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; counter-reset: sec; }
.index li { counter-increment: sec; }
.index a,
.lang a {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.index a::before {
  content: counter(sec);
  font-family: var(--display);
  font-variation-settings: "opsz" 9;
  font-weight: 500; font-size: 0.9375rem;
  color: var(--ochre);
}
.index a:hover, .lang a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.lang { display: inline-flex; align-items: baseline; gap: 28px; }
.lang::before { content: ""; width: 1px; height: 0.9em; background: var(--rule); align-self: center; }
.lang a { color: var(--light-2); }

/* interior pages: the nav sits on a stone bar, not on a photo */
body:not(.front) .site {
  position: static;
  background: var(--stone);
  border-bottom: 1px solid var(--rule);
}

/* =====================================================================
   4. Hero — the photo as a surface. One window, its light, dusk, ashlar.
      (CSS placeholder: the curated dusk photo was rejected, see CREDITS.md)
   ===================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  --wx: 77%; --wy: 52%;
  --core: 8vw 7vw; --spill: 30vw 36vw; --pool: 34vw 8vw;
  --beam-top: 1.6%; --beam-bottom: 14%; --beam-lean: 4%; --beam-blur: 10px; --beam-a: 0.60;
  background-color: var(--photo);
  background-image:
    radial-gradient(var(--core) at var(--wx) var(--wy), oklch(88% 0.10 84 / 0.6) 0%, oklch(80% 0.12 80 / 0.38) 22%, oklch(73% 0.135 74 / 0.2) 48%, oklch(66% 0.12 68 / 0.08) 76%, transparent 100%),
    radial-gradient(var(--spill) at var(--wx) calc(var(--wy) + 8%), oklch(73% 0.135 74 / 0.24) 0%, oklch(70% 0.13 70 / 0.14) 30%, oklch(62% 0.11 64 / 0.06) 58%, oklch(50% 0.08 58 / 0.02) 82%, transparent 100%),
    radial-gradient(var(--pool) at calc(var(--wx) - 2%) calc(var(--wy) + 24%), oklch(73% 0.135 74 / 0.12) 0%, oklch(66% 0.12 66 / 0.05) 50%, transparent 100%),
    radial-gradient(120% 95% at 50% 45%, transparent 46%, oklch(15% 0.014 60 / 0.55) 100%),
    linear-gradient(180deg, oklch(30% 0.026 252 / 0.75) 0%, oklch(34% 0.020 252 / 0.3) 24%, transparent 46%),
    linear-gradient(0deg, oklch(19% 0.016 60 / 0.8) 0%, oklch(22% 0.016 60 / 0.4) 26%, transparent 52%);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 110px var(--gutter) calc(52px + var(--overlap));
}
.beam {
  position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: calc(var(--wy) + 2%); bottom: 12%;
  filter: blur(var(--beam-blur));
}
.beam i {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(180deg,
    oklch(86% 0.12 84 / 0.75) 0%,
    oklch(86% 0.12 84 / 0.75) 4%,
    oklch(82% 0.125 82 / var(--beam-a)) 5%,
    oklch(76% 0.13 78 / calc(var(--beam-a) * 0.57)) 18%,
    oklch(70% 0.13 72 / calc(var(--beam-a) * 0.26)) 42%,
    oklch(60% 0.10 64 / calc(var(--beam-a) * 0.1)) 68%,
    transparent 86%);
  clip-path: polygon(
    calc(var(--wx) - var(--beam-top)) 0,
    calc(var(--wx) + var(--beam-top)) 0,
    calc(var(--wx) + var(--beam-bottom) - var(--beam-lean)) 100%,
    calc(var(--wx) - var(--beam-bottom) - var(--beam-lean)) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.02;
  background-image: var(--ashlar);
  background-size: 1080px 540px;
}
.window {
  position: absolute; z-index: -1;
  left: var(--wx); top: var(--wy);
  width: 20px; height: 30px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--sill), var(--sill)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--sill), var(--sill)) 0 50% / 100% 2px no-repeat,
    var(--pane);
  box-shadow:
    0 0 0 1px oklch(45% 0.06 70 / 0.9),
    0 0 6px 1px oklch(88% 0.12 84 / 0.8),
    0 0 28px 3px oklch(78% 0.13 78 / 0.42),
    0 0 110px 14px oklch(73% 0.135 74 / 0.2);
}
.slug {
  grid-row: 1; align-self: start; justify-self: end;
  margin: 0; padding-top: 8px; max-width: 30ch;
  font-size: 0.75rem; line-height: 1.4; color: var(--light-2); text-align: right;
}
.lead { grid-row: 2; max-width: 64rem; }
.hero h1 {
  margin: 0 0 var(--sp-8);
  font-family: var(--display);
  font-size: clamp(2.875rem, 8vw, 7.5rem);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  line-height: 0.94; letter-spacing: -0.022em;
}
.sub {
  margin: 0; max-width: 44ch;
  font-family: var(--display);
  font-variation-settings: "opsz" 24;
  font-weight: 300; letter-spacing: -0.005em;
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  line-height: 1.4; text-wrap: pretty;
}
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-8); margin-top: var(--sp-8); }
.micro { margin: 0; font-size: 1rem; color: var(--light-2); }

.cta {
  display: inline-block;
  padding: 13px 22px 14px;
  background: var(--ochre); color: var(--ochre-ink);
  border: 0; border-radius: var(--radius-control);
  font-family: var(--text); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  box-shadow:
    inset 0 1px 0 oklch(96% 0.05 88 / 0.55),
    inset 0 -1px 0 oklch(50% 0.12 70 / 0.35),
    var(--shadow-cta);
  transition: background-color var(--motion) linear, box-shadow var(--motion) linear;
}
.cta:hover {
  background: var(--ochre-2);
  box-shadow:
    inset 0 1px 0 oklch(97% 0.05 88 / 0.6),
    inset 0 -1px 0 oklch(50% 0.12 70 / 0.35),
    0 16px 36px -10px oklch(78% 0.130 76 / 0.7);
}

/* =====================================================================
   5. Signature — the editorial index, a sheet laid on the stone
   ===================================================================== */
.list { position: relative; z-index: 2; margin-top: calc(-1 * var(--overlap)); padding: 0 var(--gutter); }
/* el solape es el signature: la hoja sube dentro de la foto. Va con la misma
   especificidad que el reset de flujo de arriba, que si no se lo come. */
.main .wp-block-post-content > .list { margin-block-start: calc(-1 * var(--overlap)); }
.sheet {
  position: relative; isolation: isolate;
  max-width: var(--measure); margin-inline: auto;
  background-color: var(--stone-2);
  background-image: radial-gradient(46% 38% at 100% 0%, oklch(73% 0.135 74 / 0.04), transparent 72%);
  border-top: 1px solid var(--edge);
  box-shadow: var(--shadow-sheet);
  padding: 0 clamp(20px, 3.8vw, 56px) 8px;
}
.scroll { overflow-x: clip; }
.list table { width: 100%; border-collapse: collapse; caption-side: top; counter-reset: house; }
.list caption { text-align: left; padding: 44px 0 30px; }
.list caption b {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: var(--s-3); line-height: 1.15;
}
.list caption span {
  display: block; max-width: 56ch; color: var(--light-2);
  font-family: var(--display); font-variation-settings: "opsz" 24;
  font-weight: 300; letter-spacing: -0.005em;
}
.list th, .list td { padding: 22px 0; text-align: left; vertical-align: baseline; }
.list th + th, .list td + td { padding-left: var(--sp-6); }
.list thead th {
  font-size: 0.9375rem; color: var(--light-2);
  border-bottom: 1px solid var(--rule-ochre);
  box-shadow: 0 8px 16px -8px oklch(73% 0.135 74 / 0.45);   /* the rule is a line of light */
  padding-top: 0; padding-bottom: 12px;
}
.list tbody tr { border-bottom: 1px solid var(--rule); transition: background-color var(--motion) linear; }
.list tbody tr:hover { background: var(--stone-3); }
.house {
  position: relative;
  font-family: var(--display); font-size: 2.125rem; font-weight: 400;
  font-variation-settings: "SOFT" 30; line-height: 1.1; letter-spacing: -0.012em;
}
/* the row numbers live in a gutter inside the sheet: outside it the .scroll box clips them */
.list thead th:first-child, .list td.house { padding-left: 2.6rem; }
.house::before {
  counter-increment: house; content: counter(house);
  position: absolute; left: 0; top: 26px;
  width: 1.8rem; text-align: right;
  font-size: 0.9375rem; line-height: 1;
  font-variation-settings: "opsz" 9; font-weight: 500; letter-spacing: 0;
  color: var(--ochre);
}
.house a { text-decoration: none; }
.house a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; text-decoration-color: var(--ochre); }
.where { font-size: 1.125rem; color: var(--light-2); }
.n {
  font-family: var(--display);
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "opsz" 24;
  font-size: var(--s-2); text-align: right; white-space: nowrap;
}
.list th.n { text-align: right; }
.list td.n .cur { font-size: 0.72em; color: var(--light-2); margin-right: 0.15em; }
col.c-house { width: 38%; } col.c-where { width: 30%; }
col.c-sleeps { width: 12%; } col.c-from { width: 20%; }

.sheet-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4) var(--sp-8);
  padding: 22px 0 26px;
}
.sheet-foot p { margin: 0; font-size: 0.9375rem; color: var(--light-2); max-width: 52ch; }
.stage {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--light-2);
}
.stage::before {
  content: ""; width: 10px; height: 15px; flex: none;
  background: var(--light-2);
  -webkit-mask-image: var(--window-mask); mask-image: var(--window-mask);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 0.75;
}

/* =====================================================================
   6. How you get the keys — three steps hung off one hairline
   ===================================================================== */
.how { padding: var(--sp-24) var(--gutter) var(--sp-16); }
.how h2, .listing h2, .faq h2, .access h2 {
  margin: 0 0 var(--sp-12);
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: var(--s-4); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 20ch;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-12); }
}
.steps li { padding-top: 26px; border-top: 1px solid var(--rule); position: relative; }
.steps li::before {                     /* the tick on the line: where this step sits */
  content: ""; position: absolute; left: 0; top: -1px; width: 34px; height: 2px;
  background: var(--ochre);
  box-shadow: 0 0 12px 1px oklch(73% 0.135 74 / 0.45);
}
.steps b {
  display: block; margin-bottom: 10px;
  font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 30;
  font-size: var(--s-2); letter-spacing: -0.01em;
}
.steps b i {
  font-style: normal; font-variation-settings: "opsz" 9; font-weight: 500;
  font-size: 0.9375rem; color: var(--ochre); margin-right: 0.55em;
  font-variant-numeric: tabular-nums lining-nums;
}
.steps p { margin: 0; color: var(--light-2); max-width: 34ch; }

/* =====================================================================
   7. What there isn't — night band, ashlar at very low contrast
   ===================================================================== */
.terms {
  position: relative; isolation: isolate;
  background: var(--night);
  padding: var(--sp-24) var(--gutter) calc(var(--sp-24) + 24px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6); row-gap: var(--sp-12);
}
.terms::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--ashlar-faint), radial-gradient(60vw 42vw at 100% 0%, oklch(73% 0.135 74 / 0.07), transparent 70%);
  background-size: 360px 180px, auto;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.25));
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.25));
}
.terms h2 {
  grid-column: 1 / 5; margin: 0; padding: 30px 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: flex-start; gap: 48px;
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: var(--s-4); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 14ch; text-wrap: balance;
}
.terms h2::after {                       /* the motif, unlit: here the list ends */
  content: ""; display: block; flex: none; margin-top: auto;
  width: 40px; height: 40px; background-color: var(--light-2);
  -webkit-mask-image: var(--window-mask); mask-image: var(--window-mask);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.terms dl { grid-column: 5 / 13; margin: 0; }
.terms dl > div {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-6); padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.terms dl > div:last-child { border-bottom: 1px solid var(--rule); }
.terms dt { display: flex; align-items: center; gap: 12px; color: var(--light-2); font-size: 1.0625rem; padding-top: 0.35em; }
.terms dt .glyph { width: 26px; height: 26px; }
.terms dd {
  margin: 0;
  font-family: var(--display); font-weight: 350; font-variation-settings: "SOFT" 20;
  font-size: clamp(1.4375rem, 2.4vw, 2rem); line-height: 1.22; letter-spacing: -0.008em;
  max-width: 28ch; text-wrap: pretty;
}

/* =====================================================================
   8. What the listing tells you — a torn strip of a listing, on the sheet
   ===================================================================== */
.listing { padding: var(--sp-24) var(--gutter); }
.listing .wrap { display: grid; gap: var(--sp-12); align-items: start; }
@media (min-width: 1000px) {
  .listing .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: var(--sp-16); }
}
.listing h2 { margin-bottom: var(--sp-6); }
.lede {
  margin: 0; max-width: 34ch;
  font-family: var(--display); font-variation-settings: "opsz" 24;
  font-weight: 300; letter-spacing: -0.005em;
  font-size: clamp(1.125rem, 1.5vw, 1.4375rem); line-height: 1.4; color: var(--light-2);
}
.strip {
  background-color: var(--stone-2);
  background-image: radial-gradient(46% 38% at 100% 0%, oklch(73% 0.135 74 / 0.04), transparent 72%);
  border-top: 1px solid var(--edge);
  box-shadow: var(--shadow-sheet);
  padding: clamp(20px, 2.6vw, 34px) clamp(20px, 3vw, 40px) clamp(18px, 2.4vw, 30px);
}
.strip .label { margin: 0 0 var(--sp-4); font-size: 0.9375rem; color: var(--light-2); }
.strip ul { list-style: none; margin: 0; padding: 0; }
.strip li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--rule);
  font-family: var(--display); font-weight: 350; font-variation-settings: "SOFT" 20;
  font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.25; letter-spacing: -0.008em;
}
.strip li .glyph { width: 26px; height: 26px; color: var(--light-2); align-self: flex-start; position: relative; top: 2px; }
.strip .close {
  margin: 0; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); justify-content: space-between; align-items: baseline;
  font-size: 0.9375rem; color: var(--light-2);
}
.strip .close a { color: var(--light); text-decoration-color: var(--ochre); text-underline-offset: 0.18em; }

/* =====================================================================
   9. FAQ — two columns of hairline rows
   ===================================================================== */
.faq { padding: 0 var(--gutter) var(--sp-24); }
.faq dl { margin: 0; display: grid; gap: 0 var(--sp-16); }
@media (min-width: 1000px) { .faq dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq dl > div { padding: 26px 0; border-top: 1px solid var(--rule); }
.faq dt {
  margin: 0 0 8px;
  font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 30;
  font-size: var(--s-2); line-height: 1.2; letter-spacing: -0.01em;
}
.faq dd { margin: 0; color: var(--light-2); max-width: 46ch; }

/* =====================================================================
   10. Request access — the form, inline in the page, on the stone
   ===================================================================== */
.access { padding: 0 var(--gutter) var(--sp-24); }
.access .wrap {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-12);
  display: grid; gap: var(--sp-8);
}
@media (min-width: 1000px) {
  .access .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-16); }
}
.access h2 { margin-bottom: var(--sp-4); }
.access .body { margin: 0 0 var(--sp-4); max-width: 38ch; color: var(--light-2); }
.fields { display: grid; gap: var(--sp-4); align-content: start; }
.field { margin: 0; display: grid; gap: 6px; }
.field label { font-size: 0.9375rem; color: var(--light-2); }
.field .help { font-size: 0.875rem; color: var(--light-2); margin: 0; }
.field input {
  width: 100%;
  font: 400 var(--s-1)/1.4 var(--text);
  color: var(--light); background: var(--stone);
  border: 1px solid var(--edge); border-radius: var(--radius-control);
  padding: 12px 14px;
  transition: border-color var(--motion) linear, box-shadow var(--motion) linear;
}
.field input::placeholder { color: var(--light-2); opacity: 0.62; }
.field input:hover { border-color: oklch(93% 0.020 84 / 0.32); }
.field input:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-color: transparent; }
.fields .cta { justify-self: start; margin-top: var(--sp-2); }
.privacy { margin: 0; font-size: 0.875rem; color: var(--light-2); max-width: 44ch; }
.sent { margin: 0; }
.sent > span {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--rule); color: var(--light); font-size: 0.9375rem;
}
.sent > span[hidden] { display: none; }
.sent .pane {
  flex: none; width: 9px; height: 13px; margin-top: 0.3em;
  background: var(--ochre); box-shadow: 0 0 10px 1px oklch(73% 0.135 74 / 0.6);
}

/* =====================================================================
   11. Footer — the long version, on the night
   ===================================================================== */
.foot {
  background: var(--night);
  padding: var(--sp-16) var(--gutter) var(--sp-12);
  border-top: 1px solid var(--rule);
}
.foot .wrap { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .foot .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: var(--sp-16); }
}
.foot .blurb {
  margin: 0; max-width: 46ch;
  font-family: var(--display); font-variation-settings: "opsz" 24;
  font-weight: 300; letter-spacing: -0.005em;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.4;
}
.foot .cols { display: grid; gap: var(--sp-6); align-content: start; }
@media (min-width: 560px) { .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot h2 { margin: 0 0 10px; font-family: var(--text); font-size: 0.875rem; font-weight: 600; color: var(--light-2); letter-spacing: 0.02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.foot a { color: var(--light); text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.foot a:hover { text-decoration-color: var(--ochre); }
.foot .fine {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-8);
  margin: 0; padding-top: var(--sp-6); border-top: 1px solid var(--rule);
  font-size: 0.875rem; color: var(--light-2);
}
.foot .fine p { margin: 0; }

/* =====================================================================
   12. Interior pages: the house listing, legal prose, 404
   ===================================================================== */
.photo {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--photo);
}
.photo img { display: block; width: 100%; height: clamp(300px, 52svh, 620px); object-fit: cover; object-position: 55% 34%; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(120% 95% at 50% 45%, transparent 44%, oklch(15% 0.014 60 / 0.6) 100%),
    linear-gradient(180deg, oklch(15% 0.014 60 / 0.6) 0%, oklch(15% 0.014 60 / 0.2) 16%, transparent 30%),
    linear-gradient(0deg, oklch(19% 0.016 60 / 0.92) 0%, oklch(22% 0.016 60 / 0.5) 24%, transparent 56%);
}
.photo figcaption {
  position: absolute; right: var(--gutter); top: 18px; z-index: 2;
  max-width: 30ch; text-align: right;
  font-size: 0.75rem; line-height: 1.4; color: var(--light-2);
}
.house-head { padding: var(--sp-12) var(--gutter) var(--sp-8); }
.house-head h1 {
  margin: 0 0 var(--sp-4);
  font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 0.98; letter-spacing: -0.02em;
}
.house-head .facts-line {
  margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  color: var(--light-2);
}
.house-head .facts-line > span { display: inline-flex; align-items: center; gap: 9px; }
.house-head .facts-line > span + span { border-left: 1px solid var(--rule); padding-left: 18px; }
.house-head .facts-line .glyph { width: 22px; height: 22px; }
.house-head .stage { margin: 0 0 22px; }
.house-body .micro .glyph { width: 20px; height: 20px; vertical-align: -0.28em; margin-right: 6px; }
.house-body { padding: 0 var(--gutter) var(--sp-16); }
.house-body .wrap { display: grid; gap: var(--sp-12); }
@media (min-width: 1000px) { .house-body .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: var(--sp-16); align-items: start; } }
.house-body h2 {
  margin: 0 0 var(--sp-4);
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: var(--s-3); line-height: 1.15; letter-spacing: -0.01em;
}
.house-body p { margin: 0 0 var(--sp-6); max-width: 46ch; color: var(--light-2); }
.house-body .block { padding-top: var(--sp-8); border-top: 1px solid var(--rule); }
.facts { width: 100%; border-collapse: collapse; }
.facts caption { text-align: left; padding: 0 0 var(--sp-4); color: var(--light-2); font-size: 0.9375rem; }
.facts th, .facts td { text-align: left; vertical-align: baseline; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts th {
  width: 13rem; font-weight: 400; color: var(--light-2);
  display: table-cell;
}
.facts th span { display: inline-flex; align-items: center; gap: 10px; }
.facts th .glyph { width: 22px; height: 22px; }
.facts td { padding-left: var(--sp-6); }
.house-body .wrap > .tail { grid-column: 1 / -1; padding-top: var(--sp-8); border-top: 1px solid var(--rule); }
.gallery { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .gallery { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: clamp(220px, 27vw, 400px); object-fit: cover; }
.tail .close { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-6); }
.tail .close p { margin: 0; }
.gallery figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--light-2); }
.calendar {
  margin-top: var(--sp-4); padding: var(--sp-8);
  border: 1px dashed var(--rule); color: var(--light-2);
  display: flex; align-items: center; gap: 14px;
}
.calendar .glyph { width: 26px; height: 26px; }

/* legal / plain pages */
.prose { padding: var(--sp-16) var(--gutter) var(--sp-24); }
.prose > * { max-width: 42rem; margin-inline: auto; }
.prose h1 { font-size: var(--s-5); margin: 0 0 var(--sp-8); letter-spacing: -0.02em; }
.prose h2 { font-family: var(--display); font-style: italic; font-weight: 300; font-size: var(--s-3); margin: var(--sp-12) 0 var(--sp-4); }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: var(--s-2); margin: var(--sp-8) 0 var(--sp-3); }
.prose p, .prose li { color: var(--light-2); }
.prose a { color: var(--light); text-decoration-color: var(--ochre); text-underline-offset: 0.18em; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-6) auto; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.prose th { color: var(--light); font-weight: 600; font-size: 0.9375rem; }
.prose figure { margin: var(--sp-6) auto; }

/* the empty state: the window, unlit */
.empty { padding: var(--sp-16) var(--gutter) var(--sp-24); }
.empty .wrap { max-width: 46rem; border-top: 1px solid var(--rule); padding-top: var(--sp-8); display: flex; gap: var(--sp-8); align-items: flex-start; }
.empty .unlit {
  flex: none; width: 44px; height: 66px; background: var(--light-2); opacity: 0.8;
  -webkit-mask-image: var(--window-mask); mask-image: var(--window-mask);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.empty p { margin: 0 0 var(--sp-4); max-width: 44ch; font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 24; font-size: var(--s-2); line-height: 1.35; }

/* 404 */
.gone {
  background: var(--night); min-height: 76svh;
  padding: var(--sp-24) var(--gutter);
  display: grid; align-content: center; justify-items: start;
  gap: var(--sp-6);
}
.gone .unlit {
  width: 80px; height: 120px; background: var(--light-2); opacity: 0.75;
  -webkit-mask-image: var(--window-mask); mask-image: var(--window-mask);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  margin-bottom: var(--sp-6);
}
.gone h1 {
  margin: 0; font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.02em;
}
.gone p { margin: 0; max-width: 40ch; color: var(--light-2); font-size: var(--s-2); font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 24; }
.gone .es { font-size: 1rem; font-family: var(--text); }

/* =====================================================================
   13. Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .house { font-size: 1.75rem; }
  .house::before { position: static; display: inline-block; width: auto; margin-right: 0.6rem; vertical-align: 0.45em; }
  .terms dl > div { grid-template-columns: 10rem minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .terms h2 { grid-column: 1 / -1; gap: 28px; padding-bottom: 0; }
  .terms dl { grid-column: 1 / -1; }
  .site-nav { gap: 18px; }
}
@media (max-width: 720px) {
  .site { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 18px; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 10px 18px; }
  .index { width: 100%; }
  .index ol { gap: 12px; flex-wrap: wrap; justify-content: space-between; }
  .index a, .lang a { font-size: 0.875rem; gap: 6px; }
  .index a::before { font-size: 0.8125rem; }
  .lang::before { display: none; }
}
@media (max-width: 640px) {
  :root { --overlap: 40px; }
  .hero {
    padding-top: 132px; padding-bottom: calc(36px + var(--overlap)); min-height: 86svh;
    --wx: 76%; --wy: 32%;
    --core: 20vw 17vw; --spill: 50vw 52vw; --pool: 70vw 14vw;
    --beam-top: 3.5%; --beam-bottom: 26%; --beam-lean: -7%; --beam-blur: 11px; --beam-a: 0.40;
  }
  .beam { top: calc(var(--wy) + 3%); bottom: 22%; }
  .window { width: 16px; height: 24px; }
  .slug { justify-self: start; text-align: left; max-width: 26ch; }
  .sheet { padding: 0 14px 4px; }
  .list caption { padding: 28px 0 6px; }
  .list caption b { font-size: var(--s-2); }
  .mark { width: 16px; height: 16px; }

  /* the index becomes two lines per house: name … price / comarca, sleeps */
  .list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .list colgroup { display: none; }
  .list tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "house house from" "where sleeps sleeps";
    column-gap: 14px; row-gap: 4px; padding: 16px 0; align-items: baseline;
  }
  .list tbody td, .list tbody td + td { padding: 0; }
  td.house { grid-area: house; font-size: 1.375rem; }
  .house::before { margin-right: 0.5rem; font-size: 0.8125rem; vertical-align: 0.35em; }
  td.where { grid-area: where; font-size: 0.875rem; }
  td.from { grid-area: from; font-size: 1.1875rem; }
  td.sleeps {
    grid-area: sleeps; text-align: left;
    font-variant-caps: small-caps; font-variant-numeric: normal;
    font-variation-settings: "opsz" 12; font-weight: 600; letter-spacing: 0.035em;
    font-size: 0.875rem; color: var(--light-2);
  }
  td.sleeps::before { content: attr(data-label) " "; }

  .how, .listing, .faq { padding-top: var(--sp-16); padding-bottom: var(--sp-16); }
  .terms { padding-top: var(--sp-16); padding-bottom: var(--sp-16); row-gap: var(--sp-8); }
  .terms dl > div { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .terms dt { padding-top: 0; }
  .facts th, .facts td { display: block; width: auto; padding: 0; border: 0; }
  .facts tr { display: block; padding: 16px 0; border-top: 1px solid var(--rule); }
  .facts td { padding-top: 6px; }
  .empty .wrap { flex-direction: column; gap: var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =====================================================================
   14. Capa cinemática — la luz de la ventana, ligada al scroll
   (docs/design-rules.md › "Capa cinemática"). Tres momentos, ni uno más:

   (1) El primer viewport. La copy del héroe retrocede (capa lejana) mientras
       la hoja del índice sube y se asienta (capa cercana); el haz de la
       ventana crece y cae hacia la hoja, la ventana sube de brillo y el canto
       superior de la hoja se enciende: la luz llega al índice.
   (2) La escena del índice (el recorrido entero de la hoja, ~250 vh). Una
       banda de luz FIJADA — la continuación del haz — se queda quieta en la
       pantalla y las doce filas la cruzan, encendiéndose una a una al
       centrarse; a la vez el lavado ocre crece desde la esquina superior
       derecha de la hoja, que es donde está la ventana. Por debajo de 64rem
       la banda no existe: queda el revelado secuencial de las filas, sin pin.
   (3) Un detalle en "How you get the keys": los tres filetes de luz se
       dibujan en secuencia. En FAQ, formulario y legales, nada.

   Solo transform / opacity / filter, cero JS, `will-change` en cuatro capas.
   Todo vive dentro de @supports + prefers-reduced-motion: no-preference, así
   que el sitio en reposo (y sin soporte, y con movimiento reducido) es
   exactamente el de las secciones 1-13. Nada cambia de sitio: CLS 0.
   ===================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root {
      --fr-hero: 34rem;            /* el scroll durante el que se asienta el primer viewport */
      --fr-recede: 2.4rem;         /* cuánto retrocede el titular respecto al scroll */
      --fr-recede-scale: 0.985;
      --fr-rise: 0.9rem;           /* cuánto sube la hoja: la capa cercana */

      /* Los timelines se referencian SIEMPRE por variable: el minificador
         pliega `animation-timeline` dentro del shorthand `animation` y el
         navegador descarta la regla entera. Con var() queda como longhand. */
      --tl-root: scroll(root);
      --tl-idx: --fr-idx;          /* la hoja del índice, mientras cruza la pantalla */
      --tl-row: --fr-row;          /* cada fila de casas */
      --tl-how: --fr-how;
    }

    /* ---- (1) el héroe se convierte en superficie ---- */

    /* la copy retrocede: baja respecto al scroll y se encoge un punto */
    .lead {
      transform-origin: 0 100%;
      will-change: transform;
      animation: fr-recede linear both;
      animation-timeline: var(--tl-root);
      animation-range: 0 var(--fr-hero);
    }
    @keyframes fr-recede {
      to { transform: translateY(var(--fr-recede)) scale(var(--fr-recede-scale)); }
    }

    /* el haz crece y cae: la luz de la ventana se alarga hacia el índice */
    .beam {
      transform-origin: 50% 0;
      will-change: transform, filter;
      animation: fr-beam linear both;
      animation-timeline: var(--tl-root);
      animation-range: 0 var(--fr-hero);
    }
    @keyframes fr-beam {
      to {
        transform: translateY(2%) scaleY(1.34) scaleX(1.05);
        filter: blur(var(--beam-blur)) brightness(1.16);
      }
    }

    /* la fuente sube de intensidad (no se mueve: su halo está pintado en el fondo) */
    .window {
      animation: fr-pane linear both;
      animation-timeline: var(--tl-root);
      animation-range: 0 var(--fr-hero);
    }
    @keyframes fr-pane {
      to { transform: translate(-50%, -50%) scale(1.04); filter: brightness(1.18); }
    }

    /* la hoja es la capa cercana: sube y se asienta sobre la piedra */
    .sheet {
      will-change: transform;
      animation: fr-settle linear both;
      animation-timeline: var(--tl-root);
      animation-range: 0 var(--fr-hero);
    }
    @keyframes fr-settle { to { transform: translateY(calc(-1 * var(--fr-rise))); } }

    /* y su canto recoge la luz que baja: el filete de arriba se enciende */
    .sheet::before {
      content: ""; position: absolute; z-index: 1; pointer-events: none;
      top: -1px; left: 0; right: 0; height: 1px;
      background-image: linear-gradient(90deg, transparent 4%, oklch(80% 0.13 78 / 0.85) 66%, oklch(73% 0.135 74 / 0.35) 100%);
      box-shadow: 0 0 16px 1px oklch(73% 0.135 74 / 0.3);
      opacity: 0;
      animation: fr-lit linear both;
      animation-timeline: var(--tl-root);
      animation-range: 0 var(--fr-hero);
    }
    @keyframes fr-lit { to { opacity: 1; } }

    /* ---- (2) la escena del índice: la luz se queda quieta, la lista la cruza ---- */
    .sheet { view-timeline-name: --fr-idx; }

    /* el lavado de la ventana crece sobre la hoja, desde su esquina superior derecha */
    .sheet::after {
      content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
      background-image: radial-gradient(58% 46% at 100% 0%, oklch(73% 0.135 74 / 0.03), transparent 74%);
      opacity: 0;
      animation: fr-wash linear both;
      animation-timeline: var(--tl-idx);
      animation-range: cover 4% cover 52%;
    }
    @keyframes fr-wash { to { opacity: 1; } }

    /* la banda de luz fijada. Solo donde hay pantalla para ella. */
    .rake { display: none; }
    @media (min-width: 64rem) and (min-height: 40rem) {
      .rake {
        display: block; position: sticky; top: 0; z-index: 3;
        height: 0; pointer-events: none;
      }
      .rake i {
        display: block; position: absolute; top: 0; left: -34vw; right: -34vw;
        height: 100svh;
        background-image: linear-gradient(177deg,
          transparent 30%,
          oklch(88% 0.11 84 / 0.055) 40%,
          oklch(80% 0.125 80 / 0.048) 46%,
          oklch(72% 0.13 74 / 0.020) 56%,
          transparent 66%);
        -webkit-mask-image: linear-gradient(101deg, transparent 3%, rgb(0 0 0 / 0.5) 32%, rgb(0 0 0) 76%, rgb(0 0 0 / 0.75) 100%);
        mask-image: linear-gradient(101deg, transparent 3%, rgb(0 0 0 / 0.5) 32%, rgb(0 0 0) 76%, rgb(0 0 0 / 0.75) 100%);
        opacity: 0;
        will-change: transform, opacity;
        animation: fr-rake linear both;
        animation-timeline: var(--tl-idx);
        animation-range: cover 0% cover 100%;
      }
      @keyframes fr-rake {
        0%        { opacity: 0; transform: translateY(-5svh); }
        16%, 70%  { opacity: 1; }
        86%, 100% { opacity: 0; transform: translateY(7svh); }
      }
    }

    /* las filas se encienden una a una al centrarse: luz aditiva sobre la fila,
       nunca contraste quitado al texto. Cada fila lleva su propio timeline, así
       que la secuencia sale de la geometría, no de doce reglas escalonadas. */
    .list tbody tr { view-timeline-name: --fr-row; }
    .list tbody td.house::after {
      content: ""; position: absolute; z-index: -1; pointer-events: none;
      top: 0; bottom: -1px; left: 0; width: 240vw;   /* .scroll (overflow-x: clip) lo recorta al ancho de la tabla */
      background-image: linear-gradient(180deg,
        oklch(73% 0.135 74 / 0.022) 0%,
        oklch(73% 0.135 74 / 0.060) 42%,
        oklch(73% 0.135 74 / 0.038) 100%);
      box-shadow: inset 0 1px 0 oklch(82% 0.125 80 / 0.5);
      opacity: 0;
      animation: fr-row linear both;
      animation-timeline: var(--tl-row);
      animation-range: cover 34% cover 78%;
    }
    @keyframes fr-row {
      0%   { opacity: 0; }
      41%  { opacity: 1; }        /* la fila está en la banda de luz */
      100% { opacity: 0.22; }     /* y queda leída */
    }
    /* el número de la fila, que ya es ocre, se enciende con ella */
    .list tbody td.house::before {
      animation: fr-num linear both;
      animation-timeline: var(--tl-row);
      animation-range: cover 34% cover 78%;
    }
    @keyframes fr-num {
      0%   { filter: none; }
      41%  { filter: brightness(1.45) drop-shadow(0 0 9px oklch(73% 0.135 74 / 0.85)); }
      100% { filter: brightness(1.1) drop-shadow(0 0 3px oklch(73% 0.135 74 / 0.3)); }
    }

    /* ---- (3) el detalle: los filetes de "How you get the keys" se dibujan ---- */
    .how { view-timeline-name: --fr-how; }
    .steps li::before {
      transform-origin: 0 50%;
      animation: fr-draw linear both;
      animation-timeline: var(--tl-how);
    }
    .steps li:nth-child(1)::before { animation-range: cover 24% cover 40%; }
    .steps li:nth-child(2)::before { animation-range: cover 32% cover 48%; }
    .steps li:nth-child(3)::before { animation-range: cover 40% cover 56%; }
    @keyframes fr-draw {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    /* a 375 la fila es una rejilla de dos líneas: la luz va sobre la fila entera */
    @media (max-width: 640px) {
      :root { --fr-hero: 22rem; --fr-recede: 1.6rem; --fr-rise: 0.5rem; }
      .list tbody tr { position: relative; }
      .list tbody td.house::after { display: none; }
      .list tbody tr::after {
        content: ""; position: absolute; z-index: -1; pointer-events: none;
        inset: -2px -14px;
        background-image: linear-gradient(180deg,
          oklch(73% 0.135 74 / 0.020) 0%,
          oklch(73% 0.135 74 / 0.060) 44%,
          oklch(73% 0.135 74 / 0.030) 100%);
        box-shadow: inset 0 1px 0 oklch(82% 0.125 80 / 0.45);
        opacity: 0;
        animation: fr-row linear both;
        animation-timeline: var(--tl-row);
        animation-range: cover 30% cover 74%;
      }
    }
  }
}
