:root {
  --midnight: #0F1523;
  --amber: #F5A623;
  --ivory: #F5F4F0;
  --text: #1A1A2E;
  --muted: rgba(26, 26, 46, .55);
  --line: rgba(26, 26, 46, .12);
  --accent: var(--amber);
  --paper: var(--ivory);
  --ink: var(--text);
  --panel: #2A2420;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --measure: 40rem;
  --wide: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .4rem .6rem; z-index: 5; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 6vw;
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand span { font-style: italic; color: var(--accent); }
.langs { display: flex; gap: .9rem; }
.langs a {
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.langs a.is-on { color: var(--ink); }

.kicker {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 16ch;
}
.display em { font-style: italic; color: var(--accent); }
.display-sm { font-size: clamp(2rem, 4vw, 3.2rem); }
.lede {
  max-width: var(--measure);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 1.4rem;
}
.fine { color: var(--muted); font-size: .92rem; margin-top: 1rem; }
.prose { max-width: 38rem; font-size: 1.2rem; }

.intro, .stories, .index, .hero, .sample, .start, .done {
  padding: 4.5rem 6vw;
}
.intro { min-height: calc(100vh - 4rem); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.scroll-cue {
  margin-top: 3rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  text-decoration: none;
  color: var(--accent);
}
.page-home .scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 3.2rem;
  margin-top: .7rem;
  background: var(--accent);
  transform-origin: top;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.story { max-width: 40rem; padding: 3.2rem 0; border-top: 1px solid var(--line); }
.story-place {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.story h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}

.rooms { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.room-link {
  display: grid;
  grid-template-columns: 4rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.room-link:hover .room-name { color: var(--accent); }
.room-no {
  grid-row: span 2;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.1rem;
}
.room-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1;
}
.room-promise { color: var(--muted); font-weight: 300; }
.index-tight { padding-top: 0; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4vw;
  align-items: end;
  min-height: 78vh;
}
.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  min-height: 18rem;
  background: color-mix(in srgb, var(--accent) 18%, var(--paper));
}
.hero-photo img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
  transform: scale(1.08);
}
.horizon {
  margin-top: 2rem;
  height: 1px;
  width: min(100%, 28rem);
  background: linear-gradient(90deg, var(--accent), transparent);
}

.sample h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 22ch;
  margin-bottom: 1rem;
}
.bars { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 32rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.bar-track { height: 2px; background: var(--line); margin: .45rem 0 1.1rem; }
.bar-fill { height: 100%; background: var(--accent); }

.breath {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  min-height: 16rem;
  background: var(--panel);
  color: #F4EDE6;
}
.breath h2, .breath p { padding-right: 1.5rem; }
.breath > div:first-child { padding: 2rem; }
.breath-quiet { background: color-mix(in srgb, var(--accent) 55%, var(--panel)); }
.room-breath .sample > .kicker { margin-bottom: 1rem; }

.join, .margin-layout {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 2.5rem;
  align-items: start;
}
.join-aside, .margin-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--accent);
  border-top: 1px solid var(--accent);
  padding-top: 1rem;
}
.giant {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: .8;
  color: var(--accent);
  letter-spacing: -.05em;
}
.beats { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 40rem; }
.beats li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.beats span { color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; max-width: 40rem; }
.split p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.35;
}
.sample-narrow, .room-narrow .hero-copy { max-width: 34rem; }
.room-narrow .lede, .room-narrow .prose { max-width: 32rem; }
.grow-line {
  width: 1px;
  height: 8rem;
  margin-top: 2rem;
  background: var(--accent);
  transform-origin: top;
}
@supports (animation-timeline: view()) {
  .grow-line {
    animation: grow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 70%;
  }
  @keyframes grow { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
}

.start { border-top: 1px solid var(--line); }
.start-form { display: grid; gap: 1rem; max-width: 26rem; }
.start-form label { display: grid; gap: .35rem; }
.start-form span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.start-form input[type="text"],
.start-form input[type="email"] {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .7rem 0;
  outline: none;
}
.start-form input:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.errorlist { list-style: none; margin: .2rem 0 0; padding: 0; color: #9a3412; font-size: .85rem; }

.btn {
  display: inline-block;
  background: var(--midnight);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.4rem;
  cursor: pointer;
  letter-spacing: .04em;
}
.btn:hover { background: var(--accent); color: var(--midnight); }
.btn:disabled { opacity: .35; cursor: default; }
.text-btn {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  padding: .85rem 0;
}
.text-btn:disabled { opacity: .3; }

.room-test { min-height: 100vh; }
.test-kicker {
  padding: 0 6vw;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--accent);
}
.progress { height: 2px; margin: .8rem 6vw 0; background: var(--line); }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .45s cubic-bezier(.4,0,.2,1); }
.app, .fallback { padding: 8vh 6vw 4rem; max-width: 46rem; }
.ask-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: .4rem 0 1.6rem;
}
.options { display: grid; gap: .7rem; }
.option {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .85rem 1.1rem;
  cursor: pointer;
}
.option .tick {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  border: 1px solid var(--muted);
  flex: none;
}
.option.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.option.is-on .tick { background: var(--accent); border-color: var(--accent); }
.option.is-dim { opacity: .45; }
.option:hover { border-color: var(--accent); }
.hint { height: 2px; background: var(--line); margin: 1.2rem 0; }
.hint span { display: block; height: 100%; width: 0; background: var(--accent); }
.test-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; }
.cheer-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  max-width: 20ch;
}
.fallback[hidden], .app[hidden], [hidden] { display: none !important; }
.fallback .option { border-radius: 12px; }
.fallback input { accent-color: var(--accent); }

.done .score-list { list-style: none; padding: 2rem 0 0; margin: 0; max-width: 36rem; }
.colophon { padding: 2rem 6vw 3rem; color: var(--muted); }
.colophon a { color: var(--muted); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .hero, .breath, .join, .margin-layout, .split, .beats li { grid-template-columns: 1fr; }
  .hero-photo img { height: 16rem; }
  .intro { min-height: auto; padding-top: 18vh; }
  .room-link { grid-template-columns: 1fr; }
  .room-no { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .page-home .scroll-cue::after, .grow-line { animation: none; }
  .progress > div, .hero-photo img { transition: none; }
}
