/* Marbella Wire — cinematic skeleton. Mobile-first. Two editions via [data-theme]. */

:root {
  --serif: 'Bodoni Moda', 'Didot', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body[data-theme="night"] {
  --bg: #06090f;
  --ink: #e9e4d8;
  --soft: #b3ad9e;
  --muted: #8b8577;
  --accent: #c9884a;
  --rule: rgba(233, 228, 216, .14);
  --rule-strong: rgba(233, 228, 216, .3);
  --hero-fallback: linear-gradient(#0a1220 40%, #3a2417 52%, #071019 53%);
  --shade: linear-gradient(rgba(6,9,15,0) 55%, rgba(6,9,15,.55) 100%);
  --hero-low: #b3ad9e;
  --cap: #e9e4d8;
  --cap-n: #c9884a;
  --scrim: linear-gradient(rgba(6,9,15,.55), rgba(6,9,15,.25) 60%, rgba(6,9,15,0));
  --palm: #04060a;
  --quay: #1a1712;
  --quay-hi: #3a3128;
  --arch: #0d0b08;
  --hull: #0f1318;
  --hull-hi: #3a4049;
  --hull-deep: #05070a;
  --stone: #2a231b;
  --stone-hi: #5a4a36;
  --stone-shade: #0d0a07;
  --roof: #5a3020;
  --roof-side: #3a1c12;
  --wall-side: #0f0d0b;
  --glass: #2a3a50;
  --bougie: #4a1830;
  --hedge: #0c1410;
  --figure: #07090c;
  --car-red: #4a1414;
  --thatch: #3a2a16;
  --sand: #1c1913;
  --sand-hi: #2a261c;
  --ochre: #3a2c1a;
  --frame: #0a0c10;
  --shutter: #0a0c10;
  --shutter-green: #0c1a12;
  --shutter-brown: #2a180c;
  --hedge-hi: #14201a;
  --olive: #131a14;
  --green: #0e1a12;
  --lake: #0a1a26;
  --dome: #14261e;
  --dome-tiled: #142430;
  --granite: #24221e;
  --road: #0c0e12;
  --paving: #1c1a16;
  --boat-blue: #14283c;
  --fire: #e8862a;
  --lamp-on: 1;
  --tile: none;
}

body[data-theme="day"] {
  --bg: #f7f4ec;
  --ink: #14161a;
  --soft: #4c5158;
  --muted: #625d53;
  --accent: #274e9b;
  --rule: rgba(39, 78, 155, .25);
  --rule-strong: rgba(39, 78, 155, .5);
  --hero-fallback: linear-gradient(#dfe9f2 40%, #9dbbd8 52%, #1d4176 53%);
  --shade: linear-gradient(rgba(247,244,236,0) 55%, rgba(12,24,48,.45) 100%);
  --hero-low: #dce6f2;
  --cap: #f7f4ec;
  --cap-n: #dce6f2;
  --scrim: linear-gradient(rgba(247,244,236,.62), rgba(247,244,236,.38) 60%, rgba(247,244,236,0));
  --palm: #0f151c;
  --quay: #d9d2c3;
  --quay-hi: #f4efe4;
  --arch: #8f8676;
  --hull: #eef0f2;
  --hull-hi: #ffffff;
  --hull-deep: #8a96a6;
  --stone: #b8ab92;
  --stone-hi: #e2d8c4;
  --stone-shade: #7d715d;
  --roof: #b5623a;
  --roof-side: #8c4526;
  --wall-side: #c9c2b4;
  --glass: #5f8fc4;
  --bougie: #c9307a;
  --hedge: #4a7a3a;
  --figure: #2a2c30;
  --car-red: #b02020;
  --thatch: #b89a5a;
  --sand: #e8dfc7;
  --sand-hi: #f3ecd9;
  --ochre: #e4c59a;
  --frame: #8a8f96;
  --shutter: #6b7078;
  --shutter-green: #2f6b46;
  --shutter-brown: #7a4a2a;
  --hedge-hi: #6fa35a;
  --olive: #7c9a6e;
  --green: #3f9a4a;
  --lake: #3b7fbf;
  --dome: #3f8f7a;
  --dome-tiled: #2f6fa8;
  --granite: #8f8a80;
  --road: #5a5c60;
  --paving: #d8d0c0;
  --boat-blue: #2a63a8;
  --fire: #e8862a;
  --lamp-on: 0;
  --tile: repeating-linear-gradient(90deg,
    var(--accent) 0 14px, #fff 14px 20px,
    var(--accent) 20px 26px, #fff 26px 46px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  transition: background-color .9s var(--ease), color .9s var(--ease);
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: color .3s, border-color .3s; }
a:hover { color: var(--accent); border-color: var(--accent); }

em { font-style: italic; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }

.mono-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: transparent;
  background: none;
  padding: 0;
  cursor: pointer;
}
.mono-link:hover { border-bottom-color: var(--accent); }

/* ---------- reveal transitions ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hero-fallback);
}

.hero-sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: var(--shade); pointer-events: none; }

.hero-palms { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* The landmark tour: three SVG strips pinned to the shader's horizon; JS slides them at different rates. */
.hero-tour { position: absolute; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.hero-tour svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-tour .strip { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.hero-tour .s-hi { stop-color: var(--hull-hi); } .hero-tour .s-hull { stop-color: var(--hull); } .hero-tour .s-deep { stop-color: var(--hull-deep); }
.hero-tour stop { transition: stop-color .9s var(--ease); }
.hero-tour .hull-hi { fill: var(--hull-hi); } .hero-tour .hull-deep { fill: var(--hull-deep); } .hero-tour .deckg { fill: var(--hull-hi); }
.hero-tour .rail { fill: none; stroke: var(--hull-hi); stroke-width: .8; opacity: .7; }
.hero-tour .white { fill: var(--quay); } .hero-tour .white-hi { fill: var(--quay-hi); } .hero-tour .quay-face { fill: var(--quay); }
.hero-tour .arch { fill: var(--arch); } .hero-tour .awning { fill: var(--accent); opacity: .55; }
.hero-tour .stone { fill: var(--stone); } .hero-tour .stone-hi { fill: var(--stone-hi); stroke: var(--stone-hi); }
.hero-tour .stone-shade { fill: var(--stone-shade); stroke: var(--stone-shade); stroke-width: 2; }
.hero-tour .roof { fill: var(--roof); } .hero-tour .sand { fill: var(--sand); } .hero-tour .sand-wet { fill: var(--sand); opacity: .55; }
.hero-tour .ravine { fill: var(--stone-shade); opacity: .7; }
.hero-tour .leaf, .hero-tour .pine, .hero-tour .mid-palm, .hero-tour .sway, .hero-tour .grass { fill: var(--palm); }
.hero-tour .grass { fill: none; stroke: var(--palm); stroke-width: 2; }
.hero-tour .pine-trunk { fill: var(--stone-shade); stroke: var(--stone-shade); stroke-width: 2; }
.hero-tour .fruit { fill: var(--accent); opacity: calc(.4 + var(--lamp-on) * .5); }
.hero-tour .bronze { fill: var(--stone-shade); } .hero-tour .clock { fill: var(--accent); opacity: calc(.5 + var(--lamp-on) * .5); }
.hero-tour .gull { fill: none; stroke: var(--palm); stroke-width: 1.4; }
.hero-tour .post { fill: var(--hull-deep); }
.hero-tour .lamp { fill: var(--accent); opacity: var(--lamp-on); transition: opacity .9s var(--ease); }
.hero-tour .lamp-glow { fill: url(#lg); opacity: var(--lamp-on); } .hero-tour .s-lamp { stop-color: var(--accent); }
.hero-tour .fire-glow { fill: url(#lg); opacity: .8; }
.hero-tour .refl { opacity: calc(var(--lamp-on) * .16); filter: blur(4px); transition: opacity .9s var(--ease); }
.hero-tour .quay-refl { fill: var(--quay); opacity: .18; }
.hero-tour .wake { fill: var(--hull-hi); opacity: .3; }
.hero-tour .mirror { opacity: .34; }
.hero-tour .beam-w { fill: var(--accent); opacity: calc(var(--lamp-on) * .10); }
.hero-tour .beam { animation: sweep 5s linear infinite; }
@keyframes sweep { from { transform: rotate(-40deg); } to { transform: rotate(320deg); } }
.hero-tour .bob { animation: bob 7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 60%; }
@keyframes bob { from { transform: translateY(0) rotate(-.35deg); } to { transform: translateY(3px) rotate(.35deg); } }
.hero-tour .sway { animation: sway 9s ease-in-out infinite alternate; }
.hero-tour .fore-g .frond { transform-box: fill-box; transform-origin: 0 50%; animation: frond 4s ease-in-out infinite alternate; }
.hero-tour .mid-palm .frond { animation: none; }
.hero-tour .glide { animation: glide 14s linear infinite; }
@keyframes glide { from { transform: translateX(-300px); } to { transform: translateX(1700px); } }
.hero-tour .tender { animation: tender 26s linear infinite; }

/* the building model */
.hero-tour .wall { fill: var(--quay); } .hero-tour .wall-hi { fill: var(--quay-hi); } .hero-tour .wall-side { fill: var(--wall-side); }
.hero-tour .stone-wall { fill: var(--stone); } .hero-tour .roof { fill: var(--roof); } .hero-tour .roof-side { fill: var(--roof-side); }
.hero-tour .tiles { fill: url(#tilep); } .hero-tour .tile-line { fill: none; stroke: var(--roof-side); stroke-width: .7; opacity: .7; }
.hero-tour .stone-line { fill: none; stroke: var(--stone-shade); stroke-width: .6; opacity: .5; }
.hero-tour .win { fill: var(--accent); }
.hero-tour .iron { fill: var(--hull-deep); } .hero-tour .band { fill: var(--hull-deep); opacity: .85; }
.hero-tour .cap { fill: var(--roof); } .hero-tour .glass { fill: var(--glass); opacity: .9; }
.hero-tour .bougie { fill: var(--bougie); } .hero-tour .cypress { fill: var(--palm); } .hero-tour .agave { fill: var(--palm); }
.hero-tour .hedge { fill: var(--hedge); } .hero-tour .lawn { fill: var(--hedge); opacity: .8; } .hero-tour .juniper { fill: var(--hedge); }
.hero-tour .figure { fill: var(--figure); } .hero-tour .car { fill: var(--figure); } .hero-tour .car-red { fill: var(--car-red); } .hero-tour .tyre { fill: var(--hull-deep); }
.hero-tour .umbrella { fill: var(--quay-hi); } .hero-tour .umbrella-straw { fill: var(--thatch); } .hero-tour .thatch { fill: var(--thatch); }
.hero-tour .boardwalk { fill: var(--stone-hi); opacity: .7; } .hero-tour .sand-hi { fill: var(--sand-hi); } .hero-tour .sail { fill: var(--hull-hi); }
.hero-tour .ground-shadow { fill: var(--stone-shade); opacity: .35; }
.hero-tour .wall-grad { fill: url(#wallg); } .hero-tour .wall-ochre { fill: var(--ochre); }
.hero-tour .stones { fill: url(#stonep); } .hero-tour .eave { fill: none; stroke: var(--roof-side); stroke-width: 1.2; }
.hero-tour .frame { fill: var(--frame); } .hero-tour .arch-frame { fill: var(--frame); opacity: .6; }
.hero-tour .shutter { fill: var(--shutter); } .hero-tour .shutter.green { fill: var(--shutter-green); } .hero-tour .shutter.brown { fill: var(--shutter-brown); }
.hero-tour .leaf.hi, .hero-tour .pine.hi, .hero-tour .lawn.hi { fill: var(--hedge-hi); }
.hero-tour .olive { fill: var(--olive); } .hero-tour .olive-trunk { fill: var(--stone-shade); }
.hero-tour .green { fill: var(--green); } .hero-tour .hole { fill: var(--hull-deep); } .hero-tour .flag { fill: var(--car-red); }
.hero-tour .lake { fill: var(--lake); } .hero-tour .water-arc { fill: none; stroke: var(--lake); stroke-width: 1; }
.hero-tour .ring { fill: none; stroke: var(--car-red); stroke-width: 3; }
.hero-tour .bell { fill: var(--accent); opacity: .8; } .hero-tour .spire { fill: var(--roof); } .hero-tour .dome { fill: var(--dome); } .hero-tour .dome-tiled { fill: var(--dome-tiled); }
.hero-tour .dome-edge { fill: none; stroke: var(--wall-hi); stroke-width: 1.2; } .hero-tour .crescent { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.hero-tour .granite { fill: var(--granite); }
.hero-tour .road { fill: var(--road); } .hero-tour .road-line { fill: var(--quay-hi); opacity: .5; } .hero-tour .paving { fill: var(--paving); }
.hero-tour .boat { fill: var(--quay-hi); } .hero-tour .boat-blue { fill: var(--boat-blue); } .hero-tour .boat-old { fill: var(--stone); } .hero-tour .boat-stripe { fill: none; stroke: var(--boat-blue); stroke-width: 1.4; }
.hero-tour .fire { fill: var(--fire); } .hero-tour .skewer { fill: none; stroke: var(--stone-shade); stroke-width: .8; } .hero-tour .sardine { fill: var(--hull-hi); }
.hero-tour .thatch-edge { fill: none; stroke: var(--stone-shade); stroke-width: 1; } .hero-tour .crate { fill: var(--thatch); }
.hero-tour .net { fill: none; stroke: var(--hull-hi); stroke-width: .8; opacity: .7; } .hero-tour .reed { fill: var(--hedge); }
.hero-tour .umbrella-edge { fill: none; stroke: var(--stone-shade); stroke-width: .6; opacity: .5; }
.hero-tour .traffic { animation: traffic 30s linear infinite; }
@keyframes traffic { from { transform: translateX(-200px); } to { transform: translateX(1500px); } }
@keyframes tender { from { transform: translateX(-60px); } to { transform: translateX(1500px); } }
.palm {
  position: absolute; bottom: -3%; height: 64%; width: auto;
  fill: var(--palm); color: var(--palm); overflow: visible;
  transform-origin: 50% 100%;
  animation: sway 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(0,0,0,.25));
}
.palm.l { left: -3%; height: 71%; filter: blur(1.1px) drop-shadow(0 0 18px rgba(0,0,0,.3)); }
.palm.r { right: -4%; height: 64%; animation-duration: 11.5s; animation-delay: -5s; }
.frond { transform-box: fill-box; transform-origin: 0 50%; animation: frond 4s ease-in-out infinite alternate; }
@keyframes sway  { from { transform: rotate(-1.1deg); } to { transform: rotate(1.1deg); } }
@keyframes frond { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@media (max-width: 719px) { .palm.l { display: none; } .palm.r { height: 34%; right: 4%; bottom: 4%; } }

.pan-scrub { display: none; flex-direction: column; gap: 10px; width: 520px; }
.pan-bar .tick { position: absolute; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; padding: 0; border-radius: 50%; border: 1px solid var(--soft); background: none; cursor: pointer; box-sizing: border-box; transition: transform .3s var(--ease); }
.pan-bar .tick.on { background: var(--accent); border-color: var(--accent); }
.pan-bar .tick.here { transform: scale(1.6); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
.pan-bar .tick:hover { transform: scale(1.5); }
.pan-bar .tick:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.pan-count { color: var(--cap-n); }
.pan-labels span:first-child, .pan-labels span:last-child { opacity: .55; }

/* the arrows: prev / next landmark, at the hero's edges */
.pan-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink); background: color-mix(in oklab, var(--bg) 72%, transparent); color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 1; transition: transform .3s var(--ease), border-color .3s, color .3s, background-color .3s; }
.pan-arrow svg { width: 26px; height: 26px; }
.pan-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pan-arrow.prev { left: clamp(10px, 2vw, 28px); } .pan-arrow.next { right: clamp(10px, 2vw, 28px); }
.pan-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); } .pan-arrow.next:hover { transform: translateY(-50%) translateX(3px); }
.pan-arrow:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
@media (max-width: 719px) { .pan-arrow { width: 44px; height: 44px; top: 54%; transform: translateY(-50%); } .pan-arrow.prev:hover, .pan-arrow.next:hover { transform: translateY(-50%); } .pan-arrow svg { width: 20px; height: 20px; } }

/* the chapter caption: number, name, place; shows while the camera dwells on a landmark */
.chapter-caption { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; margin-left: auto; opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.chapter-caption.show { opacity: 1; transform: none; }
.chapter-n { font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--cap-n); }
.chapter-caption { max-width: 100%; }
.chapter-caption strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.006em; font-variation-settings: 'opsz' 48; color: var(--cap); text-shadow: 0 1px 24px rgba(0,0,0,.25); text-wrap: balance; }
@media (max-width: 719px) { .chapter-caption { align-items: flex-start; text-align: left; margin-left: 0; margin-right: 72px; } .chapter-caption strong { font-size: clamp(24px, 7.5vw, 34px); } .hero-meta { font-size: 11px; } }
.chapter-place { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; line-height: 1.6; color: var(--hero-low); }

/* in-scene name tags: a hairline up from the landmark and its name, travelling with the strip */
.hero-tour .tag-line { stroke: var(--ink); stroke-width: .8; opacity: .55; }
.hero-tour .tag-dot { fill: var(--accent); }
.hero-tour .tag-text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 3px; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.hero-tour .tag { opacity: .9; transition: opacity .6s var(--ease); }
.lite .hero-tour .mirror { filter: none; opacity: .3; }
.lite .hero-tour .bob, .lite .hero-tour .sway, .lite .hero-tour .glide, .lite .hero-tour .tender, .lite .hero-tour .traffic { animation-duration: 0s; animation: none; }
/* foreground palms never hide the copy: translucent, lighter still by day, and the copy carries a soft halo */
.hero-tour .fore-g { opacity: .62; }
body[data-theme="day"] .hero-tour .fore-g { opacity: .45; }
.hero-copy { position: relative; z-index: 2; margin-top: clamp(8px, 2.5vh, 28px); }
.hero-low { margin-top: auto; }
body[data-theme="night"] h1, body[data-theme="night"] .kicker { text-shadow: 0 2px 18px rgba(6,9,15,.45); }
body[data-theme="day"] h1 { text-shadow: 0 1px 2px rgba(247,244,236,.6); }
.hero-scrim { position: absolute; left: 0; right: 0; top: 0; height: 52%; pointer-events: none; background: var(--scrim); }
.chapter-caption { position: relative; z-index: 2; }
.hero-tour .ch.off, .hero-tour .ch.off * { animation: none !important; }
.lite .hero-tour .beam-w { opacity: calc(var(--lamp-on) * .05); }
.hero-tour.moving .tag { opacity: 0; }
.hero-tour .tag.clash { opacity: 0; }
.hero { cursor: pointer; }
.hero a, .hero button { cursor: pointer; }
.pan-bar { position: relative; height: 1px; background: var(--rule); }
.pan-fill { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--accent); }
.pan-bar b { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--soft); box-sizing: border-box; margin-left: -3px; }
.pan-bar b.on { background: var(--accent); border-color: var(--accent); }
.pan-labels { display: flex; justify-content: space-between; }
.pan-labels span { opacity: .55; transition: opacity .6s var(--ease); }
.pan-labels .on { opacity: 1; font-weight: 500; }
@media (min-width: 1080px) { .pan-scrub { display: flex; } }
@media (pointer: coarse) {
  .edition button { padding: 12px 10px; min-height: 44px; }
  .brand, .mono-link, footer a, .chapters-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .pan-bar .tick { width: 12px; height: 12px; margin-left: -6px; top: -5.5px; }
  .pan-bar .tick::before { content: ''; position: absolute; inset: -16px; }
  .edition button { min-width: 44px; }
  input, .mono-link, footer a, .figure-row .src { min-height: 44px; display: inline-flex; align-items: center; }
  footer a { min-width: 44px; justify-content: center; }
}

.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(18px, 3vw, 40px) var(--pad);
  gap: 28px;
}

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .34em;
  border-bottom: none;
}

.masthead-band {
  flex-basis: 100%; height: 6px; margin-top: 12px;
  background: var(--tile);
  transition: opacity .9s var(--ease);
}
.chapters-nav { display: none; gap: 26px; }
.chapters-nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
  border-bottom: none;
}
.chapters-nav a:hover { color: var(--accent); }

.edition { display: flex; gap: 4px; }
.edition button {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 4px 8px;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.edition button[aria-pressed="true"] { color: var(--ink); border-color: var(--rule-strong); }

.hero-copy { max-width: 1100px; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 0 0 22px;
}

h1 {
  font-size: clamp(44px, 7.4vw, 118px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.008em;
  font-variation-settings: 'opsz' 96;
  text-wrap: balance;
  margin: 0 0 0 -.04em;
}
h1 em { letter-spacing: -.004em; }

.hero-low { display: flex; flex-direction: column; gap: 22px; }

.hero-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  line-height: 1.9;
  max-width: 62ch;
  color: var(--hero-low);
  margin: 0;
}

.hero-weather { color: var(--cap-n); }
.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--hero-low);
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  border-top: 1px solid var(--rule);
  overflow: hidden;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 55s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-run { display: flex; }
.ticker-run span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--soft);
  padding: 13px 0 13px 48px;
  white-space: nowrap;
}
.ticker-run b { font-weight: 500; color: var(--accent); margin-right: 10px; }

@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- azulejo band (day edition only) ---------- */

.tileband {
  height: 6px;
  background: var(--tile);
  transition: opacity .9s var(--ease);
}

/* ---------- today strip ---------- */

.strip { padding-top: clamp(28px, 4vw, 48px); }

.strip-row {
  display: flex;
  align-items: baseline;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.strip-row .t { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.strip-row .what { font-style: italic; font-size: clamp(17px, 2vw, 21px); }
.strip-row .note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }

/* ---------- chapters ---------- */

.chapter { padding-top: clamp(56px, 8vw, 104px); }
.chapter > .wrap { padding-left: var(--pad); padding-right: var(--pad); }

.chapter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: clamp(20px, 3vw, 32px);
}

.roman {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.chapter-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Chapter I — the lot */

.lot { margin: clamp(24px, 4vw, 52px) 0 0; position: relative; }
.lot img {
  display: block;
  width: 100%;
  height: clamp(380px, 74vh, 820px);
  object-fit: cover;
}
.lot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-top: 120px;
  padding-bottom: clamp(22px, 4vw, 44px);
  background: linear-gradient(rgba(6, 9, 15, 0), rgba(6, 9, 15, .88));
  color: #e9e4d8;
}
.lot-price {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(46px, 11vw, 168px);
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0;
}
.lot-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.lot-desc { font-size: clamp(16px, 2vw, 24px); margin: 0; max-width: 640px; }
.lot figcaption .mono-link { color: #c9884a; }

/* Chapter II — shortlist */

.no1 { margin: clamp(24px, 4vw, 52px) 0 0; position: relative; }
.no1 img {
  display: block;
  width: 100%;
  height: clamp(300px, 52vh, 560px);
  object-fit: cover;
}
.no1 figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 10px 22px;
  flex-wrap: wrap;
  padding: 90px clamp(18px, 3vw, 32px) 18px;
  background: linear-gradient(rgba(6, 9, 15, 0), rgba(6, 9, 15, .85));
  color: #e9e4d8;
}
.no1-n { font-family: var(--mono); font-weight: 300; font-size: clamp(30px, 4vw, 56px); line-height: 1; color: #c9884a; }
.no1-name { font-size: clamp(22px, 3vw, 38px); }
.no1-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b3ad9e; margin-left: auto; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  align-items: baseline;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: clamp(14px, 2vw, 22px) 0;
  border-bottom: 1px solid var(--rule);
}
.list .n { font-family: var(--mono); font-weight: 300; font-size: clamp(26px, 4vw, 64px); line-height: 1; color: var(--muted); width: 1.6em; flex: none; }
.list .name { font-size: clamp(19px, 2.6vw, 34px); flex: 1 1 240px; min-width: 0; }
.list .kind { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.list .score { font-family: var(--mono); font-size: 12.5px; color: var(--soft); }

.more { display: inline-block; margin-top: 20px; }

/* Chapter III — figures */

.figures { margin-top: clamp(16px, 2.5vw, 36px); }
.figure-row {
  display: flex;
  align-items: baseline;
  gap: 12px 40px;
  flex-wrap: wrap;
  padding: clamp(18px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
}
.figure-row .fig {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 1;
  letter-spacing: -.02em;
}
.figure-row.accent .fig { color: var(--accent); }
.figure-row p { font-size: clamp(15px, 1.8vw, 22px); color: var(--soft); margin: 0; flex: 1 1 220px; }

/* Chapter IV — atlas */

.atlas { margin-top: clamp(16px, 2.5vw, 36px); }
.zone {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: clamp(14px, 2vw, 20px) 0;
  border-bottom: 1px solid var(--rule);
}
.zone .zname { font-size: clamp(19px, 2.3vw, 29px); }
.zone .znote { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); line-height: 1.7; }
.zone .zprice { font-family: var(--mono); font-size: clamp(14px, 1.7vw, 20px); white-space: nowrap; }

/* ---------- coda + footer ---------- */

.coda { padding-bottom: clamp(56px, 8vw, 110px); }
.coda-line { font-size: clamp(26px, 4vw, 52px); line-height: 1.25; margin: 20px 0 0; max-width: 800px; }
.coda-form { display: flex; align-items: baseline; gap: 18px 26px; flex-wrap: wrap; margin-top: 34px; }
.coda-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 2px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink);
  outline: none;
  min-width: min(240px, 70vw);
}
.coda-form input::placeholder { color: var(--muted); }
.coda-form .mono-link { border: none; border-bottom: 1px solid var(--rule-strong); }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); border-bottom: none; }

/* ---------- breakpoints ---------- */

@media (min-width: 720px) {
  .chapters-nav { display: flex; }
  .zone { grid-template-columns: minmax(150px, auto) 1fr auto; }
  .zone .znote { grid-column: auto; }
}

@media (min-width: 1080px) {
  .list .kind { margin-left: auto; }
}

/* screenshot mode (?shot=1): pin the 100svh hero so full-page captures work */
body.shot .hero { min-height: 0; height: 900px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .palm, .frond, .hero-tour .bob, .hero-tour .sway, .hero-tour .beam, .hero-tour .glide, .hero-tour .tender, .hero-tour .traffic { animation: none; }
  body, .tileband, .masthead-band { transition: none; }
}

/* sources under the priced figures, and the coda's status line */
.figure-row .src { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid transparent; margin-left: 12px; white-space: nowrap; }
.figure-row .src:hover { border-bottom-color: var(--accent); }
.coda-note { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin: 12px 0 0; }
.foot-langs a { color: inherit; border-bottom: none; margin-right: 10px; }
.foot-langs a[aria-current] { color: var(--ink); }

/* the hero's one action: search (mirrors the live site's hero; the prototype does not submit) */
.hero-search { display: flex; align-items: center; gap: 0; max-width: 620px; border: 1px solid var(--rule-strong); background: color-mix(in oklab, var(--bg) 78%, transparent); padding: 4px 4px 4px 16px; }
.hero-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; outline: none; }
.hero-search input::placeholder { color: var(--muted); opacity: 1; }
.hero-search button { min-height: 44px; padding: 0 18px; border: 0; background: var(--accent); color: var(--bg); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.hero-search button:hover { filter: brightness(1.08); }
.hero-search button:focus-visible, .hero-search input:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.hero-search-hint { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); padding: 0 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 719px) { .hero-search { max-width: none; } .hero-search-hint { display: none; } .hero-search input::placeholder { font-size: 11px; } }
