/* ============ TOKENS ============ */
:root {
  --ivory: #f7f2ea;
  --ivory-deep: #efe7d9;
  --champagne: #e6d8c2;
  --espresso: #2b211a;
  --espresso-soft: #4a3c30;
  --gold: #b08d57;
  --gold-soft: #cbb187;
  --text: #3a2f26;
  --text-muted: #7d7061;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* NOTE: no overflow on html/body — iOS Safari breaks position:sticky when any
   ancestor of the sticky element has overflow-x clip/hidden. Horizontal
   clipping is applied per-section further down instead. */
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.only-desktop { display: none; }
@media (min-width: 768px) { .only-desktop { display: inline; } }

/* ============ SHARED ============ */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--espresso);
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-soft), background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--espresso); color: var(--ivory); }
.btn--solid:hover { background: var(--espresso-soft); }
.btn--ghost { border-color: rgba(247, 242, 234, 0.55); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(247, 242, 234, 0.1); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-soft); color: var(--espresso); }
.btn--full { width: 100%; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, box-shadow 0.4s, color 0.4s, padding 0.4s;
  color: var(--ivory);
}
.nav.is-scrolled {
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  color: var(--espresso);
  box-shadow: 0 1px 0 rgba(43, 33, 26, 0.08);
  padding-block: 0.7rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.65rem; }
.nav__monogram {
  font-family: var(--serif);
  font-size: 1.05rem;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.nav__wordmark { font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; }
.nav__links { display: none; align-items: center; gap: 2rem; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav__links a { opacity: 0.85; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  border: 1px solid currentColor;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
}
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ============ HERO ============ */
/* Tall section + sticky stage: native scroll does the "pinning", GSAP only
   scrubs the frames — much more stable than JS pin on mobile Safari/Chrome.
   min-height (not height) so Safari can't squeeze the section when the
   address bar changes the viewport. */
.hero {
  position: relative;
  width: 100%;
  min-height: 400vh;
  min-height: 400svh;
}
@media (min-width: 900px) {
  .hero {
    min-height: 520vh;
    min-height: 520svh;
  }
}
.hero__stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh; /* svh: stable when the mobile address bar shows/hides */
  overflow: hidden;
  background: #17110c;
  touch-action: pan-y;
}
.no-sequence .hero {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
}
.no-sequence .hero__stage { position: relative; }
.hero__canvas,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__fallback { display: none; }
.no-sequence .hero__canvas { display: none; }
.no-sequence .hero__fallback { display: block; }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(15, 10, 6, 0.55) 100%),
    linear-gradient(to bottom, rgba(15, 10, 6, 0.45), transparent 30%, transparent 70%, rgba(15, 10, 6, 0.4));
  pointer-events: none;
}
.hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  padding: 1.5rem;
  pointer-events: none;
}
.hero__copy--intro { pointer-events: auto; }
.hero__copy--mid, .hero__copy--outro { opacity: 0; }
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.12;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__sub {
  margin-top: 1.3rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(247, 242, 234, 0.92);
  text-shadow: 0 1px 18px rgba(15, 10, 6, 0.8);
}
.hero__title br { display: none; }
@media (min-width: 768px) { .hero__title br { display: inline; } }
.hero__copy--intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at center, rgba(15, 10, 6, 0.38), transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.hero__copy--intro { z-index: 2; }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero__scrollhint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.7);
}
@media (min-width: 600px) and (min-height: 640px) { .hero__scrollhint { display: flex; } }
.hero__scrollline {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  animation: scrollPulse 2.2s var(--ease-soft) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero__phone {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}
/* warm light burst behind our phone — hides the video's frozen phone and
   makes ours look like it materialises out of the portal light */
.hero__phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(150vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(255, 250, 238, 0.98) 0%,
    rgba(252, 242, 222, 0.9) 22%,
    rgba(248, 232, 202, 0.55) 42%,
    transparent 68%);
  pointer-events: none;
}
.hero__phone .iphone { position: relative; }
.hero__outro-line {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  line-height: 1.25;
}
.hero__outro-line--accent { font-style: italic; color: var(--gold-soft); }
.hero__copy--outro { justify-content: flex-end; padding-bottom: 3.5vh; }
@media (max-width: 700px) {
  .hero__outro-line { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
}
@media (max-height: 720px) {
  .iphone--hero { width: clamp(190px, 22vw, 250px); }
}

/* ============ IPHONE FRAME ============ */
.iphone {
  position: relative;
  width: clamp(200px, 24vw, 270px);
  aspect-ratio: 9 / 19.2;
  background: #1a1a1c;
  border-radius: 13% / 6.2%;
  padding: 3.2%;
  box-shadow:
    0 0 0 2px #3a3a3d,
    0 30px 60px -18px rgba(20, 12, 5, 0.55),
    inset 0 0 4px rgba(255, 255, 255, 0.12);
}
.iphone--lg { width: clamp(230px, 26vw, 300px); }
.iphone--hero { width: clamp(230px, 26vw, 300px); }
.iphone__notch {
  position: absolute;
  top: 4.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 2.8%;
  background: #1a1a1c;
  border-radius: 100px;
  z-index: 3;
}
.iphone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10% / 4.8%;
  overflow: hidden;
  background: #0d0b09;
}
.iphone__img, .iphone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 16%;
  text-align: center;
  color: var(--espresso);
  pointer-events: none;
}
.pho-tag {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
}
.pho-names {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
}
.pho-names em { font-family: var(--script); font-style: normal; font-size: 0.8em; color: var(--gold); }
.pho-date {
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}
.phone-hero-overlay--dark {
  color: #fff;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 18%;
  background: linear-gradient(to bottom, rgba(20, 14, 8, 0.25), transparent 35%, transparent 60%, rgba(20, 14, 8, 0.45));
}
.phone-hero-overlay--dark .pho-date { color: rgba(255, 255, 255, 0.72); }
.pho-script {
  font-family: var(--script);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.pho-names--italic { font-style: italic; font-weight: 300; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); }
