/* Optica.la — Luxury Vintage Eyewear */

:root {
  /* Typography & layout — global (fixed: were mistakenly only in Vegas block) */
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Default = Tuscany */
  --tuscan-yellow: #E8B838;
  --tuscan-yellow-deep: #C8932B;
  --tuscan-blue: #1E4D7B;
  --tuscan-sky: #6FA3C7;
  --terracotta: #B8553A;
  --olive: #7A6B3D;
  --carbon: #1A1814;
  --paper: #F8F1DD;
  --paper-deep: #EDE2C2;

  --bg: #F8F1DD;
  --bg-2: #EDE2C2;
  --bg-3: #EDE2C2;
  --rule: rgba(30, 77, 123, 0.22);
  --rule-strong: rgba(30, 77, 123, 0.55);
  --fg: #1E4D7B;
  --muted: #3A5F82;
  --muted-2: #7A6B3D;

  --accent-tobacco: #C8932B;
  --accent-gold: #E8B838;
  --accent-blush: #1E4D7B;
  /* Darkened "ink" variants — readable on light card backgrounds (≥4.5:1 on white). */
  --accent-tobacco-ink: #6E4F12;
  --accent-gold-ink: #6E4F12;
  --accent-blush-ink: #1E4D7B;
}

/* ─── Theme: Tuscany (default) ─── */
html[data-theme="tuscany"] {
  --paper: #F8F1DD; --paper-deep: #EDE2C2;
  --bg: #F8F1DD; --bg-2: #EDE2C2; --bg-3: #EDE2C2;
  --fg: #1E4D7B; --muted: #3A5F82; --muted-2: #7A6B3D;
  --rule: rgba(30, 77, 123, 0.22); --rule-strong: rgba(30, 77, 123, 0.55);
  --accent-tobacco: #C8932B; --accent-gold: #E8B838; --accent-blush: #1E4D7B;
  --accent-tobacco-ink: #6E4F12; --accent-gold-ink: #6E4F12; --accent-blush-ink: #1E4D7B;
  --tuscan-yellow: #E8B838; --tuscan-yellow-deep: #C8932B; --tuscan-blue: #1E4D7B;
}

/* ─── Theme: Sicily — blood orange + Mediterranean ─── */
html[data-theme="sicily"] {
  --paper: #FBEFD8; --paper-deep: #F4E0BC;
  --bg: #FBEFD8; --bg-2: #F4E0BC; --bg-3: #F4E0BC;
  --fg: #1F3D5C; --muted: #3D5C7C; --muted-2: #8B4A2A;
  --rule: rgba(31, 61, 92, 0.22); --rule-strong: rgba(31, 61, 92, 0.55);
  --accent-tobacco: #D9531E; --accent-gold: #E8932B; --accent-blush: #1F3D5C;
  --accent-tobacco-ink: #8C2D08; --accent-gold-ink: #7A4A0E; --accent-blush-ink: #1F3D5C;
  --tuscan-yellow: #E8932B; --tuscan-yellow-deep: #D9531E; --tuscan-blue: #1F3D5C;
}

/* ─── Theme: Topanga — golden hour, Pacific Coast ─── */
html[data-theme="topanga"] {
  --paper: #F5E9CC; --paper-deep: #E8D4A0;
  --bg: #F5E9CC; --bg-2: #E8D4A0; --bg-3: #E8D4A0;
  --fg: #2E3A24; --muted: #4A5638; --muted-2: #8C6A2E;
  --rule: rgba(46, 58, 36, 0.22); --rule-strong: rgba(46, 58, 36, 0.55);
  --accent-tobacco: #B8732C; --accent-gold: #D49B30; --accent-blush: #2E3A24;
  --accent-tobacco-ink: #5C3A14; --accent-gold-ink: #6B4A12; --accent-blush-ink: #2E3A24;
  --tuscan-yellow: #D49B30; --tuscan-yellow-deep: #B8732C; --tuscan-blue: #2E3A24;
}

