/*
  Stagehand.
  Paper, tape, polaroids and records. One type scale, one spacing scale, one
  set of buttons and inputs, shared by every view. Feature files (tourplan.css,
  pipeline.css, regions.css, film.css) only hold what is truly theirs.
*/

/* ---------------------------------------------------------------- tokens */
:root {
  /* colour */
  --paper: #efe8dc;
  --paper-2: #e5ddcf;
  --card: #f8f4ec;
  --ink: #1d1b16;
  --ink-2: #4c463e;
  --ink-3: #6a6258;
  --line: rgba(29, 27, 22, 0.18);
  --line-strong: rgba(29, 27, 22, 0.75);
  --wine: #742d36;
  --wine-deep: #3c1419;
  --cherry: #8e1424;
  --olive: #4a5140;
  --olive-deep: #3b4133;
  --sage: #c3c9a8;
  --tape: rgba(178, 189, 150, 0.72);
  --doodle-blue: #2d5a8a;
  --magenta: #a3195b;
  --blush: #f3e7d8;
  --brass: #d9a441;
  --serif: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --on-dark: #f3ece1;
  --on-dark-2: #ddd0be;
  --good: #3d6b35;
  --bad: #a3261e;
  --focus: #2d5a8a;

  /* type */
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --script: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --type: "Special Elite", "Courier New", Courier, monospace;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: clamp(22px, 2.6vw, 28px);
  --fs-2xl: clamp(34px, 5vw, 60px);
  --fs-3xl: clamp(44px, 7.4vw, 96px);
  --fs-hero: clamp(56px, 8.4vw, 124px);

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(64px, 9vw, 120px);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;

  /* shape */
  --radius: 3px;
  --shadow-offset: 5px 5px 0;
  --shadow-photo: 0 12px 28px rgba(40, 25, 10, 0.2), 0 2px 4px rgba(40, 25, 10, 0.12);
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-md)/1.55 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* very faint record grooves in the paper, like the mockups */
  background-image: repeating-radial-gradient(circle at 50% 30%, rgba(29, 27, 22, 0.018) 0 1px, transparent 1px 7px);
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; color: var(--ink); }
p { margin: 0; }
.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; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.frame.black :focus-visible, .band.wine :focus-visible, .band.olive :focus-visible, .viewer-frame :focus-visible { outline-color: #f3d27a; }

.skip { position: absolute; left: var(--s4); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); text-decoration: none; }
.skip:focus { top: var(--s2); }

/* ---------------------------------------------------------------- type */
.display { font-size: var(--fs-2xl); }
.page-title { font-size: var(--fs-3xl); line-height: 0.98; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; color: var(--wine); display: inline-block; transform: rotate(-2deg); }
.eyebrow, .kicker { font-family: var(--type); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 var(--s4); font-weight: 400; }
.page-sub, .lede-dark { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); max-width: 640px; margin-top: var(--s5); }
.lede { font-size: var(--fs-lg); line-height: 1.5; color: var(--on-dark-2); margin-top: var(--s5); max-width: 640px; }
.note { color: var(--ink-3); font-size: var(--fs-sm); margin-top: var(--s3); max-width: 720px; }
.fine { color: var(--ink-3); font-size: var(--fs-xs); margin-top: var(--s3); }
.sub { color: var(--ink-2); }
.sub-head { font-size: var(--fs-xl); margin: var(--s8) 0 0; letter-spacing: -0.02em; }
.mini-head { font-family: var(--type); font-weight: 400; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: var(--s6) 0 var(--s3); }
.ok { color: var(--good); }
.over { color: var(--bad); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 1240px; }
.wrap.narrow { max-width: 720px; }
.frame, .page { padding: var(--section) 0; }
.page { padding-top: clamp(40px, 6vw, 80px); }
.band { padding: var(--section) 0; }
.band.olive { background: var(--olive); color: var(--on-dark); }
.band.wine { background: var(--wine); color: var(--on-dark); }
.band.olive h1, .band.wine h1, .band.olive h2, .band.wine h2, .band.olive h3, .band.wine h3 { color: var(--on-dark); }
.band.olive .eyebrow, .band.wine .eyebrow { color: var(--on-dark-2); }
.band.olive .script { color: #e9dcc0; }
.band.wine .script { color: #f3e7d8; }

/* views: one is on screen at a time */
.view { display: none; }
body[data-view="home"] .view[data-view="home"],
body[data-view="search"] .view[data-view="search"],
body[data-view="explore"] .view[data-view="explore"],
body[data-view="book"] .view[data-view="book"],
body[data-view="results"] .view[data-view="results"],
body[data-view="property"] .view[data-view="property"],
body[data-view="tour"] .view[data-view="tour"],
body[data-view="image"] .view[data-view="image"],
body[data-view="film"] .view[data-view="film"],
body[data-view="bookings"] .view[data-view="bookings"],
body[data-view="cities"] .view[data-view="cities"] { display: block; }

/* ---------------------------------------------------------------- masthead: browser tabs */
.masthead {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: flex-end; gap: var(--s4); padding: 0 var(--gutter);
  background: var(--paper-2); border-bottom: 2px solid var(--ink);
}
.logo {
  align-self: center; flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.logo svg { width: 100%; height: 100%; color: var(--ink); transition: transform .4s ease-out; }
.logo .logo-label { fill: var(--cherry); }
.logo .logo-star { fill: var(--paper); }
.logo:hover svg { transform: rotate(40deg); }
.logo:hover { background: transparent; }
.modes { display: flex; align-items: flex-end; gap: 4px; margin-bottom: -2px; min-width: 0; }
.modes a {
  position: relative; display: block; padding: 11px 22px 10px; min-width: 96px; text-align: center;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  background: rgba(239, 232, 220, 0.5); border: 2px solid var(--line-strong); border-bottom-color: var(--ink); border-radius: 12px 12px 0 0;
}
.modes a:hover { background: var(--paper); color: var(--ink); }
.modes a.on { background: var(--paper); color: var(--ink); border-color: var(--ink); border-bottom-color: var(--paper); z-index: 1; }
.modes a.on::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 6px; height: 2px; background: var(--cherry); border-radius: 2px; }
.nav-cta { align-self: center; margin-left: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding: 2px 0; white-space: nowrap; }
.nav-cta:hover { color: var(--cherry); border-color: var(--cherry); }

/* ---------------------------------------------------------------- buttons and inputs */
.btn, .cta, .searchbar button, .pl-cta, #approve, #copy-email {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 46px; padding: 0 var(--s5); border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font: 600 var(--fs-sm)/1 var(--body); letter-spacing: 0.01em;
  text-decoration: none; box-shadow: var(--shadow-offset) var(--wine); transition: transform .12s, box-shadow .12s;
}
.btn:hover, .cta:hover, .searchbar button:hover, .pl-cta:hover, #approve:hover, #copy-email:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--wine); }
.btn:active, .cta:active, .searchbar button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--wine); }
.btn:disabled, .cta:disabled, .searchbar button:disabled, .pl-cta:disabled, #approve:disabled { opacity: 0.65; cursor: progress; transform: none; }
.cta { margin-top: var(--s6); }
.band .btn, .frame.black .btn { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-offset) rgba(0, 0, 0, 0.35); }

/* quiet text buttons */
.link, .link-dark, .pl-link, .tp-vote, .try button, .room-picker button, .rooms button {
  color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: var(--fs-sm);
}
.link:hover, .link-dark:hover, .pl-link:hover, .tp-vote:hover { color: var(--ink); }

/* fields */
input[type=date], input[type=text], input:not([type]), select, textarea { font: inherit; color: var(--ink); }
input[type=date], input:not([type]), select {
  font-size: var(--fs-sm); background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 8px 10px; min-height: 42px;
}
input[type=range] { accent-color: var(--wine); }

/* the search bar: one component for the scout, the tour and film briefs */
.searchbar {
  display: flex; align-items: center; gap: var(--s4); margin-top: var(--s7); padding: var(--s3) var(--s3) var(--s3) var(--s5);
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 rgba(29, 27, 22, 0.28); color: var(--ink);
}
.searchbar textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); line-height: 1.45; padding: var(--s2) 0; }
.searchbar textarea::placeholder { color: var(--ink-3); }
.searchbar:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.searchbar button { flex: none; background: var(--wine); box-shadow: none; }
.searchbar button:hover { background: var(--wine-deep); box-shadow: none; transform: none; }

/* little cassette reels in the search bar; they turn while the scout works */
.cassette-window { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 16px; background: var(--ink); }
.reel { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, var(--card) 0 3px, var(--ink) 4px 5px, #8a7a68 6px 9px, #3a302a 10px); border: 1.5px dashed rgba(248, 244, 236, 0.5); }
.tape { width: 14px; height: 8px; background: #6a5444; border-radius: 2px; }
.scouting .reel { animation: reel 1.1s linear infinite; }
@keyframes reel { to { transform: rotate(360deg); } }

/* chips: the example briefs */
.try { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s5); font-family: var(--type); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.try .sep { display: none; }
.try button { font: 500 var(--fs-xs)/1 var(--body); letter-spacing: 0.02em; text-transform: none; text-decoration: none; color: var(--ink); padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.try button:hover { background: var(--ink); color: var(--paper); }
.band .try { color: var(--on-dark-2); }
.band .try button { color: var(--on-dark); border-color: rgba(243, 236, 225, 0.55); }
.band .try button:hover { background: var(--on-dark); color: var(--ink); }

/* segmented control */
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius); border: 1.5px solid rgba(243, 236, 225, 0.5); }
.seg button { padding: 7px 18px; border-radius: 2px; font-size: var(--fs-sm); color: var(--on-dark-2); }
.seg button.on { background: var(--on-dark); color: var(--ink); font-weight: 600; }
.seg.light { border-color: var(--line-strong); }
.seg.light button { color: var(--ink-2); }
.seg.light button.on { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- shared figures and lists */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s7); border-top: 2px solid var(--ink); }
.fig { padding: var(--s5) var(--s4) 0 0; min-width: 0; }
.fig + .fig { padding-left: var(--s4); border-left: 1px solid var(--line); }
.fig .n { font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; overflow-wrap: anywhere; }
.fig .n small { font-family: var(--body); font-size: 0.36em; font-weight: 600; letter-spacing: 0; margin-left: 4px; color: var(--ink-2); }
.fig .l { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--s3); line-height: 1.4; }
.fig.good .n { color: var(--good); }

.specs { margin: var(--s6) 0 0; display: grid; text-align: left; }
.specs div { display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; text-align: right; }
.specs.cols { grid-template-columns: 1fr 1fr; column-gap: var(--s7); }
.dark-specs div { border-color: rgba(243, 236, 225, 0.2) !important; }
.dark-specs dt { color: var(--on-dark-2); }