.pho-names--italic em { color: var(--gold-soft); }
.kenburns { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.12) translateY(-2.5%); }
}

/* ============ INTRO STORY ============ */
/* Tall section + sticky stage (same stable pattern as the hero). Do NOT put
   overflow on .intro-story itself — sticky breaks on iOS. */
.intro-story {
  position: relative;
  height: 280vh;
  height: 280svh;
}
.intro-story__stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: visible; /* iOS: sticky element must not clip — inner viewport does */
}
.intro-story__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.intro-story__heading {
  position: absolute;
  top: clamp(76px, 12svh, 130px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 46rem);
  text-align: center;
}
.intro-story__heading h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.25;
  color: var(--espresso);
}

/* floating pieces */
.intro-piece {
  position: absolute;
  background: #fbf8f1;
  border: 1px solid rgba(43, 33, 26, 0.1);
  border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(43, 33, 26, 0.32);
  padding: 0.9rem 1.2rem;
  opacity: 0;
  will-change: transform, opacity;
}
.intro-piece--url {
  left: clamp(1rem, 8vw, 12vw);
  top: 42svh;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  letter-spacing: 0.04em;
  color: var(--gold);
}
.intro-piece__globe {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--gold);
  animation: globeSpin 14s linear infinite;
}
@keyframes globeSpin { to { transform: rotate(360deg); } }
.intro-piece__url-text { overflow: hidden; white-space: nowrap; }
.intro-piece__url-text span { display: inline-block; }
.intro-piece--osa {
  right: clamp(1rem, 8vw, 12vw);
  top: 38svh;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text);
}
.intro-piece__label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.intro-piece--osa strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--espresso);
}
.intro-piece__check {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  margin-left: 0.25rem;
}
.intro-piece--details {
  left: 50%;
  bottom: 18svh;
  transform: none; /* centered via GSAP xPercent */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  width: min(92vw, 34rem);
}
.intro-piece--details span {
  background: #fbf8f1;
  border: 1px solid rgba(176, 141, 87, 0.35);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: clamp(0.66rem, 1.2vw, 0.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  box-shadow: 0 10px 26px -14px rgba(43, 33, 26, 0.3);
}

/* the finished invitation */
.intro-invitation {
  position: absolute;
  left: 50%;
  top: 54svh;
  transform: none; /* centered via GSAP xPercent/yPercent */
  width: min(82vw, 330px);
  background: #fdfaf4;
  border: 1px solid rgba(43, 33, 26, 0.12);
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(43, 33, 26, 0.5);
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
}
.intro-invitation__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #efe7d9;
  padding: 0.5rem 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.intro-invitation__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold-soft);
}
.intro-invitation__art { width: 100%; height: 118px; object-fit: cover; }
.intro-invitation__script {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--espresso);
  text-align: center;
  margin-top: 0.7rem;
  line-height: 1.1;
}
.intro-invitation__date {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
}
.intro-invitation__osa {
  margin: 0.8rem 1rem 0;
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.72rem;
  color: var(--text);
  text-align: center;
}
.intro-invitation__osa strong { font-family: var(--serif); font-size: 0.85rem; }
.intro-invitation__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem 1.1rem;
}
.intro-invitation__chips span {
  border: 1px solid rgba(43, 33, 26, 0.14);
  border-radius: 100px;
  padding: 0.22rem 0.6rem;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.intro-invitation__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 248, 230, 0.75) 48%, rgba(232, 205, 152, 0.5) 52%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.intro-story__final {
  position: absolute;
  left: 50%;
  bottom: clamp(3.5rem, 8svh, 6rem);
  transform: none; /* centered via GSAP xPercent */
  width: 92vw;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--espresso);
  opacity: 0;
}
.intro-story__final em { font-style: italic; color: var(--gold); }

