/* ==========================================================
   GLIMMER RENTAL — Stylesheet
   ========================================================== */

:root {
  --ivory: #f8f3ee;
  --paper: #fffdfb;
  --ink: #2b2024;
  --ink-soft: #4a3d41;
  --muted: #85767a;
  --line: #e7dcd4;
  --rose: #b98a7a;
  --rose-deep: #9c6e60;
  --blush: #f1e4dd;
  --champagne: #d9c3a5;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-ui: "Jost", "IBM Plex Sans Thai", system-ui, sans-serif;
  --f-th: "IBM Plex Sans Thai", "Jost", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--rose); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.th { font-family: var(--f-th); font-weight: 300; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 14px;
}
.display {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
}
.lead { color: var(--ink-soft); max-width: 34em; margin: 16px 0 0; }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  font-family: var(--f-ui); font-size: 12px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--line { background: #06c755; border-color: #06c755; color: #fff; }
.btn--line:hover { background: #05a948; border-color: #05a948; }
.link-arrow {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(248, 243, 238, .86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 148px; color: var(--ink); }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); align-items: center; }
.nav a {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 11px; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .logo { width: 124px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 20px; min-height: 48px; border-bottom: 1px solid var(--ink); }
}

/* ---------- Hero (full-bleed photos) ---------- */
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ivory); border-color: var(--ivory); }
.btn--outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }

/* Header sits on top of the photos (white) until the page scrolls past the hero */
[data-photo-hero] .site-header { transition: border-color .3s, background-color .4s, color .4s; }
[data-photo-hero] .site-header.on-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; color: #fff; }
.site-header.on-hero .logo img { filter: brightness(0) invert(1); }
.site-header.on-hero .nav .btn { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.site-header.on-hero .menu-toggle span { background: #fff; }
.site-header.on-hero::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(20, 12, 14, .38), rgba(20, 12, 14, 0)); }
.menu-open .site-header.on-hero { background: var(--ivory); color: var(--ink); }
.menu-open .site-header.on-hero .logo img { filter: none; }
.menu-open .site-header.on-hero .menu-toggle span { background: var(--ink); }
.menu-open .site-header.on-hero::before { display: none; }

.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h));
  height: 100svh; min-height: 600px; max-height: 1100px; background: var(--ivory); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 2px; }
.hero__panel { position: relative; overflow: hidden; }
/* curtain wipe: the slide rises from below while its inner layer counter-moves, so the photo
   itself stays put (only transforms animate, which keeps it smooth); the photo slowly zooms out */
.hero__slide, .hero__slide-in { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; }
.hero__slide { transform: translate3d(0, 100%, 0); transition: transform 1.3s cubic-bezier(.7, 0, .2, 1); }
.hero__slide-in { transform: translate3d(0, -100%, 0); transition: transform 1.3s cubic-bezier(.7, 0, .2, 1); }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transform-origin: 50% 55%; transition: transform 8s cubic-bezier(.25, .1, .25, 1); }
.hero__slide.is-on { z-index: 1; }
.hero__slide.is-on, .hero__slide.is-out, .hero__slide.is-on .hero__slide-in, .hero__slide.is-out .hero__slide-in { transform: translate3d(0, 0, 0); }
.hero__slide.is-on img, .hero__slide.is-out img { transform: scale(1); }
.hero__slide.is-on, .hero__slide.is-on .hero__slide-in, .hero__slide.is-on img { will-change: transform; }
.hero__slide.no-anim, .hero__slide.no-anim * { transition: none !important; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 56%, rgba(20, 12, 14, .5), rgba(20, 12, 14, 0) 75%),
              linear-gradient(rgba(20, 12, 14, .12), rgba(20, 12, 14, .12) 50%, rgba(20, 12, 14, .45)); }

.hero__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--header-h) + 20px) var(--gutter) 90px; text-shadow: 0 2px 24px rgba(20, 12, 14, .35); }
.hero__eyebrow { font-size: 12px; letter-spacing: .42em; text-transform: uppercase; margin: 0 0 6px; padding-left: .42em; }
.hero__title { font-weight: 400; line-height: 1; letter-spacing: 0; margin: 0; position: relative; }
.hero__title span { display: block; }
.hero__script { font-family: "Parisienne", var(--f-display); font-size: clamp(60px, 6.8vw, 112px); line-height: 1.05; }
.hero__serif { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(36px, 4.4vw, 70px);
  letter-spacing: .01em; margin-top: -.05em; }
