/* vezari demo — one stylesheet, written mobile-first.
   Breakpoints: 760px (tablet), 960px (desktop), 1200px (wide).
   Look: near-black ground, warm off-white type, oversized tightly tracked
   Helvetica headlines, tiny tracked uppercase labels, full-bleed photo chapters. */

:root {
  --ink: #0b0b0b;
  --ink-raised: #151515;
  --paper: #f4f2ed;
  --paper-muted: rgba(244, 242, 237, 0.62);
  --paper-faint: rgba(244, 242, 237, 0.16);
  --gold: #c8aa72;            /* from vezari's own size-guide artwork */
  --studio: #efefef;          /* background of the product photography */

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max-width: 1440px;
  --radius: clamp(12px, 1.6vw, 20px);
  --header-height: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------ base */

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

html {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--paper); color: var(--ink);
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------ type */

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.display {
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.88;
  /* The tight tracking clips the last glyph without a little room. */
  padding-right: 0.08em;
}
.display span { display: block; }
.display--hero    { font-size: clamp(64px, 17vw, 196px); }
.display--chapter { font-size: clamp(56px, 14vw, 168px); }
.display--page    { font-size: clamp(52px, 12vw, 136px); }
.display--section { font-size: clamp(42px, 8.4vw, 104px); line-height: 0.92; }

.arrow-link {
  display: inline-flex; gap: 0.5em; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}
.arrow-link:hover { color: var(--gold); }

.text-button {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.text-button:hover { color: var(--gold); }

/* ------------------------------------------------------------ buttons & forms */

.button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid var(--paper); border-radius: 999px;
  background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.button--solid { background: var(--paper); color: var(--ink); }
.button--solid:hover { background: var(--gold); border-color: var(--gold); }

input[type="email"], input[type="text"], input[type="tel"],
input[type="password"], input[type="search"], textarea {
  width: 100%; min-height: 52px; padding: 14px 18px;
  border: 1px solid var(--paper-faint); border-radius: 12px;
  background: var(--ink-raised);
  font-size: 16px; /* 16px stops iOS zooming into the field */
}
input:focus, textarea:focus { border-color: var(--paper-muted); outline: none; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.inline-form { display: grid; gap: 10px; max-width: 520px; }
.form-status { min-height: 1.6em; color: var(--gold); font-size: 13px; }
.form-status:empty { display: none; }

@media (min-width: 560px) {
  .inline-form { grid-template-columns: 1fr auto; }
  .inline-form .form-status { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ announcement & header */

.announcement {
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--paper-faint);
  color: var(--paper-muted);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-align: center; text-transform: uppercase;
}
/* Keep the bar to one line on phones. */
.announcement__extra { display: none; }
@media (min-width: 560px) { .announcement__extra { display: inline; } }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: var(--header-height); padding: 0 var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__logo img {
  width: auto; height: 34px;
}

.site-nav { display: none; }

.site-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-header__clock { display: none; }

.icon-link, .menu-button {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
}
.icon-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.cart-link__count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
}

.menu-button__bars,
.menu-button__bars::before {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-button__bars { position: relative; transform: translateY(-4px); }
.menu-button__bars::before { content: ""; position: absolute; top: 8px; }
.menu-button[aria-expanded="true"] .menu-button__bars { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars::before { transform: translateY(-8px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--menu-top, var(--header-height)) 0 0; z-index: 39;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 6px 0;
  font-size: clamp(48px, 15vw, 88px); letter-spacing: -0.07em; line-height: 1;
  text-decoration: none;
}
.mobile-menu__links span { color: var(--paper-muted); font-size: 11px; letter-spacing: 0.16em; }
.mobile-menu__meta { color: var(--paper-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

@media (min-width: 960px) {
  :root { --header-height: 76px; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav a {
    font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    text-decoration: none; opacity: 0.8;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
  .site-header__clock {
    display: block; margin-right: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  }
  .menu-button, .mobile-menu { display: none !important; }
  .site-header__logo img { height: 40px; }
}

/* ------------------------------------------------------------ home: hero + slideshow */

.hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: clamp(32px, 7vw, 72px) var(--gutter) 0;
}
.hero > .label { color: var(--paper-muted); margin-bottom: 18px; }
.hero__lede { max-width: 30em; margin-top: 28px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.meta-row li { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.scroll-cue {
  display: inline-block; margin: 48px 0 28px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
}

.slideshow {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--ink-raised);
}
.slideshow__slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; visibility: hidden;
  /* The outgoing slide stays fully opaque underneath for the 1s fade,
     then snaps away, so the crossfade never dims to a double exposure. */
  transition: opacity 0s 1s, visibility 0s 1s;
}
.slideshow__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1s var(--ease); }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.slideshow__slide.is-active img { transform: scale(1); }
.slideshow__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 40%);
}
.slideshow__caption { position: absolute; left: 18px; bottom: 20px; z-index: 1; }

.slideshow__controls {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px;
  background: rgba(11, 11, 11, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.slideshow__button {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: none; cursor: pointer; font-size: 14px;
}
.slideshow__button:hover { background: var(--paper-faint); }
.slideshow__button svg { width: 14px; height: 14px; fill: currentColor; vertical-align: middle; }
.slideshow__button[data-paused="true"] .icon-pause,
.slideshow__button[data-paused="false"] .icon-play { display: none; }
.slideshow__counter { min-width: 44px; text-align: center; }

@media (min-width: 760px) {
  .slideshow { aspect-ratio: 16 / 9; }
  .slideshow__caption { left: 28px; bottom: 28px; }
  .slideshow__controls { right: 20px; bottom: 20px; }
}

/* ------------------------------------------------------------ full-bleed chapter */

.chapter {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 100svh;
  margin-top: clamp(80px, 12vw, 160px);
  overflow: hidden;
}
.chapter--short { min-height: 80svh; }
.chapter__media { position: absolute; inset: 0; }
.chapter__image { width: 100%; height: 100%; object-fit: cover; }
.chapter__image--left { object-position: 20% 55%; }
.chapter__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.25) 45%, rgba(11, 11, 11, 0.35) 100%);
}

/* Slow drift on the photo as the chapter scrolls past (where supported). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chapter__image {
      animation: chapter-drift linear both;
      animation-timeline: view();
    }
    @keyframes chapter-drift {
      from { transform: scale(1.12) translateY(-3%); }
      to   { transform: scale(1.12) translateY(3%); }
    }
  }
}

.chapter__content {
  position: relative; width: 100%;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--gutter) clamp(32px, 6vw, 64px);
}
.chapter__number { color: var(--paper-muted); margin-bottom: 14px; }
.chapter__footer {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 28px; max-width: 100%;
}
.chapter__footer p { max-width: 28em; font-size: 14px; }

@media (min-width: 760px) {
  .chapter__footer { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ------------------------------------------------------------ split (why vezari) */

.split {
  display: grid; gap: 32px;
  max-width: var(--max-width); margin: clamp(80px, 12vw, 160px) auto 0;
  padding: 0 var(--gutter);
}
.split__media { overflow: hidden; border-radius: var(--radius); background: var(--studio); }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.split__text > .label { color: var(--paper-muted); }
.split__body { max-width: 32em; color: var(--paper-muted); font-size: 16px; }

@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
}

/* ------------------------------------------------------------ product (featured + page) */

.featured {
  max-width: var(--max-width); margin: clamp(80px, 12vw, 160px) auto 0;
  padding: 0 var(--gutter);
}
.featured__header { margin-bottom: 40px; }
.featured__header .label { color: var(--paper-muted); margin-bottom: 18px; }

.product { display: grid; gap: 28px; }
.product--page {
  max-width: var(--max-width); margin: 0 auto;
  padding: 16px var(--gutter) 0;
}

/* Gallery: a swipeable strip on phones, a two-column grid on desktop. */
.product__gallery { position: relative; min-width: 0; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__slide {
  scroll-snap-align: start;
  overflow: hidden; border-radius: var(--radius);
  background: var(--studio);
}
.gallery__slide[hidden] { display: none; }
.gallery__slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.gallery__counter { margin-top: 12px; color: var(--paper-muted); }

.product__form { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.product__form > .label, .breadcrumb { color: var(--paper-muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product__title { font-size: clamp(36px, 6vw, 56px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.product__title--page { font-size: clamp(44px, 9vw, 84px); letter-spacing: -0.065em; line-height: 0.92; }
.product__price { font-size: 20px; }
.product__price span { color: var(--paper-muted); font-size: 12px; letter-spacing: 0.12em; }
.product__note { color: var(--gold); }
.product__form .button { width: 100%; }
.product__demo-note { color: var(--paper-muted); font-size: 13px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 10px; padding: 0; }
.choices legend span { color: var(--paper-muted); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__face {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 52px; min-height: 44px; padding: 0 18px;
  justify-content: center;
  border: 1px solid var(--paper-faint); border-radius: 999px;
  font-size: 13px; transition: border-color 0.2s, background 0.2s;
}
.choice input:hover + .choice__face { border-color: var(--paper-muted); }
.choice input:checked + .choice__face { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.choice input:focus-visible + .choice__face { outline: 2px solid var(--gold); outline-offset: 3px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--paper-muted); }
.swatch--black { background: #111; }
.swatch--white { background: #fafafa; }

.quantity { display: grid; gap: 10px; }
.quantity__control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--paper-faint); border-radius: 999px;
}
.quantity__control button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.quantity__control input {
  width: 48px; border: 0; background: none; text-align: center; font-size: 16px;
  -moz-appearance: textfield; appearance: textfield;
}
.quantity__control input::-webkit-inner-spin-button,
.quantity__control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.product__info { display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }

@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 56px; align-items: start; }
  .gallery {
    grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0;
  }
  .gallery__counter { display: none; }
  .product__info, .featured .product__form { position: sticky; top: calc(var(--header-height) + 24px); }
}

/* ------------------------------------------------------------ prose (policies, descriptions) */

.prose {
  max-width: 720px; margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--paper-muted); font-size: 15px; line-height: 1.75;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; color: var(--paper); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.prose h3 { margin-top: 2em; color: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.prose strong { color: var(--paper); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--paper); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose--product { margin: 0; padding: 0; max-width: 34em; }

/* ------------------------------------------------------------ inner pages */

.page-intro {
  max-width: var(--max-width); margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(32px, 6vw, 64px);
}
.page-intro .label { color: var(--paper-muted); margin-bottom: 18px; }
.page-intro--narrow { max-width: calc(720px + var(--gutter) * 2); }
.page-policy .display--page { font-size: clamp(44px, 9vw, 96px); }

.product-grid {
  display: grid; gap: 28px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
}
.product-card a { display: block; text-decoration: none; }
.product-card__media {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--studio);
  aspect-ratio: 4 / 5;
}
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.product-card__hover { opacity: 0; }
.product-card a:hover .product-card__hover,
.product-card a:focus-visible .product-card__hover { opacity: 1; }
.product-card a:hover img { transform: scale(1.03); }
.product-card__text { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.product-card__text h2 { font-size: 16px; font-weight: 400; }
.product-card__colour { color: var(--paper-muted); }

@media (min-width: 760px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.story {
  display: grid; gap: 40px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
}
.story__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 38em; color: var(--paper-muted); font-size: 16px; }
.story__lead { color: var(--paper); font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.35; }
.story__media { overflow: hidden; border-radius: var(--radius); }
.story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; }

@media (min-width: 960px) {
  .story { grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; }
  .story__media { position: sticky; top: calc(var(--header-height) + 24px); }
}

.contact {
  display: grid; gap: 48px;
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
}
.stacked-form { display: grid; gap: 18px; align-items: start; justify-items: start; max-width: 720px; }
.stacked-form .field { width: 100%; }
.stacked-form__row { display: grid; gap: 18px; width: 100%; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.contact__details { display: grid; gap: 10px; align-content: start; color: var(--paper-muted); }
.contact__details h2 { margin-top: 18px; color: var(--paper); }
.contact__details h2:first-child { margin-top: 0; }

@media (min-width: 760px) { .stacked-form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact { grid-template-columns: 2fr 1fr; gap: 80px; } }

.cart { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.cart__empty { display: grid; gap: 20px; justify-items: start; }
.cart__lines { border-top: 1px solid var(--paper-faint); }
.cart-line {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--paper-faint);
}
.cart-line__image { overflow: hidden; border-radius: 10px; background: var(--studio); }
.cart-line__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.cart-line__details { display: grid; gap: 6px; align-content: start; }
.cart-line__title { font-size: 16px; text-decoration: none; }
.cart-line__variant { color: var(--paper-muted); font-size: 13px; }
.cart-line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.cart__summary { display: grid; gap: 12px; justify-items: end; padding-top: 28px; text-align: right; }
.cart__subtotal { display: flex; gap: 20px; align-items: baseline; font-size: 22px; }
.cart__small { color: var(--paper-muted); font-size: 13px; }
.cart__summary .button { width: 100%; max-width: 360px; }

@media (min-width: 760px) {
  .cart-line { grid-template-columns: 120px 1fr auto; align-items: start; }
  .cart-line__total { font-size: 16px; }
}

.search { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.search__summary { margin: 24px 0 8px; color: var(--paper-muted); }
.search__summary:empty { display: none; }
.search__results li { border-bottom: 1px solid var(--paper-faint); }
.search__results a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; }
.search__results a:hover strong { color: var(--gold); }
.search__results strong { font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.search__results span { color: var(--paper-muted); font-size: 13px; }

.size-guide-inline {
  max-width: var(--max-width); margin: clamp(80px, 10vw, 140px) auto 0;
  padding: 0 var(--gutter);
}
.size-guide-inline .label { color: var(--paper-muted); margin-bottom: 18px; }
.size-guide-inline__image { width: 100%; max-width: 900px; margin-top: 32px; border-radius: var(--radius); }

/* ------------------------------------------------------------ VIP + ending */

.vip, .ending {
  max-width: var(--max-width); margin: clamp(100px, 14vw, 200px) auto 0;
  padding: 0 var(--gutter);
}
.vip > .label, .ending > .label { color: var(--paper-muted); margin-bottom: 18px; }
.vip__lede { margin: 20px 0 28px; color: var(--paper-muted); font-size: clamp(16px, 1.6vw, 19px); }

.ending { padding-bottom: clamp(60px, 10vw, 120px); }
.ending__links { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 40px; }

/* ------------------------------------------------------------ footer */

.site-footer {
  margin-top: clamp(80px, 12vw, 160px);
  padding: 48px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--paper-faint);
}
.site-footer__top { display: grid; gap: 36px; max-width: var(--max-width); margin: 0 auto; }
.site-footer__logo img { width: auto; height: 56px; }
.site-footer__column .label { margin-bottom: 14px; color: var(--paper-muted); }
.site-footer__column li + li { margin-top: 6px; }
.site-footer__column a { font-size: 14px; text-decoration: none; }
.site-footer__column a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: var(--max-width); margin: 48px auto 0;
  color: var(--paper-muted); font-size: 12px;
}
@media (min-width: 760px) { .site-footer__top { grid-template-columns: 2fr 1fr 1fr; } }

/* ------------------------------------------------------------ password gate */

.page-password main { min-height: 100svh; }
.gate { display: grid; min-height: 100svh; }
.gate__media { position: relative; min-height: 46svh; }
.gate__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.gate__panel {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px;
  padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom));
}
.gate__panel > .label { color: var(--paper-muted); }
.gate__logo { width: auto; height: 64px; margin-bottom: 12px; }
.gate__lede { color: var(--paper-muted); font-size: 18px; }
.gate .inline-form { width: 100%; }
.gate__enter { margin-top: 12px; }

@media (min-width: 860px) {
  .gate { grid-template-columns: 1fr 1fr; }
  .gate__panel { padding: 64px clamp(40px, 6vw, 96px); }
}

/* ------------------------------------------------------------ dialogs, tables, toast */

.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 24px; border: 1px solid var(--paper-faint); border-radius: var(--radius);
  background: var(--ink-raised); color: var(--paper);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog > * + * { margin-top: 20px; }
.dialog__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dialog__close { width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; }

.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 10px 6px; border-bottom: 1px solid var(--paper-faint); text-align: center; }
.size-table thead th { color: var(--paper-muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.size-table tbody th { text-align: left; }
.size-notes { display: grid; gap: 8px; font-size: 13px; }
.size-notes div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.size-notes dt { color: var(--gold); }
.size-notes dd { color: var(--paper-muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 16px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 20px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-size: 13px; transform: translateX(-50%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.toast[hidden] { display: none; }
.toast a { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }

/* ------------------------------------------------------------ scroll reveal */

/* Only hide content once JS has confirmed it can reveal it again. */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .slideshow__slide, .slideshow__slide img { transition: none !important; transform: none !important; }
}