@media (max-width: 767px) {
  .intro-story { height: 300vh; height: 300svh; }
  .intro-piece--url {
    left: 50%;
    top: 33svh;
    transform: none; /* centered via GSAP xPercent */
    width: calc(100vw - 32px);
    max-width: 360px;
    justify-content: center;
  }
  .intro-piece__url-text { min-width: 0; }
  .intro-piece__url-text span { font-size: 0.68rem; }
  .intro-piece--osa { right: 16px; top: 46svh; max-width: calc(100vw - 32px); }
  .intro-piece--details { bottom: 21svh; }
  .intro-invitation { top: 52svh; width: min(86vw, 330px); }
}

/* ============ DESIGN SHOWCASE (lineup) ============ */
.designs {
  position: relative;
  z-index: 5;
  background:
    radial-gradient(ellipse 75% 50% at 50% 68%, rgba(176, 141, 87, 0.18), transparent 72%),
    #1c1610;
  border-radius: clamp(28px, 5vw, 60px) clamp(28px, 5vw, 60px) 0 0;
  margin-top: -3.5rem;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1rem, 3vw, 2rem) clamp(6rem, 11vw, 10rem);
  overflow: hidden;
}
.designs__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.designs__mega {
  font-family: var(--serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-size: clamp(2.7rem, 10.5vw, 150px);
  background: linear-gradient(180deg, #8a6d47 0%, #eedebc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-top: 0.4rem;
}
.designs__sub {
  color: rgba(247, 242, 234, 0.62);
  max-width: 34rem;
  margin: 1.3rem auto 0;
}
.lineup {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: clamp(0.5rem, 2.5vw, 2.5rem);
}
.lineup__item { min-width: 0; }
.lineup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lineup__item--mid .lineup__inner { padding-bottom: clamp(1.2rem, 4vw, 3.2rem); }
.lineup__name {
  font-family: var(--serif);
  font-weight: 600;
  color: #f3ead9;
  font-size: clamp(0.95rem, 2.3vw, 1.75rem);
  line-height: 1.2;
}
.lineup__tag {
  color: rgba(247, 242, 234, 0.5);
  font-size: clamp(0.6rem, 1.2vw, 0.88rem);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}
.lineup__phone {
  display: block;
  margin-top: clamp(0.9rem, 2.2vw, 1.8rem);
  cursor: pointer;
}
.lineup__item--left .lineup__phone { transform: rotate(-4deg); }
.lineup__item--right .lineup__phone { transform: rotate(4deg); }
.lineup__phone .iphone {
  width: clamp(94px, 24vw, 260px);
  box-shadow:
    0 0 0 2px #3a3a3d,
    0 44px 80px -22px rgba(0, 0, 0, 0.75),
    inset 0 0 4px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.35s var(--ease-soft);
}
.lineup__item--mid .lineup__phone .iphone { width: clamp(110px, 29vw, 310px); }
.lineup__phone:hover .iphone {
  box-shadow:
    0 0 0 2px #4a463f,
    0 54px 95px -20px rgba(0, 0, 0, 0.85),
    0 0 70px -8px rgba(176, 141, 87, 0.35),
    inset 0 0 4px rgba(255, 255, 255, 0.16);
}
.lineup__phone:hover ~ * {}
.lineup__item:hover .lineup__name { color: var(--gold-soft); transition: color 0.3s; }
.btn--lineup {
  margin-top: clamp(1.1rem, 2.6vw, 2rem);
  border: 1px solid rgba(233, 213, 174, 0.5);
  color: #e9d5ae;
  font-size: 0.72rem;
  padding: 0.7rem 1.5rem;
}
.btn--lineup:hover { background: #e9d5ae; color: #1c1610; border-color: #e9d5ae; }
@media (max-width: 700px) {
  .lineup__tag { display: none; }
  .btn--lineup {
    margin-top: 0.9rem;
    padding: 0.55rem 0.4rem;
    font-size: 0.56rem;
    letter-spacing: 0.07em;
    width: 100%;
    max-width: 118px;
    text-align: center;
  }
}

/* overlay text scales with phone width (container queries; falls back to rem sizes) */
.iphone { container-type: inline-size; }
.pho-tag { font-size: 4.5cqw; letter-spacing: 0.28em; }
.pho-names { font-size: 11.5cqw; }
.pho-date { font-size: 4.2cqw; letter-spacing: 0.22em; }
.pho-script { font-size: 8.5cqw; }

/* ============ HOW ============ */
.how {
  position: relative;
  z-index: 6;
  background: var(--ivory);
  border-radius: clamp(28px, 5vw, 60px) clamp(28px, 5vw, 60px) 0 0;
  margin-top: -3.5rem;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  text-align: center;
}
.how__inner { max-width: 900px; margin: 0 auto; }

/* ============ TOUR ============ */
/* Hög sektion + sticky stage: native scroll sköter "pinningen", GSAP scrubbar
   bara telefonens innehåll — samma mönster som hero. (GSAP pin:true var
   instabilt på mobil Safari och dog helt under iOS "Minska rörelse".) */
.tour {
  background: var(--ivory-deep);
  min-height: 350vh;
  min-height: 350svh;
}
.tour__stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 4rem 1.5rem;
}
.no-sequence .tour { min-height: 0; }
.no-sequence .tour__stage { position: static; height: auto; min-height: 100vh; }
/* På mobil måste hela scenen (text + telefon) rymmas i viewporten medan den
   är fäst — annars klipps telefonens nederkant på korta skärmar (iPhone SE). */
@media (max-width: 899px) {
  .tour__stage {
    padding:
      max(3.5rem, env(safe-area-inset-top))
      1rem
      max(1rem, env(safe-area-inset-bottom));
    gap: 1rem;
  }
  .tour__text { min-height: 4.8rem; flex: 0 0 4.8rem; }
  .iphone--lg { width: clamp(200px, 54vw, 225px); }
}
@media (min-width: 900px) {
  .tour__stage { flex-direction: row; gap: clamp(3rem, 8vw, 7rem); }
}
.tour__text { position: relative; min-height: 5rem; max-width: 24rem; width: 100%; }
.tour__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--espresso);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
  transform: translateY(14px);
}
@media (min-width: 900px) {
  .tour__caption { justify-content: flex-start; text-align: left; }
}
.tour__caption.is-active { opacity: 1; transform: none; }
.tour__scroller { position: absolute; inset: 0 0 auto 0; }
.tour-block {
  padding: 2.2rem 1.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(43, 33, 26, 0.07);
  background: #faf6ee;
}
.tour-block--hero {
  min-height: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, #efe3cd, #e2cfae);
}
.tour-block__script {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--espresso);
  line-height: 1.2;
}
.tour-block__small {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-top: 0.8rem;
}
.tour-block__label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.tour-block__big { font-family: var(--serif); font-size: 2rem; color: var(--espresso); }
.tour-block__big span { font-size: 0.85rem; font-family: var(--sans); color: var(--text-muted); }
.tour-block__row { font-size: 0.85rem; color: var(--text); padding: 0.2rem 0; }
.tour-block__row span { color: var(--gold); font-variant-numeric: tabular-nums; margin-right: 0.5rem; }
.tour-block__map {
  width: 3rem; height: 3rem;
  margin: 0 auto 0.6rem;
  color: var(--gold);
}
.tour-block__field {
  border: 1px solid rgba(43, 33, 26, 0.15);
  border-radius: 3px;
  padding: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-align: left;
}
.tour-block__btn {
  background: var(--espresso);
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem;
  border-radius: 3px;
}
.tour-block__btn--ghost {
  background: none;
  border: 1px solid rgba(43, 33, 26, 0.3);
  color: var(--espresso-soft);
  margin-top: 0.7rem;
}
.tour-block__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 1rem;
}
.tour-block--quote {
  background: #332a22;
  padding: 2.8rem 1.4rem;
}
.tour-block__spark { color: var(--gold-soft); font-size: 0.8rem; display: block; margin-bottom: 1rem; }
.tour-block__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(247, 242, 234, 0.94);
}
.tour-block__ref {
  margin-top: 0.9rem;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.tour-count {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
}
.tour-count__unit span {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--espresso);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tour-count__unit small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.44rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tour-prog__emoji { display: block; font-size: 1.3rem; margin-bottom: 0.3rem; }
.tour-prog__time { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.2em; }
.tour-prog__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--espresso);
  margin: 0.15rem 0 0.2rem;
}
.tour-prog__place { font-size: 0.7rem; color: var(--text-muted); line-height: 1.45; }
.tour-prog__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--gold-soft);
  font-size: 1.1rem;
  line-height: 0.8;
  margin: 0.7rem 0;
}
.tour-prog__steps span:nth-child(odd) { transform: translateX(-5px); }
.tour-prog__steps span:nth-child(even) { transform: translateX(5px); }
.tour-map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 230px;
  box-shadow: inset 0 0 0 1px rgba(43, 33, 26, 0.08);
}
.tour-map svg { display: block; width: 100%; height: auto; }
.tour-map__pin {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 22px;
  transform: translate(-50%, -85%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

/* ============ PRICE ============ */
.price { background: var(--ivory-deep); }
.price__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 8rem) 1.5rem;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .price__grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
.price__list { list-style: none; margin-top: 1.8rem; }
.price__list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(43, 33, 26, 0.09);
  font-size: 0.98rem;
}
.price__list li::before { content: "✓"; color: var(--gold); margin-right: 0.8rem; }
.price__form {
  background: #fbf8f1;
  border: 1px solid rgba(43, 33, 26, 0.08);
  border-radius: 6px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 20px 50px -25px rgba(43, 33, 26, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.price__form h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--espresso);
  margin-bottom: 0.8rem;
}
.price__form label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.9rem;
}
.price__form .opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.price__form input,
.price__form select,
.price__form textarea {
  font: inherit;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(43, 33, 26, 0.16);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.35rem;
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price__form textarea { resize: vertical; min-height: 70px; }
.price__form input:focus,
.price__form select:focus,
.price__form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}
.price__form button { margin-top: 1.4rem; }
.price__form-note { font-size: 0.85rem; color: var(--gold); min-height: 1.3em; margin-top: 0.6rem; text-align: center; }