/* ─── Theme: Miami — neon pastel, art deco ─── */
html[data-theme="miami"] {
  --paper: #FFEFE0; --paper-deep: #FFD8C2;
  --bg: #FFEFE0; --bg-2: #FFD8C2; --bg-3: #FFD8C2;
  --fg: #003E5C; --muted: #1F6A8E; --muted-2: #C97A3F;
  --rule: rgba(0, 62, 92, 0.22); --rule-strong: rgba(0, 62, 92, 0.55);
  --accent-tobacco: #FF6B9D; --accent-gold: #00B5C9; --accent-blush: #003E5C;
  --accent-tobacco-ink: #A8244A; --accent-gold-ink: #006D7A; --accent-blush-ink: #003E5C;
  --tuscan-yellow: #00B5C9; --tuscan-yellow-deep: #FF6B9D; --tuscan-blue: #003E5C;
}

/* ─── Theme: Vegas — high-roller gold + black ─── */
html[data-theme="vegas"] {
  --paper: #F2E5BD; --paper-deep: #DCC68A;
  --bg: #F2E5BD; --bg-2: #DCC68A; --bg-3: #DCC68A;
  --fg: #1A1410; --muted: #3D2E22; --muted-2: #8C6A1F;
  --rule: rgba(26, 20, 16, 0.25); --rule-strong: rgba(26, 20, 16, 0.6);
  --accent-tobacco: #B8232C; --accent-gold: #D4A017; --accent-blush: #1A1410;
  --accent-tobacco-ink: #7A1418; --accent-gold-ink: #6B4A0A; --accent-blush-ink: #1A1410;
  --tuscan-yellow: #D4A017; --tuscan-yellow-deep: #B8232C; --tuscan-blue: #1A1410;
}

/* ─── Theme: Kodachrome — sky blue + royal gold (Thomas Crown) ─── */
html[data-theme="kodachrome"] {
  --paper: #B7E6FB; --paper-deep: #A0DAF5;
  --bg: #B7E6FB; --bg-2: #A0DAF5; --bg-3: #F4EFE3;
  --fg: #1B2B47; --muted: #3F6594; --muted-2: #6F7E92;
  --rule: rgba(21, 23, 21, 0.18); --rule-strong: rgba(21, 23, 21, 0.42);
  --accent-tobacco: #B58C4E; --accent-gold: #EFCD47; --accent-blush: #3F6594;
  --accent-tobacco-ink: #5C3F18; --accent-gold-ink: #6B5614; --accent-blush-ink: #1B2B47;
  --tuscan-yellow: #EFCD47; --tuscan-yellow-deep: #B58C4E; --tuscan-blue: #1B2B47;
}
html[data-theme="kodachrome"] .card { background: #F4EFE3; }

/* ─────────────────────────────────── BASE ─────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Subtle film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.10  0 0 0 0 0.18  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
p { margin: 0 0 1em; }

/* ─────────────────────────────────── NAV ─────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  background: transparent;
  transition: background 320ms ease, backdrop-filter 320ms ease, border-color 320ms ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(183, 230, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule-strong);
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.wordmark .dot { color: var(--fg); }
.wordmark .tld { font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--tuscan-yellow-deep); }
.nav-links .order {
  color: var(--paper);
  background: var(--tuscan-blue);
  border: 1px solid var(--fg);
  padding: 9px 16px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.nav-links .order:hover { background: var(--tuscan-yellow); color: var(--fg); border-color: var(--fg); }

/* ───────────────────────────────── HERO ──────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--pad-x) 80px;
  position: relative;
}

.hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  max-width: 16ch;
  color: var(--tuscan-blue);
}
.hero h1 em { color: var(--tuscan-yellow-deep); font-style: italic; }

.hero .sub {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}
.hero .sub .sep { display: inline-block; margin: 0 14px; opacity: 0.5; }

.hero .meta {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

/* ──────────────────────────────── BUTTONS ────────────────────────────────── */

.btn-ghost {
  display: inline-block;
  padding: 16px 28px;
  border: 2px solid var(--fg);
  color: var(--fg);
  background: var(--tuscan-yellow);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 220ms ease, color 220ms ease;
  box-shadow: 4px 4px 0 var(--fg);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--tuscan-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--tuscan-blue);
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--fg);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
}
.btn-mini .delta { font-family: var(--mono); letter-spacing: 0.04em; color: var(--muted-2); }
.btn-mini:hover { background: var(--fg); color: var(--paper); }
.btn-mini:hover .delta { color: var(--paper); }

/* ──────────────────────────────── SECTIONS ───────────────────────────────── */

