/* style.css — VAYDAY by CHE — editorial, photo-led design system
   Direction: quiet luxury / concise grotesque type / cream + black /
   full-bleed photography instead of boxes, borders and hard shadows. */

/* ===================== DESIGN TOKENS ===================== */
:root {
  /* Type scale — fluid clamp() */
  --text-xs: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --text-sm: clamp(0.91rem, 0.86rem + 0.25vw, 1.01rem);
  --text-base: clamp(0.92rem, 0.89rem + 0.16vw, 0.97rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  --text-3xl: clamp(2.3rem, 1.2rem + 3.4vw, 4.2rem);
  --text-hero: clamp(2.5rem, 1rem + 5.4vw, 5.75rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — none. The whole system is rectangular and hairline-bordered. */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Content widths */
  --content-narrow: 620px;
  --content-default: 980px;
  --content-wide: 1320px;
  --content-full: 100%;

  /* Fonts — a single quiet, geometric grotesque for every role */
  --font-sans: 'Onest', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-logo: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-display: var(--font-heading);
  --font-body: var(--font-sans);
}

/* ===================== COLOR SYSTEM ===================== */
/* Monochrome, paper-and-ink palette. Colour comes from the photography,
   not from the interface. */

:root,
[data-theme='light'] {
  --color-bg: #f1f6f7;
  --color-surface: #f9fcfc;
  --color-surface-2: #eaf0f1;
  --color-surface-offset: #e0e8ea;
  --color-divider: #d9e4e4;
  --color-border: #c9d5d7;

  --color-text: #15140f;
  --color-text-muted: #6d6a5e;
  --color-text-faint: #a29c8b;
  --color-text-inverse: #f1f6f7;

  --color-accent: #15140f;
  --color-accent-hover: #3a382f;
  --color-accent-ink: #f1f6f7;

  --color-primary: #15140f;
  --color-primary-hover: #3a382f;

  --color-error: #8a3a34;
  --color-success: #4a5c3d;
}

[data-theme='dark'] {
  --color-bg: #14130f;
  --color-surface: #1b1a15;
  --color-surface-2: #211f18;
  --color-surface-offset: #262319;
  --color-divider: #2c2921;
  --color-border: #34301f;

  --color-text: #f2efe4;
  --color-text-muted: #c9c4b6;
  --color-text-faint: #958f80;
  --color-text-inverse: #14130f;

  --color-accent: #f2efe4;
  --color-accent-hover: #cfcabb;
  --color-accent-ink: #14130f;

  --color-primary: #f2efe4;
  --color-primary-hover: #cfcabb;

  --color-error: #c47870;
  --color-success: #9db084;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14130f;
    --color-surface: #1b1a15;
    --color-surface-2: #211f18;
    --color-surface-offset: #262319;
    --color-divider: #2c2921;
    --color-border: #34301f;
    --color-text: #f2efe4;
    --color-text-muted: #c9c4b6;
    --color-text-faint: #958f80;
    --color-text-inverse: #14130f;
    --color-accent: #f2efe4;
    --color-accent-hover: #cfcabb;
    --color-primary: #f2efe4;
  }
}

/* ===================== TYPOGRAPHY ===================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1 { font-weight: 300; }
h3 { font-weight: 500; letter-spacing: -0.005em; }
h4 { font-weight: 600; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; }

p { color: var(--color-text-muted); font-weight: 200; }
strong { font-weight: 600; color: var(--color-text); }

.eyebrow,
.label-caps {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

/* ===================== LAYOUT PRIMITIVES ===================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--default {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.full-bleed { width: 100%; }

hr.rule,
.rule {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ===================== SKIP LINK ===================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: var(--space-2) var(--space-4);
  z-index: 200;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ===================== HEADER / NAV ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: var(--space-4);
  gap: var(--space-4);
  min-height: 28px;
}
.brand-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
}
.brand-mark__glyph { display: none; }
.brand-mark__word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
  text-align: center;
}
.brand-mark__word strong {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  font-style: normal;
  color: var(--color-text);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--color-text);
}
.brand-mark__word span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  text-transform: uppercase;
}

.header-cluster {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main-nav { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border: none;
  padding: 0.6em 1.15em;
  white-space: nowrap;
}
.btn-order:hover { background: var(--color-accent-hover); }

.header-order-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--color-text);
  flex-shrink: 0;
}
.header-order-icon:hover { color: var(--color-text-muted); }

.brand-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-icon img {
  width: 26px;
  height: auto;
  display: block;
  filter: invert(1);
}
[data-theme='dark'] .brand-icon img { filter: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-icon img { filter: none; }
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--color-text);
  flex-shrink: 0;
}
.theme-toggle svg,
.nav-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover,
.nav-toggle:hover { color: var(--color-text-muted); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transform: translateY(-100%);
  transition: transform var(--transition-interactive);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav__top { display: flex; justify-content: flex-end; margin-bottom: var(--space-10); }
.mobile-nav__close { width: 32px; height: 32px; color: var(--color-text); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.mobile-nav a {
  font-size: var(--text-base);
  font-weight: 200;
  color: var(--color-text-muted);
  text-decoration: none;
}
.mobile-nav__order { margin-top: auto; text-align: center; padding: var(--space-4); }

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  padding: 0.9em 1.9em;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: 1px solid var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--color-text-muted); border-color: var(--color-text-muted); }

/* ===================== PAGE INTRO (hero / page-header shared) ===================== */

.page-header {
  padding-block: clamp(var(--space-16), 10vw, var(--space-20)) var(--space-10);
  text-align: center;
}
.page-header .eyebrow { margin-bottom: var(--space-4); }
.page-header h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); max-width: 18ch; margin-inline: auto; }
.page-header p { font-size: var(--text-base); max-width: 52ch; margin-inline: auto; }