/* ============ FAQ ============ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 8rem) 1.5rem;
  text-align: center;
}
.faq__list { margin-top: 2.5rem; text-align: left; }
.faq details {
  border-bottom: 1px solid rgba(43, 33, 26, 0.12);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s var(--ease-soft);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.7rem; color: var(--text-muted); font-size: 0.95rem; }

/* ============ FINAL ============ */
.final {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
}
.final__bg {
  position: absolute;
  inset: 0;
  background: #1a1310 url("../assets/final.webp") center / cover no-repeat;
}
.final__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 13, 9, 0.55), rgba(20, 13, 9, 0.72));
}
.final__content { position: relative; padding: 6rem 1.5rem; max-width: 44rem; }
.final__line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.25;
}
.final__sub {
  margin: 1.2rem 0 2.4rem;
  color: rgba(247, 242, 234, 0.8);
  font-size: 1.05rem;
}

/* ============ FOOTER ============ */
.footer {
  background: #17110c;
  color: rgba(247, 242, 234, 0.65);
  text-align: center;
  padding: 3.5rem 1.5rem;
  font-size: 0.88rem;
}
.footer__monogram {
  font-family: var(--serif);
  font-size: 1rem;
  width: 2.4rem; height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 242, 234, 0.35);
  border-radius: 50%;
  margin: 0 auto 1rem;
  color: var(--gold-soft);
}
.footer a { color: var(--gold-soft); margin-top: 0.4rem; display: inline-block; }

