/* ============================================================
   APSTL — STYLES
   Colours and fonts live in :root below if you want to tweak.
   ============================================================ */

/* ----- Baron Neue (drop font files into /fonts) ----- */
@font-face {
  font-family: "Baron Neue";
  src: url("../fonts/BaronNeue.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Baron Neue";
  src: url("../fonts/BaronNeue-Bold.otf") format("opentype");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Baron Neue";
  src: url("../fonts/BaronNeue-Black.otf") format("opentype");
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --bg: #050505;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.14);
  --card: #0d0d0d;
  --accent: #ffffff;            /* change this when you find your accent colour */
  --halo: rgba(255,255,255,0.10); /* soft monochrome light */
  --font-display: "Baron Neue", "Arial Black", Impact, sans-serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; z-index: 60;
  background: linear-gradient(rgba(5,5,5,0.85), rgba(5,5,5,0));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

#headerLogo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.14em;
  visibility: hidden;
}
#headerLogo svg { width: 30px; height: 30px; }
body.docked-logo #headerLogo, body.subpage #headerLogo { visibility: visible; }

#counterDock {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  visibility: hidden; cursor: pointer;
}
#counterDock .n { font-size: 21px; letter-spacing: 0.08em; }
body.docked-counter #counterDock, body.subpage #counterDock { visibility: visible; }

/* header right: bag + menu */
.hdr-right { display: flex; align-items: center; gap: 12px; }

#bagBtn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(5,5,5,0.6);
  display: none; place-items: center;
}
#bagBtn svg { width: 18px; height: 18px; }
#bagBtn .bag-count {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--fg); color: var(--bg);
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px;
  font-family: var(--font-body);
}
body.has-cart #bagBtn { display: grid; }

/* menu button */
#menuBtn {
  width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(5,5,5,0.6);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
}
#menuBtn span { display: block; width: 18px; height: 2px; background: var(--fg); position: relative; }
#menuBtn span::before, #menuBtn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--fg);
}
#menuBtn span::before { top: -6px; } #menuBtn span::after { top: 6px; }
body.show-menu-btn #menuBtn, body.subpage #menuBtn {
  opacity: 1; transform: none; pointer-events: auto;
}

/* ============ MENU OVERLAY ============ */
#menuOverlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(3,3,3,0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
body.menu-open #menuOverlay { opacity: 1; visibility: visible; }
#menuNav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#menuOverlay a {
  font-family: var(--font-display); font-size: clamp(34px, 7vw, 64px);
  letter-spacing: 0.1em; padding: 6px 18px; color: var(--fg);
  opacity: 0.85; transition: opacity 0.2s, letter-spacing 0.25s;
}
#menuOverlay a:hover { opacity: 1; letter-spacing: 0.18em; }
#menuOverlay a.current { opacity: 1; }
#menuOverlay a.current::after { transform: scaleX(1); }
#menuClose {
  position: absolute; top: 18px; right: 28px; font-size: 30px; background: none;
  border: none; color: var(--fg); cursor: pointer; font-family: var(--font-body);
}
#menuOverlay .overlay-cross { width: 60px; margin: 0 auto 28px; opacity: 0.9; }
#menuOverlay .overlay-cross svg { width: 100%; height: auto; display: block; }

/* ============ HERO LOCKUP (fixed, scroll-animated) ============ */
#heroLock {
  position: fixed; top: 50%; left: 50%; z-index: 50;
  transform: translate(-50%, -50%);
  will-change: transform; cursor: default;
}
body.docked-logo #heroLock { visibility: hidden; }
.lock-inner { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
/* JS animates this width from ~1.7x down to 1x during the reveal */
.lock-cross svg { width: clamp(90px, 16vw, 180px); height: auto; display: block; }
.lock-wordwrap { overflow: hidden; }
.lock-word {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 13vw, 160px); letter-spacing: 0.05em; line-height: 0.9;
  white-space: nowrap; will-change: transform;
}
#heroTagline {
  position: fixed; top: calc(50% + clamp(120px, 18vw, 210px)); left: 50%;
  transform: translateX(-50%); z-index: 50;
  font-family: var(--font-display); font-size: clamp(12px, 1.6vw, 17px);
  letter-spacing: 0.6em; color: var(--muted); white-space: nowrap;
  will-change: opacity;
}
body.docked-logo #heroTagline { visibility: hidden; }
.scroll-hint {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.5em; color: var(--muted);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 8px); opacity: 0.4; } }

/* ============ COUNTER (fixed, scroll-animated) ============ */
#counterFloat {
  position: fixed; top: 50%; left: 50%; z-index: 50;
  transform: translate(-50%, -50%);
  text-align: center; will-change: transform, opacity;
  opacity: 0; pointer-events: none; cursor: pointer;
}
body.counter-active #counterFloat { pointer-events: auto; }
body.docked-counter #counterFloat { visibility: hidden; }
#counterFloat .counter-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(72px, 15vw, 190px); line-height: 1; letter-spacing: 0.02em;
}
#counterFloat .counter-label {
  margin-top: 14px; font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 0.55em; color: var(--muted); font-family: var(--font-display);
}
#counterFloat .counter-sub {
  margin-top: 10px; font-size: 11px; letter-spacing: 0.2em; color: #555;
}

/* tooltip (positioned by JS, never scales) */
#counterTip {
  position: fixed; z-index: 80; max-width: 300px; padding: 14px 16px;
  background: #111; border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; line-height: 1.55; color: #cfcfcf;
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
  pointer-events: none;
}
#counterTip.show { opacity: 1; visibility: visible; }
#counterTip::after {
  content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px; background: #111; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}

