/* ============================================
   LUXURY DECORATIONS — Ornaments, Hallmarks, Flourishes
   Loaded after styles.css to add elegant UX/UI touches
   ============================================ */

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 24px;
  color: var(--gold);
}
.ornament-divider .ornament-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.55;
}
.ornament-divider .ornament-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.ornament-divider .ornament-mark svg {
  display: block;
  filter: drop-shadow(0 0 6px rgba(184, 138, 58, 0.25));
}
.ornament-divider .ornament-mark .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(184, 138, 58, 0.45);
}
.ornament-divider .ornament-word {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  opacity: 0.8;
}

.hallmarks {
  padding: 44px 40px;
  background:
    linear-gradient(90deg,
      rgba(184, 138, 58, 0.04),
      rgba(184, 138, 58, 0.10) 50%,
      rgba(184, 138, 58, 0.04)),
    var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hallmarks::before,
.hallmarks::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
}
.hallmarks::before { left: 0; background: linear-gradient(90deg, var(--paper) 0%, transparent 100%); }
.hallmarks::after  { right: 0; background: linear-gradient(-90deg, var(--paper) 0%, transparent 100%); }

.hallmarks-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hallmark {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  position: relative;
  transition: transform 0.4s ease;
}
.hallmark + .hallmark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.4;
}
.hallmark:hover { transform: translateY(-2px); }
.hallmark-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: radial-gradient(circle, rgba(184, 138, 58, 0.10), transparent 70%);
  border: 1px solid rgba(184, 138, 58, 0.25);
  border-radius: 50%;
  transition: all 0.3s;
}
.hallmark:hover .hallmark-icon {
  background: radial-gradient(circle, rgba(184, 138, 58, 0.22), transparent 70%);
  border-color: var(--gold);
  transform: rotate(8deg);
}
.hallmark-text { flex: 1; min-width: 0; }
.hallmark-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2px;
}
.hallmark-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leather);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .hallmarks-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hallmark + .hallmark::before { display: none; }
  .hallmark { padding: 12px 16px; }
}
@media (max-width: 480px) {
  .hallmarks-grid { grid-template-columns: 1fr; }
  .hallmarks { padding: 28px 20px; }
}

.product-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 2;
}
.product-card:hover .product-img-wrap::after {
  border-color: var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(184, 138, 58, 0.35),
    0 12px 28px -16px rgba(31, 20, 10, 0.45);
}
.product-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 248, 220, 0) 30%,
    rgba(255, 248, 220, 0.55) 50%,
    rgba(255, 248, 220, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 1;
  transition: left 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-card:hover .product-img-wrap::before { left: 140%; }

.product-name { transition: color 0.25s ease; }
.product-card:hover .product-name { color: var(--leather); }

.collection-card .corner-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 3;
}
.collection-card .corner-bracket.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.collection-card .corner-bracket.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.collection-card .corner-bracket.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.collection-card .corner-bracket.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.collection-card:hover .corner-bracket { opacity: 0.85; }
.collection-card:hover .corner-bracket.tl { top: 16px; left: 16px; }
.collection-card:hover .corner-bracket.tr { top: 16px; right: 16px; }
.collection-card:hover .corner-bracket.bl { bottom: 16px; left: 16px; }
.collection-card:hover .corner-bracket.br { bottom: 16px; right: 16px; }

.section-title.filigree { position: relative; display: inline-block; }
.section-title.filigree::after {
  content: "";
  display: block;
  width: 64px;
  height: 16px;
  margin-top: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'><path d='M0 8 H22 M42 8 H64 M28 8 a4 4 0 1 1 8 0 a4 4 0 1 1 -8 0' fill='none' stroke='%23b88a3a' stroke-width='1'/><circle cx='32' cy='8' r='1.6' fill='%23b88a3a'/></svg>");
  background-repeat: no-repeat;
  background-position: left center;
  opacity: 0.85;
}

.hero-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
  opacity: 0;
  animation: sparkle-float 7s ease-in-out infinite;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft) 0%, rgba(224, 196, 119, 0.4) 35%, transparent 70%);
  filter: blur(0.4px);
}
.hero-sparkle.s1 { top: 14%; left: 12%; animation-delay: 0s; }
.hero-sparkle.s2 { top: 28%; left: 38%; animation-delay: 1.4s; width: 4px; height: 4px; }
.hero-sparkle.s3 { top: 60%; left: 8%;  animation-delay: 2.9s; width: 5px; height: 5px; }
.hero-sparkle.s4 { top: 74%; left: 30%; animation-delay: 4.2s; }
.hero-sparkle.s5 { top: 18%; left: 46%; animation-delay: 5.5s; width: 4px; height: 4px; }

