/* ============================================================
   ASTRA FURNITURE — Design System
   Light editorial · warm neutrals · restrained burgundy
   ============================================================ */

:root {
  /* color */
  --bg:        #faf8f4;
  --surface:   #f3ede3;
  --surface-2: #ece4d8;
  --ink:       #26221e;
  --ink-soft:  #4a443d;
  --muted:     #837b70;
  --line:      #e4dccf;
  --line-soft: #efe9df;
  --accent:    #7d2e3c;   /* burgundy */
  --accent-deep:#5f222d;
  --greige:    #a89a85;
  --on-accent: #fbf6f2;

  /* type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* rhythm */
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --gutter:    clamp(1.25rem, 5vw, 5.5rem);
  --maxw:      1480px;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* density tweak hook */
:root[data-density="airy"]    { --section-y: clamp(6rem, 12vw, 12rem); }
:root[data-density="compact"] { --section-y: clamp(3rem, 6vw, 6rem); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- type primitives ---- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

/* ---- link / button system ---- */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.link-underline:hover { gap: 1.1em; color: var(--accent); }
.link-underline .arr { transition: transform 0.4s var(--ease); }
.link-underline:hover .arr { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.8rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-accent { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 84px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--accent);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { line-height: 1; }
.brand-text .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}
.brand-text .sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin-left: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}
.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--accent);
}
.nav-new {
  position: absolute;
  top: -12px; right: -22px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--on-accent);
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 999px;
}

/* products dropdown */
.has-menu { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem;
  min-width: 220px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: 0 24px 50px -28px rgba(38,34,30,0.4);
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.dropdown a:hover { background: var(--surface); color: var(--ink); }
.dropdown a .mono { font-size: 0.66rem; color: var(--greige); }

.nav-tools { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  padding: 6px 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s;
}
.lang-toggle button.on { background: var(--ink); color: var(--bg); }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: none; background: transparent;
  color: var(--ink-soft);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

.hamburger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-inline: var(--gutter);
  padding-top: clamp(1rem, 2vw, 1.6rem);
}
.hero-stage {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-slides {
  position: relative;
  height: clamp(440px, 72vh, 760px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease);
}
.hero-slide.on { opacity: 1; visibility: visible; }
.hero-slide image-slot { width: 100%; height: 100%; }
.hero-slide image-slot::part(img) { width: 100%; height: 100%; }
.hero-img { width: 100%; height: 100%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28,24,20,0) 28%, rgba(28,24,20,0.10) 52%, rgba(28,24,20,0.46) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 6vw, 5.5rem);
  bottom: clamp(2rem, 7vh, 5rem);
  max-width: 520px;
  color: #fdfbf7;
  text-align: left;
}
.hero-content .eyebrow { color: #e9cdbe; }
.hero-content h1 {
  margin: 0.7rem 0 1.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero-content h1 em { font-style: italic; color: #e9cdbe; }

.hero-nav {
  position: absolute;
  z-index: 4;
  left: clamp(1.5rem, 6vw, 5.5rem);
  bottom: clamp(2rem, 7vh, 5rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: #fdfbf7;
}
.hero-dots { display: flex; gap: 9px; }
.hero-dots button {
  width: 26px; height: 3px;
  border: none; padding: 0;
  background: rgba(253,251,247,0.4);
  transition: background 0.3s;
}
.hero-dots button.on { background: #fdfbf7; }
.hero-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; opacity: 0.85; }

/* ============================================================
   CATEGORIES (asymmetric grid)
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  min-height: 640px;
}
.cat {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  isolation: isolate;
  display: block;
}
.cat:nth-child(1) { grid-row: 1 / span 2; }
.cat-media { position: absolute; inset: 0; z-index: 0; }
.cat-media image-slot { width: 100%; height: 100%; }
.cat::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(185deg, rgba(28,24,20,0) 40%, rgba(28,24,20,0.55) 100%);
  transition: background 0.5s;
}
.cat:hover::after { background: linear-gradient(185deg, rgba(28,24,20,0.05) 25%, rgba(28,24,20,0.62) 100%); }
.cat-media .ph-fill { transition: transform 1.1s var(--ease); transform-origin: center; }
.cat:hover .cat-media .ph-fill { transform: scale(1.05); }
.cat-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 2.4vw, 2.4rem);
  color: #fdfbf7;
}
.cat-body .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: auto;
}
.cat-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.cat-body .models {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: rgba(253,251,247,0.82);
  margin-top: 0.5rem;
}
.cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), gap 0.4s var(--ease);
}
.cat:hover .cat-cta { opacity: 1; transform: translateY(0); }
.cat:hover .cat-cta { gap: 1em; }

/* ============================================================
   PRODUCT SHOWCASE
   ============================================================ */
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.filter-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.filter-tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* technical spec switch */
.spec-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  user-select: none;
}
.switch {
  position: relative;
  width: 46px; height: 26px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  transition: background 0.3s var(--ease);
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  transition: transform 0.3s var(--ease);
}
.spec-switch[aria-pressed="true"] .switch { background: var(--accent); }
.spec-switch[aria-pressed="true"] .switch::after { transform: translateX(20px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
}
/* view more / less */
.showcase-more { display: flex; justify-content: center; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.showcase-more[hidden] { display: none; }
.show-more-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.show-more-btn:hover { background: var(--ink); color: var(--bg); }

.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.product-card:hover {
  border-color: var(--surface-2);
  box-shadow: 0 30px 60px -38px rgba(38,34,30,0.45);
  transform: translateY(-4px);
}
.pc-media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  background: var(--surface);
  overflow: hidden;
}
.pc-media image-slot { width: 100%; height: 100%; }
.pc-media .ph-fill { transition: transform 1.1s var(--ease); }
.product-card:hover .pc-media .ph-fill { transform: scale(1.06); }
.pc-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(4px);
  color: var(--ink-soft);
  padding: 4px 9px;
  border-radius: 999px;
}
.pc-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.pc-cat {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--greige);
}
.pc-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  margin: 0.3rem 0 0.1rem;
}
.pc-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0.35rem 0 0; }

