/* London CVC — site styles */

@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pinyon"; src: url("/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dot"; src: url("/fonts/dotgothic16-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --serif: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --script: "Pinyon", "Snell Roundhand", "Apple Chancery", cursive;
  --dot: "Dot", "Courier New", monospace;
  --paper: #f4ecdb;
  --paper-2: #eadfc6;
  --paper-edge: #d9c9a6;
  --ink: #231c15;
  --ink-soft: #5d5142;
  --gold: #c9a45c;
  --gold-soft: #e6cf9a;
  --amber: #ffb84a;
  --night: #0b1030;
  --cream: #f6efe2;
  --wine: #6b1f2a;
  --err: #a23a2a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0b1030;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p, h1, h2, figure, dl, dd { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- backdrop ---------- */
#sky { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity .7s ease; }
.sky-ready #sky { opacity: 1; }
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.42) 100%);
}
main { position: relative; z-index: 2; }
/* footage behind the words: a little more shade so type stays readable */
.has-video .veil { background: radial-gradient(120% 90% at 50% 42%, rgba(8,6,14,.16) 0%, rgba(8,6,14,.30) 55%, rgba(0,0,0,.6) 100%); }
.has-video .hero-title { text-shadow: 0 2px 30px rgba(20,8,30,.75), 0 1px 3px rgba(20,8,30,.6); }
.has-video .kicker, .has-video .cue, .has-video .wordmark, .has-video .altimeter { text-shadow: 0 1px 10px rgba(10,4,20,.9); }
/* let the footage breathe around the signs */
.has-video .billboard { width: min(800px, 100%); }
.has-video .bb-big { font-size: clamp(32px, 5.2vw, 74px); }
.has-video .bb-legs { display: none; }
.has-video .shelter { width: min(840px, 100%); }
.has-video .sh-panel { min-height: clamp(220px, 36vh, 360px); }
.has-video .sh-big { font-size: clamp(56px, 9vw, 120px); }
.has-video .sh-panels { background: none; border-color: rgba(20,17,15,.85); }
.has-video .board { width: min(920px, 100%); }
.has-video .board::before { display: none; }
.has-video .hud { background: radial-gradient(closest-side, rgba(20,8,30,.62), rgba(20,8,30,.3) 60%, rgba(20,8,30,0)); }
.has-video .bar::before { background: linear-gradient(180deg, rgba(14,7,4,0) 0%, rgba(14,7,4,.5) 30%, rgba(12,6,3,.78) 100%); }

