/* VELERI — Maison de lingerie, Paris. Drop 01.
   Palette and type follow the Livre de la Maison (House Book v3). */

:root {
  /* House colours */
  --noir: #0e0d0d;
  --nuit: #1c213a;
  --ivoire: #eee7db;
  --or: #c49e5c;
  --sang: #561218;

  /* Working tones */
  --paper: #eeeae1;                       /* the ivory page the product photographs sit on */
  --or-hi: #ddbe84;
  --or-deep: #7a5c2c;                     /* gold for small type on paper */
  --ivoire-2: rgba(238, 231, 219, 0.76);
  --ivoire-3: rgba(238, 231, 219, 0.52);
  --line: rgba(238, 231, 219, 0.16);
  --line-strong: rgba(238, 231, 219, 0.36);
  --ink: #161413;
  --ink-2: rgba(22, 20, 19, 0.74);
  --ink-3: rgba(22, 20, 19, 0.54);
  --ink-line: rgba(22, 20, 19, 0.15);
  --error: #e6a48f;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.8vw, 104px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; color: inherit; }

::selection { background: var(--or); color: var(--noir); }
:focus-visible { outline: 1px solid var(--or-hi); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--ink); }

.vh, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  padding: 10px 16px; background: var(--ivoire); color: var(--noir);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Type ---------- */

.label {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or);
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--ivoire);
}

.body {
  margin: 0 0 18px;
  max-width: 32em;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ivoire-2);
}

.specline {
  margin: 0;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ivoire-3);
}
.specline span { margin: 0 0.6em; color: var(--or); }

.rule { display: block; width: 72px; height: 1px; margin: 26px 0 30px; background: var(--or); }

/* Paper (ivory) sections */
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .label { color: var(--ink-3); }
.paper .display { color: var(--ink); }
.paper .body { color: var(--ink-2); }
.paper .specline { color: var(--ink-3); }
.paper .specline span { color: var(--or-deep); }
.paper ::selection { background: var(--nuit); color: var(--ivoire); }

/* ---------- The seal (ring turns, the V never does) ---------- */

