/* Asteria prototype, round 2 v3. Layout: editorial scroll story, one pinned moment per section,
   a floating dock at the bottom instead of a crowded nav. Single committed look (sand + forest). */
:root {
  --sand: #efe6d8;
  --paper: #f7f1e8;
  --linen: #e4d6c2;
  --line: #d8c8b2;
  --cocoa: #2f221b;
  --taupe: #6b5848;
  --clay: #a0634a;
  --forest: #16241d;
  --forest-2: #1f3329;
  --cream: #efe7d8;
  --mist: #b7b19f;
  --sage: #b5c4a4;
  --gold: #c9a45c;
  --display: "Rubik", "Heebo", sans-serif;
  --body: "Rubik", "Heebo", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --pad: clamp(16px, 3.2vw, 48px);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
html,
body {
  margin: 0;
}
body {
  background: var(--sand);
  color: var(--cocoa);
  font: 400 17px/1.6 var(--body);
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.wrap {
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.inner {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.it {
  font-style: normal;
  color: var(--clay);
}
.manifesto .it,
.rhythm .it,
.finale .it {
  color: var(--sage);
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line > span {
  display: inline-block;
}

/* Preloader: a breathing ring and a count, then an arch curtain lifts. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--cream);
}
.loader-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  display: grid;
  place-items: center;
  animation: breathe 3s ease-in-out infinite;
}
.loader-count {
  font: 300 15px var(--body);
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* Top bar: logo in the centre, menu and language at the sides. */
.top {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  inset-inline: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px calc(var(--pad) + var(--gutter-r)) 18px
    calc(var(--pad) + var(--gutter-l));
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}
.top > * {
  pointer-events: auto;
}
.top .logo {
  font: 600 30px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.top > .pill-btn:first-child {
  justify-self: start;
}
.top .end {
  justify-self: end;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}
.burger i {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* Dock: the one place for the main actions, always within reach. */
.dock {
  position: fixed;
  z-index: 45;
  inset-inline: 0;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.dock-in {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(22, 36, 29, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  box-shadow: 0 18px 50px rgba(22, 36, 29, 0.35);
}
.dock a,
.dock button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-size: 15px;
}
.dock .book {
  position: relative;
  background: var(--sage);
  color: var(--forest);
  font-weight: 500;
}
.dock .book::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid var(--sage);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
.dock .star {
  color: var(--gold);
}

/* Hero: pinned; the photo closes into an arch while the title opens. */
.hero {
  position: relative;
  height: 230vh;
  background: var(--sand);
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  will-change: clip-path;
  clip-path: inset(0 0 0 0 round 0px);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(47, 34, 27, 0.25),
    rgba(47, 34, 27, 0) 35%,
    rgba(47, 34, 27, 0.45)
  );
}
.hero-title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--paper);
}
.hero-title .kicker {
  display: block;
  font: 400 13px var(--body);
  letter-spacing: 0.3em;
  margin-bottom: 18px;
}
.hero-title h1 {
  margin: 0;
  font-size: clamp(54px, 9.4vw, 150px);
}
.hero-title h1 .word {
  font-size: 1.32em;
}
.float {
  position: absolute;
  z-index: 1;
  width: clamp(130px, 15vw, 250px);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 34px 34px;
  overflow: hidden;
  opacity: 0;
}
.float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.f1 {
  top: 12%;
  inset-inline-start: 3.5%;
}
.f2 {
  bottom: 10%;
  inset-inline-start: 3%;
  width: clamp(110px, 12.5vw, 205px);
}
.f3 {
  top: 16%;
  inset-inline-end: 3%;
  width: clamp(110px, 12.5vw, 205px);
}
.f4 {
  bottom: 8%;
  inset-inline-end: 4%;
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 96px;
  inset-inline: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--paper);
}

/* Marquee */
.marquee {
  padding-block: clamp(28px, 4vw, 48px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  direction: ltr;
  font: 600 clamp(42px, 6vw, 96px)/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--cocoa);
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "✦";
  font: 400 0.3em var(--body);
  color: var(--clay);
}