/* ===================== HERO (index.html) ===================== */

.hero__intro {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-10);
  text-align: center;
}
.hero__title {
  font-size: var(--text-hero);
  max-width: 20ch;
  margin-block: var(--space-2) var(--space-6);
  margin-inline: auto;
}
.hero__title .accent { font-weight: 300; }
.hero__lede {
  font-size: var(--text-base);
  max-width: 46ch;
  margin-inline: auto;
  color: var(--color-text-muted);
}

.hero__frame {
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  background: var(--color-surface-2);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-8);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  padding-right: var(--space-8);
  border-right: 1px solid var(--color-border);
}
.hero__meta-item:last-child { border-right: none; }
.hero__meta-item:first-child { border-left: 1px solid var(--color-border); padding-left: var(--space-8); }
.hero__meta-item strong { font-size: var(--text-lg); font-weight: 500; }
.hero__meta-item span { font-size: 0.68rem; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; padding-top: var(--space-8); }

/* ===================== SPLIT (media + copy) ===================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split:has(> :only-child) { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
.split__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--dark { background: #0c0b09; }
.split__media--dark img { object-fit: contain; padding: var(--space-12); }
.split__eyebrow { margin-bottom: var(--space-4); }
.split h2 { font-size: var(--text-2xl); margin-bottom: var(--space-5); max-width: 16ch; }
.split p { margin-bottom: var(--space-4); max-width: 46ch; }
.split ul { display: flex; flex-direction: column; gap: var(--space-2); margin-block: var(--space-5); }
.split li { font-size: var(--text-sm); color: var(--color-text-muted); }
.split li strong { color: var(--color-text); }

/* ===================== ORNAMENT DIVIDER ===================== */

.ornament {
  display: flex;
  justify-content: center;
  padding-block: var(--space-8);
  color: var(--color-text-faint);
}
.ornament svg { width: 52px; height: auto; }

/* ===================== SECTION HEAD ===================== */

.section-head { margin-bottom: var(--space-12); max-width: 640px; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.section-head p { font-size: var(--text-base); max-width: 50ch; margin-inline: auto; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ===================== PRODUCT PREVIEW (home) ===================== */

.product-preview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.product-preview__gallery { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface-2); }
.product-preview__gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-preview__info h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.product-preview__info > p { max-width: 44ch; margin-bottom: var(--space-6); }
.product-preview__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}
.product-preview__price strong { font-size: var(--text-xl); font-weight: 500; color: var(--color-text); }
.product-preview__price span { font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.product-preview__info--solo { max-width: 480px; }
.product-preview__facts { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-8); }
.product-preview__facts li { font-size: var(--text-sm); color: var(--color-text-muted); padding-left: var(--space-4); position: relative; }
.product-preview__facts li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 1px; background: var(--color-text-faint); }
.product-preview__actions { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; }
.product-preview__tryon { flex-basis: 100%; max-width: 401px; }

/* ===================== NUMBERED FEATURE LIST (materials / detail-row / how-it-works) ===================== */

.materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-10);
  max-width: 480px;
  margin-inline: auto;
}
.detail-row,
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}
.how-it-works:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.detail-row { grid-template-columns: repeat(2, 1fr); }
.materials__item,
.detail-card,
.how-it-works__step {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.detail-card__media { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); color: var(--color-text-faint); }
.detail-card__media svg { width: 22px; height: 22px; }
.num {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.materials__item h3,
.detail-card__body h3,
.how-it-works__step h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.materials__item p,
.detail-card__body p,
.how-it-works__step p { font-size: var(--text-sm); max-width: 34ch; }

/* ===================== EDITORIAL BLEED (full-bleed photo + caption below) ===================== */

.editorial-bleed { display: block; }
.editorial-bleed__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.editorial-bleed__caption {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--space-10);
}
.editorial-bleed__caption h2 { font-size: var(--text-2xl); }

/* ===================== TELEGRAM CALLOUT ===================== */

.tg-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.tg-callout__copy h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.tg-callout__copy p { max-width: 44ch; }

/* ===================== FOOTER ===================== */

.site-footer { border-top: 1px solid var(--color-border); padding-block: var(--space-16) var(--space-8); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}
.site-footer__brand .brand-mark { position: static; left: auto; top: auto; transform: none; align-items: flex-start; margin-bottom: var(--space-4); }
.site-footer__brand .brand-mark .brand-mark__word { align-items: flex-start; text-align: left; }
.site-footer__brand p { font-size: var(--text-sm); max-width: 30ch; }
.site-footer h4 { font-size: var(--text-xs); margin-bottom: var(--space-5); color: var(--color-text-faint); }
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-text); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===================== PAGE: GLASSES — PRODUCT HERO ===================== */

.product-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.product-dossier__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-surface-2); margin-bottom: var(--space-4); }
.product-dossier__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); margin-bottom: var(--space-4); }
.product-dossier__thumbs button {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  background: var(--color-surface-2);
  overflow: hidden;
  cursor: pointer;
}
.product-dossier__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-dossier__thumbs button.is-active { border-color: var(--color-text); }
.product-dossier__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.product-dossier__serial { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-2); }

