/* =========================================================================
   Valore Museum — its own visual identity.
   Warm parchment-on-cream light theme (NOT reused from A.R.C.'s sci-fi HUD or
   Valore Group's marketing-site palette). Each country page shifts its
   accent pair to colors drawn from that culture's real textile/art
   traditions (see the country-* blocks below) rather than one repeated
   brand color reused everywhere.

   Theme note: this was originally a dark "espresso" theme and was flipped to
   a light "paper" theme (warmer, more welcoming) on 2026-07-20. To minimize
   risk, most existing var() names were kept but their meaning changed:
     --paper-on-ink / -70 / -50  → now the main INK-colored TEXT used on the
                                    light --paper page background (name is a
                                    holdover from the old dark theme).
     --ink                       → still a near-black tone, now reserved for
                                    a handful of DELIBERATELY DARK surfaces
                                    (country-hero photo overlay, map "window",
                                    lightbox backdrop, popups) that stay dark
                                    for contrast even on an otherwise light page.
     --text-on-dark / -70 / -50  → NEW: light cream text, for use only on
                                    those deliberately-dark surfaces above.
   ========================================================================= */
:root{
  --paper:#F1E6CE;
  --paper-2:#EADFC4;
  --ink:#1D130F;
  --ink-70:rgba(29,19,15,.72);
  --ink-50:rgba(29,19,15,.5);
  --saffron:#B8791A;
  --saffron-dark:#8F5C12;
  --clay:#A8362B;
  --clay-dark:#7E281E;
  --brass:#96751F;
  --line:#E4D5B7;
  --paper-on-ink:#2A1D16;
  --paper-on-ink-70:rgba(42,29,22,.72);
  --paper-on-ink-50:rgba(42,29,22,.5);

  --text-on-dark:#F3E7D3;
  --text-on-dark-70:rgba(243,231,211,.72);
  --text-on-dark-50:rgba(243,231,211,.5);

  /* default accent pair (shell / non-country pages) */
  --accent:#B8791A;
  --accent-dark:#8F5C12;
  --accent-2:#A8362B;
  --accent-soft:rgba(227,164,48,.20);
  --accent-soft-2:rgba(178,58,46,.26);

  --radius:3px;
  --max:1180px;
  --shadow-sm: 0 1px 2px rgba(29,19,15,.10), 0 2px 8px rgba(29,19,15,.08);
  --shadow-md: 0 4px 12px rgba(29,19,15,.12), 0 12px 32px rgba(29,19,15,.10);
  --shadow-lg: 0 8px 24px rgba(29,19,15,.16), 0 24px 56px rgba(29,19,15,.14);
}

/* ---------- Per-country accent identity, drawn from real textile/art
   traditions rather than a single reused brand color. --accent (primary) is
   used for fills/borders and was already dark/rich enough to read on cream;
   --accent-2 (the "gold" half of each pair) is used as small TEXT in places,
   so those were deepened from the original dark-theme values for legibility
   on the light page — the hero-photo tag uses a fixed color instead (see
   .country-hero .tag) so it didn't need to double as light-page text. ---------- */
body.country-iraq{
  /* Islamic-era blue-glazed tilework + Mesopotamian mudbrick/sand */
  --accent:#1F4E6E; --accent-dark:#163A52; --accent-2:#9C5A24;
  --accent-soft:rgba(31,78,110,.18); --accent-soft-2:rgba(156,90,36,.18);
}
body.country-eritrea{
  /* Red Sea marine blue + Asmara stone/desert ochre */
  --accent:#1B5E73; --accent-dark:#134656; --accent-2:#96631E;
  --accent-soft:rgba(27,94,115,.18); --accent-soft-2:rgba(150,99,30,.18);
}
body.country-south_sudan{
  /* Cattle-hide earth brown + Dinka beadwork red */
  --accent:#6B4A26; --accent-dark:#4D351B; --accent-2:#8F3324;
  --accent-soft:rgba(107,74,38,.18); --accent-soft-2:rgba(143,51,36,.18);
}
body.country-ethiopia{
  /* Highland forest green + Aksumite gold */
  --accent:#2B5C3F; --accent-dark:#1F452F; --accent-2:#8F6A12;
  --accent-soft:rgba(43,92,63,.18); --accent-soft-2:rgba(143,106,18,.18);
}
body.country-venezuela{
  /* Angel Falls sky blue + joropo/carnival warmth */
  --accent:#1E4D8C; --accent-dark:#163A69; --accent-2:#A34A1E;
  --accent-soft:rgba(30,77,140,.18); --accent-soft-2:rgba(163,74,30,.18);
}
body.country-haiti{
  /* Flag blue + flag red, the 1804 revolution's own colors */
  --accent:#1E3A5F; --accent-dark:#152A46; --accent-2:#7E281E;
  --accent-soft:rgba(30,58,95,.18); --accent-soft-2:rgba(126,40,30,.18);
}
body.country-somalia{
  /* Indian Ocean coastline blue + henna-orange */
  --accent:#1D6E8C; --accent-dark:#14526A; --accent-2:#8C4D22;
  --accent-soft:rgba(29,110,140,.18); --accent-soft-2:rgba(194,121,58,.18);
}
body.country-myanmar{
  /* Bagan temple gilding: burnished gold + sunset-red terracotta */
  --accent:#8A6608; --accent-dark:#6B4F06; --accent-2:#9C3A28;
  --accent-soft:rgba(184,134,11,.18); --accent-soft-2:rgba(181,67,46,.16);
}
body.country-afghanistan{
  /* Mazar-i-Sharif Blue Mosque tilework: lapis blue + turquoise-green */
  --accent:#1F5C7A; --accent-dark:#164459; --accent-2:#2F7A5C;
  --accent-soft:rgba(31,92,122,.18); --accent-soft-2:rgba(78,156,126,.18);
}
body.country-dr_congo{
  /* Kuba raffia cloth: natural-fiber tan/ochre + deep rust-brown embroidery dye */
  --accent:#6B4226; --accent-dark:#4D2E19; --accent-2:#8F6420;
  --accent-soft:rgba(107,66,38,.18); --accent-soft-2:rgba(185,139,62,.18);
}
body.country-bhutan{
  /* Nepali Hindu vermilion tika/sindoor red + marigold-garland gold (Dashain/Tihar) */
  --accent:#872720; --accent-dark:#661D18; --accent-2:#B0691A;
  --accent-soft:rgba(181,52,42,.18); --accent-soft-2:rgba(224,147,46,.18);
}
body.country-nigeria{
  /* Adire indigo-resist cloth (Yoruba) + marigold wax-print gold */
  --accent:#2A4B7C; --accent-dark:#1E3557; --accent-2:#9C7A12;
  --accent-soft:rgba(42,75,124,.18); --accent-soft-2:rgba(232,185,35,.18);
}
body.country-syria{
  /* Damascus tilework: teal/turquoise glaze + terracotta tile body */
  --accent:#215A66; --accent-dark:#18434C; --accent-2:#A34F1E;
  --accent-soft:rgba(46,125,140,.18); --accent-soft-2:rgba(193,101,42,.18);
}
body.country-vietnam{
  /* Lacquerware red + brass/gold leaf */
  --accent:#7C1B22; --accent-dark:#5E1419; --accent-2:#96751C;
  --accent-soft:rgba(166,36,46,.18); --accent-soft-2:rgba(201,162,39,.18);
}
body.country-ukraine{
  /* Vyshyvanka cross-stitch: red + wheat gold */
  --accent:#932A23; --accent-dark:#701F1A; --accent-2:#A67F1C;
  --accent-soft:rgba(194,59,50,.18); --accent-soft-2:rgba(228,185,63,.18);
}