/* ============ COMING SOON ROW ============ */
.coming__label {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(233, 213, 174, 0.55);
}
.lineup--soon { margin-top: clamp(1.5rem, 3.5vw, 2.6rem); }
.lineup--soon .lineup__name { color: rgba(243, 234, 217, 0.8); }
.lineup--soon .lineup__tag { color: rgba(247, 242, 234, 0.4); }
.lineup__phone--soon { cursor: default; }
.lineup--soon .iphone { opacity: 0.92; }
.phone-hero-overlay--soon {
  justify-content: center;
  padding: 0;
  background: linear-gradient(to bottom, rgba(28, 22, 16, 0.08), rgba(28, 22, 16, 0.18));
}
.pho-script-lg {
  font-family: var(--script);
  font-size: 13cqw;
  color: #4a3c30;
  text-shadow: 0 1px 14px rgba(255, 252, 245, 0.9);
}

/* illustration in each how-card */
.stack__art {
  position: absolute;
  right: clamp(0.8rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 26%, 280px);
  z-index: 1;
  pointer-events: none;
}
.stack__art img {
  width: 100%;
  mix-blend-mode: multiply;
}
@media (min-width: 768px) {
  .stack__body { max-width: calc(100% - clamp(150px, 30%, 320px)); }
}
@media (max-width: 767px) {
  .stack__art {
    top: clamp(0.9rem, 4vw, 1.6rem);
    right: clamp(0.9rem, 4vw, 1.6rem);
    transform: none;
    width: clamp(72px, 21vw, 104px);
  }
}

