/* =============================================================
   LabRocks · Home (Option B)
   Editorial design system with light + dark modes
   ============================================================= */

:root {
  /* Editorial palette (constants) */
  --ivory: #F4F0EA;
  --ivory-soft: #EDE7DD;
  --ivory-warm: #E8E1D3;
  --ink: #0E0E0C;
  --ink-soft: #1A1916;
  --ink-mute: #4A463E;
  --rule: #C9C0B0;
  --rule-soft: #DDD5C5;
  --champagne: oklch(0.78 0.04 80);
  --champagne-deep: oklch(0.62 0.05 75);

  /* Type */
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* Density */
  --pad-x: clamp(24px, 5vw, 88px);
  --pad-y: clamp(56px, 7vw, 112px);
  --gap: clamp(20px, 2.5vw, 40px);

  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
  --easing-soft: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Theme tokens (default = dark) */
  --bg: var(--ink);
  --bg-elevated: var(--ink-soft);
  --bg-warm: #15140F;
  --fg: var(--ivory);
  --fg-soft: var(--ivory-soft);
  --fg-mute: rgba(244, 240, 234, 0.55);
  --fg-line: rgba(244, 240, 234, 0.16);
  --accent: var(--champagne);
  --accent-deep: var(--champagne-deep);
  --shadow: 0 1px 0 rgba(244, 240, 234, 0.06);
}

/* Cyrillic / Greek: EB Garamond on Google Fonts has no Cyrillic and a soft
   Greek; Cormorant Garamond carries both with a sharper, more classical
   shape that matches the brand voice. Promote Cormorant ahead of EB for
   non-Latin languages. */
html[lang="ru"],
html[lang="el"] {
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}

[data-theme="light"] {
  --bg: var(--ivory);
  --bg-elevated: #ffffff;
  --bg-warm: var(--ivory-warm);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-mute: var(--ink-mute);
  --fg-line: var(--rule-soft);
  --accent: var(--champagne-deep);
  --accent-deep: var(--champagne-deep);
  --shadow: 0 1px 0 var(--rule-soft);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  opacity: 0;
  transition: opacity 0.5s var(--easing), background 0.6s var(--easing-soft), color 0.4s var(--easing-soft);
}
body.is-loaded { opacity: 1; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--easing-soft), opacity 0.3s var(--easing-soft); }
ul { list-style: none; padding: 0; margin: 0; }

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

/* Skip-to-content — appears on first Tab, hidden otherwise. */
.skip-link {
  position: absolute; top: 0; left: 0;
  transform: translateY(-100%);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--fg-line);
  border-radius: 0 0 6px 0;
  z-index: 10000;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent-deep, #c9a74a); outline-offset: 2px; }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 0.95; }
.serif-l { font-family: var(--serif); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.serif-i { font-family: var(--serif); font-weight: 300; font-style: italic; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-mute);
  display: block;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
}
.accent { color: var(--accent); font-style: italic; }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--easing), transform 1.1s var(--easing);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.95s var(--easing), transform 0.95s var(--easing);
}
.reveal-stagger.is-revealed > * { opacity: 1; transform: none; }
.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 360ms; }