.rows { list-style: none; padding: 0; margin: var(--s6) 0 0; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .name { font-family: var(--display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.rows .price { font-family: var(--display); font-size: var(--fs-lg); font-weight: 700; text-align: right; }
.rows .meta { color: var(--ink-2); font-size: var(--fs-sm); grid-column: 1 / -1; }
.rows .same { color: var(--good); font-weight: 600; }

.ledger { list-style: none; padding: 0; margin: var(--s5) 0 0; color: var(--ink-2); font-size: var(--fs-sm); }
.ledger li { padding: var(--s2) 0; border-top: 1px dashed var(--line); }

/* collapsible detail */
.fold { margin-top: var(--s7); border-top: 2px solid var(--ink); }
.fold > summary { cursor: pointer; list-style: none; padding: var(--s4) 0; font-family: var(--type); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; display: flex; justify-content: space-between; gap: var(--s4); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font-family: var(--body); font-size: 22px; line-height: 1; }
.fold[open] > summary::after { content: "\2212"; }
.fold.dark { border-color: var(--on-dark-2); }
.fold.dark > summary { color: var(--on-dark); }

/* ---------------------------------------------------------------- scrapbook pieces */
.polaroid { position: relative; display: block; margin: 0; padding: 12px 12px 0; background: var(--card); box-shadow: var(--shadow-photo); transform: rotate(var(--tilt, -2deg)); color: var(--ink); text-decoration: none; }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #2b2722; }
.polaroid figcaption { font-family: var(--type); font-size: var(--fs-xs); padding: 12px 4px 16px; color: var(--ink); }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 42%; height: 30px; transform: translateX(-50%) rotate(-4deg); background: var(--tape); z-index: 1; }
.doodle { position: absolute; color: var(--ink); pointer-events: none; }

/* ---------------------------------------------------------------- HOME: the opening page */
.paper-hero { position: relative; overflow: hidden; }
.hero-stage { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: var(--s8) var(--gutter); }
.vinyl-canvas { position: absolute; inset: 0; z-index: 0; cursor: pointer; }
.lyric { position: relative; z-index: 3; text-align: center; max-width: 920px; pointer-events: none; }
.lyric a { pointer-events: auto; }
.lyric .eyebrow { margin-bottom: var(--s3); }
.hero-title { font-family: var(--serif); font-size: clamp(52px, 8.6vw, 140px); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; color: var(--ink); }
.hero-title em { font-style: italic; font-weight: 600; color: var(--cherry); }
.hero-sub { font-size: var(--fs-md); color: var(--ink-2); max-width: 460px; margin: var(--s5) auto 0; }
.hint-record { font-family: var(--script); font-size: 21px; color: var(--ink-2); margin-top: var(--s3); transform: rotate(-2deg); }

/* the glowing blob: a hand-drawn oval that breathes, and zooms into the search page */
.hero-cta {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; margin-top: var(--s6);
  width: clamp(270px, 32vw, 440px); aspect-ratio: 440 / 170; color: var(--paper); text-decoration: none; transition: transform .25s ease-out;
}
.hero-cta::before {
  content: ""; position: absolute; inset: -30% -16%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 231, 216, 0.6), rgba(243, 231, 216, 0.35) 55%, rgba(243, 231, 216, 0) 100%);
  animation: breathe 3.6s ease-in-out infinite alternate;
}
.blob { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.blob-fill { fill: var(--cherry); transition: transform .2s ease-out, fill .2s; }
.blob-shadow { fill: var(--wine-deep); transform: translate(0, 9px); transition: transform .2s ease-out; }
.blob-shine { fill: none; stroke: rgba(255, 220, 228, 0.55); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: transform .2s ease-out; }
.blob-line { transition: transform .2s ease-out; }
.cta-arrow { width: 0.8em; height: 0.8em; vertical-align: -0.08em; margin-left: 0.2em; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.hero-cta:hover .blob-fill, .hero-cta:hover .blob-line, .hero-cta:hover .blob-shine { transform: translate(0, -4px); }
.hero-cta:hover .blob-fill { fill: #a51a2c; }
.hero-cta:hover .blob-shadow { transform: translate(0, 12px); }
.hero-cta:active .blob-fill, .hero-cta:active .blob-line, .hero-cta:active .blob-shine { transform: translate(0, 6px); }
.hero-cta:active .blob-shadow { transform: translate(0, 7px); }
.hero-cta:hover .hero-cta-text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.blob-line { fill: none; stroke: var(--wine-deep); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-cta-text { position: relative; font-family: var(--script); font-size: clamp(28px, 3vw, 40px); line-height: 1; transform: rotate(-3deg); }
.hero-cta:hover { color: var(--paper); transform: scale(1.04) rotate(-1deg); }
.hero-cta:hover::before { animation-duration: 1.6s; }
.hero-cta:focus-visible { outline-offset: 10px; border-radius: 40%; }
@keyframes breathe { from { opacity: 0.55; transform: scale(0.94); } to { opacity: 1; transform: scale(1.08); } }

/* the zoom: a sheet the colour of the search page, moved with transform and opacity only */
.zoom-veil { position: fixed; inset: 0; z-index: 60; background: var(--olive); pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity; }


/* top right: real buildings, cut out as polaroids and a sticker */
.houses { position: absolute; z-index: 2; top: clamp(16px, 4vh, 48px); right: clamp(12px, 3vw, 56px); width: clamp(220px, 26vw, 380px); aspect-ratio: 1 / 0.92; }
.hero-snap { position: absolute; margin: 0; }
.hero-snap img { aspect-ratio: 1; }
.snap-a { right: 0; top: 0; width: 56%; --tilt: 6deg; }
.snap-b { left: 0; top: 16%; width: 52%; --tilt: -7deg; }
.snap-c { position: absolute; right: 22%; bottom: 0; width: 34%; margin: 0; transform: rotate(10deg); }
.sticker img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 6px solid #fff; border-radius: 22px; box-shadow: var(--shadow-photo); }
.script-note { position: absolute; z-index: 2; right: clamp(16px, 5vw, 80px); top: calc(clamp(16px, 4vh, 48px) + clamp(220px, 26vw, 380px) * 0.92 + 44px); font-family: var(--script); font-size: clamp(22px, 2.2vw, 30px); color: var(--cherry); transform: rotate(-6deg); white-space: nowrap; }

/* bottom: marker drawings that draw themselves in once */
.doodle { position: absolute; pointer-events: none; }
.doodle-notes { z-index: 2; left: clamp(8px, 2vw, 40px); bottom: clamp(12px, 4vh, 48px); width: clamp(190px, 25vw, 360px); color: var(--magenta); }
.doodle-cam { z-index: 2; right: clamp(8px, 2vw, 40px); bottom: clamp(12px, 4vh, 48px); width: clamp(220px, 30vw, 440px); color: var(--cherry); }
.ink > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- SEARCH: the search engine */
.search-band { position: relative; overflow: hidden; min-height: calc(100vh - var(--nav-h)); padding-bottom: var(--s8); }
.search-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s7); align-items: end; }
.search-head .display { font-size: clamp(40px, 5.6vw, 84px); line-height: 0.98; }
.search-aside { color: var(--on-dark-2); font-size: var(--fs-sm); max-width: 360px; }
.search-note { width: 54px; right: 6%; top: 9%; color: var(--blush); transform: rotate(12deg); }
.search-cam { width: 92px; right: 13%; top: 6%; color: var(--brass); transform: rotate(-10deg); }

/* the cassette: the brief is written on its label */
.cassette { margin-top: var(--s7); max-width: 680px; transform: rotate(-1.5deg); }
.cassette-body { position: relative; display: grid; gap: var(--s3); padding: 18px 18px 20px; border-radius: 14px; background: #1c1717; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3); }
.cassette-body::before, .cassette-body::after { content: ""; position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #3a3434; }
.cassette-body::before { left: 10px; }
.cassette-body::after { right: 10px; }
.cassette-label { background: var(--card); border-radius: 6px; padding: 10px 16px 12px; background-image: repeating-linear-gradient(transparent 0 29px, rgba(142, 20, 36, 0.2) 29px 30px); }
.cassette-label:focus-within { outline: 3px solid #f3d27a; outline-offset: 3px; }
.cassette-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cherry); }
.cassette-brand { font-family: var(--serif); font-size: 15px; letter-spacing: 0; text-transform: none; font-style: italic; }
.cassette textarea { display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 18px/30px var(--body); margin-top: 4px; }
.cassette .cassette-window { margin: 8px auto 0; width: 64%; height: 46px; border-radius: 23px; background: #2b2626; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.cassette .reel { width: 34px; height: 34px; background: radial-gradient(circle, var(--card) 0 5px, #1c1717 6px 8px, #6b5a4a 9px 15px, #3a302a 16px); border: 2px dashed rgba(244, 236, 223, 0.5); }
.cassette .tape { flex: 1; width: auto; height: 14px; margin: 0 8px; background: #4a3a30; border-radius: 4px; }
.cassette button { justify-self: end; display: inline-flex; align-items: center; min-height: 46px; padding: 0 28px; border-radius: 999px; background: var(--cherry); color: #fff; font-weight: 600; box-shadow: 0 0 0 0 rgba(243, 231, 216, 0.6); }
.cassette button:hover { background: #a51a2c; }
.cassette button:disabled { opacity: 0.7; cursor: progress; }

/* example briefs as coloured tabs */
.search-band .try { margin-top: var(--s6); }
.search-band .try button { border: 0; color: var(--ink); background: var(--card); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25); }
.search-band .try button:nth-of-type(5n+5) { background: var(--card); }
.search-band .try button:hover { background: var(--ink); color: var(--paper); }
.last-results { margin-top: var(--s5); font-size: var(--fs-sm); }
.last-results a { color: var(--on-dark); }

/* search page: the brief on the left, the shelf of rooms on the right */
.search-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.search-main .display { font-size: clamp(40px, 5vw, 76px); line-height: 0.98; }
.search-main .cassette { max-width: 640px; }
.search-shelf { min-width: 0; padding-top: clamp(24px, 6vw, 96px); }
.search-shelf .featured-head { margin-top: 0; padding-top: 0; border-top: 0; }
/* exactly two whole cards in view; the arrows move two at a time */
.search-shelf .featured {
  grid-auto-columns: calc((100% - var(--s5)) / 2); gap: var(--s5); padding: var(--s6) 12px var(--s5); margin: 0 -12px;
  scroll-padding-inline: 12px; overflow-x: hidden; scroll-snap-type: x mandatory;
}
.search-shelf .featured li { scroll-snap-align: start; }
@media (max-width: 1000px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-shelf { padding-top: 0; }
}

/* the shelf of real rooms: slides sideways */
.featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgba(243, 236, 225, 0.3); }
.featured-title { font-size: var(--fs-xl); color: var(--on-dark); }
.featured-arrows { display: flex; gap: var(--s2); }
.arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid currentColor; color: var(--ink); }
.arrow svg { width: 22px; height: 22px; }
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.arrow:disabled { opacity: 0.3; cursor: default; }
.band .arrow { color: var(--on-dark); }
.band .arrow:hover:not(:disabled) { background: var(--on-dark); color: var(--ink); }
.featured {
  list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(280px, 72vw); gap: var(--s6);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--sage) transparent;
  padding: var(--s6) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) var(--s6);
}
.featured li { scroll-snap-align: start; }

/* side B */
.side-b-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.side-b-list { list-style: none; padding: 0; margin: var(--s7) 0 0; counter-reset: track; }
.side-b-list li { display: grid; grid-template-columns: 1fr; gap: 2px var(--s4); padding: var(--s4) 0; border-top: 1px solid rgba(243, 236, 225, 0.25); }
.side-b-list li:last-child { border-bottom: 1px solid rgba(243, 236, 225, 0.25); }

.side-b-list a { font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.02em; color: var(--on-dark); text-decoration: none; }
.side-b-list a:hover { text-decoration: underline; }
.side-b-list span { color: var(--on-dark-2); font-size: var(--fs-sm); }
.side-b-snap { --tilt: 3deg; max-width: 380px; justify-self: center; }
.side-b-snap img { aspect-ratio: 6 / 5; }

/* ---------------------------------------------------------------- from the moodboard */
/* crumpled paper: a faint grain over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0.55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* red string and push pins between the polaroids */
.string { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.string path { fill: none; stroke: #9b2d6f; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.85; }
.pin { position: absolute; z-index: 4; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3a6c4, #9b2d6f 60%, #5a1840); box-shadow: 1px 3px 3px rgba(40, 10, 20, 0.4); }

.stars { z-index: 2; left: 50%; top: 18%; width: min(760px, 66vw); transform: translateX(-50%); color: var(--brass); }

/* cut-out letters, like a ransom note */
.ransom { display: inline-flex; flex-wrap: wrap; gap: 3px; margin: 0 0 var(--s5); }
.ransom > span[aria-hidden] { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.ransom i {
  display: inline-block; font-style: normal; line-height: 1; padding: 5px 6px 6px; font-size: 30px; text-transform: lowercase;
  background: var(--card); color: var(--ink); box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
}
.ransom i:nth-child(6n+1) { font-family: var(--serif); font-weight: 700; transform: rotate(-4deg); }
.ransom i:nth-child(6n+2) { font-family: var(--type); background: var(--ink); color: var(--card); transform: rotate(3deg) translateY(2px); }
.ransom i:nth-child(6n+3) { font-family: var(--display); font-weight: 800; background: var(--blush); transform: rotate(-2deg); text-transform: uppercase; }
.ransom i:nth-child(6n+4) { font-family: var(--script); font-size: 34px; background: var(--brass); transform: rotate(5deg) translateY(-2px); }
.ransom i:nth-child(6n+5) { font-family: var(--serif); font-style: italic; background: var(--sage); transform: rotate(-6deg); }
.ransom i:nth-child(6n) { font-family: var(--body); font-weight: 600; background: #f6efe0; transform: rotate(2deg); text-transform: uppercase; }
.ransom.small i { font-size: 19px; padding: 3px 4px 4px; }
.ransom.small i:nth-child(6n+4) { font-size: 22px; }

/* side B as a typewritten tracklist on wine, with a halftone record behind */
.side-b { position: relative; overflow: hidden; }
.halftone-record {
  position: absolute; left: -12vw; bottom: -18vw; width: 42vw; aspect-ratio: 1; border-radius: 50%; opacity: 0.5; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.75) 1.4px, transparent 1.8px) 0 0 / 9px 9px;
  -webkit-mask: radial-gradient(circle, transparent 0 14%, #000 15% 60%, transparent 61% 63%, #000 64% 70%);
          mask: radial-gradient(circle, transparent 0 14%, #000 15% 60%, transparent 61% 63%, #000 64% 70%);
}
.side-b-grid { position: relative; }
.side-b-list li { grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: var(--s3); }
.side-b-list a { font-family: var(--type); font-weight: 400; font-size: var(--fs-lg); letter-spacing: 0; }
.side-b-list .leader { align-self: end; margin-bottom: 7px; border-bottom: 2px dotted rgba(243, 236, 225, 0.5); min-width: 24px; }
.side-b-list em { font-style: normal; font-family: var(--type); font-size: var(--fs-sm); color: var(--on-dark-2); }
.side-b-list span { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- RESULTS page */
.crumbs { margin-bottom: var(--s6); }
.back { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.back::before { content: "\2190\00a0"; }
.back:hover { color: var(--wine); }
.results-page .page-title .script { font-size: 0.9em; }
.results-layout { margin-top: var(--s7); }
/* the agent's step-by-step plan stays in the page for app.js but isn't shown */
.rs-aside { display: none; }
.rs-wait { font-family: var(--script); font-size: 28px; color: var(--wine); padding: var(--s7) 0; }

/* the slider: the current room big, the next ones smaller to its right */
.rs-slider { position: relative; }
.rs-track { list-style: none; padding: var(--s3) 0 var(--s4); margin: 0; display: flex; align-items: flex-end; gap: var(--s5); overflow: hidden; touch-action: pan-y; }
.rs-slide { flex: 0 0 auto; width: clamp(120px, 17%, 220px); transition: width .45s ease-out, opacity .3s, margin .45s ease-out; }
.rs-slide.on { width: min(58%, 720px); }
.rs-slide.past { width: 0; margin-right: calc(-1 * var(--s5)); opacity: 0; visibility: hidden; }
.rs-shot { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2b2722; border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); text-decoration: none; }
.rs-slide:not(.on) .rs-shot { aspect-ratio: 1; opacity: 0.85; border-radius: 14px; }
.rs-slide:not(.on) .rs-shot:hover { opacity: 1; }
.rs-slide.on .rs-shot { box-shadow: 10px 10px 0 var(--sage); }
.rs-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs-shot .rs-num { top: 12px; left: 12px; }
.rs-shot-name { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--card); padding: 4px 8px; font-family: var(--type); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-slide.on .rs-shot-name { display: none; }
.rs-controls { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.rs-count { font-family: var(--type); font-size: var(--fs-sm); min-width: 64px; text-align: center; }
/* below the pictures: info, price, and why it fits on the right */
.rs-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: var(--s7); margin-top: var(--s6); padding-top: var(--s6); border-top: 2px solid var(--ink); align-items: start; }
.rs-tag { font-family: var(--type); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); }
.rs-name { font-size: var(--fs-2xl); margin-top: var(--s2); }
.rs-name a { color: var(--ink); text-decoration: none; }
.rs-name a:hover { text-decoration: underline; }
.rs-addr { color: var(--ink-2); margin-top: var(--s2); }
.rs-room { margin-top: var(--s3); font-size: var(--fs-sm); }
.rs-facts { display: flex; flex-wrap: wrap; gap: var(--s5); margin: var(--s4) 0 0; }
.rs-facts div { border-top: 1px solid var(--line); padding-top: var(--s2); }
.rs-facts dt { font-size: var(--fs-xs); color: var(--ink-3); }
.rs-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); }
.rs-price { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.rs-price b { font-family: var(--display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; }
.rs-price span { color: var(--ink-2); font-size: var(--fs-sm); }
.rs-price .btn { margin-top: var(--s4); }
.rs-why { position: relative; background: var(--sage); padding: var(--s5); transform: rotate(1.2deg); box-shadow: var(--shadow-photo); }
.rs-why::before { content: ""; position: absolute; top: -12px; left: 30%; width: 90px; height: 24px; background: rgba(248, 244, 236, 0.75); transform: rotate(-4deg); }
.rs-why h3 { font-size: 28px; font-weight: 400; color: var(--wine); }
.rs-why p { color: var(--ink); margin-top: var(--s2); font-size: var(--fs-sm); }
.rs-num { position: absolute; top: 20px; left: 20px; z-index: 1; background: var(--tag, var(--wine)); color: var(--on-dark); font-family: var(--type); font-size: 12px; padding: 2px 6px; }
.rs-card { padding-bottom: var(--s4); transition: transform .15s; }
.rs-card:hover { color: var(--ink); transform: rotate(0deg) translateY(-3px); }
.rs-card img { aspect-ratio: 4 / 3; }
.rs-card-body { display: grid; gap: 4px; padding: var(--s3) 2px 0; }
.rs-kind { font-family: var(--type); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rs-card-name { font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.1; }
.rs-card-meta { font-size: var(--fs-xs); color: var(--ink-2); }
.rs-card-foot { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); }
.rs-card-foot small { color: var(--ink-3); font-size: 12px; }
.rs-view { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; border-bottom: 1.5px solid var(--ink); }


/* the agent's steps, set as a tracklist */
.plan { background: var(--card); padding: var(--s5); border: 1.5px solid var(--line-strong); }
.plan h2 { font-size: var(--fs-xl); }
.plan .eyebrow { margin-bottom: var(--s2); }
.steps { list-style: none; padding: 0; margin: var(--s4) 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); padding: var(--s3) 0; border-top: 1px dashed var(--line); font-size: var(--fs-sm); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--type); color: var(--ink-3); font-size: var(--fs-xs); padding-top: 2px; }
.steps .dot { display: none; }
.steps li.live::before { color: var(--wine); }
.steps li.live .t::after { content: " \2026"; }
.steps li.err .t { color: var(--bad); }
.steps .t { font-weight: 600; }
.steps .d { color: var(--ink-2); font-size: var(--fs-xs); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- PROPERTY page */
.prop-nav { position: sticky; top: var(--nav-h); z-index: 30; display: flex; align-items: center; gap: var(--s6); padding: var(--s3) var(--gutter); background: var(--paper-2); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.prop-nav::-webkit-scrollbar { display: none; }
.subnav-links { display: flex; gap: var(--s5); margin-left: auto; }
.subnav-links a { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subnav-links a:hover { color: var(--wine); }

.pick { padding-top: clamp(40px, 6vw, 80px); }
.pick-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prop-photo { --tilt: -2.5deg; margin-top: var(--s4); }
.prop-photo img { aspect-ratio: 5 / 4; }
.pick .display { font-size: var(--fs-3xl); line-height: 0.98; overflow-wrap: anywhere; }
.pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s6); }
#pl-add { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--ink-2); }
.pick .figures { margin-top: var(--s7); }
.pick .fig .n { font-size: clamp(28px, 2.8vw, 40px); white-space: nowrap; }

/* the property's top: pictures top left, info and rent below, Explore in 3D on the right, Ready to book bottom right */
.pick-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-areas: "gallery explore" "film film" "info book";
  gap: var(--s7) clamp(32px, 5vw, 72px); align-items: start;
}
.prop-gallery { grid-area: gallery; display: grid; grid-template-columns: minmax(0, 1fr) clamp(90px, 10vw, 140px); gap: var(--s5); align-items: start; }
.prop-photo { --tilt: -1.5deg; margin: 0; max-width: none; }
.prop-photo img { aspect-ratio: 4 / 3; }
.prop-thumbs { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s4); }
.prop-thumbs li { transform: rotate(var(--tilt)); }
.prop-thumbs button { display: block; width: 100%; padding: 6px; background: var(--card); box-shadow: var(--shadow-photo); transition: transform .15s; }
.prop-thumbs button:hover { transform: scale(1.05); }
.prop-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #2b2722; }
.pick-main { grid-area: info; }
.pick .figures { margin-top: var(--s6); }
.prop-rent { margin-top: var(--s5); padding-top: var(--s4); border-top: 2px dashed var(--line-strong); }
.rent-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.rent-label { font-family: var(--type); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.rent-price { font-family: var(--display); font-size: var(--fs-2xl); letter-spacing: -0.03em; line-height: 1; }
.pick-actions { margin-top: var(--s5); }

.explore-3d {
  grid-area: explore; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s2);
  aspect-ratio: 1; padding: var(--s6); overflow: hidden; text-decoration: none; color: var(--on-dark);
  background: #23241f; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 14px 14px 0 var(--sage); transition: transform .2s, box-shadow .2s;
}
.explore-pic { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0.55; transition: transform .6s ease-out, opacity .3s; }
.explore-3d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 16, 0.1), rgba(20, 18, 16, 0.75)); }
.explore-cube, .explore-label, .explore-sub { position: relative; z-index: 1; }
.explore-cube { width: 64px; margin-bottom: auto; color: var(--on-dark); }
.explore-label { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1; }

.explore-sub { color: var(--on-dark-2); font-size: var(--fs-sm); }
.explore-3d:hover { color: var(--on-dark); transform: translate(-2px, -2px); box-shadow: 18px 18px 0 var(--sage); }
.explore-3d:hover .explore-pic { transform: scale(1.06); opacity: 0.7; }

.book-box { grid-area: book; align-self: end; justify-self: end; text-align: right; }
.ready-book {
  display: inline-flex; align-items: center; gap: var(--s3); padding: 18px 34px; border-radius: 999px;
  background: var(--blush); color: var(--wine-deep); border: 2px solid var(--cherry); text-decoration: none;
  font-family: var(--script); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; box-shadow: 0 6px 0 var(--cherry); transition: transform .15s, box-shadow .15s;
}
.ready-book svg { width: 26px; height: 26px; }
.ready-book:hover { color: var(--wine-deep); background: #f0b6c2; transform: translateY(-2px); box-shadow: 0 8px 0 var(--cherry); }
.ready-book:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--cherry); }
.book-box .note { margin-top: var(--s4); }

.next-page { min-height: 60vh; }
.next-links { margin-top: var(--s7); }

@media (max-width: 1000px) {
  .pick-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "film" "info" "explore" "book"; }
  .explore-3d { aspect-ratio: 16 / 10; }
  .book-box { justify-self: stretch; text-align: left; }
}
@media (max-width: 760px) {
  .prop-gallery { grid-template-columns: 1fr; }
  .prop-thumbs { grid-template-columns: repeat(4, 1fr); margin: 0; }
  .ready-book { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- EXPLORE IN 3D */
.explore-hub { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.explore-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: center; width: 100%; }
.explore-hub .page-title .script { font-size: 0.9em; color: var(--cherry); }
.ex-choices { list-style: none; padding: 0; margin: var(--s7) 0 0; display: grid; gap: var(--s5); max-width: 560px; }
.ex-choice {
  display: flex; align-items: center; gap: var(--s5); width: 100%; text-align: left; padding: var(--s4) var(--s6);
  background: var(--card); color: var(--ink); border: 2.5px solid var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; /* a hand-drawn pill */
  box-shadow: 5px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s;
}
.ex-choice:nth-child(1), .ex-choices li:nth-child(1) .ex-choice { transform: rotate(-1deg); }
.ex-choices li:nth-child(2) .ex-choice { transform: rotate(0.8deg); margin-left: 14px; }
.ex-choices li:nth-child(3) .ex-choice { transform: rotate(-0.6deg); }
.ex-choice svg { width: 44px; height: 44px; flex: none; color: var(--cherry); }
.ex-choice b { display: block; font-family: var(--script); font-weight: 400; font-size: clamp(28px, 2.8vw, 36px); line-height: 1; }
.ex-choice small { display: block; color: var(--ink-2); font-size: var(--fs-sm); margin-top: 4px; }
.ex-choice:hover { background: var(--blush); box-shadow: 7px 9px 0 var(--ink); }
.ex-choice[aria-pressed="true"] { background: var(--cherry); color: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.ex-choice[aria-pressed="true"] svg, .ex-choice[aria-pressed="true"] small { color: var(--paper); }
.explore-snap { --tilt: 4deg; max-width: 420px; justify-self: center; }
/* only the chosen evaluation shows under the buttons */
.view[data-view="explore"] .ex-off { display: none !important; }
.view[data-view="explore"] > section:not(.explore-hub) { scroll-margin-top: var(--nav-h); }
@media (max-width: 900px) {
  .explore-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .explore-snap { order: -1; max-width: 240px; }
  .ex-choices li:nth-child(2) .ex-choice { margin-left: 0; }
}

/* ---------------------------------------------------------------- SAVED */
body[data-view="saved"] .view[data-view="saved"] { display: block; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 10px; background: var(--cherry); color: var(--paper); font-size: 11px; vertical-align: 1px; }
.save-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font: 600 var(--fs-xs)/1 var(--body);
  background: var(--card); color: var(--ink); border: 1.5px solid var(--cherry); transition: background .15s, color .15s, transform .15s;
}
.save-btn svg { width: 18px; height: 18px; color: transparent; stroke: var(--cherry); }
.save-btn svg path { stroke: var(--cherry); }
.save-btn:hover { background: var(--blush); }
.save-btn[aria-pressed="true"] { background: var(--cherry); color: var(--paper); }
.save-btn[aria-pressed="true"] svg { color: var(--paper); }
.save-btn[aria-pressed="true"] svg path { stroke: var(--paper); }
.save-btn.pop { transform: scale(1.08); }
.ac-rooms .save-btn { margin-top: var(--s4); }
.saved-page .page-title .script { font-size: 0.9em; color: var(--cherry); }
.sv-group { margin-top: var(--s8); }
.sv-h { font-size: var(--fs-xl); margin-bottom: var(--s5); }
.sv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s7) var(--s5); }
.sv-grid:empty::after { content: attr(data-empty); color: var(--ink-3); font-size: var(--fs-sm); }
.sv-card { padding-bottom: var(--s4); }
.sv-card img, .sv-card .sv-sound-face { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #2b2722; }
.sv-sound-face { display: grid !important; place-items: center; background: var(--wine-deep) !important; color: var(--on-dark); font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: -0.03em; }
.sv-sound-face small { display: block; font-family: var(--type); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); text-align: center; }
.sv-body { padding: var(--s3) 2px 0; display: grid; gap: 4px; }
.sv-kind { font-family: var(--type); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sv-name { font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.1; }
.sv-meta { font-size: var(--fs-xs); color: var(--ink-2); }
.sv-actions { display: flex; gap: var(--s4); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); }
.sv-actions a, .sv-actions button { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sv-actions button { color: var(--wine); margin-left: auto; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s4);
  padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); font-size: var(--fs-sm);
}
.toast a { color: var(--blush); font-weight: 600; }