@keyframes sparkle-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  10%      { opacity: 0.9; transform: translateY(-4px) scale(1); }
  50%      { opacity: 0.5; transform: translateY(-14px) scale(0.85); }
  90%      { opacity: 0; transform: translateY(-22px) scale(0.6); }
}

html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--paper-deep); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 50%, var(--gold-deep));
  border-radius: 6px;
  border: 2px solid var(--paper-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(224, 196, 119, 0) 30%,
    rgba(224, 196, 119, 0.45) 50%,
    rgba(224, 196, 119, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn:hover::after { left: 140%; }

.heritage-value-icon {
  transition: transform 0.4s ease, filter 0.4s ease;
}
.heritage-value:hover .heritage-value-icon {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 12px rgba(184, 138, 58, 0.45));
}

.atelier-stat-num {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   STORY HERO REDESIGN · Editorial Frontispiece
   ============================================ */
.story-hero.story-hero--editorial {
  position: relative;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 96px) clamp(56px, 7vw, 96px);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184, 138, 58, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(107, 58, 31, 0.06), transparent 70%),
    var(--paper-warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Side rails — rotated text on left/right edges */
.story-hero-rail {
  position: absolute;
  top: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--leather);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.story-hero-rail-l {
  left: 28px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}
.story-hero-rail-r {
  right: 28px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
}

/* Decorative corner brackets */
.story-hero-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--gold);
  opacity: 0.55;
}
.story-hero-corner.tl { top: 28px; left: 28px; border-top: 1px solid; border-left: 1px solid; }
.story-hero-corner.tr { top: 28px; right: 28px; border-top: 1px solid; border-right: 1px solid; }
.story-hero-corner.bl { bottom: 28px; left: 28px; border-bottom: 1px solid; border-left: 1px solid; }
.story-hero-corner.br { bottom: 28px; right: 28px; border-bottom: 1px solid; border-right: 1px solid; }

/* Top edition mark */
.story-hero-edition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
  color: var(--gold);
  position: relative;
  z-index: 2;
}
.story-hero-edition-line {
  flex: 0 1 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
.story-hero-edition-mark {
  display: inline-flex;
  filter: drop-shadow(0 0 6px rgba(184, 138, 58, 0.35));
}
.story-hero-edition-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  white-space: nowrap;
}

/* Title block */
.story-hero-eyebrow-new {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--leather);
  opacity: 0.75;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}
.story-hero-eyebrow-new::before,
.story-hero-eyebrow-new::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--leather);
  opacity: 0.5;
  vertical-align: middle;
  margin: 0 14px 4px;
}

.story-hero-title-new {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 2;
}
.story-hero-title-new .line-1 { display: block; }
.story-hero-title-new .line-2 {
  display: block;
  margin-top: 0.04em;
}
.story-hero-title-new em {
  font-style: italic;
  background: linear-gradient(180deg, var(--leather) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Central crest */
.story-hero-crest {
  margin: clamp(28px, 4vw, 48px) auto clamp(24px, 3vw, 36px);
  color: var(--gold);
  filter: drop-shadow(0 4px 14px rgba(184, 138, 58, 0.3));
  position: relative;
  z-index: 2;
  display: inline-block;
}
.story-hero-crest .crest-spin {
  display: inline-block;
  animation: crest-spin 80s linear infinite;
}
@keyframes crest-spin {
  to { transform: rotate(360deg); }
}

/* Drop cap intro */
.story-hero-intro {
  max-width: 60ch;
  margin: 0 auto clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 2;
}
.story-hero-intro-p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
  margin: 0;
}
.story-hero-intro-p .dropcap {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 4.4em;
  line-height: 0.82;
  float: left;
  margin: 0.06em 0.1em -0.1em 0;
  background: linear-gradient(180deg, var(--leather) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bottom byline */
.story-hero-byline-new {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.story-hero-byline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.story-hero-byline-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}
.story-hero-byline-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.story-hero-byline-sep {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .story-hero.story-hero--editorial { padding: 64px 20px 48px; }
  .story-hero-rail,
  .story-hero-corner { display: none; }
  .story-hero-edition-line { max-width: 36px; }
  .story-hero-edition-text { font-size: 9px; letter-spacing: 0.22em; white-space: normal; }
  .story-hero-eyebrow-new::before,
  .story-hero-eyebrow-new::after { width: 18px; margin: 0 8px 4px; }
  .story-hero-byline-new { gap: 16px; padding-top: 28px; }
  .story-hero-byline-sep { display: none; }
}

/* ============================================
   XƯỞNG · ATELIER SECTION
   ============================================ */
.xuong-section {
  position: relative;
  scroll-margin-top: 80px;
}

/* Decorative seal in top-right corner */
.xuong-seal {
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--gold-soft);
  opacity: 0.5;
  pointer-events: none;
  animation: xuong-seal-spin 90s linear infinite;
}
@keyframes xuong-seal-spin {
  to { transform: rotate(360deg); }
}

/* Eyebrow dot */
.xuong-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold-soft);
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  box-shadow: 0 0 6px rgba(212, 175, 113, 0.6);
}

