/* ==========================================================================
   Music for Noisy Places design system
   Derived from the app: warm marble whites, shafts of light, a high-contrast
   old-style serif with an italic accent, letterspaced small-cap eyebrows,
   and one accent colour per space.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper:        #F7F4EF;
  --paper-warm:   #F1ECE4;
  --paper-deep:   #E7E0D5;
  --stone:        #1B1917;

  /* Ink */
  --ink:          #1A1815;
  --ink-soft:     #514B44;
  --ink-mute:     #8B8277;
  --ink-faint:    #A9A096;
  --on-dark:      #F4F1EC;
  --on-dark-soft: rgba(244, 241, 236, 0.66);

  /* Lines */
  --line:         rgba(26, 24, 21, 0.13);
  --line-soft:    rgba(26, 24, 21, 0.07);
  --line-dark:    rgba(244, 241, 236, 0.18);

  /* Space accents */
  --bamboo:  #5B7A57;
  --baths:   #47596C;
  --temple:  #B9834A;
  --dunes:   #B47A52;
  --aurora:  #4C7C75;

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --measure: 62ch;
  --section: clamp(6rem, 13vh, 11rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.72;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- type scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0;
}
.display em { font-style: italic; }

h2.display { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
h3.display { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.6rem;
  display: block;
}
.eyebrow--light { color: var(--on-dark-soft); }
.eyebrow--mark::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  background: currentColor;
  margin-right: 0.9em;
  vertical-align: 0.22em;
  opacity: 0.85;
}

.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46ch;
}

p { max-width: var(--measure); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

section { padding-block: var(--section); }

.rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2.1em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--on-dark); color: var(--stone); border-color: var(--on-dark); }
.btn--light:hover { background: transparent; color: var(--on-dark); }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem 0.85rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.appstore:hover { opacity: 0.82; transform: translateY(-1px); }
.appstore svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.appstore span { display: block; line-height: 1.15; }
.appstore .as-sm {
  font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.72; font-weight: 400;
}
.appstore .as-lg { font-size: 1.0625rem; font-weight: 400; letter-spacing: 0.005em; }
.appstore--light { background: var(--on-dark); color: var(--stone); border-color: transparent; }

.note-soon {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.15rem 0 0;
}
.note-soon--light { color: var(--on-dark-soft); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gutter);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
  padding-block: 1.05rem;
}
.brand {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.site-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 720px) { .site-nav .nav-hide { display: none; } }
@media (max-width: 560px) {
  .site-header { gap: 1rem; padding-inline: 1.25rem; }
  .brand { font-size: 0.625rem; letter-spacing: 0.17em; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: 0.6875rem; letter-spacing: 0.1em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* Bottom padding reserves room for the scroll hint below the signup. */
  padding: 8rem var(--gutter) 7rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -8% 0 -8%;
  z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Framed so the closed door at the end of the hall sits behind the CTA. */
  object-position: center 70%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(115% 70% at 50% 36%, rgba(255,253,250,0.16) 0%, rgba(250,247,242,0.5) 52%, rgba(244,240,233,0.76) 100%),
    linear-gradient(to bottom, rgba(247,244,239,0.42) 0%, rgba(247,244,239,0) 26%, rgba(247,244,239,0.22) 82%, var(--paper) 100%);
}
.hero__inner { text-align: center; max-width: 40rem; }
.hero__inner .eyebrow {
  font-size: clamp(0.9375rem, 0.85rem + 0.5vw, 1.1875rem);
  margin-bottom: 0.9rem;
}
.hero__lockup {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.25rem, 1.6rem + 7.4vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 0 0 1.9rem;
  color: var(--ink);
}
.hero__lockup em { display: block; font-style: italic; }
.hero__sub {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-soft);
}
.hero__cta { margin-top: 2.6rem; }