.seal { position: relative; aspect-ratio: 1; }
.seal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-ring {
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 54%, #000 55%);
  mask-image: radial-gradient(circle closest-side, transparent 54%, #000 55%);
  transform: rotate(var(--turn, 0deg));
  will-change: transform;
}
.seal-v {
  -webkit-mask-image: radial-gradient(circle closest-side, #000 54%, transparent 55%);
  mask-image: radial-gradient(circle closest-side, #000 54%, transparent 55%);
}

/* ---------- Opening curtain ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--noir);
  cursor: pointer;
  transition: opacity 1s var(--ease), visibility 1s;
}
.curtain[hidden] { display: none; }
.curtain.is-out { opacity: 0; visibility: hidden; }
.curtain-inner { text-align: center; }
.seal--curtain { width: 92px; margin: 0 auto 40px; }
.seal--curtain .seal-ring { animation: coil 1.8s var(--ease) both; }
.seal--curtain .seal-v { animation: fade 1.2s var(--ease) 0.5s both; }
.curtain-mark { width: min(64vw, 340px); margin: 0 auto; animation: fade 1.4s var(--ease) 0.35s both; }
.curtain-line {
  margin: 26px 0 0;
  font-size: 11px;
  letter-spacing: 0.56em;
  padding-left: 0.56em;
  text-transform: uppercase;
  color: var(--ivoire-3);
  animation: fade 1.4s var(--ease) 0.7s both;
}

@keyframes coil { from { opacity: 0; transform: rotate(-240deg); } to { opacity: 1; transform: rotate(0deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) 24px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease), padding 0.6s var(--ease);
}
.nav.is-solid {
  background: rgba(14, 13, 13, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 16px;
}
.nav-side, .nav-cta {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ivoire-2);
}
.nav-cta {
  justify-self: end;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s;
}
.nav-cta:hover { color: var(--ivoire); border-color: var(--or); }
.nav-mark {
  display: block;
  width: 132px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.nav.is-solid .nav-mark { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- I. Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* The whole photograph, never cropped: the python's head sits near the bottom edge. */
.hero-media {
  position: absolute;
  top: 0; bottom: 0;
  right: clamp(0px, 6vw, 120px);
  aspect-ratio: 1493 / 2000;
  max-width: 62vw;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 94%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 94%, transparent 100%), linear-gradient(180deg, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.hero-copy { grid-column: 1; padding: 132px 0 96px var(--gutter); max-width: 620px; }

.hero-lockup { margin: 0 0 clamp(44px, 7vh, 72px); font-size: inherit; font-weight: inherit; }
.hero-wordmark { width: min(100%, 500px); }
.lockup-line {
  display: block;
  margin-top: 24px;
  padding-left: 0.2em;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.56em;
  text-transform: uppercase;
  color: var(--ivoire-2);
}

.hero-title { font-size: clamp(42px, 4.6vw, 76px); line-height: 1.04; margin-bottom: 28px; }
.lede { margin: 0 0 40px; max-width: 30em; font-size: 16.5px; line-height: 1.8; color: var(--ivoire-2); }

.js .hero-media img { opacity: 0; transform: scale(1.05); transition: opacity 1.8s var(--ease), transform 3.2s var(--ease); }
.js .hero.is-loaded .hero-media img { opacity: 1; transform: none; }
.js .hero-lockup { opacity: 0; transform: translateY(10px); transition: opacity 1.4s var(--ease) 0.4s, transform 1.4s var(--ease) 0.4s; }
.js .hero.is-loaded .hero-lockup { opacity: 1; transform: none; }

/* ---------- Join forms ---------- */

.join { max-width: 520px; }

.join-field { display: flex; align-items: stretch; border: 1px solid var(--line-strong); transition: border-color 0.3s; }
.join-field:focus-within { border-color: var(--or); }
.join-field input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ivoire);
  font: 300 16px/1 var(--sans);
}
.join-field input::placeholder { color: var(--ivoire-3); }
.join-field input:focus { outline: none; }

.join button[type="submit"], .btn-full {
  position: relative;
  flex: none;
  height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 0;
  background: var(--ivoire);
  color: var(--noir);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
}
.join button[type="submit"]::before, .btn-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.join button[type="submit"]:hover::before, .btn-full:hover::before { transform: scaleX(1); }
.join button[type="submit"] span, .btn-full span { position: relative; }
.join.is-busy button[type="submit"] { cursor: progress; }
.join.is-busy button[type="submit"] span { opacity: 0.45; }

.join-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--ivoire-3); }
.join-note a { color: var(--ivoire-2); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.join-note a:hover { color: var(--ivoire); }

.join-status { margin: 10px 0 0; min-height: 1.6em; font-size: 13.5px; color: var(--error); }
.join-status:empty { min-height: 0; margin: 0; }

/* ---------- II. Manifesto ---------- */

.manifesto { padding: clamp(130px, 20vh, 240px) var(--gutter) clamp(90px, 12vh, 140px); text-align: center; }
.statement {
  margin: 0 auto;
  max-width: 21em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.3vw, 52px);
  line-height: 1.22;
  color: var(--ivoire);
}
.statement em { color: var(--or-hi); }
.statement-sub { margin: 44px auto 0; max-width: 38em; font-size: 16.5px; line-height: 1.85; color: var(--ivoire-2); }

/* ---------- III. Le Sceau ---------- */

.sceau {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: center;
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(130px, 20vh, 240px);
}
.sceau-art { justify-self: center; width: min(480px, 100%); }
.sceau .display { margin-bottom: 32px; }

/* ---------- IV. The serpent clasp ---------- */

.clasp { padding: clamp(110px, 16vh, 180px) var(--gutter); }
.clasp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: end;
}
.clasp-main { position: relative; overflow: hidden; }
.clasp-main img, .clasp-side img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.clasp-copy { align-self: stretch; display: flex; flex-direction: column; padding-left: clamp(0px, 1.5vw, 24px); }
.clasp-copy .specline { margin-top: auto; padding-top: 32px; }