/* Stamp overlay on visual */
.xuong-visual-stamp {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(20, 14, 8, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 113, 0.35);
  color: var(--paper-warm);
  z-index: 2;
}
.xuong-visual-stamp-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}
.xuong-visual-stamp-big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--paper-warm);
  line-height: 1.05;
  margin: 4px 0 6px;
}

/* Visual corner brackets */
.xuong-visual-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold-soft);
  opacity: 0.7;
  z-index: 1;
}
.xuong-visual-corner.tl { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.xuong-visual-corner.tr { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.xuong-visual-corner.bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.xuong-visual-corner.br { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

/* Stats grid (4-up) */
.xuong-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(245, 235, 210, 0.18);
}
.xuong-stat {
  position: relative;
}
.xuong-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: -10px;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 113, 0.25), transparent);
}
.xuong-stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.xuong-stat-unit {
  font-size: 0.55em;
  margin-left: 2px;
  opacity: 0.85;
}
.xuong-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 235, 210, 0.6);
  margin-top: 12px;
  line-height: 1.45;
}

/* Brand strip */
.xuong-brands {
  margin-top: 40px;
  text-align: center;
}
.xuong-brands-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.xuong-brands-line {
  flex: 0 1 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 113, 0.5), transparent);
}
.xuong-brands-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(212, 175, 113, 0.85);
  white-space: nowrap;
}
.xuong-brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(245, 235, 210, 0.92);
  line-height: 1.4;
}
.xuong-brands-list span:not(.xuong-brands-dot) {
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.xuong-brands-list span:not(.xuong-brands-dot):hover {
  color: var(--gold-soft);
}
.xuong-brands-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold-soft);
  transform: rotate(45deg);
  opacity: 0.55;
}

/* Location card */
.xuong-location {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding: 18px 22px;
  background: rgba(212, 175, 113, 0.06);
  border: 1px solid rgba(212, 175, 113, 0.22);
  color: rgba(245, 235, 210, 0.92);
}
.xuong-location-icon {
  flex-shrink: 0;
  color: var(--gold-soft);
  filter: drop-shadow(0 0 6px rgba(212, 175, 113, 0.4));
}
.xuong-location-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.xuong-location-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(212, 175, 113, 0.85);
}
.xuong-location-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--paper-warm);
}

@media (max-width: 1024px) {
  .xuong-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .xuong-stat:not(:last-child)::after { display: none; }
  .xuong-seal { display: none; }
}
@media (max-width: 640px) {
  .xuong-visual-stamp { padding: 12px 14px; bottom: 16px; left: 16px; }
  .xuong-visual-stamp-big { font-size: 24px; }
  .xuong-brands-list { font-size: 15px; gap: 8px 10px; }
  .xuong-brands-text { font-size: 9px; letter-spacing: 0.22em; white-space: normal; }
  .xuong-location { padding: 14px 16px; }
  .xuong-location-value { font-size: 14px; }
}

/* ============================================
   XUONG.HTML PAGE STYLES
   ============================================ */

/* Page-level eyebrow & headings */
.xpage-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 18px;
}
.xpage-eyebrow.center { text-align: center; }
.xpage-eyebrow.light { color: var(--gold-soft); }