/* ============ SCROLL SPACERS ============ */
#introZone { height: 300vh; height: 300svh; }

/* ============ CAROUSEL ============ */
#carouselSection { height: 380vh; height: 380svh; position: relative; }
.carousel-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.carousel-heading {
  font-size: clamp(26px, 4.5vw, 52px); letter-spacing: 0.18em; margin-bottom: 8px;
  position: relative; z-index: 2;
}
.carousel-stage {
  width: 100%; flex: 0 0 auto; height: 470px;
  perspective: 1900px; perspective-origin: 50% 40%;
  display: grid; place-items: center;
}
.ring {
  position: relative; width: 1px; height: 1px;
  transform-style: preserve-3d; will-change: transform;
}
/* floating, double-sided items */
.card {
  position: absolute; top: -205px; left: -145px; width: 290px; height: 410px;
  transform-style: preserve-3d; cursor: pointer;
}
.card .face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(0deg);            /* explicit plane so Chrome hides backfaces reliably */
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.card .face.back { transform: rotateY(180deg); }
.card .face img {
  width: 100%; height: 340px; object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.6));
  transition: transform 0.3s;
}
.card:hover .face img { transform: scale(1.04); }
.card .meta {
  display: flex; gap: 14px; align-items: baseline; justify-content: center;
  padding: 14px 6px 0; width: 100%;
}
.card .meta .nm { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; }
.card .meta .pr { font-size: 13px; color: var(--muted); }
.carousel-hint { margin-top: 48px; font-size: 10px; letter-spacing: 0.4em; color: #555; }

/* ============ OUTRO / GENERIC SECTIONS ============ */
.section {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px; gap: 22px;
}
.section h2 { font-size: clamp(30px, 5vw, 60px); letter-spacing: 0.1em; }
.section p { max-width: 560px; color: var(--muted); line-height: 1.7; }
.btn {
  display: inline-block; padding: 15px 42px; border: 1px solid var(--fg);
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.3em;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--fg); color: var(--bg); }

/* ============ SUBPAGES ============ */
.page-wrap { padding: calc(var(--header-h) + 60px) 24px 80px; max-width: 1080px; margin: 0 auto; }
.page-title { font-size: clamp(40px, 7vw, 84px); letter-spacing: 0.08em; text-align: center; }
.page-intro { text-align: center; color: var(--muted); max-width: 600px; margin: 18px auto 0; line-height: 1.7; }