/* Loupe */
.loupe {
  position: absolute;
  left: 0; top: 0;
  width: 210px; height: 210px;
  border-radius: 50%;
  pointer-events: none;
  background-image: url("/assets/clasp-strap.webp");
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 60px rgba(22, 20, 19, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.clasp-main.is-looking { cursor: none; }
.clasp-main.is-looking .loupe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.loupe-hint {
  position: absolute;
  left: 18px; bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(22, 20, 19, 0.6);
  background: rgba(238, 234, 225, 0.8);
  padding: 8px 12px;
  transition: opacity 0.4s;
}
.clasp-main.is-looking .loupe-hint { opacity: 0; }
@media (hover: none), (pointer: coarse) { .loupe, .loupe-hint { display: none; } }

/* ---------- V. The collection ---------- */

.collection { padding: 0 var(--gutter) clamp(120px, 18vh, 200px); }
.collection-head { padding-top: clamp(40px, 6vh, 80px); border-top: 1px solid var(--ink-line); margin-bottom: clamp(40px, 6vh, 64px); }
.collection-head .display { font-size: clamp(36px, 4.4vw, 70px); }
.collection-sub { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.3vw, 34px); color: var(--ink-3); }

.explorer-tabs {
  display: flex;
  gap: clamp(20px, 4vw, 64px);
  margin-bottom: clamp(28px, 4vh, 48px);
  border-bottom: 1px solid var(--ink-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.explorer-tabs::-webkit-scrollbar { display: none; }
.explorer-tabs[hidden] { display: none; }
.explorer-tabs button {
  position: relative;
  flex: none;
  padding: 0 0 18px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.3s;
}
.explorer-tabs button span {
  display: block;
  margin-bottom: 6px;
  font: 400 10px/1 var(--sans);
  letter-spacing: 0.32em;
  color: var(--ink-3);
}
.explorer-tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.explorer-tabs button:hover { color: var(--ink-2); }
.explorer-tabs button[aria-selected="true"] { color: var(--ink); }
.explorer-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.set {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.no-js .set + .set { margin-top: 96px; }
.js .explorer.is-ready .set { display: none; }
.js .explorer.is-ready .set.is-active { display: grid; animation: setIn 0.9s var(--ease) both; }
@keyframes setIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.set-stage { position: relative; width: 100%; max-width: 640px; justify-self: center; }
.set-views { position: relative; aspect-ratio: 820 / 1000; max-height: 76vh; margin: 0 auto; }
.set-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.set-img.is-active { opacity: 1; visibility: visible; }
.no-js .set-img:not(.is-active) { display: none; }

/* Hotspots sit on a box the exact shape of the photograph, so their positions hold at any size. */
.hotspots { left: 50%; right: auto; width: auto; aspect-ratio: 880 / 1070; transform: translateX(-50%); }
.hotspots img { width: 100%; height: 100%; object-fit: contain; }
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  border: 1px solid rgba(22, 20, 19, 0.55);
  border-radius: 50%;
  background: rgba(238, 234, 225, 0.88);
  color: var(--ink);
  font: 500 9.5px/1 var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.hotspot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(238, 234, 225, 0.9);
  animation: pulse 2.6s var(--ease) infinite;
}
.hotspot:hover, .hotspot[aria-expanded="true"] { background: var(--ink); color: var(--ivoire); transform: scale(1.08); }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.8); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

.details { position: absolute; right: -4%; bottom: 10%; width: 46%; z-index: 2; pointer-events: none; }
.detail {
  position: absolute;
  right: 0; bottom: 0;
  width: 100%;
  padding: 10px 10px 14px;
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(22, 20, 19, 0.22);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.detail[hidden] { display: block; visibility: hidden; }
.detail.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.detail img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail figcaption { padding-top: 12px; font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--ink); }
.detail figcaption span { margin-right: 10px; font: 400 9.5px/1 var(--sans); letter-spacing: 0.24em; color: var(--or-deep); vertical-align: 3px; }

.view-toggle { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.view-toggle button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: 400 10.5px/1.4 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.view-toggle button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.no-js .view-toggle { display: none; }

.set-no { margin: 0 0 18px; font: 400 10.5px/1.4 var(--sans); letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-3); }
.set-no .tag { margin-left: 14px; padding: 4px 9px 4px 10px; letter-spacing: 0.24em; background: var(--nuit); color: var(--ivoire); }
.set-name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.015em; color: var(--ink); }
.set-sub { margin: 10px 0 26px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 26px); color: var(--ink-2); }
.set-desc { margin: 0 0 30px; max-width: 30em; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.set-specs { list-style: none; margin: 0 0 34px; padding: 0; max-width: 440px; border-bottom: 1px solid var(--ink-line); }
.set-specs li { padding: 13px 0; border-top: 1px solid var(--ink-line); font: 400 10.5px/1.4 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink); }
.set-specs .edition { color: var(--or-deep); }
.set-cta {
  display: inline-block;
  padding: 17px 26px;
  border: 1px solid var(--ink);
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.set-cta:hover { background: var(--ink); color: var(--paper); }

.explorer-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: clamp(32px, 5vh, 56px); }
.explorer-nav[hidden] { display: none; }
.explorer-nav button {
  width: 46px; height: 46px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  background: none;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.explorer-nav button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.explorer-nav span { min-width: 64px; text-align: center; font: 400 10.5px/1 var(--sans); letter-spacing: 0.3em; color: var(--ink-3); }

/* ---------- VI. Campaign ---------- */

.campaign { padding: clamp(120px, 18vh, 220px) var(--gutter) clamp(100px, 14vh, 160px); }
.campaign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(14px, 1.6vw, 24px);
  margin-bottom: clamp(90px, 14vh, 170px);
}
.campaign-grid figure { overflow: hidden; }
.campaign-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.campaign-grid figure:hover img { transform: scale(1.03); }
.c-tall { grid-row: 1 / span 2; }
.c-face img, .c-head img { aspect-ratio: 1; }
.campaign-copy { grid-column: 3; grid-row: 1 / span 2; align-self: center; padding-left: clamp(8px, 2vw, 40px); }
.campaign-copy .display { font-size: clamp(54px, 6.4vw, 104px); line-height: 0.95; margin-bottom: 30px; }
.campaign-copy .specline { margin-top: 28px; }

