:root {
  --bg: #0d0a0b;
  --bg-2: #160f11;
  --wine: #5e0f1d;
  --wine-2: #8d1a2c;
  --gold: #d7b88a;
  --gold-2: #f0dcb8;
  --ink: #f3ece4;
  --ink-soft: #b9aea4;
  --ink-faint: #7d726b;
  --line: rgba(215, 184, 138, .26);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(141, 26, 44, .38), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(94, 15, 29, .25), transparent 70%),
    var(--bg);
  color: var(--ink); font: 300 17px/1.6 var(--sans);
  overflow-x: hidden;
}
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07;
  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");
}
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }
h2 { font-size: clamp(2.3rem, 9vw, 3.6rem); text-align: center; }
h2 em, .big em, .title em { color: var(--gold); }
.eyebrow { font: 500 .7rem/1.6 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  background: rgba(13, 10, 11, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 184, 138, .1);
}
.mono { font: italic 500 1.25rem var(--serif); text-decoration: none; color: var(--gold); letter-spacing: .04em; }
.ig { font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 20px 56px; position: relative;
}
.title { font-size: clamp(3.3rem, 17vw, 8.5rem); letter-spacing: -.01em; display: flex; flex-direction: column; align-items: center; }
.title span { font-size: .5em; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; margin-bottom: .08em; color: var(--ink); }
.title em {
  background: linear-gradient(100deg, #b8925f 0%, var(--gold-2) 30%, #c79e69 52%, #f6e6c6 70%, #b28a56 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
  padding: 0 .06em .08em;
}
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.tagline { font: italic 400 clamp(1.3rem, 5.4vw, 1.9rem) var(--serif); margin: 14px 0 0; color: var(--ink); }

.stamp { width: min(46vw, 190px); color: var(--wine-2); margin: 34px 0 30px; transform: rotate(-12deg); opacity: .95; }
.stamp text { fill: currentColor; font-family: var(--sans); font-weight: 600; }
.stamp__big { font: italic 500 46px var(--serif) !important; fill: var(--gold) !important; }
.stamp__small { font-size: 10px; letter-spacing: 4px; }
.stamp__spin { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .stamp { animation: thud .9s cubic-bezier(.2, 1.6, .4, 1) .5s both; }
@keyframes thud { from { transform: rotate(-30deg) scale(1.9); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: .95; } }

.hero__cta { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: 500 .82rem var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--wine-2); color: var(--ink); border: 1px solid #a52a3d; box-shadow: 0 10px 30px -10px rgba(141, 26, 44, .8); }
.btn--solid:hover { background: #a01f33; }
.btn--line { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--gold); }
.btn--big { width: 100%; min-height: 60px; font-size: .95rem; }

/* ---------- manifesto ---------- */
.manifesto { max-width: 34rem; margin: 0 auto; padding: 40px 24px 70px; text-align: center; }
.manifesto .big { font: 400 clamp(2rem, 8.4vw, 3rem)/1.12 var(--serif); margin: 0 0 26px; }
.manifesto p { color: var(--ink-soft); margin: 0 0 18px; }
.manifesto .obey { font: italic 400 1.45rem var(--serif); color: var(--ink); margin-top: 26px; }
.sig { font: italic 400 1.6rem var(--serif); color: var(--gold) !important; margin-top: 10px !important; }
.sig::before { content: "— "; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: rgba(94, 15, 29, .14); }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font: italic 400 1.25rem var(--serif); white-space: nowrap; padding: 0 22px; color: var(--ink); }
.ticker span::after { content: "✕"; font: 400 .7rem var(--sans); color: var(--wine-2); margin-left: 44px; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- how ---------- */
.how { padding: 84px 20px 40px; max-width: 46rem; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
.steps li { position: relative; padding: 28px 24px 26px 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)); }
.num { font: italic 400 3.4rem/1 var(--serif); color: var(--wine-2); position: absolute; top: 14px; right: 20px; opacity: .9; }
.steps h3 { font-size: 1.9rem; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- rules ---------- */
.rules { max-width: 40rem; margin: 40px auto 0; padding: 40px 24px 60px; }
.rules h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 26px; }
.rules ul { list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.rules b { font: italic 400 1.3rem/1.2 var(--serif); color: var(--gold); min-width: 1ch; }

/* ---------- confession form ---------- */
.confess { max-width: 36rem; margin: 0 auto; padding: 70px 18px 90px; }
.confess__head { text-align: center; margin-bottom: 30px; }
.lede { color: var(--ink-soft); margin: 14px auto 0; max-width: 28rem; }
.form fieldset { border: 1px solid var(--line); margin: 0 0 16px; padding: 22px 18px 8px; min-width: 0; background: rgba(22, 15, 17, .72); }
.form legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font: italic 400 1.5rem/1.2 var(--serif); color: var(--gold-2); }
.form legend + * { clear: both; }
.f { display: block; margin: 0 0 16px; }
.f > span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.f input, .f textarea, .f select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(215, 184, 138, .22); border-radius: 2px; transition: border-color .2s, box-shadow .2s;
}
.f textarea { resize: vertical; min-height: 92px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.f select option { background: var(--bg-2); }
.f input::placeholder, .f textarea::placeholder { color: #6d625c; }
.f input:focus, .f textarea:focus, .f select:focus, .slider input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215, 184, 138, .16); }
.f input[aria-invalid="true"] { border-color: #c4485a; }
.row { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }

.check { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; color: var(--ink-soft); font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--wine-2); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 18px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink-soft); transition: all .2s; user-select: none; }
.chips input:checked + span { background: var(--wine-2); border-color: #b23246; color: var(--ink); }
.chips input:checked + span::before { content: "✓"; margin-right: 7px; font-size: .8rem; }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(215, 184, 138, .3); }