/* spec drawer */
.pc-specs { display: none; }
.product-card.specs-open .pc-specs { display: block; margin-top: 1.1rem; }
.pc-specs-inner { }
.spec-dims {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.spec-dim { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.04em; white-space: nowrap; }
.spec-dim b { color: var(--accent); font-weight: 600; }
.spec-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.85rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: 5px 10px;
  border-radius: 999px;
}
.chip svg { width: 13px; height: 13px; color: var(--greige); }

.pc-foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pc-req {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: gap 0.35s var(--ease);
}
.pc-req:hover { gap: 0.95em; }
.pc-spec-link {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none; border: none;
  display: inline-flex; align-items: center; gap: 0.4em;
}
.pc-spec-link:hover { color: var(--ink); }

/* ============================================================
   FAIRS & EVENTS
   ============================================================ */
.fairs { background: var(--ink); color: #ece4d8; }
.fairs .section-head h2 { color: #faf5ee; }
.fairs .section-kicker { color: var(--greige); }
.fairs-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--greige) transparent;
}
.fair-card {
  scroll-snap-align: start;
  border: 1px solid rgba(168,154,133,0.28);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: background 0.4s, border-color 0.4s;
}
.fair-card:hover { background: rgba(168,154,133,0.08); border-color: rgba(168,154,133,0.5); }
.fair-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5em;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.fair-status.upcoming { color: #f0d9ce; background: rgba(125,46,60,0.55); }
.fair-status.past { color: var(--greige); border: 1px solid rgba(168,154,133,0.4); }
.fair-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fair-date { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--greige); }
.fair-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1;
  margin: 0.5rem 0 0.4rem;
  color: #faf5ee;
}
.fair-loc { font-size: 0.86rem; color: var(--greige); }
.fair-card .link-underline { margin-top: auto; color: #ece4d8; }
.fair-card .link-underline:hover { color: #fff; }

/* ============================================================
   JOURNAL
   ============================================================ */
.journal-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.jr-card { display: flex; flex-direction: column; }
.jr-card:first-child { grid-row: 1 / span 1; }
.jr-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface);
  margin-bottom: 1.1rem;
}
.jr-card:first-child .jr-media { aspect-ratio: 16 / 10; }
.jr-media image-slot { width: 100%; height: 100%; }
.jr-media .ph-fill { transition: transform 1.1s var(--ease); }
.jr-card:hover .jr-media .ph-fill { transform: scale(1.05); }
.jr-meta { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--greige); }
.jr-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  line-height: 1.05;
  margin: 0.5rem 0 0.5rem;
}
.jr-card:first-child h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.jr-card p { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.9rem; }
.jr-card .link-underline { align-self: flex-start; margin-top: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.footer h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.3rem;
}
.footer-brand .brand-text .name { font-size: 1.8rem; }
.footer-tag { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--ink-soft); margin: 1.3rem 0 0; max-width: 26ch; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.foot-links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.25s, padding 0.25s; }
.foot-links a:hover { color: var(--accent); padding-left: 5px; }
.office { margin-bottom: 1.4rem; }
.office .city { font-weight: 600; font-size: 0.92rem; }
.office .addr { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

.req-form { display: grid; gap: 0.7rem; }
.req-form input, .req-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s;
}
.req-form input:focus, .req-form textarea:focus { outline: none; border-color: var(--accent); }
.req-form .btn { width: 100%; margin-top: 0.3rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.copyright { font-size: 0.8rem; color: var(--muted); }
.credit { font-size: 0.8rem; color: var(--muted); }
.credit a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.credit a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ============================================================
   PLACEHOLDER FILL (striped slot art)
   ============================================================ */
.ph-fill {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, var(--surface) 0, var(--surface) 11px, var(--surface-2) 11px, var(--surface-2) 22px);
  position: relative;
}
.ph-fill .ph-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--greige);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.dark-slot .ph-fill {
  background: repeating-linear-gradient(135deg, #322c27 0, #322c27 11px, #3a332d 11px, #3a332d 22px);
}
.dark-slot .ph-fill .ph-label { color: var(--greige); background: rgba(38,34,30,0.6); border-color: rgba(168,154,133,0.3); }

/* ============================================================
   MOBILE NAV PANEL
   ============================================================ */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.4rem var(--gutter);
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.mobile-links { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.3rem; }
.mobile-links a {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-links a .mono { font-family: var(--mono); font-size: 0.7rem; color: var(--greige); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .req-form-wrap { grid-column: 1 / -1; }
  .lib-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .cat-grid { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .cat:nth-child(1) { grid-row: auto; }
  .cat { min-height: 280px; }
  .journal-grid { grid-template-columns: 1fr; }
  .hero-content { left: clamp(1.5rem,6vw,5.5rem); right: clamp(1.5rem,6vw,5.5rem); max-width: none; }
  .hero-scrim { background: linear-gradient(0deg, rgba(28,24,20,0.6) 0%, rgba(28,24,20,0.08) 55%); }
  .lib-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .lib-card { scroll-snap-align: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav { height: 70px; }
}

/* ---- image-slot brand styling ---- */
image-slot::part(frame) {
  background:
    repeating-linear-gradient(135deg, var(--surface) 0, var(--surface) 11px, var(--surface-2) 11px, var(--surface-2) 22px);
}
image-slot::part(empty) { color: var(--greige); font-family: var(--mono); letter-spacing: 0.04em; }
image-slot::part(ring) { border-color: color-mix(in srgb, var(--greige) 55%, transparent); }
image-slot.on-dark::part(frame) {
  background:
    repeating-linear-gradient(135deg, #322c27 0, #322c27 11px, #3a332d 11px, #3a332d 22px);
}
image-slot.on-dark::part(empty) { color: var(--greige); }

/* hero position (tweak-driven) */
:root[data-hero="left"] .hero-content { right: auto; left: clamp(1.5rem, 6vw, 5.5rem); text-align: left; }
:root[data-hero="left"] .hero-scrim { background: linear-gradient(270deg, rgba(28,24,20,0) 28%, rgba(28,24,20,0.10) 52%, rgba(28,24,20,0.46) 100%); }
:root[data-hero="center"] .hero-content { right: auto; left: 50%; transform: translateX(-50%); text-align: center; max-width: 640px; }
:root[data-hero="center"] .hero-content .link-underline { justify-content: center; }
:root[data-hero="center"] .hero-scrim { background: linear-gradient(0deg, rgba(28,24,20,0.5) 0%, rgba(28,24,20,0.12) 60%); }

/* ---- sub-page hero ---- */
.page-hero { padding-top: clamp(3rem, 6vw, 6rem); }
.crumb { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2rem; }
.crumb a:hover { color: var(--accent); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.95; letter-spacing: -0.01em; margin: 0.4rem 0 1.2rem; }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; line-height: 1.6; }
.page-note { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.page-note p { font-size: 0.95rem; color: var(--muted); max-width: 42ch; margin: 0; }
.page-media { margin-top: clamp(2.5rem, 5vw, 4rem); }
.page-media image-slot { width: 100%; height: clamp(320px, 48vw, 600px); }

/* ---- contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: clamp(2.4rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.contact-info { display: flex; flex-direction: column; gap: clamp(1.6rem, 3vw, 2.4rem); }
.contact-block { display: flex; flex-direction: column; gap: 0.55rem; }
.ci-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.ci-value {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500; line-height: 1.35; color: var(--ink);
  transition: color 0.25s var(--ease);
}
a.ci-value:hover { color: var(--accent); }
.contact-socials { margin-top: 0.2rem; }
.contact-media .slot-img {
  width: 100%; height: clamp(300px, 42vw, 520px);
  object-fit: cover; border-radius: var(--r-lg);
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- cookie banner ---- */
.cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 1200;
  width: min(420px, calc(100vw - 2rem));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -22px rgba(38, 34, 30, 0.4), 0 4px 14px -8px rgba(38, 34, 30, 0.2);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
  pointer-events: none;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.1;
  margin: 0 0 0.7rem; color: var(--ink);
}
.cookie-banner p {
  font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.cookie-banner p:last-of-type { margin-bottom: 1.3rem; }
.cookie-banner a.ck-link {
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ck-btn {
  flex: 1 1 auto; min-width: 0;
  padding: 0.7rem 1rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-md);
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.ck-btn:hover { background: var(--surface); }
.ck-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ck-btn.primary:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 460px) {
  .cookie-actions { flex-direction: column; }
  .ck-btn { flex: 1 1 100%; }
}

/* ============================================================
   E-CATALOG — Astra Library cards + lightbox
   ============================================================ */
.library { background: var(--surface); border-top: 1px solid var(--line); }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 1.8vw, 1.8rem);
}
.cat-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.6rem);
}

/* shared book-cover */
.lib-card { display: flex; flex-direction: column; }
.lib-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 40px -30px rgba(38,34,30,0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: block;
}
.lib-card:hover .lib-cover { transform: translateY(-8px); box-shadow: 0 40px 70px -34px rgba(38,34,30,0.55); }
.lib-cover image-slot { width: 100%; height: 100%; }
.lib-cover .ph-fill { transition: transform 1.1s var(--ease); }
.lib-card:hover .lib-cover .ph-fill { transform: scale(1.05); }
.lib-cover::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.16), rgba(0,0,0,0));
}
.lib-cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(190deg, rgba(28,24,20,0.05) 35%, rgba(28,24,20,0.62) 100%);
  transition: background 0.5s;
}
.lib-vol {
  position: absolute; top: 14px; left: 18px; z-index: 3;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(253,251,247,0.9);
}
.lib-cover-name {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
  color: #fdfbf7;
}
.lib-cover-name .n { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 1.7vw, 1.9rem); line-height: 1; }
.lib-cover-name .s { font-size: 0.72rem; letter-spacing: 0.02em; color: rgba(253,251,247,0.82); margin-top: 0.35rem; }