.serpent-band {
  position: relative;
  max-width: 1200px;
  height: clamp(360px, 66vh, 680px);
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.serpent-band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 45%; will-change: transform; }

/* ---------- VII. The box ---------- */

.box-story { position: relative; height: 260vh; background: var(--noir); }
.box-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.box-frame { position: absolute; inset: 0; }
.box-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform; }
.box-img--closed { transform: scale(calc(1 + var(--p, 0) * 0.06)); }
.box-img--open { opacity: var(--open, 0); transform: scale(calc(1.04 - var(--open, 0) * 0.04)); }
.box-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 13, 13, 0.82) 0%, rgba(14, 13, 13, 0.25) 34%, rgba(14, 13, 13, 0) 55%);
}
.box-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 8vh, 80px); }
.box-copy .label { color: var(--ivoire-2); margin-bottom: 16px; }
.box-steps { position: relative; min-height: 150px; }
.box-step { position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.box-step.is-active { opacity: 1; transform: none; }
.box-step .display { font-size: clamp(40px, 4.6vw, 72px); margin-bottom: 18px; }
.box-quote { margin: -6px 0 18px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); color: var(--ivoire-2); }
.box-step .specline { color: var(--ivoire-2); }
.box-progress { position: absolute; right: 0; bottom: 10px; width: 120px; height: 1px; background: var(--line-strong); }
.box-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--or); }

/* ---------- VIII. La Liste ---------- */

.liste { background: var(--nuit); padding: clamp(120px, 18vh, 220px) var(--gutter); scroll-margin-top: 0; }
.liste-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}
.liste .label { color: var(--or); }
.liste-copy { position: sticky; top: 120px; }
.liste-copy .display { margin-bottom: 28px; }

.join--full { max-width: 640px; }
.pick-set, .sizes { margin: 0 0 34px; padding: 0; border: 0; min-width: 0; }
.pick-set legend, .sizes legend, .field label {
  display: block;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivoire-2);
}
.pick-set legend span, .sizes legend span, .field label span {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 300;
  font-size: 12.5px;
  color: var(--ivoire-3);
}
.pick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick-row label { position: relative; display: block; cursor: pointer; }
.pick-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-row span {
  display: block;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.2;
  color: var(--ivoire-2);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.pick-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--paper); margin-bottom: 10px; transition: transform 0.6s var(--ease); }