/* ---- Artist spotlight rooms (js/museum-ui.js ARTIST_SLUGS), styled the
   same way as a country room above — a real palette drawn from the artist's
   own work rather than a generic accent. Bahati's recurring palette across
   this set is a royal/lapis blue paired with warm gold leaf. ---------- */
body.artist-bahati{
  /* Royal blue underpainting + gold-leaf jewelry, recurring across her portraits */
  --accent:#1E3A6B; --accent-dark:#152A4E; --accent-2:#B0851A;
  --accent-soft:rgba(30,58,107,.18); --accent-soft-2:rgba(176,133,26,.18);
}
body.artist-olgalene{
  /* Night-sky indigo (moon wolf, night bloom, cliff tree) + the metallic gold branch running through her tree paintings */
  --accent:#1B3550; --accent-dark:#14283D; --accent-2:#C79A3B;
  --accent-soft:rgba(27,53,80,.18); --accent-soft-2:rgba(199,154,59,.18);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

body{
  margin:0;
  background:var(--paper);
  color:var(--paper-on-ink);
  font-family:'Archivo', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:'Newsreader', serif;
  font-weight:600;
  line-height:1.1;
  margin:0;
  letter-spacing:-0.01em;
}

a{color:inherit; text-decoration:none;}
img,svg{display:block; max-width:100%;}

/* ---------- Top nav ---------- */
.site-nav{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
  padding:16px clamp(20px,4vw,56px);
  background:rgba(241,230,206,.90);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(42,29,22,.10);
}
.brand{
  display:flex; align-items:baseline; gap:10px;
  font-family:'Newsreader', serif; font-weight:600; font-size:20px;
  color:var(--paper-on-ink);
}
.brand-icon{
  height:30px; width:auto; align-self:center;
}
.brand small{
  font-family:'Archivo', sans-serif; font-weight:600; font-size:11px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--saffron);
}
.nav-links{display:flex; gap:28px; flex-wrap:wrap; align-items:center;}
.nav-links a{
  font-size:14px; font-weight:600; color:var(--paper-on-ink-70);
  transition:color .15s ease;
}
.nav-links a:hover, .nav-links a.active{color:var(--accent-2);}

/* Main-nav language switcher (js/site-lang.js) — a light-theme sibling of
   gallery.html's own dark .lang-switch/.lang-menu; same behavior, palette
   matched to the cream site-nav instead of the gallery's dark chrome. */
.nav-lang-wrap{position:relative;}
.nav-lang-btn{appearance:none; display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:1px solid rgba(42,29,22,.25); border-radius:999px;
  padding:7px 14px; font-size:13px; font-weight:600; color:var(--paper-on-ink-70);
  cursor:pointer; transition:background .15s ease, color .15s ease, border-color .15s ease;}
.nav-lang-btn:hover{background:rgba(42,29,22,.06); color:var(--paper-on-ink); border-color:rgba(42,29,22,.4);}
.nav-lang-btn svg{width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.6;}
.nav-lang-menu{position:absolute; top:calc(100% + 8px); right:0; min-width:150px;
  max-height:min(340px,60vh); overflow-y:auto; background:var(--paper);
  border:1px solid rgba(42,29,22,.15); border-radius:12px; padding:6px;
  box-shadow:0 12px 32px rgba(29,19,15,.18); opacity:0; pointer-events:none;
  transform:translateY(-6px); transition:opacity .16s ease, transform .16s ease; z-index:50;}
.nav-lang-menu.open{opacity:1; pointer-events:auto; transform:translateY(0);}
.nav-lang-menu button{display:block; width:100%; appearance:none; background:transparent;
  border:none; color:var(--paper-on-ink); text-align:left; padding:9px 12px; border-radius:8px;
  font-size:13px; min-height:36px; cursor:pointer; transition:background .14s ease;}
.nav-lang-menu button:hover{background:rgba(42,29,22,.06);}
.nav-lang-menu button[aria-current="true"]{color:var(--accent-2); font-weight:700;}
@media (max-width:640px){
  .nav-lang-btn span{display:none;}
  .nav-lang-btn{padding:7px 10px;}
  /* .site-nav had no mobile treatment at all — brand text and nav links
     (site-lang.js appends the language switcher as .nav-links' own last
     child, so it wraps here too) fought for the same row and visibly
     overlapped below ~640px. Dropping the subtitle and letting the whole
     link row wrap onto its own centered line keeps everything legible
     instead of colliding. */
  .brand small{display:none;}
  .site-nav{flex-wrap:wrap; row-gap:10px; padding:14px clamp(16px,4vw,56px);}
  .nav-links{width:100%; justify-content:center; gap:16px 18px;}
}
.nav-cta{
  border:1px solid rgba(42,29,22,.25); border-radius:999px;
  padding:7px 16px; font-size:13px !important;
}
.nav-cta:hover{border-color:var(--saffron); color:var(--saffron) !important;}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:78vh;
  display:flex; align-items:center;
  padding:0 clamp(20px,6vw,80px);
  overflow:hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, var(--accent-soft-2), transparent 60%),
    var(--paper);
}
.hero-inner{max-width:760px; position:relative; z-index:2;}
.eyebrow{
  font-family:'Archivo', sans-serif; font-weight:700; font-size:12px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--saffron);
  margin-bottom:18px; display:block;
}
.hero h1{
  font-size:clamp(40px,6vw,74px);
  color:var(--paper-on-ink);
  margin-bottom:22px;
}
.hero p.lede{
  font-size:clamp(17px,2vw,20px);
  color:var(--paper-on-ink-70);
  max-width:60ch;
  margin-bottom:32px;
}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:var(--radius);
  font-weight:700; font-size:14px; letter-spacing:.02em;
  border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family:inherit;
}
.btn-primary{background:var(--saffron); color:#fff; box-shadow:var(--shadow-sm);}
.btn-primary:hover{background:var(--saffron-dark); transform:translateY(-1px); box-shadow:var(--shadow-md);}
.btn-outline{border-color:rgba(42,29,22,.3); color:var(--paper-on-ink);}
.btn-outline:hover{border-color:var(--saffron); color:var(--saffron);}
.btn-sm{padding:9px 16px; font-size:13px;}
.btn:disabled{opacity:.5; cursor:not-allowed;}

/* ---------- Section shell ---------- */
section{padding:clamp(64px,9vw,120px) clamp(20px,6vw,80px);}
.section-max{max-width:var(--max); margin:0 auto;}
.section-head{max-width:640px; margin-bottom:48px;}
.section-head h2{font-size:clamp(28px,4vw,42px); color:var(--paper-on-ink); margin-bottom:14px;}
.section-head p{color:var(--paper-on-ink-70); font-size:16px;}
.section-head-row{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap;}

/* ---------- Reveal (GSAP hook) ---------- */
.reveal{opacity:0; transform:translateY(28px);}
.reveal.is-visible{opacity:1; transform:none; transition:opacity .8s ease, transform .8s ease;}

/* ---------- Region grid (fallback / secondary nav on Explore) ---------- */
.region-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px;
  margin-top:40px;
}
.region-card{
  border:1px solid rgba(42,29,22,.14); border-radius:var(--radius);
  padding:22px; background:rgba(255,255,255,.4);
  transition:border-color .15s ease, transform .15s ease, background .15s ease;
}
.region-card:hover{border-color:var(--card-accent, var(--saffron)); transform:translateY(-2px); background:rgba(255,255,255,.65);}
.region-card .tag{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--card-accent, var(--saffron)); font-weight:700;}
.region-card h3{margin:10px 0 8px; font-size:20px;}
.region-card p{color:var(--paper-on-ink-70); font-size:14px; margin:0;}

