/* Cecil: A Nightcap at Ravensmere · the landing page.
   Colours are the game's own (cecil-mystery/public/theme.css). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0e1411;
  --bg-deep: #070b09;
  --panel: #19231e;
  --panel-2: #202c26;
  --line: #34443b;
  --ink: #f1e9d6;
  --muted: #b3a992;
  --faint: #6f6a5c;
  --brass: #c9a55b;
  --brass-2: #e3c67f;
  --blood: #a23a32;
  --blood-2: #d0645b;
  --paper: #f4ecd8;
  --paper-2: #ebe0c6;
  --paper-line: #c9b791;
  --paper-ink: #2a2118;
  --paper-muted: #5a4a34;
  --paper-error: #8f2a22;

  --display: "Cormorant Garamond", "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --section: clamp(80px, 12vw, 160px);
  --radius: 16px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.1vw + 12px, 20px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
a { color: var(--brass-2); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--brass-2); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brass-2); color: #1d160c; padding: 10px 16px; border-radius: 8px;
  font-family: var(--sans); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 13px;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 14px;
}

/* ------------------------------------------------------------ monogram */

.monogram {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  color: var(--brass-2);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  padding-bottom: 3px;
  background: radial-gradient(circle at 35% 30%, rgba(227, 198, 127, 0.18), transparent 70%);
  flex: none;
}
.monogram.xs { width: 22px; height: 22px; font-size: 13px; border-width: 1px; padding-bottom: 1px; }
.monogram.sm { width: 34px; height: 34px; font-size: 20px; border-width: 1.5px; padding-bottom: 2px; }
.monogram.lg { width: 104px; height: 104px; font-size: 60px; }
.monogram.ink { color: var(--paper-ink); border-color: var(--brass); background: radial-gradient(circle at 35% 30%, rgba(201, 165, 91, 0.25), transparent 70%); }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { border-color: var(--brass); }
.btn:active { transform: translateY(1px); }
.btn.big { font-size: 16px; padding: 14px 26px; min-height: 52px; }
.btn.small { font-size: 14px; padding: 8px 16px; min-height: 40px; }
.btn.primary {
  background: linear-gradient(180deg, var(--brass-2), var(--brass));
  border-color: var(--brass);
  color: #1d160c;
  box-shadow: 0 10px 30px -12px rgba(227, 198, 127, 0.55);
}
.btn.primary:hover { box-shadow: 0 12px 36px -10px rgba(227, 198, 127, 0.75); }
.btn.ghost { background: rgba(14, 20, 17, 0.35); border-color: rgba(227, 198, 127, 0.45); backdrop-filter: blur(4px); }
.btn.dark { background: var(--bg); border-color: var(--bg); color: var(--brass-2); }
.btn.dark:hover { background: #18221d; border-color: var(--brass); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--brass-2); cursor: pointer;
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* ------------------------------------------------------------ header */

.site-head {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--serif); letter-spacing: 0.3em; text-transform: uppercase; font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 104px 0 96px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg-deep); }
/* Ravensmere Hall itself: the house stands on the right, the title sits in the moonlit sky on the left. */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.motion .hero-bg img { animation: approach 40s ease-in-out infinite alternate; transform-origin: 72% 60%; }
@keyframes approach { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 9, 0.88) 0%, rgba(7, 11, 9, 0.55) 38%, rgba(7, 11, 9, 0.08) 70%, rgba(7, 11, 9, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 11, 9, 0.45) 0%, transparent 25%, transparent 72%, var(--bg) 100%);
}
.mist {
  position: absolute; left: -30%; width: 160%; height: 26%;
  background: radial-gradient(ellipse at center, rgba(214, 222, 212, 0.09), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}
.mist-1 { bottom: 14%; animation: drift 38s ease-in-out infinite alternate; }
.mist-2 { bottom: 4%; height: 20%; animation: drift 52s ease-in-out infinite alternate-reverse; opacity: 0.8; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.hero-inner { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

.hero-copy { max-width: 640px; }
.invitation-line {
  font-family: var(--display); font-style: italic; font-size: clamp(20px, 1.6vw + 10px, 26px);
  color: var(--muted); margin: 0 0 6px;
}
.hero h1 {
  font-size: clamp(50px, 4.6vw + 20px, 92px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin-bottom: 22px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.tagline {
  font-family: var(--display); font-style: italic;
  font-size: clamp(23px, 1.4vw + 14px, 30px); line-height: 1.25;
  margin-bottom: 20px;
}
.tagline span { color: var(--brass-2); }
.lede { color: var(--muted); max-width: 34em; }
.lede em { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--sans); font-size: 14px; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); flex: none; }

/* ------------------------------------------------------------ the trailer */

.trailer { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 120px); background: var(--bg); }
.hero-film { margin: 0 auto; max-width: 1120px; }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(227, 198, 127, 0.5), rgba(201, 165, 91, 0.12) 40%, rgba(201, 165, 91, 0.4));
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(227, 166, 79, 0.25);
}
.film-frame::before {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(227, 198, 127, 0.5); border-radius: 4px; pointer-events: none;
}
.film {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: #050807;
}
.film-open {
  position: absolute; inset: 10px; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: grid; place-items: end start;
}
.film-open-icon {
  margin: 16px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(7, 11, 9, 0.7); border: 1px solid rgba(227, 198, 127, 0.6); color: var(--brass-2);
  opacity: 0.85; transition: opacity 0.2s, transform 0.2s;
}
.film-open:hover .film-open-icon, .film-open:focus-visible .film-open-icon { opacity: 1; transform: scale(1.06); }
.hero-film figcaption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 12px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-family: var(--serif); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-height: 760px), (max-width: 999px) { .scroll-cue { display: none; } }

