/* ==========================================================================
   TUYUR Parfums: Launch experience
   ========================================================================== */

:root {
  --bone: #F4EFE7;
  --silk: #F8F5F0;
  --ink: #1D1915;
  --umber: #2B211C;
  --night: #14110E;
  --gold: #B8976A;
  --gold-soft: #D8C4A2;
  --muted: rgba(29, 25, 21, .58);

  --bg: var(--bone);
  --fg: var(--ink);
  --accent: var(--gold);

  --serif: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease);
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold-soft); color: var(--ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  margin: 0 0 2.2rem;
  color: var(--muted);
  transition: color 1.1s var(--ease);
}
.eyebrow .ar { font-family: var(--serif); letter-spacing: 0; font-size: 1.35em; text-transform: none; color: var(--accent); }
.eyebrow--light { color: rgba(244, 239, 231, .55); }

.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; will-change: transform; }

.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease);
}
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Grain & sillage ------------------------------------------------------- */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: multiply;
}
.sillage {
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 56vmax; height: 56vmax; margin: -28vmax 0 0 -28vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 70%, transparent) 0%, color-mix(in srgb, var(--accent) 35%, transparent) 38%, color-mix(in srgb, var(--accent) 10%, transparent) 66%, transparent 100%);
  opacity: 0; filter: blur(60px); mix-blend-mode: screen;
  transform: translate3d(50vw, 50vh, 0);
  transition: background 1.2s var(--ease), opacity 1.2s var(--ease);
  will-change: transform;
}
body.is-dark .sillage { opacity: .16; }

/* Overture -------------------------------------------------------------- */
.overture {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  pointer-events: none;
}
.overture__veil { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bone); z-index: 0; }
.overture__veil--top { top: 0; }
.overture__veil--bottom { bottom: 0; }
.overture__inner { position: relative; z-index: 1; display: grid; justify-items: center; color: var(--ink); }
.overture__mark {
  width: 92px; height: auto; margin-bottom: 6px;
  opacity: 0; transform: translateY(10px);
}
.overture__word {
  margin-top: 18px; display: flex; gap: .42em;
  font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: .02em;
  overflow: hidden; line-height: 1.1;
}
.overture__word span { display: inline-block; transform: translateY(110%); }
.overture__sub { margin-top: 6px; font-size: 9.5px; letter-spacing: .62em; text-transform: uppercase; opacity: 0; padding-left: .62em; }
.overture.is-done { display: none; }