.product-info__eyebrow { margin-bottom: var(--space-4); }
.product-info h1 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.product-info__tagline { font-size: var(--text-base); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.product-info__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.product-info__price-row strong { font-size: var(--text-xl); font-weight: 500; }
.product-info__price-row span { font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.product-info__edition {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--space-4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}
.product-info__edition span[aria-hidden] { color: var(--color-text-faint); }
.product-info .desc { font-size: var(--text-sm); max-width: 48ch; margin-bottom: var(--space-8); }
.product-info__ctas { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; margin-bottom: var(--space-5); }
.product-info__note { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 42ch; }

/* ===================== SPECS TABLE ===================== */

.specs { display: flex; flex-direction: column; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.spec-row:last-child { border-bottom: 1px solid var(--color-border); }
.spec-row dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint); }
.spec-row dd { font-size: var(--text-sm); color: var(--color-text); max-width: 56ch; }

/* ===================== PAGE: AUTHENTICITY ===================== */

.lookup-form { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.lookup-form input {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
}
.lookup-form input::placeholder { color: var(--color-text-faint); }
.lookup-form input:focus { outline: none; border-bottom-color: var(--color-text); }

.cert {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cert__seal { width: 40px; height: 40px; color: var(--color-text-faint); margin-bottom: var(--space-5); }
.cert__status { font-size: var(--text-xl); font-weight: 400; color: var(--color-text); margin-bottom: var(--space-2); }
.cert__status--invalid { color: var(--color-error); }
.cert__sub { font-size: var(--text-sm); margin-bottom: var(--space-6); }
.cert__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-6); }
.cert__field { display: flex; flex-direction: column; gap: var(--space-1); }
.cert__field span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); }
.cert__field strong { font-size: var(--text-base); font-weight: 500; }
.cert__number { letter-spacing: 0.04em; }
.cert__footer { font-size: var(--text-sm); max-width: 60ch; }

.registry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
.registry-grid:has(> :only-child) { grid-template-columns: 1fr; max-width: 42ch; }
.registry-card {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.registry-card__tag { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.registry-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.registry-card p { font-size: var(--text-sm); max-width: 42ch; margin-bottom: var(--space-6); }
.registry-card--soon { opacity: 0.55; }

/* ===================== SCROLL REVEAL ===================== */

.reveal { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 980px) {
  .main-nav { display: none; }
  .split,
  .product-preview,
  .product-hero { grid-template-columns: 1fr; gap: var(--space-10); }
  .split--reverse { direction: ltr; }
  .materials,
  .detail-row,
  .how-it-works,
  .how-it-works:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cert__grid,
  .registry-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .hero__title { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .hero__meta { gap: var(--space-6); }
  .hero__meta-item { padding-right: var(--space-6); }
  .hero__meta-item:first-child { padding-left: var(--space-6); }
  .tg-callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .product-dossier__thumbs { grid-template-columns: repeat(5, 1fr); }
  .hero__title { font-size: clamp(1.5rem, 7.3vw, 1.85rem); max-width: none; }
}

/* ===================== MOUNTAIN STAGE (fixed background) ===================== */
.has-stage { background: transparent; }
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0d1114; }
.stage__layer {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease, transform 14s ease-out;
}
.stage__layer.is-active { opacity: 1; transform: scale(1.12); }
.stage__layer--towers { background-position: 78% center; }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,12,.35) 0%, rgba(8,10,12,.15) 40%, rgba(8,10,12,.55) 100%); }

/* Solid panels slide over the mountains */
.has-stage main > section:not(.hero--stage):not(.bg-window),
.has-stage .site-footer { background: var(--color-bg); position: relative; }