/* ------------------------------------------------------------ sections */

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .host-copy h2 { font-size: clamp(38px, 3.6vw + 16px, 64px); margin-bottom: 20px; }
.section-head h2 em, .host-copy h2 em { color: var(--brass-2); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05em; }
h3 { font-size: clamp(26px, 1vw + 20px, 32px); margin-bottom: 10px; }

/* ------------------------------------------------------------ host */

.host { background: linear-gradient(180deg, var(--bg) 0%, #111915 100%); }
.host-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .host-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.host-card {
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(32px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(227, 198, 127, 0.1), transparent 60%),
    var(--panel);
}
.host-card::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 165, 91, 0.22); border-radius: 10px; pointer-events: none;
}
.host-photo {
  display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 12%;
  margin-bottom: 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.host-card .eyebrow, .host-card .cecil-quote { padding-inline: clamp(28px, 4.5vw, 52px); }
.cecil-quote { margin: 0; font-family: var(--display); font-size: clamp(28px, 1.6vw + 18px, 38px); line-height: 1.22; }
.cecil-quote p { margin-bottom: 18px; }
.cecil-quote .beat { color: var(--brass-2); font-style: italic; }
.host-copy > p { color: var(--muted); }

.ask { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.ask-label { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; min-height: 40px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed="true"] { border-color: var(--brass); background: rgba(201, 165, 91, 0.12); color: var(--brass-2); }
.ask-answer {
  display: flex; gap: 14px; align-items: flex-start;
  font-family: var(--display); font-style: italic; font-size: clamp(24px, 1vw + 18px, 30px); line-height: 1.25;
  min-height: 2.6em;
}
.ask-mark {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brass);
  display: grid; place-items: center; color: var(--brass-2); font-size: 20px; margin-top: 2px; padding-bottom: 2px;
}
.caret::after { content: ""; display: inline-block; width: 2px; height: 0.9em; background: var(--brass-2); margin-left: 3px; vertical-align: -0.1em; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------ the night */

.night {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(162, 58, 50, 0.1), transparent 55%),
    #111915;
}
.timeline {
  list-style: none; padding: 0; margin: 0 0 clamp(40px, 6vw, 64px);
  display: grid; gap: 30px; position: relative;
}
.timeline li { position: relative; padding-left: 28px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: -30px; width: 1px; background: var(--line);
}
.timeline li:last-child::before { bottom: 0; }
.timeline li::after {
  content: ""; position: absolute; left: -4px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--line);
}
.timeline time {
  display: block; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 3vw + 20px, 58px); line-height: 1;
  color: var(--ink); font-variant-numeric: lining-nums; margin-bottom: 12px;
}
.timeline time small { font-size: 0.42em; margin-left: 3px; color: var(--muted); letter-spacing: 0.05em; }
.timeline p { color: var(--muted); margin: 0; }
.timeline .alone time { color: var(--brass-2); }
.timeline .alone p { color: var(--ink); }
.timeline .alone::after { background: var(--brass); box-shadow: 0 0 12px var(--brass); }
.timeline .gap::before { width: 3px; left: -1px; background: linear-gradient(180deg, var(--brass-2), var(--brass)); box-shadow: 0 0 16px rgba(227, 198, 127, 0.5); }
.gap-label {
  display: block; margin-bottom: 8px;
  font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
}
@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 34px; }
  .timeline li { padding: 30px 28px 0 0; }
  .timeline li::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .timeline li:last-child::before { right: 0; }
  .timeline li::after { left: 0; top: -4px; }
  .timeline .gap::before { height: 3px; top: -1px; left: 0; width: auto; }
  .gap-label { position: absolute; top: -32px; left: 0; margin: 0; }
}