.pick-row b { display: block; margin-bottom: 3px; font: 400 9px/1.2 var(--sans); letter-spacing: 0.28em; color: var(--ivoire-3); }
.pick-row label:hover span { border-color: var(--line-strong); color: var(--ivoire); }
.pick-row input:checked + span { border-color: var(--or); color: var(--ivoire); background: rgba(196, 158, 92, 0.08); }
.pick-row input:checked + span b { color: var(--or); }
.pick-row input:checked + span img { transform: scale(0.96); }
.pick-row input:focus-visible + span { outline: 1px solid var(--or-hi); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ivoire);
  font: 300 18px/1 var(--sans);
  transition: border-color 0.3s;
}
.field input:focus { outline: none; border-bottom-color: var(--or); }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); }

.size-row { display: flex; flex-wrap: wrap; gap: 8px; }
.size-row label { position: relative; }
.size-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-row span, .size-row button {
  display: grid;
  place-items: center;
  width: 56px; height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivoire-2);
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.size-row label:hover span, .size-row button:hover { border-color: var(--ivoire-2); color: var(--ivoire); }
.size-row input:checked + span, .size-row button[aria-pressed="true"] { border-color: var(--or); background: var(--or); color: var(--noir); }
.size-row input:focus-visible + span { outline: 1px solid var(--or-hi); outline-offset: 3px; }

.btn-full { width: 100%; }

/* The numbered card */
.welcome { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; animation: fade 0.9s var(--ease) both; }
.welcome:focus { outline: none; }
.card {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 5 / 7;
  perspective: 900px;
  animation: cardIn 1.3s var(--ease) both;
}
.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px 26px;
  text-align: center;
  background: radial-gradient(120% 90% at 30% 0%, #1b1a19 0%, var(--noir) 60%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(196, 158, 92, 0.22);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}
.card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at var(--gx, 30%) var(--gy, 20%), rgba(255, 236, 196, 0.12), transparent 70%);
  pointer-events: none;
}
.seal--card { width: 62px; margin-bottom: auto; }
.seal--card .seal-ring { animation: coil 1.6s var(--ease) 0.3s both; }
.card-no {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 86px);
  line-height: 1;
  font-variant-numeric: lining-nums;
  background: linear-gradient(115deg, #8f6e38 0%, #e6c98c 38%, #a9874b 55%, #f2dca6 72%, #9a7841 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-no.is-plain { font-size: 30px; font-style: italic; line-height: 1.2; }
.card-of { margin: 10px 0 0; font: 400 9.5px/1.4 var(--sans); letter-spacing: 0.42em; padding-left: 0.42em; text-transform: uppercase; color: var(--or); }
.card-rule { width: 34px; height: 1px; margin: 16px 0; background: rgba(196, 158, 92, 0.6); }
.card-set { margin: 0 0 auto; font: 400 9px/1.4 var(--sans); letter-spacing: 0.36em; padding-left: 0.36em; text-transform: uppercase; color: rgba(196, 158, 92, 0.85); }
.card-mark { width: 120px; opacity: 0.85; }
.card-wax {
  position: absolute;
  right: -34px;
  top: 21%;
  width: 92px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  animation: stamp 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) 1.15s both;
  pointer-events: none;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateX(16deg); } to { opacity: 1; transform: none; } }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.9) rotate(-34deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(-14deg); }
}

.welcome-text .label { margin-bottom: 16px; }
.welcome-copy { margin: 0 0 30px; max-width: 22em; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; color: var(--ivoire); }
.welcome-size p { margin: 0 0 14px; font-size: 14px; color: var(--ivoire-3); }
.welcome-size .welcome-size-status { margin: 14px 0 0; min-height: 1.5em; color: var(--or-hi); }
.welcome-size[hidden] { display: none; }

/* ---------- Footer ---------- */