/* Navigation ------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: color .9s var(--ease), transform .9s var(--ease), opacity .9s var(--ease);
  opacity: 0;
}
.nav.is-in { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__mark { display: inline-flex; align-items: center; justify-self: start; min-width: 0; }
.nav__brand {
  position: relative; display: block;
  width: 88px; height: 62px;
  overflow: hidden;
}
.nav__brand picture {
  display: block; position: absolute; inset: 0;
}
.nav__logo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: left center;
  max-width: none;
  transition: opacity .9s var(--ease);
}
.nav__logo--on-dark { opacity: 0; }
body.is-dark .nav__logo--on-light { opacity: 0; }
body.is-dark .nav__logo--on-dark { opacity: 1; }
.nav__mid { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .6; overflow: hidden; height: 1.6em; }
.nav__stage { display: block; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.nav__stage.is-swap { transform: translateY(-100%); opacity: 0; }
.nav__links { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; }
.nav__join {
  position: relative; display: inline-flex; padding: 12px 22px; overflow: hidden;
  border: 1px solid currentColor; border-radius: 999px;
}
.nav__join::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease), background-color 1.1s var(--ease);
}
.nav__join span { position: relative; transition: color .6s var(--ease); }
.nav__join:hover::before, .nav__join:focus-visible::before { transform: translateY(0); }
.nav__join:hover span, .nav__join:focus-visible span { color: var(--bg); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden; isolation: isolate;
  display: grid; place-items: center;
  color: var(--ink);
}
.hero__plate { position: absolute; inset: -4% -2%; z-index: -2; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.12); }
.hero__plate::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 40%, rgba(244,239,231,.55) 100%),
    linear-gradient(to bottom, rgba(244,239,231,.0) 55%, var(--bone) 100%);
}
.hero__shadow {
  position: absolute; left: -10%; top: 18%; width: 46vw; height: 18vw; min-width: 320px;
  color: rgba(40, 34, 28, .9); opacity: .07; filter: blur(10px);
  animation: drift 34s linear infinite; z-index: 1;
}
.hero__shadow use { stroke-width: 6; }
@keyframes drift {
  0% { transform: translate3d(-20vw, 20vh, 0) rotate(-8deg) scale(.9); }
  100% { transform: translate3d(140vw, -30vh, 0) rotate(4deg) scale(1.15); }
}
.flock { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero__title { margin: 0; text-align: center; font-weight: 300; line-height: .8; position: relative; z-index: 2; }
.hero__word {
  display: flex; justify-content: center; gap: .06em;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(5.4rem, 21vw, 23rem);
  letter-spacing: .04em; padding-left: .04em;
  color: var(--ink); mix-blend-mode: multiply;
  overflow: hidden; padding-bottom: .04em;
}
.hero__word .l { display: inline-block; will-change: transform; }
.hero__parfums {
  display: block; margin-top: clamp(14px, 2.2vw, 28px);
  font-family: var(--sans); font-size: clamp(10px, 1vw, 13px); font-weight: 400;
  letter-spacing: 1.1em; padding-left: 1.1em; text-transform: uppercase;
}
.hero__line {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); margin: 0;
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.1vw, 3rem); line-height: 1.02;
}
.hero__line em { color: #8B6B45; }
.hero__line .mask { padding-bottom: .16em; margin-bottom: -.16em; }
.hero__meta {
  position: absolute; top: calc(var(--nav-h) + 4vh); display: grid; gap: 2px;
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; opacity: .62; font-weight: 400;
}
.hero__meta--l { left: var(--gutter); }
.hero__meta--r { right: var(--gutter); text-align: right; }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 7vh, 72px);
  display: grid; justify-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; padding-left: .4em;
}
.hero__cue i { display: block; width: 1px; height: 64px; background: rgba(29,25,21,.18); position: relative; overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--ink); animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Statement ------------------------------------------------------------- */
.statement {
  position: relative; z-index: 3;
  padding: clamp(120px, 26vh, 300px) var(--gutter) clamp(120px, 22vh, 260px);
  display: grid; grid-template-columns: repeat(12, 1fr);
}
.statement > * { grid-column: 2 / span 10; }
.statement__text {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 4.6rem); line-height: 1.12; letter-spacing: -.005em;
  text-wrap: pretty;
}
.statement__text .w { display: inline-block; opacity: .13; transition: opacity .2s linear; }
.statement__text .w--em { font-style: italic; }
.statement__sign {
  margin-top: clamp(48px, 8vh, 96px); display: flex; align-items: center; gap: 18px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.statement__sign i { display: block; width: 44px; height: 1px; background: var(--accent); }

/* The Flight ------------------------------------------------------------ */
.flight { position: relative; z-index: 3; }
.flight__track { display: flex; flex-direction: column; }
.world {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 96px;
  overflow: hidden;
}
.world__num {
  position: absolute; z-index: 0; top: 8vh; right: -2vw;
  font-family: var(--serif); font-weight: 300; line-height: .8;
  font-size: 62vw; letter-spacing: -.02em;
  color: var(--accent); opacity: .17;
  pointer-events: none; user-select: none; will-change: transform;
}
.world__arch {
  position: relative; z-index: 1; margin: 0;
  width: min(78vw, 420px); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 6px 6px; overflow: hidden;
  background: rgba(0,0,0,.05);
}
.world__arch img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.world__copy { position: relative; z-index: 2; width: min(100%, 440px); margin-top: 40px; }
.world__kicker { margin: 0 0 14px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; opacity: .7; }
.world__kicker span { font-family: var(--serif); letter-spacing: .1em; font-size: 14px; color: var(--accent); margin-right: 10px; }
.world__name {
  margin: 0; font-family: var(--serif); font-weight: 300; line-height: .92;
  font-size: clamp(3.4rem, 6.4vw, 7rem); letter-spacing: .01em;
}
.world__line { margin: 18px 0 30px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.7rem); line-height: 1.3; max-width: 22em; }