/* ---------- Page index strip ---------- */
.page-index {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--fg-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
  gap: 18px;
}
.page-index nav { display: flex; gap: 22px; flex-wrap: nowrap; align-items: center; min-width: 0; }
.page-index nav a:hover { color: var(--fg); }
.page-index .compare-link {
  border: 1px solid var(--fg-line);
  padding: 6px 12px;
  border-radius: 999px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.page-index .compare-link:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.page-index-right { display: flex; align-items: center; gap: 18px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
  padding: 4px 0;
}
.theme-toggle .toggle-track {
  position: relative;
  display: inline-block;
  width: 30px; height: 16px;
  border: 1px solid var(--fg-mute);
  border-radius: 999px;
  transition: border-color 0.3s var(--easing-soft);
}
.theme-toggle .toggle-knob {
  position: absolute;
  top: 1px; left: 1px;
  width: 12px; height: 12px;
  background: var(--fg);
  border-radius: 50%;
  transition: transform 0.45s var(--easing), background 0.3s var(--easing-soft);
}
[data-theme="light"] .theme-toggle .toggle-knob { transform: translateX(14px); }
.theme-toggle:hover .toggle-track { border-color: var(--fg); }

/* lang switch (compact in page-index) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.12em;
}
.lang-switch button {
  font: inherit; padding: 6px 4px; opacity: 0.55;
  min-width: 32px; min-height: 32px;
  transition: opacity 0.25s, color 0.2s;
  color: var(--fg-mute);
}
.lang-switch button:hover { color: var(--fg); opacity: 1; }
.lang-switch button.is-active { color: var(--fg); opacity: 1; font-weight: 600; }
.lang-switch span { color: var(--fg-mute); opacity: 0.4; user-select: none; }

/* Global focus indicator */
:focus-visible {
  outline: 2px solid var(--accent, oklch(0.62 0.05 75));
  outline-offset: 2px;
  border-radius: 2px;
}
button:focus-visible, a:focus-visible { outline-offset: 3px; }

/* ---------- Burger + slide-out nav drawer ---------- */
.nav-burger {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--fg-line);
  border-radius: 4px;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.3s ease, border-color 0.3s ease;
  justify-self: start;
  padding: 0;
}
/* WCAG 2.5.5 — invisible 44x44 hit area without inflating the visual square */
.nav-burger::before {
  content: '';
  position: absolute;
  inset: -6px;
}
.nav-burger:hover { background: rgba(255,255,255,0.06); border-color: var(--fg); }
[data-theme="light"] .nav-burger:hover { background: rgba(14,14,12,0.05); border-color: var(--fg); }
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--easing-soft, ease), opacity 0.25s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.brand-bar-spacer { width: 36px; height: 36px; display: block; }
@media (max-width: 600px) {
  .nav-burger, .brand-bar-spacer { width: 32px; height: 32px; }
  .nav-burger span { width: 14px; }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}
.nav-drawer[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,12,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--easing-soft, ease);
}
.nav-drawer[aria-hidden="false"] .nav-drawer-backdrop { opacity: 1; }

.nav-drawer-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  width: min(360px, 86vw);
  max-height: calc(100vh - 32px);
  padding: 22px 28px 26px;
  background: rgba(14,14,12,0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #F4F0EA;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(calc(-100% - 32px));
  transition: transform 0.45s var(--easing-soft, cubic-bezier(0.2, 0.7, 0.2, 1));
  box-shadow: 16px 16px 60px rgba(0,0,0,0.45);
  overflow-y: auto;
}
[data-theme="light"] .nav-drawer-panel {
  background: rgba(244,240,234,0.86);
  color: #0E0E0C;
  border-color: rgba(14,14,12,0.08);
}
.nav-drawer[aria-hidden="false"] .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-drawer-close {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.3s var(--easing-soft, ease);
}
/* WCAG 2.5.5 — extend hit area to 44x44 invisibly */
.nav-drawer-close::before {
  content: '';
  position: absolute;
  inset: -6px;
}
.nav-drawer-close:hover { background: rgba(255,255,255,0.08); transform: rotate(90deg); }
[data-theme="light"] .nav-drawer-close:hover { background: rgba(14,14,12,0.06); }