/* ---------------------------------------------------------------- LIGHTING LAB */
body[data-view="lighting"] .view[data-view="lighting"] { display: block; }
.lab .page-title .script { font-size: 0.9em; color: var(--cherry); }
.lab-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s7); margin-top: var(--s6); align-items: start; }
.lab-tools .mini-head { margin: var(--s5) 0 var(--s2); }
.lab-tools .mini-head:first-child { margin-top: 0; }
.lab-rooms, .lab-presets { display: flex; flex-wrap: wrap; gap: var(--s2); }
.lab-rooms button, .lab-presets button {
  font: 500 var(--fs-xs)/1.2 var(--body); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); text-align: left;
}
.lab-rooms button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lab-presets button { font-family: var(--script); font-size: 22px; padding: 6px 16px; }
.lab-presets button:hover, .lab-rooms button:hover { background: var(--blush); color: var(--ink); }
#lab-ambient, #lab-power { width: 100%; accent-color: var(--cherry); }
.lab-kinds { display: grid; gap: var(--s2); }
.lab-kinds button {
  display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; text-align: left; font-size: var(--fs-sm);
  background: var(--card); border: 2px solid var(--ink); border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px; box-shadow: 3px 4px 0 var(--ink);
}
.lab-kinds button[aria-checked="true"] { background: var(--cherry); color: var(--paper); box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 3px); }
.sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; border: 1px solid rgba(0, 0, 0, 0.2); }
.lab-tune { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s3); align-items: center; margin-top: var(--s4); font-size: var(--fs-sm); }
.lab-tune input[type=color] { width: 44px; height: 30px; padding: 0; border: 1.5px solid var(--ink); border-radius: 6px; background: none; }
.lab-placed { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s6); }
.lab-placed .mini-head { margin: 0; }
.lab-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); font-size: var(--fs-sm); }
.lab-list li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; }
.lab-list li button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; line-height: 1; color: var(--paper); background: var(--cherry); }
.lab-list li button:hover { background: var(--wine-deep); }
.lab-list li.flash { animation: flash .6s ease-out; }
@keyframes flash { from { background: var(--blush); } }
.lab-list:empty::after { content: "No lights yet. Click the room to add one."; color: var(--ink-3); }
.lab-actions { display: flex; gap: var(--s2); margin: 0 0 0 auto; }
.lab-act { font: 600 var(--fs-xs)/1 var(--body); padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); }
.lab-act:hover { background: var(--ink); color: var(--paper); }
.lab-act:disabled { opacity: 0.4; cursor: default; background: var(--card); color: var(--ink); }
.lab-kinds .lab-erase { margin-top: var(--s2); }
.lab-kinds .lab-erase svg { width: 18px; height: 18px; flex: none; }
.lab-view.erasing canvas { cursor: not-allowed !important; }
.lab-view.erasing { outline: 3px dashed var(--cherry); outline-offset: -3px; }
.lab-viewer .viewer-frame { box-shadow: 14px 14px 0 var(--sage); }
.lab-view { aspect-ratio: 16 / 10; max-height: 74vh; }
@media (max-width: 1000px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-viewer { order: -1; }
  .lab-view { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- ACOUSTICS */
body[data-view="acoustics"] .view[data-view="acoustics"] { display: block; }
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.ac-head .page-title .script { font-size: 0.9em; color: var(--cherry); }
.ac-rooms .mini-head { margin: 0 0 var(--s2); }
.ac-rooms .rooms { justify-content: flex-start; }
.ac-rooms .rooms button { color: var(--ink); font: 500 var(--fs-sm)/1 var(--body); text-decoration: none; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); margin: 0; }
.ac-rooms .rooms button.on { background: var(--cherry); border-color: var(--cherry); color: var(--paper); }
.ac-h { font-size: var(--fs-xl); margin: var(--s8) 0 var(--s5); }
.ac-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.ac-card { position: relative; background: var(--card); border: 1.5px solid var(--line-strong); padding: var(--s5); box-shadow: var(--shadow-photo); transform: rotate(var(--tilt)); }
.ac-card::before { content: ""; position: absolute; top: -11px; left: 30%; width: 70px; height: 22px; background: var(--tape); transform: rotate(-4deg); }
.ac-card h3 { font-family: var(--script); font-weight: 400; font-size: 30px; color: var(--cherry); }
.ac-big { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1; margin-top: var(--s2); }
.ac-big small { font-size: 0.4em; color: var(--ink-2); margin-left: 3px; }
.ac-meter { position: relative; height: 10px; margin-top: var(--s4); border-radius: 5px; background: var(--paper-2); }
.ac-band { position: absolute; top: 0; bottom: 0; background: var(--sage); border-radius: 5px; }
.ac-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--cherry); border: 2px solid var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.ac-ends { display: flex; justify-content: space-between; font-family: var(--type); font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.ac-text { color: var(--ink-2); font-size: var(--fs-sm); margin-top: var(--s4); }

.ac-try .lede { color: var(--on-dark-2); }
.ac-crowd { display: inline-flex; margin-top: var(--s6); padding: 3px; border: 1.5px solid rgba(243, 236, 225, 0.5); border-radius: 999px; }
.ac-crowd button { padding: 8px 18px; border-radius: 999px; color: var(--on-dark-2); font-size: var(--fs-sm); }
.ac-crowd button[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); font-weight: 600; }
.ac-samples { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.ac-sample {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; gap: 4px var(--s4); width: 100%; height: 100%; text-align: left;
  padding: var(--s5); background: var(--card); color: var(--ink); border: 2.5px solid var(--ink);
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; box-shadow: 5px 6px 0 var(--wine-deep); transition: transform .15s, box-shadow .15s, background .15s;
}
.ac-sample svg { grid-row: span 2; width: 52px; height: 52px; color: var(--cherry); }
.ac-sample b { font-family: var(--script); font-weight: 400; font-size: 30px; line-height: 1; }
.ac-sample span { color: var(--ink-2); font-size: var(--fs-sm); }
.ac-sample:hover { background: var(--blush); transform: translateY(-2px); box-shadow: 7px 9px 0 var(--wine-deep); }
.ac-sample:active { transform: translateY(3px); box-shadow: 2px 2px 0 var(--wine-deep); }
.ac-sample[aria-pressed="true"] { background: var(--cherry); color: var(--paper); }
.ac-sample[aria-pressed="true"] svg, .ac-sample[aria-pressed="true"] span { color: var(--paper); }
.ac-try #scope { margin-top: var(--s6); }
.ac-try #ac-now { color: var(--on-dark-2); }
/* on this page the details section doesn't need its own player: the samples above drive it */
.view[data-view="acoustics"] .sound-console { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.view[data-view="acoustics"] .sound-top { grid-template-columns: 1fr; }
@media (max-width: 1000px) {
  .ac-cards { grid-template-columns: 1fr 1fr; }
  .ac-samples { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ac-cards { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 3D WALKTHROUGH */
body[data-view="walk3d"] .view[data-view="walk3d"] { display: block; }
.walk-page { padding: var(--s5) var(--gutter) var(--s6); max-width: 1600px; margin: 0 auto; }
.walk-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; margin-bottom: var(--s5); }
.walk-head .crumbs { margin-bottom: var(--s3); }
.walk-title { font-size: clamp(34px, 4.4vw, 60px); }
.walk-title .script { font-size: 0.95em; color: var(--cherry); }
.walk-sub { color: var(--ink-2); margin-top: var(--s2); }
.walk-rooms .mini-head { margin: 0 0 var(--s2); }
.walk-switch { display: flex; flex-wrap: wrap; gap: var(--s2); max-width: 640px; }
.walk-switch button { font: 500 var(--fs-sm)/1 var(--body); padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); }
.walk-switch button:hover { background: var(--blush); }
.walk-switch button[aria-pressed="true"] { background: var(--cherry); border-color: var(--cherry); color: var(--paper); }
.walk-frame { box-shadow: 12px 12px 0 var(--sage); }
.walk-frame .tour { aspect-ratio: auto; height: calc(100vh - var(--nav-h) - 230px); height: calc(100svh - var(--nav-h) - 230px); min-height: 380px; max-height: none; }
.walk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); margin-top: var(--s5); }
.walk-foot .walk-status { margin: 0; font-size: var(--fs-md); }
.walk-tips { color: var(--ink-2); font-size: var(--fs-sm); max-width: 560px; }
@media (max-width: 760px) {
  .walk-frame .tour { height: 62vh; min-height: 320px; }
  .walk-frame { box-shadow: 6px 6px 0 var(--sage); }
}

/* ---------------------------------------------------------------- BOOKING */
.book-pick { min-height: calc(100vh - var(--nav-h)); }
.book-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s7); }
.book-head .page-title .script { font-size: 0.9em; color: var(--cherry); }
.book-snap { flex: none; width: clamp(130px, 14vw, 200px); --tilt: 5deg; }
.book-snap figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s7); margin-top: var(--s7); align-items: start; }

.cal { position: relative; background: var(--card); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--sage); padding: var(--s5); }
.cal::before { content: ""; position: absolute; top: -14px; left: 40%; width: 120px; height: 28px; background: var(--tape); transform: rotate(-3deg); }
.cal-nav { position: absolute; top: var(--s5); left: var(--s5); right: var(--s5); display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav .arrow { pointer-events: auto; width: 40px; height: 40px; background: var(--card); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.cal-month h3 { font-family: var(--serif); font-size: var(--fs-xl); text-align: center; line-height: 40px; margin-bottom: var(--s3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-family: var(--type); font-size: 12px; text-align: center; color: var(--ink-3); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: var(--fs-sm); color: var(--ink);
  border: 1.5px solid transparent; transition: background .12s, color .12s;
}
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day:disabled { cursor: default; }
.cal-day.past { color: var(--ink-3); opacity: 0.45; }
.cal-day.taken { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--cherry); text-decoration-thickness: 2px; background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(142, 20, 36, 0.12) 4px 6px); }
.cal-day.in { background: var(--blush); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--cherry); color: var(--paper); font-weight: 600; }
.cal-day.start { border-radius: 50% 0 0 50%; }
.cal-day.end { border-radius: 0 50% 50% 0; }
.cal-day.start.end { border-radius: 50%; }
.cal-day.bad { background: #f3c9c4; }

.cal-side { position: relative; padding-top: var(--s5); }
.cal-hint { font-size: 30px; color: var(--magenta); transform: rotate(-4deg); }
.cal-hint-arrow { width: 110px; color: var(--magenta); margin: var(--s1) 0 var(--s5) -30px; }
.cal-key { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.cal-key li { display: flex; align-items: center; gap: var(--s3); }
.key { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.key.taken { background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(142, 20, 36, 0.3) 4px 6px); }
.key.picked { background: var(--cherry); border-color: var(--cherry); }
.cal-status { font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.25; }
.cal-status.bad { color: var(--bad); }

.book-confirm { display: flex; justify-content: center; margin-top: var(--s7); }
.confirm-btn {
  font-family: var(--script); font-size: clamp(26px, 2.6vw, 34px); line-height: 1; padding: 18px 40px; border-radius: 999px;
  background: var(--blush); color: var(--wine-deep); border: 2px solid var(--cherry); box-shadow: 0 6px 0 var(--cherry); transition: transform .15s, box-shadow .15s, opacity .2s;
}
.confirm-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 var(--cherry); }
.confirm-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--cherry); }
.confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: 0 6px 0 var(--line-strong); border-color: var(--line-strong); }

.book-next { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; scroll-margin-top: var(--nav-h); }
.book-next-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: center; width: 100%; }
.book-steps { list-style: none; padding: 0; margin: var(--s7) 0 0; counter-reset: s; }
.book-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px var(--s4); padding: var(--s4) 0; border-top: 1px solid rgba(243, 236, 225, 0.25); }
.book-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--type); color: var(--on-dark-2); }
.book-steps b { font-family: var(--type); font-weight: 400; font-size: var(--fs-lg); color: var(--on-dark); }
.book-steps span { color: var(--on-dark-2); font-size: var(--fs-sm); }
.book-next .next-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.link-dark.on-dark { color: var(--on-dark); }
.book-stub { color: var(--ink); transform: rotate(2deg); }
.stub.book-stub::before { content: "Admit one / Booking hold"; }
.book-stub .stub-dates { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.1; }
.book-stub .stub-venue { font-family: var(--type); color: var(--ink-2); margin-top: var(--s2); }
.reveal { animation: rise .6s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* the booking form: a sheet of lined paper taped onto the olive */
.book-next { display: block; }
.book-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); margin-top: var(--s7); align-items: start; }
.book-sheet {
  position: relative; background: var(--card); color: var(--ink); padding: clamp(24px, 4vw, 48px); border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); transform: rotate(-0.4deg);
  background-image: linear-gradient(90deg, transparent 54px, rgba(142, 20, 36, 0.25) 54px 56px, transparent 56px);
}
.book-sheet::before { content: ""; position: absolute; top: -14px; left: 42%; width: 140px; height: 30px; background: var(--tape); transform: rotate(-2deg); }
.book-sheet fieldset { border: 0; margin: 0; padding: 0 0 var(--s6) 40px; }
.book-sheet fieldset + fieldset { padding-top: var(--s6); border-top: 1.5px dashed var(--line-strong); }
.book-sheet legend { float: left; width: 100%; margin: 0 0 var(--s4) -40px; font-family: var(--script); font-size: 34px; line-height: 1; color: var(--cherry); }
.book-sheet legend + * { clear: both; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { margin: 0 0 var(--s4); display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--type); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.book-sheet input:not([type=checkbox]), .book-sheet textarea {
  width: 100%; font: 500 var(--fs-md)/1.4 var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0; padding: 6px 2px; min-height: 0;
}
.book-sheet textarea { border: 1.5px solid var(--line-strong); padding: 10px 12px; resize: vertical; background-image: repeating-linear-gradient(transparent 0 25px, rgba(142, 20, 36, 0.14) 25px 26px); line-height: 26px; }
.book-sheet input:focus, .book-sheet textarea:focus { outline: none; border-color: var(--cherry); box-shadow: 0 2px 0 var(--cherry); }
.book-sheet input::placeholder, .book-sheet textarea::placeholder { color: var(--ink-3); }
.book-sheet [aria-invalid="true"] { border-color: var(--bad) !important; }
.err { color: var(--bad); font-size: var(--fs-xs); min-height: 1em; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s3); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--cherry); flex: none; }

