/* StrangersMeetup — warm, romantic, minimal editorial. One accent. Mobile first. */
/* Metric-matched fallback so the Open Sans swap does not reflow the hero (layout shift). */
@font-face { font-family: "Open Sans Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105.4%; ascent-override: 101.3%; descent-override: 27.8%; line-gap-override: 0%; }
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --alt: #f4eee7;
  --ink: #23201d;
  --ink-2: #3a3530;
  --muted: #6e655d;
  --line: #e6ded4;
  --accent: #a3473a;
  --accent-ink: #ffffff;
  --accent-soft: #f5e6e1;
  --ok: #3f6b4f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(35, 32, 29, .04), 0 8px 24px rgba(35, 32, 29, .06);
  --wrap: 1160px;
  --gutter: 16px;
  --font: "Open Sans", "Open Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(163, 71, 58, .45); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: .75em; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 40em; }
.note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }
.soon { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: var(--alt); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: not-allowed; opacity: .65; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #8d3c31; color: #fff; }
.btn-tg { background: var(--ink); color: #fff; }
.btn-tg::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("/img/telegram.svg") center/contain no-repeat; mask: url("/img/telegram.svg") center/contain no-repeat; }
.btn-tg:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 244, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; color: var(--ink); }
.logo-mark { width: 30px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.logo-soft { font-weight: 400; color: var(--muted); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: transparent; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.age-chip { font-size: .72rem; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-auth.btn-tg { width: 44px; min-height: 44px; padding: 0; font-size: 0; gap: 0; }
  .header-auth.btn-tg::before { width: 18px; height: 18px; }
  .header-auth.btn-ghost { padding: 6px 12px; font-size: .8rem; min-height: 44px; }
  /* Visually hidden, still part of the link's accessible name (visible label must start the name). */
  .site-header .logo-soft { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  /* Signed-in header (logo, My bookings, menu) must fit a 320px phone; 21+ is stated on every event and on sign-in. */
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .age-chip { display: none; }
}

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: 40px 0; }
.section-flush { padding-top: 8px; }
.section-alt { background: var(--alt); }
.section-head { margin-bottom: 28px; max-width: 46em; }
.page-head { padding: clamp(40px, 7vw, 80px) 0 24px; }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; margin: 0; }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 { max-width: 13em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art svg { width: 100%; max-width: 440px; margin-left: auto; display: block; }
.ha { fill: none; stroke-width: 1.5; }
.ha-1 { stroke: var(--ink); }
.ha-2 { stroke: var(--accent); }
.ha-lens { fill: var(--accent-soft); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .ha-1 { animation: drift-l 9s ease-in-out infinite alternate; }
  .ha-2 { animation: drift-r 9s ease-in-out infinite alternate; }
  .ha-lens { animation: breathe 9s ease-in-out infinite alternate; transform-origin: 200px 160px; }
}
@keyframes drift-l { from { transform: translateX(-10px); } to { transform: translateX(4px); } }
@keyframes drift-r { from { transform: translateX(10px); } to { transform: translateX(-4px); } }
@keyframes breathe { from { transform: scaleX(.8); opacity: .7; } to { transform: scaleX(1.08); opacity: 1; } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 28px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
select, input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%; }
.filters select { min-width: 160px; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
@media (max-width: 560px) { .filters label { flex: 1 1 calc(50% - 6px); } .filters select { min-width: 0; } .filters .btn { flex: 1 1 100%; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); }
.card-img, .card-art { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card-art { background:
  radial-gradient(circle at 38% 55%, transparent 33%, rgba(35, 32, 29, .55) 33.4%, rgba(35, 32, 29, .55) 34%, transparent 34.4%),
  radial-gradient(circle at 62% 45%, transparent 33%, rgba(163, 71, 58, .7) 33.4%, rgba(163, 71, 58, .7) 34%, transparent 34.4%),
  var(--alt); }
/* Category tints: a quiet palette per format so a row of cards without photos doesn't read as one repeated tile. */
.card-art { display: grid; place-items: center; color: var(--art-ink, var(--ink-2)); }
.card-glyph { width: 72px; height: 72px; opacity: .85; }
.card-art-meetup { background-color: #e8e4da; --art-ink: #5b5a3f; }
.card-art-dating_mixer { background-color: #f1ded9; --art-ink: #8d3c31; }
.card-art-nightlife { background-color: #e3dde9; --art-ink: #4d3f6b; }
.card-art-dinner_club { background-color: #f1e5d3; --art-ink: #8a5a1f; }
.card-art-movie { background-color: #dde3e8; --art-ink: #34495e; }
.card-art-board_games { background-color: #dfe8dd; --art-ink: #3e6a47; }
.card-art-weekend_trip { background-color: #e0e7dc; --art-ink: #3f6247; }
.card-art-resort_getaway { background-color: #dae8e8; --art-ink: #2f6a6d; }
.card-art-weekend_party { background-color: #f3e2d6; --art-ink: #a2502b; }
.card-art-matchmaking { background-color: #f1dfe4; --art-ink: #8a3a56; }
.card-art-networking { background-color: #dde4ec; --art-ink: #34567a; }
.card-art-workshop { background-color: #ece6d3; --art-ink: #6b5a20; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; gap: 12px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.card-title { font-size: 1.2rem; margin-bottom: 6px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; }
.card-when { font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; }
.card-incl { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 700; margin: 0; }
.price-lg { font-size: 1.5rem; }
.state { font-size: .82rem; margin: 0; color: var(--muted); }
.state-open { color: var(--ok); }
.state-sold_out, .state-cancelled { color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badges:empty { display: none; }
.badge { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--alt); border: 1px solid var(--line); color: var(--ink-2); }
.badge-sample { background: #fff6d6; border-color: #ead9a0; color: #6a5410; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 24px; text-align: center; background: var(--surface); }
.empty p:first-child { font-weight: 600; font-size: 1.05rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Split / dating */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.soon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.soon-list li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.soon-list span:not(.soon) { color: var(--muted); font-size: .9rem; text-align: right; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier-price { font-size: 1.15rem; font-weight: 600; color: var(--muted); }
.tier ul { padding-left: 1.1em; margin: 0 0 20px; flex: 1; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* Social proof */
.proof-stat { font-size: 1.2rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 24px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.quote cite { font-style: normal; color: var(--muted); font-size: .9rem; }
.media { margin: 0; }
.media img { border-radius: var(--radius); }
.media figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq-icon { flex: 0 0 18px; height: 18px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--accent); transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a p { color: var(--ink-2); margin: 0 0 18px; max-width: 46em; }

/* Event page */
.event-head { padding: clamp(32px, 6vw, 64px) 0 24px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.sample-note { background: #fff6d6; border: 1px solid #ead9a0; color: #6a5410; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; max-width: 46em; }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-bottom: 80px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 32px; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.ticks li::marker { content: "✓  "; color: var(--ok); }
.crosses li::marker { content: "–  "; color: var(--muted); }
.book-box { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.book-box .state { margin-top: -8px; }
.book-facts { list-style: none; padding: 0; margin: 4px 0 0; font-size: .86rem; color: var(--muted); display: grid; gap: 8px; }
.test-note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }
.book-msg:empty, .form-msg:empty { display: none; }
.book-msg, .form-msg { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .event-grid { grid-template-columns: minmax(0, 1fr); } .book-box { position: static; order: -1; } .facts { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg.error, .book-msg.error { color: var(--accent); }
.form-msg.ok, .book-msg.ok { color: var(--ok); }
.field-error input, .field-error textarea { border-color: var(--accent); }
.notice { background: var(--alt); border: 1px solid var(--line); padding: 12px 16px; border-radius: var(--radius-sm); }
.signin { display: grid; gap: 20px; }
.tg-widget { min-height: 48px; }
.tg-widget[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Member */
.booking-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.profile-block { margin-top: 40px; }
.booking-list li, .booking-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e3dc; padding: 64px 0 32px; margin-top: 0; }
.site-footer a { color: #e9e3dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; }
.site-footer .logo-soft { color: #b9afa5; display: inline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: #b9afa5; font-size: .92rem; margin-top: 14px; max-width: 22em; }
.footer-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #b9afa5; margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #3a3530; font-size: .85rem; color: #b9afa5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Reveal (enhanced by JS; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===================================================================================
   Cinematic layer — "night reel": homepage hero, scroll-scrubbed scenes, format reel,
   staggered reveals and cross-page transitions. Everything reads without JS and falls
   back to static layouts under prefers-reduced-motion.
   =================================================================================== */
:root {
  --night: #15110f;
  --night-2: #1f1916;
  --night-line: #2c2420;
  --glow: #e0745f;
  --glow-2: #f3c9a8;
  --cream: #f6efe7;
  --ease-cine: cubic-bezier(.16, 1, .3, 1);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cross-page fades only for people who have not asked for reduced motion (the `*` reset above does not reach them). */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root) { animation: vt-out .3s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-cine) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Header floats over the night hero on the homepage until the hero scrolls away. */
.home-cinema .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .4s, border-color .4s; }
.home-cinema .site-header:not(.solid) .logo,
.home-cinema .site-header:not(.solid) .nav a { color: var(--cream); }
.home-cinema .site-header:not(.solid) .logo-soft,
.home-cinema .site-header:not(.solid) .age-chip { color: rgba(246, 239, 231, .7); border-color: rgba(246, 239, 231, .25); }
.home-cinema .site-header:not(.solid) .logo-mark { stroke: var(--glow); }
.home-cinema .site-header:not(.solid) .btn-tg { background: var(--cream); color: var(--night); }
.home-cinema .site-header:not(.solid) .btn-ghost { color: var(--cream); border-color: rgba(246, 239, 231, .4); }
.home-cinema .site-header:not(.solid) .nav-toggle { border-color: rgba(246, 239, 231, .3); }
.home-cinema .site-header:not(.solid) .nav-toggle span { background: var(--cream); }
.home-cinema .site-header.solid { background: rgba(251, 248, 244, .92); border-bottom-color: var(--line); }
@media (max-width: 1020px) {
  .home-cinema .site-header:not(.solid) .nav { background: var(--night); border-bottom-color: var(--night-line); }
  .home-cinema .site-header:not(.solid) .nav a { border-bottom-color: var(--night-line); }
}

/* Buttons for dark scenes */
.btn-light { background: var(--cream); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-light::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("/img/telegram.svg") center/contain no-repeat; mask: url("/img/telegram.svg") center/contain no-repeat; }
.btn-light.btn-ghost::before { display: none; }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(246, 239, 231, .4); }
.btn-outline-light:hover { border-color: var(--cream); color: #fff; }

/* ---------- Hero ---------- */
.cine-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 0 104px; color: var(--cream);
  background: radial-gradient(120% 90% at 50% 115%, #3d1f18 0%, var(--night-2) 48%, var(--night) 100%); }
.cine-stage { position: absolute; inset: 0; z-index: -1; --s: 0; --mx: 0; --my: 0; }
.cine-orb { position: absolute; left: 50%; top: 50%; width: min(64vmin, 580px); aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.cine-orb-a { background: radial-gradient(circle, transparent 66%, rgba(243, 201, 168, .6) 69%, transparent 71.5%), radial-gradient(circle, rgba(243, 201, 168, .1), transparent 66%);
  transform: translate(calc(-50% - 9vmin - (1 - var(--s)) * 18vmin + var(--mx) * -10px), calc(-50% + var(--my) * -8px)); }
.cine-orb-b { background: radial-gradient(circle, transparent 66%, rgba(224, 116, 95, .85) 69%, transparent 71.5%), radial-gradient(circle, rgba(224, 116, 95, .16), transparent 66%);
  transform: translate(calc(-50% + 9vmin + (1 - var(--s)) * 18vmin + var(--mx) * 10px), calc(-50% + var(--my) * 8px)); }
.cine-lens { position: absolute; left: 50%; top: 50%; width: min(30vmin, 280px); aspect-ratio: .62; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 116, 95, .6), rgba(224, 116, 95, 0));
  transform: translate(-50%, -50%) scale(calc(.4 + var(--s) * .8)); opacity: calc(.3 + var(--s) * .7); filter: blur(16px); }
.cine-grain { position: absolute; inset: -50%; opacity: .1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cine-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .6) 100%); }
.cine-bar { position: absolute; left: 0; right: 0; height: 8vh; background: #000; z-index: 2; pointer-events: none; }
.cine-bar-top { top: 0; transform-origin: top; }
.cine-bar-bottom { bottom: 0; transform-origin: bottom; }
.cine-copy { position: relative; z-index: 3; }
.cine-title { font-size: clamp(2.5rem, 7.6vw, 5.8rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 11em; margin-bottom: .35em; }
.cine-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.cine-title .w > span { display: inline-block; }
.cine-eyebrow, .scenes .eyebrow { color: var(--glow-2); }
.cine-lede { color: rgba(246, 239, 231, .8); }
.cine-cue { position: absolute; left: 50%; bottom: calc(8vh + 20px); transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 1.5px solid rgba(246, 239, 231, .5); border-radius: 14px; }
.cine-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); }

@media (prefers-reduced-motion: no-preference) {
  .cine-bar { animation: bar-open 1.6s var(--ease-cine) .1s both; }
  .cine-title .w > span { animation: word-rise 1.1s var(--ease-cine) both; animation-delay: calc(.45s + var(--i) * .07s); }
  .cine-eyebrow, .cine-lede, .cine-cta { animation: fade-up 1s var(--ease-cine) both; }
  .cine-eyebrow { animation-delay: .3s; }
  .cine-lede { animation-delay: 1.05s; }
  .cine-cta { animation-delay: 1.25s; }
  .cine-stage { animation: stage-in 2.4s ease both; }
  .cine-grain { animation: grain 1s steps(6) infinite; }
  .cine-cue span { animation: cue 2s ease-in-out infinite; }
}
@keyframes bar-open { from { transform: scaleY(6.25); } to { transform: scaleY(1); } }
@keyframes word-rise { from { transform: translateY(110%) rotate(5deg); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(-2%, -4%); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 1000px) { .cine-orb, .cine-lens { left: 64%; } }
@media (max-width: 600px) {
  .cine-bar { height: 5vh; }
  .cine-cue { display: none; }
  .cine-orb { width: 82vmin; }
  .cine-orb, .cine-lens { top: 32%; }
  .cine-hero { align-items: flex-end; }
}

/* ---------- Scenes: scroll-scrubbed when .is-live (JS + motion OK), a plain list otherwise ---------- */
.scenes { position: relative; background: var(--night); color: var(--cream); }
.scenes-inner { padding: clamp(64px, 10vw, 120px) var(--gutter); }
.scene-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; max-width: 32em; }
.scene-n { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--glow); margin-bottom: 10px; }
.scene h3 { font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: .35em; }
.scene p { color: rgba(246, 239, 231, .75); font-size: clamp(1rem, 1.8vw, 1.15rem); margin: 0; }
.scenes-visual, .scene-progress { display: none; }

.scenes.is-live { height: 400vh; }
.scenes.is-live .scenes-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.scenes.is-live .scenes-inner { padding-top: 0; padding-bottom: 0; position: relative; z-index: 2; width: 100%; }
.scenes.is-live .scene-list { display: grid; }
.scenes.is-live .scene { grid-area: 1 / 1; opacity: 0; transform: translateY(32px); filter: blur(8px); transition: opacity .8s var(--ease-cine), transform .9s var(--ease-cine), filter .8s; }
.scenes.is-live .scene.on { opacity: 1; transform: none; filter: none; }
.scenes.is-live .scene.past { transform: translateY(-32px); }
.scenes.is-live .scenes-visual { display: block; position: absolute; inset: 0; --q: 0; --c: 0; }
.scenes.is-live .scene-progress { display: flex; gap: 8px; margin-top: 40px; }
.scene-progress span { width: 36px; height: 2px; background: rgba(246, 239, 231, .2); position: relative; overflow: hidden; }
.scene-progress span::after { content: ""; position: absolute; inset: 0; background: var(--glow); transform: scaleX(var(--f, 0)); transform-origin: left; }

/* --q: two circles closing in (0 → 1). --c: the crowd joining (0 → 1). Both set from scroll. */
.sv { position: absolute; top: 50%; left: 70%; width: min(34vmin, 320px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(246, 239, 231, .6); will-change: transform, opacity; }
.sv-a { transform: translate(calc(-50% - 7vmin - (1 - var(--q)) * 20vmin), -50%); }
.sv-b { border-color: var(--glow); box-shadow: 0 0 70px rgba(224, 116, 95, calc(.1 + var(--q) * .3)), inset 0 0 70px rgba(224, 116, 95, calc(.05 + var(--q) * .2));
  transform: translate(calc(-50% + 7vmin + (1 - var(--q)) * 20vmin), -50%); }
.sv-c, .sv-d, .sv-e { width: min(15vmin, 140px); border-color: rgba(243, 201, 168, .55); opacity: var(--c); }
.sv-c { transform: translate(calc(-50% - 24vmin), calc(-50% - 24vmin)) scale(calc(.5 + var(--c) * .5)); }
.sv-d { transform: translate(calc(-50% + 28vmin), calc(-50% + 16vmin)) scale(calc(.5 + var(--c) * .5)); }
.sv-e { transform: translate(calc(-50% - 16vmin), calc(-50% + 26vmin)) scale(calc(.5 + var(--c) * .5)); }
@media (max-width: 820px) {
  .sv { left: 50%; top: 30%; width: 40vmin; }
  .sv-c, .sv-d, .sv-e { width: 17vmin; }
  .scenes.is-live .scenes-sticky { align-items: flex-end; padding-bottom: 10vh; }
}

/* ---------- Format reel ---------- */
.reel { position: relative; display: flex; overflow: hidden; background: var(--night); color: var(--cream); border-top: 1px solid var(--night-line); padding: 22px 0; }
.reel::before, .reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.reel::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.reel-track { list-style: none; margin: 0; padding: 0; display: flex; flex: 0 0 auto; }
.reel-track li { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; padding-left: 28px; display: flex; align-items: center; gap: 28px; }
.reel-track li::after { content: ""; width: 24px; height: 14px; flex: 0 0 auto;
  background: radial-gradient(circle at 7px 7px, transparent 5.2px, var(--glow-2) 5.6px, var(--glow-2) 6.6px, transparent 7px), radial-gradient(circle at 17px 7px, transparent 5.2px, var(--glow) 5.6px, var(--glow) 6.6px, transparent 7px); }
@media (prefers-reduced-motion: no-preference) { .reel-track { animation: reel 40s linear infinite; } .reel:hover .reel-track { animation-play-state: paused; } }
@keyframes reel { to { transform: translateX(-100%); } }

/* ---------- Staggered reveals ---------- */
.js .reveal { filter: blur(6px); }
.js .reveal.in { filter: none; transition: opacity .9s var(--ease-cine), transform .9s var(--ease-cine), filter .9s var(--ease-cine); }
.js .stagger > * { opacity: 0; transform: translateY(26px); }
.js .stagger.in > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-cine), transform .9s var(--ease-cine); }
.js .stagger.in > *:nth-child(2) { transition-delay: .08s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .16s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .24s; }
.js .stagger.in > *:nth-child(5) { transition-delay: .32s; }
.js .stagger.in > *:nth-child(n+6) { transition-delay: .4s; }
.card { transition: box-shadow .4s var(--ease-cine), transform .4s var(--ease-cine); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { filter: none; }
  .js .stagger > * { opacity: 1; transform: none; }
  .cine-stage { --s: .6 !important; }
}

/* Organiser events (ticket tiers) on public event pages */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.event-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 0 0 28px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0 0 24px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.tier-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tier-form [hidden] { display: none; }
.tiers { min-width: 0; grid-template-columns: minmax(0, 1fr); border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tiers legend, .q-head { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.tier-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); min-width: 0; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.tier-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tier-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-opt input { grid-row: span 3; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.tier-opt.is-off { cursor: not-allowed; opacity: .75; }
.tier-main { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.tier-meta { font-size: .82rem; color: var(--muted); }
.tier-off { font-size: .82rem; color: var(--accent); font-weight: 600; }
.q-list { display: grid; gap: 12px; }
.q-field { border: 0; padding: 0; margin: 0; }
.q-field legend { padding: 0; margin-bottom: 4px; }
.q-field .muted { font-weight: 400; }
.pay-note { font-size: .86rem; color: var(--ink-2); background: var(--alt); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.preview-bar { background: #fff6d6; border-bottom: 1px solid #ead9a0; color: #4d3c08; position: sticky; top: 64px; z-index: 30; }
.preview-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.preview-bar p { margin: 0; font-size: .92rem; }
.booking-status dl { display: grid; gap: 6px; margin: 12px 0; }
.booking-status dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.booking-status dd { margin: 0 0 6px; }

/* Local test personas on /signin (development only) */
.dev-personas { margin-top: 24px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.dev-personas h2 { font-size: 1rem; margin: 0 0 4px; }
.dev-persona-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.dev-persona-list .btn { width: 100%; height: auto; min-height: 44px; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; text-align: left; white-space: normal; }

/* Format links under the listing headers: pills, not a raw bullet list */
.format-nav { margin-bottom: 24px; }
.format-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.format-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: .92rem; }
.format-nav a:hover { border-color: var(--accent); }
.format-nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* Closed events (past / cancelled) and the admin access screen */
.book-closed .closed-title { font-size: 1.15rem; margin: 0; }
.book-closed p { margin: 0; overflow-wrap: anywhere; }
.access-screen { text-align: left; }
.access-screen h1 { overflow-wrap: anywhere; }
.access-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .access-actions .btn { width: 100%; white-space: normal; } }

/* Touch targets: 44px minimum on phones (WCAG 2.5.8 asks 24px; 44px is the comfortable thumb size). Desktop is unchanged. */
@media (max-width: 800px) {
  .logo { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .check { min-height: 44px; align-items: center; }
  .footer-col ul { gap: 0; }
  .footer-col a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
  .card-title a { display: flex; align-items: center; min-height: 44px; }
  .prose p > a:only-child, .booking-list h3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs a, .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
}