.world--dark { color: var(--bone); }

/* Chapters: tabbed stage (no scroll-jacking) ---------------------------- */
.flight { position: relative; z-index: 3; }
.flight__track { display: grid; touch-action: pan-y; }
.world { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.world.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .8s var(--ease), visibility 0s; }
.world__arch img { height: 100%; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.world.is-active .world__arch img { transform: scale(1); }
.world__copy > *, .world__num { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.world:not(.is-active) .world__copy > * { opacity: 0; transform: translateY(14px); }
.world.is-active .world__copy > :nth-child(2) { transition-delay: .06s; }
.world.is-active .world__copy > :nth-child(3) { transition-delay: .12s; }
.world.is-active .world__copy > :nth-child(4) { transition-delay: .18s; }

.flight__tabs { position: relative; z-index: 6; color: var(--fg); transition: color 1.1s var(--ease); }
.flight__tab {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px;
  min-width: 56px; min-height: 56px; padding: 8px 6px; cursor: pointer; color: inherit;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.flight__tab-num { font-family: var(--serif); font-size: 17px; letter-spacing: .1em; opacity: .5; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.flight__tab-name { font-size: 9.5px; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; opacity: .45; transition: opacity .4s var(--ease); white-space: nowrap; }
.flight__tab:hover .flight__tab-num, .flight__tab:focus-visible .flight__tab-num { opacity: .9; transform: translateY(-2px); }
.flight__tab:hover .flight__tab-name, .flight__tab:focus-visible .flight__tab-name { opacity: .85; }
.flight__tab.is-active .flight__tab-num { opacity: 1; color: var(--accent); }
.flight__tab.is-active .flight__tab-name { opacity: 1; }
.flight__tab::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 1px; margin-left: -9px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.flight__tab.is-active::after { transform: scaleX(1); }
.flight__line { position: absolute; height: 1px; background: color-mix(in srgb, currentColor 18%, transparent); pointer-events: none; }
.flight__fill { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.flight__bird { position: absolute; top: -16px; left: 0; width: 26px; height: 10px; margin-left: -13px; color: currentColor; transition: left .9s var(--ease); }

/* Mobile: tabs above the chapter, four large targets */
@media (max-width: 899px) {
  .flight { padding-top: 24px; }
  .flight__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 var(--gutter); padding-top: 22px; }
  .flight__tab { min-height: 64px; }
  .flight__line { left: 12.5%; right: 12.5%; top: 18px; }
  .world { padding-top: 28px; min-height: 0; }
}

/* Desktop: chapter fills the screen, tabs sit on the line below */
@media (min-width: 900px) {
  .flight { height: 100vh; height: 100svh; min-height: 680px; overflow: clip; }
  .flight__track { height: 100%; }
  .world { --aw: min(30vw, 52vh, 520px); height: 100%; min-height: 0; display: block; padding: 0; }
  .world__num { top: 50%; left: 4vw; right: auto; transform: translateY(-50%); font-size: min(78vh, 46vw); }
  .world:not(.is-active) .world__num { opacity: 0; transform: translate(-3vw, -50%); }
  .world__arch { position: absolute; left: 30vw; top: 46%; transform: translateY(-52%); width: var(--aw); height: auto; }
  .world__copy { position: absolute; left: calc(30vw + var(--aw) + 5.5vw); right: var(--gutter); top: 46%; transform: translateY(-46%); width: auto; max-width: 440px; margin: 0; }
  .flight__tabs { position: absolute; left: 30vw; right: 30vw; bottom: 4vh; height: 84px; }
  .flight__line { left: 0; right: 0; top: 0; }
  .flight__tab { position: absolute; top: -28px; transform: translateX(-50%); padding: 26px 14px 8px; min-width: 88px; }
  .flight__tab[data-i="0"] { left: 0; }
  .flight__tab[data-i="1"] { left: 33.333%; }
  .flight__tab[data-i="2"] { left: 66.666%; }
  .flight__tab[data-i="3"] { left: 100%; }
  .flight__tab::before { content: ""; position: absolute; top: 24px; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1px solid currentColor; background: var(--bg); opacity: .5; transition: background-color .5s var(--ease), border-color .5s var(--ease), opacity .5s; }
  .flight__tab.is-active::before { background: var(--accent); border-color: var(--accent); opacity: 1; }
  .flight__tab-num { margin-top: 8px; }
  .flight__bird { top: -22px; }
}

/* Veil: sticky stage, native scroll progress drives --p ----------------- */
.veil { position: relative; z-index: 3; --p: 1; }
.js .veil { height: 240vh; }
.veil__sticky {
  position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 28px;
  padding: clamp(100px, 16vh, 180px) var(--gutter); overflow: hidden;
}
.js .veil__sticky { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 24px; }
.veil__type {
  position: absolute; z-index: 0; left: 0; right: 0; top: calc(var(--nav-h) + 2vh); pointer-events: none;
  display: grid; justify-items: center; text-align: center;
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 12vw, 13rem); line-height: .88;
  opacity: .13; white-space: nowrap;
}
.veil__frame { position: relative; z-index: 1; margin: 0; width: min(64vw, 37vh, 460px); }
.veil__img { position: relative; display: block; width: 100%; aspect-ratio: 1289 / 1600; overflow: hidden; border-radius: 999px 999px 2px 2px; }
.veil__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.veil__layer { position: absolute; inset: 0; display: block; }
.veil__layer--soft img { filter: blur(10px) saturate(.9); transform: scale(1.06); }
.veil__layer--near img { filter: blur(1.5px); transform: scale(1.02); }
.veil__copy { position: relative; z-index: 1; width: 100%; max-width: 440px; }
.veil__lede { margin: 0 0 14px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.15; }
.veil__body { margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.veil__founders { margin: 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.veil__founders span { color: var(--fg); }
.veil .eyebrow { margin-bottom: 14px; }

@media (max-width: 899px) {
  .js .veil { height: 220vh; }
  .veil__body { display: none; }
  .veil__copy { text-align: center; }
  .veil__end { margin-bottom: 16px; }
  .veil__founders { letter-spacing: .18em; font-size: 10px; }
}
@media (min-width: 900px) {
  .veil__sticky { grid-template-columns: repeat(12, 1fr); align-items: center; align-content: stretch; gap: 0; }
  .veil__frame { grid-column: 2 / span 6; justify-self: center; align-self: center; width: min(100%, 50vh, 470px); margin-top: 6vh; }
  .veil__copy { grid-column: 8 / span 4; align-self: center; margin-top: 6vh; }
}

/* Join the list --------------------------------------------------------- */
.list {
  position: relative; z-index: 3; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px);
  color: var(--bone);
  background: linear-gradient(to bottom, rgba(20,17,14,0) 0, rgba(20,17,14,.85) 22vh, var(--night) 38vh);
}
.list__glow {
  position: absolute; left: 50%; top: 60%; width: 120vmax; height: 70vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(184,151,106,.22), transparent 70%);
  pointer-events: none;
}
.list__inner { position: relative; width: min(100%, 980px); margin: 0 auto; }
.list__title {
  margin: 0 0 30px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 8.6vw, 8.6rem); line-height: .92; letter-spacing: -.01em;
}
.list__title em { color: var(--gold-soft); }
.list__title .mask { padding-bottom: .2em; margin-bottom: -.2em; }
.list__title .mask + .mask { margin-top: -.06em; }
.list__intro { margin: 0 0 clamp(48px, 8vh, 80px); max-width: 32em; color: rgba(244,239,231,.66); font-size: 15.5px; line-height: 1.8; }

.join { position: relative; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.join.is-sent { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.join__worlds { border: 0; margin: 0 0 44px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.join__worlds legend { width: 100%; padding: 0; margin-bottom: 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,231,.55); }
.join__worlds legend span { letter-spacing: .1em; text-transform: none; font-family: var(--serif); font-style: italic; font-size: 14px; }
.join__worlds label { position: relative; cursor: pointer; }
.join__worlds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.join__worlds label span {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 11px 18px 10px; border: 1px solid rgba(244,239,231,.18); border-radius: 999px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  transition: border-color .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.join__worlds b { font-family: var(--serif); font-weight: 400; font-size: 14px; letter-spacing: .06em; color: var(--gold-soft); }
.join__worlds label:hover span { border-color: rgba(244,239,231,.5); }
.join__worlds input:checked + span { border-color: var(--gold); background: rgba(184,151,106,.14); }
.join__worlds input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }

.join__row { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: end; }
.join__field { position: relative; display: block; padding-top: 22px; }
.join__label {
  position: absolute; left: 0; top: 34px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: rgba(244,239,231,.5); pointer-events: none; transform-origin: left top;
  transition: transform .6s var(--ease), color .6s var(--ease);
}
.join__field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(244,239,231,.24);
  padding: 12px 0 14px; color: var(--bone); font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: 0; outline: none; -webkit-appearance: none; appearance: none;
}
.join__field input:-webkit-autofill { -webkit-text-fill-color: var(--bone); transition: background-color 9999s; }
.join__field input:focus + .join__underline, .join__field.has-value .join__underline { transform: scaleX(1); }
.join__field:focus-within .join__label, .join__field.has-value .join__label { transform: translateY(-30px) scale(.5); color: rgba(244,239,231,.65); }
.join__underline { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.join__field.is-invalid input { border-bottom-color: #C98C7A; }

.join__btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  height: 60px; padding: 0 34px; border: 1px solid var(--gold); border-radius: 999px; color: var(--bone);
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 400; white-space: nowrap;
}
.join__btn::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform .7s var(--ease); border-radius: inherit; }
.join__btn > * { position: relative; }
.join__btn:hover::before, .join__btn:focus-visible::before { transform: translateY(0); }
.join__btn:hover, .join__btn:focus-visible { color: var(--night); }
.join__btn-arrow { width: 28px; height: 10px; transition: transform .7s var(--ease); }
.join__btn:hover .join__btn-arrow { transform: translateX(6px); }
.join__btn.is-busy { pointer-events: none; }
.join__btn.is-busy .join__btn-text { opacity: .5; }
.join__msg { min-height: 1.6em; margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: #E0B3A4; }
.join__fine { margin: 10px 0 0; font-size: 11.5px; color: rgba(244,239,231,.38); letter-spacing: .02em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.join__done {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 1.2s var(--ease) .35s, transform 1.2s var(--ease) .35s, visibility 0s 1.6s;
}
.join__done.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .35s, .35s, 0s; }
.join__done-mark { width: 72px; height: auto; margin-bottom: 26px; }
.join__done-title { margin: 0 0 10px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; color: var(--gold-soft); }
.join__done-sub { margin: 0; color: rgba(244,239,231,.66); }

@media (min-width: 760px) {
  .join__row { grid-template-columns: 1fr auto; gap: 40px; }
}

/* Footer ---------------------------------------------------------------- */
.foot { position: relative; z-index: 3; color: var(--bone); background: var(--night); padding: 40px var(--gutter) 28px; overflow: hidden; border-top: 1px solid rgba(244,239,231,.08); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px; }
.foot__motto { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 300; color: var(--gold-soft); }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.foot__word {
  display: flex; justify-content: center;
  margin: 6vw 0 4vw;
  user-select: none; pointer-events: none;
}
.foot__word img { width: min(68vw, 420px); height: auto; opacity: .94; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,239,231,.42); padding-top: 22px; border-top: 1px solid rgba(244,239,231,.1); }
.foot__credit {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 24px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(244,239,231,.42);
}


/* ==========================================================================
   The Veil: curiosity layer
   ========================================================================== */

/* Scramble text */
[data-scramble] .sc { display: inline-block; min-width: .3em; }
[data-scramble] .sc.is-noise { opacity: .45; color: var(--accent); }
.date { font-family: var(--serif); font-size: 15px; letter-spacing: .28em; text-transform: none; color: var(--fg); }
.hero__soon { font-style: normal; }

/* Mist over chapter images */
.world__arch { isolation: isolate; }
.world__secret {
  position: absolute; z-index: 1; left: 0; right: 0; top: 46%; padding: 0 12%; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.15;
  color: var(--fg); text-shadow: 0 0 18px rgba(255,255,255,.7), 0 0 2px rgba(255,255,255,.5); letter-spacing: .01em; pointer-events: none;
}
.world--dark .world__secret { color: #F4E7DD; text-shadow: 0 0 22px rgba(0,0,0,.7); }
.mist { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.world__hint {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; text-align: center; pointer-events: none;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(29,25,21,.6);
  transition: opacity 1s var(--ease);
}
.world__hint::before { content: ""; display: block; width: 5px; height: 5px; margin: 0 auto 10px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
.world__arch.is-touched .world__hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

/* Sealed chapter */
.world__seal {
  display: flex; align-items: center; gap: 14px; margin: 0; padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase; opacity: .75;
}
.world__seal i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.world__seal i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: ripple 2.8s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Veiled object */
@keyframes breathe { 0% { transform: scale(1) translateY(0); } 100% { transform: scale(1.03) translateY(-1%); } }
.veil__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 55%, transparent 30%, rgba(244,239,231,.55) 100%);
}
.veil__zoom { position: absolute; inset: 0; display: block; transition: transform 1.6s var(--ease); }

/* Drifting words */
.drift { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.drift span {
  position: absolute; font-family: var(--serif); font-style: italic; font-weight: 300;
  color: var(--fg); opacity: 0; white-space: nowrap; will-change: transform, opacity;
  animation: rise var(--d, 9s) var(--ease) forwards;
}
.drift--light span { color: var(--gold-soft); }
@keyframes rise {
  0% { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(4px); }
  25% { opacity: var(--o, .32); filter: blur(0); }
  70% { opacity: var(--o, .32); }
  100% { opacity: 0; transform: translate3d(var(--x, 20px), -110px, 0); filter: blur(3px); }
}
.statement, .veil { position: relative; }
.statement > *:not(.drift), .veil__sticky > *:not(.drift):not(.veil__type) { position: relative; z-index: 1; }

/* Join: numeral chooser */
.join__worlds label span { min-width: 64px; justify-content: center; padding: 12px 20px 11px; }
.join__worlds b { font-size: 17px; letter-spacing: .08em; }

/* Reveal defaults (JS adds .is-in) -------------------------------------- */
.js .reveal-up { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal-up.is-in { opacity: 1; transform: none; }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__mid { display: none; }
  .nav__ig { display: none; }
  .nav__join { padding: 10px 16px; font-size: 10px; letter-spacing: .22em; }
  .nav__brand { width: 78px; height: 56px; }
    .hero__meta { top: calc(var(--nav-h) + 18px); font-size: 9.5px; letter-spacing: .24em; }
  .hero__meta--l span:last-child { display: none; }
  .hero__word { font-size: 23vw; }
  .hero__parfums { letter-spacing: .8em; padding-left: .8em; }
  .hero__line { font-size: 1.85rem; bottom: 42px; }
  .hero__cue { bottom: 42px; }
  .hero__cue i { height: 44px; }
  .statement > * { grid-column: 1 / -1; }
  }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__shadow { display: none; }
  .statement__text .w { opacity: 1 !important; }
  .drift { display: none; }

  .sillage { display: none; }
}


/* Join panel (native dialog, always on top) ---------------------------- */
.list__inner { z-index: 2; }
.joinpanel {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--bone); overflow-y: auto;
}
.joinpanel::backdrop { background: rgba(20,17,14,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.joinpanel[open] { display: grid; place-items: center; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }
.joinpanel__inner {
  position: relative; width: min(100% - 32px, 720px); margin: 40px auto;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 60px) clamp(30px, 5vw, 48px);
  background: radial-gradient(120% 80% at 50% 100%, rgba(184,151,106,.16), transparent 60%), var(--night);
  border: 1px solid rgba(216,196,162,.18); border-radius: 2px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.6);
  animation: panelRise .9s var(--ease);
}
@keyframes panelRise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.joinpanel__close {
  position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,231,.6);
  padding: 8px; transition: color .4s var(--ease);
}
.joinpanel__close span { font-size: 20px; letter-spacing: 0; line-height: 1; }
.joinpanel__close:hover, .joinpanel__close:focus-visible { color: var(--bone); }
.joinpanel__title { margin: 0 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.joinpanel__title em { display: block; color: var(--gold-soft); }
.joinpanel__intro { margin: 0 0 36px; color: rgba(244,239,231,.66); font-size: 15px; line-height: 1.7; max-width: 30em; }
.joinpanel .join__worlds { margin-bottom: 30px; }
.joinpanel .join__done { position: relative; }
.joinpanel .join.is-sent { display: none; }
body.panel-open { overflow: hidden; }
.joinpanel .join__done:not(.is-on) { display: none; }


/* Veil effect: a silk layer lifts with scroll progress (--p 0 to 1) ---- */
.veil__zoom { position: absolute; inset: 0; display: block; transform: scale(calc(1 + var(--p) * .1)); transform-origin: 50% 62%; will-change: transform; }
.veil__layer--near { opacity: clamp(0, calc((var(--p) - .1) * 1.4), 1); }
.veil__curtain {
  position: absolute; left: -6%; right: -6%; top: -4%; height: 116%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    radial-gradient(50% 35% at 75% 55%, rgba(222,210,192,.45), rgba(222,210,192,0) 70%),
    linear-gradient(104deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.35) 32%, rgba(255,255,255,0) 44%, rgba(214,200,180,.25) 62%, rgba(255,255,255,0) 78%),
    linear-gradient(to bottom, rgba(246,240,231,.97), rgba(240,232,220,.93) 72%, rgba(240,232,220,0));
  transform: translate3d(0, calc(clamp(0, (var(--p) - .05) / .7, 1) * -112%), 0);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  will-change: transform;
}
.veil__meter { margin-top: 16px; display: grid; justify-items: center; gap: 10px; }
.veil__meter i { display: block; width: min(220px, 60%); height: 1px; background: color-mix(in srgb, currentColor 18%, transparent); position: relative; overflow: hidden; }
.veil__meter b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.veil__meter span { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); text-align: center; }
.veil__end {
  margin: 0 0 26px; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.35;
  opacity: clamp(0, calc((var(--p) - .72) * 5), 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .72) * 5, 1)) * 10px));
}
.veil__end a { color: var(--accent); font-style: normal; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-left: 6px; white-space: nowrap; }

/* Reduced motion, no JS, or an embedding frame that never scrolls: show the finished state, no sticky */
@media (prefers-reduced-motion: reduce) {
  .js .veil { height: auto; }
  .js .veil__sticky { position: relative; height: auto; padding: clamp(100px, 16vh, 180px) var(--gutter); }
  .veil { --p: 1 !important; }
  .veil__meter { display: none; }
}
.no-scrollfx .veil { height: auto !important; --p: 1 !important; }
.no-scrollfx .veil__sticky { position: relative !important; height: auto !important; padding: 120px var(--gutter) !important; }
.no-scrollfx .veil__meter { display: none; }
.no-scrollfx .hero { height: 880px; }
.no-scrollfx .flight { height: 820px; }
.no-scrollfx .list { min-height: 0; }


.world--dark .world__hint { color: rgba(244,231,221,.72); }