.nav-drawer-brand {
  font-size: 18px;
  letter-spacing: 0.22em;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-drawer-links a {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.005em;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s ease, transform 0.3s var(--easing-soft, ease);
}
.nav-drawer-links a:hover { opacity: 0.7; transform: translateX(4px); }
.nav-drawer-links a[aria-current="page"]::before {
  content: '·';
  position: absolute;
  left: -16px;
  color: var(--accent, currentColor);
}

.nav-drawer-tools {
  margin-top: 4px;
  padding: 18px 4px 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-drawer-tools .lang-switch { gap: 6px; }
.nav-drawer-tools .theme-toggle { padding: 4px 0; }
[data-theme="light"] .nav-drawer-tools { border-top-color: rgba(14,14,12,0.1); }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer-panel,
  .nav-drawer-backdrop,
  .nav-burger span { transition: none; }
}

/* ---------- Brand bar ---------- */
.brand-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px var(--pad-x);
  gap: 36px;
  border-bottom: 1px solid var(--fg-line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: background 0.6s var(--easing-soft);
}
.brand-bar-left, .brand-bar-right {
  display: flex; align-items: center; gap: 28px;
}
.brand-bar-right { justify-content: flex-end; }
/* Logo-only variant: burger on the left, wordmark centered, spacer right
   (the spacer keeps the wordmark optically centered without recomputing widths) */
.brand-bar-minimal { grid-template-columns: auto 1fr auto; align-items: center; justify-items: center; gap: 16px; }
.brand-bar-minimal .nav-burger { justify-self: start; }
.brand-bar-minimal .brand-mark { justify-self: center; }
.brand-bar-minimal .brand-bar-spacer { justify-self: end; }
.nav-link {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg);
  position: relative;
  padding: 4px 0;
  cursor: pointer;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--easing);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.cart { color: var(--fg-mute); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.3s var(--easing-soft);
}
.brand-mark .brand-mark-diamond {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.16em;
  /* letter-spacing 0.18em is applied after R but not before C, so a flat
     symmetric margin reads asymmetric (R-side wider). Negative left margin
     cancels the trailing letter-spacing so both visible gaps land at
     ~0.10em — tighter than a letter pair, which is right for a glyph
     standing in for the O. */
  margin: 0 0.10em 0 -0.08em;
}
.brand-mark:hover { opacity: 0.78; }

/* ---------- Section ---------- */
.section { padding: 0 var(--pad-x); }
.section-divider { border-top: 1px solid var(--fg-line); margin: 0 var(--pad-x); }

/* ---------- Hero ---------- */
.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: calc(var(--pad-y) * 0.45) var(--pad-x) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 32px 40px;
  flex: 1;
  align-content: start;
  align-items: end;
}
.hero-meta {
  grid-column: 1 / 2; grid-row: 1 / 2;
  align-self: start;
}
.hero-meta .mono { color: var(--fg-mute); margin-top: 18px; }
.hero-title {
  grid-column: 1 / 2; grid-row: 2 / 3;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.96;
  font-size: clamp(56px, 11vw, 180px);
  align-self: start;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
:lang(ru) .hero-title,
:lang(el) .hero-title { font-size: clamp(40px, 9vw, 132px); letter-spacing: -0.005em; }
/* Russian: force a 3-line split — "Блеск," / "сделанный" / "на заказ."
   The static <br> between b and c becomes redundant once b is block, so hide it. */
:lang(ru) .hero-title [data-i18n="home_hero_title_b"] { display: block; }
:lang(ru) .hero-title br { display: none; }
.hero-aside {
  grid-column: 1 / 2; grid-row: 3 / 4;
  align-self: end;
  max-width: 380px;
  padding-bottom: 24px;
}
.hero-aside p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin-bottom: 28px;
}
.hero-image {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 5.4;
  background-size: cover;
  background-position: center;
  position: relative;
  transform: translateY(var(--p, 0px));
  transition: transform 0.1s linear;
  overflow: hidden;
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,0) 60%, rgba(14,14,12,0.4) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero-image::after { display: none; }
.hero-image-corner {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}
[data-theme="light"] .hero-image-corner { color: rgba(255,255,255,0.85); }

/* Hero carousel — 8 editorial frames, autoplay-fade, occupies the right
   column on desktop and stacks under the hero copy on mobile. */