/* mission */
.mission-total { text-align: center; margin: 70px 0 10px; }
.mission-total .big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(70px, 13vw, 170px); line-height: 1;
}
.mission-total .lbl { letter-spacing: 0.5em; color: var(--muted); font-family: var(--font-display); font-size: 13px; margin-top: 12px; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 70px; }
.bk-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px;
  background: var(--card); display: flex; flex-direction: column; gap: 10px;
}
.bk-card .val { font-family: var(--font-display); font-weight: 800; font-size: 44px; }
.bk-card .lab { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.2em; }
.bk-card .desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.bk-card .bar { height: 3px; background: #1d1d1d; border-radius: 2px; overflow: hidden; margin-top: 8px; }
.bk-card .bar i { display: block; height: 100%; width: 0; background: var(--fg); transition: width 1.2s ease; }

/* store grid */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 60px; }
.store-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); transition: border-color 0.25s; }
.store-card:hover { border-color: rgba(255,255,255,0.45); }
.store-card .imgwrap { aspect-ratio: 4/5; background: #161616; }
.store-card img { width: 100%; height: 100%; object-fit: cover; }
.store-card .meta { display: flex; justify-content: space-between; padding: 13px 15px; }
.store-card .nm { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.12em; }
.store-card .pr { font-size: 12px; color: var(--muted); }

/* ============ PRODUCT PAGE ============ */
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 60px; align-items: start; }
.pd-imgbox { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-main { aspect-ratio: 4/5; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, #141414, transparent 70%); border-radius: 18px; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 35px rgba(0,0,0,0.6)); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.pd-thumbs button {
  width: 64px; height: 76px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer; padding: 4px; overflow: hidden;
}
.pd-thumbs button.on { border-color: var(--fg); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0.08em; line-height: 1.1; }
.pd-price { font-family: var(--font-display); font-size: 22px; margin-top: 12px; color: var(--muted); }
.pd-desc { margin-top: 22px; color: var(--muted); line-height: 1.75; font-size: 14.5px; }
.pd-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.3em; margin: 30px 0 12px; color: #ccc; }
.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.size-pill {
  min-width: 52px; padding: 12px 0; text-align: center; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: none; color: var(--fg);
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.size-pill:hover { border-color: var(--fg); }
.size-pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.qty-row { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; width: max-content; }
.qty-row button { width: 44px; height: 46px; background: none; border: none; color: var(--fg); font-size: 18px; cursor: pointer; }
.qty-row .q { width: 40px; text-align: center; font-family: var(--font-display); font-size: 15px; }
.add-btn {
  margin-top: 30px; width: 100%; padding: 18px; background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg); font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.3em; cursor: pointer; transition: opacity 0.2s;
}
.add-btn:hover { opacity: 0.85; }
.add-btn.added { background: var(--bg); color: var(--fg); }
.pd-note { margin-top: 14px; font-size: 12px; color: #666; text-align: center; }
.viewbag-link { display: none; margin-top: 12px; text-align: center; font-size: 12px; letter-spacing: 0.2em; text-decoration: underline; }
.viewbag-link.show { display: block; }

/* ============ CART PAGE ============ */
.cart-list { margin-top: 50px; display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--card);
}
.cart-row img { width: 90px; height: 100px; object-fit: contain; }
.cart-row .cr-name { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; }
.cart-row .cr-size { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cart-row .cr-line { font-family: var(--font-display); font-size: 15px; }
.cart-row .cr-x { background: none; border: none; color: #666; font-size: 20px; cursor: pointer; }
.cart-row .cr-x:hover { color: var(--fg); }
.cart-total {
  margin-top: 30px; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 24px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.1em;
}
.cart-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.cart-empty { text-align: center; margin-top: 80px; color: var(--muted); }
.cart-empty .btn { margin-top: 26px; }
.checkout-note { margin-top: 16px; font-size: 12px; color: #666; }

/* ============ PROFILE PAGE ============ */
.profile-form { max-width: 560px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 26px; }
.pf-section { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--card); }
.pf-section h3 { font-size: 13px; letter-spacing: 0.3em; margin-bottom: 20px; color: #ccc; }
.pf-field { margin-bottom: 16px; }
.pf-field label { display: block; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
.pf-field input, .pf-field select {
  width: 100%; padding: 13px 14px; background: #0a0a0a; border: 1px solid var(--line);
  border-radius: 8px; color: var(--fg); font-size: 14px; font-family: var(--font-body);
}
.pf-field input:focus, .pf-field select:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.pf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-note { font-size: 12.5px; color: #777; line-height: 1.6; }
.pf-save { align-self: center; padding: 16px 60px; background: var(--fg); color: var(--bg); border: none; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.3em; cursor: pointer; }
.pf-saved { text-align: center; font-size: 12px; letter-spacing: 0.2em; color: #7c7; visibility: hidden; }
.pf-saved.show { visibility: visible; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line); padding: 46px 28px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em;
}
footer .f-links { display: flex; gap: 22px; }
footer a:hover { color: var(--fg); }

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .site-header { padding: 0 16px; }
  #headerLogo { font-size: 16px; } #headerLogo svg { width: 24px; height: 24px; }
  #counterDock .n { font-size: 16px; }
  .card { width: 230px; height: 350px; left: -115px; top: -175px; }
  .card .face img { height: 290px; }
  .carousel-stage { height: 420px; }
  #introZone { height: 300vh; height: 300svh; }
  #carouselSection { height: 320vh; height: 320svh; }
  .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-imgbox { position: static; }
  .cart-row { grid-template-columns: 70px 1fr auto; }
  .cart-row .cr-line { grid-column: 2; }
  .pf-grid2 { grid-template-columns: 1fr; }
}

/* ============================================================
   ███  CINEMATIC MONOCHROME LAYER  ███
   Depth, light, grain and motion. Added on top of the base.
   ============================================================ */

/* ---- richer base canvas ---- */
body {
  background:
    radial-gradient(140% 90% at 50% -10%, #141414 0%, #0a0a0a 38%, #050505 70%, #020202 100%);
  background-attachment: fixed;
}

/* ---- ambient drifting light (behind all content) ---- */
.fx-ambient {
  position: fixed; inset: -20vmax; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 22% 18%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(46vmax 46vmax at 82% 78%, rgba(255,255,255,0.045), transparent 62%);
  filter: blur(8px);
  animation: ambientDrift 26s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1);   opacity: 0.9; }
  50%  { transform: translate3d(3%, 2%, 0)  scale(1.08); opacity: 1; }
  100% { transform: translate3d(1%, -2%, 0) scale(1.04); opacity: 0.85; }
}

/* ---- vignette to focus the frame ---- */
.fx-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 42%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---- film grain (animated, very subtle) ---- */
.fx-grain {
  position: fixed; inset: -120px; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0%{transform:translate(0,0)} 25%{transform:translate(-30px,12px)}
  50%{transform:translate(18px,-22px)} 75%{transform:translate(-12px,26px)}
  100%{transform:translate(22px,8px)}
}

/* keep real content above the fx layers */
.site-header { z-index: 60; }
#heroLock, #counterFloat { z-index: 50; }
.page-wrap, .section, #carouselSection, footer { position: relative; z-index: 5; }

/* ---- cursor spotlight (desktop, fine pointer only) ---- */
.fx-cursor {
  position: fixed; top: 0; left: 0; width: 540px; height: 540px; z-index: 3;
  margin: -270px 0 0 -270px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.07), rgba(255,255,255,0.02) 40%, transparent 68%);
  opacity: 0; transition: opacity 0.5s ease;
  will-change: transform;
}
body.cursor-live .fx-cursor { opacity: 1; }
@media (hover: none), (pointer: coarse) { .fx-cursor { display: none; } }

/* ---- touch / mobile: drop heavy always-on effects for smooth scrolling ---- */
@media (hover: none), (pointer: coarse) {
  body { background-attachment: scroll; }
  .fx-grain { display: none; }
  .fx-ambient { animation: none; opacity: 0.7; }
  .site-header, body.scrolled .site-header,
  #menuOverlay, .car-arrow, .car-skip, .wm-tip, .wm-detail {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  body.scrolled .site-header { background: linear-gradient(rgba(5,5,5,0.96), rgba(5,5,5,0.55)); }
}

/* ---- top scroll progress line ---- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), #fff);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  transition: width 0.12s linear;
}

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

/* ============ HERO — light & depth ============ */
#heroLock::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 70vmax; height: 70vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 58%);
  filter: blur(20px); z-index: -1; pointer-events: none;
}
.lock-cross svg { filter: drop-shadow(0 0 22px rgba(255,255,255,0.28)); }
#heroTagline { text-shadow: 0 0 20px rgba(255,255,255,0.15); }
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0;
  background: linear-gradient(rgba(255,255,255,0.6), transparent);
}

