/* Layout: a sticky live-rendered salon with short centred lines scrolling over
   it, then two quiet bands. One typeface throughout: Aileron, as in the logo. */
@font-face { font-family: "Aileron"; font-weight: 300; font-display: swap; src: url("fonts/aileron-300.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-weight: 400; font-display: swap; src: url("fonts/aileron-400.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-weight: 600; font-display: swap; src: url("fonts/aileron-600.woff2") format("woff2"); }

:root {
  --plaster: #ece5d9;
  --plaster-deep: #ddd2c0;
  --ink: #1f1915;
  --ink-soft: #5b5047;
  --forest: #213a2c;
  --brass: #b48c4e;
  --night: #0f1112;
  --on-dark: #f4efe7;
  --font: "Aileron", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* Dark behind the page, so the phone's overscroll bounce matches the room and the footer. */
html { scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2 { font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; }
p, ul { margin: 0; }

/* Navigation floats over the room. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: calc(env(safe-area-inset-top, 0px) + 18px) 18px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav { transition: opacity 0.3s ease, transform 0.3s ease; }
.nav[data-hidden="true"] { opacity: 0; transform: translateY(-100%); }
.nav[data-hidden="true"] > * { pointer-events: none; }
.wordmark { font: 400 1.35rem/1 var(--font); letter-spacing: -0.03em; text-decoration: none; color: var(--on-dark); }
.nav nav { display: flex; gap: 0.25rem; color: var(--on-dark); }
/* No backing pill: a soft shadow keeps the light text readable over the room. */
.nav a { text-shadow: 0 1px 10px rgb(0 0 0 / 0.55), 0 0 2px rgb(0 0 0 / 0.35); }
.nav nav a { text-decoration: none; font-size: 0.95rem; padding: 0.4rem 0.7rem; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The story: a sticky stage with chapters scrolling over it. */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night) url("poster.jpg") center / cover no-repeat; }
/* Stills of the opening view, one per camera framing in main.js, so the live
   room fades in over an identical picture. */
@media (max-aspect-ratio: 6/5) { .stage { background-image: url("poster-square.jpg"); } }
@media (max-aspect-ratio: 4/5) { .stage { background-image: url("poster-tall.jpg"); } }
.stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.stage[data-ready="true"] canvas { opacity: 1; }
.chapters { position: relative; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.chapter {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 96px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
/* Hero: the logo, large, over a darkened room. */
.chapter-hero {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  color: var(--on-dark);
  /* Darkest behind the logo, fading out towards the edges so no box shows. */
  background: radial-gradient(closest-side, rgb(10 8 6 / 0.6), rgb(10 8 6 / 0.3) 55%, transparent);
}
.chapter-center {
  justify-content: center;
  text-align: center;
  color: var(--on-dark);
  background: radial-gradient(70% 45% at 50% 50%, rgb(10 8 6 / 0.45), transparent);
}
.statement { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; text-shadow: 0 2px 24px rgb(0 0 0 / 0.45); }
.logo { font-size: clamp(3.6rem, 18vw, 15rem); line-height: 0.9; letter-spacing: -0.04em; }
.tagline { max-width: 30ch; text-wrap: balance; font-size: clamp(1.1rem, 1.8vw, 1.45rem); text-shadow: 0 1px 12px rgb(0 0 0 / 0.5); }

.button {
  pointer-events: auto;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; margin-top: 0.6rem;
  background: var(--on-dark); color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 999px;
}
.button:hover { background: var(--plaster-deep); }

/* Bands after the story. */
.band { padding-block: clamp(72px, 11vw, 140px); }
.inner { max-width: 74rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.retailers { background: var(--forest); color: var(--on-dark); }
/* The heading cycles through the pieces a retailer sells, one word at a time. */
.retail-title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 16ch; }
.swap { display: inline-grid; color: var(--brass); }
.swap span { grid-area: 1 / 1; opacity: 0; animation: swap 8s infinite; }
.swap span:nth-child(2) { animation-delay: 2s; }
.swap span:nth-child(3) { animation-delay: 4s; }
.swap span:nth-child(4) { animation-delay: 6s; }
@keyframes swap {
  0%, 3% { opacity: 0; transform: translateY(0.3em); }
  6%, 22% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-0.3em); }
}
@media (prefers-reduced-motion: reduce) {
  .swap span { animation: none; }
  .swap span:first-child { opacity: 1; }
}
.points {
  list-style: none; padding: 0; margin-top: 3rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem 2rem;
  font-size: 1.05rem; font-weight: 300;
}
.points li { border-top: 1px solid color-mix(in srgb, var(--on-dark) 30%, transparent); padding-top: 1rem; }

.contact { background: var(--plaster); }
.contact-split {
  display: grid; gap: 2rem 3rem; align-items: end;
}
@media (min-width: 721px) { .contact-split { grid-template-columns: 1fr 1fr; } }
.contact-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.035em; }
.contact-lead { font-size: 1.15rem; font-weight: 300; color: var(--ink-soft); max-width: 28ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.contact-actions .button { margin-top: 0; }
.button-forest { background: var(--forest); color: var(--on-dark); }
.button-forest:hover { background: color-mix(in srgb, var(--forest) 85%, white); }
.contact-mail { font-size: 1.05rem; text-underline-offset: 4px; text-decoration-color: var(--brass); }

.footer { background: var(--night); color: var(--on-dark); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer .inner { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.fine { font-size: 0.85rem; opacity: 0.6; }

@media (max-width: 720px) {
  .nav nav a:not(:last-child) { display: none; }
}