/* Transparent header over the hero */
.has-stage .site-header { transition: background .4s ease, border-color .4s ease, color .4s ease; }
.has-stage .site-header.is-over { background: transparent; border-bottom-color: transparent; color: #f4f2ec; }
.has-stage .site-header.is-over .brand-mark__word strong,
.has-stage .site-header.is-over .header-order-icon,
.has-stage .site-header.is-over .theme-toggle,
.has-stage .site-header.is-over .nav-toggle { color: #f4f2ec; }
.has-stage .site-header.is-over .brand-icon img { filter: none; }

/* Hero over the photo */
.hero--stage {
  min-height: 100svh; margin-top: calc(-1 * var(--header-h, 61px));
  padding-top: var(--header-h, 61px);
  display: flex; flex-direction: column; justify-content: center;
  color: #f4f2ec; text-shadow: 0 1px 24px rgba(0,0,0,.35);
}
.hero--stage .hero__intro { padding-block: var(--space-16) var(--space-8); }
.hero--stage .hero__title, .hero--stage strong { color: #f7f5ef; }
.hero--stage .hero__lede, .hero--stage .hero__meta-item span { color: rgba(244,242,236,.82); }
.hero--stage .hero__meta, .hero--stage .hero__meta-item { border-color: rgba(244,242,236,.35) !important; }
.hero--stage .hero__meta { justify-content: center; }
.hero--stage .hero__ctas { justify-content: center; padding-bottom: var(--space-12); }
.hero--stage .btn-primary { background: #f4f2ec; color: #15140f; border-color: #f4f2ec; text-shadow: none; }
.hero--stage .btn-primary:hover { background: #fff; border-color: #fff; }
.hero--stage .link-arrow { color: #f4f2ec; border-color: rgba(244,242,236,.6); }

/* Windows onto the mountains */
.bg-window { min-height: 45svh; display: flex; align-items: center; justify-content: center; color: #f4f2ec; }
.bg-window--quiet { min-height: 35svh; }
.bg-window__caption { max-width: 680px; margin-inline: auto; text-align: center; text-shadow: 0 1px 28px rgba(0,0,0,.45); }
.bg-window__caption h2 { font-size: var(--text-2xl); color: #f7f5ef; }
.ornament--light { color: #f4f2ec; opacity: .9; }
.ornament--light svg { width: 96px; filter: drop-shadow(0 1px 12px rgba(0,0,0,.4)); }

@media (prefers-reduced-motion: reduce) {
  .stage__layer, .stage__layer.is-active { transform: none; transition: opacity .6s ease; }
}
.spec-row dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===================== NUMBER GRID (glasses.html) ===================== */
.spec-row dd .num-price, .spec-row dd .num-note { color: var(--color-text); font-weight: 300; font-size: var(--text-sm); }
.spec-row dd .num-price { margin-bottom: var(--space-4); }
.spec-row dd .num-note { margin-top: var(--space-4); color: var(--color-text-muted); }
.num-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border);
  max-width: 520px;
}
.num-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading); font-size: clamp(1rem, 0.85rem + 0.6vw, 1.3rem);
  letter-spacing: 0.04em; color: var(--color-text);
  transition: background .25s ease, color .25s ease;
}
.num-grid li span {
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-text-faint);
}
.num-grid li:hover { background: var(--color-text); color: var(--color-bg); }
.num-grid li:hover span { color: var(--color-bg); opacity: .7; }
.num-grid--auction { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(520px / 3); border-color: var(--color-text); }
.num-grid--auction li { background: var(--color-text); color: var(--color-bg); border-color: var(--color-bg); }
.num-grid--auction li span { color: var(--color-bg); opacity: .65; }
@media (max-width: 620px) { .num-grid--auction { max-width: 34%; } }

/* ===================== THEME SWITCH FEEDBACK ===================== */
body, .site-header, .has-stage main > section, .has-stage .site-footer,
.btn, .num-grid li, .spec-row, .stage__shade {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, opacity .6s ease;
}
/* Hero button follows the theme: light in light mode, dark in dark mode */
[data-theme='dark'] .hero--stage .btn-primary {
  background: #14130f; color: #f2efe4; border-color: rgba(242,239,228,.55);
}
[data-theme='dark'] .hero--stage .btn-primary:hover { background: #000; border-color: #f2efe4; }
/* Mountains dim slightly in dark mode */
.stage__shade::after { content: ''; position: absolute; inset: 0; background: rgba(5,6,8,.38); opacity: 0; transition: opacity .6s ease; }
[data-theme='dark'] .stage__shade::after { opacity: 0; }
/* Theme toggle icon gives a small turn when pressed */
.theme-toggle svg { transition: transform .5s ease; }
[data-theme='dark'] .theme-toggle svg { transform: rotate(180deg); }
.num-grid:not(.num-grid--auction) { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 470px; }
.num-grid--auction { max-width: 200px; }
@media (max-width: 620px) { .num-grid--auction { max-width: 50%; } }
.num-grid--auction { max-width: 188px; }
@media (max-width: 620px) { .num-grid--auction { max-width: 40%; } }

/* ===================== EDITION MAP ===================== */

.edition__count { text-align: center; margin-bottom: var(--space-8); }
.edition__count-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  line-height: 1;
  color: var(--color-text);
}
.edition__count-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.edition__legend {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-3) var(--space-6);
  margin: 0 0 var(--space-8); padding: 0; list-style: none;
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.edition__legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.edition__swatch { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--color-border); }
.edition__swatch--special { border: 1px solid var(--color-text); box-shadow: inset 0 0 0 2px var(--color-bg), inset 0 0 0 3px var(--color-text); }
.edition__swatch--auction { background: var(--color-text); border-color: var(--color-text); }
.edition__swatch--taken { background: repeating-linear-gradient(135deg, var(--color-divider) 0 2px, transparent 2px 5px); }

.edition__grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
}
.edition__cell {
  appearance: none;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--color-divider);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: clamp(0.5rem, 0.35rem + 0.45vw, 0.72rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive), border-color var(--transition-interactive);
}
.edition__cell:hover, .edition__cell:focus-visible { border-color: var(--color-text); color: var(--color-text); outline: none; }
.edition__cell--special {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  border-color: var(--color-text);
  box-shadow: inset 0 0 0 2px var(--color-bg), inset 0 0 0 3px var(--color-text);
}
.edition__cell--auction { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); font-family: var(--font-heading); font-weight: 700; }
.edition__cell--auction:hover, .edition__cell--auction:focus-visible { background: var(--color-accent-hover); color: var(--color-bg); }
.edition__cell--taken {
  color: var(--color-text-faint);
  opacity: 0.55;
  background: repeating-linear-gradient(135deg, var(--color-divider) 0 1px, transparent 1px 5px);
  box-shadow: none;
  font-family: var(--font-sans); font-weight: 400;
  cursor: default;
}
.edition__cell[aria-pressed='true'] { outline: 2px solid var(--color-text); outline-offset: 2px; position: relative; z-index: 1; }
.edition__cell { opacity: 0; animation: edition-in 600ms var(--ease-out) forwards; }
.edition__cell--taken { animation-name: edition-in-dim; }
@keyframes edition-in { to { opacity: 1; } }
@keyframes edition-in-dim { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .edition__cell { animation: none; opacity: 1; } .edition__cell--taken { opacity: 0.55; } }

.edition__panel {
  margin: var(--space-8) auto 0;
  max-width: 420px;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
}
.edition__panel-num { font-family: var(--font-heading); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1.1; color: var(--color-text); margin: 0; }
.edition__panel-of { font-size: 0.45em; color: var(--color-text-faint); }
.edition__panel-price { margin: var(--space-3) 0 var(--space-6); }
.edition__updated { margin: var(--space-6) auto 0; max-width: none; text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); }

@media (max-width: 640px) {
  .edition__grid { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .edition__cell { font-size: 0.78rem; }
  .edition__panel {
    position: sticky; bottom: 12px; z-index: 5;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-1) var(--space-4);
    padding: var(--space-4); text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }
  .edition__panel .eyebrow { grid-column: 1 / -1; margin: 0; }
  .edition__panel-num { font-size: 1.9rem; }
  .edition__panel-price { grid-column: 1 / -1; margin: 0 0 var(--space-2); font-size: var(--text-xs); }
  .edition__panel .btn { grid-column: 1 / -1; width: 100%; }
}