section { position: relative; z-index: 2; }

.section { padding: 120px var(--pad-x); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ───────── Section break — full-bleed transition with chapter label ───────── */
.section-break {
  position: relative;
  height: 180px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.section-break::before,
.section-break::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.6;
}
.section-break::before { top: 28px; }
.section-break::after {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--accent-gold) 0 8px,
    transparent 8px 16px);
  opacity: 0.5;
  bottom: 22px;
}
.section-break[data-label]::before {
  content: attr(data-label);
  position: relative;
  inset: auto;
  height: auto;
  background: transparent;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 38px);
  color: var(--paper);
  letter-spacing: 0.02em;
  opacity: 1;
  z-index: 2;
  padding: 0 24px;
  text-align: center;
}
@media (max-width: 768px) {
  .section-break { height: 120px; }
}

/* ─────────────────────────────── BRAND GRID ──────────────────────────────── */

.brand-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.brand-section.reverse .col-text { order: 2; }
.brand-section.reverse .col-cards { order: 1; }

.col-text {
  position: sticky;
  top: 120px;
  padding-left: 28px;
  border-left: 4px solid var(--rule);
}

.col-text .eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}

.col-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}

.col-text .lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
}

.col-text .archive-stamp {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* Section accent variants */
.brand-section[data-accent="tobacco"] .col-text { border-left-color: var(--accent-tobacco); }
.brand-section[data-accent="tobacco"] .eyebrow { color: var(--accent-tobacco); }

.brand-section[data-accent="gold"] .col-text { border-left-color: var(--accent-gold); }
.brand-section[data-accent="gold"] .eyebrow { color: var(--accent-gold); }

.brand-section[data-accent="blush"] .col-text { border-left-color: var(--accent-blush); }
.brand-section[data-accent="blush"] .eyebrow { color: var(--accent-blush); }

/* ──────────────────────────────── PRODUCT CARDS ──────────────────────────── */

.col-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.col-cards.two { grid-template-columns: 1fr 1fr; gap: 24px; }
.col-cards.three { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.card {
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease;
  box-shadow: 4px 4px 0 var(--fg);
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fg); }

.card-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-strong);
}

.card[data-accent="tobacco"] .card-img { background: var(--tuscan-yellow); }
.card[data-accent="gold"] .card-img { background: var(--tuscan-yellow-deep); }
.card[data-accent="blush"] .card-img { background: var(--tuscan-blue); }

.card-img-photo { background: #1B2B47 !important; padding: 0; }
.card-img-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.card-img-photo .placeholder-tag,
.card-img-photo .placeholder-corner {
  z-index: 2;
  color: #F4EFE3 !important;
  background: rgba(21, 23, 21, 0.45);
  padding: 4px 8px;
}

.card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(21, 23, 21, 0.04) 0 2px,
    transparent 2px 9px
  );
  pointer-events: none;
}

.card[data-accent="blush"] .card-img::before {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 9px);
}

.card-img .placeholder-num {
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.04em;
  color: rgba(21, 23, 21, 0.55);
  position: relative;
}

.card[data-accent="blush"] .card-img .placeholder-num { color: rgba(244, 239, 227, 0.85); }

.card-img .placeholder-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(21, 23, 21, 0.6);
}
.card[data-accent="blush"] .card-img .placeholder-tag { color: rgba(244, 239, 227, 0.75); }

.card-img .placeholder-corner {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(21, 23, 21, 0.55);
}
.card[data-accent="blush"] .card-img .placeholder-corner { color: rgba(244, 239, 227, 0.7); }

.card-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-brand {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}
.card[data-accent="tobacco"] .card-brand { color: var(--accent-tobacco-ink); }
.card[data-accent="gold"] .card-brand { color: var(--accent-gold-ink); }
.card[data-accent="blush"] .card-brand { color: var(--accent-blush-ink); }

.card-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
  color: var(--fg);
}

.card-meta { font-size: 13px; color: var(--muted); }

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  margin-top: 4px;
}

.card-price {
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 6px 0 6px;
  font-weight: 500;
}