.stills { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); }
@media (min-width: 760px) { .stills { grid-template-columns: 1fr 1fr; } }
.stills figure { margin: 0; }
.stills img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(201, 165, 91, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.stills figcaption { margin-top: 12px; font-family: var(--serif); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.stills figcaption time { color: var(--brass-2); margin-right: 10px; }

.night-foot { display: grid; gap: 28px; align-items: end; }
@media (min-width: 860px) { .night-foot { grid-template-columns: 3fr 2fr; } }
.night-hook { font-family: var(--display); font-size: clamp(28px, 1.6vw + 18px, 40px); line-height: 1.2; margin: 0; }
.night-hook strong { font-weight: 500; font-style: italic; color: var(--brass-2); }
.aside {
  font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--muted);
  border-left: 2px solid var(--brass); padding-left: 18px; margin: 0;
}
.aside span { display: block; margin-top: 8px; font-family: var(--serif); font-style: normal; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }

/* ------------------------------------------------------------ screens */

.screens { background: var(--bg); }
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: clamp(22px, 3vw, 36px);
}
.panel p { color: var(--muted); }

.mock-screen {
  border: 10px solid #050807; border-radius: 14px; background: var(--bg); margin-bottom: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); overflow: hidden; font-family: var(--sans);
}
.ms-top {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.ms-title { font-family: var(--serif); font-style: italic; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-phase { font-family: var(--serif); color: var(--ink); font-size: 13px; }
.ms-clock { color: var(--brass-2); font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 10px; }
.ms-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; padding: 12px; }
.ms-cecil { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.ms-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 6px; }
.ms-line { font-family: var(--display); font-size: 17px; line-height: 1.2; color: var(--ink) !important; border-left: 2px solid var(--brass); padding-left: 9px; margin: 0; }
.ms-seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-family: var(--serif); font-size: 13px; }
.ms-seats li { display: flex; justify-content: space-between; padding: 5px 9px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.ms-seats .whispered { border-color: var(--brass); box-shadow: 0 0 14px rgba(201, 165, 91, 0.35); }
.ms-seats .whispered span { color: var(--brass-2); }
.ms-evidence { grid-column: 1 / -1; display: flex; gap: 6px; }
.ms-evidence span { flex: 1; font-family: var(--serif); font-size: 12px; padding: 8px; border-radius: 6px; background: var(--paper); color: var(--paper-ink); text-align: center; }

.mock-phones { position: relative; height: 262px; margin-bottom: 28px; }
.mp {
  position: absolute; top: 0; width: 44%; max-width: 190px; height: 250px;
  border: 7px solid #050807; border-radius: 26px; background: var(--bg);
  padding: 22px 13px 12px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.9);
  font-family: var(--sans);
}
.mp-1 { left: 0; transform: rotate(-5deg); }
.mp-2 { left: 28%; top: -6px; z-index: 2; transform: rotate(1deg); }
.mp-3 { right: 0; transform: rotate(6deg); }
.mp-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass) !important; font-weight: 700; margin: 0 0 8px; }
.mp .bar { display: block; height: 9px; border-radius: 3px; background: #2c3a33; margin-bottom: 7px; }
.mp .bar + .mp-label { margin-top: 16px; }
.w90 { width: 90%; } .w85 { width: 85%; } .w75 { width: 75%; } .w60 { width: 60%; } .w50 { width: 50%; }
.mp-note {
  font-family: var(--display); font-size: 16px; line-height: 1.22; color: var(--ink) !important;
  border: 1px solid rgba(201, 165, 91, 0.55); background: var(--panel); border-radius: 10px; padding: 10px;
}
.mp-note strong { display: block; margin-top: 6px; color: var(--brass-2); font-weight: 500; font-style: italic; }
.mp-warn {
  font-family: var(--display); font-size: 17px; line-height: 1.2; color: #f6d4cf !important;
  border: 1px solid var(--blood); background: rgba(162, 58, 50, 0.22); border-radius: 10px; padding: 10px;
}

.murderer {
  margin: clamp(40px, 6vw, 72px) auto; max-width: 760px; text-align: center;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius);
  border: 1px solid rgba(162, 58, 50, 0.6);
  background: radial-gradient(ellipse at 50% 0%, rgba(162, 58, 50, 0.25), transparent 70%), rgba(162, 58, 50, 0.06);
}
.murderer-line { font-family: var(--display); font-size: clamp(34px, 2.6vw + 18px, 52px); line-height: 1.05; color: #f3cbc4; margin-bottom: 12px; }
.murderer p:last-child { color: var(--muted); }

.moments { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.moments li { border-top: 1px solid var(--brass); padding-top: 22px; }
.moments p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ the evening */

.evening {
  background:
    linear-gradient(180deg, rgba(14, 20, 17, 0.7) 0%, rgba(17, 25, 21, 0.9) 30%, #111915 55%),
    url("/media/photos/entrance.jpg?v=18b1ca292f") top center / 100% auto no-repeat,
    #111915;
}
.acts { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 18px; }
@media (min-width: 700px) { .acts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .acts { grid-template-columns: repeat(3, 1fr); } }
.acts li {
  position: relative; padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(25, 35, 30, 0.6);
}
.act-num {
  display: block; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--brass);
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.acts p { color: var(--muted); margin: 0; }
.scoring { max-width: 760px; color: var(--muted); border-left: 2px solid var(--brass); padding-left: 18px; }
.scoring strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ mischief */

.mischief {
  background:
    radial-gradient(ellipse at 10% 10%, rgba(227, 198, 127, 0.07), transparent 50%),
    #111915;
}
.cards { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  position: relative;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 6px; padding: 28px 26px 26px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(90, 74, 52, 0.15);
}
.card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--paper-line); border-radius: 3px; pointer-events: none; }
.cards .card:nth-child(odd) { transform: rotate(-0.6deg); }
.cards .card:nth-child(even) { transform: rotate(0.7deg); }
.card h3 { font-size: 28px; color: var(--paper-ink); }
.card-note { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.28; color: var(--paper-muted); margin: 0; }
.mischief-foot { color: var(--muted); font-style: italic; max-width: 760px; }

.fair {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: clamp(28px, 4vw, 52px);
}
@media (min-width: 900px) { .fair { grid-template-columns: 2fr 3fr; } }
.fair-q { font-family: var(--display); font-size: 24px; color: var(--muted); margin-bottom: 10px; }
.fair-a { font-family: var(--display); font-style: italic; font-size: clamp(30px, 1.8vw + 18px, 42px); line-height: 1.15; color: var(--brass-2); }
.fair-copy ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.fair-copy li { color: var(--muted); padding-left: 22px; position: relative; }
.fair-copy li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border: 1.5px solid var(--brass); transform: rotate(45deg); }
.fair-copy strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ guests */