.pay-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.card-art {
  position: relative; aspect-ratio: 1.586; border-radius: 14px; padding: 18px; color: var(--on-dark); overflow: hidden;
  background: linear-gradient(135deg, #8e1424, #4a0c14); box-shadow: 0 12px 24px rgba(40, 10, 15, 0.35); transform: rotate(-3deg);
  font-family: var(--type); display: grid; grid-template-rows: auto 1fr auto auto;
}
.card-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 50%); pointer-events: none; }
.card-chip { width: 38px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #e6c27a, #b38a3e); }
.card-num { align-self: end; font-size: 17px; letter-spacing: 0.08em; white-space: nowrap; }
.card-name { font-size: 12px; letter-spacing: 0.12em; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.card-exp { position: absolute; right: 18px; bottom: 18px; font-size: 12px; }
.card-record { position: absolute; right: -14px; top: -14px; width: 74px; opacity: 0.9; }

.book-submit { display: flex; align-items: center; justify-content: flex-end; gap: var(--s5); flex-wrap: wrap; padding-left: 40px; }
.form-status { color: var(--bad); font-weight: 600; }
.book-aside { position: sticky; top: calc(var(--nav-h) + var(--s5)); display: grid; gap: var(--s5); justify-items: start; }
.book-done { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; scroll-margin-top: var(--nav-h); }
.book-done .display .script { font-size: 0.9em; }
.done-stub { transform: rotate(-2deg); }
.stub.done-stub::before { content: "Admit one / Request sent"; }

@media (max-width: 1000px) {
  .book-form-grid { grid-template-columns: 1fr; }
  .book-aside { position: static; order: -1; }
  .pay-grid { grid-template-columns: 1fr; }
  .card-art { max-width: 300px; }
}
@media (max-width: 600px) {
  .book-sheet { background-image: none; }
  .book-sheet fieldset, .book-submit { padding-left: 0; }
  .book-sheet legend { margin-left: 0; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .book-submit .confirm-btn { width: 100%; }
}

/* more polaroids on the left of the opening page */
.houses-left { right: auto; left: clamp(12px, 3vw, 56px); top: clamp(24px, 6vh, 64px); width: clamp(200px, 22vw, 330px); }
.houses-left .snap-a { right: auto; left: 0; --tilt: -5deg; }
.houses-left .snap-b { left: auto; right: 0; top: 20%; --tilt: 6deg; }
.houses-left .snap-c { right: auto; left: 26%; transform: rotate(-8deg); }

@media (max-width: 900px) {
  .book-body, .book-next-grid { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-month + .cal-month { display: none; }
  .cal-hint-arrow { display: none; }
  .book-head { flex-direction: column-reverse; gap: var(--s4); }
}
@media (max-width: 760px) {
  .houses-left { width: 130px; left: 6px; top: 10px; }
  .houses-left .string, .houses-left .pin { display: none; }
}

/* the agent's report, as liner notes */
.liner { margin-top: var(--s8); background: var(--card); border: 1.5px solid var(--line-strong); padding: clamp(20px, 4vw, 48px); position: relative; }
.liner::before { content: ""; position: absolute; top: -14px; left: 40px; width: 120px; height: 28px; background: var(--tape); transform: rotate(-3deg); }
.report { columns: 2 320px; column-gap: var(--s7); column-rule: 1px solid var(--line); font-size: var(--fs-md); color: var(--ink-2); }
.report:empty::after { content: "The scout writes its notes here when it has a pick."; color: var(--ink-3); }
.report p { margin: 0 0 var(--s3); }
.report p:first-child::first-letter { font-family: var(--display); font-weight: 800; font-size: 3.2em; float: left; line-height: 0.85; margin: 4px 8px 0 0; color: var(--wine); }
.report ul { margin: 0 0 var(--s3); padding-left: 20px; }
.report li { margin-bottom: 6px; break-inside: avoid; }
.report b { color: var(--ink); font-weight: 600; }

/* sound: the dark centre of the page */
.frame.black { background: var(--wine-deep); color: var(--on-dark); }
.frame.black h2, .frame.black h3 { color: var(--on-dark); }
.frame.black .script { color: #f3e7d8; }
.frame.black .eyebrow { color: var(--on-dark-2); }
.frame.black .note { color: var(--on-dark-2); }
.sound-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.sound-console { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s4); }
.rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s4); font-size: var(--fs-sm); }
.rooms button { color: var(--on-dark-2); }
.rooms button.on { color: var(--on-dark); font-weight: 600; text-decoration-thickness: 2px; }
/* the play button is a small record */
.play {
  position: relative; display: grid; place-items: center; width: clamp(140px, 16vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #141210 0 2px, #1f1c19 2px 4px); box-shadow: 0 0 0 2px rgba(243, 236, 225, 0.12), 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform .15s;
}
.play::before { content: ""; position: absolute; inset: 33%; border-radius: 50%; background: var(--paper); }
.play .tri { position: relative; z-index: 1; width: 0; height: 0; border-left: 22px solid var(--wine); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.play:hover { transform: rotate(-8deg); }
.play:active { transform: scale(0.97); }
.play.pulse { outline: 3px solid #f3e7d8; outline-offset: 8px; }
.links { display: flex; gap: var(--s5); justify-content: center; }
.link { color: #f3e7d8; }
.frame.black .link:hover { color: var(--on-dark); }
.link.live { color: #fbf8f4; font-weight: 600; }
#scope { display: none; width: 100%; height: 80px; margin-top: var(--s6); }
#scope.on { display: block; }
.rt svg { display: block; width: 100%; height: auto; margin-top: var(--s7); }
.bands svg { display: block; width: 100%; height: auto; margin-top: var(--s5); }
.rt svg text, .bands svg text { font-family: var(--body); }
/* the charts are drawn by app.js; recolour them to the page */
.rt svg rect[fill="#2997ff"], .bands svg rect[fill="#2997ff"] { fill: #e9b98f; }
.rt svg rect[fill="#48484a"] { fill: #7a5258; }
.rt svg rect[fill^="rgba(48,209,88"], .bands svg rect[fill^="rgba(48,209,88"] { fill: rgba(195, 201, 168, 0.2); }
.rt svg text[fill="#30d158"], .bands svg text[fill="#30d158"] { fill: var(--sage); }
.rt svg text[fill="#86868b"], .bands svg text[fill="#86868b"] { fill: var(--on-dark-2); }
.sound-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); }
.roommap { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px; margin-top: var(--s5); }
#d-mapnote { font-size: var(--fs-md); margin-top: var(--s4); }

/* light: the location template. Copy on the left, a framed viewer on the right */
.light-frame { background: var(--paper-2); }
.location { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.loc-copy .display { font-size: clamp(40px, 5.4vw, 72px); line-height: 0.95; }
.loc-copy .display .script { display: block; margin-top: var(--s3); font-size: 0.9em; }
.loc-lede { color: var(--ink-2); margin-top: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line-strong); }
.room-picker { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); max-height: 230px; overflow-y: auto; padding-right: var(--s2); }
.room-picker button { text-align: left; color: var(--wine); }
.room-picker button small { color: var(--ink-3); margin-left: 6px; text-decoration: none; display: inline-block; }
.room-picker button.on { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; }
.loc-date { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); font-size: var(--fs-sm); color: var(--ink-2); }
.viewer { position: relative; }
.viewer-frame { background: #23241f; border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--sage); color: var(--on-dark); }
.vf-bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); font-family: var(--type); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.vf-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4685a; flex: none; }
.vf-title { color: var(--on-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-tag { margin-left: auto; border: 1px solid rgba(243, 236, 225, 0.4); padding: 3px 8px; flex: none; }
.room-view { position: relative; aspect-ratio: 4 / 3; max-height: 72vh; width: 100%; background: #1a1a17; }
.room-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.room-view-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-2); }
.sun-controls { gap: var(--s4); }
.sun-controls label { flex: none; }
.sun-controls input[type=range] { flex: 1; min-width: 0; accent-color: #d9b779; }
.sun-controls b { min-width: 72px; text-align: right; color: var(--on-dark); font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.script-hint { font-family: var(--script); font-size: 22px; color: var(--wine); margin: var(--s4) 0 0 var(--s7); transform: rotate(-3deg); }

.light-canvas { position: relative; height: min(64vh, 600px); margin-top: var(--s4); background: #1a0a0c; }
.light-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* inside */
.tour-frame { margin-top: var(--s7); }
.tour { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; background: #000; }
.tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); color: var(--on-dark); font-family: var(--script); font-size: 32px; background: #000 center / cover no-repeat; }
.tour-poster .tri { width: 0; height: 0; border-left: 30px solid var(--on-dark); border-top: 18px solid transparent; border-bottom: 18px solid transparent; }
.walk-status { font-size: var(--fs-lg); color: var(--ink-2); margin-top: var(--s5); min-height: 30px; }
.walk-status b { color: var(--ink); }

/* stay and budget, side by side */
.logistics { padding: var(--section) 0 0; }
.logistics-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.logistics-grid .display { font-size: clamp(32px, 4vw, 52px); }

/* a ticket stub for any money summary */
.stub {
  position: relative; background: var(--card); padding: clamp(24px, 4vw, 40px); border: 1.5px solid var(--line-strong);
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.stub::before { content: "Admit one / Tour fund"; display: block; font-family: var(--type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine); padding-bottom: var(--s3); margin-bottom: var(--s4); border-bottom: 2px dashed var(--line-strong); }
.stub .display { font-size: var(--fs-xl); }
.stub .total, .tp-total { font-family: var(--display); font-size: clamp(56px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: var(--s5) 0 0; }
.stub .verdict { font-size: var(--fs-lg); font-weight: 600; margin-top: var(--s3); }

/* the drafted email is still written by app.js, but the venue page no longer shows it; it lives in Bookings */
#reach { display: none !important; }

/* the email, as a cassette J-card */
.jcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); margin-top: var(--s7); background: var(--card); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-photo); }
.jcard-spine { background: var(--wine); color: var(--on-dark); writing-mode: vertical-rl; transform: rotate(180deg); display: flex; justify-content: space-between; padding: var(--s5) 0; align-items: center; font-family: var(--type); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.jcard-body { padding: clamp(20px, 4vw, 44px); background-image: repeating-linear-gradient(transparent 0 31px, rgba(116, 45, 54, 0.12) 31px 32px); }
.email { font-size: var(--fs-md); line-height: 32px; white-space: pre-wrap; }
.email .subj { font-family: var(--display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; white-space: normal; }
.email .to { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: var(--s4); white-space: normal; font-family: var(--type); }

/* other rooms: a strip of polaroids */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 72vw); gap: var(--s6); overflow-x: auto; scroll-snap-type: x mandatory; margin-top: var(--s6); padding: var(--s6) max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) var(--s6); }
.card { position: relative; scroll-snap-align: start; text-align: left; background: var(--card); padding: 12px 12px var(--s4); box-shadow: var(--shadow-photo); transform: rotate(-1.5deg); transition: transform .15s; }
.card:nth-child(even) { transform: rotate(1.2deg); }
.card:hover { transform: rotate(0) translateY(-3px); }
.card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #2b2722; }
.card .name { font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.02em; margin-top: var(--s3); }
.card .meta { color: var(--ink-2); font-size: var(--fs-xs); margin-top: 2px; font-family: var(--type); }
.card:hover .name { color: var(--wine); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--on-dark-2); font-size: var(--fs-xs); padding: var(--s7) 0; }
.footer p { margin: 0 0 var(--s2); max-width: 760px; }
.footer-logo { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--on-dark); font-size: var(--fs-lg); margin-bottom: var(--s4) !important; }

/* ---------------------------------------------------------------- tablets */
@media (max-width: 1000px) {
  .rs-detail { grid-template-columns: 1fr auto; }
  .rs-why { grid-column: 1 / -1; justify-self: end; max-width: 520px; }
  .houses { width: clamp(200px, 30vw, 300px); }
  .location, .sound-top, .pick-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .masthead { gap: var(--s2); padding: 0 0 0 var(--s4); }
  .logo { width: 34px; height: 34px; font-size: 14px; }
  .modes { overflow-x: auto; scrollbar-width: none; padding-right: var(--s4); }
  .modes::-webkit-scrollbar { display: none; }
  .modes a { flex: none; min-width: 0; padding: 10px 14px 9px; font-size: var(--fs-xs); }
  .modes a.on::after { left: 14px; right: 14px; }
  .nav-cta { display: none; }

  .hero-stage { padding: 150px var(--s4) 150px; }
  .hero-title { font-size: clamp(44px, 14vw, 64px); }
  .hero-cta { width: min(300px, 78vw); }
  .hero-sub { font-size: var(--fs-sm); max-width: 300px; }
  .houses { top: 10px; right: 6px; width: 150px; }
  .snap-a, .snap-b { padding: 6px 6px 0; }
  .hero-snap figcaption { display: none; }
  .hero-snap img { margin-bottom: 6px; }
  .snap-c img { border-width: 4px; border-radius: 12px; }
  .script-note { display: none; }
  .stars { top: 22%; width: 90vw; }
  .ransom i { font-size: 24px; }
  .side-b-list a { font-size: var(--fs-md); }
  .doodle-notes { width: 150px; left: 4px; bottom: 10px; }
  .doodle-cam { width: 170px; right: 4px; bottom: 10px; }
  .side-text { display: none; }

  .cassette { transform: rotate(-1deg); }
  .cassette-body { padding: 14px 12px 14px; }
  .cassette textarea { font-size: 16px; line-height: 28px; }
  .cassette-label { background-image: repeating-linear-gradient(transparent 0 27px, rgba(142, 20, 36, 0.2) 27px 28px); padding: 8px 12px 10px; }
  .cassette .cassette-window { width: 80%; height: 40px; }
  .cassette .reel { width: 28px; height: 28px; }
  .cassette button { justify-self: stretch; justify-content: center; }
  .search-note, .search-cam { display: none; }

  .rs-slide { width: 26%; }
  .rs-slide.on { width: 70%; }
  .rs-detail { grid-template-columns: 1fr; gap: var(--s5); }
  .rs-why { justify-self: stretch; transform: rotate(0.8deg); }
  .search-head, .side-b-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .side-b-snap { max-width: 260px; }
  .searchbar { flex-wrap: wrap; padding: var(--s4); gap: var(--s3); }
  .searchbar textarea { flex-basis: 100%; order: 1; font-size: var(--fs-md); }
  .searchbar .cassette-window { order: 0; }
  .searchbar button { order: 2; width: 100%; }

  .figures { grid-template-columns: 1fr 1fr; }
  .fig:nth-child(3) { border-left: 0; padding-left: 0; }
  .fig:nth-child(n+3) { margin-top: var(--s5); border-top: 1px solid var(--line); }
  .specs.cols { grid-template-columns: 1fr; }
  .sound-grid, .logistics-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .sound-grid .sub-head { margin-top: var(--s6); }
  .room-view { aspect-ratio: 1 / 1; }
  .viewer-frame { box-shadow: 8px 8px 0 var(--sage); }
  .vf-foot { flex-wrap: wrap; }
  .vf-foot input[type=range] { flex-basis: 100%; order: 3; }
  .script-hint { margin-left: var(--s4); }
  .jcard { grid-template-columns: 36px minmax(0, 1fr); }
  .report { columns: 1; }
  .subnav-links { margin-left: 0; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ink > * { stroke-dashoffset: 0; }
  .hero-cta::before { opacity: 0.8; }
}

/* Fast planner or AI agent, under the cassette */
.scout-mode { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s5); font-size: var(--fs-sm); color: var(--on-dark-2); }
.scout-mode .note { margin: 0; color: var(--on-dark-2); }

/* ---------------------------------------------------------------- opening page: the collage
   Every layer sits exactly where it does in the 1440 x 810 design (img/home/*), with the
   design's own matrix. collage.js scales the whole sheet to the screen. */
.collage-hero { padding: 0; }
.collage { position: relative; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 320px; overflow: hidden;
  background: #3a1517 url("img/home/paper.jpg") center / cover no-repeat; }
.collage-art { position: absolute; left: 0; top: 0; width: 1440px; height: 810px; transform-origin: 0 0; }
.collage .cl { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; }
.collage img.cl { max-height: none; }
.collage .cl-img { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.collage .cl-hit { padding: 0; border: 0; background: none; cursor: pointer; }
.collage .cl-staff { opacity: 0.92; }
/* The name is the way in: it lifts a little and glows when you point at it. */
#hero-cta .cl-logo { transition: transform .25s ease, filter .25s ease; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
/* No glow or lift on the name: it stays exactly as designed. */
#hero-cta:focus-visible { outline: none; }
/* The record: only the disc itself is clickable, and it breathes while a chord plays. */
.cl-record-hit { border-radius: 50%; }
/* A slow, lazy turn around the centre hole: one revolution every 8 seconds. */
.cl-record-hit .cl-record { animation: record-spin 8s linear infinite; will-change: transform; }
@keyframes record-spin { to { transform: rotate(360deg); } }
.cl-record-hit .cl-record { transition: filter .3s ease; }
.cl-record-hit:hover .cl-record { filter: brightness(1.08) saturate(1.1); }
.cl-record-hit.playing .cl-record { filter: brightness(1.12) saturate(1.15); }
@keyframes record-breathe { 50% { filter: brightness(1.15) saturate(1.2); } }
@media (prefers-reduced-motion: reduce) { .cl-record-hit .cl-record { animation: none; } #hero-cta .cl-logo { transition: none; } }

/* ---------------------------------------------------------------- search page in the opening page's style
   Same crumpled maroon paper, cream type, and white cut-out letters like the Stagehand name.
   Layout and features are unchanged. */
.search-band.band.olive { background: #3a1517 url("img/home/paper.jpg") center / cover no-repeat; color: #f4e9e4; }
.search-band { overflow: hidden; }
.search-staff { position: absolute; left: -2%; top: 12px; width: 70%; max-width: 980px; opacity: 0.28; pointer-events: none; transform: rotate(-3deg); }
.search-band .wrap { position: relative; }
.search-band h1, .search-band h2 { color: #f4e9e4; }
.search-band #search-title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.02; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.search-band .sb-line { display: block; }
.search-band .search-note { color: #e9b8c4; }
.search-band .search-cam { color: #e7d3c9; opacity: 0.8; }

/* white paper letters, each from a different clipping, like the name on the opening page */
.cutout { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.08em; margin-top: 0.18em; }
.cutout > span[aria-hidden] { display: inline-flex; flex-wrap: wrap; gap: 0.12em 0.32em; }
.cutout .cw { display: inline-flex; gap: 0.05em; white-space: nowrap; }
.cutout i {
  display: inline-block; font-style: normal; font-size: 0.62em; line-height: 1; padding: 0.08em 0.12em 0.12em; min-width: 0.55em; text-align: center;
  background: #f6f1ea; color: #1d1b16; box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.45); letter-spacing: 0;
}
.cutout .cw i:nth-child(5n+1) { font-family: var(--serif); font-weight: 700; transform: rotate(-4deg); }
.cutout .cw i:nth-child(5n+2) { font-family: var(--type); background: #e9e1d4; transform: rotate(3deg) translateY(0.05em); }
.cutout .cw i:nth-child(5n+3) { font-family: var(--display); font-weight: 800; transform: rotate(-2deg) translateY(-0.04em); }
.cutout .cw i:nth-child(5n+4) { font-family: "Courier New", var(--type); font-weight: 700; background: #fffaf2; transform: rotate(5deg); }
.cutout .cw i:nth-child(5n) { font-family: var(--serif); font-style: italic; background: #efe4d7; transform: rotate(-6deg) translateY(0.04em); }
.cutout.small { font-size: 34px; margin: 0; }
.featured-title .cutout.small i { font-size: 0.75em; }

/* the example briefs as paper clippings */
.search-band .try { color: #e7d3c9; }
.search-band .try button, .search-band .try button:nth-of-type(n) {
  font-family: var(--type); font-size: var(--fs-xs); background: #f6f1ea; color: #1d1b16; border: 0; border-radius: 0;
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.45); transform: rotate(-1.5deg);
}
.search-band .try button:nth-of-type(even) { transform: rotate(1.5deg); background: #ece3d6; }
.search-band .try button:hover { background: #e9b8c4; color: #1d1b16; }
.search-band .arrow { color: #f4e9e4; }
.search-band .arrow:hover:not(:disabled) { background: #f4e9e4; color: #3a1517; }
.search-band .last-results a, .search-band .scout-mode, .search-band .scout-mode .note { color: #e7d3c9; }
.search-band .cassette-body { box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5); }
.search-band .featured .polaroid { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45); }

/* the band under it keeps its wine colour but gets the same paper */
.side-b.band.wine { background: #5a2128 url("img/home/paper.jpg") center / cover no-repeat; background-blend-mode: multiply; }
.side-b .ransom i { box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.45); }

@media (max-width: 760px) {
  .search-staff { width: 130%; left: -15%; }
  .cutout.small { font-size: 26px; }
}

/* the white cut-out letters belong to the opening page only; here the second line is Playfair italic */
.search-band .sb-em { display: block; font-style: italic; font-weight: 600; color: #e9b8c4; }
.search-band .featured-title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
/* a lighter maroon for the search band: the same paper under a dusty rose wash */
.search-band.band.olive { background: linear-gradient(rgba(150, 92, 92, 0.55), rgba(150, 92, 92, 0.55)), #3a1517 url("img/home/paper.jpg") center / cover no-repeat; }
/* "Taking it on the road?" band: lighter, a warm rose wash over the same paper */
.side-b.band.wine { background: linear-gradient(rgba(176, 110, 112, 0.6), rgba(176, 110, 112, 0.6)), #5a2128 url("img/home/paper.jpg") center / cover no-repeat; background-blend-mode: normal; }

/* results: the big picture fits on the first screen, under the heading */
.results-page { padding-top: var(--s6); }
.results-page .crumbs { margin-bottom: var(--s4); }
.results-page .page-title { font-size: clamp(36px, 5vw, 68px); }
.results-page .page-sub { margin-top: var(--s3); }
.results-layout { margin-top: var(--s5); }
.rs-slide.on { width: min(52%, 600px, calc((100vh - var(--nav-h) - 430px) * 4 / 3)); min-width: 280px; }
.rs-slide { width: clamp(110px, 14%, 180px); }
@media (max-width: 760px) {
  .rs-slide.on { width: 70%; min-width: 0; }
  .rs-slide { width: 26%; }
}
/* "Taking it on the road?": a dusty plum, same muted shade as the rose above but its own colour */
.side-b.band.wine { background: linear-gradient(rgba(112, 84, 118, 0.72), rgba(112, 84, 118, 0.72)), #3a1517 url("img/home/paper.jpg") center / cover no-repeat; }

/* property page: the venue's name first, then the pictures, then the info */
.pick-head { margin-bottom: var(--s6); }
.pick-head .display { font-size: var(--fs-3xl); line-height: 0.98; overflow-wrap: anywhere; }
.pick-head .lede-dark { margin-top: var(--s3); }
.pick-main .figures { margin-top: 0; }

/* the gramophone and camera on the opening page are buttons too */
.cl-gramophone-hit .cl-gramophone, .cl-camera-hit .cl-camera { transition: filter .25s ease, transform .25s ease; }
.cl-gramophone-hit:hover .cl-gramophone, .cl-camera-hit:hover .cl-camera { filter: brightness(1.08) drop-shadow(0 0 14px rgba(255, 214, 224, 0.45)); }
.cl-gramophone-hit.playing .cl-gramophone { animation: gramo-sway 1.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes gramo-sway { 50% { transform: rotate(-1.6deg); filter: brightness(1.12); } }
.cl-camera-hit.snap::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%); animation: flash-pop .45s ease-out forwards; pointer-events: none; }
@keyframes flash-pop { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.3); } }
.cl-gramophone-hit:focus-visible, .cl-camera-hit:focus-visible, #hero-record:focus-visible { outline: 3px solid #f3d27a; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .cl-gramophone-hit.playing .cl-gramophone, .cl-camera-hit.snap::after { animation: none; } }
.cassette-head { justify-content: center; }
.cassette textarea::placeholder { color: var(--ink-3); font-style: italic; }

/* the slideshow polaroid beside "Working on the road?" */
.side-show { width: min(380px, 100%); }
.ss-frame { position: relative; aspect-ratio: 6 / 5; background: #2b2722; overflow: hidden; }
.ss-frame > img { display: none; }
.ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.ss-slide.on { opacity: 1; pointer-events: auto; }
.ss-slide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transform: scale(1.04); transition: transform 6s ease-out; }
.ss-slide.on img { transform: scale(1); }
.ss-slide:hover img { filter: brightness(1.06); }
.side-show figcaption { min-height: 1.6em; transition: opacity .4s; }

/* search headline: the first line on one line, the second a touch smaller */
.search-band #search-title { font-size: clamp(30px, 3.9vw, 58px); }
.search-band .sb-line { white-space: nowrap; }
.search-band .sb-em { font-size: 0.82em; margin-top: 0.08em; }
@media (max-width: 760px) {
  .search-band #search-title { font-size: clamp(24px, 7.4vw, 34px); }
}

/* ---------------------------------------------------------------- results as a roll of film */
.rs-slider { --film: #1b1815; --hole: #e9ddd0; }
.rs-track {
  position: relative; align-items: center; gap: 14px; padding: 34px 18px; overflow: hidden;
  background:
    radial-gradient(ellipse 5px 7px at 50% 50%, var(--hole) 90%, transparent 100%) 0 10px / 26px 14px repeat-x,
    radial-gradient(ellipse 5px 7px at 50% 50%, var(--hole) 90%, transparent 100%) 0 calc(100% - 10px) / 26px 14px repeat-x,
    var(--film);
  border-radius: 4px; box-shadow: 0 16px 30px rgba(40, 20, 10, 0.3); transform: rotate(-0.6deg);
}
.rs-track::before, .rs-track::after {
  position: absolute; left: 22px; font-family: var(--type); font-size: 10px; letter-spacing: 0.24em; color: #d9a441; opacity: 0.85; pointer-events: none;
}
.rs-track::before { content: "STAGEHAND 400  \25B6  SAFETY FILM"; top: 18px; }
.rs-track::after { content: "\25B6 1A    \25B6 2A    \25B6 3A    \25B6 4A    \25B6 5A    \25B6 6A    \25B6 7A"; bottom: 16px; }
.rs-slide, .rs-slide.on { width: clamp(180px, 31%, 360px); flex: 0 0 auto; }
.rs-slide.past { width: 0; margin-right: -14px; }
.rs-shot, .rs-slide:not(.on) .rs-shot {
  aspect-ratio: 3 / 2; border: 0; border-radius: 2px; box-shadow: none; opacity: 1;
  outline: 3px solid #0e0c0a; outline-offset: 0;
}
.rs-slide:not(.on) .rs-shot img { filter: sepia(0.35) brightness(0.7) contrast(1.05); transition: filter .4s; }
.rs-slide:not(.on) .rs-shot:hover img { filter: sepia(0.1) brightness(0.92); }
.rs-slide.on .rs-shot { box-shadow: 0 0 0 3px #d9a441; }
.rs-shot .rs-num { top: auto; bottom: 8px; left: 8px; background: none; color: #d9a441; font-size: 12px; padding: 0; text-shadow: 0 1px 2px #000; }
.rs-shot-name, .rs-slide.on .rs-shot-name { display: block; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #f3ece1; padding: 18px 10px 8px 34px; font-size: 12px; }
@media (max-width: 760px) {
  .rs-track { padding: 30px 12px; transform: none; }
  .rs-slide, .rs-slide.on { width: 64%; }
  .rs-track::after { display: none; }
}
.rs-track { padding: 44px 18px; }
.rs-track::before { top: 25px; }
.rs-track::after { bottom: 23px; }
.rs-slide.on .rs-shot { box-shadow: 0 0 0 3px #d9a441, 0 0 22px rgba(217, 164, 65, 0.35); }
.rs-slide:not(.on) .rs-shot img { filter: sepia(0.45) brightness(0.62) contrast(1.05); }
@media (max-width: 760px) { .rs-track { padding: 40px 12px; } .rs-track::before { top: 22px; font-size: 9px; } }

/* search results on a light pastel blush */
.view[data-view="results"] { background: #f7e4e6; }
.view[data-view="results"] .rs-why { background: #dfe6cf; }

/* "find your space" under the lower staff, in the cream letterpress serif of the design */
.collage .find-space { left: 290px; top: 516px; width: 900px; text-align: center; text-decoration: none;
  font-family: "IM Fell English", "Iowan Old Style", Georgia, serif; font-size: 58px; letter-spacing: 0.06em; line-height: 1;
  color: #f3e7d8; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 0 1px rgba(243, 231, 216, 0.6); }
.collage .find-space span { font-family: "IM Fell English SC", "IM Fell English", Georgia, serif; }
.collage .find-space:hover { color: #fff6ea; }
.collage .find-space:focus-visible { outline: 2px solid #f3d27a; outline-offset: 8px; }

/* mic recommendations on the acoustics page */
.ac-mic-why { margin-top: calc(-1 * var(--s3)); margin-bottom: var(--s4); }
.ac-mics { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s4); }
.ac-mic { background: var(--card); border: 1.5px solid var(--line-strong); border-left: 5px solid var(--cherry); padding: var(--s4) var(--s5); }
.ac-mic-kind { font-family: var(--type); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ac-mic h3 { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.2; margin-top: var(--s1); }
.ac-mic ul { margin: var(--s3) 0 0; padding-left: 18px; font-size: var(--fs-sm); color: var(--ink-2); display: grid; gap: 6px; }
.ac-mic-tag { margin-top: var(--s3); font-size: var(--fs-xs); font-weight: 600; color: var(--wine); }

/* stand in the room: the 3D view on the acoustics page */
.stand-band { background: linear-gradient(rgba(112, 84, 118, 0.72), rgba(112, 84, 118, 0.72)), #3a1517 url("img/home/paper.jpg") center / cover no-repeat; color: var(--on-dark); }
.stand-band h2 { color: var(--on-dark); }
.stand-band .script { color: #f3e7d8; }
.stand-band .lede { color: var(--on-dark-2); }
.stand-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); margin-top: var(--s6); align-items: start; }
.stand-view { position: relative; height: min(62vh, 560px); min-height: 320px; background: radial-gradient(ellipse at 50% 30%, #4a2a33, #1c0f12); }
.stand-view canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.stand-side { display: grid; gap: var(--s4); justify-items: start; }
.stand-play { width: 96px; }
.stand-play.on .tri { width: 14px; height: 18px; margin-left: 0; border: 0; background: linear-gradient(90deg, var(--wine) 0 35%, transparent 35% 65%, var(--wine) 65%); }
.stand-play.on { animation: pr-spin 1.8s linear infinite; }
.stand-read { font-size: var(--fs-sm); color: var(--on-dark); min-height: 4.5em; }
.stand-read b { font-family: var(--serif); font-size: var(--fs-lg); }
.stand-crowd { margin-top: 0; }
.stand-voices { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center; width: 100%; font-size: var(--fs-sm); }
.stand-voices input { accent-color: #f3e7d8; }
.stand-band .note { color: var(--on-dark-2); }
.stand-band .lab-act { background: transparent; color: var(--on-dark); border-color: rgba(243, 236, 225, 0.6); }
@media (max-width: 1000px) { .stand-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .stand-play.on { animation: none; } }

/* the four sound cards, much smaller */
.ac-h { font-size: var(--fs-lg); margin: var(--s6) 0 var(--s3); }
.ac-cards { gap: var(--s3); max-width: 920px; }
.ac-card { padding: var(--s3) var(--s4); box-shadow: 0 6px 14px rgba(40, 25, 10, 0.14); }
.ac-card::before { width: 46px; height: 14px; top: -7px; }
.ac-card h3 { font-size: 20px; }
.ac-big { font-size: clamp(22px, 2vw, 28px); margin-top: 2px; }
.ac-meter { height: 6px; margin-top: var(--s2); }
.ac-dot { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-width: 1.5px; }
.ac-ends { font-size: 9px; margin-top: 3px; }
.ac-text { font-size: var(--fs-xs); line-height: 1.45; margin-top: var(--s2); }

/* acoustics page: less empty space under the sound buttons */
.ac-try { padding-bottom: var(--s6); }
.ac-try #scope { margin-top: var(--s4); height: 56px; }
.ac-try #ac-now { margin-top: var(--s2); }
.view[data-view="acoustics"] .frame.black.sound { padding-top: var(--s7); }
.view[data-view="acoustics"] .sound-top { gap: var(--s4); }

/* Property page: a film strip across the full width, the venue's pictures in its frames.
   Frame positions are measured from img/filmstrip.webp (1865 x 513); the strip lies on top. */
.prop-gallery { grid-template-columns: minmax(0, 1fr); }
.film-carousel { grid-area: film; position: relative; overflow: hidden; margin: 0 calc(50% - 50vw); padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.film-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content;
  animation: film-roll calc(var(--strips, 3) * 16s) linear infinite; }
.film-carousel:hover .film-track, .film-carousel:focus-within .film-track { animation-play-state: paused; }
@keyframes film-roll { to { transform: translateX(-50%); } }
.film-strip { position: relative; flex: none; width: clamp(560px, 62vw, 900px); aspect-ratio: 1865 / 513; margin-right: -1.6%; }
.film-strip::after { content: ""; position: absolute; inset: 0; background: url("img/filmstrip.webp") center / 100% 100% no-repeat; pointer-events: none; }
.film-frame { position: absolute; padding: 0; border: 0; background: #efe3d6; cursor: pointer; }
.film-frame:nth-child(1) { left: 4.18%; top: 22.03%; width: 21.72%; height: 58.09%; }
.film-frame:nth-child(2) { left: 27.67%; top: 21.83%; width: 21.66%; height: 58.09%; }
.film-frame:nth-child(3) { left: 51.1%; top: 21.64%; width: 21.72%; height: 58.28%; }
.film-frame:nth-child(4) { left: 74.58%; top: 21.64%; width: 21.72%; height: 58.09%; }
.film-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-frame:hover img, .film-frame:focus-visible img { filter: brightness(1.1) saturate(1.1); }
.film-frame:focus-visible { outline: 3px solid #f3d27a; outline-offset: -3px; z-index: 1; }
.film-frame:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .film-track { animation: none; }
  .film-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* property page: overview and stay/budget sit close, with a small rule between */
.view[data-view="property"] .frame.pick { padding-bottom: var(--s6); }
.view[data-view="property"] .logistics { padding-top: 0; }
.view[data-view="property"] .logistics-grid { border-top: 1px solid var(--line-strong); padding-top: var(--s6); }
.view[data-view="property"] .logistics-grid .display { margin-top: 0; }
.view[data-view="property"] .logistics-grid { border-top: 0; position: relative; }
.view[data-view="property"] .logistics-grid::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-strong); }

/* booking: the calendar comes up right under the title */
.book-pick .crumbs { margin-bottom: var(--s3); }
.book-head { position: relative; align-items: center; padding-right: 200px; }
.book-snap { position: absolute; right: 0; top: -16px; width: 160px; }
.book-body { margin-top: var(--s5); }
@media (max-width: 900px) {
  .book-head { padding-right: 0; }
  .book-snap { position: static; width: 140px; }
}
.book-pick .cal-side { padding-top: 96px; }
@media (max-width: 900px) { .book-pick .cal-side { padding-top: var(--s4); } }

/* film roll: a thinner strip; the chosen venue pops out of it, bigger than the rest */
.rs-slider { padding: 5.5% 0; }
.rs-track { overflow-x: clip; overflow-y: visible; padding: 30px 18px; gap: 10px; }
.rs-track::before { top: 12px; font-size: 9px; }
.rs-track::after { bottom: 10px; font-size: 9px; }
.rs-slide, .rs-slide.on { transition: width .45s ease-out, margin .45s ease-out, transform .45s ease-out; }
.rs-slide { width: 19%; }
.rs-slide.on { width: 32%; margin-block: -4.4%; position: relative; z-index: 2; transform: rotate(-1.5deg); }
.rs-slide.past { width: 0; margin-right: -10px; }
.rs-slide.on .rs-shot { outline: 0; border: 6px solid #f6f1ea; border-bottom-width: 26px; box-shadow: 0 0 0 2px #d9a441, 0 18px 34px rgba(0, 0, 0, 0.45); border-radius: 2px; }
.rs-slide.on .rs-shot-name { bottom: -24px; background: none; color: var(--ink); padding: 4px 6px; font-size: 12px; }
.rs-slide.on .rs-shot .rs-num { bottom: 10px; }
@media (max-width: 760px) {
  .rs-slider { padding: 10% 0; }
  .rs-slide { width: 38%; }
  .rs-slide.on { width: 62%; margin-block: -8%; }
}
.rs-slide.on .rs-shot-name { display: none; }
.rs-slider { padding-bottom: 0; }
.rs-controls { margin-top: calc(4.4% + var(--s4)); }
@media (max-width: 760px) { .rs-controls { margin-top: calc(8% + var(--s3)); } }

/* acoustics page: the chosen room's picture beside "Which room" */
.ac-head { flex-wrap: nowrap; align-items: flex-start; }
.ac-head > div:first-child { flex: 1 1 auto; }
.ac-photo { flex: none; width: clamp(200px, 22vw, 300px); --tilt: 3deg; margin-top: var(--s2); }
.ac-photo img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .ac-head { flex-wrap: wrap; } .ac-photo { width: 220px; } }
.ac-head { flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; gap: var(--s5) var(--s8); }
.ac-head > div:first-child { flex: 1 1 100%; }
.ac-photo { margin-top: 0; }

/* mic recommendations: all on one line */
.ac-mics { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: var(--s2); }
.ac-mic { padding: var(--s3); border-left-width: 4px; min-width: 0; }
.ac-mic-kind { font-size: 10px; letter-spacing: 0.08em; }
.ac-mic h3 { font-size: var(--fs-md); }
.ac-mic ul { font-size: 12px; padding-left: 14px; gap: 4px; margin-top: var(--s2); }
.ac-mic-tag { font-size: 11px; margin-top: var(--s2); }
@media (max-width: 1000px) { .ac-mics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ac-mics { grid-template-columns: 1fr; } }

/* venue pages: no section links across the top, just the way back */
.prop-nav .subnav-links { display: none !important; }

/* acoustics details: only the clap measurement stays */
.view[data-view="acoustics"] .pr-compare,
.view[data-view="acoustics"] .pr-model,
.view[data-view="acoustics"] #d-rtchart,
.view[data-view="acoustics"] #sound details.fold { display: none !important; }

/* The opening page is the collage alone: no tab bar, and the collage fills the whole screen. */
body[data-view="home"] .masthead { display: none; }
body[data-view="home"] .collage { height: 100vh; height: 100svh; }

/* Sing into the room: obvious when the microphone is live */
#ac-mic[aria-pressed="true"] { position: relative; background: #c21f3a; color: #fff; animation: mic-live 1.4s ease-in-out infinite; }
#ac-mic[aria-pressed="true"] svg, #ac-mic[aria-pressed="true"] span { color: #fff; }
#ac-mic[aria-pressed="true"]::after {
  content: "\25CF  LIVE"; position: absolute; top: 10px; right: 14px; font: 600 11px/1 var(--type); letter-spacing: 0.14em;
  color: #fff; background: rgba(0, 0, 0, 0.25); padding: 4px 8px; border-radius: 999px;
}
@keyframes mic-live { 0%, 100% { box-shadow: 5px 6px 0 var(--wine-deep), 0 0 0 0 rgba(255, 80, 100, 0.55); } 50% { box-shadow: 5px 6px 0 var(--wine-deep), 0 0 0 10px rgba(255, 80, 100, 0); } }
.pr-mic.live, #mic.live {
  color: #fff !important; background: #c21f3a; text-decoration: none; padding: 4px 12px 4px 10px; border-radius: 999px;
  animation: mic-live-link 1.4s ease-in-out infinite;
}
.pr-mic.live::before, #mic.live::before { content: "\25CF "; animation: blink 1s steps(2, start) infinite; }
@keyframes mic-live-link { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 100, 0.6); } 50% { box-shadow: 0 0 0 8px rgba(255, 80, 100, 0); } }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #ac-mic[aria-pressed="true"], .pr-mic.live, #mic.live, .pr-mic.live::before, #mic.live::before { animation: none; } }
/* the clap measurement at the bottom of the acoustics page goes too */
.view[data-view="acoustics"] .pr-measure { display: none !important; }


/* results heading in the search page's style: bold Playfair, then an italic line */
.results-page .page-title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.02; font-size: clamp(34px, 4.4vw, 62px); }
.results-page .rs-line { display: block; white-space: nowrap; }
.results-page .rs-em { display: block; font-style: italic; font-weight: 600; color: var(--cherry); font-size: 0.82em; margin-top: 0.06em; }
@media (max-width: 760px) { .results-page .rs-line { white-space: normal; } }

/* ================================================================ the home page's palette, everywhere
   Crinkled wine paper behind every page, cream type, cherry and blush accents. Cream cards
   (polaroids, tickets, the cassette label) stay cream on top, like the cut-outs on the collage. */
:root {
  --paper: #3a1517;
  --paper-2: #321214;
  --card: #f1e6d8;
  --ink: #f3e7d8;
  --ink-2: #e2d2bf;
  --ink-3: #c7b4a0;
  --line: rgba(243, 231, 216, 0.2);
  --line-strong: rgba(243, 231, 216, 0.7);
  --wine: #5c2128;
  --wine-deep: #2c0d10;
  --olive: #2f0f12;
  --olive-deep: #260b0e;
  --sage: #f3e7d8;
  --tape: rgba(214, 206, 170, 0.62);
  --on-dark: #f3e7d8;
  --on-dark-2: #ddcbb8;
  --focus: #f3d27a;
  --shadow-photo: 0 14px 30px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
body { background: #3a1517 url("img/home/paper.jpg") center top / 1600px auto repeat; color: var(--ink); }
:focus-visible { outline-color: var(--focus); }
/* cream cards keep dark ink */
.polaroid, .polaroid figcaption, .card, .stub, .cassette-label, .ticket, .tp-receipt { color: #2a1012; }
.polaroid { background: #f6efe6; }
/* links and quiet buttons read on wine */
.link, .link-dark, .pl-link, .tp-vote, .try button, .room-picker button, .rooms button { color: #f3e7d8; }
.link:hover, .link-dark:hover, .pl-link:hover, .tp-vote:hover { color: #fff6ea; }
/* main buttons: cream on wine, cherry shadow */
.btn, .cta, .searchbar button, .pl-cta, #approve, #copy-email { background: var(--ink); color: #2a1012; box-shadow: var(--shadow-offset) var(--cherry); }
.btn:hover, .cta:hover, .searchbar button:hover, .pl-cta:hover, #approve:hover, #copy-email:hover { color: #2a1012; box-shadow: 6px 6px 0 var(--cherry); }

/* top bar: words in the collage's cream serif, no tabs */
.masthead { background: rgba(44, 13, 16, 0.92); border-bottom: 1px solid rgba(243, 231, 216, 0.18); align-items: center; backdrop-filter: none; }
.modes { align-items: center; gap: clamp(14px, 3vw, 44px); margin: 0 0 0 var(--s4); }
.modes a { padding: 6px 2px; min-width: 0; background: none; border: 0; border-radius: 0;
  font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: 0.12em; color: #ddcbb8; }
.modes a:hover { background: none; color: #fff6ea; }
.modes a.on { background: none; color: #f3e7d8; border: 0; }
.modes a.on::after { left: 0; right: 0.12em; bottom: 0; height: 1px; background: #f3e7d8; }
.nav-cta { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: 20px; letter-spacing: 0.08em; color: #f3e7d8; border-bottom-color: #f3e7d8; }
.nav-cta:hover { color: #fff6ea; border-color: #fff6ea; }
.logo { background: transparent; }
.logo svg { color: #f3e7d8; }
.logo .logo-star { fill: #3a1517; }

/* readability fixes for the wine palette */
input[type=date], input:not([type]), select { background: rgba(20, 5, 7, 0.35); color: var(--ink); border-color: rgba(243, 231, 216, 0.45); }
select option { background: #2c0d10; color: var(--ink); }
.seg button.on { background: var(--ink); color: #2a1012; }
.save-btn { background: transparent; color: var(--ink); border-color: #f3e7d8; }
.save-btn svg, .save-btn svg path { stroke: #f3e7d8; }
.save-btn:hover { background: #f3e7d8; color: #2a1012; }
.side-b.band.wine { background: linear-gradient(rgba(92, 33, 40, 0.55), rgba(92, 33, 40, 0.55)), #3a1517 url("img/home/paper.jpg") center / cover no-repeat; }
.pl-rows li { background: rgba(20, 5, 7, 0.3); border-color: rgba(243, 231, 216, 0.35); }
.stub, .stub .ledger { color: #2a1012; }
.stub .ledger li { border-top-color: rgba(42, 16, 18, 0.18); }
.stub .ledger span, .stub .ledger li > :first-child { color: #5c3a35; }
.rs-card, .rs-card-name, .rs-card-foot { color: #2a1012; }
.rs-card-meta { color: #5c3a35; }

/* cream surfaces keep dark ink (found by scanning for cream backgrounds without a text colour) */
.cassette-label, .search-band .try button, .ransom i, .rs-shot-name, .lab-rooms button, .lab-presets button,
.lab-kinds button, .lab-list li, .lab-act, .ac-card, .ac-meter, .walk-switch button, .cal, .cal-nav .arrow, .cal-day,
.card, .cutout .cw i, .ac-mic, .lab-meter, .pl-email { color: #2a1012; }
.lab-rooms button small, .lab-kinds button small, .lab-meter dt, .lab-meter .note, .lab-meter p, .ac-card .note, .cal .note { color: #5c3a35; }
.lab-rooms button.on, .lab-presets button.on, .lab-kinds button.on { color: #f3e7d8; }
.pl-actions select { background: #f1e6d8; color: #2a1012; }
.dl-map:empty { background: rgba(20, 5, 7, 0.3); }
.lab-kinds button[aria-checked="true"], .lab-rooms button[aria-pressed="true"], .lab-presets button[aria-pressed="true"],
.lab-rooms button[aria-checked="true"], .lab-presets button[aria-checked="true"] { color: #f3e7d8; }
.lab-meter dt { color: #6b4a44; }

.results-page .rs-em { color: #f3e7d8; }
/* results on the wine paper too; the "why it fits" note stays a cream card */
.view[data-view="results"] { background: transparent; }
.view[data-view="results"] .rs-why, .rs-why { background: #f1e6d8; color: #2a1012; }
.rs-why h3 { color: #8e1424; }
.rs-price, .rs-price b { color: var(--ink); }
.rs-why p { color: #2a1012; }
.rs-tag { color: #f3e7d8; }

/* "Working on the road?" in the same Playfair as the other headings */
#sideb-title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.02; font-size: clamp(36px, 4.4vw, 62px); }
.side-b-list a { font-family: var(--serif); font-weight: 600; font-size: var(--fs-lg); letter-spacing: 0; }

/* text typed on cream surfaces stays dark (the wine palette made --ink cream) */
.cassette textarea, .book-sheet input:not([type=checkbox]), .book-sheet textarea, .book-sheet, .book-sheet legend + *, .book-sheet label,
.searchbar textarea, .tp-form textarea, .stub .total, .stub .verdict, .stub .display, .stub h2 { color: #2a1012; }
.cassette textarea::placeholder, .book-sheet input::placeholder, .book-sheet textarea::placeholder { color: #7a5a52; }
.book-sheet .field label, .book-sheet .check { color: #5c3a35; }
/* Explore buttons and other cream cards: dark text */
.ex-choice, .ex-choice b, .ac-sample, .ac-sample b { color: #2a1012; }
.ex-choice small, .ac-sample span { color: #5c3a35; }
.ex-choice[aria-pressed="true"], .ex-choice[aria-pressed="true"] b, .ex-choice[aria-pressed="true"] small,
.ac-sample[aria-pressed="true"], .ac-sample[aria-pressed="true"] b, .ac-sample[aria-pressed="true"] span { color: #fff6ea; }

/* ================================================================ legibility on the wine palette
   Every cream surface switches the ink variables back to dark, so whatever is inside reads. */
.polaroid, .card, .stub, .cassette-label, .rs-why, .ac-card, .ac-sample, .ex-choice, .cal, .book-sheet,
.lab-rooms button, .lab-kinds button, .lab-presets button, .lab-meter, .ac-mic, .pl-rows li, .rs-card,
.ac-rooms .rooms button, .walk-switch button, .lab-list li, .lab-act, .liner, .jcard, .tp-stops, .pl-email, .rs-shot-name, .lab-readout {
  --ink: #2a1012; --ink-2: #5c3a35; --ink-3: #7a5a52; --line: rgba(42, 16, 18, 0.18); --line-strong: rgba(42, 16, 18, 0.6);
  color: var(--ink);
}
.pl-rows li .pl-link, .stub .link, .cal .link { color: #8e1424; }
.ac-rooms .rooms button.on, .walk-switch button[aria-pressed="true"], .lab-rooms button[aria-pressed="true"],
.lab-kinds button[aria-checked="true"], .lab-presets button[aria-pressed="true"] { --ink: #fff6ea; color: #fff6ea; }
/* script accents read on the dark paper; on cream they stay cherry */
.script, .cal-hint { color: #f3e7d8; }
.polaroid .script, .card .script, .stub .script, .rs-why .script, .ac-card .script, .cal .script, .book-sheet .script { color: #8e1424; }
.view .page-title .script, .view .display .script, .view h1 .script, .view h2 .script { color: #f3e7d8 !important; }
.script-hint { color: #f3e7d8; }
.daylight .link, .daylight summary, .daylight button.link { color: #f3e7d8; }
.fig.good .n { color: #a9d79a; }
.stub .cta, .stub #approve { background: #2a1012; color: #f6efe6; }
.ac-crowd button[aria-pressed="true"] { background: #f3e7d8; color: #2a1012; }
.lab-rooms button[aria-pressed="true"], .lab-kinds button[aria-checked="true"], .lab-presets button[aria-pressed="true"],
.walk-switch button[aria-pressed="true"], .ac-rooms .rooms button.on { background: #8e1424; border-color: #8e1424; color: #fff6ea; }
.lab-rooms button[aria-pressed="true"] small { color: #f6dfe2; }
.daylight details > summary, .dl-assume > summary { color: #f3e7d8 !important; }

/* opening page: the Stagehand name glows when you point at it */
#hero-cta .cl-logo { transition: transform .3s ease, filter .3s ease; }
#hero-cta:hover .cl-logo, #hero-cta:focus-visible .cl-logo {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 0 10px rgba(255, 228, 210, 0.9)) drop-shadow(0 0 28px rgba(255, 170, 190, 0.75)) drop-shadow(0 0 60px rgba(232, 120, 150, 0.45));
  animation: logo-glow 1.8s ease-in-out infinite alternate;
}
@keyframes logo-glow {
  from { filter: drop-shadow(0 0 8px rgba(255, 228, 210, 0.8)) drop-shadow(0 0 22px rgba(255, 170, 190, 0.6)) drop-shadow(0 0 44px rgba(232, 120, 150, 0.35)); }
  to { filter: drop-shadow(0 0 12px rgba(255, 236, 222, 1)) drop-shadow(0 0 34px rgba(255, 170, 190, 0.85)) drop-shadow(0 0 72px rgba(232, 120, 150, 0.55)); }
}
@media (prefers-reduced-motion: reduce) { #hero-cta:hover .cl-logo { animation: none; } }

/* cassette: a warm mid brown body and a pastel Scout button */
.cassette-body { background: #8a6552; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35); }
.cassette-body::before, .cassette-body::after { background: #6e4f40; }
.cassette .cassette-window { background: #6e4f40; }
.cassette .tape { background: #b48c74; }
.cassette .reel { border-color: rgba(246, 239, 230, 0.6); background: radial-gradient(circle, #f6efe6 0 5px, #6e4f40 6px 8px, #c9a58c 9px 15px, #8a6552 16px); }
.cassette button, .searchbar button { background: #fbf8f4; color: #3b1519; font-weight: 400; }
.cassette button:hover, .searchbar button:hover { background: #f0b9c3; color: #3a1517; }

/* venue page: arrows on the main picture */
.pg-frame { position: relative; }
.pg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(246, 239, 230, 0.88); color: #2a1012; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); opacity: 0.85; transition: opacity .2s, transform .2s;
}
.pg-arrow svg { width: 22px; height: 22px; }
.pg-prev { left: 10px; } .pg-next { right: 10px; }
.pg-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.pg-count { position: absolute; right: 10px; bottom: 10px; font: 12px/1 var(--type); color: #fff6ea; background: rgba(20, 5, 7, 0.6); padding: 4px 8px; border-radius: 999px; }

/* clicking the Stagehand name: it keeps getting brighter until its light fills the screen */
#hero-cta.igniting .cl-logo { animation: ignite 1.3s cubic-bezier(.4,0,.2,1) forwards !important; }
@keyframes ignite {
  0% { filter: brightness(1) drop-shadow(0 0 12px rgba(255, 236, 222, 1)) drop-shadow(0 0 34px rgba(255, 170, 190, 0.85)); transform: scale(1.02); }
  100% { filter: brightness(1.9) drop-shadow(0 0 30px rgba(255, 248, 240, 1)) drop-shadow(0 0 90px rgba(255, 200, 210, 1)) drop-shadow(0 0 180px rgba(255, 170, 190, 0.9)); transform: scale(1.12); }
}
.ignite-light {
  position: fixed; inset: -30%; z-index: 60; pointer-events: none; transform-origin: var(--cx) var(--cy);
  background: radial-gradient(circle at var(--cx) var(--cy), #fff8f0 0%, #ffe3dc 18%, #f0b9c3 38%, #a86a74 68%, #6e3f3f 100%);
}
.search-band .sb-line { font-size: min(1em, 2.8vw, 40px); }
@media (max-width: 1000px) { .search-band .sb-line { font-size: 1em; white-space: normal; } }

/* venue page title: smaller, in the Playfair used by the other headings */
.pick-head .display, #d-name { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; font-size: clamp(30px, 3.6vw, 52px); }
.pick-head .lede-dark { margin-top: var(--s2); }

/* venue-named titles: one flowing line of Playfair (wraps to two at most), the name in italic blush */
#ex-title, #lab-title, #ac-title, #walk-title, #bk-title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; font-size: clamp(30px, 3.6vw, 52px); max-width: 26ch;
}
#ex-title .venue-name, #lab-title .venue-name, #ac-title .venue-name, #walk-title .venue-name, #bk-title .venue-name {
  display: inline; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1em; transform: none; color: #f3e7d8 !important;
}
@media (max-width: 760px) { #ex-title, #lab-title, #ac-title, #walk-title, #bk-title { font-size: clamp(20px, 6vw, 26px); max-width: none; } }
.lab-kinds .lab-move { margin-top: var(--s2); }
.lab-kinds .lab-move svg { width: 18px; height: 18px; flex: none; }
.lab-kinds .lab-move + .lab-erase { margin-top: 0; }
.rs-track { cursor: grab; user-select: none; -webkit-user-select: none; }
.rs-track img { -webkit-user-drag: none; user-select: none; }

/* ---------------------------------------------------------------- browse by acoustics / lighting */
body[data-view="by-sound"] .view[data-view="by-sound"], body[data-view="by-light"] .view[data-view="by-light"] { display: block; }
.browse-title { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; font-size: clamp(32px, 4vw, 56px); }
.browse-filters { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s5); font-size: var(--fs-sm); color: var(--ink-2); }
.browse-filters label { display: inline-flex; align-items: center; gap: var(--s2); }
.browse-count { margin-top: var(--s4); color: var(--ink-2); font-size: var(--fs-sm); }
.browse-grid { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s6) var(--s5); }
.browse-card { padding-bottom: var(--s4); transition: transform .15s; }
.browse-card:hover { transform: rotate(0) translateY(-3px); }
.browse-card img { aspect-ratio: 4 / 3; }
.bc-body { display: grid; gap: 4px; padding: var(--s3) 2px 0; }
.bc-kind { font-family: var(--type); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5a52; }
.bc-name { font-family: var(--serif); font-weight: 700; font-size: var(--fs-lg); line-height: 1.15; color: #2a1012; }
.bc-line { font-size: var(--fs-xs); color: #5c3a35; }
.bc-line b { color: #2a1012; }
.bc-meter { position: relative; height: 6px; margin: 6px 0 4px; border-radius: 3px; background: rgba(42, 16, 18, 0.12); }
.bc-band { position: absolute; top: 0; bottom: 0; background: #c3c9a8; border-radius: 3px; }
.bc-dot { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #8e1424; border: 1.5px solid #f6efe6; }
.bc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bc-tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(42, 16, 18, 0.08); color: #2a1012; }
.bc-tag.sun { background: #f6dca0; } .bc-tag.dark { background: #e7ddd2; }
.bc-go { justify-self: end; margin-top: 4px; font-size: var(--fs-xs); font-weight: 600; color: #2a1012; border-bottom: 1.5px solid #2a1012; }
.bc-go::after { content: " \2192"; }

/* jump between a venue's pages from the top right */
.venue-switch { display: none; position: fixed; z-index: 35; top: calc(var(--nav-h) + 12px); right: var(--gutter);
  align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(44, 13, 16, 0.88); border: 1px solid rgba(243, 231, 216, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); backdrop-filter: blur(6px); }
body:is([data-view="acoustics"], [data-view="lighting"], [data-view="walk3d"], [data-view="explore"], [data-view="book"]) .venue-switch { display: flex; }
.vs-name { font-family: var(--serif); font-style: italic; color: #f3e7d8; font-size: var(--fs-sm); padding: 0 10px 0 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-switch a { font-size: var(--fs-xs); font-weight: 600; color: #f3e7d8; text-decoration: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.venue-switch a:hover { background: rgba(243, 231, 216, 0.14); color: #fff6ea; }
.venue-switch a[aria-current="page"] { background: #f3e7d8; color: #2a1012; }
@media (max-width: 900px) {
  .venue-switch { left: var(--gutter); right: var(--gutter); top: auto; bottom: 12px; justify-content: space-between; overflow-x: auto; }
  .vs-name { display: none; }
}

/* sound card numbers: taller and narrower, in Playfair */
.ac-big { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 2.6vw, 38px); letter-spacing: 0; line-height: 1; font-variant-numeric: lining-nums; }
.ac-big small { font-family: var(--body); font-weight: 600; font-size: 0.42em; margin-left: 3px; }
/* the venue switcher on the overview page too, sitting in the "All results" bar */
body[data-view="property"] .venue-switch { display: flex; top: calc(var(--nav-h) + 4px); padding: 3px; }
body[data-view="property"] .venue-switch a { padding: 5px 11px; }
.prop-nav .back-search { margin-left: var(--s4); }
.prop-nav .back-search::before { content: "\2315\00a0"; }
.sv-h { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.title-em { font-style: italic; font-weight: 600; color: #f3e7d8; }


/* inline links in running text, e.g. "Browse Spaces" on the bookings page */
.inline-link { color: var(--blush); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.inline-link:hover, .inline-link:focus-visible { color: #f6c9d1; text-decoration-thickness: 2.5px; }

/* Show more under the Browse by acoustics / lighting grids */
.browse-more { display: block; margin: var(--s7, 40px) auto 0; }
.browse-more[hidden] { display: none; }

/* Search: the brief is written on the label of the halftone cassette (img/cassette.webp, 931 x 844).
   The label's centre is at (481, 219) and it tilts 11 degrees up to the right. */
.cassette.cassette-img { position: relative; width: min(100%, 640px); aspect-ratio: 931 / 844; margin-top: var(--s6); transform: none; container-type: inline-size; }
.cassette-img .cassette-art { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.cassette-img textarea { position: absolute; left: 17.3%; top: 19.4%; width: 68.7%; height: 14%; transform: rotate(-11deg); transform-origin: 50% 50%;
  margin: 0; padding: 0.4em 0.6em; border: 0; outline: none; resize: none; background: transparent; overflow: auto;
  font-family: var(--type); font-size: 3.1cqw; line-height: 1.35; color: #2a1012; }
.cassette-img textarea::placeholder { color: rgba(42, 16, 18, 0.55); }
.cassette-img textarea:focus-visible { box-shadow: 0 0 0 2px rgba(142, 20, 36, 0.55); border-radius: 4px; }
.cassette-img #go { position: absolute; right: -2%; bottom: 3%; width: 21%; aspect-ratio: 1; height: auto; min-height: 0; padding: 0; border-radius: 50%;
  border: 3px solid #8e1424; background: #8e1424; color: #f6efe6; font: 400 4.2cqw/1 var(--type); letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 4px #f3e7d8, inset 0 0 0 7px #8e1424, 0 8px 18px rgba(0, 0, 0, 0.45); transform: rotate(-10deg); cursor: pointer; }
.cassette-img #go:hover { background: #a51a2c; transform: rotate(-4deg) scale(1.04); }
.cassette-img #go:disabled { opacity: 0.75; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .cassette-img #go:hover { transform: rotate(-10deg); } }

/* top bar mark: the glitter star from behind the s in stagehand */
.logo { background: transparent; width: 42px; height: 42px; border-radius: 0; }
.logo img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); transition: transform .4s ease-out; }
.logo:hover img { transform: rotate(-18deg) scale(1.06); }

/* A long cream music staff drifting across the wine paper just under the top bar, on every page but
   the opening collage. It lies over the page (scrolls away with it) and under any venue sub-menu.
   img/staff-loop.webp: the collage's staff (notes only) and its mirror image, so the ends meet;
   one tile is 1716 x 180, shown 44 px tall = 419.5 px wide. */
.music-strand { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 34px); height: 156px; z-index: 5; pointer-events: none;
  background: url("img/staff-loop.webp") 0 50% / auto 150px repeat-x; opacity: 0.6; animation: strand-drift 40s linear infinite; }
body[data-view="home"] .music-strand { display: none; }
body[data-view="property"] .music-strand { top: calc(var(--nav-h) + 84px); }
@keyframes strand-drift { to { background-position-x: -1086.88px; } }  /* one tile, 1739 x 240, shown 150 px tall */
@media (prefers-reduced-motion: reduce) { .music-strand { animation: none; } }
/* the search page's own staff would double up with it */
.search-staff { display: none; }

/* Home -> search: notes fly out of the name */
.note-burst { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.note-burst span { position: absolute; font-family: "DejaVu Serif", "Segoe UI Symbol", "Apple Symbols", serif; color: #f3e7d8; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); will-change: transform, opacity; }
.note-burst span:nth-child(3n) { color: #f3e7d8; }
.note-burst span:nth-child(4n) { color: #f3d27a; }

/* Browse by acoustics: the halftone microphone in the space beside the heading */
.view[data-view="by-sound"] .browse-page .wrap { position: relative; }
.browse-mic { position: absolute; right: 1%; top: -6px; width: min(32%, 410px); height: auto; transform: rotate(-4deg);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); pointer-events: none; z-index: 6; }
@media (max-width: 900px) { .browse-mic { position: static; display: block; width: 70%; margin: 0 auto var(--s4); } }

/* ================================================================ Browse pages: scrapbook print style
   Filters and the count as cut-out paper scraps, cards as deckle-edged cream prints with taped tops,
   photos printed in burgundy duotone with a halftone dot screen, lowercase old-style serif. */
.browse-page .wrap { position: relative; }
.browse-page .page-sub { font-family: "IM Fell English", Georgia, serif; font-size: clamp(18px, 1.5vw, 21px); color: #e9dccd; max-width: 46ch; }
.browse-filters { gap: var(--s3) var(--s6); align-items: center; }
.browse-filters label { font-family: "IM Fell English", Georgia, serif; font-size: 20px; gap: var(--s3); }
.browse-filters .bf-word { display: inline-block; padding: 2px 7px 3px; background: #fbf8f4; color: #3b1519; transform: rotate(-1.5deg); box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.35); }
.browse-filters select { appearance: none; -webkit-appearance: none; font: 400 20px/1.2 "IM Fell English", Georgia, serif; color: #2a1012;
  background: #f1e6d8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 1h10L6 9z' fill='none' stroke='%232a1012' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 13px no-repeat;
  border: 0; border-radius: 0; padding: 7px 38px 7px 14px; min-height: 0; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35); transform: rotate(0.8deg); cursor: pointer;
  clip-path: polygon(0 3%, 6% 0, 18% 4%, 33% 0, 51% 3%, 68% 0, 84% 4%, 100% 1%, 99% 96%, 85% 100%, 66% 97%, 47% 100%, 29% 96%, 12% 100%, 0 97%); }
.browse-filters select:focus-visible { outline: 2px solid #f3d27a; outline-offset: 3px; }
.browse-count { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s5); }
.browse-count .bf-word { display: inline-block; padding: 1px 7px 3px; background: #fbf8f4; color: #3b1519; font: 400 19px/1.25 "IM Fell English", Georgia, serif; box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.35); }
.browse-count .bf-word:nth-child(2n) { transform: rotate(1.4deg); } .browse-count .bf-word:nth-child(2n+1) { transform: rotate(-1.2deg); }

.browse-grid { gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); margin-top: var(--s7); }
.browse-card.polaroid { padding: 14px 14px 18px; background: #efe4d4; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 1%, 4% 0, 9% 1.2%, 15% 0.2%, 22% 1%, 30% 0, 38% 1%, 46% 0.3%, 55% 1.1%, 63% 0, 71% 0.9%, 79% 0.2%, 87% 1.2%, 94% 0, 100% 0.8%,
    99.4% 8%, 100% 17%, 99.2% 27%, 100% 38%, 99.3% 49%, 100% 60%, 99.2% 71%, 100% 82%, 99.4% 92%, 100% 99%,
    94% 100%, 87% 99.1%, 79% 100%, 71% 99.2%, 63% 100%, 55% 99%, 46% 100%, 38% 99.2%, 30% 100%, 22% 99.1%, 15% 100%, 8% 99.2%, 0 100%,
    0.6% 92%, 0 82%, 0.8% 71%, 0 60%, 0.7% 49%, 0 38%, 0.8% 27%, 0 17%, 0.6% 8%); }
.browse-card.polaroid::before { width: 38%; height: 26px; top: 2px; background: rgba(214, 205, 172, 0.82); z-index: 2; }
.browse-card { position: relative; }
.browse-card img { filter: url(#duotone) contrast(1.08); }
.browse-card .bc-body { position: relative; }
/* halftone screen over the photo */
.browse-card::after { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; aspect-ratio: 4 / 3; pointer-events: none;
  background: radial-gradient(circle, rgba(58, 16, 22, 0.32) 0.8px, transparent 1.3px) 0 0 / 3px 3px; mix-blend-mode: multiply; }
.bc-kind { font-family: "IM Fell English", Georgia, serif; font-size: 16px; letter-spacing: 0.08em; text-transform: lowercase; color: #3b2124; margin-top: 4px; }
.bc-name { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(21px, 1.7vw, 26px); letter-spacing: 0.02em; text-transform: lowercase; color: #2a1012; }
.bc-tags { gap: 8px; margin-top: 8px; }
.bc-tag { font: 400 15px/1.2 "IM Fell English", Georgia, serif; padding: 5px 12px; background: #d9cfc9; color: #2a1012; box-shadow: inset 0 0 0 1px rgba(42, 16, 18, 0.08); }
.bc-tag.sun { background: #e8c96e; } .bc-tag.dark { background: #d6c9bd; }
.bc-go { font: 400 20px/1.2 "IM Fell English", Georgia, serif; border-bottom-width: 2px; margin-top: 10px; text-transform: lowercase; }
.bc-line { font-family: "IM Fell English", Georgia, serif; font-size: 15px; }

/* decorations: halftone film camera and a star; halftone dots in the bottom-left corner */
.browse-deco { position: absolute; pointer-events: none; z-index: 6; }
.browse-camera { right: -1%; top: -18px; width: min(26%, 330px); transform: rotate(8deg); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45)); }
.browse-star { right: 27%; top: 6px; width: 110px; transform: rotate(14deg); opacity: 0.9; filter: grayscale(0.4) brightness(1.15); }
.browse-page { position: relative; overflow: hidden; }
.browse-page::before { content: ""; position: absolute; left: -60px; bottom: -40px; width: 340px; height: 340px; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 231, 216, 0.75) 2.4px, transparent 2.9px) 0 0 / 11px 11px;
  -webkit-mask-image: radial-gradient(circle at 0 100%, #000 20%, transparent 68%); mask-image: radial-gradient(circle at 0 100%, #000 20%, transparent 68%); }
@media (max-width: 900px) { .browse-camera, .browse-star { display: none; } }

/* ================================================================ ransom-note headings (ransom.js)
   Paper and ink sampled from the "stagehand" logo: near-white #fdfaf7, faded plum #65474d. */
.ransom { position: relative; z-index: 7; line-height: 1.45; letter-spacing: 0; font-style: normal; }
.ransom .rn { font-size: 0.66em; }
.ransom .rn { display: inline; }
.ransom .rn-w { display: inline-flex; flex-wrap: nowrap; align-items: center; margin-right: 0.28em; white-space: nowrap; }
.ransom .rn-t { display: inline-block; line-height: 1; color: #3b1519; text-transform: none; letter-spacing: 0;
  background: #fbf8f4 linear-gradient(135deg, rgba(0, 0, 0, 0.025), transparent 40%, rgba(0, 0, 0, 0.04));
  transform: translateY(var(--y)) rotate(var(--t)); margin: 0 0.02em; box-shadow: 0.04em 0.06em 0 rgba(0, 0, 0, 0.32);
  clip-path: polygon(0 4%, 18% 0, 47% 3%, 79% 0, 100% 5%, 97% 38%, 100% 71%, 96% 100%, 64% 97%, 31% 100%, 2% 96%, 4% 61%, 0 30%); }
.ransom .rn-t.grey { background-color: #fbf8f4; }
.ransom .rn-t.inv { background: #fbf8f4; color: #3b1519; }
.ransom .rn-t.punct { padding-left: 0.04em !important; padding-right: 0.04em !important; }
/* any coloured or italic bits inside the old headings are folded into the tiles */
.ransom .script, .ransom em { font: inherit; color: inherit; }
/* Browse by lighting: photos in full colour (light is the point), with only a faint print screen */
.view[data-view="by-light"] .browse-card img { filter: saturate(1.05) contrast(1.03); }
.view[data-view="by-light"] .browse-card::after { opacity: 0.35; }

/* the microphone's cord tucks behind the first row of cards instead of stopping in mid-air */
.view[data-view="by-sound"] .browse-grid { position: relative; z-index: 8; }
.view[data-view="by-sound"] .browse-mic { width: min(36%, 470px); top: 60px; }

/* body text everywhere in the old-style serif used on the Browse pages */
:root { --body: "IM Fell English", "Iowan Old Style", Georgia, serif; }
body { font-size: 18px; }

.ransom > .rn-src { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* smaller headings keep their tiles readable */
.ransom.ac-h .rn, .ransom.sv-h .rn, .ransom.featured-title .rn { font-size: 1.15em; }
.ransom.ac-h, .ransom.sv-h, .ransom.featured-title { font-size: clamp(22px, 1.9vw, 28px); }

/* Saved page: a bigger title, tighter groups, and the empty notes on one line in italic */
.saved-page #sv-title .rn { font-size: 1.1em; }
.saved-page #sv-title { font-size: clamp(44px, 5.4vw, 76px); }
.saved-page .page-sub { margin-top: var(--s5); }
.sv-group { margin-top: var(--s7); }
.sv-h { margin-bottom: var(--s3); }
.sv-grid:empty { display: block; }
.sv-grid:empty::after { display: block; max-width: 60ch; font-style: italic; font-size: var(--fs-md); line-height: 1.5; color: #e2d2bf; }
/* the cream label is shallower than it looks: keep the writing inside it (scrolls if longer) */
.cassette-img textarea { top: 21.8%; height: 9.8%; padding: 0.15em 0.6em; font-size: 2.6cqw; line-height: 1.28; }
/* Browse by acoustics / lighting: bigger cut-out titles */
#bs-title, #bl-title { font-size: clamp(46px, 5.6vw, 80px); }
#bs-title .rn, #bl-title .rn { font-size: 1em; }
#bl-title, #bs-title { max-width: 66%; }
@media (max-width: 900px) { #bl-title, #bs-title { max-width: none; } }
/* Browse by acoustics: photos in full colour too, like the lighting page */
.view[data-view="by-sound"] .browse-card img { filter: saturate(1.05) contrast(1.03); }
.view[data-view="by-sound"] .browse-card::after { opacity: 0.35; }
/* Plan the whole tour: big cut-out title */
#tp-title { font-size: clamp(50px, 6.4vw, 92px); max-width: 80%; }
#tp-title .rn { font-size: 1em; }
@media (max-width: 900px) { #tp-title { max-width: none; } }

/* "More than one show?" band on the search page: words and one button, no photo */
.side-b-solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.side-b-lede { margin: var(--s4) 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #f3e7d8; }
.side-b-cta { margin-top: var(--s5); }
.side-b .side-b-cta { background: #fbf8f4; color: #3b1519; font: 400 20px/1 "IM Fell English", Georgia, serif; padding: 0 var(--s5); min-height: 50px; box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.4); transform: rotate(-1deg); }
.side-b .side-b-cta:hover { color: #3b1519; background: #fff; transform: rotate(0) translate(-1px, -1px); }
/* Your bookings: big cut-out title */
#pl-title { font-size: clamp(50px, 6.4vw, 92px); max-width: 80%; }
#pl-title .rn { font-size: 1em; }
@media (max-width: 900px) { #pl-title { max-width: none; } }

.ransom .rn-line { display: block; }

.ransom .rn-line + .rn-line { margin-top: 0.35em; }

/* Browse spaces cards (search page shelf and results): the same deckle-edged taped print as the Browse pages */
.rs-card.polaroid { padding: 14px 14px 18px; background: #efe4d4; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); clip-path: polygon(0 1%, 4% 0, 9% 1.2%, 15% 0.2%, 22% 1%, 30% 0, 38% 1%, 46% 0.3%, 55% 1.1%, 63% 0, 71% 0.9%, 79% 0.2%, 87% 1.2%, 94% 0, 100% 0.8%,
    99.4% 8%, 100% 17%, 99.2% 27%, 100% 38%, 99.3% 49%, 100% 60%, 99.2% 71%, 100% 82%, 99.4% 92%, 100% 99%,
    94% 100%, 87% 99.1%, 79% 100%, 71% 99.2%, 63% 100%, 55% 99%, 46% 100%, 38% 99.2%, 30% 100%, 22% 99.1%, 15% 100%, 8% 99.2%, 0 100%,
    0.6% 92%, 0 82%, 0.8% 71%, 0 60%, 0.7% 49%, 0 38%, 0.8% 27%, 0 17%, 0.6% 8%); }
.rs-card.polaroid::before { width: 38%; height: 26px; top: 2px; background: rgba(214, 205, 172, 0.82); z-index: 2; }
.rs-card img { filter: saturate(1.05) contrast(1.03); }
.rs-card .rs-kind { font-family: "IM Fell English", Georgia, serif; font-size: 15px; letter-spacing: 0.08em; text-transform: lowercase; color: #3b2124; }
.rs-card .rs-card-name { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(21px, 1.7vw, 26px); letter-spacing: 0.02em; text-transform: lowercase; color: #2a1012; }
.rs-card .rs-card-meta { font-family: "IM Fell English", Georgia, serif; font-size: 15px; color: #4a2c2c; }
.rs-card .rs-card-foot b { font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: 20px; color: #2a1012; }
.rs-card .rs-card-foot small { font-family: "IM Fell English", Georgia, serif; font-size: 14px; color: #4a2c2c; }
.rs-card .rs-view { font: 400 19px/1.2 "IM Fell English", Georgia, serif; text-transform: lowercase; color: #2a1012; border-bottom: 2px solid #2a1012; text-decoration: none; }
.rs-card .rs-view::after { content: " \2192"; }
.rs-card .rs-num, .rs-card .rs-tag { display: none; }
/* search page: the cards first, then "browse spaces" and its arrows underneath */
.search-shelf { display: flex; flex-direction: column; }
.search-shelf .featured { order: 1; }
.search-shelf .featured-head { order: 2; margin-top: 0; align-items: center; }
.search-shelf .featured { padding-bottom: var(--s2); margin-bottom: 0; }
/* "Plan the tour": a cherry rubber-stamp button like the cassette's "scout" */
#tp-go { background: #8e1424; color: #fbf8f4; font: 400 21px/1 "IM Fell English", Georgia, serif; letter-spacing: 0.03em; text-transform: lowercase;
  padding: 0 26px; min-height: 52px; border-radius: 3px; box-shadow: inset 0 0 0 3px #8e1424, inset 0 0 0 5px #fbf8f4, 3px 4px 0 rgba(0, 0, 0, 0.4); transform: rotate(-2deg); }
#tp-go:hover { background: #a51a2c; color: #fbf8f4; box-shadow: inset 0 0 0 3px #a51a2c, inset 0 0 0 5px #fbf8f4, 4px 5px 0 rgba(0, 0, 0, 0.4); transform: rotate(0); }

/* search page: the heading sits over the cards on the right; the cassette moves up on the left */
.search-shelf #search-title { order: 0; margin: 0 0 var(--s5); font-size: clamp(30px, 2.9vw, 44px); }
.search-layout { align-items: start; }
.search-main .cassette { margin-top: 0; }
.search-shelf { margin-top: -84px; position: relative; z-index: 6; }
@media (max-width: 900px) { .search-shelf { margin-top: 0; } }
/* "scout": the same cherry stamp as "plan the tour", sitting on the cassette's corner */
.cassette-img #go { width: auto; aspect-ratio: auto; right: 2%; bottom: 7%; padding: 0 0.9em; min-height: 0; height: auto;
  line-height: 2.1; border: 0; border-radius: 3px; background: #8e1424; color: #fbf8f4;
  font: 400 5.2cqw/2.1 "IM Fell English", Georgia, serif; letter-spacing: 0.04em; text-transform: lowercase;
  box-shadow: inset 0 0 0 3px #8e1424, inset 0 0 0 5px #fbf8f4, 3px 4px 0 rgba(0, 0, 0, 0.45); transform: rotate(-8deg); }
.cassette-img #go:hover { background: #a51a2c; box-shadow: inset 0 0 0 3px #a51a2c, inset 0 0 0 5px #fbf8f4, 4px 5px 0 rgba(0, 0, 0, 0.45); transform: rotate(-4deg); }

/* ---- search page spacing: everything starts below the music strand, even gaps, no dead space ---- */
.search-band { padding-top: 0; padding-bottom: clamp(48px, 5vw, 72px); }
.search-band .search-layout { padding-top: clamp(150px, 13vw, 190px); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
.search-shelf { margin-top: 0; }
.search-shelf #search-title { margin: 0 0 var(--s6); }
.search-main #examples { margin-top: var(--s6); }
.search-shelf .featured-head { margin-top: var(--s4); }
/* "more than one show?" band: same left edge as the content above, tighter */
.side-b.band { padding: clamp(56px, 6vw, 88px) 0; }
.side-b .side-b-solo { max-width: none; }
.side-b .side-b-solo > div { max-width: 640px; }

/* ---- buttons as paper scraps: cream paper, oxblood ink, like the headings and filter tags ---- */
.cassette-img #go, #tp-go {
  background: #fbf8f4; color: #3b1519; text-transform: lowercase; font-family: "IM Fell English", Georgia, serif; letter-spacing: 0.03em;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.45); border-radius: 0;
  clip-path: polygon(0 6%, 9% 0, 27% 4%, 48% 0, 70% 5%, 91% 0, 100% 8%, 98% 52%, 100% 94%, 82% 100%, 60% 96%, 38% 100%, 17% 95%, 0 100%, 2% 50%); }
.cassette-img #go:hover, #tp-go:hover { background: #ffffff; color: #3b1519; box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.45); }
.search-band .search-shelf { padding-top: 0; }
.search-shelf .featured { padding-top: 0; }
.side-b .side-b-solo { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
/* on the cream tour form, the inverted tile: oxblood paper, cream letters */
#tp-go, #tp-go:hover { background: #3b1519; color: #fbf8f4; }
#tp-go:hover { background: #561f25; }

/* The wide display face (Syne) clashed with the scrapbook look: venue names, totals and big numbers
   now use the old-style serif, with lining numbers so prices and times stay easy to read. */
:root { --display: "Playfair Display", "Iowan Old Style", Georgia, serif; }
.tp-stops, .tp-summary, .tp-totals, .stub, .figures, .fig .n, .ac-big, .pl-rows, .rs-card-foot b, .pick .fig .n { font-variant-numeric: lining-nums; }

/* tour page: the share link reads on the wine paper */
.tp-share-link { color: #fbf8f4; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tp-share-link:hover, .tp-share-link:focus-visible { color: #fff6ea; }
/* amounts in the tour receipt and stop prices in the serif with modern numerals */
.tp-totals dd, .tp-totals .row b, .tp-totals li span:last-child, .tp-stop-cost, .tp-stops .cost, .tp-stops small { font-family: "Playfair Display", Georgia, serif; font-variant-numeric: lining-nums; }
/* vote links readable on the cream card */
.tp-vote { color: #8e1424; text-decoration-color: rgba(142, 20, 36, 0.5); }
.tp-vote:hover { color: #3b1519; }
.tp-cost, .tp-cost small, .stub dd { font-family: "Playfair Display", Georgia, serif; font-variant-numeric: lining-nums; }
.tp-vote.on { color: #3b1519; }
.search-band .search-shelf { margin-top: -60px; }
@media (max-width: 900px) { .search-band .search-shelf { margin-top: 0; } }

/* 3D walkthrough tips: one line of paper scraps, well below the viewer */
.walk-foot { margin-top: var(--s7); }
.walk-tips { max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s4); margin: 0; }
.walk-tips span { display: inline-block; padding: 4px 12px 5px; background: #fbf8f4; color: #3b1519; font: 400 17px/1.2 "IM Fell English", Georgia, serif;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35); white-space: nowrap; }
.walk-tips span:nth-child(odd) { transform: rotate(-1.2deg); } .walk-tips span:nth-child(even) { transform: rotate(1deg); }

/* No handwriting font anywhere: everything that used Caveat Brush now uses the site's old-style serif */
:root { --script: "IM Fell English", "Iowan Old Style", Georgia, serif; }
.lab-presets button { font-size: 19px; letter-spacing: 0.02em; }
/* typewriter labels follow the rest of the text; only the cassette label stays typed */
:root { --type: "IM Fell English", "Iowan Old Style", Georgia, serif; }
.cassette-img textarea { font-family: "Special Elite", "Courier New", monospace; }

/* walkthrough foot: status on its own line, the tips as one centred row below, link last */
.walk-foot { display: grid; justify-items: center; gap: var(--s4); text-align: center; }
.walk-foot .walk-status { margin: 0; }
.walk-foot .note { margin: 0; }
.walk-foot { grid-template-columns: minmax(0, 1fr); }
.walk-foot .walk-tips { justify-content: center; width: 100%; }

/* ================================================================ booking page in the site's palette and type */
.cal { background: #fbf8f4; color: #3b1519; box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.4); }
.cal * { font-family: "IM Fell English", Georgia, serif; }
.cal .cal-month h3, .cal h3, .cal .cal-title { font-weight: 400; color: #3b1519; letter-spacing: 0.02em; text-transform: lowercase; }
.cal .cal-day { color: #3b1519; font-variant-numeric: lining-nums; }
.cal .cal-day.bad, .cal .cal-day.taken { color: rgba(59, 21, 25, 0.45); background: repeating-linear-gradient(135deg, rgba(59, 21, 25, 0.12) 0 3px, transparent 3px 7px); }
.cal .arrow { border-color: #3b1519; color: #3b1519; }
.cal-side .cal-hint { font-family: "IM Fell English", Georgia, serif; color: #f3e7d8; font-size: 24px; }
.cal-side .cal-hint-arrow { color: #f3e7d8; }
.cal-key li { font-family: "IM Fell English", Georgia, serif; color: #f3e7d8; }
.cal-key .key { border-color: #f3e7d8 !important; }
.cal-key .key.picked { background: #fbf8f4 !important; }
.cal-status { font-family: "IM Fell English", Georgia, serif; font-weight: 400; color: #f3e7d8; }
.book-confirm { margin: var(--s5) 0 0; text-align: left; }
.confirm-btn { background: #fbf8f4; color: #3b1519; font: 400 22px/1 "IM Fell English", Georgia, serif; text-transform: lowercase; letter-spacing: 0.03em;
  padding: 14px 26px; border: 0; border-radius: 0; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.45); transform: rotate(-1.5deg); cursor: pointer;
  clip-path: polygon(0 6%, 9% 0, 27% 4%, 48% 0, 70% 5%, 91% 0, 100% 8%, 98% 52%, 100% 94%, 82% 100%, 60% 96%, 38% 100%, 17% 95%, 0 100%, 2% 50%); }
.confirm-btn:hover:not(:disabled) { background: #fff; transform: rotate(0); }
.confirm-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cal-status.bad, .cal-status.warn, .cal-status.err, .cal-status[data-bad] { color: #fbf8f4; }
.cal .cal-day.on, .cal .cal-day.pick, .cal .cal-day.picked, .cal .cal-day.sel, .cal .cal-day.in-range { background: #3b1519; color: #fbf8f4; }
/* booking details: same paper as every other page; section titles in the serif, oxblood ink */
.book-next.band { background: transparent; }
.book-next h3, .book-next .bf-h, .book-next legend { font-family: "IM Fell English", Georgia, serif; font-weight: 400; color: #3b1519; text-transform: lowercase; letter-spacing: 0.02em; }
.book-next label, .book-next .bf-label { color: #5a3a3a; }

/* booking: no tall empty gap between choosing dates and the details */
.book-pick { min-height: 0; padding-bottom: var(--s6); }
.book-next.band { padding-top: var(--s6); }

/* booking ticket: a small "to" between the two dates instead of a full-size line */
.stub-dates .stub-to { display: block; margin: 2px 0 4px; font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-style: italic;
  font-size: 0.42em; letter-spacing: 0.04em; line-height: 1; color: #6b4a44; }

/* booking: the real card photo (img/card.webp, 970 x 598) with the typed details on it */
.card-art { aspect-ratio: 970 / 598; border-radius: 4.8% / 7.8%; padding: 0; overflow: visible;
  background: url("img/card.webp") center / 100% 100% no-repeat; box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  display: block; container-type: inline-size; font-family: "Special Elite", "Courier New", monospace; color: #f3e7d8; }
.card-art::after, .card-art .card-chip, .card-art .card-record { display: none; }
.card-art .card-num { position: absolute; left: 10%; top: 55%; font-size: 6.4cqw; letter-spacing: 0.1em; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }
.card-art .card-name { position: absolute; left: 10%; bottom: 13%; margin: 0; max-width: 58%; font-size: 4cqw; letter-spacing: 0.12em; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }
.card-art .card-exp { right: 10%; bottom: 13%; font-size: 4cqw; letter-spacing: 0.08em; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }

/* ================================================================ no pink: blush accents become the logo's cream and oxblood */
:root { --blush: #f3e7d8; --sage: #f3e7d8; }
.viewer-frame, .frame-shadow, .walk-frame, .explore-3d { box-shadow: 14px 14px 0 rgba(20, 5, 7, 0.55) !important; }
.explore-3d:hover { box-shadow: 18px 18px 0 rgba(20, 5, 7, 0.6) !important; }
.script-hint, .venue-switch .vs-name, .vs-name, .title-em, .results-page .rs-em, .rs-tag, .tp-share-link, .inline-link { color: #f3e7d8 !important; }
.save-btn { border-color: #f3e7d8; }
.save-btn svg, .save-btn svg path { stroke: #f3e7d8; }
.save-btn:hover { background: #f3e7d8; color: #3b1519; }
.save-btn:hover svg, .save-btn:hover svg path { stroke: #3b1519; }
.lab-list li .x, .lab-chip .x, .lab-list button { background: #3b1519; color: #fbf8f4; }
.modes a.on::after { background: #f3e7d8; }
.cal-key .key.picked { background: #fbf8f4 !important; }
.note-burst span:nth-child(3n) { color: #fbf8f4; }

/* explore page photo: holds its size while the picture loads, never a tiny scrap */
.explore-snap { width: min(100%, 420px); }
.explore-snap img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #2b1a1c; }
.polaroid img:not([src]), .polaroid img[src=""] { visibility: visible !important; }
/* explore choices all lowercase, titles and their lines */
.ex-choice b, .ex-choice span, .ex-choice small, .ex-choice { text-transform: lowercase; }
.view[data-view="explore"] .page-sub { text-transform: lowercase; }
/* "explore in 3D" in cut-out letters */
.explore-label.ransom { display: block; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.3; }
.explore-label.ransom .rn { font-size: 1em; }
.explore-sub { text-transform: lowercase; }

/* accents in the logo palette only: cream on wine, oxblood on paper (no pink, coral, green or lavender) */
.fig.good .n, .fig .n { color: #f3e7d8; }
.ac-big.good, .ok { color: inherit; }
.bc-tag.sun { background: #efe1c4; } .bc-tag.dark { background: #d6c9bd; }
/* overview: the main photo a little smaller so the film strip shows without scrolling */
.prop-gallery .prop-photo img { max-height: min(46vh, 460px); object-fit: cover; }
.film-carousel { margin-top: var(--s3); }

/* "Other rooms worth a look": the same deckle-edged taped prints as the Browse cards */
#cards .card { position: relative; padding: 14px 14px 18px; background: #efe4d4; color: #2a1012; border: 0; border-radius: 0; text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); clip-path: polygon(0 1%, 4% 0, 9% 1.2%, 15% 0.2%, 22% 1%, 30% 0, 38% 1%, 46% 0.3%, 55% 1.1%, 63% 0, 71% 0.9%, 79% 0.2%, 87% 1.2%, 94% 0, 100% 0.8%,
    99.4% 8%, 100% 17%, 99.2% 27%, 100% 38%, 99.3% 49%, 100% 60%, 99.2% 71%, 100% 82%, 99.4% 92%, 100% 99%,
    94% 100%, 87% 99.1%, 79% 100%, 71% 99.2%, 63% 100%, 55% 99%, 46% 100%, 38% 99.2%, 30% 100%, 22% 99.1%, 15% 100%, 8% 99.2%, 0 100%,
    0.6% 92%, 0 82%, 0.8% 71%, 0 60%, 0.7% 49%, 0 38%, 0.8% 27%, 0 17%, 0.6% 8%); transform: rotate(var(--tilt, -1deg)); transition: transform .15s; }
#cards .card:nth-child(2n) { --tilt: 1.1deg; } #cards .card:nth-child(3n) { --tilt: -0.6deg; }
#cards .card:hover { transform: rotate(0) translateY(-3px); }
#cards .card::before { content: ""; position: absolute; top: 2px; left: 50%; width: 38%; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(214, 205, 172, 0.82); z-index: 2; }
#cards .card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; filter: saturate(1.05) contrast(1.03); }
#cards .card .name { margin-top: 12px; font-family: "IM Fell English", Georgia, serif; font-weight: 400; font-size: clamp(20px, 1.6vw, 24px); text-transform: lowercase; color: #2a1012; }
#cards .card .meta { font-family: "IM Fell English", Georgia, serif; font-size: 15px; color: #4a2c2c; }
.pick-grid .prop-photo img, #prop-photo { height: min(40vh, 400px) !important; width: 100%; aspect-ratio: auto !important; object-fit: cover; }
.pick-grid .explore-3d { max-height: calc(min(40vh, 400px) + 70px); }
/* building names inside a sentence: small inline cut-outs */
.dl-name.ransom { display: inline; font-size: 1em; line-height: 1.9; }
.dl-name.ransom .rn { font-size: 0.95em; }
.dl-name.ransom .rn-line { display: inline; }
.dl-name.ransom .rn-w { margin-right: 0.2em; }

/* ---------- acoustics, reorganised: one paper background, five sections with the same rhythm ---------- */
.view[data-view="acoustics"] > section { background: transparent !important; color: var(--on-dark); }
.view[data-view="acoustics"] .ac-intro { padding-bottom: clamp(28px, 3vw, 44px); }
.view[data-view="acoustics"] .ac-sec { position: relative; padding: clamp(36px, 4vw, 56px) 0; }
/* a torn-paper rule between sections, like the strip under the headers */
.view[data-view="acoustics"] .ac-sec::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1240px, calc(100% - 2 * var(--gutter, 24px))); transform: translateX(-50%);
  height: 0; border-top: 1.5px dashed rgba(243, 231, 216, 0.28); }
.view[data-view="acoustics"] .ac-sec h2.display { margin: 0 0 var(--s2); font-size: clamp(26px, 2.6vw, 36px); }
.view[data-view="acoustics"] .ac-sec .lede { color: var(--on-dark-2); max-width: 62ch; margin: 0 0 var(--s4); font-size: var(--fs-md); }
.view[data-view="acoustics"] .ac-sec .note { color: var(--on-dark-2); }

/* intro: polaroid and room picker on the left, what the group will hear on the right */
.ac-top { display: grid; grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr); gap: var(--s5) clamp(28px, 4vw, 64px); align-items: start; margin-top: var(--s4); }
.ac-left { display: flex; flex-direction: column; gap: var(--s4); }
.ac-left .ac-photo { width: 100%; margin: 0; }
.ac-right .ac-h { margin: 0 0 var(--s4); }
.ac-right .ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: var(--s4); }
@media (min-width: 1250px) { .ac-right .ac-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ac-top { grid-template-columns: 1fr; } .ac-left { flex-direction: row; flex-wrap: wrap; } .ac-left .ac-photo { width: 220px; } }

/* hear it for yourself: tighter */
.view[data-view="acoustics"] .ac-try #scope { margin-top: var(--s3); }
.view[data-view="acoustics"] .ac-try .ac-crowd { margin-bottom: var(--s4); }

/* stand in the room: the notes under the controls, not floating far below */
.view[data-view="acoustics"] .stand-side { gap: var(--s3); }
.view[data-view="acoustics"] .stand-side .note { font-size: var(--fs-xs); margin: 0; }

/* watch the sound: heading row like the others; the duplicate console stays out of sight */
.view[data-view="acoustics"] .sound-top { margin-bottom: 0; }
.view[data-view="acoustics"] .sound-head .lede { margin-bottom: 0; }
.view[data-view="acoustics"] .playroom-head { margin-top: var(--s2); }
.view[data-view="acoustics"] .playroom-head .lede { margin-bottom: 0; }
.view[data-view="acoustics"] .frame.black.sound { padding-top: clamp(36px, 4vw, 56px); }

/* mics: the six cards in one row on a laptop */
.view[data-view="acoustics"] .ac-mic-sec .ac-mics { margin-top: var(--s2); }
.view[data-view="acoustics"] .ac-mic-sec .fold { margin-top: var(--s6); }

/* the Image tab's button: the same stamp as "plan the tour" */
#lk-go { text-transform: lowercase; font: 400 21px/1 "IM Fell English", Georgia, serif; letter-spacing: 0.03em; padding: 0 26px; min-height: 52px; transform: rotate(-2deg);
  background: #3b1519; color: #fbf8f4; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.45); border-radius: 0;
  clip-path: polygon(0 6%, 9% 0, 27% 4%, 48% 0, 70% 5%, 91% 0, 100% 8%, 98% 52%, 100% 94%, 82% 100%, 60% 96%, 38% 100%, 17% 95%, 0 100%, 2% 50%); }
#lk-go:hover { background: #561f25; color: #fbf8f4; transform: rotate(0); }
#lk-go:disabled { opacity: 0.55; cursor: default; transform: rotate(-2deg); }

/* acoustics tweaks */
.ac-right .ac-h { margin-bottom: clamp(30px, 2.6vw, 40px); }
.ac-mic li b { color: #3b1519; font-weight: 700; }
.ac-mic li u { text-decoration-color: #8e1424; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
@media (min-width: 1000px) {
  .view[data-view="acoustics"] .ac-sec .ac-mic-why { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
  /* watch the sound: the seat readout and the clap / sing / recording links sit on the right, under the cards */
  .view[data-view="acoustics"] .playroom > .pr-stage { grid-row: 1 / span 4 !important; }
  .view[data-view="acoustics"] .playroom > .pr-controls { grid-column: 2; grid-row: 3 !important; margin-top: var(--s4); align-self: start; }
  .view[data-view="acoustics"] .playroom > .pr-compare { grid-column: 2; grid-row: 4 !important; }
  .view[data-view="acoustics"] .playroom > .pr-measure { grid-row: 5 !important; }
}

/* acoustics: the cut-out title bigger, with room to breathe before the photo and the notes */
.view[data-view="acoustics"] h1#ac-title { font-size: clamp(42px, 4.6vw, 68px) !important; max-width: none; line-height: 1.2; }
.view[data-view="acoustics"] h1#ac-title .rn { font-size: 1em !important; }
.view[data-view="acoustics"] .ac-top { margin-top: clamp(40px, 4vw, 64px); }
@media (max-width: 760px) { .view[data-view="acoustics"] h1#ac-title { font-size: clamp(28px, 8vw, 38px) !important; } }

/* Image tab heading: the same size as the tour planner's */
#lk-title { font-size: clamp(50px, 6.4vw, 92px); max-width: 80%; }
#lk-title .rn { font-size: 1em; }
@media (max-width: 900px) { #lk-title { max-width: none; } }
