:root {
  --paper: #f4efe4;
  --paper-2: #fffdf8;
  --ink: #1c2430;
  --ink-soft: #3a4454;
  --mute: #6b7380;
  --line: #d7cfc0;
  --navy: #16324f;
  --lake: #2c6b68;
  --coral: #d4532b;
  --coral-d: #b03f1d;
  --sand: #e7d3a8;
  --stamp: #9c2f3b;
  --live: #1f7a4d;
  --shadow: 0 14px 40px rgba(28, 36, 48, 0.12);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --read: "Literata", "Georgia", serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 83, 43, 0.06), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(44, 107, 104, 0.08), transparent 26%),
    var(--paper);
  font-family: var(--read);
  font-size: 1.05rem;
  line-height: 1.75;
  padding-bottom: 92px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: #f0c9b6; color: var(--ink); }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 80;
  background: var(--coral);
  color: #fff;
  padding: 8px 12px;
}
.skip:focus { left: 10px; }

.tape {
  background: var(--navy);
  color: #f7f1e6;
  overflow: hidden;
  border-bottom: 3px solid var(--coral);
}
.tape-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  padding: 0.55rem 0;
  animation: drift 38s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tape b { color: var(--sand); font-weight: 600; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--sand);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand small {
  display: block;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.desk-nav { display: flex; align-items: center; gap: 18px; }
.desk-nav a {
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.desk-nav a:hover { color: var(--coral); }

.cta-pair { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-in {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212, 83, 43, 0.28);
  animation: pulse 2.4s ease-in-out infinite;
}
.btn-join {
  background: var(--navy);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(212, 83, 43, 0.25); }
  50% { box-shadow: 0 8px 28px rgba(212, 83, 43, 0.5); }
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy h1 {
  margin: 10px 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--lake);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: .35; } }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }

.stamp-card {
  background: var(--navy);
  color: #f6efe3;
  border-radius: 22px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.stamp-card::after {
  content: "CB";
  position: absolute;
  right: -8px;
  bottom: -18px;
  font-family: var(--display);
  font-size: 8rem;
  opacity: 0.08;
  line-height: 1;
}
.slide-stage { position: relative; min-height: 168px; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.slide.on { opacity: 1; transform: none; }
.slide h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.slide p { margin: 0; color: #d7cbb8; }
.pips { display: flex; gap: 6px; margin: 18px 0 20px; }
.pips button {
  width: 22px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.25);
  padding: 0;
}
.pips button.on { background: var(--sand); }

.live-box {
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(231, 211, 168, .45);
  border-radius: 14px;
  padding: 12px 14px;
}
.live-box span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--sand);
  margin-bottom: 4px;
}
.live-box strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.crumbs {
  width: min(var(--max), calc(100% - 32px));
  margin: 26px auto 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mute);
}
.crumbs a { color: var(--lake); text-decoration: none; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.article {
  margin-top: 42px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.article h2 {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.article h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  margin-top: 1.6rem;
}
.article p { color: var(--ink-soft); }
.article ul { padding-left: 1.15rem; color: var(--ink-soft); }
.article li { margin: 0.4rem 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px;
}
.step em {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  color: var(--coral);
  margin-bottom: 6px;
}
.step b {
  display: block;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.rail {
  display: flex;
  gap: 14px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 18px 0 6px;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #cfc6b6; border-radius: 99px; }
.ticket {
  min-width: min(280px, 84vw);
  scroll-snap-align: start;
  background: linear-gradient(180deg, #fff, #f7f1e6);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  position: relative;
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ticket::before { left: -8px; top: 42%; }
.ticket::after { right: -8px; top: 42%; }
.ticket h3 { margin: 0 0 8px; font-family: var(--display); }
.ticket p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.review {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}
.score {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 8px solid var(--sand);
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
}
.score b {
  font-family: var(--display);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
}
.stars { color: var(--coral); letter-spacing: 2px; }

.event {
  margin-top: 42px;
  background: #16324f;
  color: #f6efe3;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.event h2 { margin: 0 0 8px; font-family: var(--display); letter-spacing: -0.03em; }
.event p { margin: 0; color: #d5cbb8; }
.when {
  font-family: var(--mono);
  font-size: 0.78rem;
  border: 1px dashed rgba(231,211,168,.4);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 210px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.faq p { margin: 8px 0 4px; }

.langs {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.langs a { text-decoration: none; color: var(--mute); }
.langs a[aria-current="page"] { color: var(--coral); font-weight: 700; }
.top .langs a { color: var(--ink-soft); }

.foot {
  margin-top: 56px;
  background: var(--ink);
  color: #d8d2c6;
  padding: 36px 0 160px;
}
.foot-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.foot h3 { font-family: var(--display); color: #fff; margin: 0 0 10px; }
.foot a { color: #e7d3a8; text-decoration: none; }
.fine { font-size: 0.88rem; color: #b7b1a6; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(28, 36, 48, 0.94);
  backdrop-filter: blur(8px);
}
.dock .btn { flex: 1; }

@media (max-width: 900px) {
  .desk-nav { display: none; }
  .desk-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 34px);
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .burger { display: inline-flex; }
  .top-row { position: relative; }
  .hero, .review, .event, .foot-grid, .steps { grid-template-columns: 1fr; }
  .cta-pair { margin-left: auto; }
  .top .cta-pair .btn { display: none; }
  .brand small { display: none; }
  .top .langs { display: none; }
  .score { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track, .btn-in, .dot { animation: none; }
  html { scroll-behavior: auto; }
}