/* hover "view" overlay */
.lib-view-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  background: rgba(38,34,30,0.32);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.lib-card:hover .lib-view-overlay { opacity: 1; }
.lib-view-btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--bg); color: var(--ink);
  padding: 0.85rem 1.5rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transform: translateY(8px); transition: transform 0.4s var(--ease);
  border: none;
  pointer-events: auto;
}
.lib-card:hover .lib-view-btn { transform: translateY(0); }
.lib-view-btn svg { width: 15px; height: 15px; }

/* meta row under cover (home variant) */
.lib-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.lib-meta .txt .n { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1; }
.lib-meta .txt .s { font-size: 0.76rem; color: var(--muted); margin-top: 0.25rem; }
.lib-dl {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-soft); background: var(--bg);
  transition: all 0.3s var(--ease);
}
.lib-dl:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-2px); }
.lib-dl svg { width: 17px; height: 17px; }

/* dedicated-page action row (dual action) */
.cat-actions { display: flex; align-items: stretch; gap: 0.6rem; padding-top: 1.1rem; }
.cat-actions .lib-view-cta {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.9rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.cat-actions .lib-view-cta:hover { background: var(--accent); border-color: var(--accent); }
.cat-actions .lib-view-cta svg { width: 15px; height: 15px; }

/* lightbox */
.pdf-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  background: rgba(20,17,14,0.78);
  backdrop-filter: blur(8px);
}
.pdf-lightbox.open { display: flex; animation: lbFade 0.3s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.pdf-panel {
  position: relative;
  width: min(960px, 100%); height: 100%; max-height: 92vh;
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
}
.pdf-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.pdf-bar .t { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1; }
.pdf-bar .t .s { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pdf-bar-actions { display: flex; align-items: center; gap: 0.5rem; }
.pdf-frame { flex: 1; border: none; width: 100%; background: var(--surface-2); }
.pdf-fallback { padding: 2rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   PRODUCTS PAGE — category showcase + brand ecosystem
   ============================================================ */
.prod-cat {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.prod-cat:nth-child(even) .prod-cat-media { order: -1; }
.prod-cat-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  min-height: clamp(320px, 42vw, 520px);
}
.prod-cat-media image-slot { width: 100%; height: 100%; }
.prod-cat-body { align-self: center; max-width: 30rem; }
.prod-cat-body .num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.prod-cat-body h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.98; letter-spacing: -0.01em;
  margin: 0.6rem 0 1rem;
}
.prod-cat-body p { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); line-height: 1.6; margin: 0 0 1.8rem; }

/* brand ecosystem banner */
.brand-eco { background: var(--ink); color: #ece4d8; }
.brand-eco .section-kicker { color: var(--greige); }
.brand-eco h2 { color: #faf5ee; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: 0.5rem 0 0; }
.brand-eco .eco-lead { color: var(--greige); max-width: 52ch; margin: 1.2rem auto 0; font-size: 1.02rem; line-height: 1.6; }
.eco-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(168,154,133,0.28);
  border-bottom: 1px solid rgba(168,154,133,0.28);
}
.eco-brand {
  text-align: center;
  padding: clamp(2rem, 3.5vw, 3.2rem) 1.2rem;
  position: relative;
}
.eco-brand + .eco-brand::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: rgba(168,154,133,0.28);
}
.eco-brand .bn {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.05; color: #faf5ee;
  letter-spacing: 0.01em;
}
.eco-brand .bt { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--greige); margin-top: 0.7rem; }