.foot { padding: clamp(100px, 16vh, 180px) var(--gutter) max(40px, env(safe-area-inset-bottom)); text-align: center; }
.seal--foot { width: 76px; margin: 0 auto 40px; }
.seal--foot .seal-ring { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot-mark { width: min(70vw, 440px); margin: 0 auto; }
.foot-city { margin: 24px 0 0; font-size: 11px; letter-spacing: 0.56em; padding-left: 0.56em; text-transform: uppercase; color: var(--ivoire-2); }
.foot-line { margin: clamp(80px, 12vh, 130px) 0 34px; font-size: 10.5px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ivoire-3); }
.foot-line span { margin: 0 0.8em; color: var(--or); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-bottom: 26px; }
.foot-links a { font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; color: var(--ivoire-2); }
.foot-links a:hover { color: var(--or-hi); }
.foot-legal { margin: 0; font-size: 11.5px; letter-spacing: 0.08em; color: var(--ivoire-3); }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(0.8s + var(--i, 0) * 0.14s); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-media img, .js .hero-lockup { opacity: 1 !important; transform: none !important; transition: none !important; }
  .seal-ring, .seal--curtain *, .curtain-mark, .curtain-line, .card, .card-wax, .welcome, .hotspot::before, .js .explorer.is-ready .set.is-active { animation: none !important; }
  .serpent-band img { transform: none !important; }
}

/* ---------- Tablet & phone ---------- */

@media (max-width: 1279px) {
  .welcome { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 1080px) {
  .clasp-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .clasp-copy { grid-column: 1 / -1; padding: 40px 0 0; }
  .campaign-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .campaign-copy { grid-column: 1 / -1; grid-row: auto; padding: 40px 0 0; }
}

@media (max-width: 899px) {
  .nav { grid-template-columns: 1fr auto; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px; }
  .nav-side { display: none; }
  .nav-mark { width: 120px; }

  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; right: auto; width: 100%; max-width: none; height: auto; }
  .hero-media img {
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  }
  .hero-copy { position: relative; margin-top: -5vw; padding: 0 var(--gutter) 88px; max-width: none; }
  .hero-lockup { margin-bottom: 48px; }
  .hero-wordmark { width: 86%; }
  .lockup-line { font-size: 10px; margin-top: 16px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); }

  .sceau { grid-template-columns: 1fr; padding-top: 20px; }
  .sceau-art { width: min(340px, 78vw); }

  .set { grid-template-columns: 1fr; gap: 28px; }
  .set-views { max-height: 64vh; }
  .details { right: -2%; bottom: 4%; width: 58%; }
  .explorer-tabs { gap: 26px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }

  .liste-inner { grid-template-columns: 1fr; }
  .liste-copy { position: static; }
  .welcome { grid-template-columns: 1fr; justify-items: start; }
  .card { margin-left: 4px; }

  .box-story { height: 230vh; }
  .box-frame { bottom: 40%; }
  .box-img--open { object-position: 26% 50%; }
  .box-img--closed { object-position: 40% 50%; }
  .box-frame::after { background: linear-gradient(0deg, var(--noir) 0%, rgba(14, 13, 13, 0) 30%); }
  .box-copy { bottom: max(32px, env(safe-area-inset-bottom)); }
  .box-steps { min-height: 210px; }
  .box-progress { display: none; }
}

@media (max-width: 599px) {
  .clasp-grid, .campaign-grid { grid-template-columns: 1fr; }
  .c-tall { grid-row: auto; }
  .campaign-grid { grid-template-columns: 1fr 1fr; }
  .c-tall { grid-column: 1 / -1; }
  .serpent-band { height: 56vh; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
  .field-row { grid-template-columns: 1fr; gap: 26px; }
  .pick-row { gap: 6px; }
  .pick-row span { padding: 5px 5px 9px; font-size: 13px; }
  .pick-row b { letter-spacing: 0.16em; }
}

@media (max-width: 479px) {
  .join-field { flex-direction: column; border: 0; }
  .join-field input { flex: none; height: 56px; border: 1px solid var(--line-strong); }
  .join-field:focus-within input { border-color: var(--or); }
  .join-field button[type="submit"] { width: 100%; height: 56px; margin-top: 10px; }
  .size-row span, .size-row button { width: calc((100vw - 2 * var(--gutter) - 32px) / 5); }
}