/* ============ PER-SECTION HORIZONTAL CLIPPING ============ */
/* replaces the old html/body overflow-x:clip (which broke sticky on iOS).
   The hero must NOT be in this list — och inte .tour: den har numera en
   sticky stage, och overflow-x:clip på föräldern bryter sticky på iOS.
   Stagen klipper sig själv med overflow:hidden istället. */
.designs,
.how,
.price,
.faq,
.final,
.footer {
  overflow-x: clip;
}

/* ============ SCROLL REVEALS ============ */
.fade-up { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
  .kenburns, .hero__scrollline { animation: none; }
  .reveal-words .word { opacity: 1; }
}

/* ============ DESIGN WHEEL (kortkarusell på osynlig cirkel) ============
   Konceptet från Figma "Create Beyond Reality": korten sitter längs kanten av
   en stor cirkel vars centrum ligger under viewporten. js/wheel.js sätter
   varje korts transform (rotate + translateY(-radie)) och roterar navet vid
   scroll. Sektionen är hög och scenen sticky — samma mönster som hero. */
.designs--wheel {
  min-height: 420vh;
  min-height: 420svh;
  overflow: visible;          /* sticky får inte ligga i overflow-klippt förälder (iOS) */
  padding: 0;
}
.designs--wheel .designs__stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;           /* klipper hjulet — ok på själva sticky-elementet */
  border-radius: clamp(28px, 5vw, 60px) clamp(28px, 5vw, 60px) 0 0;
  background:
    radial-gradient(ellipse 75% 50% at 50% 68%, rgba(176, 141, 87, 0.18), transparent 72%),
    #1c1610;
}
.designs--wheel .designs__inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(4rem, 9vh, 6.5rem);
  pointer-events: none;
}
.designs--wheel .designs__mega { font-size: clamp(2.4rem, 8.5vw, 108px); }
.designs--wheel .designs__sub { margin-top: 0.9rem; }