/* Short laptop windows: tighten the hero so the signup stays above the fold. */
@media (max-height: 900px) {
  .hero { padding-top: 6.5rem; padding-bottom: 5.5rem; }
  .hero__notify { margin-top: 1.5rem; }
  .hero__cta { margin-top: 1.8rem; }
  .note-soon { margin-top: 0.9rem; }
}
.scroll-hint {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 46px;
  margin: 0.9rem auto 0;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: drift 3.4s var(--ease) infinite;
}
@keyframes drift {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 0.9;  transform: scaleY(1);   transform-origin: top; }
}

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .display { margin-inline: auto; max-width: 18ch; }
.manifesto p { margin-inline: auto; text-align: center; }
.manifesto .lede { margin-top: 2rem; max-width: 44ch; }

.play { background: var(--paper-warm); }
.play__photo { max-width: 460px; margin-inline: auto; }
.play__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(26, 24, 21, 0.45);
}

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.6rem);
  margin-top: clamp(4rem, 8vh, 6rem);
  text-align: left;
  border-top: 1px solid var(--line-soft);
  padding-top: 3rem;
}
.claim h4 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}
.claim p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34ch;
  text-align: left;
}

/* ---------- spaces ---------- */
.spaces { background: var(--paper-warm); }
/* Tighter than the other section heads: this one ends on the small dial
   line rather than a display heading, so it needs less air under it. */
.spaces__head { max-width: 40rem; margin-bottom: clamp(1.9rem, 3.4vh, 2.6rem); }

/* The dial every room runs along, said once here instead of on each card. */
.spaces__dial {
  margin: 1.35rem 0 0;
  font-size: clamp(0.9375rem, 0.89rem + 0.24vw, 1.0625rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.space {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  border-radius: 3px;
  isolation: isolate;
  background: var(--paper-deep);
}
.space img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
  filter: saturate(0.94);
}
.space:hover img { transform: scale(1.1); filter: saturate(1.04); }
.space::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,10,0.7) 0%, rgba(12,11,10,0.18) 42%, rgba(12,11,10,0.05) 70%);
}
.space__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.9rem 1.6rem 1.75rem;
  color: var(--on-dark);
}
.space__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}
.space__meta {
  font-size: 0.75rem;
  color: var(--on-dark-soft);
  margin: 0.55rem 0 0;
  max-width: none;
}
.space__free {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  z-index: 2;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  background: rgba(247,244,239,0.92);
  padding: 0.45em 0.85em;
  border-radius: 999px;
}
.space__play {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  z-index: 3;
  width: 2.6rem; height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(244, 241, 236, 0.45);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.32);
  color: var(--on-dark);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease), transform 0.35s var(--ease);
}
.space__play svg { width: 0.85rem; height: 0.85rem; display: block; fill: currentColor; }
.space__play .ic-play { margin-left: 2px; }
.space__play .ic-pause { display: none; }
.space__play:hover { background: rgba(12, 11, 10, 0.55); border-color: rgba(244, 241, 236, 0.85); transform: scale(1.07); }
.space__play:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 3px; }
.space__play.is-playing { background: var(--accent, rgba(12, 11, 10, 0.55)); border-color: transparent; }
.space__play.is-playing .ic-play { display: none; }
.space__play.is-playing .ic-pause { display: block; }

.space--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--line);
  text-align: center;
}
.space--soon::after { content: none; }
.soon { padding: 2rem 1.7rem; }
/* The app's door: a recessed frame, two leaves under a lintel, one seam. */
.soon__door {
  position: relative;
  display: block;
  width: 58px; height: 92px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--ink-faint);
  border-bottom: 0;
}
.soon__door::before {
  content: "";
  position: absolute;
  inset: 8px 7px 0;
  border: 1px solid var(--ink-faint);
  border-bottom: 0;
  opacity: 0.72;
}
.soon__door::after {
  content: "";
  position: absolute;
  top: 8px; bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  background: var(--ink-faint);
  opacity: 0.72;
}
.soon__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink-soft);
  margin: 0;
}
.soon__meta {
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin: 0.7rem auto 0;
  max-width: 24ch;
}

