/* Florian Poirot York · independent concept · "Piped by hand".
   Every section reads complete without JS; html.scenes-ready only adds start states. */

:root {
  /* The batch's lilac/plum/rose/pistachio, deepened with the official site's cream
     (#fbecdd) and pale pink (#fdeff6). Its orange is kept for art, never for text. */
  --ink: #2e1f30;
  --plum: #663850;
  --plum-deep: #3d2438;
  --plum-night: #2a1828;
  --rose: #c7717b;
  --rose-ink: #973a4e;       /* rose text on blush/cream: 6.0:1+ */
  --rose-light: #f2b8c3;     /* rose text on plum-deep: 8:1+ */
  --blush: #fdeff6;
  --cream: #fbecdd;
  --paper: #fffaf3;
  --lilac: #f3e8ee;
  --pistachio: #c3d1a8;
  --apricot: #ff9805;
  --line: #6638503d;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Georgia", serif;
  --text: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Sacramento", "Snell Roundhand", "Brush Script MT", cursive;
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --header: 96px;
  --focus: var(--plum-deep);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-anchor: none; /* the pinned track grows after load; keep restored scroll positions exact */
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .07em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--plum-deep); color: var(--cream); padding: .8rem 1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 1rem; }

h1, h2, h3 { margin: 0; line-height: 1.04; text-wrap: balance; }
h1, h2 {
  font-family: var(--display); font-weight: 500; letter-spacing: -.02em;
  overflow-wrap: anywhere; hyphens: auto;
}
h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1rem; }
.small { font-size: .92rem; }
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .9rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-ink);
}
.eyebrow .num {
  display: inline-grid; place-items: center; width: 2.4em; height: 2.4em;
  border-radius: 50%; border: 1.5px solid currentColor; letter-spacing: 0; font-size: .85em;
}
.eyebrow.light { color: var(--rose-light); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 + p { margin-top: 1.1rem; font-size: 1.1rem; max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid var(--plum-deep);
  font-weight: 600; text-decoration: none; line-height: 1.15; text-align: center; cursor: pointer; letter-spacing: .01em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 -1px var(--rose); }
.btn-primary { background: var(--plum-deep); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--plum-deep); }
.btn-ghost:hover { background: var(--blush); }
.btn-light { background: var(--cream); color: var(--plum-deep); border-color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost-light:hover { background: #fbecdd1f; }
.btn-small { min-height: 36px; padding: .35rem .9rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.text-link { display: inline-block; padding-block: .3rem; min-height: 24px; font-weight: 600; color: var(--rose-ink); }

/* ---------- Header (sticky, a direct child of body) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1.5px solid var(--plum-deep);
}
.concept-bar {
  margin: 0; padding: .3rem var(--gutter); background: var(--plum-deep); color: var(--cream);
  font-size: .75rem; letter-spacing: .06em; text-align: center; line-height: 1.4;
}
.bar { display: flex; align-items: center; gap: 1rem; padding: .45rem var(--gutter); min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; min-width: 0; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1; min-width: 0; }
.brand-name { font: italic 500 1.45rem/1 var(--display); letter-spacing: -.02em; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-ink); margin-top: .25rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--blush); }
.call-pill {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px; background: var(--plum-deep); color: var(--cream); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.call-pill:hover { background: var(--plum); }
.call-short { display: none; }
.menu-toggle {
  flex: none; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1.5px solid var(--plum-deep); background: transparent; font-weight: 600; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: var(--blush); }

@media (max-width: 1080px) {
  html:not(.menu-ready) .site-header { position: static; }
  .menu-ready .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem;
    background: var(--paper); border-bottom: 1.5px solid var(--plum-deep); box-shadow: 0 18px 30px -20px #2e1f3066;
  }
  .menu-ready .site-nav.is-open { display: flex; }
  .menu-ready .site-nav a { min-height: 48px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  html:not(.menu-ready) .bar { flex-wrap: wrap; }
  html:not(.menu-ready) .site-nav { order: 3; width: 100%; }
}
@media (min-width: 1081px) { .menu-toggle { display: none !important; } }
@media (max-height: 420px) {
  .concept-bar { font-size: .68rem; padding-block: .12rem; }
  .bar { min-height: 0; padding-block: .25rem; }
}
@media (max-width: 560px) {
  .call-long { display: none; }
  .call-short { display: inline; }
  .brand-sub { display: none; }
  .bar { gap: .5rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.2rem; white-space: normal; width: min-content; line-height: .95; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, var(--blush), var(--paper));
}
.hero h1 { font-size: clamp(2.9rem, 1.4rem + 5.4vw, 6.4rem); line-height: .98; margin-bottom: 1.2rem; padding-right: .08em; }
.hero h1 em { font-style: italic; color: var(--rose-ink); }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 34rem; }
.facts { display: grid; gap: .55rem; margin: 1.6rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); max-width: 36rem; }
.facts div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-ink); padding-top: .2rem; }
.facts dd { margin: 0; }
.facts a { display: inline-block; padding-block: .2rem; min-height: 24px; font-weight: 500; }
.hero-art { margin: 0; }
.hero-svg { width: 100%; height: auto; aspect-ratio: 640 / 410; display: block; }
figcaption { font-size: .82rem; color: #6d5468; margin-top: .5rem; }

/* ---------- 01 Offer ---------- */
.offer { padding: clamp(4rem, 8vw, 7rem) var(--gutter); background: var(--paper); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tile { background: var(--lilac); border-radius: 22px; padding: 1.25rem 1.25rem 1.5rem; }
.tile-art { width: 100%; height: auto; aspect-ratio: 240 / 160; display: block; margin-bottom: .75rem; background: var(--paper); border-radius: 14px; }
.tile h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 500; margin-bottom: .5rem; }
.tile p { font-size: .98rem; margin: 0; }
.offer-note { margin: 2rem 0 0; max-width: 52rem; }

/* ---------- 02 Craft (pinned) ---------- */
.craft { background: var(--plum-deep); color: var(--cream); }
.craft .eyebrow { color: var(--rose-light); }
.craft { --focus: var(--cream); }
.craft-track { height: 460svh; position: relative; }
.craft-stage {
  position: sticky; top: var(--header); height: calc(100svh - var(--header)); overflow: clip;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  gap: .5rem clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1rem, 3vh, 2.25rem) var(--gutter); align-content: center;
}
.craft-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.5rem; }
.craft-head .eyebrow { width: 100%; margin-bottom: .2rem; }
.craft-head h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem); }
.skip-scene { color: var(--rose-light); font-weight: 600; display: inline-block; padding-block: .3rem; min-height: 24px; }
.craft-art { margin: 0; align-self: center; min-height: 0; }
.craft-svg { width: 100%; height: auto; max-height: calc(100svh - var(--header) - 10rem); aspect-ratio: 560 / 400; display: block; background: #fdeff60f; border-radius: 18px; }
.craft-art figcaption { color: #e9d3dd; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-self: center; }
.step { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; padding: .7rem .9rem; border-radius: 14px; border: 1.5px solid #fbecdd40; }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; }
.step p { margin: .15rem 0 0; font-size: .95rem; color: #f4e3ea; }
.step-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--rose-light); color: var(--rose-light); font-weight: 600; }
.scenes-ready .step { transition: background-color .3s ease, border-color .3s ease; }
.step.is-active { background: var(--cream); color: var(--plum-deep); border-color: var(--cream); }
.step.is-active p { color: var(--ink); }
.step.is-active .step-n { background: var(--plum-deep); color: var(--cream); border-color: var(--plum-deep); }
.craft-foot { padding: 1.5rem var(--gutter) 3rem; margin: 0; }
.craft-foot .text-link { color: var(--rose-light); }

/* ---------- 03 Plan ---------- */
.plan { padding: clamp(4rem, 8vw, 7rem) var(--gutter); background: var(--blush); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
.board-art { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
.board-svg { width: 100%; height: auto; aspect-ratio: 640 / 270; display: block; background: var(--paper); border-radius: 22px; }
.plaque-text { font-family: var(--script); font-size: 26px; fill: #f1d7a6; }
.board-empty { font: italic 26px var(--display); fill: #8a6a80; opacity: 0; }
.board-svg.is-empty .board-empty { opacity: 1; }
.plan-controls { display: grid; gap: 1.1rem; }
.choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.choices legend, .field label { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; scroll-margin-top: calc(var(--header) + 24px); }
.choice span {
  display: flex; align-items: center; gap: .5rem; min-height: 52px; padding: .55rem .9rem; border-radius: 14px;
  border: 1.5px solid var(--plum); background: var(--paper); font-weight: 500;
}
.choice span::before { content: "" / ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1.5px solid var(--plum); flex: none; display: inline-grid; place-items: center; font-size: .75rem; line-height: 1; }
.choice input:checked + span { background: var(--plum-deep); color: var(--cream); border-color: var(--plum-deep); }
.choice input:checked + span::before { content: "✓" / ""; border-color: var(--cream); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.field { display: grid; }
.field input {
  min-height: 48px; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--plum); background: var(--paper); font-size: 1rem;
  scroll-margin-top: calc(var(--header) + 24px); max-width: 100%; min-width: 0;
}
.opt { font-weight: 400; color: #6d5468; }
.plan-out { grid-column: 2; background: var(--paper); border-radius: 22px; padding: 1.4rem 1.4rem .6rem; border: 1.5px solid var(--line); min-width: 0; }
.plan-out h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin-bottom: .6rem; }
.summary { font-weight: 500; overflow-wrap: anywhere; }
.notes { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
.notes .warn { color: #8a2a2a; font-weight: 600; }
.honest { color: #5e4558; }

/* ---------- 04 Story ---------- */
.story { padding: clamp(4rem, 8vw, 7rem) var(--gutter); background: var(--plum-deep); color: var(--cream); --focus: var(--cream); }
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story-art { margin: 0; }
.story-svg { width: 100%; height: auto; aspect-ratio: 400 / 360; display: block; }
.story-art figcaption { color: #e9d3dd; }
.story h2 { margin-bottom: 1.25rem; }
.timeline { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .1rem; }
.timeline li { padding: .7rem 0; border-top: 1px solid #fbecdd40; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; }
.timeline strong { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--rose-light); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--cream); text-decoration: none; font-weight: 600; }
.socials a:hover { background: #fbecdd1f; }

/* ---------- 05 Visit (calm) ---------- */
.visit { padding: clamp(4rem, 8vw, 7rem) var(--gutter); background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.visit-card { font-style: normal; background: var(--lilac); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); }
.visit-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.8rem; margin-bottom: .5rem; }
.visit-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.visit-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.visit-list .k { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-ink); padding-top: .25rem; }
.visit-list a { display: inline-block; padding-block: .2rem; min-height: 24px; font-weight: 500; }
.street svg { width: 100%; height: auto; display: block; aspect-ratio: 420 / 300; }
.street-label { font: 600 13px var(--text); letter-spacing: .2em; fill: #6d5468; }
.street-label.sm { letter-spacing: .08em; font-size: 15px; fill: var(--plum-deep); }

/* ---------- 06 Close ---------- */
.close { padding: clamp(4rem, 8vw, 7rem) var(--gutter); background: var(--plum-night); color: var(--cream); --focus: var(--cream); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.close h2 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5.6rem); margin-bottom: 1.2rem; }
.close #close-summary { font-size: 1.15rem; max-width: 34rem; overflow-wrap: anywhere; }
.close-art { margin: 0; }
.close-svg { background: #fbecdd14; }

/* ---------- Owner panel and footer ---------- */
.owner { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); background: var(--lilac); border-top: 1.5px dashed var(--plum); }
.owner h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin-bottom: 1rem; max-width: 40rem; }
.owner p { max-width: 52rem; }
.selectable { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.preview-url { overflow-wrap: anywhere; display: inline-block; padding-block: .2rem; min-height: 24px; }
.site-footer { padding: 3rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); background: var(--plum-night); color: var(--cream); --focus: var(--cream); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; }
.foot-mark { font: italic 500 2rem/1 var(--display); margin-bottom: 1rem; }
.site-footer a { display: inline-block; padding-block: .2rem; min-height: 24px; }
.back-top { font-weight: 600; }

/* ---------- Reveals: start states only once the scenes are running ---------- */
.scenes-ready .reveal:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translateY(40px); }
.scenes-ready .reveal { transition: clip-path .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1); }
.scenes-ready .reveal.is-in { clip-path: inset(-0.4em -0.4em -0.4em -0.4em); transform: none; }
.scenes-ready .reveal.done { transition: none; clip-path: none; }
.scenes-ready .tiles > .reveal:nth-child(2) { transition-delay: .1s; }
.scenes-ready .tiles > .reveal:nth-child(3) { transition-delay: .2s; }
.scenes-ready .tiles > .reveal:nth-child(4) { transition-delay: .3s; }
.scenes-ready .timeline > .reveal:nth-child(2) { transition-delay: .12s; }
.scenes-ready .timeline > .reveal:nth-child(3) { transition-delay: .24s; }
.scenes-ready .timeline > .reveal:nth-child(4) { transition-delay: .36s; }
/* Hero art pieces wait for their start states. */
.pre .hero-svg .shell, .pre .hero-svg .bag { visibility: hidden; }

/* Without JS (or before the planner starts) the board still follows the ticks. */
html:not(.plan-ready) .plan:has(input[value="mac"]:not(:checked)) .board-svg .i-mac,
html:not(.plan-ready) .plan:has(input[value="choc"]:not(:checked)) .board-svg .i-choc,
html:not(.plan-ready) .plan:has(input[value="cake"]:not(:checked)) .board-svg .i-cake,
html:not(.plan-ready) .plan:has(input[value="cookie"]:not(:checked)) .board-svg .i-cookie { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; gap: .6rem; }
  .craft-head { position: relative; z-index: 1; }
  /* The art takes whatever the heading and steps leave, and never spills over them. */
  .craft-art { height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; }
  .craft-svg { width: auto; height: 100%; max-width: 100%; max-height: 42svh; pointer-events: none; }
  .craft-head .eyebrow { margin-bottom: 0; }
  .steps { gap: .35rem; }
  .craft-art figcaption { display: none; }
  .steps { align-self: start; }
  /* Pinned: only the active step keeps its text; the others stay in the accessibility tree. */
  .scenes-ready .step:not(.is-active):not(:focus-within) p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .scenes-ready .step:not(.is-active) { padding-block: .2rem; }
  .step { grid-template-columns: 2rem minmax(0, 1fr); }
  .step-n { width: 2rem; height: 2rem; }
  .step h3 { font-size: 1.15rem; }
  /* Every active card reserves the same height, so the art above never jumps between steps. */
  .scenes-ready .step.is-active p { min-height: 4.8em; }
}
@media (max-width: 860px) {
  .hero, .story-grid, .visit-grid, .close-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .board-art, .plan-out { grid-column: 1; grid-row: auto; }
  .board-art { position: sticky; top: calc(var(--header) + .5rem); z-index: 2; }
  .board-svg { max-height: 34svh; margin-inline: auto; }
  .board-art figcaption { display: none; }
  .close-art { order: -1; }
  .story-art { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .visit-list li, .timeline li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
/* Short or landscape screens: the craft scene becomes a static, readable list. */
@media (max-height: 600px), (max-width: 899px) and (max-height: 700px) {
  .craft-track { height: auto; }
  .craft-stage { position: static; height: auto; overflow: visible; }
  .scenes-ready .step:not(.is-active):not(:focus-within) p { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .board-art { position: static; }
}
html:not(.scenes-ready) .craft-track { height: auto; }
html:not(.scenes-ready) .craft-stage { position: static; height: auto; overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .scenes-ready .reveal, .scenes-ready .step { transition: none; }
  .craft-track { height: 300svh; }
}

/* ---------- Forced colours and print ---------- */
@media (forced-colors: active) {
  .choice input:checked + span { border: 4px double CanvasText; text-decoration: underline; }
  .choice input:focus-visible + span { outline: 3px solid Highlight; }
  .step.is-active { border: 4px double CanvasText; }
}
@media print {
  .site-header { position: static; }
  .menu-toggle, .skip, .skip-scene, [data-copy], #copy-note { display: none !important; }
  .craft-track { height: auto; }
  .craft-stage { position: static; height: auto; overflow: visible; }
  .reveal { clip-path: none !important; transform: none !important; }
  .step p { position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; overflow-wrap: anywhere; }
  .craft, .story, .close, .site-footer { background: #fff; color: #000; }
}