.hero-carousel {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  position: relative;
  overflow: hidden;
}
.hero-carousel-track {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-carousel-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 2;
}
.hero-carousel-dots button {
  appearance: none;
  width: 18px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-carousel-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: heroSwipeHint 5s ease-in-out 1.2s 1 forwards;
}
@keyframes heroSwipeHint {
  0%   { opacity: 0; transform: translateY(4px); }
  18%  { opacity: 1; transform: translateY(0); }
  78%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@media (hover: hover) and (pointer: fine) { .hero-carousel-hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-hint { animation: none; opacity: 0.7; }
}
.hero-carousel-dots button.is-active {
  background: rgba(255,255,255,0.95);
  width: 28px;
}
[data-theme="light"] .hero-carousel-dots button { background: rgba(14,14,12,0.25); }
[data-theme="light"] .hero-carousel-dots button.is-active { background: rgba(14,14,12,0.85); }
.hero-carousel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,0) 60%, rgba(14,14,12,0.28) 100%);
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .hero-carousel::after { background: linear-gradient(180deg, rgba(255,255,255,0) 65%, rgba(255,255,255,0.25) 100%); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.4s var(--easing-soft), color 0.4s var(--easing-soft);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.invert { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.invert:hover { background: transparent; color: var(--fg); }
.btn .arrow { transition: transform 0.4s var(--easing); }
.btn:hover .arrow { transform: translateX(4px); }
.txt-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--easing);
}
.txt-link:hover { gap: 18px; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--fg-line);
  border-bottom: 1px solid var(--fg-line);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 80px;
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 45s linear infinite;
  width: max-content;
}
.ticker-row {
  display: flex; align-items: center; gap: 60px;
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 300;
  color: var(--fg-soft);
  opacity: 0.85;
  white-space: nowrap;
}
.ticker-row .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Intro band ---------- */
.intro {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--fg-line);
}
.intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 60px;
  align-items: start;
}
.intro-grid .mono { text-transform: uppercase; }
.intro-copy {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: 880px;
}
.intro-link {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  display: inline-flex;
  gap: 12px;
  transition: gap 0.4s var(--easing);
  align-self: start;
}
.intro-link:hover { gap: 18px; }

/* ---------- The Four feature row ---------- */
.feature {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--fg-line);
}
.feature-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  display: flex; flex-direction: column; gap: 18px;
  cursor: pointer;
}
.feature-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-warm);
  overflow: hidden;
  transition: transform 0.7s var(--easing);
}
@media (hover: hover) {
  .feature-card:hover .feature-frame { transform: translateY(-6px); }
}
.feature-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2) 100%);
}
[data-theme="light"] .feature-frame::after { display: none; }
.feature-frame-corner {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
}
.feature-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  opacity: 0.85;
  margin-top: 4px;
}