.guests { background: var(--bg); }
.cast { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 22px; }
@media (min-width: 600px) { .cast { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cast { grid-template-columns: repeat(4, 1fr); } }
.cast li { text-align: center; padding: 30px 22px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.cameo {
  display: block; margin: 0 auto 24px; overflow: hidden;
  width: 150px; height: 196px; border-radius: 50%;
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 6px var(--panel), 0 0 0 7px rgba(201, 165, 91, 0.5), 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  background: #0e1411;
}
.cameo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.cast h3 { font-size: 27px; }
.cast p { color: var(--muted); font-size: 0.95em; margin: 0; }
.cast .cast-note { margin-top: 12px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.cast-foot { text-align: center; font-family: var(--display); font-size: clamp(26px, 1.4vw + 18px, 36px); line-height: 1.2; }
.cast-foot em { color: var(--brass-2); }

/* ------------------------------------------------------------ what you need */

.need { background: linear-gradient(180deg, var(--bg) 0%, #111915 100%); }
.envelope { margin: 0 0 clamp(40px, 6vw, 64px); }
.envelope img {
  display: block; width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 58%; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(201, 165, 91, 0.35), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.envelope figcaption { margin-top: 14px; font-family: var(--display); font-size: 24px; color: var(--ink); }
.envelope figcaption em { color: var(--brass-2); }

.need-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
@media (min-width: 640px) { .need-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .need-list { grid-template-columns: repeat(4, 1fr); } }
.need-list svg { width: 48px; height: 48px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.need-list h3 { font-size: 26px; }
.need-list h3 small { font-size: 0.6em; color: var(--muted); font-style: italic; }
.need-list p { color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ the invitation */

.invite {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(227, 166, 79, 0.14), transparent 60%),
    linear-gradient(180deg, #0a0f0d 0%, rgba(10, 15, 13, 0.55) 30%, rgba(10, 15, 13, 0.55) 70%, #0a0f0d 100%),
    url("/media/photos/dining.jpg?v=5200a0ab9a") center / cover no-repeat,
    #0a0f0d;
  scroll-margin-top: 0;
}
.invite-card {
  max-width: 680px; margin: 0 auto;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 6px; padding: 12px;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(201, 165, 91, 0.4);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(201, 165, 91, 0.18), transparent 55%);
}
.invite-inner {
  border: 1px solid var(--paper-line); outline: 1px solid var(--paper-line); outline-offset: -7px;
  border-radius: 3px; padding: clamp(32px, 6vw, 60px) clamp(22px, 6vw, 60px) clamp(28px, 5vw, 44px);
  text-align: center;
}
.invite .monogram { margin-bottom: 18px; }
.invite .eyebrow { color: #74572b; }
.invite h2 { font-size: clamp(40px, 3vw + 22px, 60px); color: var(--paper-ink); margin-bottom: 14px; }
.invite-lede { font-family: var(--display); font-style: italic; font-size: clamp(22px, 1vw + 16px, 26px); line-height: 1.3; color: var(--paper-muted); max-width: 26em; margin: 0 auto 30px; }

.invite-form { text-align: left; display: grid; gap: 18px; max-width: 460px; margin: 0 auto; }
.field label { display: block; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--paper-ink); margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--paper-muted); margin-left: 4px; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font-family: var(--serif); font-size: 19px; color: var(--paper-ink);
  background: #fffaf0; border: 1px solid var(--paper-line); border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #9b8b70; }
.field input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(201, 165, 91, 0.3); }
.field input[aria-invalid="true"] { border-color: var(--paper-error); box-shadow: 0 0 0 3px rgba(143, 42, 34, 0.15); }
.field-msg { min-height: 0; margin: 8px 0 0; font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--paper-error); }
.field-msg:empty { margin: 0; }
.field-msg.hint { color: var(--paper-muted); }
.field-msg button { font-family: inherit; font-size: inherit; color: var(--paper-ink); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.invite-form .btn { width: 100%; margin-top: 4px; }
.invite .btn:focus-visible, .invite a:focus-visible, .invite input:focus-visible, .invite .link-btn:focus-visible { outline-color: var(--paper-ink); }
.form-status { margin: 0; font-family: var(--sans); font-size: 14px; color: var(--paper-error); text-align: center; }
.form-status:empty { display: none; }

.preview-note { margin: 0; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--paper-muted); text-align: center; font-style: italic; }
.invite-done .preview-note { margin-top: 14px; }

.promise { margin: 28px auto 0; max-width: 460px; font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--paper-muted); }

.invite-done { outline: none; }
.invite.is-done .invite-lede { display: none; }
.seal {
  width: 92px; height: 92px; margin: 6px auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c9534a, #8e2a22 60%, #6d1d17);
  box-shadow: 0 10px 24px -6px rgba(109, 29, 23, 0.7), inset 0 -4px 10px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(255, 255, 255, 0.2);
  color: #f6d4cf; font-family: var(--display); font-style: italic; font-size: 48px; padding-bottom: 4px;
}
.seal span { width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid rgba(246, 212, 207, 0.5); display: grid; place-items: center; }
.motion .invite-done:not([hidden]) .seal { animation: press 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes press { from { transform: scale(1.6) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.invite-done h3 { font-size: clamp(34px, 2vw + 22px, 46px); color: var(--paper-ink); }
.done-msg { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--paper-muted); max-width: 24em; margin: 8px auto 6px; }
.done-sign { font-family: var(--serif); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: #74572b; }
.share { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--paper-line); }
.share p { font-family: var(--sans); font-size: 15px; color: var(--paper-muted); margin-bottom: 12px; }
.share-status { margin: 10px 0 0 !important; min-height: 1.4em; }

/* ------------------------------------------------------------ questions */

.faq { background: #0a0f0d; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-family: var(--display); font-size: clamp(24px, 1vw + 18px, 29px); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq summary:hover { color: var(--brass-2); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; }

/* ------------------------------------------------------------ footer */

.site-foot { padding: 64px 0 calc(96px + env(safe-area-inset-bottom)); background: var(--bg-deep); border-top: 1px solid var(--line); }
.foot-inner { display: grid; justify-items: center; text-align: center; gap: 12px; }
.foot-title { font-family: var(--display); font-size: 26px; margin: 6px 0 0; }
.foot-line { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--muted); margin: 0; }
.foot-small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------ floating call to action */

.float-cta {
  position: fixed; z-index: 20;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  padding: 13px 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: #1d160c;
  font-family: var(--sans); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(29, 22, 12, 0.3);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.float-cta.show { transform: translate(-50%, 0); }
@media (min-width: 900px) { .float-cta { left: auto; right: 28px; transform: translateY(140%); } .float-cta.show { transform: none; } }

/* ------------------------------------------------------------ trailer dialog */

.trailer-dialog {
  width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 1px solid rgba(201, 165, 91, 0.5); border-radius: 10px;
  background: #050807; color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
}
.trailer-dialog::backdrop { background: rgba(3, 5, 4, 0.86); backdrop-filter: blur(6px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; }
.dialog-head h2 { font-size: 22px; font-style: italic; }
.dialog-close {
  background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: 8px 16px; min-height: 40px; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.dialog-close:hover { border-color: var(--brass); }
.dialog-video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.dialog-note { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 10px 20px 14px; margin: 0; }

/* ------------------------------------------------------------ scroll reveals (only when motion is welcome) */

.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .cards .card.reveal.in:nth-child(odd) { transform: rotate(-0.6deg); }
.motion .cards .card.reveal.in:nth-child(even) { transform: rotate(0.7deg); }

@media (prefers-reduced-motion: reduce) {
  .mist, .scroll-cue svg, .caret::after { animation: none !important; }
  .btn, .float-cta, .film-open-icon { transition: none; }
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 999px) {
  .hero { padding-top: 92px; align-items: end; }
  .hero-bg img { object-position: 64% 50%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(7, 11, 9, 0.55) 0%, rgba(7, 11, 9, 0.35) 30%, rgba(7, 11, 9, 0.8) 62%, var(--bg) 100%);
  }
  .hero-copy { max-width: none; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .ms-body { grid-template-columns: 1fr; }
  .ms-seats { grid-template-columns: 1fr 1fr; }
  /* Two phones read better than three at this width. */
  .mock-phones { height: 232px; }
  .mp { height: 222px; width: 50%; max-width: none; padding: 20px 11px 11px; }
  .mp-1 { display: none; }
  .mp-2 { left: 0; top: 0; transform: rotate(-3deg); }
  .mp-3 { right: 0; top: 8px; transform: rotate(4deg); }
  .mp-note, .mp-warn { font-size: 15px; }
  .faq summary { padding-right: 36px; }
  .faq details p { padding-right: 0; }
}

/* ------------------------------------------------------------ plain pages (form fallback, 404) */

.notice-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 30%, rgba(227, 166, 79, 0.12), transparent 60%), var(--bg); }
.notice { max-width: 520px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.notice h1 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 8px; }
.notice p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }
.notice .monogram { margin-bottom: 18px; }

/* ------------------------------------------------------------ admin */

.admin-page { background: var(--bg); }
.admin { max-width: 1100px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.admin-head h1 { font-size: clamp(32px, 4vw, 48px); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--brass); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--panel); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td:nth-child(2) { color: var(--ink); }
.admin-table td { color: var(--muted); }
.admin-empty, .admin-pages { font-family: var(--sans); color: var(--muted); margin-top: 20px; }
.admin-pages a { margin: 0 8px; }