.card-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.card[data-accent="tobacco"] .btn-mini.upgrade { border-color: var(--accent-tobacco); color: var(--accent-tobacco-ink); }
.card[data-accent="gold"] .btn-mini.upgrade { border-color: var(--accent-gold); color: var(--accent-gold-ink); }
.card[data-accent="blush"] .btn-mini.upgrade { border-color: var(--accent-blush); color: var(--accent-blush-ink); }
.card[data-accent="tobacco"] .btn-mini.upgrade .delta,
.card[data-accent="gold"]    .btn-mini.upgrade .delta,
.card[data-accent="blush"]   .btn-mini.upgrade .delta { color: inherit; opacity: 0.85; }

.card-order {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.card[data-accent="tobacco"] .card-order { color: var(--accent-tobacco-ink); }
.card[data-accent="gold"] .card-order { color: var(--accent-gold-ink); }
.card[data-accent="blush"] .card-order { color: var(--accent-blush-ink); }
.card-order .arr { transition: transform 220ms ease; }
.card-order:hover .arr { transform: translateX(4px); }

/* ─────────────────────────── STATEMENT CENTERED LAYOUT ───────────────────── */

.statement-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.statement-section .col-text {
  border-left: none;
  padding-left: 0;
  position: static;
  max-width: 760px;
  margin-bottom: 80px;
}
.statement-section .col-text h2 { margin-left: auto; margin-right: auto; }
.statement-section .col-text .lede { margin-left: auto; margin-right: auto; }

.statement-section .col-cards {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
}

.statement-section .card-img { aspect-ratio: 5 / 4; }
.statement-section .card-name { font-size: 26px; }
.statement-section .card-price { font-size: 26px; }

/* ─────────────────────────────── LENS BAR ────────────────────────────────── */

.lens-bar {
  background: var(--tuscan-blue);
  color: var(--paper);
  padding: 100px var(--pad-x);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.lens-bar .lens-head h3 { color: var(--paper); }
.lens-bar .lens-head .index { color: rgba(242, 233, 210, 0.65); }
.lens-bar .lens-grid { border-top-color: rgba(242, 233, 210, 0.25); }
.lens-bar .lens-cell { border-right-color: rgba(242, 233, 210, 0.25); }
.lens-bar .lens-cell .num { color: var(--tuscan-yellow); }
.lens-bar .lens-cell .name { color: var(--paper); }
.lens-bar .lens-cell .price { color: var(--tuscan-yellow); }
.lens-bar .lens-cell .desc { color: rgba(242, 233, 210, 0.82); }

.lens-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.lens-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.lens-head h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
}
.lens-head .index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.lens-cell {
  padding: 28px 22px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.lens-cell:nth-child(4n) { border-right: none; }
.lens-cell:nth-last-child(-n+4) { border-bottom: none; }

.lens-cell .swatch {
  width: 36px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.lens-cell .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.lens-cell .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.2;
  margin: 4px 0 4px;
}
.lens-cell .price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 6px;
}
.lens-cell .desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.lens-addons {
  border-top: 1px solid var(--rule);
  padding: 36px 0 12px;
}
.addon-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,233,210,0.55);
  margin-bottom: 20px;
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.addon-cell {
  padding: 0 22px 28px 0;
  border-right: 1px solid var(--rule);
  margin-right: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.addon-cell:last-child { border-right: none; margin-right: 0; }
.addon-cell .addon-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--paper);
  line-height: 1.2;
}
.addon-cell .addon-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tuscan-yellow);
}
.addon-cell .addon-desc {
  font-size: 12px;
  color: rgba(242,233,210,0.65);
  line-height: 1.5;
  margin-top: 2px;
}

/* ─────────────────────────────── ORDER FORM ──────────────────────────────── */

.order-section {
  padding: 140px var(--pad-x);
}

.order-inner {
  max-width: 880px;
  margin: 0 auto;
}

.order-head {
  text-align: center;
  margin-bottom: 64px;
}
.order-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.order-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}
.order-head p {
  color: var(--muted);
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field label .opt { font-family: var(--mono); letter-spacing: 0.08em; text-transform: none; opacity: 0.7; }

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font: inherit;
  padding: 10px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 200ms ease;
  font-family: var(--sans);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231E4D7B' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  cursor: pointer;
}
.field select option { background: var(--paper); color: var(--fg); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--fg);
}