/* ============================================================
   ASTRA BAZAAR — marketplace gateway cards
   ============================================================ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.2vw, 2rem);
}
.market-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 2.6vw, 2.6rem);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.market-card:hover {
  border-color: var(--surface-2);
  box-shadow: 0 34px 64px -40px rgba(38,34,30,0.45);
  transform: translateY(-5px);
}
.market-badge {
  align-self: flex-start;
  white-space: nowrap;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.market-logo {
  flex: 1;
  display: grid; place-items: center;
  min-height: clamp(120px, 16vw, 170px);
  padding: clamp(1.6rem, 3vw, 2.6rem) 0;
}
.market-logo img { max-width: 78%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.market-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  width: 100%;
  padding: 1.05rem 1.4rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s, gap 0.35s var(--ease);
}
.market-card:hover .market-cta { background: var(--accent); border-color: var(--accent); gap: 1.1em; }
.market-cta svg { width: 15px; height: 15px; }
.market-secure { display: flex; align-items: center; gap: 0.5em; margin-top: 1rem; font-size: 0.72rem; color: var(--muted); }
.market-secure svg { width: 13px; height: 13px; color: var(--greige); }

@media (max-width: 900px) {
  .prod-cat { grid-template-columns: 1fr; }
  .prod-cat:nth-child(even) .prod-cat-media { order: 0; }
  .prod-cat-media { min-height: 300px; }
  .eco-row { grid-template-columns: repeat(2, 1fr); }
  .eco-brand:nth-child(3)::before, .eco-brand:nth-child(2)::before { content: none; }
  .eco-brand + .eco-brand::before { content: ""; }
  .eco-brand:nth-child(odd)::before { content: none; }
  .eco-brand:nth-child(3), .eco-brand:nth-child(4) { border-top: 1px solid rgba(168,154,133,0.28); }
  .market-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CORPORATE / ABOUT PAGE
   ============================================================ */