.xpage-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
}
.xpage-h2.center { text-align: center; }
.xpage-h2.light { color: var(--paper-warm); }
.xpage-h2 em {
  font-style: italic;
  background: linear-gradient(180deg, var(--leather) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.xpage-h2.light em {
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.xpage-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 60ch;
}
.xpage-lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.xpage-lead.light { color: rgba(245, 235, 210, 0.85); }

.xpage-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 60ch;
}

/* ============ HERO ============ */
.xpage-hero {
  position: relative;
  padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 96px) clamp(56px, 7vw, 96px);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184, 138, 58, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(107, 58, 31, 0.06), transparent 70%),
    var(--paper-warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.xpage-hero-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--gold);
  opacity: 0.55;
}
.xpage-hero-corner.tl { top: 28px; left: 28px; border-top: 1px solid; border-left: 1px solid; }
.xpage-hero-corner.tr { top: 28px; right: 28px; border-top: 1px solid; border-right: 1px solid; }
.xpage-hero-corner.bl { bottom: 28px; left: 28px; border-bottom: 1px solid; border-left: 1px solid; }
.xpage-hero-corner.br { bottom: 28px; right: 28px; border-bottom: 1px solid; border-right: 1px solid; }

.xpage-hero-rail {
  position: absolute;
  top: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--leather);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
}
.xpage-hero-rail-l { left: 28px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.xpage-hero-rail-r { right: 28px; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }

.xpage-hero-edition {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
  color: var(--gold);
  position: relative;
  z-index: 2;
}
.xpage-hero-edition-line {
  flex: 0 1 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
.xpage-hero-edition-mark { display: inline-flex; filter: drop-shadow(0 0 6px rgba(184, 138, 58, 0.35)); }
.xpage-hero-edition-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--leather);
  white-space: nowrap;
}

.xpage-hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--leather);
  opacity: 0.75;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}
.xpage-hero-eyebrow::before,
.xpage-hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--leather);
  opacity: 0.5;
  vertical-align: middle;
  margin: 0 14px 4px;
}

.xpage-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 2;
}
.xpage-hero-title .line-1 { display: block; }
.xpage-hero-title .line-2 { display: block; margin-top: 0.04em; }
.xpage-hero-title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--leather) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.xpage-hero-crest {
  margin: clamp(28px, 4vw, 48px) auto clamp(24px, 3vw, 36px);
  color: var(--gold);
  filter: drop-shadow(0 4px 14px rgba(184, 138, 58, 0.3));
  position: relative;
  z-index: 2;
  display: inline-block;
}
.xpage-hero-crest .crest-spin {
  display: inline-block;
  animation: crest-spin 80s linear infinite;
}

.xpage-hero-intro {
  max-width: 60ch;
  margin: 0 auto clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 2;
}
.xpage-hero-intro-p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
  margin: 0;
}
.xpage-hero-intro-p .dropcap {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 4.4em;
  line-height: 0.82;
  float: left;
  margin: 0.06em 0.1em -0.1em 0;
  background: linear-gradient(180deg, var(--leather) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.xpage-hero-byline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.xpage-hero-byline-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.xpage-hero-byline-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}
.xpage-hero-byline-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.xpage-hero-byline-sep {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ============ FEATURE (exterior split) ============ */
.xpage-feature {
  padding: clamp(80px, 9vw, 140px) 40px;
  background: var(--paper);
}
.xpage-feature-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.xpage-feature-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.xpage-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.xpage-feature-img:hover img { transform: scale(1.04); }
.xpage-feature-img-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 14px;
  background: rgba(20, 14, 8, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 113, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-warm);
  z-index: 2;
}
.xpage-feature-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold-soft);
  opacity: 0.7;
  z-index: 1;
}
.xpage-feature-corner.tl { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.xpage-feature-corner.tr { top: 12px; right: 12px; border-top: 1px solid; border-right: 1px solid; }
.xpage-feature-corner.bl { bottom: 12px; left: 12px; border-bottom: 1px solid; border-left: 1px solid; }
.xpage-feature-corner.br { bottom: 12px; right: 12px; border-bottom: 1px solid; border-right: 1px solid; }

.xpage-quote {
  margin-top: 32px;
  padding: 22px 26px;
  background: rgba(184, 138, 58, 0.06);
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--leather);
  position: relative;
}
.xpage-quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0;
  color: var(--gold);
  margin-right: 4px;
  vertical-align: -22px;
  opacity: 0.6;
}

