/* Autumn Child Care. Tokens first, then base, layout, components, tour, print. */
:root {
  --cream: #fbf3e4;
  --paper: #fffaf0;
  --sand: #f3e4c9;
  --ink: #2b1d14;
  --ink-soft: #5a4636;
  --maple: #c4511a;      /* buttons, 5.2:1 vs white */
  --maple-text: #a8420f; /* text on cream */
  --honey: #e9a93b;
  --sage: #7a8f6a;
  --sage-dark: #44573b;
  --line: #e4d2b2;
  --ph-bg: #fff0b3;
  --ph-ink: #5c4300;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(92,52,20,.08), 0 14px 32px -14px rgba(120,60,20,.28);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
  --ease: cubic-bezier(.2,.7,.2,1);
  --max: 1160px;
  --hdr: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 1rem); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 var(--s2); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3, .h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 var(--s2); text-wrap: pretty; }
a { color: var(--maple-text); text-underline-offset: 3px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--honey); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; min-height: 44px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: var(--s5); }
.section + .section { padding-top: var(--s4); }
.eyebrow { font: 700 .8rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--maple-text); margin-bottom: var(--s2); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: var(--s4); }
.prose h2:first-child { margin-top: 0; }

/* Preview bar + pending chips */
.preview-bar { background: var(--ink); color: #f7e9cf; font-size: .8rem; text-align: center; padding: .4rem 1rem; letter-spacing: .02em; }
.preview-bar > b { background: var(--honey); color: var(--ink); padding: .1rem .45rem; border-radius: 4px; margin-right: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.ph { display: inline-block; background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed #b88a00; border-radius: 6px; padding: 0 .4rem; font: 800 .68rem/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.concept { position: absolute; background: rgba(43,29,20,.78); color: #fff; font: 700 .7rem/1 var(--font-body); padding: .4rem .6rem; border-radius: 999px; letter-spacing: .06em; }
.note { background: var(--paper); border-left: 4px solid var(--honey); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.empty-state { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: var(--s3); }

/* Buttons */
.btn { touch-action: manipulation; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font: 700 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn-primary { background: var(--maple); color: #fff; box-shadow: 0 6px 16px -6px rgba(196,81,26,.7); }
.btn-primary:hover { background: #a8420f; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost.on-dark { color: #fff8ea; border-color: #fff8ea; }
.btn-ghost.on-dark:hover { background: #fff8ea; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.go { font-weight: 800; color: var(--maple-text); }
.go::after { content: " \2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,243,228,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: var(--s2); min-height: var(--hdr); }
.logo img { height: 44px; width: auto; }
.nav { display: none; margin-left: auto; align-items: center; gap: .1rem; }
.nav a, .switcher summary { color: var(--ink); text-decoration: none; font-weight: 700; padding: .6rem .8rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"], .switcher summary:hover, .switcher[open] summary { background: var(--sand); color: var(--ink); }
.switcher { position: relative; background: none; border: 0; padding: 0; }
.switcher summary { list-style: none; cursor: pointer; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary::after { content: ""; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.switcher-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .4rem; display: grid; }
.switcher-menu a { display: block; border-radius: 8px; }
.switcher-menu small { display: block; font-weight: 400; color: var(--ink-soft); }
.hdr-actions { display: none; align-items: center; gap: .6rem; }
.hdr-phone { font-weight: 800; color: var(--ink); text-decoration: none; padding: .6rem .4rem; white-space: nowrap; }
.menu-btn { margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 999px; min-width: 48px; min-height: 48px; font: 700 .9rem var(--font-body); color: var(--ink); cursor: pointer; padding: 0 1rem; }
.mobile-panel { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: var(--s2) 0 var(--s3); max-height: calc(100svh - var(--hdr)); overflow-y: auto; }
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: .9rem 0; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { display: flex; margin-top: var(--s1); width: 100%; border-bottom-width: 2px; }
.mobile-panel .btn-primary { border-bottom-color: transparent; }
@media (min-width: 1080px) {
  .nav, .hdr-actions { display: flex; }
  .menu-btn, .mobile-panel { display: none !important; }
}

/* Phone quick actions: call + book always one tap away */
.bottombar { position: fixed; inset: auto 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(251,243,228,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.bottombar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); }
.bottombar a.primary { background: var(--maple); border-color: var(--maple); color: #fff; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1080px) { .bottombar { display: none; } body { padding-bottom: 0; } }

/* Home hero */
.home-hero { padding-block: var(--s4) var(--s5); background: linear-gradient(180deg, var(--sand), var(--cream)); }
.home-hero-grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .home-hero-grid { grid-template-columns: 1.35fr 1fr; } }
.trust { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.trust li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .95rem; }
.trust strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.centre-pick { display: grid; gap: .8rem; }
.centre-card { display: grid; gap: .2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), border-color .25s; }
.centre-card:hover { transform: translateY(-3px); border-color: var(--maple); color: var(--ink); }
.centre-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

/* Cards, grids */
.grid { display: grid; gap: var(--s3); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.prog-card { display: flex; flex-direction: column; gap: .4rem; border-radius: var(--radius); padding: var(--s3); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.prog-card p { margin: 0; }
.prog-card .go { margin-top: auto; padding-top: .6rem; }
@media (hover: hover) { .prog-card:hover { transform: translateY(-3px); color: var(--ink); } }
.prog-1 { background: #fbe8bd; }
.prog-2 { background: #e6edda; }
.prog-3 { background: #f6dccb; }
.age { font: 700 1rem var(--font-body); color: var(--maple-text); }
.prog-hero { background: none; }
.prog-hero.prog-1 { background: linear-gradient(180deg, #fbe8bd, var(--cream)); }
.prog-hero.prog-2 { background: linear-gradient(180deg, #e6edda, var(--cream)); }
.prog-hero.prog-3 { background: linear-gradient(180deg, #f6dccb, var(--cream)); }
.values { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value { padding: var(--s3); border-radius: var(--radius); background: var(--sand); }
.value h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.band { background: var(--ink); color: #f7e9cf; border-radius: calc(var(--radius) * 1.4); padding: clamp(1.5rem, 5vw, 3.5rem); display: grid; gap: var(--s3); align-items: center; }
.band h2, .band h3 { color: #fff8ea; }
.band .eyebrow { color: #ffd9a0; }
.band p { color: #ead9b9; }
.band a:not(.btn) { color: #ffd9a0; }
@media (min-width: 800px) { .band { grid-template-columns: 1.3fr 1fr; } .band.helper { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.08); padding: .8rem 1rem; border-radius: var(--radius-sm); }
.steps li::before { content: counter(s); width: 2rem; height: 2rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--honey); color: var(--ink); font-weight: 800; }
.big-steps { list-style: none; counter-reset: b; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.big-steps > li { counter-increment: b; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s3) var(--s3) 4.6rem; }
.big-steps > li::before { content: counter(b); position: absolute; left: var(--s3); top: var(--s3); width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--maple); color: #fff; font: 600 1.2rem var(--font-display); }
.mini-steps { padding-left: 1.2rem; margin: 0 0 var(--s2); }
.mini-steps li { margin-bottom: .4rem; }

/* Page hero (inner pages) */
.page-hero { padding-block: var(--s4) var(--s3); background: linear-gradient(180deg, var(--sand), var(--cream)); }
.page-hero h1 { max-width: 20ch; }
.crumbs { padding-top: var(--s2); }
.breadcrumb { font-size: .9rem; color: var(--ink-soft); }
.breadcrumb a { display: inline-block; padding-block: .6rem; }
.split { display: grid; gap: var(--s4); align-items: center; }
.split.top { align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2rem; border-radius: 50%; background: var(--sage-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 2px; background: var(--honey); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 var(--s2) var(--s3); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 15px; height: 15px; background: var(--maple); border-radius: 50%; border: 3px solid var(--cream); }
.timeline time { font-weight: 800; color: var(--maple-text); display: block; font-size: .9rem; }
.facts { display: grid; grid-template-columns: minmax(7rem, auto) minmax(0, 1fr); gap: .5rem 1.2rem; margin: 0 0 var(--s3); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.facts.wide { grid-template-columns: 1fr; gap: .2rem; }
.facts.wide dd { margin-bottom: var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .facts.wide { grid-template-columns: 16rem 1fr; gap: 0 1.5rem; } .facts.wide dt { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); } }
.link-list { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: .75rem 0; font-weight: 700; }
.other-progs { margin-top: var(--s4); color: var(--ink-soft); }
.sm-group { margin-bottom: var(--s3); }
.sm-group h2 { font-size: 1.3rem; }
.sm-group ul { columns: 2 14rem; padding-left: 1.2rem; }
.sm-group li { padding: .25rem 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--sand); font-family: var(--font-display); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 700; }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .table-wrap table { min-width: 0; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead, .table-wrap caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s2); padding: var(--s2); box-shadow: var(--shadow); }
  .table-wrap th[scope=row] { font-family: var(--font-display); font-size: 1.3rem; padding: 0 0 .5rem; border: 0; }
  .table-wrap td { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border: 0; border-top: 1px solid var(--line); }
  .table-wrap td::before { content: attr(data-label); font-weight: 700; color: var(--ink-soft); }
}
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1rem; }
details + details { margin-top: .6rem; }
summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: .7rem 0; font-weight: 800; }
summary:hover { color: var(--maple-text); }
.loc { display: grid; gap: var(--s3); }
@media (min-width: 860px) { .loc { grid-template-columns: 1fr 1fr; } }
.mapbox { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); min-height: 260px; display: grid; place-items: center; border: 1px solid var(--line); padding: var(--s2); text-align: center; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tabs (sample day) */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--s2); }
.tabs [role=tab] { min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 1rem var(--font-body); cursor: pointer; }
.tabs [role=tab][aria-selected=true] { background: var(--ink); color: var(--cream); }
.tabpanel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); }
.print-only { display: none; }

/* Tour picker */
.tour-pick { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease); }
.tour-pick img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tour-pick-body { display: grid; padding: var(--s2) var(--s3) var(--s3); }
.tour-pick-body strong { font: 600 1.4rem var(--font-display); }
.tour-pick:hover { transform: translateY(-3px); color: var(--ink); }
.tour-pick-art { aspect-ratio: 16/9; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--maple) 35%, transparent), transparent 60%), linear-gradient(135deg, var(--sand), var(--paper)); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s2); margin-block: var(--s3); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

/* Forms */
.field { display: grid; gap: .35rem; margin-bottom: var(--s2); border: 0; padding: 0; }
label, legend { font-weight: 800; }
legend { padding: 0; margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: inherit; padding: .8rem 1rem; min-height: 48px; border: 2px solid var(--ink-soft); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%; }
input[type=radio], input[type=checkbox] { width: 1.3rem; height: 1.3rem; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--maple); }
.inline-choices { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.inline-choices legend { width: 100%; }
.inline-choices label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: var(--s2); font-weight: 600; }
.consent input { margin-top: .2rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #9b1c1c; font-weight: 700; font-size: .95rem; margin: 0; }
.err:empty { display: none; }
.hint { color: var(--ink-soft); font-size: .92rem; }
.faq-search { max-width: 32rem; margin-bottom: var(--s3); }
.form-status { margin-top: var(--s2); border-radius: var(--radius-sm); }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e6edda; border-left: 4px solid var(--sage-dark); padding: 1rem; }
.form-status.is-error { background: #fbe3dc; border-left: 4px solid #9b1c1c; padding: 1rem; }
.book { display: grid; gap: var(--s4); }
@media (min-width: 960px) { .book { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.choices { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 0; padding: 0; margin: 0 0 var(--s2); }
.choices legend { grid-column: 1 / -1; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s, background .2s; height: 100%; }
.choice span small { display: block; color: var(--ink-soft); font-weight: 400; }
.choice input:checked + span { border-color: var(--maple); background: #fff1e2; }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--honey); }
.summary { background: var(--sand); border-radius: var(--radius); padding: var(--s3); }
@media (min-width: 960px) { .summary { position: sticky; top: calc(var(--hdr) + 24px); } }

/* Footer */
.site-footer { background: var(--ink); color: #ead9b9; padding-block: var(--s5) var(--s3); margin-top: var(--s5); }
.site-footer a { color: #ffd9a0; display: inline-block; padding-block: .3rem; }
.site-footer a:hover { color: #fff; }
.site-footer img { height: 52px; width: auto; filter: invert(1) brightness(1.1); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.fgrid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font: 800 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff8ea; margin-bottom: .8rem; }
.fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: var(--s4); padding-top: var(--s2); font-size: .85rem; }

/* Reveal motion */
@media (scripting: enabled) { /* hidden-until-seen only when JS can reveal it */
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- At their height tour ----------
   Without JS (or in story mode) each chapter is a photo + caption, in order.
   tour.js adds .is-live: the track gets its scroll length, the stage pins, one chapter shows at a time. */
.tour { padding-block: var(--s4) var(--s3); }
.tour-head { margin-bottom: var(--s3); }
.review-label { background: var(--ph-bg); color: var(--ph-ink); border: 1px dashed #b88a00; border-radius: var(--radius-sm); padding: .7rem 1rem; max-width: 60ch; }
.skip-tour { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.tour-stage { position: relative; }
.tour-story { list-style: none; margin: 0 auto; padding: 0; width: min(100% - 2rem, var(--max)); display: grid; gap: var(--s4); }
.tour-ch { display: grid; gap: var(--s2); }
@media (min-width: 860px) { .tour-ch { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.tour-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #3a2414; aspect-ratio: 16/9; }
.tour-media img, .tour-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-media video { opacity: 0; transition: opacity .4s; }
.tour-media video.ready { opacity: 1; }
.tour-copy :is(h2, h3) { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tour-copy :is(h2, h3):focus { outline: none; }
.tour-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.tour-rail, .tour-tools { display: none; }
.tour-stage > .concept { top: var(--s2); left: var(--s2); display: none; }
.transcript { margin-top: var(--s3); }
.transcript ol { padding-left: 1.2rem; }

.tour.is-live { padding-bottom: 0; }
.tour.is-live .tour-stage { position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); min-height: 460px; overflow: hidden; background: #3a2414; }
.tour.is-live .tour-stage::after { /* yard-door daylight: --day rises 0..1 across the peak chapter */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 90% at 50% 35%, #fff6dc 0%, rgba(255,232,180,.6) 45%, rgba(255,232,180,0) 80%);
  opacity: calc(var(--day, 0) * .55); mix-blend-mode: screen;
}
.tour.is-live .tour-story { position: absolute; inset: 0; width: auto; display: block; }
.tour.is-live .tour-ch { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.tour.is-live .tour-ch.on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.tour.is-live .tour-media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.tour.is-live .tour-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,29,20,0) 40%, rgba(43,29,20,.78) 100%), linear-gradient(90deg, rgba(43,29,20,.45), rgba(43,29,20,0) 60%); }
.tour.is-live .tour-copy { position: absolute; z-index: 3; left: max(1rem, calc((100% - var(--max)) / 2)); bottom: clamp(1.5rem, 7vh, 4rem); max-width: 34rem; padding-right: 1rem; color: #fff8ea; }
.tour.is-live .tour-copy :is(h2, h3) { color: #fff8ea; text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.tour.is-live .tour-copy p { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.tour.is-live .tour-copy .eyebrow { color: #ffd9a0; }
.tour.is-live .tour-copy .btn-ghost { color: #fff8ea; border-color: #fff8ea; text-shadow: none; }
.tour.is-live .tour-copy .btn-ghost:hover { background: #fff8ea; color: var(--ink); }
.tour-leaves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.tour.is-live .tour-rail { display: flex; position: absolute; z-index: 4; right: max(1rem, calc((100% - var(--max)) / 2)); top: 50%; transform: translateY(-50%); flex-direction: column; gap: .4rem; }
.tour-rail a { min-height: 44px; display: flex; align-items: center; padding: 0 1rem; border-radius: 999px; background: rgba(43,29,20,.55); color: #fff8ea; text-decoration: none; font-weight: 700; font-size: .9rem; backdrop-filter: blur(6px); }
.tour-rail a[aria-current] { background: var(--paper); color: var(--ink); }
.tour.is-live .tour-tools, .tour .tour-tools:has(.tour-motion:not([hidden])) { display: flex; position: absolute; z-index: 4; top: var(--s2); right: var(--s2); }
.tour:not(.is-live) .tour-tools:has(.tour-motion:not([hidden])) { position: static; justify-content: center; margin-top: var(--s3); }
.tour-motion { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid #fff8ea; background: rgba(43,29,20,.6); color: #fff8ea; font: 700 .9rem var(--font-body); cursor: pointer; }
.tour:not(.is-live) .tour-motion { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.tour.is-live .tour-stage > .concept, .tour-media .concept { display: block; }
/* Photo chapters: real stills. Story mode = a small gallery; live = framed print over a blurred copy, cross-faded and pushed in by --k */
.tour-media.photos { aspect-ratio: auto; background: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s1); }
.tour-media.photos img { position: static; aspect-ratio: 4/3; border-radius: var(--radius-sm); }
.tour-media.photos .bg { display: none; }
.tour.is-live .tour-media.photos { display: block; background: #3a2414; }
.tour.is-live .tour-media.photos .bg { display: block; position: absolute; inset: -6%; width: 112%; height: 112%; filter: blur(28px) saturate(1.1) brightness(.62); border-radius: 0; aspect-ratio: auto; }
.tour.is-live .tour-media.photos img:not(.bg) { position: absolute; inset: 9% 5% 9% auto; width: min(48%, 760px); height: auto; aspect-ratio: 4/3; margin: auto 0; top: 0; bottom: 0; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); opacity: 0; transform: scale(calc(1.01 + var(--k, 0) * .06)) translateX(calc(var(--k, 0) * -1.5%)); transform-origin: 40% 55%; will-change: opacity, transform; }
.tour.is-live .tour-media.photos .bg + img { opacity: 1; }
.tour.is-live .tour-media.photos::after { background: linear-gradient(90deg, rgba(43,29,20,.82), rgba(43,29,20,.2) 55%, rgba(43,29,20,0)); }
/* Graphic chapters: an illustration, never a picture of a room. The leaf turns and grows with --k */
.tour-media.graphic { display: grid; place-items: center; background: linear-gradient(160deg, #6b3a1c, #c4511a); }
.tour-media.graphic.g1 { background: linear-gradient(160deg, #8a5a2b, #e9a93b); }
.tour-media.graphic.g2 { background: linear-gradient(160deg, #44573b, #b9c79a); }
.tour-media.graphic.g3 { background: linear-gradient(160deg, #a8420f, #f3c27a); }
.tour-media.graphic svg { position: absolute; width: min(46%, 420px); height: auto; inset: 0; margin: auto; overflow: visible; }
.tour-media.graphic path { fill: #fff8ea; fill-opacity: .2; }
.tour-media.graphic span { position: absolute; right: 6%; bottom: 4%; font: 600 clamp(4rem, 14vw, 11rem)/1 var(--font-display); color: rgba(255,248,234,.22); }
.tour.is-live .tour-media.graphic svg { inset: 0 0 0 auto; right: 18%; width: min(36%, 380px); transform: rotate(calc(var(--k, 0) * 24deg - 12deg)) scale(calc(.9 + var(--k, 0) * .15)); }
@media (min-width: 861px) { .tour-photos.is-live .tour-copy { max-width: min(34rem, 36vw); } }
@media (max-width: 860px) {
  .tour.is-live .tour-media.photos img:not(.bg) { inset: 5.5rem auto auto 1rem; width: calc(100% - 2rem); margin: 0; bottom: auto; }
  .tour.is-live .tour-media.photos::after { background: linear-gradient(180deg, rgba(43,29,20,0) 35%, rgba(43,29,20,.9) 70%); }
  .tour.is-live .tour-media.graphic svg { right: 0; left: 0; top: -30%; width: 56%; }
}
@media (max-width: 1079px) { /* keep the stage clear of the fixed call/book bar */
  .tour.is-live .tour-stage { height: calc(100svh - var(--hdr) - 68px - env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  .tour.is-live .tour-rail { top: auto; bottom: auto; right: auto; left: 0; top: 3.6rem; transform: none; width: 100%; flex-direction: row; justify-content: center; gap: .3rem; padding-inline: .5rem; }
  .tour-rail a { padding: 0 .7rem; font-size: .8rem; }
  .tour.is-live .tour-copy { bottom: 1.2rem; }
  .tour.is-live .tour-copy p:not(.eyebrow):not(.tour-cta) { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .bottombar, .preview-bar, .skip, .tabs, .tour, .cta-row, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .tabpanel[hidden] { display: block !important; }
  .tabpanel { border: 0; padding: 0; break-inside: avoid; margin-bottom: 1.5rem; }
  .print-only { display: block; }
  .no-print-break { break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
  a { color: inherit; }
}