/* ---------- Orbital gallery — a circular carousel of country photography,
   navigated by drag/swipe/arrow-keys. Positions are computed in JS (angle →
   translateX/Z + rotateY + scale + opacity) and driven by GSAP; this block is
   just the visual shell + the states JS toggles. ---------- */
.orbit-gallery{position:relative; margin-top:8px; outline:none;}
.orbit-stage{
  position:relative; height:min(50vh,420px);
  perspective:1600px;
  display:flex; align-items:center; justify-content:center;
  cursor:grab; touch-action:pan-y; user-select:none;
}
.orbit-stage.dragging{cursor:grabbing;}
.orbit-item{
  position:absolute; top:50%; left:50%;
  width:210px; height:270px; margin:-135px 0 0 -105px;
  border-radius:10px; overflow:hidden;
  box-shadow:0 12px 32px rgba(29,19,15,.28);
  will-change:transform, opacity, filter;
  cursor:pointer;
  transform-style:preserve-3d;
  background:var(--paper-2, #EFE2C4);
  display:flex; align-items:center; justify-content:center;
  padding:22px;
}
.orbit-item img{width:100%; height:auto; max-height:100%; object-fit:contain; display:block; pointer-events:none; box-shadow:0 2px 10px rgba(29,19,15,.25);}
.orbit-item.is-front{cursor:pointer;}
.orbit-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:6;
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(42,29,22,.16);
  background:rgba(255,255,255,.75); backdrop-filter:blur(4px);
  font-size:19px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--paper-on-ink); transition:background .15s ease, transform .15s ease; padding:0;
}
.orbit-nav:hover{background:#fff; transform:translateY(-50%) scale(1.08);}
.orbit-prev{left:0;}
.orbit-next{right:0;}
.orbit-hud{text-align:center; margin-top:22px; min-height:78px;}
.orbit-hud-region{
  display:block; font-family:'Archivo',sans-serif; font-weight:700; font-size:11px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--saffron);
}
.orbit-hud-name{font-size:30px; margin:6px 0 6px;}
.orbit-hud-cta{
  display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700;
  color:var(--accent-2, var(--saffron));
}
.orbit-hint{
  text-align:center; font-size:12px; color:var(--paper-on-ink-50); margin-top:6px;
}
.orbit-travel-overlay{
  position:fixed; inset:0; z-index:300; background:var(--ink);
  opacity:0; pointer-events:none;
}
@media (max-width:640px){
  .orbit-item{width:150px; height:200px; margin:-100px 0 0 -75px;}
  .orbit-nav{display:none;}
}

/* ---------- Explore globe + ring gallery ---------- */
/* The globe sits in the center like a gallery pedestal (see the reference
   the brief was built from), with every country's photo hanging as a card
   in a continuous ring around it. There's no real depth compositing between
   the WebGL canvas and DOM cards, so js/ring-gallery.js fakes occlusion by
   moving each card between the ring-front layer (stacked above the canvas)
   and ring-back layer (stacked below it) as it crosses to the far side. */
.globe-ring-frame{
  position:relative; width:100%; height:min(85vh,760px);
  perspective:1800px; outline:none;
}
.ring-nav{
  position:absolute; top:50%; transform:translateY(-50%); z-index:20;
  width:44px; height:44px; border-radius:50%; border:1px solid rgba(42,29,22,.16);
  background:rgba(255,255,255,.75); backdrop-filter:blur(4px);
  font-size:19px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--paper-on-ink); transition:background .15s ease, transform .15s ease; padding:0;
}
.ring-nav:hover{background:#fff; transform:translateY(-50%) scale(1.08);}
.ring-prev{left:8px;}
.ring-next{right:8px;}
#exploreGlobe{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:min(48%,380px); aspect-ratio:1/1;
  border-radius:50%; overflow:hidden;
  box-shadow:var(--shadow-lg); background:var(--ink);
  z-index:5; pointer-events:auto;
}
#exploreGlobe canvas{display:block; touch-action:none;}
.ring-layer{position:absolute; inset:0; pointer-events:none;}
.ring-back{z-index:1;}
.ring-front{z-index:10;}
.ring-card{
  position:absolute; top:50%; left:50%;
  width:150px; height:132px; margin:-84px 0 0 -75px;
  border-radius:8px; overflow:hidden;
  box-shadow:0 10px 26px rgba(29,19,15,.32);
  pointer-events:auto; cursor:pointer; text-decoration:none;
  display:flex; flex-direction:column;
  background:var(--paper-2, #EFE2C4);
  will-change:transform, opacity;
}
.ring-card img{
  flex:1; min-height:0; width:100%; object-fit:contain; display:block;
  padding:14px 14px 4px; box-sizing:border-box;
}
.ring-card-name{
  text-align:center; padding:4px 8px 8px;
  font-family:'Archivo',sans-serif; font-weight:700; font-size:12px;
  color:var(--ink);
}
.ring-hud{text-align:center; margin-top:20px; min-height:70px;}
.ring-hud-region{
  display:block; font-family:'Archivo',sans-serif; font-weight:700; font-size:11px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--saffron);
}
.ring-hud-name{font-size:26px; margin:6px 0 6px;}
.ring-hud-blurb{color:var(--paper-on-ink-70); font-size:14px; max-width:560px; margin:0 auto;}
@media (max-width:640px){
  .ring-card{width:110px; height:98px; margin:-62px 0 0 -55px;}
  #exploreGlobe{width:min(52%,220px);}
}
.globe-tooltip{
  position:absolute; z-index:500; pointer-events:none;
  transform:translate(-50%, -100%);
  background:rgba(20,13,9,.92); color:var(--text-on-dark);
  font-family:'Archivo',sans-serif; font-weight:600; font-size:12px;
  padding:6px 10px; border-radius:6px; box-shadow:var(--shadow-sm);
  white-space:nowrap; opacity:0; transition:opacity .15s ease;
}
.globe-tooltip.visible{opacity:1;}
.map-hint{
  position:absolute; left:16px; bottom:16px; z-index:500; pointer-events:none;
  background:rgba(20,13,9,.82); color:var(--text-on-dark); backdrop-filter:blur(4px);
  padding:9px 16px; border-radius:999px; font-size:13px; font-weight:600;
  box-shadow:var(--shadow-md); animation:map-hint-pulse 2.2s ease-in-out infinite;
  transition:opacity .5s ease, transform .5s ease;
}
.map-hint.faded{opacity:0; transform:translateY(6px);}
@keyframes map-hint-pulse{
  0%, 100%{box-shadow:0 0 0 0 rgba(184,121,26,.35), var(--shadow-md);}
  50%{box-shadow:0 0 0 8px rgba(184,121,26,0), var(--shadow-md);}
}
@media (prefers-reduced-motion: reduce){
  .map-hint{animation:none;}
}
.map-legend{
  display:flex; gap:20px; flex-wrap:wrap; margin-top:18px;
  font-size:13px; color:var(--paper-on-ink-70);
}
.map-legend span{display:inline-flex; align-items:center; gap:8px;}
.map-legend i{width:10px; height:10px; border-radius:50%; background:var(--saffron); display:inline-block;}