/* ============ TIMELINE ============ */
.xpage-timeline {
  padding: clamp(80px, 9vw, 140px) 40px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.xpage-timeline-header { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.xpage-timeline-track {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 30px;
}
.xpage-timeline-line {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  opacity: 0.5;
}
.xpage-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding-bottom: 48px;
  align-items: start;
}
.xpage-timeline-item:last-child { padding-bottom: 0; }
.xpage-timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--leather);
  line-height: 1;
  padding-top: 4px;
}
.xpage-timeline-dot {
  position: absolute;
  left: -30px;
  top: 14px;
  width: 14px;
  height: 14px;
  background: var(--paper-warm);
  border: 2px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
}
.xpage-timeline-dot.active {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 58, 0.18), 0 0 12px rgba(184, 138, 58, 0.5);
}
.xpage-timeline-text h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
}
.xpage-timeline-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ PROCESS ============ */
.xpage-process {
  padding: clamp(80px, 9vw, 140px) 40px;
  background: var(--leather-deep);
  color: var(--paper-warm);
}
.xpage-process-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.xpage-process-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.xpage-process-card {
  position: relative;
  background: rgba(245, 235, 210, 0.04);
  border: 1px solid rgba(212, 175, 113, 0.18);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.4s;
}
.xpage-process-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-4px);
}
.xpage-process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.xpage-process-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--leather);
}
.xpage-process-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.xpage-process-card:hover .xpage-process-img img { transform: scale(1.06); }
.xpage-process-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--gold-soft);
  margin: 0 0 10px;
}
.xpage-process-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(245, 235, 210, 0.78);
  margin: 0 0 18px;
  flex: 1;
}
.xpage-process-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 175, 113, 0.7);
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 113, 0.18);
}

/* ============ CAPACITY ============ */
.xpage-capacity {
  padding: clamp(80px, 9vw, 140px) 40px;
  background: var(--paper);
}
.xpage-capacity-inner { max-width: 1280px; margin: 0 auto; }
.xpage-capacity-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.xpage-capacity-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
  transition: background 0.3s;
}
.xpage-capacity-cell:hover { background: rgba(184, 138, 58, 0.05); }
.xpage-capacity-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 4.5vw, 60px);
  line-height: 1;
  background: linear-gradient(180deg, var(--leather), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.xpage-capacity-num span {
  font-size: 0.55em;
  margin-left: 2px;
  opacity: 0.85;
}
.xpage-capacity-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.4;
}

/* ============ MACHINERY ============ */
.xpage-machinery {
  padding: clamp(80px, 9vw, 140px) 40px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.xpage-machinery-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.xpage-machinery-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.xpage-machinery-img img { width: 100%; height: 100%; object-fit: cover; }
.xpage-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.xpage-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.xpage-list-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(184, 138, 58, 0.4);
}