/* stacked editorial hero */
.co-hero { padding-top: clamp(2.4rem, 5vw, 4.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.co-hero-copy { max-width: 100%; }
.co-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0.8rem 0 0;
  text-wrap: balance;
}
.co-hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.75;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  max-width: 70ch;
}

/* thin editorial metadata divider above the banner */
.co-hero-metarow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.co-hero-metarow .m {
  display: inline-flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.co-hero-metarow .m .n { color: var(--greige); }

/* wide panoramic banner */
.co-hero-banner {
  width: 100%;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  aspect-ratio: 21 / 9;
  max-height: 560px;
  border-radius: clamp(18px, 2vw, 26px);
  overflow: hidden;
  background: var(--surface);
}
.co-hero-banner image-slot { width: 100%; height: 100%; }
.co-hero-banner image-slot::part(img) { width: 100%; height: 100%; object-fit: cover; }

/* brands ecosystem (dark band) */
.co-brands { background: var(--ink); color: #ece4d8; }
.co-brands .section-kicker { color: var(--greige); }
.co-brands h2 { color: #faf5ee; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: 0.5rem 0 0; }
.co-brands .lead { color: var(--greige); max-width: 54ch; margin: 1.1rem 0 0; font-size: 1rem; line-height: 1.6; }
.brand-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.8vw, 1.6rem);
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
}
.brand-card {
  display: flex; flex-direction: column;
  border: 1px solid rgba(168,154,133,0.28);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 2.4vw, 2.4rem);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.brand-card:hover { background: rgba(168,154,133,0.07); border-color: rgba(168,154,133,0.5); transform: translateY(-4px); }
.brand-card .bnum { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--greige); }
.brand-card .bn {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.02;
  color: #faf5ee; margin: 1.4rem 0 0.5rem;
}
.brand-card .br {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #f0d9ce;
}
.brand-card .bd { font-size: 0.92rem; line-height: 1.62; color: var(--greige); margin: 1.2rem 0 0; }