/* ---------- Museum gallery (full-page first-person Explore experience) ----------
   This page is deliberately NOT laid out like the rest of the site — no nav,
   no footer, no scrolling. The door and the gallery are each a full-viewport
   fixed layer; only one is ever visible/interactive at a time. */
.museum-body{margin:0; height:100vh; height:100dvh; overflow:hidden;}
.museum-back-link{
  position:fixed; top:16px; left:16px; z-index:100;
  color:var(--text-on-dark-70, rgba(243,231,211,.75)); font-size:13px; font-weight:600;
  text-decoration:none; font-family:'Archivo',sans-serif;
  background:rgba(20,13,9,.5); padding:7px 14px; border-radius:999px;
  transition:background .15s ease, color .15s ease;
}
.museum-back-link:hover{background:rgba(20,13,9,.75); color:#fff;}

/* Teleport flash: a bright radial burst timed with the gallery reveal, and
   a matching brightness/blur pulse on the gallery root itself, so entering
   reads as "teleported in" rather than a plain crossfade. */
.museum-teleport-flash{
  position:fixed; inset:0; z-index:60; pointer-events:none; opacity:0;
  background:radial-gradient(circle at 50% 50%, #fff 0%, rgba(255,224,168,.9) 30%, rgba(184,121,26,.4) 60%, transparent 78%);
}
.museum-teleport-flash.flash{animation:museum-teleport-flash .65s ease-out;}
@keyframes museum-teleport-flash{
  0%{opacity:0; transform:scale(.3);}
  35%{opacity:1; transform:scale(1.5);}
  100%{opacity:0; transform:scale(2.4);}
}
.museum-gallery-root.teleport-in{animation:museum-gallery-arrive .4s cubic-bezier(.16,1,.3,1);}
@keyframes museum-gallery-arrive{
  0%{filter:brightness(2.6) blur(7px); transform:scale(1.05);}
  100%{filter:brightness(1) blur(0); transform:scale(1);}
}

/* ---- Step 1: the door ---- */
.museum-door-screen{
  position:fixed; inset:0; z-index:50;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(ellipse at 50% 40%, #2a1e14 0%, #150f0a 65%, #0a0705 100%);
  transition:opacity .5s ease;
  /* The gallery jump-menu below adds real height on short viewports — scroll
     instead of letting justify-content:center clip the door/CTA off-screen. */
  overflow-y:auto; padding:24px 0;
}
.museum-door-screen.entered{opacity:0; pointer-events:none;}
/* Everything the visitor sees before entering — centered as one column so
   the door itself always sits as the single focal point in the middle of
   the screen, title above it and the CTA/menu below. */
.museum-entrance{
  display:flex; flex-direction:column; align-items:center; gap:22px;
  margin:auto;
}
.museum-entrance-title{
  font-family:'Newsreader',serif; font-style:italic; font-weight:600;
  font-size:clamp(26px,4vw,40px); color:#f3e7d3; letter-spacing:.02em;
  text-align:center; text-shadow:0 2px 16px rgba(0,0,0,.6); margin:0;
}

/* ---- The archway: a stone surround (columns + arch) framing the door
   itself, a wrought-iron transom above it, and a hanging lantern at the
   crown — inspired by a real ornate double-door entrance photo rather than
   the plain flat rectangle this used to be. All CSS/inline-SVG, no image
   assets, consistent with how the rest of the site generates its own
   textures. ---- */
.museum-archway{
  position:relative; width:min(46vw,320px);
  padding-top:52px; /* room for the lantern hanging above the arch crown */
  display:flex; flex-direction:column; align-items:center;
}
.museum-arch-bg{
  position:absolute; top:45px; left:50%; transform:translateX(-50%);
  width:calc(100% + 36px); height:calc(100% - 32px);
  background:radial-gradient(ellipse at 50% 0%, #746650 0%, #564a38 45%, #362c20 100%);
  border-radius:50% 50% 10px 10px / 30% 30% 0 0;
  box-shadow:0 20px 50px rgba(0,0,0,.55), inset 0 0 40px rgba(0,0,0,.4);
  z-index:0;
}
.museum-column{
  position:absolute; bottom:-6px; width:16px; height:calc(100% - 24px);
  background:repeating-linear-gradient(90deg, #7e7259 0 3px, #645940 3px 6px);
  border-radius:5px; box-shadow:0 10px 18px rgba(0,0,0,.45); z-index:1;
}
.museum-column::before, .museum-column::after{
  content:""; position:absolute; left:-3px; width:22px; height:8px;
  background:#6d6146; border-radius:3px; box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.museum-column::before{top:-5px;}
.museum-column::after{bottom:-5px;}
.museum-column-left{left:2px;}
.museum-column-right{right:2px;}
.museum-lantern{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:2px; height:36px; background:#241a12; z-index:3;
}
.museum-lantern::after{
  content:""; position:absolute; bottom:-15px; left:50%; transform:translateX(-50%);
  width:16px; height:20px; border-radius:3px 3px 7px 7px;
  background:linear-gradient(180deg,#2a2018,#171008); border:1px solid #3a2c1c;
  box-shadow:0 0 12px 4px rgba(255,200,120,.4), 0 0 26px 9px rgba(255,180,90,.16);
}
.museum-transom{
  position:relative; z-index:2; width:min(36vw,225px); height:24px;
  background-color:rgba(150,175,190,.13);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%23241a12' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M0 26 C14 26 12 6 30 6 C48 6 46 26 60 26'/%3E%3Cpath d='M15 26 C20 18 24 14 30 14 C36 14 40 18 45 26'/%3E%3Ccircle cx='30' cy='7' r='2.6' fill='%23241a12'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:100% 100%; background-position:center;
  border:2px solid #241a12; border-bottom:none;
  border-radius:120px 120px 0 0 / 24px 24px 0 0;
  box-shadow:inset 0 2px 10px rgba(0,0,0,.45);
}
.museum-door-frame{position:relative; z-index:2; perspective:1400px;}
.museum-door-wrap{
  position:relative; width:min(36vw,225px); aspect-ratio:3/4.4;
  transform-style:preserve-3d;
}
.museum-door-glow{
  position:absolute; inset:6% 8%; border-radius:4px;
  background:radial-gradient(ellipse at center, rgba(255,214,140,.75) 0%, rgba(184,121,26,.28) 55%, transparent 80%);
  opacity:0; transition:opacity .9s ease .1s;
}
.museum-door-wrap.opening .museum-door-glow{opacity:1;}
.museum-door-panel{
  position:absolute; top:0; width:50%; height:100%;
  background:linear-gradient(100deg, #4a331f 0%, #644128 45%, #33230f 100%);
  border:2px solid #241a12; box-sizing:border-box;
  box-shadow:inset 0 0 0 8px rgba(20,13,9,.3), 0 18px 40px rgba(0,0,0,.5);
  transition:transform 1s cubic-bezier(.7,0,.3,1);
}
.museum-door-panel::before{
  content:""; position:absolute; inset:10% 12%;
  border:2px solid rgba(20,13,9,.3); border-radius:2px;
}
/* Wrought-iron scrollwork overlaid on each panel — a single flowing vine
   with spiral curls branching off alternately (the same motif that runs
   down each door leaf in the reference photo), multiplied over the
   wood-grain gradient rather than flatly stacked on top, so it reads as
   ironwork inset into the wood rather than a sticker on top of it. */
.museum-door-scroll{
  position:absolute; inset:9% 18%; pointer-events:none; opacity:.9;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 320'%3E%3Cg fill='none' stroke='%231c130c' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M50 4 V40 C50 58 26 52 26 34 C26 22 38 20 42 30'/%3E%3Cpath d='M50 40 C50 58 74 52 74 34 C74 22 62 20 58 30' /%3E%3Cpath d='M50 40 V90'/%3E%3Cpath d='M50 90 C50 108 26 102 26 84 C26 72 38 70 42 80'/%3E%3Cpath d='M50 90 V140'/%3E%3Cpath d='M50 140 C50 158 74 152 74 134 C74 122 62 120 58 130'/%3E%3Cpath d='M50 140 V190'/%3E%3Cpath d='M50 190 C50 208 26 202 26 184 C26 172 38 170 42 180'/%3E%3Cpath d='M50 190 V240'/%3E%3Cpath d='M50 240 C50 258 74 252 74 234 C74 222 62 220 58 230'/%3E%3Cpath d='M50 240 V290'/%3E%3Cpath d='M50 290 C50 305 34 308 28 298 C24 291 30 285 38 288'/%3E%3Cpath d='M50 290 C50 305 66 308 72 298 C76 291 70 285 62 288'/%3E%3Ccircle cx='50' cy='4' r='3.4' fill='%231c130c'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center; background-size:56% auto;
}
.museum-door-knob{
  position:absolute; top:40%; width:6px; height:18%; border-radius:3px;
  background:linear-gradient(90deg,#241a12,#a4793a 45%,#241a12); box-shadow:0 0 8px rgba(0,0,0,.5);
}
.museum-door-left{left:0; transform-origin:left center;}
.museum-door-left .museum-door-knob{right:9%;}
.museum-door-right{right:0; transform-origin:right center;}
.museum-door-right .museum-door-knob{left:9%;}
.museum-door-wrap.opening .museum-door-left{transform:rotateY(-108deg);}
.museum-door-wrap.opening .museum-door-right{transform:rotateY(108deg);}
.museum-door-cta{
  background:var(--saffron); color:#1D130F; border:none;
  padding:16px 40px; border-radius:999px; font-family:'Archivo',sans-serif; font-weight:800; font-size:16px;
  letter-spacing:.02em; cursor:pointer; box-shadow:0 10px 28px rgba(184,121,26,.35);
  transition:transform .15s ease, box-shadow .15s ease, opacity .4s ease;
}
.museum-door-cta:hover{transform:scale(1.05); box-shadow:0 14px 34px rgba(184,121,26,.5);}
.museum-door-cta.hidden{opacity:0; pointer-events:none;}
.museum-door-instructions{
  color:rgba(243,231,211,.6); font-size:13px; text-align:center; max-width:420px;
  transition:opacity .4s ease;
}
.museum-door-instructions.hidden{opacity:0;}

/* Pre-entry gallery jump menu: lets a visitor pick one country's room
   directly instead of walking the whole corridor from the front. */
.museum-gallery-menu{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  max-width:min(90vw,720px);
}
.museum-gallery-menu-label{
  color:rgba(243,231,211,.5); font-size:12px; text-transform:uppercase; letter-spacing:.08em;
}
.museum-gallery-menu-list{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
  max-height:22vh; overflow-y:auto; padding:2px;
}
.museum-gallery-menu-item{
  background:rgba(243,231,211,.08); color:var(--text-on-dark, #f3e7d3);
  border:1px solid rgba(243,231,211,.22); border-radius:999px;
  padding:7px 16px; font-family:'Archivo',sans-serif; font-size:13px; font-weight:600;
  cursor:pointer; transition:background .15s ease, border-color .15s ease;
}
.museum-gallery-menu-item:hover{background:rgba(243,231,211,.18); border-color:rgba(243,231,211,.4);}

/* ---- Step 2+: the gallery itself ---- */
.museum-gallery-root{
  position:fixed; inset:0; z-index:10; background:#1b140f;
  opacity:0; pointer-events:none; transition:opacity .7s ease;
}
.museum-gallery-root.visible{opacity:1; pointer-events:auto;}
#museumCanvas{position:absolute; inset:0;}
#museumCanvas canvas{display:block; cursor:crosshair;}
/* Vignette + film grain as CSS overlays rather than a WebGL postprocessing
   pass — both are purely a static screen-space effect (radial darkening,
   flat noise texture), so doing them here costs zero render passes on top
   of the SSAO/bloom stack already running every frame in museum-room.js.
   Both sit above the canvas but below the crosshair/HUD (z-index 15+) and
   never intercept clicks. */
.museum-vignette{
  position:absolute; inset:0; z-index:12; pointer-events:none;
  background:radial-gradient(ellipse at center,
    rgba(0,0,0,0) 50%, rgba(0,0,0,.20) 82%, rgba(0,0,0,.44) 100%);
  mix-blend-mode:multiply;
}
.museum-grain{
  position:absolute; inset:-50%; z-index:13; pointer-events:none; opacity:.04;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.9'/></svg>");
  animation:museum-grain-shift .6s steps(3) infinite;
}
@keyframes museum-grain-shift{
  0%{transform:translate(0,0);}
  33%{transform:translate(-2%,1%);}
  66%{transform:translate(1%,-2%);}
  100%{transform:translate(0,0);}
}
@media (prefers-reduced-motion: reduce){
  .museum-grain{animation:none;}
}
.museum-crosshair{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:8px; height:8px; border-radius:50%; z-index:15;
  background:rgba(255,255,255,.75); box-shadow:0 0 0 1px rgba(0,0,0,.3);
  pointer-events:none;
}
.museum-crosshair.hidden{display:none;}
.museum-lock-cta{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:25;
  background:rgba(20,13,9,.88); color:var(--text-on-dark); backdrop-filter:blur(3px);
  padding:13px 28px; border-radius:2px; font-family:'Archivo',sans-serif; font-weight:700; font-size:13px;
  text-transform:uppercase; letter-spacing:.08em;
  border:1px solid rgba(243,231,211,.22); border-bottom:2px solid var(--brass); cursor:pointer;
  transition:opacity .3s ease, transform .3s ease;
}
.museum-lock-cta:hover{transform:translate(-50%,-50%) scale(1.02);}
.museum-lock-cta.hidden{opacity:0; pointer-events:none; transform:translate(-50%,-50%) scale(.96);}

/* Persistent exit hint — the whole reason it exists: pointer-locked mouse
   look has no visible cursor to click anything with, so the *keyboard*
   escape hatch has to be taught up front, not left for people to discover.
   It dims after a few seconds rather than disappearing, so it's still
   glanceable later, and brightens again on hover. On touch it's swapped by
   JS to teach the joystick/drag-look instead of Esc, which doesn't exist. */
/* Current room name — fixed to the same screen position always (unlike the
   old ceiling-mounted 3D sign it replaced, which slid around and faded as
   you turned your head or walked). Updated in JS from the camera's Z
   position, not tied to any world-space object. */
.museum-room-title{
  position:absolute; top:16px; left:50%; transform:translateX(-50%); z-index:21;
  background:rgba(20,13,9,.82); color:var(--text-on-dark); backdrop-filter:blur(3px);
  padding:9px 30px; border-radius:3px; font-family:'Newsreader',serif; font-size:20px; font-weight:600;
  letter-spacing:.015em; text-align:center; max-width:90vw;
  border-bottom:2px solid var(--brass);
}
.museum-room-title:empty{display:none;}

.museum-esc-hint{
  position:absolute; top:58px; left:50%; transform:translateX(-50%); z-index:20;
  background:rgba(20,13,9,.76); color:var(--text-on-dark); backdrop-filter:blur(3px);
  padding:6px 16px; border-radius:2px; font-size:11px; font-weight:600;
  text-transform:uppercase; letter-spacing:.07em;
  text-align:center; max-width:90vw; border-bottom:1px solid rgba(150,117,31,.65);
  transition:opacity .6s ease;
}
.museum-esc-hint kbd{
  background:rgba(243,231,211,.18); border-radius:4px; padding:1px 6px; font-family:inherit; font-size:11px;
}
.museum-esc-hint.dimmed{opacity:.4;}
.museum-esc-hint.dimmed:hover{opacity:1;}
.museum-esc-hint.hidden{display:none;}

/* Touch-only movement joystick, bottom-left, thumb-reachable; shown by JS
   once a coarse (touch) pointer is detected. touch-action:none stops the
   browser from also trying to scroll/zoom the page while it's dragged. */
.museum-joystick{
  position:absolute; left:20px; bottom:20px; z-index:22;
  width:110px; height:110px; border-radius:50%;
  background:rgba(20,13,9,.45); border:1px solid rgba(243,231,211,.28);
  touch-action:none;
}
.museum-joystick.hidden{display:none;}
.museum-joystick-knob{
  position:absolute; top:50%; left:50%; width:46px; height:46px; margin:-23px 0 0 -23px;
  border-radius:50%; background:rgba(243,231,211,.85); box-shadow:0 2px 8px rgba(0,0,0,.4);
  transition:transform .08s ease-out;
}
.museum-minimap-wrap{
  position:absolute; left:16px; bottom:16px; z-index:20;
  background:rgba(20,13,9,.55); border-radius:10px; padding:8px;
  text-align:center; box-shadow:var(--shadow-md);
}
.museum-minimap-wrap canvas{display:block; border-radius:6px; max-height:38vh; width:auto;}
.museum-minimap-label{
  color:var(--text-on-dark-70, rgba(243,231,211,.7)); font-size:11px; font-weight:600;
  margin-top:6px; font-family:'Archivo',sans-serif;
}
.museum-walk-hint{
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%); z-index:20;
  background:rgba(20,13,9,.78); color:var(--text-on-dark); backdrop-filter:blur(3px);
  padding:8px 20px; border-radius:2px; font-size:12px; font-weight:600;
  text-transform:uppercase; letter-spacing:.05em;
  display:flex; align-items:center; gap:10px; border-bottom:2px solid var(--brass);
  transition:opacity .5s ease, transform .5s ease;
}
.museum-walk-hint.faded{opacity:0; transform:translateX(-50%) translateY(6px); pointer-events:none;}
.museum-hint-arrow{opacity:.6;}
.museum-corner-buttons{
  position:absolute; right:16px; bottom:16px; z-index:20;
  display:flex; gap:10px;
}
.museum-pill-btn{
  background:rgba(20,13,9,.78); color:var(--text-on-dark); backdrop-filter:blur(3px);
  padding:8px 14px; border-radius:2px; font-size:12px; font-weight:600;
  text-transform:uppercase; letter-spacing:.04em;
  border:none; border-bottom:2px solid var(--brass); cursor:pointer;
  transition:background .15s ease;
}
.museum-pill-btn:hover{background:rgba(20,13,9,.9);}
.museum-pill-btn.pulse-once{animation:museum-pulse .4s ease;}
@keyframes museum-pulse{50%{transform:scale(1.08);}}
.museum-info-panel{
  position:absolute; right:16px; bottom:64px; z-index:25; width:240px;
  background:rgba(20,13,9,.92); color:var(--text-on-dark);
  padding:14px 16px; border-radius:10px; font-size:13px; line-height:1.5;
  box-shadow:var(--shadow-lg);
  opacity:0; transform:translateY(6px); pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.museum-info-panel.visible{opacity:1; transform:translateY(0); pointer-events:auto;}
.museum-info-panel strong{display:block; margin-bottom:4px; color:var(--saffron);}
.museum-photo-info{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:30;
  width:min(90vw,360px);
  background:rgba(20,13,9,.94); color:var(--text-on-dark);
  padding:20px 22px; border-radius:12px; box-shadow:var(--shadow-lg);
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.museum-photo-info.visible{opacity:1; pointer-events:auto;}
.museum-photo-info.hidden{display:none;}
.museum-photo-info h4{margin:0 18px 8px 0; font-size:20px; color:#F7EFDD;}
.museum-photo-info p{font-size:13px; line-height:1.6; color:rgba(243,231,211,.8); margin:0 0 12px;}
.museum-photo-info a{color:var(--saffron); font-weight:700; font-size:13px; text-decoration:none;}
.museum-photo-info a:hover{text-decoration:underline;}
.museum-photo-info-close{
  position:absolute; top:14px; right:16px; background:none; border:none;
  color:rgba(243,231,211,.6); font-size:16px; cursor:pointer; padding:2px;
}
.museum-photo-info-close:hover{color:#fff;}

@media (max-width:640px){
  .museum-corner-buttons{flex-direction:column; align-items:flex-end;}
}
@media (pointer:coarse){
  /* Room for the touch joystick sitting in the same bottom-left corner. */
  .museum-minimap-wrap{bottom:150px;}
}

/* ---------- Country page ---------- */
/* ---------- Glow frame — a thin light border that continuously travels around an
   element's edge, in the site's own saffron/clay/brass palette. Applied to showcase
   images (country hero, lightbox) always-on, and to cards/tiles on hover only. ---------- */
.glow-frame, .glow-frame-hover{position:relative;}
.glow-frame::before, .glow-frame-hover::before{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  border-radius:inherit; padding:2px;
  background:conic-gradient(from 0deg, transparent 0%, var(--saffron) 15%, var(--clay) 30%, transparent 45%, transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  animation:glow-frame-spin 5s linear infinite;
}
.glow-frame-hover::before{opacity:0; transition:opacity .25s ease;}
.glow-frame-hover:hover::before{opacity:1;}
@keyframes glow-frame-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .glow-frame::before, .glow-frame-hover::before{animation:none;}
}

/* The hero photo keeps a dark gradient scrim (independent of the page theme)
   so its overlaid title/toggle stay legible against any photo — all text in
   this block therefore uses --text-on-dark, not the page's ink text color. */
.country-hero{
  position:relative; min-height:64vh; display:flex; align-items:flex-end;
  background-size:cover; background-position:center;
  padding:clamp(28px,5vw,56px);
}
.country-hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(29,19,15,.20) 0%, rgba(29,19,15,.94) 92%);
  pointer-events:none;
}
.country-hero-inner{position:relative; z-index:2; max-width:820px;}
.country-hero .tag{color:#E8B923; font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:12px;}
.country-hero h1{font-size:clamp(36px,6vw,64px); margin:14px 0 10px; color:var(--text-on-dark);}
.country-hero .native-name{font-family:'Newsreader',serif; font-style:italic; font-size:20px; color:var(--text-on-dark-70);}
.country-hero .artist-social-link{display:block; margin-top:10px; font-size:14px; font-weight:600; color:#E8B923; text-decoration:none;}
.country-hero .artist-social-link:hover{text-decoration:underline;}
.country-hero .artist-social-link[hidden]{display:none;}

.lang-toggle{
  display:inline-flex; border:1px solid rgba(243,231,211,.3); border-radius:999px; overflow:hidden;
  margin-top:20px;
}
.lang-toggle button{
  border:none; background:transparent; color:var(--text-on-dark-70);
  padding:8px 18px; font-weight:700; font-size:13px; cursor:pointer; font-family:inherit;
}
.lang-toggle button.active{background:var(--accent); color:#fff;}

.country-body{max-width:760px; margin:0 auto; padding:clamp(48px,7vw,88px) clamp(20px,6vw,0);}
.country-body h2{font-size:28px; margin:44px 0 16px; color:var(--paper-on-ink); border-left:3px solid var(--accent); padding-left:14px;}
.country-body h2:first-child{margin-top:0;}
.country-body p{color:var(--paper-on-ink-70); font-size:17px; margin:0 0 18px;}
.native-text{display:none;}
.native-text.active{display:block;}
.eng-text.hidden{display:none;}

/* ---------- Country page two-column layout — written chapters read down the
   left column; that country's own photography floats gently down the right
   column as a visual companion (not a bottom "gallery" section anymore).
   Below ~900px the right column drops beneath the text as a horizontal
   scroll strip rather than fighting for width on a narrow screen. ---------- */
.country-layout{
  display:grid; grid-template-columns:1.25fr .95fr; gap:clamp(32px,5vw,64px);
  max-width:1180px; margin:0 auto;
  padding:clamp(48px,7vw,88px) clamp(20px,6vw,40px);
  align-items:start;
}
.country-content{min-width:0;}
.country-chapter-text{margin-bottom:clamp(40px,6vw,64px);}
.country-chapter-text:last-child{margin-bottom:0;}
.country-chapter-text .chapter-number{
  display:block; font-family:'Archivo',sans-serif; font-weight:700; font-size:12px;
  letter-spacing:.18em; text-transform:uppercase; color:var(--accent-2, var(--saffron));
  margin-bottom:14px;
}
.country-chapter-text h2{
  font-size:clamp(24px,3vw,32px); color:var(--paper-on-ink); margin:0 0 16px;
  border:none; padding:0;
}
.country-chapter-text p{
  color:var(--paper-on-ink-70); font-size:17px; line-height:1.8; margin:0;
}

.country-float-gallery{
  position:sticky; top:96px;
}
.country-orbit-stage{
  position:relative; height:260px; perspective:1000px;
  display:flex; align-items:center; justify-content:center;
  cursor:grab; touch-action:pan-y; user-select:none;
}
.country-orbit-stage.dragging{cursor:grabbing;}
.country-orbit-item{
  position:absolute; top:50%; left:50%;
  width:190px; height:230px; margin:-115px 0 0 -95px;
  border-radius:10px; overflow:hidden;
  box-shadow:0 16px 36px rgba(29,19,15,.22);
  will-change:transform, opacity;
  transform-style:preserve-3d;
}
.country-orbit-item img{width:100%; height:100%; object-fit:cover; display:block; cursor:zoom-in;}
.orbit-cart-btn{
  position:absolute; right:6px; bottom:6px; z-index:2;
  background:rgba(29,19,15,.72); color:#F1E6CE; border:none; border-radius:6px;
  padding:6px 10px; font-size:11px; font-weight:600; letter-spacing:.03em; cursor:pointer;
  font-family:inherit;
}
.orbit-cart-btn:hover{background:rgba(29,19,15,.9);}
.orbit-cart-btn.added{background:#2F7047;}
.country-orbit-credit{
  text-align:center; font-size:11px; color:var(--paper-on-ink-50);
  padding:14px 3px 0; min-height:2.6em;
}
@media (max-width:900px){
  .country-layout{grid-template-columns:1fr;}
  .country-float-gallery{position:static; margin-top:8px;}
  .country-orbit-stage{height:220px;}
  .country-orbit-item{width:160px; height:200px; margin:-100px 0 0 -80px;}
}

.photo-strip{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px;
  margin:32px 0;
}
.photo-strip figure{margin:0; border-radius:6px; overflow:hidden; background:rgba(42,29,22,.05);}
.photo-strip img{width:100%; height:220px; object-fit:cover; display:block;}
.photo-strip figcaption{
  font-size:11px; color:var(--paper-on-ink-70); padding:8px 10px; opacity:.75;
}
.photo-strip img{cursor:zoom-in;}

/* ---------- Discover marquee (homepage) — a continuously sliding strip of
   real photography pulled from every country page, in place of a static grid. ---------- */
.discover-marquee{
  overflow:hidden; margin-top:40px;
  mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.discover-track{
  display:flex; gap:16px; width:max-content;
  animation:discover-scroll linear infinite;
  animation-duration:var(--discover-duration, 60s);
}
.discover-marquee:hover .discover-track{animation-play-state:paused;}
.discover-tile{
  position:relative; flex:0 0 auto; display:block;
  width:220px; height:280px; border-radius:8px; overflow:hidden;
}
.discover-tile.size-tall{height:340px;}
.discover-tile.size-short{height:220px; align-self:center;}
.discover-tile img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease;}
.discover-tile:hover img{transform:scale(1.06);}
.discover-tile-label{
  position:absolute; left:0; right:0; bottom:0; padding:10px 12px 8px;
  font-family:'Archivo', sans-serif; font-weight:700; font-size:12px; letter-spacing:.03em;
  color:#fff; background:linear-gradient(180deg, transparent, rgba(0,0,0,.75));
}
@keyframes discover-scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media (prefers-reduced-motion: reduce){
  .discover-track{animation:none;}
  .discover-marquee{overflow-x:auto;}
}

/* ---------- Lightbox — click any country/collection photo to view it large.
   Backdrop stays intentionally dark (like a darkroom) regardless of page
   theme, so its caption/close button use --text-on-dark. ---------- */
.lightbox-overlay{
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  background:rgba(10,6,4,.92); padding:40px; opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.lightbox-overlay.open{opacity:1; pointer-events:auto;}
.lightbox-overlay img{max-width:100%; max-height:80vh; border-radius:4px; box-shadow:var(--shadow-lg);}
.lightbox-caption{
  color:var(--text-on-dark-70); font-size:13px; text-align:center; max-width:640px; margin-top:16px;
}
.lightbox-close{
  position:absolute; top:20px; right:28px; background:none; border:none; cursor:pointer;
  color:var(--text-on-dark); font-size:32px; line-height:1; font-family:'Archivo', sans-serif;
}

.audio-toggle{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid rgba(42,29,22,.25); border-radius:999px;
  padding:10px 18px; margin:24px 0; cursor:pointer; background:transparent; color:var(--paper-on-ink);
  font-weight:700; font-size:13px;
}
.audio-toggle:hover{border-color:var(--accent); color:var(--accent-2);}

.country-crosslink{
  display:flex; justify-content:space-between; margin-top:56px;
  padding-top:24px; border-top:1px solid rgba(42,29,22,.14);
  font-size:13px; color:var(--paper-on-ink-70);
}
.country-crosslink a{font-weight:700; color:var(--accent-2);}

/* ---------- Coming soon stub ---------- */
.coming-soon-panel{
  max-width:640px; margin:0 auto; text-align:center;
  padding:64px 32px; border:1px dashed rgba(42,29,22,.22); border-radius:8px;
}
.coming-soon-panel .tag{color:var(--saffron); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:12px;}
.coming-soon-panel h2{margin:14px 0; font-size:32px;}
.coming-soon-panel p{color:var(--paper-on-ink-70);}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid rgba(42,29,22,.12);
  padding:40px clamp(20px,6vw,80px);
  color:var(--paper-on-ink-70); font-size:13px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
footer a{font-weight:700; color:var(--saffron);}

/* ---------- Quote block (About) ---------- */
.quote-block{
  max-width:720px; margin:0 auto; text-align:center;
  padding:48px 24px;
}
.quote-block blockquote{
  font-family:'Newsreader', serif; font-style:italic;
  font-size:clamp(22px,3vw,32px); color:var(--paper-on-ink);
  margin:0 0 18px; line-height:1.35;
}
.quote-block cite{color:var(--saffron); font-weight:700; font-style:normal; font-size:14px;}

/* =========================================================================
   Forms (Voices / Perspectives submission)
   ========================================================================= */
.submit-form{max-width:640px; margin:0 auto;}
.form-field{margin-bottom:22px;}
.form-field label{
  display:block; font-weight:700; font-size:13px; letter-spacing:.02em;
  color:var(--paper-on-ink); margin-bottom:8px;
}
.form-field .hint{font-size:12px; color:var(--paper-on-ink-50); margin-top:6px; display:block;}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea{
  width:100%; background:rgba(255,255,255,.55); color:var(--paper-on-ink);
  border:1px solid rgba(42,29,22,.25); border-radius:var(--radius);
  padding:12px 14px; font-family:'Archivo',sans-serif; font-size:15px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--accent);
}
.form-field textarea{min-height:180px; resize:vertical; line-height:1.6;}
.form-field input[type="file"]{
  width:100%; color:var(--paper-on-ink-70); font-size:13px;
}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:600px){.form-row{grid-template-columns:1fr;}}
.form-consent{
  display:flex; gap:10px; align-items:flex-start; font-size:13px;
  color:var(--paper-on-ink-70); margin-bottom:26px;
}
.form-consent input{margin-top:3px;}
.form-status{
  margin-top:18px; padding:14px 16px; border-radius:var(--radius);
  font-size:14px; display:none;
}
.form-status.visible{display:block;}
.form-status.ok{background:rgba(60,140,90,.12); border:1px solid rgba(60,140,90,.4); color:#1F5C3A;}
.form-status.err{background:rgba(178,58,46,.10); border:1px solid rgba(178,58,46,.4); color:#8E2C22;}

/* =========================================================================
   Feeds (Voices / Perspectives listing)
   ========================================================================= */
.feed-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px;
  margin-top:40px;
}
.feed-card{
  border:1px solid rgba(42,29,22,.14); border-radius:var(--radius);
  padding:24px; background:rgba(255,255,255,.4);
  transition:border-color .15s ease, transform .15s ease;
  display:flex; flex-direction:column; gap:10px;
}
.feed-card:hover{border-color:var(--accent); transform:translateY(-2px);}
.feed-card .tag{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-2); font-weight:700;}
.feed-card h3{font-size:19px; line-height:1.25;}
.feed-card p{color:var(--paper-on-ink-70); font-size:14px; margin:0; flex:1;}
.feed-card .meta{font-size:12px; color:var(--paper-on-ink-50);}
.feed-empty{
  text-align:center; padding:56px 24px; color:var(--paper-on-ink-50);
  border:1px dashed rgba(42,29,22,.18); border-radius:8px; margin-top:32px;
}

/* ---------- Single story page — a proper spotlight for the person who made
   the work, not just a generic detail view: a large eyebrow credit line, a
   glowing frame around their image, and a wide, editorial-feeling layout. ---------- */
.story-header{max-width:760px; margin:0 auto 40px; text-align:center;}
.story-header .tag{color:var(--accent-2); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size:12px;}
.story-header h1{font-size:clamp(32px,5vw,54px); margin:14px 0 14px;}
.story-header .byline{
  display:inline-flex; align-items:center; gap:10px; font-family:'Newsreader',serif;
  font-style:italic; font-size:19px; color:var(--paper-on-ink);
}
.story-header .byline strong{font-style:normal; font-weight:700;}
.story-header .meta{color:var(--paper-on-ink-50); font-size:13px; margin-top:6px;}
.story-body{max-width:720px; margin:0 auto;}
.story-body .story-image{margin:8px 0 36px;}
.story-body .story-image img{width:100%; border-radius:10px;}
.story-body p{color:var(--paper-on-ink-70); font-size:18px; line-height:1.8; margin:0 0 20px; white-space:pre-wrap;}
.story-native{
  margin-top:32px; padding-top:28px; border-top:1px solid rgba(42,29,22,.14);
}
.story-footer{
  max-width:720px; margin:48px auto 0; padding-top:24px;
  border-top:1px solid rgba(42,29,22,.14); text-align:center;
}

/* =========================================================================
   Admin moderation queue
   ========================================================================= */
.admin-shell{max-width:1040px; margin:0 auto;}
.admin-login{max-width:360px; margin:80px auto; text-align:center;}
.admin-login input{margin-bottom:14px;}
.queue-tabs{display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap;}
.queue-tab, .admin-view-tab{
  padding:9px 18px; border-radius:999px; font-size:13px; font-weight:700;
  border:1px solid rgba(42,29,22,.2); cursor:pointer; background:transparent; color:var(--paper-on-ink-70);
  font-family:inherit;
}
.queue-tab.active, .admin-view-tab.active{background:var(--accent); border-color:var(--accent); color:#fff;}
.inquiry-piece{display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:6px;}
.inquiry-piece img{width:32px; height:32px; object-fit:cover; border-radius:4px; flex:none;}
.inquiry-status-select{
  padding:6px 10px; border-radius:6px; border:1px solid rgba(42,29,22,.2);
  background:#fff; color:var(--paper-on-ink); font-family:inherit; font-size:13px;
}
.queue-item{
  border:1px solid rgba(42,29,22,.14); border-radius:8px; padding:22px;
  margin-bottom:16px; background:rgba(255,255,255,.4);
}
.queue-item-head{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:10px;}
.queue-item-head h3{font-size:17px;}
.queue-badge{
  font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px;
}
.queue-badge.pending{background:rgba(184,121,26,.16); color:var(--saffron-dark);}
.queue-badge.needs_review{background:rgba(46,125,140,.16); color:#1B5E6E;}
.queue-badge.approved{background:rgba(60,140,90,.16); color:#1F5C3A;}
.queue-badge.rejected{background:rgba(178,58,46,.16); color:var(--clay-dark);}
.queue-item-body{color:var(--paper-on-ink-70); font-size:14px; white-space:pre-wrap; max-height:200px; overflow-y:auto; margin-bottom:14px;}
.queue-item-ai{
  font-size:12px; color:var(--paper-on-ink-70); background:rgba(42,29,22,.06);
  border-radius:6px; padding:10px 12px; margin-bottom:14px; font-family:monospace; white-space:pre-wrap;
}
.queue-item-actions{display:flex; gap:10px; flex-wrap:wrap;}
.queue-item-actions .btn-approve{background:#3C8C5A; color:#fff;}
.queue-item-actions .btn-reject{background:var(--clay); color:#fff;}
.queue-item-actions .btn-approve:hover{background:#2F7047;}
.queue-item-actions .btn-reject:hover{background:var(--clay-dark);}