.wheel {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.wheel__hub {
  position: absolute;
  left: 50%;
  top: 100%;                  /* överskrivs av wheel.js */
  width: 0;
  height: 0;
  will-change: transform;
}

/* --- kort --- */
.wheel-card {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(230px, 21vw, 292px);
  aspect-ratio: 10 / 15.4;    /* avlångt, nästan telefonformat */
  will-change: transform;
}
.wheel-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 1vw, 14px) clamp(10px, 1vw, 14px) clamp(12px, 1.2vw, 16px);
  border-radius: clamp(22px, 2vw, 30px);
  border: 1px solid rgba(233, 213, 174, 0.4);
  background:
    radial-gradient(circle at 85% 8%, rgba(184, 144, 93, 0.2), transparent 42%),
    linear-gradient(150deg, #fbf7f0 0%, #f0e6d8 100%);
  box-shadow:
    0 34px 80px -30px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  filter: brightness(0.8) saturate(0.92);
  transform: translateZ(0);
  transition:
    filter 0.45s var(--ease-soft),
    transform 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft);
}
.wheel-card__inner::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(176, 141, 87, 0.28);
  border-radius: calc(clamp(22px, 2vw, 30px) - 5px);
  pointer-events: none;
  z-index: 2;
}
.wheel-card.is-active .wheel-card__inner {
  filter: brightness(1) saturate(1);
  transform: scale(1.045);
  box-shadow:
    0 44px 96px -30px rgba(0, 0, 0, 0.8),
    0 0 70px -12px rgba(176, 141, 87, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.wheel-card[data-demo-url] { cursor: pointer; }

.wheel-card__num {
  position: absolute;
  top: clamp(16px, 1.6vw, 22px);
  right: clamp(16px, 1.6vw, 22px);
  z-index: 3;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(28, 22, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  padding: 0.14rem 0.55rem;
  backdrop-filter: blur(4px);
}
.wheel-card__media {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: clamp(16px, 1.5vw, 22px);
  overflow: hidden;
  background: #0d0b09;
  container-type: inline-size;  /* pho-* overlaytexter skalar med kortet */
}
.wheel-card__video,
.wheel-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wheel-card__name {
  margin: clamp(0.65rem, 1.1vw, 0.9rem) 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.1;
  text-align: center;
  color: var(--espresso);
}
.wheel-card__tag {
  margin-top: 0.2rem;
  text-align: center;
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.wheel-card__cta {
  margin: 0.55rem auto 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(176, 141, 87, 0.5);
  padding-bottom: 0.15rem;
  transition: color 0.25s, border-color 0.25s;
}
.wheel-card__cta:hover { color: var(--espresso); border-color: var(--espresso); }
.wheel-card--soon .wheel-card__inner { filter: brightness(0.72) saturate(0.85); }
.wheel-card--soon.is-active .wheel-card__inner { filter: brightness(0.94) saturate(0.95); }

/* --- räknare + hint --- */
.wheel__footer {
  position: absolute;
  bottom: clamp(1.2rem, 3.5vh, 2.4rem);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}
.wheel__count {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #e9d5ae;
  letter-spacing: 0.12em;
}
.wheel__count em {
  font-style: normal;
  opacity: 0.45;
  margin: 0 0.2rem;
}
.wheel__hint {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 242, 234, 0.4);
}

@media (max-width: 767px) {
  .designs--wheel { min-height: 460svh; }
  .wheel-card { width: clamp(196px, 56vw, 240px); }
  .designs--wheel .designs__inner { padding-top: 4.2rem; }
  .designs--wheel .designs__sub {
    font-size: 0.86rem;
    max-width: 82vw;
    margin-inline: auto;
  }
}

/* --- statisk fallback när GSAP saknas --- */
.no-sequence .designs--wheel { min-height: 0; }
.no-sequence .designs--wheel .designs__stage {
  position: static;
  height: auto;
  overflow: visible;
  padding-bottom: 4rem;
}
.no-sequence .wheel {
  position: static;
  margin-top: 2.5rem;
}
.no-sequence .wheel__hub {
  position: static;
  width: auto;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  transform: none !important;
}
.no-sequence .wheel-card {
  position: static;
  transform: none !important;
}
.no-sequence .wheel-card .wheel-card__inner { filter: none; }
.no-sequence .wheel__footer { display: none; }