.spaces__foot {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ---------- mixer (dark) ---------- */
.mixer {
  background: var(--stone);
  color: var(--on-dark);
}
.mixer .display { color: var(--on-dark); }
.mixer .lede { color: var(--on-dark-soft); }
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}
.split > * { min-width: 0; } /* grid items default to min-width:auto; the .shots pair would otherwise force the track past narrow viewports */
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split--flip > :first-child { order: 2; }
@media (max-width: 899px) { .split--flip > :first-child { order: 0; } }

.stems { margin: 2.6rem 0 0; padding: 0; list-style: none; }
.stems li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}
.stems li:last-child { border-bottom: 1px solid var(--line-dark); }
.stem-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex: none;
  transform: translateY(1px);
  background: var(--dot);
  box-shadow: 0 0 0 1px rgba(244,241,236,0.18);
}
.stems b {
  font-weight: 400;
  color: var(--on-dark);
  min-width: 6.5em;
  letter-spacing: 0.02em;
}

.shots {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}
.phone {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 70px -28px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.07);
  max-width: 260px;
  flex: 1 1 0;
  min-width: 0; /* images refuse to shrink below intrinsic size in flex; without this the pair overflows narrow viewports */
  height: auto;
}
.phone--offset { transform: translateY(clamp(1rem, 4vw, 2.6rem)); }
.phone--lift  { transform: translateY(clamp(-2.6rem, -4vw, -1rem)); }
@media (max-width: 560px) { .phone--offset, .phone--lift { transform: none; } .shots { gap: 0.6rem; } }

/* ---------- steps ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vh, 4.5rem);
}
.step { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.step__no {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1rem;
}
.step h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.65rem;
}
.step p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

.portal {
  position: relative;
  margin-top: clamp(4rem, 8vh, 6rem);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
}
.portal img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 700px) { .portal { aspect-ratio: 4 / 3; } }

/* ---------- pricing ---------- */
.pricing { background: var(--paper-warm); }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(3rem, 6vh, 4rem);
  align-items: stretch;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: clamp(1.9rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
}
.plan--feature {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.plan--feature .plan__note { color: var(--on-dark-soft); }
.plan__tag {
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.6rem;
}
.plan--feature .plan__tag { color: var(--on-dark-soft); }
.plan__price {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__price sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: baseline;
  margin-left: 0.5em;
  color: var(--ink-mute);
}
.plan--feature .plan__price sub { color: var(--on-dark-soft); }
.plan__note { font-size: 0.875rem; color: var(--ink-soft); margin: 1.2rem 0 0; }
.plan__list { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.plan__list li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.7rem;
}
.plan--feature .plan__list li { color: var(--on-dark-soft); }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.pricing__foot { margin-top: 2.2rem; font-size: 0.8125rem; color: var(--ink-mute); }

/* ---------- faq ---------- */
.faq__list { margin-top: clamp(2.5rem, 5vh, 3.5rem); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.6rem 3rem 1.6rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 400;
  transition: color 0.35s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-soft); }
.faq summary::after {
  content: "";
  position: absolute; right: 0.35rem; top: 50%;
  width: 13px; height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.faq summary::before {
  content: "";
  position: absolute; right: 0.35rem; top: 50%;
  width: 13px; height: 1px;
  background: var(--ink);
  transform: rotate(90deg);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq details[open] summary::before { transform: rotate(0deg); opacity: 0; }
.faq__a { padding: 0 3rem 1.9rem 0; }
.faq__a p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 0.9rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- closing ---------- */
.closing {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(7rem, 16vh, 12rem);
}
.closing__bg { position: absolute; inset: 0; z-index: -2; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.closing::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 50% 46%, rgba(247,244,239,0.94) 0%, rgba(247,244,239,0.7) 60%, rgba(247,244,239,0.5) 100%),
    linear-gradient(to bottom, var(--paper) 0%, rgba(247,244,239,0.55) 22%, rgba(247,244,239,0.55) 78%, var(--paper) 100%);
}
.closing .display { margin-inline: auto; max-width: 16ch; }
.closing .lede { margin: 1.8rem auto 0; }
.closing p { margin-inline: auto; }

/* ---------- launch list ---------- */
.hero__notify { margin-top: clamp(1.9rem, 4vh, 2.9rem); }
.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-inline: auto;
  max-width: 33rem;
}
.signup input {
  flex: 1 1 11rem;
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  padding: 1.02em 1.4em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.signup input::placeholder { color: var(--ink-faint); }
.signup input:focus { outline: none; border-color: var(--ink); background: #fff; }
.signup .btn { flex: 0 0 auto; }
.notify__note {
  margin: 1.05rem auto 0;
  max-width: 44ch;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--stone);
  color: var(--on-dark-soft);
  padding-block: clamp(4rem, 8vh, 6rem) 2.5rem;
  font-size: 0.875rem;
}
.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--on-dark);
  line-height: 1.1;
  margin: 0 0 0.9rem;
}
.footer__brand em { font-style: italic; display: block; }
.footer h5 {
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 1.2rem;
  font-weight: 400;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.7rem; }