.hero__title::before, .hero__title::after { content: ""; position: absolute; width: 22px; aspect-ratio: 1; background: currentColor; opacity: .9;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: twinkle 3.6s ease-in-out infinite; }
.hero__title::before { right: -4%; top: 6%; }
.hero__title::after { left: -2%; bottom: 12%; width: 14px; animation-delay: 1.6s; }
.hero__lead { max-width: 600px; margin: 22px auto 0; font-size: 16px; font-weight: 400; color: #fff; text-shadow: 0 1px 14px rgba(20, 12, 14, .55), 0 0 2px rgba(20, 12, 14, .4); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.hero__progress { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .24em; }
.hero__progress button { position: relative; width: 44px; height: 18px; }
.hero__progress button::before, .hero__progress button i { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(255, 255, 255, .35); }
.hero__progress button i { right: auto; width: 0; background: #fff; }
.hero__progress button.is-done i { width: 100%; }
.hero__progress button.is-on i { animation: hero-bar var(--dur, 6s) linear forwards; }
.hero__progress.is-paused button.is-on i { animation-play-state: paused; }
.hero__count { min-width: 58px; font-variant-numeric: tabular-nums; }
@keyframes hero-bar { from { width: 0; } to { width: 100%; } }
.hero__scroll { position: absolute; z-index: 3; right: var(--gutter); bottom: 30px; width: 1px; height: 44px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero__scroll::after { content: ""; position: absolute; left: 0; width: 1px; height: 16px; background: #fff; animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { from { top: -16px; } to { top: 44px; } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.55) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

@media (max-width: 860px) {
  .hero { --cols: 1; min-height: 560px; }
  .hero__content { justify-content: flex-end; padding-bottom: 92px; }
  .hero__shade { background: linear-gradient(rgba(20, 12, 14, .18), rgba(20, 12, 14, 0) 22%, rgba(20, 12, 14, .1) 38%, rgba(20, 12, 14, .58) 62%, rgba(20, 12, 14, .72)); }
  .hero__eyebrow { font-size: 10px; letter-spacing: .3em; }
  .hero__lead { font-size: 14.5px; }
  .hero__cta { width: 100%; max-width: 420px; }
  .hero__cta .btn { flex: 1 1 160px; }
  .hero__progress { bottom: 28px; gap: 6px; }
  .hero__progress button { width: 22px; }
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide-in, .hero__slide img { transform: none !important; transition: opacity .6s; }
  .hero__slide { opacity: 0; } .hero__slide.is-on, .hero__slide.is-out { opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section--paper { background: var(--paper); }
.section--blush { background: var(--blush); }
.divider-star { display: block; width: 18px; margin: 0 auto 18px; color: var(--rose); }

/* Shop by colour */
.colour-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.colour-tile { display: block; text-align: center; }
.colour-tile__img { position: relative; aspect-ratio: 3/5; overflow: hidden; background: var(--line); border-radius: 999px 999px 0 0; }
.colour-tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.colour-tile:hover img { transform: scale(1.06); }
.colour-tile__name { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex: none; }
.colour-tile__count { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
@media (max-width: 1000px) {
  .colour-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .colour-grid::-webkit-scrollbar { display: none; }
  .colour-tile { scroll-snap-align: start; }
}
@media (min-width: 600px) and (max-width: 1000px) { .colour-grid { grid-auto-columns: 26%; } }

/* Dress card */
.dress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px) clamp(12px, 2vw, 24px); }
@media (max-width: 1080px) { .dress-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .dress-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; } }
.card { display: block; text-align: left; width: 100%; }
.card__media { position: relative; aspect-ratio: 760 / 1920; overflow: hidden; background: #e9e7e4; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.card__media img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img + img { opacity: 1; }
  .card:hover .card__media img { transform: scale(1.035); }
}
.card__tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--paper); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 3px 9px; }
.card__body { padding-top: 14px; }
.card__row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card__brand { font-family: var(--f-display); font-size: 21px; font-weight: 400; line-height: 1.2; }
.card__code { font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.card__price { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.card__size { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 720px) { .card__brand { font-size: 18px; } .card__price { font-size: 12.5px; } }

/* Horizontal rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1080px) { .rail { grid-auto-columns: 40%; gap: 14px; } }
@media (max-width: 600px) { .rail { grid-auto-columns: 62%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s; }
.rail-nav button:hover { border-color: var(--ink); }
@media (max-width: 600px) { .rail-nav { display: none; } }

/* Try-on */
.tryon { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.tryon__media { position: relative; width: min(100%, 400px); justify-self: center; }
.tryon__media > img { width: 100%; aspect-ratio: 760 / 1920; object-fit: cover; object-position: 50% 0; border-radius: 999px 999px 0 0; }
.tryon__inset { position: absolute; left: -28px; bottom: -28px; width: 40%; margin: 0; background: var(--paper); padding: 8px 8px 10px; box-shadow: 0 10px 40px rgba(43, 32, 36, .10); }
.tryon__inset img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tryon__inset figcaption { margin-top: 8px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .tryon__inset { left: -12px; bottom: -18px; width: 36%; padding: 6px 6px 7px; } .tryon__inset figcaption { font-size: 8px; letter-spacing: .12em; margin-top: 6px; } .tryon__media { margin-bottom: 20px; } }
.tryon__badge {
  position: absolute; right: -14px; bottom: 28px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center; text-align: center;
  box-shadow: 0 10px 40px rgba(43, 32, 36, .08);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
}
.tryon__badge b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 300; letter-spacing: 0; }
.tryon__list { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.tryon__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tryon__list li > span:first-child { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .tryon { grid-template-columns: 1fr; }
  .tryon__media { max-width: 300px; width: 70%; margin: 0 auto; }
  .tryon__badge { right: -10px; width: 112px; height: 112px; }
  .tryon__list li { grid-template-columns: 1fr; gap: 2px; }
  .btn-row .btn { flex: 1 1 200px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--ink); }
.step__no { font-family: var(--f-display); font-size: 15px; font-style: italic; color: var(--rose-deep); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 32px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 10px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.step ul { margin: 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15px; }
.step li { position: relative; padding-left: 16px; }
.step li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 1px; background: var(--rose); }
.step li + li { margin-top: 6px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: 36px; } }

/* Accordion (policy) */
.policy { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: .08em; text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary small { display: block; font-family: var(--f-th); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 2px; }
.acc__icon { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; position: relative; flex: none; transition: transform .4s var(--ease), border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc[open] .acc__icon { border-color: var(--ink); }
.acc__body { padding: 0 0 28px; color: var(--ink-soft); }
.acc__body ul { margin: 0; padding-left: 20px; }
.acc__body li + li { margin-top: 10px; }
.acc__body .example { margin-top: 14px; padding: 16px 20px; background: var(--paper); border-left: 2px solid var(--rose); font-size: 15px; }
.acc__body .example b { font-weight: 500; }

/* Reviews */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 120s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 14px; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee img { width: clamp(150px, 16vw, 210px); aspect-ratio: 9/16; object-fit: cover; border-radius: 2px; background: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

.videos { --vgap: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--vgap)) / 4); gap: var(--vgap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.videos::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .videos { --vgap: 10px; grid-auto-columns: 44%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
@media (max-width: 600px) { .rail-nav--always { display: flex; } .rail-nav--always button { width: 38px; height: 38px; } }
.vid { position: relative; scroll-snap-align: start; aspect-ratio: 9/16; background: #000; overflow: hidden; border-radius: 2px; }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid__sound {
  position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: grid; place-items: center; color: var(--ink);
}
.vid__sound svg { width: 16px; height: 16px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .display { font-size: clamp(40px, 6vw, 76px); }
.cta-band .display em { font-style: italic; color: var(--rose-deep); }
.cta-band .btn-row { justify-content: center; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: #d9cfc9; padding: 72px 0 32px; font-size: 14px; }
.site-footer .logo { width: 180px; color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #fff; margin: 4px 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #a99c97; letter-spacing: .06em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Collection page
   ========================================================== */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); text-align: center; }
.page-hero .display { font-size: clamp(44px, 7vw, 84px); letter-spacing: .06em; text-transform: uppercase; }

.filters {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(248, 243, 238, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.filters .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.filter-group--colour { width: 100%; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.filter-scroll { display: flex; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: 12px; letter-spacing: .08em; white-space: nowrap;
  transition: border-color .25s, background .25s, color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip--swatch { padding: 0 12px 0 6px; }
.chip--swatch .swatch { width: 22px; height: 22px; }
.chip--size { min-width: 44px; justify-content: center; }
.filters__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.select--brand { max-width: 220px; }
.select.is-on { border-color: var(--ink); background-color: var(--ink); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23fff'/%3E%3C/svg%3E"); }
.select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%232b2024'/%3E%3C/svg%3E") no-repeat right 12px center;
  font: inherit; font-size: 12px; color: var(--ink); cursor: pointer;
}
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.result-bar button { text-decoration: underline; text-underline-offset: 4px; font-size: 13px; color: var(--ink); }
.active-fit { display: inline-flex; align-items: center; gap: 8px; background: var(--blush); color: var(--ink); padding: 4px 6px 4px 12px; border-radius: 999px; font-size: 12px; }
.active-fit button { text-decoration: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.empty .display { font-size: 32px; color: var(--ink); margin-bottom: 8px; }

/* Fit finder panel */
.fit-panel { display: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.fit-panel.is-open { display: block; }
.fit-panel .wrap { padding-block: 22px; display: flex; gap: 20px; align-items: end; flex-wrap: wrap; }
.fit-panel p { margin: 0; flex: 1 1 260px; font-size: 14px; color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input { width: 96px; height: 42px; border: 1px solid var(--line); background: var(--ivory); padding: 0 12px; font: inherit; font-size: 15px; border-radius: var(--radius); }
.field input:focus { outline: none; border-color: var(--ink); }

@media (max-width: 960px) {
  .filters .wrap { gap: 10px 16px; padding-block: 12px; }
  .filter-group { width: 100%; }
  .filter-scroll { overflow-x: auto; scrollbar-width: none; flex: 1; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .filter-scroll::-webkit-scrollbar { display: none; }
  .filters__end { margin-left: 0; width: 100%; }
  .filters__end { display: grid; grid-template-columns: 1fr 1fr; }
  .filters__end [data-fit-toggle] { grid-column: 1 / -1; justify-self: start; }
  .filters__end .select { width: 100%; max-width: none; }
  .filters { position: relative; top: 0; }
}

/* Dress modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(43, 32, 36, .45); opacity: 0; transition: opacity .4s; }
.modal.is-visible .modal__backdrop { opacity: 1; }
.modal__panel {
  position: absolute; inset: 24px; margin: auto; max-width: 1180px; max-height: 860px;
  background: var(--paper); display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
  opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.modal.is-visible .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,253,251,.9); display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.gallery { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 20px; background: #efedea; min-height: 0; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs button { aspect-ratio: 3/4; overflow: hidden; opacity: .5; transition: opacity .3s; border: 1px solid transparent; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; height: 100%; }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gallery__dots { display: none; }
.detail { padding: clamp(28px, 4vw, 56px); overflow-y: auto; }
.detail__code { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.detail__brand { font-family: var(--f-display); font-size: clamp(34px, 3.6vw, 48px); font-weight: 300; line-height: 1.1; margin: 8px 0 4px; }
.detail__colour { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.price-table { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 28px 0; border: 1px solid var(--line); }
.price-table div { padding: 16px 12px; text-align: center; }
.price-table div + div { border-left: 1px solid var(--line); }
.price-table span { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.price-table b { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 400; margin-top: 2px; }
.spec { margin: 0 0 24px; }
.spec h3 { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; margin: 0 0 10px; }
.spec table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 300; }
.spec th { color: var(--muted); font-weight: 300; width: 34%; }
.detail__note { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.detail .btn-row .btn { flex: 1 1 200px; }
.detail__tryon { margin-top: 20px; padding: 16px 18px; background: var(--ivory); font-size: 14px; color: var(--ink-soft); }
.detail__tryon a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.copy-hint { font-size: 12px; color: var(--rose-deep); margin-top: 10px; min-height: 18px; }

@media (max-width: 860px) {
  .modal__panel { inset: 0; max-height: none; grid-template-columns: 1fr; overflow-y: auto; display: block; }
  .gallery { display: block; padding: 0; height: 74svh; }
  .gallery__thumbs { display: none; }
  .gallery__main img { object-fit: cover; object-position: 50% 15%; }
  .gallery__dots { display: flex; gap: 6px; position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); }
  .gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .3s, transform .3s; }
  .gallery__dots span.is-on { background: #fff; transform: scale(1.3); }
  .detail { overflow: visible; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* Just Landed placeholder (no dresses marked isNew yet) */
.rail-tbc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; border: 1px solid var(--line); text-align: center; padding: 40px 20px; }
.rail-tbc b { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6vw, 64px); letter-spacing: .12em; line-height: 1; }
.rail-tbc span { color: var(--muted); font-size: 14px; }