.slider { padding: 10px 2px 16px; }
.slider input { width: 100%; height: 34px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--line), var(--wine-2)); }
.slider input::-moz-range-track { height: 3px; background: linear-gradient(90deg, var(--line), var(--wine-2)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12.5px; border-radius: 50%; background: var(--gold); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.slider__ends { display: flex; justify-content: space-between; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }
.slider__out { display: block; text-align: center; font: italic 400 1.6rem var(--serif); color: var(--gold-2); margin-top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: rgba(196, 72, 90, .14); border: 1px solid rgba(196, 72, 90, .5); color: #f2c5cc; padding: 12px 14px; margin: 0 0 14px; font-size: .95rem; }
.fine { text-align: center; color: var(--ink-faint); font-size: .85rem; margin: 14px 0 0; }
.form.sending button { opacity: .6; pointer-events: none; }

.thanks { text-align: center; padding: 30px 6px 10px; outline: none; }
.thanks__stamp { width: 170px; color: var(--wine-2); transform: rotate(-9deg); margin-bottom: 26px; }
.thanks__stamp text { fill: currentColor; font-family: var(--sans); font-weight: 600; }
.thanks:not([hidden]) .thanks__stamp { animation: thud2 .8s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes thud2 { from { transform: rotate(-30deg) scale(2); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
.thanks h2 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
.thanks .lede { margin-bottom: 30px; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 60px 20px calc(100px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-soft); }
.foot__line { font: 400 1.5rem/1.3 var(--serif); color: var(--ink); margin: 0 0 22px; }
.foot__line em { color: var(--gold); }
.foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot__small { font-size: .75rem; color: var(--ink-faint); letter-spacing: .1em; }

/* ---------- floating button ---------- */
.float {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1);
  background: var(--wine-2); color: var(--ink); text-decoration: none; border: 1px solid #b23246;
  font: 500 .8rem var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8);
}
.float.on { transform: translate(-50%, 0); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (min-width: 760px) {
  .hero__cta { flex-direction: row; max-width: none; justify-content: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .float { display: none; }
}

/* keep anchored sections clear of the fixed top bar */
[id], .thanks { scroll-margin-top: 76px; }

/* ---------- whip cursor (desktop) and crack ---------- */
@media (hover: hover) and (pointer: fine) {
  html, a, button, label, select, input[type="range"], input[type="checkbox"], .chips span, .chips input, .btn, .float, .sound, .check {
    cursor: url("/whip.svg") 2 2, auto;
  }
  html.snap, html.snap a, html.snap button, html.snap label, html.snap select, html.snap .btn, html.snap .chips span, html.snap .chips input { cursor: url("/whip-snap.svg") 2 2, auto; }
  input:not([type="range"]):not([type="checkbox"]), textarea { cursor: text; }
}
.crack { position: fixed; z-index: 100; width: 84px; height: 84px; margin: -42px 0 0 -42px; pointer-events: none; color: var(--gold-2); }
.crack svg { width: 100%; height: 100%; overflow: visible; }
.crack .ring { transform-origin: 42px 42px; animation: crackRing .42s cubic-bezier(.1, .8, .3, 1) forwards; }
.crack .rays { stroke-dasharray: 14; stroke-dashoffset: 14; transform-origin: 42px 42px; animation: crackRays .38s cubic-bezier(.1, .9, .3, 1) forwards; }
@keyframes crackRing { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@keyframes crackRays { 0% { stroke-dashoffset: 14; opacity: 1; transform: scale(.5); } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -14; opacity: 0; transform: scale(1.15); } }
.form button.cracked, [data-submit].cracked { animation: jolt .28s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes jolt { 0% { transform: translateX(0); } 30% { transform: translateX(-5px) rotate(-.6deg); } 60% { transform: translateX(3px); } 100% { transform: none; } }

.sound { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
  font: 500 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 7px 11px; min-height: 34px; }
.sound svg { width: 15px; height: 15px; }
.sound[aria-pressed="false"] .on, .sound[aria-pressed="true"] .off { display: none; }
.top__right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 380px) { .sound .lbl { display: none; } }

/* ---------- booking links ---------- */
.book-line { margin: 16px 0 0; font-size: .95rem; color: var(--ink-soft); }
.book-line a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; white-space: nowrap; }
.book-line a::after { content: " →"; }
.thanks__actions { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }

/* ---------- /call ---------- */
.call { max-width: 36rem; margin: 0 auto; padding: 110px 18px 80px; }
.call__head { text-align: center; margin-bottom: 34px; }
.call__head h1 { font-size: clamp(2.5rem, 11vw, 3.8rem); }
.call__head h1 em { color: var(--gold); }
.call__head .lede b { color: var(--ink); font-weight: 500; }
.call__step { font: italic 400 1.5rem var(--serif); text-align: left; color: var(--gold-2); margin: 26px 0 14px; display: flex; align-items: baseline; gap: 12px; }
.call__step span { font-style: italic; color: var(--wine-2); font-size: 1.9rem; }
.muted { color: var(--ink-faint); }
.muted a { color: var(--gold); }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.day { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; padding: 10px 8px;
  background: rgba(22, 15, 17, .72); border: 1px solid var(--line); color: var(--ink); border-radius: 2px; font: 400 .9rem var(--sans); }
.day__w { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.day__n { font: italic 400 1.15rem var(--serif); }
.day[aria-pressed="true"] { background: var(--wine-2); border-color: #b23246; }
.day[aria-pressed="true"] .day__w { color: var(--ink); }
.day:disabled { opacity: .35; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .times { grid-template-columns: repeat(4, 1fr); } }
.time { min-height: 48px; background: transparent; border: 1px solid var(--line); color: var(--gold-2); font: 500 1rem var(--sans); border-radius: 2px; transition: background .2s, border-color .2s; }
.time:hover:not(:disabled) { border-color: var(--gold); background: rgba(215, 184, 138, .08); }
.time:disabled { color: #5a504b; text-decoration: line-through; border-style: dashed; }
.chosen { font: italic 400 1.35rem var(--serif); color: var(--ink); margin: 0 0 18px; }
.chips--radio input:checked + span::before { content: "●"; font-size: .6rem; }
.fine a { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .day, .time, .chips--radio label { cursor: url("/whip.svg") 2 2, auto; } .day:disabled, .time:disabled { cursor: not-allowed; } }
.days::-webkit-scrollbar { display: none; }