.order-error {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--accent-tobacco);
  background: transparent;
  color: var(--accent-tobacco);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.submit {
  margin-top: 36px;
  display: block;
  width: 100%;
  padding: 22px;
  background: var(--tuscan-yellow);
  color: var(--fg);
  border: 2px solid var(--fg);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
  box-shadow: 4px 4px 0 var(--fg);
}
.submit:hover { background: var(--fg); color: var(--tuscan-yellow); }
.submit:disabled { opacity: 0.6; cursor: default; }

.fulfillment {
  margin-top: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* ─────────────────────── ORDER CONFIRMATION ──────────────────────────────── */

.order-confirm {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid var(--rule-strong);
  box-shadow: 4px 4px 0 var(--fg);
}

.confirm-inner { max-width: 480px; margin: 0 auto; }

.confirm-icon {
  font-size: 40px;
  color: var(--accent-tobacco);
  margin-bottom: 28px;
  font-weight: 300;
}

.order-confirm h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  margin: 0 0 20px;
  color: var(--fg);
}

.order-confirm p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.confirm-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 32px;
}

/* ─────────────────────────────── FOOTER ──────────────────────────────────── */

.footer {
  padding: 56px var(--pad-x) 32px;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .left,
.footer .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer .right a { margin-left: 24px; transition: color 200ms ease; }
.footer .right a:hover { color: var(--fg); }
.footer .copy {
  margin-top: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

/* ─────────────────────────────── THEME PICKER ────────────────────────────── */

.theme-picker {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 4px 4px 0 var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.theme-picker .tp-label { font-weight: 500; padding-right: 4px; border-right: 1px solid var(--rule); }
.theme-picker .tp-swatch {
  display: inline-flex;
  width: 28px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}
.theme-picker .tp-swatch span { flex: 1; display: block; }
.theme-picker .tp-swatch:hover { transform: translateY(-1px); }
.theme-picker .tp-swatch.active { border-color: var(--fg); outline: 1px solid var(--fg); outline-offset: 2px; }
.theme-picker .tp-hint { color: var(--muted-2); padding-left: 4px; border-left: 1px solid var(--rule); }
.theme-picker[hidden] { display: none; }
.theme-picker .tp-close {
  background: transparent;
  border: 0;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px 2px;
  margin-left: 2px;
  cursor: pointer;
  font-family: var(--mono);
  transition: color 0.15s ease;
}
.theme-picker .tp-close:hover { color: var(--fg); }
.theme-picker kbd {
  font-family: var(--mono);
  background: var(--fg);
  color: var(--paper);
  padding: 1px 5px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .theme-picker .tp-label, .theme-picker .tp-hint { display: none; }
}

/* ─────────────────────────────── RESPONSIVE ──────────────────────────────── */

@media (max-width: 900px) {
  .lens-grid { grid-template-columns: repeat(2, 1fr); }
  .lens-cell:nth-child(4n) { border-right: 1px solid rgba(242, 233, 210, 0.25); }
  .lens-cell:nth-child(2n) { border-right: none; }
  .lens-cell { border-bottom: 1px solid rgba(242, 233, 210, 0.25); }
  .lens-cell:nth-last-child(-n+4) { border-bottom: 1px solid rgba(242, 233, 210, 0.25); }
  .lens-cell:nth-last-child(-n+2) { border-bottom: none; }
  .addon-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .addon-cell { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid rgba(242, 233, 210, 0.15); padding-bottom: 20px; }
  .addon-cell:nth-child(odd) { padding-right: 20px; }
  .addon-cell:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
  .section { padding: 80px var(--pad-x); }
  .nav-links { gap: 14px; }
  .nav-links a:nth-child(1),
  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3),
  .nav-links a:nth-child(4),
  .nav-links a:nth-child(5),
  .nav-links a:nth-child(6) { display: none; }
  .brand-section { grid-template-columns: 1fr; gap: 48px; }
  .brand-section.reverse .col-text { order: 1; }
  .brand-section.reverse .col-cards { order: 2; }
  .col-text { position: static; }
  .col-cards.two,
  .col-cards.three,
  .statement-section .col-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero .meta { position: static; flex-direction: column; gap: 6px; margin-top: 60px; align-items: center; text-align: center; }
  .order-confirm { padding: 56px 24px; }
}

/* ============================================================
   LENS CUSTOMIZER MODAL
   ============================================================ */
.card-img-photo[data-customize] { position: relative; }
.card-img-photo[data-customize]:focus-visible {
  outline: 2px solid #15171a;
  outline-offset: 4px;
}
.card-img-photo[data-customize]::after {
  content: "Click to customize lenses →";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 22, 0.78);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.card-img-photo[data-customize]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.lc-overlay[hidden] { display: none !important; }
.lc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lcFade 0.22s ease;
}
@keyframes lcFade { from { opacity: 0; } to { opacity: 1; } }

.lc-modal {
  position: relative;
  background: #fafaf7;
  color: #15171a;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  animation: lcSlide 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes lcSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.lc-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #15171a;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.15s;
}
.lc-close:hover { background: rgba(0,0,0,0.06); }

.lc-head {
  padding: 32px 36px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.lc-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20, 22, 26, 0.55);
  margin-bottom: 8px;
}
.lc-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lc-sub {
  font-size: 13px;
  color: rgba(20, 22, 26, 0.65);
  font-family: 'Inter', sans-serif;
}