/* ---------- top bar ---------- */
.top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3.2vw, 40px) 14px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.wordmark-name { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .02em; }
.wordmark-sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .78; margin-top: 3px; }
.sign-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 clamp(16px, 2vw, 24px);
  border: 1px solid rgba(246,239,226,.7);
  border-radius: 999px;
  background: rgba(12,10,20,.32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, opacity .3s, transform .3s;
}
.sign-btn:hover, .sign-btn:focus-visible { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.sign-btn.is-hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.altimeter {
  position: fixed; z-index: 15; left: clamp(16px, 3.2vw, 40px); bottom: max(18px, env(safe-area-inset-bottom));
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  display: flex; gap: 10px; align-items: baseline; opacity: .8; transition: opacity .4s;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.altimeter .alt-label { opacity: .6; }
.altimeter.is-hidden { opacity: 0; }

/* ---------- scenes ---------- */
.scene { position: relative; height: 190vh; }
.scene-hero { height: 150vh; }
.pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 84px clamp(18px, 5vw, 64px) 64px;
  overflow: hidden;
}
.surface {
  opacity: var(--vis, 0);
  transform: translate3d(0, calc((1 - var(--in, 0)) * 60px), 0) scale(calc(.9 + var(--p, 0) * .16));
  will-change: transform, opacity;
}
.kicker { font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.src { margin-top: 18px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }

/* hero */
.hero-inner { text-align: center; max-width: 1100px; opacity: var(--vis, 1); transform: translate3d(0, calc(var(--p, 0) * -70px), 0); }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 8.6vw, 124px); line-height: .98; letter-spacing: -.012em;
  margin: 22px 0 0; text-shadow: 0 2px 34px rgba(50,14,60,.6), 0 1px 2px rgba(50,14,60,.35);
}
.hero-title span { display: block; }
.hero-title span:last-child { font-style: italic; color: #ffe2b8; }
.cue { margin-top: clamp(30px, 6vh, 64px); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: 1; text-shadow: 0 1px 12px rgba(50,14,60,.7); display: inline-flex; flex-direction: column; align-items: center; gap: 12px; }
.cue i { width: 1px; height: 44px; background: linear-gradient(var(--cream), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(22px); opacity: 0; } }

/* HUD */
.hud { text-align: center; max-width: 760px; position: relative; padding: clamp(28px, 6vw, 70px); background: radial-gradient(closest-side, rgba(52,18,60,.5), rgba(52,18,60,.22) 60%, rgba(52,18,60,0)); }
.hud-ring { position: absolute; inset: 0; border: 1px solid rgba(246,239,226,.35); border-radius: 50%; aspect-ratio: 1; width: min(100%, 86vh); left: 50%; top: 50%; translate: -50% -50%; }
.hud-ring::before, .hud-ring::after { content: ""; position: absolute; background: rgba(246,239,226,.5); }
.hud-ring::before { left: -14px; right: -14px; top: 50%; height: 1px; mask: linear-gradient(90deg, #000 0 26px, transparent 26px calc(100% - 26px), #000 calc(100% - 26px)); -webkit-mask: linear-gradient(90deg, #000 0 26px, transparent 26px calc(100% - 26px), #000 calc(100% - 26px)); }
.hud-ring::after { top: -14px; bottom: -14px; left: 50%; width: 1px; mask: linear-gradient(#000 0 26px, transparent 26px calc(100% - 26px), #000 calc(100% - 26px)); -webkit-mask: linear-gradient(#000 0 26px, transparent 26px calc(100% - 26px), #000 calc(100% - 26px)); }
.hud-label { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; opacity: .8; position: relative; }
.hud-big { font-family: var(--serif); font-weight: 500; font-size: clamp(76px, 15vw, 190px); line-height: .92; margin-top: 10px; position: relative; text-shadow: 0 2px 40px rgba(10,10,40,.6); }
.hud-line { font-family: var(--serif); font-size: clamp(22px, 3vw, 36px); line-height: 1.15; margin-top: 12px; position: relative; }
/* full-height figures, as on the bus-stop poster: the old-style "1" reads as a capital I */
.hud-big, .hud-line, .hud-second { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.hud-second { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.2; margin-top: 10px; color: #ffe2b8; position: relative; }
.hud .src { position: relative; }

/* billboard */
.billboard { width: min(980px, 100%); }
.bb-lamps { display: flex; justify-content: space-around; padding: 0 8%; height: 26px; position: relative; z-index: 2; }
.bb-lamps i { width: 2px; height: 26px; background: #15120f; position: relative; }
.bb-lamps i::after { content: ""; position: absolute; left: -9px; bottom: -3px; width: 20px; height: 8px; border-radius: 3px; background: #1a1612; box-shadow: 0 10px 34px 8px rgba(255,214,150,.55); }
.bb-face {
  background: linear-gradient(180deg, #fbf5e7, #efe3c8);
  color: var(--ink);
  padding: clamp(26px, 5vw, 64px) clamp(22px, 5vw, 70px);
  border: clamp(8px, 1.1vw, 14px) solid #17130f;
  box-shadow: 0 0 0 1px #3a3128, 0 30px 80px rgba(0,0,0,.6), inset 0 60px 90px -40px rgba(255,228,170,.9);
}
.bb-big { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6.4vw, 92px); line-height: .98; letter-spacing: -.01em; }
.bb-line { font-family: var(--serif); font-size: clamp(19px, 2.5vw, 32px); line-height: 1.2; margin-top: clamp(12px, 2vw, 22px); color: #3c3125; max-width: 26ch; }
.bb-face .src { color: #5d5142; opacity: 1; }
.bb-legs { display: flex; justify-content: space-between; padding: 0 16%; height: clamp(40px, 9vh, 110px); }
.bb-legs i { width: clamp(8px, 1vw, 14px); background: linear-gradient(#17130f, #0c0a08); }

/* bus shelter */
.shelter { width: min(1000px, 100%); position: relative; }
.sh-roof { height: 12px; background: linear-gradient(#2a2622, #100e0c); border-radius: 4px 4px 0 0; margin: 0 -3%; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.sh-panels { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2.4vw, 30px); padding: clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) 0; border-left: 6px solid #14110f; border-right: 6px solid #14110f; background: linear-gradient(rgba(190,215,235,.08), rgba(190,215,235,.02)); }
.sh-panel {
  background: linear-gradient(180deg, #fffaf0, #f3e7cc);
  color: var(--ink);
  border: 7px solid #191613;
  padding: clamp(18px, 3vw, 40px) clamp(16px, 2.6vw, 34px) clamp(22px, 3.4vw, 46px);
  box-shadow: 0 0 60px 6px rgba(255,236,190,.38), inset 0 0 50px rgba(255,255,255,.7);
  min-height: clamp(260px, 44vh, 430px);
  display: flex; flex-direction: column; justify-content: center;
}
.sh-panel-b { background: linear-gradient(180deg, #2b1a22, #1a1016); color: #f6e9d6; box-shadow: 0 0 50px 4px rgba(220,150,120,.25), inset 0 0 60px rgba(255,190,150,.08); }
.sh-big { font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 11vw, 150px); line-height: .9; }
.sh-line { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 28px); line-height: 1.18; margin-top: 12px; }
.sh-second { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.1vw, 27px); margin-top: 10px; color: var(--wine); }
.shelter .src { text-align: center; }
.sh-ground { height: 2px; margin: 14px -6% 0; background: linear-gradient(90deg, transparent, rgba(255,220,170,.35), transparent); }

/* departure board */
.board {
  width: min(1040px, 100%);
  background: linear-gradient(#0b0b0c, #050505);
  border: 1px solid #2a2a2a; border-radius: 10px;
  padding: clamp(14px, 2.4vw, 30px);
  box-shadow: 0 40px 100px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  font-family: var(--dot); color: var(--amber);
  position: relative;
}
.board::before { content: ""; position: absolute; left: 12%; right: 12%; top: -60px; height: 60px; border-left: 3px solid #111; border-right: 3px solid #111; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; color: #f4ecdb; font-family: var(--sans); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; padding-bottom: 12px; border-bottom: 1px solid #262626; }
.board-clock { font-family: var(--dot); letter-spacing: .1em; color: var(--amber); font-size: 18px; }
.board-cols, .board-row { display: grid; grid-template-columns: 9.5ch minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 0 clamp(10px, 2vw, 26px); }
.board-cols { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #8d8676; padding: 12px 0 6px; }
.board-row { padding: clamp(10px, 1.6vw, 16px) 0; border-top: 1px solid #1b1b1b; font-size: clamp(15px, 1.9vw, 24px); line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 12px rgba(255,170,40,.5); align-items: start; }
.board-row .tag { grid-column: 1 / -1; font-family: var(--sans); font-size: 10px; letter-spacing: .28em; color: #f4ecdb; text-shadow: none; margin-bottom: 6px; opacity: .85; }
.board-row.is-past { color: #8a6a36; text-shadow: none; }
.board-row .status { color: #9be28a; text-shadow: 0 0 12px rgba(120,230,110,.45); }
.board-row.is-past .status { color: #6f6a5c; text-shadow: none; }
.board-row.is-empty .status { color: var(--amber); }
.board-row span { overflow-wrap: anywhere; }

/* chalkboard */
.chalk { width: min(640px, 100%); }
.chalk-face {
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(160deg, #23282a, #14181a);
  border: clamp(10px, 1.4vw, 16px) solid #5a3d24;
  border-image: linear-gradient(160deg, #7a5433, #3d2715) 1;
  padding: clamp(26px, 5vw, 56px) clamp(22px, 4vw, 48px);
  text-align: center; color: #f4f1e8;
  box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 0 60px rgba(0,0,0,.5);
}
.chalk-top { font-family: var(--script); font-size: clamp(30px, 4.4vw, 46px); line-height: 1; color: #ffe2b8; opacity: .95; }
.chalk-big { white-space: pre-line; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6.6vw, 78px); line-height: 1; margin-top: 18px; text-shadow: 0 0 1px rgba(255,255,255,.6), 1px 1px 0 rgba(255,255,255,.12); }
.chalk-line { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.6vw, 28px); line-height: 1.2; margin-top: 18px; opacity: .92; }
.chalk-legs { display: flex; justify-content: space-between; padding: 0 9%; height: clamp(30px, 6vh, 70px); }
.chalk-legs i { width: clamp(10px, 1.4vw, 16px); background: linear-gradient(#4a301b, #2a1a0e); }

/* menu card */
.menu {
  width: min(560px, 100%);
  background: linear-gradient(170deg, #fbf6ea, #efe4cb);
  color: var(--ink);
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(201,164,92,.5), inset 0 0 0 9px #fbf6ea, inset 0 0 0 10px rgba(201,164,92,.7);
  rotate: -1.4deg;
}
.menu-orn { color: var(--gold); font-size: 22px; line-height: 1; }
.menu-title { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 46px); font-weight: 500; font-style: italic; margin-top: 6px; }
.menu-rows { margin-top: clamp(16px, 3vw, 28px); display: grid; gap: clamp(10px, 1.6vw, 16px); text-align: left; }
.menu-row { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px); }
.menu-row dt { flex: none; }
.menu-row .dots { flex: 1; border-bottom: 1px dotted #9b8a6a; translate: 0 -5px; min-width: 16px; }
.menu-row dd { flex: none; font-weight: 600; font-size: 1.3em; }
.menu-row dd small { font-family: var(--sans); font-weight: 400; font-size: .5em; letter-spacing: .08em; color: var(--ink-soft); margin-left: 6px; text-transform: uppercase; }
.menu-line { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.25; margin-top: clamp(18px, 3vw, 28px); color: #3c3125; }
.menu .src { color: var(--ink-soft); opacity: 1; }

/* ---------- the bar & the book ---------- */
.bar { position: relative; overflow-x: hidden; overflow-x: clip; min-height: 100vh; padding: clamp(90px, 12vh, 140px) clamp(14px, 4vw, 48px) 0; display: flex; flex-direction: column; }
.bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,10,5,0) 0%, rgba(24,12,6,.72) 28%, rgba(18,9,5,.9) 100%); }
.bar-inner { width: min(1180px, 100%); margin: 0 auto; flex: 1; }
.bar-kicker { text-align: center; color: var(--gold-soft); }
.bar-title { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(44px, 7.4vw, 92px); line-height: 1; text-align: center; margin: 12px 0 clamp(26px, 5vh, 54px); text-shadow: 0 2px 30px rgba(0,0,0,.5); }

.table { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2vw, 28px); padding-bottom: clamp(30px, 6vh, 70px); }
.table::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: 0; height: 46%; z-index: -1; background: radial-gradient(70% 100% at 50% 100%, rgba(120,62,24,.5), transparent 70%); pointer-events: none; }

/* candle */
.candle { position: relative; flex: none; width: clamp(34px, 4.6vw, 56px); height: clamp(190px, 26vw, 300px); margin-bottom: 8px; align-self: flex-end; }
.candle .wax { position: absolute; left: 22%; right: 22%; bottom: 14%; height: 52%; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #d9cdb4, #fbf4e2 40%, #e9dcc0 70%, #b9aa8c); box-shadow: inset 0 14px 14px -8px rgba(255,190,90,.75); }
.candle .wick { position: absolute; left: 50%; bottom: 66%; width: 2px; height: 9px; translate: -50% 0; background: #2a2018; border-radius: 1px; }
.candle .holder { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: linear-gradient(90deg, #6f5220, #e6c878 35%, #f7e3a2 50%, #b78f3c 75%, #6a4c1c); border-radius: 50% 50% 8px 8px / 30% 30% 8px 8px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.candle .holder::before { content: ""; position: absolute; left: 30%; right: 30%; top: -34%; height: 50%; background: linear-gradient(90deg, #7a5a22, #f0d68c 50%, #7a5a22); border-radius: 3px; }
.candle .flame { position: absolute; left: 50%; bottom: 69%; width: 46%; aspect-ratio: 1 / 2.3; translate: -50% 0; transform-origin: 50% 100%; animation: flame-sway 3.7s ease-in-out infinite; }
.candle .flame i { position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: radial-gradient(60% 55% at 50% 72%, #fff8e0 0 22%, #ffd873 45%, #ff9a2e 72%, rgba(255,110,20,0) 100%); filter: blur(.6px); transform-origin: 50% 100%; animation: flame-flick 1.9s ease-in-out infinite; }
.candle .flame i::after { content: ""; position: absolute; left: 34%; right: 34%; bottom: 4%; height: 34%; border-radius: 50%; background: rgba(60,110,220,.55); filter: blur(1.5px); }
.candle .glow { position: absolute; left: 50%; bottom: 58%; width: clamp(360px, 60vw, 900px); aspect-ratio: 1; translate: -50% 50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,186,96,.34), rgba(255,160,70,.12) 45%, transparent 72%); pointer-events: none; animation: glow-flick 2.7s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes flame-sway { 0%, 100% { transform: rotate(-2.2deg); } 30% { transform: rotate(1.6deg) scaleY(1.04); } 55% { transform: rotate(-.8deg) scaleY(.97); } 78% { transform: rotate(2.4deg) scaleY(1.02); } }
@keyframes flame-flick { 0%, 100% { transform: scale(1, 1); opacity: 1; } 18% { transform: scale(.94, 1.07); opacity: .94; } 37% { transform: scale(1.04, .95); } 52% { transform: scale(.97, 1.04); opacity: .97; } 71% { transform: scale(1.03, .98); } 86% { transform: scale(.96, 1.05); opacity: .93; } }
@keyframes glow-flick { 0%, 100% { opacity: .95; } 22% { opacity: .82; } 41% { opacity: 1; } 63% { opacity: .86; } 80% { opacity: .98; } }

/* book */
.book {
  position: relative; flex: 0 1 auto;
  width: min(1020px, 100%, calc(max(620px, 100svh - 250px) * 1.478));
  aspect-ratio: 1020 / 690;
  perspective: 2400px;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.55));
}
.book-cover { position: absolute; inset: -12px -14px -14px; border-radius: 10px; background: linear-gradient(135deg, #4a1820, #2a0d12 60%, #3a1319); box-shadow: inset 0 0 0 2px rgba(201,164,92,.55), inset 0 0 0 5px #2a0d12, inset 0 0 0 6px rgba(201,164,92,.3); }
.book-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 44px; translate: -50% 0; z-index: 6; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(60,40,20,.20) 35%, rgba(40,25,10,.42) 50%, rgba(60,40,20,.20) 65%, transparent); }
.ribbon { position: absolute; left: calc(50% - 5px); top: -12px; width: 10px; height: calc(100% + 54px); z-index: 7; pointer-events: none; background: linear-gradient(90deg, #7d1f2b, #b23a48 45%, #7d1f2b); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%); box-shadow: 0 0 8px rgba(0,0,0,.4); }

.page {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    linear-gradient(90deg, rgba(120,90,50,.16), transparent 12%),
    repeating-linear-gradient(transparent 0 37px, rgba(120,95,60,.08) 37px 38px),
    linear-gradient(175deg, var(--paper), var(--paper-2));
  color: var(--ink);
  padding: clamp(16px, 2vw, 28px) clamp(18px, 2.8vw, 40px);
  overflow: hidden auto;
  scrollbar-width: thin;
}
.page-left { left: 0; border-radius: 6px 0 0 6px; box-shadow: inset -22px 0 30px -22px rgba(60,40,15,.5), inset 0 0 0 1px rgba(160,130,80,.25); }
.page-right { right: 0; left: auto; border-radius: 0 6px 6px 0; background:
    linear-gradient(270deg, rgba(120,90,50,.16), transparent 12%),
    repeating-linear-gradient(transparent 0 37px, rgba(120,95,60,.08) 37px 38px),
    linear-gradient(185deg, var(--paper), var(--paper-2));
  box-shadow: inset 22px 0 30px -22px rgba(60,40,15,.5), inset 0 0 0 1px rgba(160,130,80,.25); }

.leaf { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; z-index: 5; transform-style: preserve-3d; transform-origin: left center; transition: transform 1.5s cubic-bezier(.3,.06,.2,1); }
.leaf .face { position: absolute; inset: 0; width: 100%; left: 0; right: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf .face-back { transform: rotateY(180deg); }
.book[data-state="page2"] .leaf, .book[data-state="done"] .leaf { transform: rotateY(-180deg); }
.leaf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 40%); opacity: 0; transition: opacity .75s; transform: translateZ(1px); }
.book.is-turning .leaf::after { opacity: 1; }

/* form on the page */
.page-intro { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.25; color: #3c3125; margin-bottom: clamp(8px, 1.2vw, 16px); }
.page-heading { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2vw, 27px); line-height: 1.1; margin-bottom: 4px; }
.line { display: block; margin-top: clamp(8px, 1.1vw, 14px); position: relative; }
.line-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(12px, 1.6vw, 22px); }
.line-pair .line { min-width: 0; }
.line-pair input { width: 100%; }
.line > span { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.line input {
  width: 100%; border: 0; border-bottom: 1px solid #8f7a55; border-radius: 0; background: transparent;
  padding: 2px 0 4px; min-height: 36px;
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.9vw, 24px); color: #1f2a52;
  outline: none; transition: border-color .2s;
}
.line-script input { font-family: var(--script); font-style: normal; font-size: clamp(27px, 2.9vw, 38px); min-height: 44px; padding-top: 0; line-height: 1.1; }
.line input:focus { border-bottom-color: #1f2a52; box-shadow: 0 1px 0 #1f2a52; }
.err { display: block; font-style: normal; font-family: var(--sans); font-size: 11.5px; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tick { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-top: clamp(12px, 1.5vw, 18px); font-size: 12.5px; line-height: 1.4; color: #3c3125; cursor: pointer; position: relative; }
.tick input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.tick .box { width: 20px; height: 20px; border: 1.5px solid #6d5a3a; border-radius: 2px; background: rgba(255,255,255,.4); position: relative; margin-top: 1px; }
.tick .box::after { content: ""; position: absolute; left: 4px; top: -5px; width: 9px; height: 17px; border: solid #1f2a52; border-width: 0 2.5px 2.5px 0; rotate: 40deg; scale: 0; transform-origin: 60% 80%; transition: scale .18s; }
.tick input:checked + .box::after { scale: 1; }
.tick input:focus-visible + .box { outline: 2px solid #1f2a52; outline-offset: 2px; }

.page-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(10px, 1.3vw, 16px); }
.ink-btn {
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  min-height: 42px; padding: 0 26px; border-radius: 2px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  transition: background .2s, color .2s, opacity .2s;
}
.ink-btn:hover, .ink-btn:focus-visible { background: transparent; color: var(--ink); }
.ink-btn[disabled] { opacity: .55; cursor: progress; }
.fine { font-size: 10.5px; line-height: 1.45; color: var(--ink-soft); margin-top: clamp(10px, 1.3vw, 16px); }

/* page 1: the "we are" choice, labelled like the ruled fields above it */
.q-we { margin-top: clamp(10px, 1.2vw, 14px); }
.q.q-we legend { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: var(--ink-soft); }
.q-we .opts { margin-top: 6px; display: grid; grid-template-columns: auto auto; grid-template-rows: repeat(4, auto); grid-auto-flow: column; justify-content: start; justify-items: start; gap: 4px 22px; }
.q-we .opt span { text-align: left; white-space: nowrap; }
/* the privacy line closes the facing page on the open spread; when the pages stack it stays under the button */
.form-fine { display: none; }
.page-fine { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: inherit; padding-top: 0; }
@media (max-width: 980px) { .form-fine { display: block; } .page-fine { display: none; } }
@media (max-width: 760px) {
  .q-we .opts { grid-template-columns: max-content 1fr; gap: 7px 10px; align-items: center; }
  .q-we .opt span { display: inline-block; white-space: normal; min-height: 0; padding: 11px 13px; line-height: 1.25; font-size: 13.5px; border-radius: 21px; }
  .q-we .opt:nth-child(-n+4) span { white-space: nowrap; }
  .q-we .opt .opt-hint { margin-left: 0; }
}
.opt .opt-hint { font-style: normal; font-size: .88em; opacity: .7; margin-left: .3em; }

/* page 2 questions */
.q { border: 0; padding: 0; margin: 9px 0 0; min-width: 0; }
.q legend, .q > label.q-label { padding: 0; font-family: var(--serif); font-size: clamp(15.5px, 1.3vw, 17.5px); line-height: 1.18; font-weight: 500; color: var(--ink); display: block; }
.q .opt-tag { font-family: var(--sans); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; font-weight: 400; }
.opts { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 5px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border: 1px solid #a8946c; border-radius: 999px; font-size: 12px; line-height: 1.2; color: #3c3125; background: rgba(255,255,255,.3); transition: background .15s, color .15s, border-color .15s; }
.opt input:checked + span { background: #1f2a52; border-color: #1f2a52; color: #fbf6ea; }
.opt input:focus-visible + span { outline: 2px solid #1f2a52; outline-offset: 2px; }
.q textarea { width: 100%; margin-top: 5px; min-height: 42px; height: 42px; resize: vertical; border: 1px solid #a8946c; border-radius: 3px; background: rgba(255,255,255,.35); padding: 7px 10px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.25; color: #1f2a52; outline: none; }
.q textarea:focus { border-color: #1f2a52; }
.q textarea::placeholder { color: #8a7a5e; }

.done { height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 6% 4%; }
.done[hidden] { display: none; }
.done-title { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; }
.done-name { font-family: var(--script); font-size: clamp(40px, 5.4vw, 70px); color: #1f2a52; line-height: 1.1; margin: 16px 0 10px; overflow-wrap: anywhere; }
.again-btn { align-self: center; margin-top: 22px; padding: 6px 2px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: #1f2a52; cursor: pointer; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.again-btn:hover, .again-btn:focus-visible { color: var(--ink); }
.done-title, .done-name { margin-left: 0; margin-right: 0; }
.done-line { text-wrap: balance; }
.done-line { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; color: #3c3125; max-width: 28ch; margin: 0 auto; }

/* events register */
.events h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 6px; border-bottom: 1px solid #b9a67e; }
.events h3 + * { margin-top: 10px; }
.events .group + .group { margin-top: clamp(14px, 2vw, 24px); }
.ev { position: relative; display: grid; grid-template-columns: clamp(64px, 7.4vw, 96px) 1fr; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 4px; text-decoration: none; color: inherit; transition: background .2s; }
.ev + .ev { margin-top: 4px; }
.ev-img { aspect-ratio: 1; border-radius: 3px; background: linear-gradient(135deg, #4a1820, #1f2a52); background-size: cover; background-position: center; box-shadow: 0 2px 8px rgba(40,25,10,.35), inset 0 0 0 1px rgba(0,0,0,.15); overflow: hidden; }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-title { font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.12; }
.ev-when { font-size: 12px; letter-spacing: .06em; color: #3c3125; margin-top: 4px; }
.ev-where { font-size: 12px; color: var(--ink-soft); }
.ev-cta { display: inline-block; margin-top: 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #1f2a52; border-bottom: 1px solid currentColor; }
a.ev:hover, a.ev:focus-visible { background: rgba(31,42,82,.08); }
.ev.is-locked { cursor: not-allowed; }
.ev.is-past { cursor: default; grid-template-columns: clamp(52px, 5.6vw, 72px) 1fr; padding-top: 5px; padding-bottom: 5px; }
.ev.is-past .ev-title { font-size: clamp(15px, 1.4vw, 17.5px); font-weight: 500; }
.ev.is-locked .ev-cta { color: var(--ink-soft); border-bottom-style: dashed; }
.ev.is-locked .ev-img { filter: saturate(.75); }
.ev .tip { position: absolute; left: 50%; top: 4px; translate: -50% -100%; z-index: 4; white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 11.5px; letter-spacing: .04em; padding: 7px 12px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .18s, translate .18s; }
.ev .tip::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 5px solid transparent; border-top-color: var(--ink); }
.ev.is-locked:hover .tip, .ev.is-locked:focus-visible .tip, .ev.is-locked.show-tip .tip { opacity: 1; translate: -50% -108%; }
.events .none { font-family: var(--serif); font-style: italic; font-size: 17px; color: #3c3125; }

/* footer */
.foot { width: min(900px, 100%); margin: clamp(30px, 6vh, 70px) auto 0; padding: 26px 0 max(34px, env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid rgba(230,207,154,.25); }
.convened { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.35; color: #f1e4c8; }
.foot-src { font-size: 11.5px; line-height: 1.5; opacity: .62; margin-top: 12px; }
.foot-links { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 14px; opacity: .8; }
.noscript { position: relative; z-index: 30; padding: 120px 24px; text-align: center; font-family: var(--serif); font-size: 22px; }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 980px) {
  .wordmark-sub { display: none; }
  .top.at-book .wordmark { opacity: 0; pointer-events: none; }
  .wordmark { transition: opacity .3s; }
  .scene { height: 170vh; }
  .pin { padding: 76px 16px 58px; }
  .sh-panels { grid-template-columns: 1fr; gap: 12px; }
  .sh-panel { min-height: 0; padding: 16px 18px 20px; }
  .sh-big { font-size: clamp(54px, 17vw, 84px); }
  .board-cols { display: none; }
  .board-row { grid-template-columns: 7.5ch 1fr; font-size: 16px; }
  .board-row .c-where { grid-column: 2; font-size: 13px; opacity: .85; }
  .board-row .status { grid-column: 2; font-size: 13px; }
  .board::before { display: none; }
  .menu { rotate: 0deg; }

  .table { flex-direction: column; align-items: center; gap: 0; }
  .candle { order: -1; height: 150px; width: 38px; margin: 0 0 -6px; align-self: center; }
  .candle .glow { width: 130vw; }
  .book { aspect-ratio: auto; width: 100%; perspective: none; display: flex; flex-direction: column; gap: 14px; filter: none; }
  .book-cover, .book-spine, .ribbon { display: none; }
  .page { position: relative; width: 100%; top: auto; bottom: auto; left: auto; right: auto; border-radius: 6px; overflow: visible; padding: 22px 20px 24px; box-shadow: 0 0 0 6px #3a1319, 0 0 0 7px rgba(201,164,92,.5), 0 24px 40px rgba(0,0,0,.5); margin: 7px; width: calc(100% - 14px); }
  .leaf { position: static; width: auto; transform: none !important; transition: none; display: contents; }
  .leaf .face { position: relative; inset: auto; backface-visibility: visible; -webkit-backface-visibility: visible; }
  .leaf .face-back { transform: none; }
  .leaf .face-front { display: none; }
  .leaf::after { display: none; }
  /* one form page at a time */
  .book[data-state="page1"] #pageTwo { display: none; }
  .book[data-state="page2"] #pageOne, .book[data-state="done"] #pageOne { display: none; }
  #pageOne { order: 1; } #pageTwo { order: 1; } #pageEvents { order: 2; }
  .book.is-turning #pageTwo { animation: page-in .7s cubic-bezier(.3,.06,.2,1) both; transform-origin: left center; }
  @keyframes page-in { from { transform: perspective(1400px) rotateY(-70deg); opacity: .2; } to { transform: perspective(1400px) rotateY(0); opacity: 1; } }
  .line input, .q textarea { font-size: 20px; }
  .q textarea { height: auto; min-height: 64px; }
  .q { margin-top: 16px; }
  .line-script input { font-size: 32px; }
  .opt span { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .opts { gap: 7px; }
  .q legend, .q > label.q-label { font-size: 18px; }
  .tick { font-size: 13.5px; }
  .ev { grid-template-columns: 76px 1fr; }
  .done { padding: 30px 8px; }
}

@media (max-height: 560px) and (min-width: 981px) {
  .pin { padding-top: 64px; padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .candle .flame, .candle .flame i, .candle .glow, .cue i { animation: none; }
  .leaf { transition: none; }
  .surface { transform: none; }
  .hero-inner { transform: none; }
  .book.is-turning #pageTwo { animation: none; }
}

/* ================= film mode: words sit on real surfaces in the footage ================= */
.film-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; display: none; }
.film .film-layer { display: block; }
.film .scene { height: 260vh; }
.film .scene[data-scene="chalk"] { height: 320vh; }
.film .scene-hero { height: 160vh; }
/* the words stay in the page for screen readers; sighted visitors read them on the surfaces instead */
.film .scene:not([data-scene="hero"]):not([data-scene="altitude"]) .pin { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.film .veil { background: radial-gradient(130% 100% at 50% 45%, rgba(8,6,14,0) 40%, rgba(8,6,14,.22) 75%, rgba(0,0,0,.5) 100%); }

.sf { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; visibility: hidden; will-change: transform, opacity; }
/* stat surfaces only: the guest book keeps its own spacing */
.sf-billboard p, .sf-poster p, .sf-board p, .sf-chalk p, .sf-menu p, .sf-menu dl { margin: 0; }
.sf-billboard p, .sf-poster p { text-wrap: balance; }
.sf p:empty, .sh-panel p:empty, .bb-face p:empty { display: none; }

/* the one line that isn't on a surface: quiet type in the sky over London */
.film [data-scene="altitude"] .pin { align-items: flex-end; justify-content: flex-start; padding: 0 clamp(20px, 4.5vw, 70px) clamp(84px, 15vh, 150px); }
.film .hud { max-width: 600px; padding: 0; background: none; text-align: left; }
.film .hud::before { content: ""; position: absolute; inset: -60px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(10,6,16,.62), rgba(10,6,16,.3) 60%, rgba(10,6,16,0)); pointer-events: none; }
.film .hud-ring, .film .hud .src { display: none; }
.film .hud-label { font-size: 10.5px; }
.film .hud-big { font-size: clamp(54px, 8vw, 112px); text-shadow: 0 2px 30px rgba(30,10,40,.55); }
.film .hud-line { font-size: clamp(19px, 2.1vw, 28px); text-shadow: 0 1px 16px rgba(30,10,40,.7); }
.film .hud-second { font-size: clamp(18px, 1.9vw, 25px); text-shadow: 0 1px 16px rgba(30,10,40,.7); }

/* rooftop billboard */
.sf-billboard { width: 1000px; height: 404px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 26px 76px; color: #1b1510; mix-blend-mode: multiply; }
.sf-billboard .sf-big { font-family: var(--serif); font-weight: 600; font-size: 88px; line-height: .96; letter-spacing: -.012em; }
.sf-billboard .sf-line { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1.07; margin-top: 10px; color: #2a2119; white-space: pre-line; }
.bb-line { white-space: pre-line; }

/* bus-shelter screens */
.sf-poster { width: 400px; height: 820px; display: flex; flex-direction: column; justify-content: center; padding: 50px 40px 70px; color: #1b1510; mix-blend-mode: multiply; }
.sf-poster .sf-big { font-family: var(--serif); font-weight: 600; font-size: 168px; line-height: .84; letter-spacing: -.02em; }
/* full-height figures here: the old-style "1" reads as a capital I, so 11% looked like II% */
#sf-shelter-a .sf-big { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.sf-poster .sf-line { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.08; margin-top: 30px; }
.sf-poster .sf-second { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 39px; line-height: 1.1; margin-top: 26px; color: #7a1f2b; }
/* a headline-only poster: the words carry it, so they run smaller than a single big number */
.sf-poster.sf-poster-b .sf-big { font-size: 88px; line-height: .98; letter-spacing: -.012em; }
.sf-poster.sf-poster-b .sf-line { font-style: italic; color: #7a1f2b; }
.sf-poster::after { content: ""; display: block; width: 64px; height: 3px; background: #1b1510; margin-top: 40px; opacity: .8; }

/* station departure board */
.sf-board { width: 860px; height: 470px; padding: 24px 30px; font-family: var(--dot); color: var(--amber); background: rgba(3,3,4,.55); display: flex; flex-direction: column; }
.sf-board .board-head { font-size: 17px; padding-bottom: 12px; }
.sf-board .board-clock { font-size: 32px; }
.sf-board .board-cols { display: grid; font-size: 12px; padding: 12px 0 6px; }
.sf-board .board-cols, .sf-board .board-row { grid-template-columns: 139px minmax(0, 2.2fr) minmax(0, 1.7fr) minmax(0, 1.5fr); gap: 0 22px; }
.sf-board .board-row { font-size: 28px; padding: 16px 0; }
.sf-board .board-row .tag { font-size: 13px; margin-bottom: 8px; }
.sf-board .board-row .c-where, .sf-board .board-row .status { grid-column: auto; font-size: inherit; opacity: 1; }
.sf-board .board-row span { overflow-wrap: normal; word-break: normal; }
.sf-board { overflow: hidden; }
.sf-board .board-row.is-past { font-size: 18px; padding: 8px 0; letter-spacing: 0; }
.sf-board .board-row.is-past .c-time { white-space: nowrap; }
.sf-board .board-row.is-past .c-where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* chalkboard by the door */
.sf-chalk { width: 400px; height: 600px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 34px 26px; color: #f1eee5; filter: blur(.35px); }
.sf-chalk .chalk-top { font-family: var(--script); font-size: 58px; line-height: 1; color: #ffe6c2; }
.sf-chalk .chalk-big { white-space: pre-line; font-family: var(--serif); font-weight: 500; font-size: 62px; line-height: 1; margin-top: 26px; }
.sf-chalk .chalk-line { font-family: var(--serif); font-style: italic; font-size: 31px; line-height: 1.16; margin-top: 26px; opacity: .92; }

/* menu card on the bar */
.sf-menu { width: 440px; height: 672px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 40px 40px; color: #231c15; mix-blend-mode: multiply; }
.sf-menu .menu-orn { font-size: 26px; color: #9a7a35; }
.sf-menu .menu-title { font-size: 50px; margin-top: 6px; }
.sf-menu .menu-rows { margin-top: 30px; gap: 18px; }
.sf-menu .menu-row { font-size: 27px; }
.sf-menu .menu-line { font-size: 24px; margin-top: 30px; }

/* the guest book on its lectern */
.sf-book { width: 1120px; height: 586px; }
.sf-book.is-on { pointer-events: auto; }
.film .sf-book .book { width: 100%; height: 100%; aspect-ratio: auto; filter: none; }
.film .sf-book .book-cover, .film .sf-book .book-spine, .film .sf-book .ribbon { display: none; }
.film .sf-book .page { background: none; box-shadow: none; border-radius: 0; padding: 26px 50px 16px 46px; }
.film .sf-book .page-right { padding: 26px 46px 16px 56px; }
/* fixed sizes inside the photographed book: the whole spread is scaled to the page, so nothing here follows the window width */
.film .sf-book p { margin: 0; }
.film .sf-book .page-intro { font-size: 20px; margin-bottom: 12px; }
.film .sf-book .page-heading { font-size: 26px; }
.film .sf-book .line { margin-top: 11px; }
.film .sf-book .line > span { font-size: 10.5px; }
.film .sf-book .line input { font-size: 23px; min-height: 34px; }
.film .sf-book .line-script input { font-size: 34px; min-height: 40px; }
.film .sf-book .q-we { margin-top: 9px; }
.film .sf-book .q.q-we legend { font-size: 10.5px; }
.film .sf-book .q-we .opts { margin-top: 5px; gap: 3px 26px; }
.film .sf-book .q-we .opt span { font-size: 12.5px; min-height: 24px; padding: 2px 10px; }
.film .sf-book #formOne { margin-top: -6px; }
/* page 1 carries one more row than it was drawn for: close up the ruled lines so the small print stays on the paper */
.film .sf-book #formOne .page-intro { font-size: 17px; margin-bottom: 4px; white-space: nowrap; }
.film .sf-book #formOne .line { margin-top: 6px; }
.film .sf-book #formOne .line input { min-height: 29px; }
.film .sf-book #formOne .line-script input { min-height: 34px; }
.film .sf-book #formOne .tick { margin-top: 10px; }
.film .sf-book #formOne .page-foot { margin-top: 10px; }
.film .sf-book .page-fine { font-size: 11px; margin: 0; bottom: 42px; white-space: nowrap; }
.film .sf-book .tick { margin-top: 15px; font-size: 13.5px; }
.film .sf-book .page-foot { margin-top: 13px; }
.film .sf-book .fine { font-size: 11px; margin-top: 11px; }
.film .sf-book .q { margin-top: 8px; }
.film .sf-book .q legend, .film .sf-book .q > label.q-label { font-size: 17px; }
.film .sf-book .opt span { font-size: 13px; min-height: 28px; }
.film .sf-book .done-title { font-size: 40px; margin: 0; }
.film .sf-book .done-name { font-size: 62px; margin: 14px 0 12px; }
.film .sf-book .done-line { font-size: 20px; margin: 0 auto; max-width: 30ch; text-wrap: balance; }
.film .sf-book .events .group + .group { margin-top: 20px; }
.film .sf-book .ev { grid-template-columns: 92px 1fr; }
.film .sf-book .ev-title { font-size: 21px; }
.film .sf-book .ev-when, .film .sf-book .ev-where { font-size: 13px; }
.film .sf-book .ev.is-past { grid-template-columns: 70px 1fr; }
.film .sf-book .ev.is-past .ev-title { font-size: 17.5px; }
.film .sf-book .ev.is-past .ev-when, .film .sf-book .ev.is-past .ev-where { font-size: 12.5px; }
/* the turning leaf only shows its own paper while it is in the air; at rest the photographed page shows through */
.film .sf-book .leaf .face { background: none; isolation: isolate; }
.film .sf-book .leaf .face::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s; background: linear-gradient(90deg, #e3c9b0, #f0dcc6 22%, #f2e0cc 80%, #ead5bd); }
.film .sf-book .leaf .face-back::before { background: linear-gradient(90deg, #d6b89f, #e9cfb5 30%, #f0d7be 85%, #e6ccb2); }
.film .sf-book .book.is-turning .leaf .face::before { opacity: 1; transition-duration: .15s; }
.film .sf-book .book[data-state="page1"]:not(.is-turning) #pageEvents { visibility: hidden; }
.film .sf-book .book:not([data-state="page1"]):not(.is-turning) #pageOne { visibility: hidden; }
.film .sf-book .line input { border-bottom-color: rgba(90,70,40,.55); }

.film-caption { position: absolute; top: clamp(18px, 3.4vh, 34px); left: 0; right: 0; text-align: center; margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 3.5vw, 50px); line-height: 1; opacity: 0; text-shadow: 0 2px 26px rgba(0,0,0,.8); }
.film-src { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; margin: 0; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.film-foot { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; width: min(980px, 92vw); text-align: center; font-family: var(--serif); font-size: 15px; line-height: 1.35; color: #f1e4c8; opacity: 0; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.film-foot::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: 100vw; height: 90px; translate: -50% 0; z-index: -1; background: linear-gradient(180deg, rgba(8,5,3,0), rgba(8,5,3,.72)); pointer-events: none; }
.by-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(241,228,200,.55); transition: text-decoration-color .2s; }
.by-link:hover, .by-link:focus-visible { text-decoration-color: currentColor; }
.film-foot a.by-link { font: inherit; letter-spacing: 0; text-transform: none; margin-left: 0; }
.film-foot a { font-family: var(--sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; margin-left: 10px; }
.candle { display: none; }

@media (min-width: 981px) {
  .film .bar { min-height: 0; height: 170vh; padding: 0; }
  .film .bar > *, .film .bar::before { display: none; }
}
@media (max-width: 760px) {
  /* phones: smaller design boxes, so the same words sit larger on each surface */
  .sf-billboard { width: 680px; height: 275px; padding: 16px 44px; }
  .sf-billboard .sf-big { font-size: 68px; }
  .sf-billboard .sf-big { font-size: 60px; }
  .sf-billboard .sf-line { font-size: 36px; margin-top: 6px; }
  .sf-poster.sf-poster-b .sf-big { font-size: 72px; }
  .sf-poster { width: 320px; height: 656px; padding: 36px 26px 50px; }
  .sf-poster .sf-big { font-size: 136px; }
  .sf-poster .sf-line { font-size: 37px; margin-top: 24px; }
  .sf-poster .sf-second { font-size: 35px; margin-top: 20px; }
  .sf-board { width: 560px; height: 306px; padding: 16px 20px; }
  .sf-board .board-head { font-size: 14px; padding-bottom: 8px; }
  .sf-board .board-clock { font-size: 24px; }
  .sf-board .board-cols { display: none; }
  .sf-board .board-row { grid-template-columns: 7ch minmax(0, 1fr); gap: 0 18px; font-size: 27px; padding: 10px 0; }
  .sf-board .board-row .tag { font-size: 11px; margin-bottom: 5px; }
  .sf-board .board-row { grid-template-columns: 150px minmax(0, 1fr); gap: 0 14px; font-size: 23px; padding: 8px 0; }
  .sf-board .board-row.is-past { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 0 14px; font-size: 15px; padding: 5px 0; }
  .sf-board .board-row.is-past .c-title { grid-column: 2 / 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sf-board .board-row.is-past .c-where { grid-column: 2; font-size: 12px; margin-top: 1px; }
  .sf-board .board-row.is-past .status { grid-column: 3; font-size: 12px; margin-top: 1px; }
  .sf-board .board-row .c-where { grid-column: 2; font-size: 17px; opacity: .85; margin-top: 3px; }
  .sf-board .board-row .status { grid-column: 2; font-size: 17px; margin-top: 2px; }
  .film .altimeter { display: none; }
  .film .scene[data-scene="shelter"] { height: 380vh; }
  .film [data-scene="altitude"] .pin { padding-bottom: 12vh; }
}
@media (max-width: 980px) {
  /* stacked layout: arrive at the photographed book first, then the pages rise over it */
  .film .bar { padding-top: 56vh; padding-top: 56svh; }
  .film .bar::before { background: linear-gradient(180deg, rgba(10,6,4,0) 0, rgba(10,6,4,0) 30vh, rgba(10,6,4,.72) 66vh, rgba(10,6,4,.86) 100%); }
  .film-caption, .film-foot { display: none; }
  .film-src { font-size: 9px; bottom: 14px; }
}