/* ============ HERITAGE BRANDS ============ */
.xpage-heritage {
  padding: clamp(80px, 9vw, 140px) 0;
  background: var(--leather-deep);
  color: var(--paper-warm);
  text-align: center;
  overflow: hidden;
}
.xpage-heritage-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.xpage-brands-marquee {
  margin-top: 56px;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid rgba(212, 175, 113, 0.25);
  border-bottom: 1px solid rgba(212, 175, 113, 0.25);
  background:
    linear-gradient(90deg, var(--leather-deep) 0%, transparent 8%, transparent 92%, var(--leather-deep) 100%),
    rgba(245, 235, 210, 0.03);
}
.xpage-brands-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--paper-warm);
  white-space: nowrap;
  animation: xpage-brands-scroll 60s linear infinite;
  padding-left: 28px;
}
.xpage-brands-track .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.55;
  flex-shrink: 0;
}
@keyframes xpage-brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ VALUES ============ */
.xpage-values {
  padding: clamp(80px, 9vw, 140px) 40px;
  background: var(--paper);
}
.xpage-values-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.xpage-values-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
.xpage-value {
  padding: 32px 28px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
}
.xpage-value:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(184, 138, 58, 0.12);
}
.xpage-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 20px;
}
.xpage-value h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 10px;
}
.xpage-value p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ CTA / LOCATION ============ */
.xpage-cta {
  padding: clamp(80px, 9vw, 140px) 40px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(184, 138, 58, 0.12), transparent 65%),
    var(--paper-warm);
  text-align: center;
  border-top: 1px solid var(--line);
}
.xpage-cta-inner { max-width: 800px; margin: 0 auto; }
.xpage-cta-meta { margin-bottom: 14px; }
.xpage-cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 48px;
}
.xpage-cta-title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--leather) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.xpage-cta-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.xpage-cta-info-item { display: flex; flex-direction: column; gap: 6px; }
.xpage-cta-info-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.xpage-cta-info-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.xpage-cta-info-sep {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.55;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .xpage-hero-rail { display: none; }
  .xpage-feature-inner,
  .xpage-machinery-inner { grid-template-columns: 1fr; gap: 48px; }
  .xpage-machinery-img { order: -1; }
  .xpage-process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .xpage-capacity-grid { grid-template-columns: repeat(2, 1fr); }
  .xpage-values-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  .xpage-hero { padding: 64px 20px 48px; }
  .xpage-hero-corner { display: none; }
  .xpage-hero-edition-line { max-width: 36px; }
  .xpage-hero-edition-text { font-size: 9px; letter-spacing: 0.22em; white-space: normal; }
  .xpage-hero-eyebrow::before,
  .xpage-hero-eyebrow::after { width: 18px; margin: 0 8px 4px; }
  .xpage-hero-byline { gap: 16px; padding-top: 28px; }
  .xpage-hero-byline-sep { display: none; }
  .xpage-hero-intro-p .dropcap { font-size: 3.5em; }

  .xpage-feature,
  .xpage-timeline,
  .xpage-process,
  .xpage-capacity,
  .xpage-machinery,
  .xpage-heritage,
  .xpage-values,
  .xpage-cta { padding-left: 20px; padding-right: 20px; }

  .xpage-timeline-track { padding-left: 24px; }
  .xpage-timeline-item { grid-template-columns: 64px 1fr; gap: 16px; padding-bottom: 36px; }
  .xpage-timeline-year { font-size: 24px; }
  .xpage-timeline-dot { left: -24px; width: 12px; height: 12px; top: 12px; }
  .xpage-timeline-text h4 { font-size: 18px; }
  .xpage-timeline-text p { font-size: 14px; }

  .xpage-process-grid { grid-template-columns: 1fr; gap: 20px; }
  .xpage-process-card { padding: 22px; }
  .xpage-process-num { font-size: 44px; }
  .xpage-process-title { font-size: 24px; }

  .xpage-capacity-grid { grid-template-columns: repeat(2, 1fr); }
  .xpage-capacity-cell { padding: 24px 16px; }

  .xpage-values-grid { grid-template-columns: 1fr; gap: 16px; }
  .xpage-value { padding: 24px 22px; }

  .xpage-quote { font-size: 16px; padding: 18px 20px; }
  .xpage-quote-mark { font-size: 42px; vertical-align: -16px; }

  .xpage-brands-track { font-size: 20px; gap: 18px; }

  .xpage-cta-info { gap: 18px; padding: 24px 0; }
  .xpage-cta-info-sep { display: none; }
}
@media (max-width: 480px) {
  .xpage-hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .xpage-h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .xpage-feature-img-tag { font-size: 9px; padding: 6px 10px; }
}

/* ============================================================
   TYPOGRAPHY CONSOLIDATION — 2-font system (Dior-style)
   Only two real families render site-wide:
     • Cormorant Garamond  → headings / accents  (--font-display)
     • Be Vietnam Pro      → body / labels        (--font-sans)
   The old --font-mono (JetBrains Mono) and --font-hand (Caveat)
   are re-aliased onto those two, so every existing rule keeps
   working without edits. Declared here (not in styles.css, which
   defines the tokens) because styles.css is currently read-only
   to this account; this file loads after it, so the alias wins.
   ============================================================ */
:root {
  --font-mono: var(--font-sans);
  --font-hand: var(--font-display);
}

/* Hero subtitle: was a blue handwritten script — now an elegant
   serif italic in leather, consistent with the rest of the hero. */
.hero-title .line3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--leather);
  font-size: 0.46em;
}