/* ---------- Editorial pull ---------- */
.editorial {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--fg-line);
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.editorial::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.editorial-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.editorial .eyebrow { color: var(--fg-soft); opacity: 0.75; margin: 0 0 28px; }
.editorial h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 36px;
  color: var(--fg);
}
.editorial-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--fg-soft);
  margin: 0 0 44px;
}
.link-arrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
  transition: gap 0.4s var(--easing), color 0.3s;
}
.link-arrow:hover { gap: 18px; color: var(--accent); }
.link-arrow .arrow { transition: transform 0.4s var(--easing); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--fg-line);
  padding: 100px var(--pad-x) 30px;
  transition: background 0.6s var(--easing-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.foot-brand-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.foot-brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  margin-top: 14px;
  text-transform: uppercase;
}
.foot-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.foot-col ul li {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.6;
}
.foot-col a:hover { opacity: 0.55; }
.foot-letters p { margin-top: 14px; opacity: 0.75; }
.foot-input {
  display: flex; align-items: center;
  margin-top: 18px;
  border-bottom: 1px solid var(--fg);
  padding: 8px 0;
}
.foot-input input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--fg);
}
.foot-input input::placeholder { color: var(--fg-mute); opacity: 0.6; }
.foot-input button {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--fg);
  transition: background 0.3s, color 0.3s;
}
.foot-input button:hover { background: var(--fg); color: var(--bg); }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--fg-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.foot-base a { transition: color 0.3s; }
.foot-base a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-aside { padding-bottom: 0; }
  .hero-image { grid-column: 1; grid-row: auto; max-width: 100%; }
  .hero-carousel { grid-column: 1; grid-row: auto; max-width: 100%; justify-self: stretch; aspect-ratio: 4 / 4.4; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  /* Hide redundant CTA pill in page-index when space is tight (brand-bar already has COLLECTION) */
  .page-index .compare-link { display: none; }
  .page-index nav { gap: 18px; }
}
@media (max-width: 600px) {
  :root { --pad-y: 64px; }
  .page-index { position: static; padding: 8px 16px; }
  .page-index nav { display: none; }
  .page-index .brand-mini { display: none; }
  /* WCAG 2.5.5 — keep lang-switch usable with thumbs. */
  .lang-switch button { min-width: 44px; min-height: 44px; padding: 8px 10px; }
  .brand-bar { position: sticky; top: 0; padding: 18px 16px; gap: 12px; }
  .brand-bar-left .nav-link, .brand-bar-right .nav-link.cart-text { display: none; }
  .brand-mark { font-size: 20px; }
  .hero { padding: 48px 16px 0; min-height: 70vh; }
  .hero-title { font-size: clamp(48px, 14vw, 92px); }
  .hero-aside p { font-size: 17px; }
  .ticker-row { font-size: 20px; gap: 32px; }
  .ticker-track { gap: 32px; }
  .intro { padding: var(--pad-y) 16px; }
  .intro-copy { font-size: 22px; }
  .feature { padding: var(--pad-y) 16px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-name { font-size: 22px; }
  /* Cards stack vertically on mobile — the horizontal scroll hint is misleading */
  .feature-head [data-i18n="home_feature_scroll"] { display: none; }
  .editorial { padding: var(--pad-y) 20px; }
  .site-footer { padding: 64px 16px 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-brand-mark { font-size: 32px; }
  .foot-base { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}


/* ============================================================
   Consent banner (cookies / third-party assets)
   ============================================================ */
.consent-banner {
  position: fixed; left: 50%; bottom: 16px; right: auto; z-index: 1000;
  transform: translateX(-50%);
  width: min(480px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr; align-items: stretch;
  row-gap: 10px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--fg-line);
  border-radius: 12px;
  font-family: var(--sans);
  color: var(--fg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  animation: consent-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes consent-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.consent-body {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px; line-height: 1.5;
  color: var(--fg-mute, var(--fg));
}
.consent-body a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.consent-options {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 8px;
  margin: 4px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--fg-line);
  border-radius: 8px;
}
.consent-option {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; line-height: 1.4;
  cursor: pointer;
}
.consent-option input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-option input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.7; }
.consent-option strong { display: block; font-weight: 500; color: var(--fg); }
.consent-option em { display: block; font-style: normal; color: var(--fg-mute, var(--fg)); opacity: 0.75; font-size: 11px; margin-top: 2px; }
.consent-actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
.consent-btn {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--fg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.consent-btn-primary { background: var(--fg); color: var(--bg); }
.consent-btn-primary:hover { background: transparent; color: var(--fg); }
.consent-btn-secondary { background: transparent; color: var(--fg-mute, var(--fg)); border-color: var(--fg-line); }
.consent-btn-secondary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@keyframes consent-in-mobile {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .consent-banner {
    left: 12px; right: 12px; transform: none; width: auto; bottom: 12px;
    animation-name: consent-in-mobile;
  }
}

/* Form privacy notice (newsletter / appointment) */
.form-privacy {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11px; line-height: 1.5; color: var(--fg-mute);
  margin-top: 10px;
}
.form-privacy input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