.lc-body { padding: 22px 36px 24px; }

.lc-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20, 22, 26, 0.55);
  margin: 18px 0 10px;
}
.lc-section-label:first-child { margin-top: 0; }

.lc-tints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lc-tint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  padding: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.lc-tint:hover { border-color: rgba(0,0,0,0.3); }
.lc-tint.selected {
  border-color: #15171a;
  box-shadow: 0 0 0 2px #15171a inset;
}
.lc-tint-swatch {
  width: 100%;
  height: 36px;
  border-radius: 2px;
  margin-bottom: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}
.lc-tint-name {
  font-size: 12px;
  font-weight: 500;
  color: #15171a;
  line-height: 1.2;
}
.lc-tint-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(20, 22, 26, 0.6);
  margin-top: 2px;
}

.lc-addons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lc-addon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lc-addon:hover { border-color: rgba(0,0,0,0.3); }
.lc-addon.selected {
  border-color: #15171a;
  box-shadow: 0 0 0 2px #15171a inset;
}
.lc-addon.included {
  background: #f3f0e8;
  cursor: default;
}
.lc-addon.included:hover { border-color: rgba(0,0,0,0.1); }
.lc-addon-name {
  font-size: 13px;
  font-weight: 500;
  color: #15171a;
}
.lc-addon-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(20, 22, 26, 0.7);
}