/* ============================================================
   STACKING FIX: mobile menu + sticky header
   refinement.css does `body > * { position: relative; z-index: 1 }` to lift content
   above its paper-grain ::before. That gives EVERY body child its own stacking context,
   trapping the position:fixed header layers (top-bar, nav, the mobile "3 gach" drawer +
   its overlay, and the search overlay — all injected inside the topbar/nav wrappers) at
   z-index:1. Later page <section>s (also z-index:1, later in the DOM) then paint OVER
   them: the drawer opened but stayed buried under the page, and content overlapped the
   fixed header on scroll. Attribute selector below (specificity 0,1,1) outranks
   `body > *` (0,0,1) regardless of load order, lifting the header wrappers above content.
   (Belongs in refinement.css; placed here because that file was lock-held by Google Drive
   at edit time. Safe to move next to the body>* rule once refinement.css is writable.)
   ============================================================ */
body > [data-include="topbar"],
body > [data-include="nav"] { z-index: 200; }

/* ============================================================
   LANGUAGE FLAG SELECTOR (multi-language; paired with partials.js i18n)
   Shown in the top nav bar on BOTH desktop and mobile.
   ============================================================ */
.nav-lang-wrap { position: relative; display: inline-flex; align-items: center; margin-right: 6px; }

/* Collapsed trigger (current flag + caret) — desktop hides it, flags show inline */
.lang-current {
  display: none; align-items: center; gap: 5px;
  padding: 3px 6px; border: 1px solid var(--line, rgba(31,20,10,.14));
  background: none; cursor: pointer; border-radius: 6px; line-height: 0;
  transition: background .2s ease, border-color .2s ease;
}
.lang-current:hover { background: var(--paper-deep, rgba(31,20,10,.05)); }
.lang-current .lang-current-flag {
  display: block; width: 22px; height: 16px; border-radius: 3px;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(31,20,10,.14);
}
.lang-current .lang-caret { color: var(--leather, #6b3a1f); transition: transform .2s ease; }
.nav-lang-wrap.open .lang-current .lang-caret { transform: rotate(180deg); }

.nav-lang { display: inline-flex; align-items: center; gap: 7px; }
.nav-lang .lang-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: none; background: none; cursor: pointer; line-height: 0;
  border-radius: 3px; opacity: 0.4; filter: grayscale(0.55);
  transition: opacity .2s ease, filter .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
}
.nav-lang .lang-flag img {
  display: block; width: 22px; height: 16px; border-radius: 3px;
  object-fit: cover; box-shadow: 0 0 0 1px rgba(31,20,10,.14);
}
.nav-lang .lang-name { display: none; }
.nav-lang .lang-flag:hover { opacity: 0.85; filter: grayscale(0); transform: translateY(-1px); }
.nav-lang .lang-flag.active { opacity: 1; filter: grayscale(0); }
.nav-lang .lang-flag.active img { box-shadow: 0 0 0 2px var(--gold, #b8860b); }

/* ≤1100px: collapse the four flags into a tap-to-open dropdown so the
   logo "Chrysa Doré" keeps its space and never wraps. */
@media (max-width: 1100px) {
  .nav-lang-wrap { margin-right: 2px; }
  .lang-current { display: inline-flex; }
  .nav-lang {
    position: absolute; top: calc(100% + 8px); right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 160px; padding: 6px;
    background: var(--paper-warm, #faf3e2);
    border: 1px solid var(--line, rgba(31,20,10,.14));
    border-radius: 10px; box-shadow: 0 12px 28px rgba(31,20,10,.18);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 120;
  }
  .nav-lang-wrap.open .nav-lang { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-lang .lang-flag {
    width: 100%; padding: 9px 10px; border-radius: 7px;
    opacity: 0.8; filter: none; transform: none;
  }
  .nav-lang .lang-flag:hover { opacity: 1; transform: none; background: var(--paper-deep, rgba(31,20,10,.06)); }
  .nav-lang .lang-flag.active { background: var(--paper-deep, rgba(31,20,10,.08)); }
  .nav-lang .lang-flag img { width: 24px; height: 18px; }
  .nav-lang .lang-name {
    display: inline; font-family: var(--font-mono, monospace);
    font-size: 12px; letter-spacing: .02em; white-space: nowrap;
    color: var(--ink, #1f140a); line-height: 1.1;
  }
}
