:root {
  --cream: #F4EAD0;
  --ecru: #EDE3CC;
  --taupe: #C9BBA0;
  --stone: #B7AE9C;
  --ink: #192E33;
  --sage: #AAB69A;
  --paper: #FBFAF7;
  --hairline: rgba(25, 46, 51, 0.16);
  --measure: 36rem;
  --font-display: "Spectral", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.6rem); }
.beat { min-height: 100svh; display: flex; align-items: center; padding: 12vh 1.5rem; }
.beat__inner { width: 100%; max-width: var(--measure); margin: 0 auto; }
.beat__inner.beat--wide { max-width: 40rem; }
img { max-width: 100%; height: auto; display: block; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: calc(var(--reveal-i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Beat 2 strands */
.strands { list-style: none; padding: 0; margin: 1.5rem 0; }
.strands li { padding: 0.6rem 0; border-top: 1px solid var(--hairline); color: var(--ink); }

/* Beat 3 anchors */
.anchor { border-top: 1px solid var(--hairline); }
.anchor:last-child { border-bottom: 1px solid var(--hairline); }
.anchor__head { width: 100%; text-align: left; background: transparent; border: 0; padding: 1rem 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; }
.anchor__head::after { content: "+"; }
.anchor.is-open .anchor__head::after { content: "\2212"; }
.anchor__more { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; margin: 0; }
.anchor.is-open .anchor__more { max-height: 16rem; padding-bottom: 1rem; }

/* Beat 4 brief bits */
.eyebrow, .aside { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--stone); }
.brief { margin: 1.75rem 0 0; padding: 0; text-align: left; }
.brief__bit { padding: 0.9rem 0; border-top: 1px solid var(--hairline); }
.brief__bit:last-child { border-bottom: 1px solid var(--hairline); }
.brief dt { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.15rem; }
.brief dd { margin: 0; color: var(--ink); }

/* Fork branching graphic */
.fork { margin: 1.5rem auto 0.5rem; max-width: 260px; }
.fork svg { width: 100%; height: auto; display: block; }
.fork__path { fill: none; stroke: var(--taupe); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease 0.15s; }
.fork.is-in .fork__path { stroke-dashoffset: 0; }
.fork__dot { fill: var(--taupe); opacity: 0; transition: opacity 0.4s ease 1.05s; }
.fork.is-in .fork__dot { opacity: 1; }

/* Concept / design carousel: one centered large, neighbors peek small */
.carousel { margin: 1.5rem 0 0; }
.carousel__track { display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 11%; padding-inline: 11%; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 78%; scroll-snap-align: center; }
.js .slide { transform: scale(0.85); opacity: 0.5; transition: transform 0.35s ease, opacity 0.35s ease; }
.js .slide.is-active { transform: scale(1); opacity: 1; }
.slide__stage { position: relative; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; background: var(--ecru); }
.slide__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; cursor: pointer; }
.js .slide__img { display: none; }
.js .slide__img.is-shown { display: block; }
.slide__hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.45rem; text-align: center; font-size: 0.75rem; letter-spacing: 0.03em; color: var(--cream); background: linear-gradient(to top, rgba(25, 46, 51, 0.55), transparent); }
.slide__cap { padding: 0.75rem 0.25rem 0; }
.slide__cap h3 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.slide__cap p { margin: 0; }
.js .slide__cap { display: none; }
.carousel__dots { display: flex; gap: 0.45rem; justify-content: center; margin: 0.9rem 0 0; }
.carousel__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--taupe); opacity: 0.4; cursor: pointer; border: 0; padding: 0; }
.carousel__dot.is-active { opacity: 1; background: var(--ink); }
.carousel__caption { display: none; text-align: center; margin: 1rem auto 0; max-width: 32rem; min-height: 8rem; }
.js .carousel__caption { display: block; }
.carousel__title { font-size: 1.4rem; margin: 0 0 0.4rem; }
.carousel__desc { margin: 0; }

/* Beat 6 chosen concept */
.chosen { margin: 1.5rem auto 0; max-width: 22rem; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.chosen__label { font-family: var(--font-display); font-size: 1.05rem; margin: 0; padding: 0.6rem; text-align: center; color: var(--ink); }

/* Beat 7 hotspots */
.hotspots { position: relative; max-width: 360px; margin: 1.5rem auto 0; }
.hotspots img { width: 100%; border: 1px solid var(--hairline); border-radius: 6px; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 2rem; height: 2rem; border-radius: 999px; border: 2px solid var(--cream); background: var(--ink); color: var(--cream); font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(25, 46, 51, 0.3); }
.hotspot.is-on { background: var(--sage); color: var(--ink); }
.hotspot__label { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease; margin: 0.5rem 0 0; text-align: center; color: var(--ink); }
.hotspot__label.is-shown { max-height: 6rem; opacity: 1; }

/* Open / close / pinch */
.beat--open, .beat--close, .beat--pinch { text-align: center; }
#beat-1, #beat-8 { background: linear-gradient(180deg, var(--cream), var(--paper)); }

/* Larger screens */
@media (min-width: 900px) {
  :root { --measure: 44rem; }
  .beat { padding: 16vh 2rem; }
  .slide { flex-basis: 60%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fork__path { stroke-dashoffset: 0; transition: none; }
  .fork__dot { opacity: 1; transition: none; }
  .js .slide { transition: none; }
}