/* ============ COUNTER — glow ============ */
#counterFloat .counter-number {
  background: linear-gradient(180deg, #fff 0%, #d6d6d6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(255,255,255,0.18);
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.12));
}
#counterFloat .counter-sub { transition: opacity 0.4s; }

/* ============ CAROUSEL — stage, floor, fog ============ */
.carousel-sticky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 50% 38%, rgba(255,255,255,0.06), transparent 70%);
}
/* spotlight pool on the floor */
.carousel-stage::after {
  content: ""; position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  width: min(620px, 70vw); height: 90px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.16), transparent 70%);
  filter: blur(14px);
}
.carousel-heading {
  text-shadow: 0 0 30px rgba(255,255,255,0.12);
}
.card .face::after { /* contact-shadow under each garment */
  content: ""; position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%);
  width: 60%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55), transparent 72%);
  filter: blur(7px); z-index: -1;
}
.card .face img { transition: transform 0.5s var(--ease-cine), filter 0.5s; }
.card:hover .face img { transform: scale(1.06) translateY(-6px); filter: drop-shadow(0 40px 45px rgba(0,0,0,0.7)); }
.carousel-hint { animation: hint 2.4s ease-in-out infinite; }

/* ============ BRAND BAND (marquee) ============ */
.brand-band {
  position: relative; z-index: 5; overflow: hidden;
  padding: 30px 0; margin: 10px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.band-track { display: flex; width: max-content; animation: bandScroll 38s linear infinite; }
.brand-band:hover .band-track { animation-play-state: paused; }
.band-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 6vw, 78px); letter-spacing: 0.06em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.32);
  padding-right: 10px;
}
@keyframes bandScroll { to { transform: translateX(-50%); } }

/* ============ BUTTONS — sweep fill + lift ============ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-cine), transform 0.35s var(--ease-cine), box-shadow 0.35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%);
  background: var(--fg); transition: transform 0.4s var(--ease-cine);
}
.btn:hover { background: transparent; color: var(--bg); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.btn:hover::before { transform: translateY(0); }

/* ============ STORE — depth cards ============ */
.store-grid { perspective: 1400px; }
.store-card {
  position: relative; transform-style: preserve-3d;
  background: linear-gradient(180deg, #101010, #0a0a0a);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.5s var(--ease-cine), border-color 0.35s, box-shadow 0.45s;
}
.store-card:hover {
  transform: translateY(-8px); border-color: rgba(255,255,255,0.5);
  box-shadow: 0 28px 60px rgba(0,0,0,0.6);
}
.store-card .imgwrap { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #1c1c1c, #0c0c0c 75%); }
.store-card img { transition: transform 0.7s var(--ease-cine); }
.store-card:hover img { transform: scale(1.07); }
/* shine sweep on hover */
.store-card .imgwrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.14) 50%, transparent 60%);
  transform: translateX(-130%); transition: transform 0.8s var(--ease-cine);
}
.store-card:hover .imgwrap::after { transform: translateX(130%); }
.store-card .meta { transition: transform 0.4s var(--ease-cine); }
.store-card .nm { position: relative; }
.store-card .pr { transition: color 0.3s; }
.store-card:hover .pr { color: var(--fg); }

/* ============ PRODUCT — lit stage + zoom ============ */
.pd-main {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #1b1b1b, #0a0a0a 72%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
}
.pd-main::after {
  content: ""; position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 55%; height: 30px; background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.pd-main img { transition: transform 0.6s var(--ease-cine); cursor: zoom-in; }
.pd-main:hover img { transform: scale(1.12); }
.pd-thumbs button { transition: border-color 0.3s, transform 0.3s var(--ease-cine); }
.pd-thumbs button:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.55); }
.pd-info h1 { background: linear-gradient(180deg,#fff,#cfcfcf); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.size-pill, .add-btn { transition: background 0.3s var(--ease-cine), color 0.3s, border-color 0.3s, transform 0.25s, box-shadow 0.3s; }
.size-pill:hover { transform: translateY(-2px); }
.add-btn:hover { box-shadow: 0 16px 40px rgba(255,255,255,0.18); transform: translateY(-2px); }
.add-btn.added { box-shadow: none; }

/* ============ MISSION — alive stats ============ */
.mission-total .big {
  background: linear-gradient(180deg,#fff 0%, #cdcdcd 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  text-shadow: 0 0 70px rgba(255,255,255,0.16);
}
.bk-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,#101010,#090909);
  transition: transform 0.5s var(--ease-cine), border-color 0.35s, box-shadow 0.45s;
}
.bk-card::before { /* corner glow */
  content: ""; position: absolute; top: -40%; right: -30%; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 65%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s;
}
.bk-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.4); box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.bk-card:hover::before { opacity: 1; }
.bk-card .ico {
  width: 30px; height: 30px; opacity: 0.85; margin-bottom: 2px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}
.bk-card .ico svg { width: 100%; height: 100%; display: block; }
.bk-card .val { background: linear-gradient(180deg,#fff,#c9c9c9); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.bk-card .bar { height: 4px; background: #161616; }
.bk-card .bar i {
  background: linear-gradient(90deg, rgba(255,255,255,0.5), #fff);
  box-shadow: 0 0 14px rgba(255,255,255,0.5);
}

/* ============ MENU OVERLAY — depth ============ */
#menuOverlay { backdrop-filter: blur(6px); background: rgba(3,3,3,0.94); }
#menuOverlay a { position: relative; }
#menuOverlay a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 1px;
  background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-cine);
}
#menuOverlay a:hover::after { transform: scaleX(1); }
body.menu-open #menuNav a { animation: menuIn 0.6s var(--ease-cine) both; }
body.menu-open #menuNav a:nth-child(2){animation-delay:.05s}
body.menu-open #menuNav a:nth-child(3){animation-delay:.10s}
body.menu-open #menuNav a:nth-child(4){animation-delay:.15s}
body.menu-open #menuNav a:nth-child(5){animation-delay:.20s}
body.menu-open #menuNav a:nth-child(6){animation-delay:.25s}
body.menu-open #menuNav a:nth-child(7){animation-delay:.30s}
@keyframes menuIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 0.85; transform: none; } }