.lc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px 28px;
  border-top: 1px solid rgba(0,0,0,0.08);
  gap: 16px;
}
.lc-total-block { flex: 1; min-width: 0; }
.lc-total-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20, 22, 26, 0.55);
}
.lc-total {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #15171a;
}
.lc-breakdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(20, 22, 26, 0.55);
  margin-top: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-submit {
  background: #15171a;
  color: #fff;
  border: none;
  padding: 14px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.lc-submit:hover { background: #2a2d33; transform: translateY(-1px); }
.lc-submit:active { transform: translateY(0); }

@media (max-width: 600px) {
  .lc-modal { max-height: 95vh; }
  .lc-head { padding: 24px 20px 16px; }
  .lc-head h3 { font-size: 22px; }
  .lc-body { padding: 16px 20px 18px; }
  .lc-tints { grid-template-columns: repeat(3, 1fr); }
  .lc-addons { grid-template-columns: 1fr; }
  .lc-foot { padding: 14px 20px 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .lc-submit { width: 100%; padding: 16px; }
  .lc-total { font-size: 26px; }
}

/* ─── Hero sketch ↔ product photo swap ─── */
.card-img-photo .hero-sketch,
.card-img-photo .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease;
}
.card-img-photo .hero-sketch {
  object-fit: cover;
  object-position: center;
  opacity: 1;
  z-index: 1;
}
.card-img-photo .hero-photo {
  object-fit: contain;
  object-position: center;
  padding: 18px;
  background: inherit;
  opacity: 0;
  z-index: 2;
}
.card-img-photo .hero-photo.cover {
  object-fit: cover;
  padding: 0;
}
/* Hover preview — only when the button hasn't been clicked.
   Once .show-photo is set (or explicitly removed), the button wins. */
.card-img-photo:hover:not(.show-photo):not(.show-sketch) .hero-photo { opacity: 1; }
.card-img-photo:hover:not(.show-photo):not(.show-sketch) .hero-sketch { opacity: 0; }
.card-img-photo.show-photo .hero-photo { opacity: 1; }
.card-img-photo.show-photo .hero-sketch { opacity: 0; }
.card-img-photo.show-sketch .hero-photo { opacity: 0; }
.card-img-photo.show-sketch .hero-sketch { opacity: 1; }

.photo-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(21, 23, 26, 0.78);
  color: #faf7f0;
  border: 0;
  padding: 7px 11px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.15s ease;
  pointer-events: none;
}
.card-img-photo:hover .photo-toggle { opacity: 0.85; pointer-events: auto; }
.photo-toggle:hover { background: rgba(21, 23, 26, 0.92); opacity: 1 !important; }

@media (hover: none) {
  .photo-toggle { opacity: 0.85; pointer-events: auto; }
  .card-img-photo:hover .hero-photo,
  .card-img-photo:hover .hero-sketch { opacity: revert; }
}

.placeholder-tag, .placeholder-corner { z-index: 3; }

/* ─── Nav cart icon + count badge ─── */
.nav-links a.order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}
.cart-svg {
  display: block;
  transition: fill 0.3s ease;
  fill: none;
}
.nav-links a.order.has-items .cart-icon {
  opacity: 1;
  color: #d4a849;
}
.nav-links a.order.has-items .cart-svg {
  fill: rgba(212, 168, 73, 0.32);
}
.nav-links a.order.bump .cart-icon {
  transform: scale(1.28);
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #d4a849;
  color: #15171a;
  border-radius: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.cart-count[hidden] { display: none; }

/* ─── Order form: highlight prefilled fields ─── */
.order-form .field.has-value > label {
  color: #d4a849;
  transition: color 0.25s ease;
}
.order-form .field.has-value select,
.order-form .field.has-value textarea {
  border-color: #d4a849 !important;
  box-shadow: 0 0 0 1px rgba(212, 168, 73, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.5s ease;
}
.order-form .field.flash select,
.order-form .field.flash textarea {
  animation: orderFieldFlash 1.4s ease-out;
}
@keyframes orderFieldFlash {
  0%   { background-color: rgba(212, 168, 73, 0.28); }
  60%  { background-color: rgba(212, 168, 73, 0.10); }
  100% { background-color: transparent; }
}

/* ─── Brand pages (persol.html, cazal.html, caviar.html) ────────────────── */
.nav-links .brand-link.active { color: var(--accent, var(--fg)); }
.nav-links .brand-link.active::after {
  content: ""; display: block; height: 1px; background: currentColor;
  margin-top: 2px; opacity: 0.6;
}

.brand-hero {
  padding: 120px 40px 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.brand-hero-art {
  background: var(--paper-2, #ede8dc);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.brand-hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.brand-hero-copy h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  color: var(--fg);
}
.brand-hero-copy .lede-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 56ch;
}
.brand-hero-copy .lede-text strong { color: var(--fg); font-weight: 600; }
.brand-hero-copy .archive-stamp {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}

.archive-section {
  padding: 80px 40px 120px;
  background: var(--paper);
}
.archive-inner { max-width: 1280px; margin: 0 auto; }
.archive-head { text-align: center; margin-bottom: 48px; }
.archive-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 12px 0 16px;
  color: var(--fg);
}
.archive-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.archive-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.archive-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.archive-card:hover {
  transform: translateY(-2px);
  border-color: var(--fg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.archive-card.is-curated { border-color: var(--accent, #d4a849); }

.archive-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2, #f3eee0);
  overflow: hidden;
}
.archive-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  padding: 8px;
}
.archive-card.is-curated .archive-img img { object-fit: cover; padding: 0; }
.archive-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.archive-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--fg); color: var(--paper);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  padding: 4px 8px;
}

.archive-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.archive-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--fg);
  line-height: 1.15;
}
.archive-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.archive-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.archive-price {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--fg);
}
.archive-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.archive-cta:hover { color: var(--accent, #d4a849); }

@media (max-width: 800px) {
  .brand-hero { padding: 96px 24px 56px; }
  .brand-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .brand-hero-art { aspect-ratio: 4 / 3; max-width: 480px; margin: 0 auto; }
  .archive-section { padding: 56px 24px 80px; }
  .archive-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
}