/* global footprint */
.co-global-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.co-global-copy p { font-size: clamp(1rem, 1.3vw, 1.14rem); color: var(--ink-soft); line-height: 1.7; margin: 0 0 1.4rem; }
.co-global-copy p.fairs-note { color: var(--muted); font-size: 0.98rem; }
.co-countries {
  border-top: 1px solid var(--line);
}
.co-countries .ck {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--greige); padding: 1.1rem 0 0.4rem;
}
.country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.country {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem; color: var(--ink);
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.country:hover { color: var(--accent); padding-left: 0.5rem; }
.country .cn { font-family: var(--mono); font-size: 0.68rem; color: var(--greige); flex-shrink: 0; }

/* expertise / focus stat row */
.co-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.co-stat .fig {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--ink); line-height: 1;
}
.co-stat .lbl {
  display: block; margin-top: 0.7rem;
  font-size: 0.95rem; color: var(--muted); line-height: 1.45;
}
@media (max-width: 720px) {
  .co-stats { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* quality commitment */
.co-quality-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.co-quality-head { position: sticky; top: 110px; }
.co-quality-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
}
.co-quality-body p { font-size: clamp(1.02rem, 1.35vw, 1.18rem); color: var(--ink-soft); line-height: 1.72; margin: 0 0 1.5rem; }
.co-pull {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25;
  color: var(--accent);
  margin: 0.5rem 0 2rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
  text-wrap: balance;
}

/* corporate CTA band */
.co-cta { background: var(--surface); border-top: 1px solid var(--line); }
.co-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.co-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; margin: 0; }
.co-cta p { color: var(--muted); margin: 0.8rem 0 0; max-width: 44ch; }