/* ===================== FAQ ===================== */

.faq__list { border-top: 1px solid var(--color-divider); }
.faq__item { border-bottom: 1px solid var(--color-divider); }
.faq__item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-6);
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text);
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-sans); font-weight: 200; font-size: 1.5em; line-height: 1;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover::after { color: var(--color-text); }
.faq__item p { margin: 0 0 var(--space-6); max-width: 680px; }
.faq__item p a, .faq__more a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.faq__more { margin-top: var(--space-8); text-align: center; max-width: none; }

/* Dark theme: keep text crisp — thin light text on dark looks dim */
[data-theme='dark'] p { font-weight: 300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) p { font-weight: 300; } }

.edition__panel[hidden] { display: none !important; }

/* Dark theme: no dimming of mountains/photos at all */
[data-theme='dark'] .stage__shade { opacity: 0; }
[data-theme='dark'] .stage__shade::after { display: none; }

/* ---------- Занятые номера: благородный красный ---------- */
:root { --color-taken: #a8262b; }
[data-theme='dark'] { --color-taken: #d4564f; }
.edition__cell--taken,
.edition__cell--taken:hover {
  opacity: 1;
  color: var(--color-taken);
  border-color: var(--color-taken);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-taken) 55%, transparent) 0 1px, transparent 1px 5px);
  box-shadow: none; font-weight: 500;
}
.edition__cell--taken { animation-name: edition-in; }
@media (prefers-reduced-motion: reduce) { .edition__cell--taken { opacity: 1; } }
.edition__swatch--taken {
  border-color: var(--color-taken);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--color-taken) 55%, transparent) 0 1px, transparent 1px 4px);
}