/* ============ HEADER — glass on scroll ============ */
.site-header { transition: backdrop-filter 0.4s, background 0.4s; }
body.scrolled .site-header { backdrop-filter: blur(10px); background: linear-gradient(rgba(5,5,5,0.92), rgba(5,5,5,0.25)); }

/* ============ FOOTER ============ */
footer { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); }
footer .f-links a { position: relative; }
footer .f-links a::after {
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:1px; background:var(--fg);
  transform: scaleX(0); transform-origin:left; transition: transform 0.3s var(--ease-cine);
}
footer .f-links a:hover::after { transform: scaleX(1); }

/* ============ subpage entrance ============ */
body.subpage .page-wrap > * { animation: pageIn 0.9s var(--ease-cine) both; }
body.subpage .page-title { animation-delay: 0.05s; }
body.subpage .page-intro { animation-delay: 0.14s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ============ ABOUT PAGE ============ */
.about-lead {
  text-align: center; max-width: 760px; margin: 64px auto 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 52px); line-height: 1.12; letter-spacing: 0.04em;
  background: linear-gradient(180deg,#fff,#bdbdbd); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 80px; }
.about-col {
  border: 1px solid var(--line); border-radius: 16px; padding: 34px 28px;
  background: linear-gradient(180deg,#101010,#090909);
  transition: transform 0.5s var(--ease-cine), border-color 0.35s, box-shadow 0.45s;
}
.about-col:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.4); box-shadow: 0 26px 54px rgba(0,0,0,0.55); }
.about-k { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.3em; color: var(--muted); }
.about-col h3 { font-size: 20px; letter-spacing: 0.06em; margin: 16px 0 12px; }
.about-col p { color: var(--muted); line-height: 1.75; font-size: 14.5px; }
.about-cta { text-align: center; margin: 90px 0 10px; }
.about-cta p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; line-height: 1.7; }
.about-cta-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }

/* ============ CAROUSEL CONTROLS ============ */
.car-controls { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 6; transition: opacity 0.5s var(--ease-cine); }
.carousel-sticky.controls-on .car-controls { opacity: 1; }
.car-arrow {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: rgba(10,10,10,0.5); border: 1px solid var(--line); color: var(--fg);
  display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.car-arrow svg { width: 22px; height: 22px; }
.car-arrow.car-prev { left: clamp(12px, 5vw, 60px); }
.car-arrow.car-next { right: clamp(12px, 5vw, 60px); }
.car-arrow:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-50%) scale(1.07); }
.car-skip {
  pointer-events: auto; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(10,10,10,0.4); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 11px 26px; border-radius: 999px; display: inline-flex; gap: 9px; align-items: center;
  backdrop-filter: blur(6px); transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.car-skip span { transition: transform 0.3s; }
.car-skip:hover { color: var(--fg); border-color: var(--fg); }
.car-skip:hover span { transform: translateY(3px); }
@media (max-width: 640px) {
  .car-arrow { width: 44px; height: 44px; }
  .car-arrow svg { width: 18px; height: 18px; }
  .car-skip { bottom: 22px; font-size: 10px; padding: 9px 20px; }
}

/* ============ WORLD MAP (persecution + revival) ============ */
.apstl-worldmap { width: 100%; }
.wm-legend {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin: 0 auto 22px; max-width: 760px;
}
.wm-leg {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  font-family: var(--font-display);
}
.wm-leg i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.wm-leg[data-cat="red"] i { box-shadow: 0 0 12px #ff3b30; }
.wm-leg[data-cat="orange"] i { box-shadow: 0 0 12px #ff9500; }
.wm-leg[data-cat="yellow"] i { box-shadow: 0 0 12px #ffd60a; }
.wm-leg[data-cat="green"] i { box-shadow: 0 0 12px #34c759; }
.wm-leg[data-cat="blue"] i { box-shadow: 0 0 12px #0a84ff; }
.wm-leg[data-cat="purple"] i { box-shadow: 0 0 12px #bf5af2; }

.wm-stage {
  position: relative; width: 100%; border-radius: 16px; overflow: hidden;
  /* same ocean tone as the globe atlas */
  background: radial-gradient(130% 130% at 50% 28%, #0e1016, #080a0e 74%);
  border: 1px solid var(--line);
}
html[data-theme="light"] .wm-stage {
  background: radial-gradient(130% 130% at 50% 28%, #f1efe8, #e6e3da 74%);
}
.wm-svg { display: block; width: 100%; height: auto; }

/* white world */
.wm-land {
  fill: #f4f4f5; stroke: none;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
  transition: opacity 0.35s, fill 0.35s;
}

/* per-region layers (invisible until hover) */
.wm-rg { cursor: pointer; }
.wm-hit { fill: #fff; opacity: 0; pointer-events: all; }   /* catches hover, invisible */
.wm-glow {
  pointer-events: none; opacity: 0; stroke: none;
  filter: blur(7px); transition: opacity 0.4s;
}
.wm-edge {
  pointer-events: none; fill: none; stroke-width: 1.6; opacity: 0;
  vector-effect: non-scaling-stroke; transition: opacity 0.3s;
  stroke-linejoin: round;
}
.wm-rg.wm-red    .wm-glow { fill: #ff3b30; } .wm-rg.wm-red    .wm-edge { stroke: #ff3b30; }
.wm-rg.wm-orange .wm-glow { fill: #ff9500; } .wm-rg.wm-orange .wm-edge { stroke: #ff9500; }
.wm-rg.wm-yellow .wm-glow { fill: #ffd60a; } .wm-rg.wm-yellow .wm-edge { stroke: #ffd60a; }
.wm-rg.wm-green  .wm-glow { fill: #34c759; } .wm-rg.wm-green  .wm-edge { stroke: #34c759; }
.wm-rg.wm-blue   .wm-glow { fill: #0a84ff; } .wm-rg.wm-blue   .wm-edge { stroke: #0a84ff; }
.wm-rg.wm-purple .wm-glow { fill: #bf5af2; } .wm-rg.wm-purple .wm-edge { stroke: #bf5af2; }

/* on hover: light the region's outline + soft feathered glow */
.wm-rg.active .wm-glow { opacity: 0.55; }
.wm-rg.active .wm-edge { opacity: 1; }
.wm-svg.wm-focus .wm-land { fill: #cfcfd2; }

/* supported region — glowing animated gold outline (always on) */
.wm-support {
  fill: none; stroke: #ffd60a; stroke-width: 1.8; pointer-events: none;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(255,214,10,0.9));
  stroke-dasharray: 5 4; animation: wmDash 22s linear infinite;
}
@keyframes wmDash { to { stroke-dashoffset: -400; } }

/* tooltip */
.wm-tip {
  position: absolute; top: 0; left: 0; z-index: 4; width: min(330px, 76vw);
  background: rgba(10,10,10,0.95); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s; pointer-events: none;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.wm-tip.show { opacity: 1; visibility: visible; transform: none; }
.wm-tip-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wm-badge {
  align-self: flex-start; font-family: var(--font-display); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  color: var(--bc); border: 1px solid var(--bc);
  background: color-mix(in srgb, var(--bc) 16%, transparent);
}
.wm-tip h4 { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; }
.wm-star { color: #ffd60a; }
.wm-stat { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.wm-stat span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #777; }
.wm-stat b { font-size: 13px; color: #e8e8e8; font-weight: 500; line-height: 1.45; }
.wm-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.wm-mini { font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.wm-more { margin-top: 10px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #9a9a9a; }
.wm-hint {
  position: absolute; bottom: 12px; right: 16px; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #555; pointer-events: none;
}

/* detail panel (mission) */
.wm-detail {
  position: absolute; top: 0; right: 0; height: 100%; width: min(400px, 92%); z-index: 6;
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(8,8,8,0.98));
  border-left: 1px solid var(--line); padding: 30px 28px; overflow-y: auto;
  transform: translateX(102%); transition: transform 0.5s var(--ease-cine);
  box-shadow: -30px 0 60px rgba(0,0,0,0.55); backdrop-filter: blur(10px);
}
.wm-detail.show { transform: none; }
.wm-detail h3 { font-family: var(--font-display); font-size: clamp(24px,3vw,34px); letter-spacing: 0.05em; margin: 14px 0 4px; }
.wm-detail .wm-badge { margin-bottom: 4px; }
.wm-detail-text { color: var(--muted); line-height: 1.7; font-size: 14px; margin: 14px 0 8px; }
.wm-dl { margin-top: 8px; }
.wm-support-tag {
  display: inline-block; margin-top: 12px; font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.14em; color: #ffd60a; border: 1px solid rgba(255,214,10,0.5);
  padding: 6px 12px; border-radius: 999px; background: rgba(255,214,10,0.08);
}
.wm-x {
  position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--fg); font-size: 22px; line-height: 1;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.wm-x:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }

/* map section wrapper */
.map-section { max-width: 1180px; margin: 0 auto; padding: 30px 24px 10px; position: relative; z-index: 5; }
.map-section .map-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.map-section .map-head h2 { font-size: clamp(28px, 4.6vw, 52px); letter-spacing: 0.08em; }
.map-section .map-head p { color: var(--muted); line-height: 1.7; margin-top: 16px; }
.map-source { text-align: center; font-size: 11px; letter-spacing: 0.1em; color: #555; margin: 18px auto 0; }
.map-source a { text-decoration: underline; }

@media (max-width: 640px) {
  .wm-legend { gap: 6px 14px; }
  .wm-leg { font-size: 10px; }
  .wm-hint { display: none; }
  .wm-detail { width: 100%; height: 70%; top: auto; bottom: 0; border-left: none; border-top: 1px solid var(--line); transform: translateY(102%); border-radius: 16px 16px 0 0; }
  .wm-detail.show { transform: none; }
}

/* ============ accessibility — respect reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .fx-grain, .fx-ambient, .lock-wordwrap::after, .scroll-hint { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   ☀ LIGHT MODE
   The site follows the visitor's system setting automatically
   (set by the tiny script in each page's <head>), and the
   sun/moon button in the header lets them override it.
   Dark remains the default; html[data-theme="light"] flips it.
   ============================================================ */
html[data-theme="light"] {
  --bg: #f6f5f1;
  --fg: #101010;
  --muted: #5c5c5c;
  --line: rgba(0, 0, 0, 0.14);
  --card: #ffffff;
  --accent: #101010;
  --halo: rgba(0, 0, 0, 0.05);
  color-scheme: light;
}
html[data-theme="light"] body {
  background:
    radial-gradient(140% 90% at 50% -10%, #ffffff 0%, #f6f5f1 38%, #efede7 70%, #e8e5de 100%);
  background-attachment: fixed;
}

/* header + chrome */
html[data-theme="light"] .site-header { background: linear-gradient(rgba(246,245,241,0.9), rgba(246,245,241,0)); }
html[data-theme="light"] body.scrolled .site-header { background: linear-gradient(rgba(246,245,241,0.95), rgba(246,245,241,0.3)); }
html[data-theme="light"] #bagBtn,
html[data-theme="light"] #menuBtn,
html[data-theme="light"] #themeBtn { background: rgba(255,255,255,0.7); }
html[data-theme="light"] #menuOverlay { background: rgba(246,245,241,0.96); }
html[data-theme="light"] #counterTip { background: #ffffff; color: #454545; box-shadow: 0 18px 50px rgba(0,0,0,0.15); }
html[data-theme="light"] #counterTip::after { background: #ffffff; }
html[data-theme="light"] #scrollProgress { background: linear-gradient(90deg, rgba(0,0,0,0.3), #111); box-shadow: none; }

/* cinematic fx layers */
html[data-theme="light"] .fx-ambient {
  background:
    radial-gradient(38vmax 38vmax at 22% 18%, rgba(0,0,0,0.035), transparent 60%),
    radial-gradient(46vmax 46vmax at 82% 78%, rgba(0,0,0,0.028), transparent 62%);
}
html[data-theme="light"] .fx-vignette { background: radial-gradient(120% 100% at 50% 42%, transparent 62%, rgba(0,0,0,0.09) 100%); }
html[data-theme="light"] .fx-grain { mix-blend-mode: multiply; opacity: 0.035; }
html[data-theme="light"] .fx-cursor { background: radial-gradient(circle, rgba(0,0,0,0.045), rgba(0,0,0,0.015) 40%, transparent 68%); }

/* hero + counter */
html[data-theme="light"] #heroLock::before { background: radial-gradient(circle, rgba(0,0,0,0.05), transparent 58%); }
html[data-theme="light"] .lock-cross svg { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18)); }
html[data-theme="light"] #heroTagline { text-shadow: none; }
html[data-theme="light"] .scroll-hint::after { background: linear-gradient(rgba(0,0,0,0.5), transparent); }
html[data-theme="light"] #counterFloat .counter-number,
html[data-theme="light"] .mission-total .big,
html[data-theme="light"] .pd-info h1,
html[data-theme="light"] .about-lead,
html[data-theme="light"] .bk-card .val {
  background: linear-gradient(180deg, #101010 0%, #4c4c4c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: none;
}

/* carousel */
html[data-theme="light"] .carousel-sticky::before { background: radial-gradient(60% 50% at 50% 38%, rgba(0,0,0,0.04), transparent 70%); }
html[data-theme="light"] .carousel-stage::after { background: radial-gradient(ellipse at center, rgba(0,0,0,0.16), transparent 70%); }
html[data-theme="light"] .carousel-heading { text-shadow: none; }
html[data-theme="light"] .card .face img { filter: drop-shadow(0 18px 24px rgba(0,0,0,0.22)); }
html[data-theme="light"] .card:hover .face img { filter: drop-shadow(0 28px 34px rgba(0,0,0,0.3)); }
html[data-theme="light"] .car-arrow, html[data-theme="light"] .car-skip { background: rgba(255,255,255,0.6); }
html[data-theme="light"] .band-track span { -webkit-text-stroke: 1px rgba(0,0,0,0.3); }

/* cards + store */
html[data-theme="light"] .bk-card,
html[data-theme="light"] .about-col { background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
html[data-theme="light"] .bk-card:hover,
html[data-theme="light"] .about-col:hover { border-color: rgba(0,0,0,0.3); box-shadow: 0 24px 50px rgba(0,0,0,0.13); }
html[data-theme="light"] .bk-card::before { background: radial-gradient(circle, rgba(0,0,0,0.04), transparent 65%); }
html[data-theme="light"] .bk-card .bar { background: #e8e5de; }
html[data-theme="light"] .bk-card .bar i { background: linear-gradient(90deg, rgba(0,0,0,0.5), #101010); box-shadow: none; }
html[data-theme="light"] .bk-card .ico { filter: none; }
html[data-theme="light"] .store-card { background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
html[data-theme="light"] .store-card:hover { border-color: rgba(0,0,0,0.35); box-shadow: 0 24px 50px rgba(0,0,0,0.13); }
html[data-theme="light"] .store-card .imgwrap { background: radial-gradient(ellipse at 50% 35%, #ffffff, #eceae3 75%); }
html[data-theme="light"] .store-card .imgwrap::after { background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%); }

/* product */
html[data-theme="light"] .pd-main { background: radial-gradient(ellipse at 50% 42%, #ffffff, #eceae3 72%); box-shadow: inset 0 0 40px rgba(0,0,0,0.05); }
html[data-theme="light"] .pd-main img { filter: drop-shadow(0 24px 28px rgba(0,0,0,0.22)); }
html[data-theme="light"] .pd-label { color: #454545; }
html[data-theme="light"] .pd-note,
html[data-theme="light"] .checkout-note { color: #8a8a8a; }
html[data-theme="light"] .add-btn:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.18); }

/* profile + forms */
html[data-theme="light"] .pf-field input,
html[data-theme="light"] .pf-field select { background: #fbfaf7; }
html[data-theme="light"] .pf-field input:focus,
html[data-theme="light"] .pf-field select:focus { border-color: rgba(0,0,0,0.5); }
html[data-theme="light"] .pf-section h3 { color: #454545; }
html[data-theme="light"] .pf-saved { color: #2c7a39; }

/* footer */
html[data-theme="light"] footer { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.04)); }

/* world map */
html[data-theme="light"] .wm-stage { background: radial-gradient(120% 120% at 50% 30%, #ffffff, #eceae3 72%); }
html[data-theme="light"] .wm-land { fill: #26262b; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.18)); }
html[data-theme="light"] .wm-svg.wm-focus .wm-land { fill: #3f3f46; }
html[data-theme="light"] .wm-tip { background: rgba(255,255,255,0.97); box-shadow: 0 24px 60px rgba(0,0,0,0.16); }
html[data-theme="light"] .wm-detail { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,247,243,0.98)); box-shadow: -30px 0 60px rgba(0,0,0,0.12); }
html[data-theme="light"] .wm-stat b { color: #262626; }
html[data-theme="light"] .wm-x:hover { background: rgba(0,0,0,0.06); }
html[data-theme="light"] .wm-hint, html[data-theme="light"] .map-source { color: #999; }

/* ============ THEME TOGGLE BUTTON ============ */
#themeBtn {
  width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(5,5,5,0.6);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--fg);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
#themeBtn:hover { transform: translateY(-1px); border-color: var(--fg); }
#themeBtn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  #themeBtn { width: 40px; height: 40px; }
}

/* ============================================================
   🌍 THE GLOBE — fullscreen fold-out world
   ============================================================ */
body.globe-open { overflow: hidden; }
.globe-overlay {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column;
  background: radial-gradient(120% 120% at 50% 35%, #101014, #050506 75%);
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-cine), visibility 0.45s;
}
.globe-overlay.show { opacity: 1; visibility: visible; }
html[data-theme="light"] .globe-overlay { background: radial-gradient(120% 120% at 50% 35%, #ffffff, #eae7e0 75%); }

.globe-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 24px; flex-wrap: wrap;
}
.globe-title { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.22em; display: flex; flex-direction: column; gap: 4px; }
.globe-title span { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.globe-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.globe-legend span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.globe-legend i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.globe-x {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background 0.2s, transform 0.25s;
}
.globe-x:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }
html[data-theme="light"] .globe-x:hover { background: rgba(0,0,0,0.06); }

.globe-stage { position: relative; flex: 1; min-height: 0; touch-action: none; }
.globe-stage canvas { position: absolute; inset: 0; }

/* filter chips */
.globe-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.globe-chips .chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--muted); cursor: pointer;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.18em;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s;
}
.globe-chips .chip:hover { color: var(--fg); border-color: var(--fg); transform: translateY(-1px); }
.globe-chips .chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---- country choropleth (Joshua Project style — matches the globe atlas) ---- */
.atlas-svg { display: block; width: 100%; height: auto; }
.wm-cty {
  stroke: rgba(255,255,255,0.22); stroke-width: 0.7; cursor: pointer;
  stroke-linejoin: round;
  transition: fill 0.3s ease, stroke-width 0.2s ease;
}
html[data-theme="light"] .wm-cty { stroke: rgba(0,0,0,0.24); }
/* hover / pinned: the country lights up (fill set in JS) with a slightly
   stronger border in the SAME hairline colour — no hard black/white edge. */
.wm-cty.on { stroke: rgba(255,255,255,0.6); stroke-width: 1.1; }
html[data-theme="light"] .wm-cty.on { stroke: rgba(0,0,0,0.5); }
.wm-isle { stroke-width: 1; }
.map-chips { margin-bottom: 18px; justify-content: center; }
.globe-legend-row { padding: 0 24px 10px; margin: 0 auto; }
.wm-srcnote { margin-top: 16px; font-size: 10px; letter-spacing: 0.1em; color: #777; text-transform: uppercase; }
.globe-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.3em; color: #555; pointer-events: none; white-space: nowrap;
}
.globe-tip {
  position: absolute; z-index: 5; width: min(280px, 74vw); padding: 14px 16px;
  background: rgba(10,10,10,0.95); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6); pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.globe-tip.show { opacity: 1; visibility: visible; transform: none; }
html[data-theme="light"] .globe-tip { background: rgba(255,255,255,0.97); box-shadow: 0 24px 60px rgba(0,0,0,0.16); }
.globe-tip h4 { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.05em; margin: 8px 0 4px; }
.globe-tip p { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.gt-badge {
  display: inline-block; font-family: var(--font-display); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  color: var(--bc); border: 1px solid var(--bc);
  background: color-mix(in srgb, var(--bc) 14%, transparent);
}
.gt-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.gt-row span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #777; }
.gt-row b { font-size: 12.5px; font-weight: 600; }
.gt-pray { font-style: italic; }

.globe-stats { padding: 14px 24px 20px; text-align: center; }
.globe-stats p { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 720px; margin: 0 auto; }
.globe-stats .globe-src { margin-top: 6px; font-size: 11px; letter-spacing: 0.08em; }
.globe-stats a { text-decoration: underline; }
@media (max-width: 640px) {
  .globe-top { padding: 14px 16px; }
  .globe-legend { gap: 10px; }
  .globe-legend span { font-size: 9px; }
  .globe-hint { display: none; }
  .globe-stats { padding: 10px 16px 16px; }
  .globe-stats p:first-child { display: none; }
}

/* smooth colour hand-off when the theme flips */
html.theme-anim body,
html.theme-anim .site-header,
html.theme-anim .bk-card,
html.theme-anim .store-card,
html.theme-anim .about-col,
html.theme-anim .pd-main,
html.theme-anim footer { transition: background 0.45s ease, background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease; }