.footer a {
  text-decoration: none;
  color: var(--on-dark-soft);
  transition: color 0.35s var(--ease);
}
.footer a:hover { color: var(--on-dark); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2.2rem;
  font-size: 0.75rem;
  color: rgba(244,241,236,0.45);
}

/* ---------- interior pages ---------- */
.page-head {
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(3rem, 6vh, 4.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.page-head .display { max-width: 20ch; }
.page-head .lede { margin-top: 1.6rem; }
.page-meta {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2rem;
}

.doc { padding-block: clamp(3.5rem, 7vh, 5rem) var(--section); }
.doc h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.008em;
  margin: 3.4rem 0 1rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line-soft);
}
.doc h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.doc h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 2.2rem 0 0.8rem;
}
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 1.2rem; max-width: var(--measure); }
.doc li { margin-bottom: 0.55rem; }
.doc a { color: var(--ink); text-underline-offset: 0.25em; }

.callout {
  border-left: 2px solid var(--ink);
  padding: 0.3rem 0 0.3rem 1.5rem;
  margin: 2rem 0;
}
.callout p { margin: 0; font-size: 0.9375rem; }

.contact-card {
  background: var(--paper-warm);
  border-radius: 4px;
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.contact-card p { margin: 0 0 1.4rem; }
.contact-card .mail {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.12em;
  transition: border-color 0.35s var(--ease);
}
.contact-card .mail:hover { border-bottom-color: var(--ink); }

/* ---------- contact form ---------- */
.form {
  margin-top: 2.5rem;
  background: var(--paper-warm);
  border-radius: 4px;
  padding: clamp(1.9rem, 4vw, 3rem);
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 1.75rem;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.7rem;
}
.field .req { color: var(--ink-faint); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
                    linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 1.25rem, calc(100% - 0.9rem) 1.25rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}
.field textarea { resize: vertical; min-height: 10rem; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #A2543F; }
.field__hint { font-size: 0.75rem; color: var(--ink-faint); margin: 0.55rem 0 0; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.form__note { font-size: 0.75rem; color: var(--ink-mute); margin: 0; max-width: 34ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--ink);
  font-size: 0.875rem;
  color: var(--ink-soft);
  background: var(--paper);
  display: none;
}
.form__status.is-shown { display: block; }
.form__status.is-error { border-left-color: #A2543F; }

.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  columns: 2;
  column-gap: 2.5rem;
}
@media (max-width: 620px) { .toc { columns: 1; } }
.toc li { margin-bottom: 0.6rem; break-inside: avoid; }
.toc a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.toc a:hover { color: var(--ink); border-bottom-color: var(--line); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.09s; }
.reveal[data-d="2"] { transition-delay: 0.18s; }
.reveal[data-d="3"] { transition-delay: 0.27s; }
.reveal[data-d="4"] { transition-delay: 0.36s; }
.reveal[data-d="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  .space img { transition: none; }
}

.skip {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.4rem;
  z-index: 100;
  font-size: 0.8125rem;
}
.skip:focus {
  position: fixed;
  left: 1rem; top: 1rem;
  width: auto; height: auto;
  clip-path: none;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