/* ===================== GLASSES PAGE — mountain stage behind the product ===================== */
.has-stage main > div:not(.g-stage) { background: var(--color-bg); position: relative; }
.stage__layer--glasses { background-position: 50% 42%; }
.g-stage {
  position: relative;
  margin-top: calc(-1 * var(--header-h, 61px));
  padding-top: var(--header-h, 61px);
  color: #f4f2ec;
  isolation: isolate;
}
.g-stage::before { /* soft readability veil + seamless fade into the page */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,10,12,.18) 0%, rgba(8,10,12,0) 22%, rgba(8,10,12,.10) 55%, rgba(8,10,12,.42) 76%, var(--color-bg) 100%);
}
.g-stage .section { padding-bottom: clamp(7.5rem, 20vw, 10rem); }
.g-stage .page-header p { color: rgba(247,245,239,.92); text-shadow: 0 1px 22px rgba(0,0,0,.45); }
.g-stage .desc { color: rgba(247,245,239,.92); text-shadow: 0 1px 18px rgba(0,0,0,.45); }
.g-stage .product-dossier__row,
.g-stage .product-dossier__row span { color: #f4f2ec; border-color: rgba(244,242,236,.32); }
.g-stage .product-dossier__serial,
.g-stage .product-info__note { color: rgba(244,242,236,.72); }
.g-stage .product-dossier__photo { box-shadow: 0 30px 60px -28px rgba(0,0,0,.55); }
.g-stage .product-dossier__thumbs button { border-color: rgba(244,242,236,.28); }
.g-stage .product-dossier__thumbs button.is-active { border-color: #f4f2ec; }
.g-stage .btn-primary { background: #f4f2ec; color: #15140f; border-color: #f4f2ec; text-shadow: none; }
.g-stage .btn-primary:hover { background: #fff; border-color: #fff; }
.g-stage .link-arrow { color: #f4f2ec; border-color: rgba(244,242,236,.6); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
[data-theme='dark'] .g-stage .btn-primary { background: #14130f; color: #f2efe4; border-color: rgba(242,239,228,.55); }
[data-theme='dark'] .g-stage .btn-primary:hover { background: #000; border-color: #f2efe4; }

/* ===================== AUTHENTICITY PAGE — tower at dawn ===================== */
.stage__layer--auth { background-position: 31% 40%; }
.g-stage--auth {
  min-height: min(92svh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.g-stage--auth::before {
  background: linear-gradient(180deg, rgba(8,10,12,.16) 0%, rgba(8,10,12,0) 30%, rgba(8,10,12,.18) 52%, rgba(8,10,12,.55) 80%, var(--color-bg) 100%);
}
.g-stage--auth .page-header { padding-bottom: clamp(6.5rem, 18vw, 9rem); }
.g-stage .page-header .eyebrow { color: rgba(244,242,236,.78); text-shadow: 0 1px 16px rgba(0,0,0,.4); }
.g-stage .page-header h1 { color: #f7f5ef; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.has-cert .g-stage--auth { min-height: 0; }
.section--tight:has(> .container--narrow > [data-cert-root]:empty) { display: none; }
@media (min-width: 900px) { .stage__layer--auth { background-position: 50% 38%; } }
/* Ornaments between panels keep a solid backdrop; only the motif fades in */
@supports (animation-timeline: scroll()) {
  .has-stage main > .ornament.reveal { opacity: 1; animation: none; }
  .has-stage main > .ornament.reveal svg {
    opacity: 0; animation: reveal-fade linear both;
    animation-timeline: view(); animation-range: entry 0% entry 55%;
  }
}

/* Страница очков: галерея ближе к подзаголовку, описание видно на первом экране */
.g-stage:not(.g-stage--auth) .page-header { padding-top: clamp(2.75rem, 7vw, var(--space-16)); padding-bottom: var(--space-5); }
.g-stage:not(.g-stage--auth) .section { padding-top: var(--space-4); }
@media (max-width: 980px) { .g-stage .product-hero { gap: var(--space-7, 1.75rem); } }

/* ===================== MIST SEAMS — fog between mountains and solid panels, grows with scroll ===================== */
[data-mist] { --mist: 0; z-index: 1; }
[data-mist]::before {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
  height: calc(72px + var(--mist) * 200px);
  --m-shift: calc(var(--mist) * 14%);
  background:
    radial-gradient(55% 60% at calc(18% + var(--m-shift)) 78%, color-mix(in srgb, var(--color-bg) 62%, transparent), transparent 72%),
    radial-gradient(48% 52% at calc(82% - var(--m-shift)) 70%, color-mix(in srgb, var(--color-bg) 55%, transparent), transparent 72%),
    radial-gradient(70% 40% at 50% 92%, color-mix(in srgb, var(--color-bg) 70%, transparent), transparent 75%),
    linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb, var(--color-bg) 18%, transparent) 30%,
      color-mix(in srgb, var(--color-bg) 52%, transparent) 58%,
      color-mix(in srgb, var(--color-bg) 86%, transparent) 84%,
      var(--color-bg) 100%);
  -webkit-backdrop-filter: blur(calc(1.5px + var(--mist) * 4.5px));
          backdrop-filter: blur(calc(1.5px + var(--mist) * 4.5px));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}
[data-mist="top"]::before { bottom: calc(100% - 3px); }
[data-mist="bottom"]::before { top: calc(100% - 3px); transform: scaleY(-1); }
/* текст и кнопки над горами остаются четкими поверх тумана */
.hero--stage > *, .bg-window > * { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { [data-mist] { --mist: .5 !important; } }

/* ===================== GLASSES — flight window before the edition map ===================== */
.stage__layer--numbers { background-position: 46% 58%; }
.bg-window--flight { min-height: 55svh; position: relative; overflow: hidden; }
@media (min-width: 900px) { .stage__layer--numbers { background-position: 50% 34%; } }

/* ===================== EDITION MAP over the towers — frosted glass panel ===================== */
.has-stage main > section.edition--scene:not(.hero--stage):not(.bg-window) {
  --veil: color-mix(in srgb, var(--color-bg) 46%, transparent);
  background: linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--color-bg) 12%, transparent) 60px, color-mix(in srgb, var(--color-bg) 30%, transparent) 130px, var(--veil) 220px, var(--veil) 72%, var(--color-bg) 100%);
  padding-block: var(--space-16) var(--space-20, 5rem);
}
/* the fog above the map is part of the veil itself: no seam, the landscape simply settles into haze */
.edition--scene[data-mist]::before { display: none; }
.edition--scene > .container--default {
  position: relative;
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
          backdrop-filter: blur(18px) saturate(1.08);
  border: 1px solid color-mix(in srgb, var(--color-bg) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent);
  outline-offset: -1px;
  box-shadow: 0 30px 80px -30px rgba(10, 14, 18, .35);
  padding: var(--space-12) var(--space-8) var(--space-10);
  max-width: min(1080px, calc(100% - 2 * var(--space-6)));
  margin-inline: auto;
}
[data-theme='dark'] .edition--scene > .container--default {
  background: color-mix(in srgb, var(--color-bg) 76%, transparent);
  border-color: rgba(242, 239, 228, .08);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
@media (max-width: 640px) {
  .has-stage main > section.edition--scene:not(.hero--stage):not(.bg-window) { padding-block: var(--space-10) var(--space-14, 3.5rem); }
  .edition--scene > .container--default {
    max-width: calc(100% - 20px);
    padding: var(--space-8) 12px var(--space-6);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .edition--scene > .container--default { background: color-mix(in srgb, var(--color-bg) 94%, transparent); }
}
/* soft corners for the glass map panel and the selected-number card */
.edition--scene > .container--default { border-radius: 16px; }
.edition__panel { border-radius: 12px; }
@media (max-width: 640px) { .edition--scene > .container--default { border-radius: 14px; } }

/* ===================== PACKAGING over the towers — same frosted glass as the map ===================== */
.has-stage main > section.pack-scene:not(.hero--stage):not(.bg-window) {
  --veil: color-mix(in srgb, var(--color-bg) 46%, transparent);
  background: linear-gradient(180deg,
    var(--color-bg) 0,
    color-mix(in srgb, var(--color-bg) 70%, transparent) 90px,
    var(--veil) 200px,
    var(--veil) calc(100% - 200px),
    color-mix(in srgb, var(--color-bg) 70%, transparent) calc(100% - 90px),
    var(--color-bg) 100%);
  padding-block: var(--space-20, 5rem);
}
.pack-scene > .container {
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
          backdrop-filter: blur(18px) saturate(1.08);
  border: 1px solid color-mix(in srgb, var(--color-bg) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--color-text) 7%, transparent);
  outline-offset: -1px;
  box-shadow: 0 30px 80px -30px rgba(10, 14, 18, .35);
  border-radius: 16px;
  padding: var(--space-8);
  max-width: min(1080px, calc(100% - 2 * var(--space-6)));
  margin-inline: auto;
}
.pack-scene .split__media { border-radius: 10px; overflow: hidden; }
[data-theme='dark'] .pack-scene > .container {
  background: color-mix(in srgb, var(--color-bg) 76%, transparent);
  border-color: rgba(242, 239, 228, .08);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
@media (max-width: 640px) {
  .has-stage main > section.pack-scene:not(.hero--stage):not(.bg-window) { padding-block: var(--space-14, 3.5rem); }
  .pack-scene > .container { max-width: calc(100% - 20px); padding: 12px 12px var(--space-6); border-radius: 14px; }
  .pack-scene .product-info__ctas { padding-inline: var(--space-2); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pack-scene > .container { background: color-mix(in srgb, var(--color-bg) 94%, transparent); }
}
.pack-scene .product-info__ctas { justify-content: center; text-align: center; }

/* ===================== SOFT CORNERS — a quiet, consistent radius across boxed elements ===================== */
:root { --r-media: 10px; --r-thumb: 6px; --r-btn: 6px; --r-cell: 3px; }
.product-dossier__photo, .split__media { border-radius: var(--r-media); }
.product-dossier__thumbs button { border-radius: var(--r-thumb); overflow: hidden; }
.btn, .btn-order { border-radius: var(--r-btn); }
.edition__cell { border-radius: var(--r-cell); }
.edition__swatch { border-radius: var(--r-cell); }

/* ===================== FREE CELLS — slate tone of the page-flip hand, clearly visible boxes ===================== */
:root { --slate: #3f474e; --slate-deep: #2d363d; }
.edition__cell:not(.edition__cell--special):not(.edition__cell--auction):not(.edition__cell--taken),
.edition__legend .edition__swatch:not([class*='--']) {
  border-color: color-mix(in srgb, var(--slate) 46%, transparent);
  background: color-mix(in srgb, var(--slate) 6%, transparent);
}
.edition__cell:not(.edition__cell--special):not(.edition__cell--auction):not(.edition__cell--taken) { color: var(--slate-deep); }
.edition__cell:not(.edition__cell--special):not(.edition__cell--auction):not(.edition__cell--taken):hover,
.edition__cell:not(.edition__cell--special):not(.edition__cell--auction):not(.edition__cell--taken):focus-visible {
  border-color: var(--slate-deep); background: color-mix(in srgb, var(--slate) 12%, transparent);
}
[data-theme='dark'] .edition__cell:not(.edition__cell--special):not(.edition__cell--auction):not(.edition__cell--taken),
[data-theme='dark'] .edition__legend .edition__swatch:not([class*='--']) {
  border-color: rgba(176, 190, 201, .38);
  background: rgba(120, 136, 148, .10);
  color: #c9d2d9;
}
[data-theme='dark'] .edition__cell:not(.edition__cell--special):not(.edition__cell--auction):not(.edition__cell--taken):hover {
  border-color: rgba(201, 212, 220, .75); background: rgba(120, 136, 148, .18);
}

/* ===================== SPECIAL CELLS — the gap of the double frame in the forest-slate tone picked from the towers photo ===================== */
:root { --forest-slate: #8fa2b4; }
:root:not([data-theme='dark']) .edition__cell--special,
:root:not([data-theme='dark']) .edition__swatch--special {
  box-shadow: inset 0 0 0 2px var(--forest-slate), inset 0 0 0 3px var(--color-text);
}

/* number tiles: separate soft cells instead of a ruled table, same corner as the map cells */
.num-grid { border: 0; gap: 4px; }
.num-grid li { border: 1px solid var(--color-border); border-radius: var(--r-cell); }
.num-grid--auction li { border-color: var(--color-text); }

/* sky-blue link — same family as the special-number frames, deep enough to read */
.link-arrow--sky { color: #5d7387; border-color: #8fa2b4; }
.link-arrow--sky:hover { color: #475b6d; border-color: #5d7387; }
[data-theme='dark'] .link-arrow--sky { color: #a9bccc; border-color: rgba(143, 162, 180, .7); }
[data-theme='dark'] .link-arrow--sky:hover { color: #c9d6e1; border-color: #a9bccc; }

/* authenticity hero — hyperreal tower at dawn, portrait for phones, wide for desktop */
.stage__layer--auth { background-image: url(./assets/bg-auth-m.webp); background-position: 30% 38%; }
@media (min-width: 900px) { .stage__layer--auth { background-image: url(./assets/bg-auth-d.webp); background-position: 50% 40%; } }

/* ===================== HYPERREAL BACKGROUNDS — portrait frames for phones, wide frames for desktop ===================== */
.stage__layer--hero    { background-image: url(./assets/bg2-hero-m.webp?v=20261025r);    background-position: 50% 45%; }
.stage__layer--peaks   { background-image: url(./assets/bg2-peaks-m.webp?v=20261025b);   background-position: 50% 40%; }
.stage__layer--glasses { background-image: url(./assets/bg2-glasses-m.webp); background-position: 50% 42%; }
.stage__layer--numbers { background-image: url(./assets/bg2-numbers-m.webp); background-position: 40% 55%; }
@media (min-width: 900px) {
  .stage__layer--hero    { background-image: url(./assets/bg2-hero-d.webp?v=20261025r);    background-position: 50% 45%; }
  .stage__layer--peaks   { background-image: url(./assets/bg2-peaks-d.webp?v=20261025b);   background-position: 50% 45%; }
  .stage__layer--glasses { background-image: url(./assets/bg2-glasses-d.webp); background-position: 50% 45%; }
  .stage__layer--numbers { background-image: url(./assets/bg2-numbers-d.webp); background-position: 50% 45%; }
}

/* Specs lead */
.section-head .section-head__lead { max-width: 58ch; color: var(--color-text-muted); line-height: 1.7; margin-top: var(--space-2); }

/* Numbers backdrop: keep the summit line clear of the solid header */
.stage__layer--numbers { top: 0; transform-origin: 50% 0; background-position: 40% 0; }
@media (min-width: 900px) { .stage__layer--numbers { background-position: 50% 0; } }

/* Hero CTAs: two equal buttons, inner hairline frame, gently raised */
.hero--stage .hero__ctas {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  width: 100%; max-width: 340px; margin-inline: auto;
}
@media (min-width: 640px) { .hero--stage .hero__ctas { grid-template-columns: 1fr 1fr; max-width: 560px; } }
.hero--stage .hero__ctas .btn { position: relative; width: 100%; padding: 1.05em 1.2em; }
.hero--stage .hero__ctas .btn::after {
  content: ''; position: absolute; inset: 3px; pointer-events: none;
  border-radius: calc(var(--r-btn) - 2px);
  border: 1px solid rgba(21,20,15,.16);
}
.hero--stage .btn-primary {
  background: linear-gradient(180deg, #fbfaf6 0%, #ebe8df 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 1px rgba(0,0,0,.08),
              0 1px 2px rgba(0,0,0,.22), 0 8px 20px -6px rgba(0,0,0,.45);
}
.hero--stage .btn-primary:hover { background: linear-gradient(180deg, #fff 0%, #f1eee6 100%); }
.btn-glass {
  color: #f4f2ec; border: 1px solid rgba(244,242,236,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 1px rgba(0,0,0,.18),
              0 1px 2px rgba(0,0,0,.25), 0 8px 20px -6px rgba(0,0,0,.5);
}
.btn-glass:hover { background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.08) 100%); }
.hero--stage .hero__ctas .btn-glass::after { border-color: rgba(244,242,236,.22); }
[data-theme='dark'] .hero--stage .btn-primary {
  background: linear-gradient(180deg, #1d1c17 0%, #0f0e0b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 1px rgba(0,0,0,.4),
              0 1px 2px rgba(0,0,0,.4), 0 8px 20px -6px rgba(0,0,0,.6);
}
[data-theme='dark'] .hero--stage .btn-primary:hover { background: linear-gradient(180deg, #24231d 0%, #121110 100%); }
[data-theme='dark'] .hero--stage .hero__ctas .btn-primary::after { border-color: rgba(242,239,228,.2); }

/* All buttons: inner hairline frame, gently raised (same recipe as hero CTAs) */
.btn, .btn-order { position: relative; isolation: isolate; transition: background .25s ease, box-shadow .25s ease, transform .15s ease; }
.btn::after, .btn-order::after {
  content: ''; position: absolute; inset: 3px; pointer-events: none;
  border-radius: calc(var(--r-btn) - 2px);
  border: 1px solid rgba(255,255,255,.2);
}
.btn:active, .btn-order:active { transform: translateY(1px); }
.btn-primary, .btn-order {
  background: linear-gradient(180deg, #34322a 0%, #0f0e0b 100%);
  border-color: #0f0e0b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 1px rgba(0,0,0,.4),
              0 1px 2px rgba(0,0,0,.2), 0 8px 18px -6px rgba(0,0,0,.4);
}
.btn-primary:hover, .btn-order:hover { background: linear-gradient(180deg, #423f35 0%, #191812 100%); border-color: #191812; }
.btn-outline {
  color: #15140f; border: 1px solid rgba(21,20,15,.5);
  background: linear-gradient(180deg, #ffffff 0%, #e9eef0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 1px rgba(0,0,0,.07),
              0 1px 2px rgba(0,0,0,.14), 0 8px 18px -6px rgba(0,0,0,.26);
}
.btn-outline::after { border-color: rgba(21,20,15,.16); }
.btn-outline:hover { color: #15140f; background: linear-gradient(180deg, #ffffff 0%, #f2f6f7 100%); }
[data-theme='dark'] .btn-primary, [data-theme='dark'] .btn-order {
  color: #15140f; border-color: #e6e2d6;
  background: linear-gradient(180deg, #fbfaf6 0%, #e3dfd3 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 1px rgba(0,0,0,.1),
              0 1px 2px rgba(0,0,0,.4), 0 8px 20px -6px rgba(0,0,0,.65);
}
[data-theme='dark'] .btn-primary::after, [data-theme='dark'] .btn-order::after { border-color: rgba(21,20,15,.16); }
[data-theme='dark'] .btn-primary:hover, [data-theme='dark'] .btn-order:hover { background: linear-gradient(180deg, #fff 0%, #ece9e0 100%); border-color: #ece9e0; }
[data-theme='dark'] .btn-outline {
  color: #f2efe4; border-color: rgba(242,239,228,.45);
  background: linear-gradient(180deg, #2a2922 0%, #13120e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 1px rgba(0,0,0,.4),
              0 1px 2px rgba(0,0,0,.4), 0 8px 20px -6px rgba(0,0,0,.6);
}
[data-theme='dark'] .btn-outline::after { border-color: rgba(242,239,228,.18); }
[data-theme='dark'] .btn-outline:hover { color: #f2efe4; background: linear-gradient(180deg, #333129 0%, #181712 100%); }
/* buttons over the mountain backdrops stay light, like the hero */
.g-stage .btn-primary {
  color: #15140f; border-color: #f4f2ec;
  background: linear-gradient(180deg, #fbfaf6 0%, #ebe8df 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 1px rgba(0,0,0,.08),
              0 1px 2px rgba(0,0,0,.22), 0 8px 20px -6px rgba(0,0,0,.45);
}
.g-stage .btn-primary::after { border-color: rgba(21,20,15,.16); }
.g-stage .btn-primary:hover { background: linear-gradient(180deg, #fff 0%, #f1eee6 100%); }
[data-theme='dark'] .g-stage .btn-primary {
  color: #f2efe4; border-color: rgba(242,239,228,.55);
  background: linear-gradient(180deg, #1d1c17 0%, #0f0e0b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 1px rgba(0,0,0,.4),
              0 1px 2px rgba(0,0,0,.4), 0 8px 20px -6px rgba(0,0,0,.6);
}
[data-theme='dark'] .g-stage .btn-primary::after { border-color: rgba(242,239,228,.2); }
[data-theme='dark'] .g-stage .btn-primary:hover { background: linear-gradient(180deg, #24231d 0%, #121110 100%); }

/* translucent frosted-glass ornament over the misty mountains */
.ornament--glass { opacity: 1; }
.ornament--glass svg { width: 108px; filter: none; }