@media (max-width: 960px) {
  .brand-cards { grid-template-columns: repeat(2, 1fr); }
  .co-global-grid { grid-template-columns: 1fr; }
  .co-quality-grid { grid-template-columns: 1fr; }
  .co-quality-head { position: static; }
}
@media (max-width: 640px) {
  .co-hero-banner { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .country-list { grid-template-columns: 1fr; }
  .brand-cards { grid-template-columns: 1fr; }
}

/* hide tweaks-driven elements before JS boot to avoid flash handled inline */

/* ============================================================
   STATIC <img> SLOTS (replaces image-slot web component)
   ============================================================ */
.slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-media .slot-img { height: clamp(320px, 48vw, 600px); border-radius: var(--r-lg); }

/* ============================================================
   EXPORT MARKETS PAGE
   ============================================================ */
.mk-intro { padding-top: clamp(2.4rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.mk-intro h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 0.95; letter-spacing: -0.015em;
  margin: 0.7rem 0 0;
}
.mk-intro .lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); line-height: 1.7; margin: clamp(1.4rem,3vw,2rem) 0 0; max-width: 70ch; }

/* dark globe stage */
.mk-stage {
  background:
    radial-gradient(120% 90% at 28% 18%, #2c2722 0%, #211d19 38%, #161310 100%);
  color: #ece4d8;
  --hub: #f0d6a4;
  --export: #d2697d;
}
.mk-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.mk-globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  min-height: 320px;
}
.mk-globe-wrap canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.mk-globe-wrap canvas:active { cursor: grabbing; }
.mk-globe-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--greige);
}
.mk-tooltip {
  position: absolute; top: 0; left: 0; pointer-events: none;
  transform: translate(-50%, -140%);
  background: rgba(20,17,14,0.92); border: 1px solid rgba(210,105,125,0.5);
  color: #fbf3ea; padding: 0.4rem 0.7rem; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; white-space: nowrap;
  opacity: 0; transition: opacity 0.18s; z-index: 5;
}
.mk-tooltip.on { opacity: 1; }
.mk-globe-note {
  position: absolute; left: 0; bottom: 0.2rem; width: 100%; text-align: center;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(168,154,133,0.7); pointer-events: none;
}

/* side panel */
.mk-side .section-kicker { color: var(--greige); }
.mk-side h2 { color: #faf5ee; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.04; margin: 0.4rem 0 0; }
.mk-legend { display: grid; gap: 1rem; margin: 1.6rem 0; padding: 1.3rem 0; border-top: 1px solid rgba(168,154,133,0.22); border-bottom: 1px solid rgba(168,154,133,0.22); }
.mk-legend .row { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.92rem; line-height: 1.35; color: #d9d0c2; }
.mk-legend .mk-dot { margin-top: 0.28rem; }
.mk-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }
.mk-dot.hub { background: var(--hub); box-shadow: 0 0 10px 1px rgba(240,214,164,0.6); }
.mk-dot.dest { background: var(--export); box-shadow: 0 0 10px 1px rgba(210,105,125,0.55); }
.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.mk-stat .n { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: #faf5ee; }
.mk-stat .l { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--greige); margin-top: 0.3rem; }

/* country list */
.mk-countries { margin-top: clamp(2.4rem, 5vw, 4rem); border-top: 1px solid rgba(168,154,133,0.22); padding-top: clamp(1.8rem, 3vw, 2.6rem); }
.mk-countries-head { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--greige); margin-bottom: 1.4rem; }
.mk-region { margin-bottom: 1.6rem; }
.mk-region-name { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(210,105,125,0.85); margin-bottom: 0.8rem; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.mk-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem; border: 1px solid rgba(168,154,133,0.28); border-radius: 100px;
  font-size: 0.9rem; color: #e7ddce; transition: border-color 0.25s, background 0.25s, transform 0.4s var(--ease);
}
.mk-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--export); box-shadow: 0 0 7px rgba(210,105,125,0.6); }
.mk-chip:hover { border-color: rgba(210,105,125,0.5); background: rgba(210,105,125,0.08); transform: translateY(-2px); }

/* markets CTA */
.mk-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mk-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; margin: 0; }
.mk-cta p { color: var(--muted); margin: 0.8rem 0 0; max-width: 46ch; }

@media (max-width: 920px) {
  .mk-grid { grid-template-columns: 1fr; }
  .mk-globe-wrap { max-width: 560px; margin: 0 auto; }
}
