/* =================================================================
   Bark Media Africa — styles
   Palette: adire indigo night + kente gold/green/red on bone.
   ================================================================= */
:root {
  --night: #0F0C36;
  --indigo: #16124A;
  --indigo-2: #231D6B;
  --indigo-3: #3A33A0;
  --gold: #F4B63F;
  --gold-deep: #C98A14;
  --green: #1F8A5B;
  --red: #C8372D;
  --bone: #F5EEE1;
  --bone-2: #EBE1CE;
  --ink: #1B1650;
  --ink-soft: #57527F;
  --on-dark: #F5EEE1;
  --on-dark-soft: #B9B3DA;
  --card: #fff;
  --card-2: #FBF7EF;
  --sel-bg: var(--ink);
  --sel-fg: var(--gold);
  --ink-rgb: 27, 22, 80;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--night); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.tinted { background: var(--bone-2); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.1rem; }
.grid { display: grid; gap: 1.25rem; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2rem; }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.align-center { align-items: center; }
.more { margin: 2rem 0 0; }

/* ---------- Kente strip (structural divider between dark & light) ---------- */
.kente {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 48px, var(--night) 48px 54px, var(--green) 54px 86px,
      var(--gold) 86px 94px, var(--red) 94px 126px, var(--night) 126px 132px);
}
.kente.thin { height: 6px; border-radius: 4px; margin: 1.5rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--r-pill);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 6px 0 var(--gold-deep); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold-deep); }
.btn-gold:active { box-shadow: 0 3px 0 var(--gold-deep); }
.btn-ghost { border-color: rgba(245, 238, 225, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--sel-bg); color: var(--sel-fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.text-link { color: var(--green); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(15, 12, 54, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(245, 238, 225, .08);
  color: var(--on-dark);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { display: block; font-family: var(--display); font-size: 1.1rem; line-height: 1.1; }
.brand small { display: block; color: var(--on-dark-soft); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a:not(.btn) {
  padding: .55rem .8rem; border-radius: var(--r-pill); text-decoration: none;
  color: var(--on-dark-soft); font-weight: 500; transition: color .2s, background .2s;
}
.main-nav a:not(.btn):hover { color: var(--on-dark); background: rgba(245, 238, 225, .08); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--gold); }
.nav-join { margin-left: .6rem; min-height: 42px; padding: .6rem 1.1rem; box-shadow: 0 4px 0 var(--gold-deep); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; padding: 12px; border-radius: 12px; }
.menu-btn span { display: block; height: 2px; background: var(--on-dark); margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .main-nav {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--night);
    border-bottom: 1px solid rgba(245, 238, 225, .1);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: .9rem 1rem; font-size: 1.1rem; }
  .nav-join { margin: .75rem 0 0; }
}

/* ---------- Hero (3D) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh - 72px, 900px);
  display: flex; align-items: center;
  background: radial-gradient(120% 90% at 75% 40%, var(--indigo-2) 0%, var(--indigo) 45%, var(--night) 100%);
  color: var(--on-dark);
  margin-top: -1px;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--night) 0%, rgba(15, 12, 54, .7) 35%, transparent 65%);
}
.hero-inner { padding: 5rem 0 6rem; position: relative; }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: 1.2rem; text-wrap: balance; }
.hero .lede { font-size: 1.2rem; color: var(--on-dark-soft); max-width: 54ch; margin-bottom: 2rem; }
.greeting { font-family: var(--display); font-size: 1.35rem; margin-bottom: 1.2rem; min-height: 2rem; }
.g-word { color: var(--gold); font-weight: 600; display: inline-block; transition: opacity .35s, transform .35s var(--ease); }
.g-lang { color: var(--on-dark-soft); font-size: .9rem; font-family: var(--body); margin-left: .35rem; transition: opacity .35s; }
.greeting.swap .g-word { opacity: 0; transform: translateY(-.4em) rotateX(60deg); }
.greeting.swap .g-lang { opacity: 0; }
.stat-line { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 3rem 0 0; }
.stat-line div { display: flex; flex-direction: column-reverse; }
.stat-line dd { margin: 0; font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--on-dark); line-height: 1; }
.stat-line dt { color: var(--on-dark-soft); font-size: .95rem; margin-top: .3rem; }
.live-pill {
  position: absolute; right: 0; bottom: 3rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-radius: var(--r-pill);
  background: rgba(15, 12, 54, .7); border: 1px solid rgba(244, 182, 63, .4);
  backdrop-filter: blur(8px); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.live-pill:hover { border-color: var(--gold); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--on-dark-soft); flex: none; }
.live-pill .dot, .is-live .dot, .dial .dot.on { background: var(--red); box-shadow: 0 0 0 0 rgba(200, 55, 45, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200, 55, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 55, 45, 0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; width: 28px; height: 44px; border: 2px solid rgba(245, 238, 225, .4); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-glow { background: linear-gradient(180deg, transparent 0%, rgba(15, 12, 54, .55) 40%, var(--night) 100%); }
  .hero-inner { padding: 46vh 0 4.5rem; }
  .live-pill { position: static; margin-top: 2rem; }
  .stat-line { gap: 1.6rem; }
  .scroll-cue { display: none; }
}

/* ---------- Page banners ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(100% 120% at 85% 20%, var(--indigo-2), var(--indigo) 50%, var(--night));
  color: var(--on-dark); padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.banner-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.banner h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 16ch; text-wrap: balance; }
.banner .lede { font-size: 1.2rem; color: var(--on-dark-soft); max-width: 52ch; margin: 0; }

/* ---------- Space cards ---------- */
.space-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .3rem;
  background: var(--card); border-radius: var(--r-lg); padding: 1.5rem;
  border: 1px solid rgba(var(--ink-rgb), .08);
}
.space-card.is-live { background: var(--indigo); color: var(--on-dark); border-color: transparent; }
.space-card.is-live .muted { color: var(--on-dark-soft); }
.space-card.is-live .text-link { color: var(--gold); }
.space-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; margin-bottom: .6rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.is-upcoming .dot { background: var(--gold); }
.is-recent .dot { background: var(--green); }
.listeners { color: var(--ink-soft); }
.is-live .listeners { color: var(--on-dark-soft); }
.space-card h3 { margin: 0; }
.space-bottom { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.topics { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag { display: inline-block; padding: .2rem .65rem; border-radius: var(--r-pill); background: var(--bone-2); color: var(--ink); font-size: .82rem; font-weight: 600; }
.is-live .tag { background: rgba(245, 238, 225, .12); color: var(--on-dark); }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 1rem; }
.wave i { flex: 1; background: var(--gold); border-radius: 2px; height: 30%; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -.07s); }
@keyframes wave { 50% { height: 100%; } }
.empty { padding: 2rem; border-radius: var(--r-lg); border: 2px dashed rgba(var(--ink-rgb), .18); color: var(--ink-soft); }

/* ---------- Tilt cards (3D on pointer) ---------- */
.services-home { background: var(--bone-2); }
.tilt-card { perspective: 900px; }
.tilt-inner {
  height: 100%; padding: 1.8rem 1.6rem; border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid rgba(var(--ink-rgb), .08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .25s;
  position: relative;
}
.tilt-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 182, 63, .22), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.tilt-card:hover .tilt-inner { box-shadow: 0 24px 40px -18px rgba(22, 18, 74, .35); }
.tilt-card:hover .tilt-inner::after { opacity: 1; }
.tilt-inner > * { transform: translateZ(24px); }
.symbol { display: inline-flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--green); margin-bottom: 1.2rem; }
.symbol i { font-style: normal; font-family: var(--body); font-weight: 500; font-size: .85rem; color: var(--ink-soft); }
.tilt-card .summary { font-weight: 600; margin-bottom: .5rem; }
.tilt-card.wide .tilt-inner { padding: 2.2rem; }

/* ---------- Nations + globe ---------- */
.nations { background: var(--night); color: var(--on-dark); }
.nations .muted { color: var(--on-dark-soft); }
.nations-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
#globe3d { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe3d:active { cursor: grabbing; }
.globe-hint { position: absolute; bottom: 0; left: 50%; translate: -50% 0; margin: 0; font-size: .85rem; color: var(--on-dark-soft); }
.nation-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.nation-list li { display: flex; gap: 1rem; align-items: center; }
.flag { font-size: 1.8rem; line-height: 1; }
.n-body { flex: 1; }
.n-top { display: flex; justify-content: space-between; font-size: .98rem; }
.n-top span { color: var(--on-dark-soft); }
.bar { height: 6px; border-radius: 3px; background: rgba(245, 238, 225, .1); margin: .4rem 0 .25rem; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width 1.2s var(--ease); }
.in-view .bar i { width: var(--w); }
.nations .btn-ghost-dark { border-color: var(--on-dark); color: var(--on-dark); }
.nations .btn-ghost-dark:hover { background: var(--on-dark); color: var(--night); }
@media (max-width: 860px) { .nations-grid { grid-template-columns: 1fr; } .globe-wrap { max-width: 420px; } }

/* ---------- Values ---------- */
.values-band { background: var(--bone); }
.value { padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.value h3 { font-size: 2rem; font-weight: 800; margin-bottom: .2rem; }
.value .meaning { font-style: italic; color: var(--green); font-weight: 500; }

/* ---------- Newsletter ---------- */
.news-band { background: var(--gold); color: var(--night); padding: clamp(3.5rem, 8vw, 5.5rem) 0; overflow: hidden; }
.news-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.news-copy { max-width: 640px; }
.news-copy h2 { margin-bottom: .6rem; }
.news-coin {
  width: clamp(130px, 18vw, 200px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #FFE3A1, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .25), inset 0 0 0 14px var(--gold-deep), 0 30px 40px -20px rgba(15, 12, 54, .5);
  animation: coinspin 7s linear infinite; transform-style: preserve-3d;
}
.news-coin span { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--indigo); }
@keyframes coinspin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.news-form { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.news-form input[type="email"] {
  flex: 1 1 240px; min-height: 52px; padding: .8rem 1.2rem; border-radius: var(--r-pill);
  border: 2px solid var(--night); background: var(--card); color: var(--ink); font: inherit;
}
.news-band .btn-gold { background: var(--night); color: var(--gold); box-shadow: 0 6px 0 #000; }
.news-band .btn-gold:hover { box-shadow: 0 8px 0 #000; }
.form-msg { flex-basis: 100%; margin: .3rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.news-band .form-msg.ok, .news-band .form-msg.err { color: var(--night); }
.news-band .form-msg.err::before { content: "⚠ "; }
.news-band .form-msg.ok::before { content: "✓ "; }
@media (max-width: 640px) { .news-inner { grid-template-columns: 1fr; } .news-coin { width: 110px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--indigo); color: var(--on-dark); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { color: var(--on-dark-soft); margin: 0; }

/* ---------- About ---------- */
.prose p { max-width: 62ch; }
.media-frame { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--indigo); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.milestones { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: m; position: relative; }
.milestones li { position: relative; padding-top: 3.5rem; }
.milestones li::before { content: ""; position: absolute; top: 1.2rem; left: 2.6rem; right: -2rem; height: 2px; background: var(--ink); opacity: .2; }
.milestones li:last-child::before { display: none; }
.m-num { position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--sel-bg); color: var(--sel-fg); font-family: var(--display); font-weight: 800; }

/* ---------- Services: offers + FAQ ---------- */
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; background: var(--card); border-radius: var(--r-md); padding: 1.5rem; }
.offer p { flex: 1; }
.faq { border-bottom: 1px solid rgba(var(--ink-rgb), .15); }
.faq summary { cursor: pointer; padding: 1.2rem 2rem 1.2rem 0; font-weight: 600; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--green); transition: rotate .25s; }
.faq[open] summary::after { rotate: 45deg; }
.faq p { color: var(--ink-soft); padding-bottom: 1.2rem; max-width: 65ch; }

/* ---------- Events ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { min-height: 44px; padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-fg); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 1.5rem; }
.timeline li[hidden] { display: none; }
.timeline time { text-align: center; padding-top: .4rem; }
.timeline time b { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.timeline time span { font-size: .85rem; color: var(--ink-soft); }
.event { background: var(--card); border-radius: var(--r-lg); padding: 1.6rem; border-left: 5px solid var(--gold); }
.timeline li[data-type="Workshop"] .event { border-left-color: var(--green); }
.timeline li[data-type="AMA"] .event { border-left-color: var(--red); }
.timeline li[data-type="Meetup"] .event { border-left-color: var(--indigo-3); }
.event-meta { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; font-size: .9rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .5rem; } .timeline time { text-align: left; display: flex; gap: .5rem; align-items: baseline; } .timeline time b { font-size: 1.6rem; } }

/* ---------- Spaces ---------- */
.dial { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; padding: 1.6rem 2rem; border-radius: var(--r-lg); background: var(--indigo); color: var(--on-dark); }
.dial div { display: flex; flex-direction: column; }
.dial b { font-family: var(--display); font-size: 2rem; line-height: 1; }
.dial span:not(.dot) { color: var(--on-dark-soft); font-size: .9rem; }
.group-title { font-size: 1.6rem; margin: 3rem 0 1.2rem; }

/* ---------- Join ---------- */
.join-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.passport { background: var(--card); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); border-top: 8px solid var(--gold); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-top: 1.5rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px;
  border: 2px solid var(--bone-2); background: var(--bone); color: var(--ink); font: inherit;
  transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); background: var(--card); outline: none; }
.form [aria-invalid="true"] { border-color: var(--red) !important; }
.check { display: flex !important; align-items: center; gap: .6rem; font-weight: 500 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.panel-dark { background: var(--indigo); color: var(--on-dark); border-radius: var(--r-lg); padding: 2rem; position: sticky; top: 96px; }
.panel-dark a { color: var(--gold); }
.panel-dark .muted { color: var(--on-dark-soft); }
.btn[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } .panel-dark { position: static; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-news h2 { font-size: 1.8rem; }
.footer-news p { color: var(--on-dark-soft); max-width: 46ch; }
.site-footer .news-form input[type="email"] { border-color: transparent; }
.site-footer .form-msg.ok { color: var(--gold); }
.site-footer .form-msg.err { color: #FF8A80; }
.site-footer h3 { font-size: 1rem; font-family: var(--body); color: var(--on-dark-soft); font-weight: 500; }
.flinks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.flinks a { text-decoration: none; }
.flinks a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(245, 238, 225, .1); color: var(--on-dark-soft); font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-news { grid-column: 1 / -1; } }

/* ---------- Reveal: one orchestrated hero entrance ---------- */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); }
.js.ready .hero-copy > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js.ready .hero-copy > *:nth-child(2) { transition-delay: .1s; }
.js.ready .hero-copy > *:nth-child(3) { transition-delay: .2s; }
.js.ready .hero-copy > *:nth-child(4) { transition-delay: .3s; }
.js.ready .hero-copy > *:nth-child(5) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .hero-copy > * { opacity: 1; transform: none; }
  .tilt-inner { transform: none !important; }
}

/* WebGL unavailable: show the artwork instead */
.no-webgl #hero3d, .no-webgl .banner-3d { display: none; }
.no-webgl .hero { background-image: radial-gradient(circle at 78% 50%, rgba(244,182,63,.25), transparent 35%), radial-gradient(120% 90% at 75% 40%, var(--indigo-2) 0%, var(--indigo) 45%, var(--night) 100%); }

/* =================================================================
   v2 — shop, cart, homepage sections, scroll animations
   ================================================================= */
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; background: var(--sel-bg); color: var(--sel-fg); }
.btn-small:hover { background: var(--green); }
.block { width: 100%; }
.grow { flex: 1; }
.center { justify-content: center; }
.no-scroll { overflow: hidden; }
.notice { padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--card-2); border-left: 5px solid var(--gold); margin-bottom: 2rem; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Cart button + drawer ---------- */
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(245,238,225,.2); background: transparent; color: var(--on-dark); cursor: pointer; margin-left: auto; transition: border-color .2s, background .2s; }
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--night); font: 700 .75rem/20px var(--body); text-align: center; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
@media (min-width: 961px) { .cart-btn { order: 3; margin-left: .5rem; } .main-nav { margin-left: auto; } }
.fly-ghost { position: fixed; z-index: 200; pointer-events: none; border-radius: 16px; object-fit: contain; }

.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(15,12,54,.55); opacity: 0; transition: opacity .3s; }
.drawer-scrim.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--bone); color: var(--ink);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(105%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  box-shadow: -20px 0 60px rgba(15,12,54,.3);
}
.cart-drawer.open { transform: none; visibility: visible; }
.cart-drawer:focus { outline: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(var(--ink-rgb), .1); }
.drawer-head h2 { font-size: 1.5rem; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bone-2); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem; }
.drawer-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid rgba(var(--ink-rgb), .1); background: var(--card); }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.15rem; }
.drawer-empty { text-align: center; padding: 3rem 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(var(--ink-rgb), .08); }
.cart-line img { width: 72px; height: 72px; border-radius: 12px; background: var(--bone-2); object-fit: contain; }
.cl-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cl-body small { color: var(--ink-soft); }
.cl-end { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; font-weight: 600; }
.link-btn { border: 0; background: none; color: var(--red); font: 500 .85rem var(--body); cursor: pointer; padding: .2rem 0; text-decoration: underline; text-underline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--bone-2); border-radius: var(--r-pill); background: var(--card); overflow: hidden; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--bone); }
.qty input { width: 44px; text-align: center; border: 0; font: 600 1rem var(--body); color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { margin-top: .4rem; align-self: flex-start; }
.qty.sm button { width: 32px; height: 32px; font-size: 1rem; }
.qty.sm span { min-width: 22px; text-align: center; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); z-index: 300; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--night); color: var(--bone); padding: .8rem 1.3rem; border-radius: var(--r-pill); font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .3s, translate .3s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Shop hero ---------- */
.shop-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: radial-gradient(90% 120% at 80% 30%, #3A2C8A 0%, var(--indigo) 45%, var(--night)); padding: clamp(4rem, 9vw, 7rem) 0; min-height: 440px; display: flex; align-items: center; }
#shop3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.shop-hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: .3em; }
.shop-hero .lede { color: var(--on-dark-soft); font-size: 1.2rem; max-width: 46ch; }
.shop-hero-inner { position: relative; }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.trust li { padding: .45rem .9rem; border-radius: var(--r-pill); background: rgba(245,238,225,.08); border: 1px solid rgba(245,238,225,.15); font-size: .9rem; }
.trust li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .shop-hero { padding-top: 15rem; } }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.product-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(var(--ink-rgb), .07); transition: transform .35s var(--ease), box-shadow .35s; }
.product-card[hidden] { display: none; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -24px rgba(22,18,74,.45); }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #FBF6EC, var(--bone-2)); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .6s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.07) rotate(-2deg); }
.pc-badge { position: absolute; top: .9rem; left: .9rem; z-index: 1; padding: .25rem .7rem; border-radius: var(--r-pill); background: var(--night); color: var(--gold); font-size: .78rem; font-weight: 600; }
.pc-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.pc-top { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.pc-top h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.pc-top h3 a { text-decoration: none; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: auto; padding-top: .6rem; }
.mini-swatches { display: flex; gap: .35rem; }
.mini-sw { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .25); cursor: pointer; padding: 0; }
.mini-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.shop-info h3 { font-size: 1.3rem; }

/* ---------- Product page ---------- */
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.crumbs a { color: var(--green); }
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pd-media { position: sticky; top: 100px; perspective: 1000px; }
.pd-stage { aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 50% 35%, #FFF8EA, var(--bone-2) 70%); display: grid; place-items: center; overflow: hidden; position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease); }
.pd-stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(var(--ink-rgb), .12); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pd-stage img { width: 88%; position: relative; animation: float 5s ease-in-out infinite; transition: opacity .2s, transform .3s; }
.pd-stage img.swap { opacity: 0; }
@keyframes float { 50% { translate: 0 -12px; } }
.pd-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .4rem 0 .2rem; }
.pd-price { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--green); margin-bottom: 1rem; }
.pd-desc { font-size: 1.1rem; max-width: 52ch; }
.opt { border: 0; padding: 0; margin: 1.5rem 0 0; }
.opt legend { font-weight: 600; margin-bottom: .6rem; }
.opt legend b { font-weight: 500; color: var(--ink-soft); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: .6rem; }
.sw { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }
.sw input, .size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.sw:has(input:checked) { outline: 3px solid var(--ink); outline-offset: 3px; }
.sw:has(input:focus-visible), .size:has(input:focus-visible) span { outline: 3px solid var(--gold); outline-offset: 3px; }
.size { position: relative; }
.size span { display: grid; place-items: center; min-width: 52px; height: 48px; padding: 0 .8rem; border-radius: 12px; border: 2px solid var(--bone-2); background: var(--card); font-weight: 600; cursor: pointer; transition: all .15s; }
.size:hover span { border-color: var(--ink); }
.size input:checked + span { background: var(--sel-bg); color: var(--sel-fg); border-color: var(--ink); }
.buy-row { display: flex; gap: .8rem; margin: 1.8rem 0 .8rem; }
.pd-details { margin: 1.8rem 0 1rem; padding: 1.2rem 1.2rem 1.2rem 2.4rem; background: var(--card); border-radius: var(--r-md); }
.pd-details li { margin: .25rem 0; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } .pd-media { position: static; } }

/* ---------- Checkout ---------- */
.checkout-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.5rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.checkout-grid[hidden] { display: none; }
.co-main { display: grid; gap: 1.5rem; min-width: 0; }
.co-hidden { display: contents; }
.co-block { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--card); border-radius: var(--r-lg); }
.co-block h2 { font-size: 1.4rem; margin: 0 0 1.1rem; }
.co-fields { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 1.25rem; }
.co-fields[hidden], .co-field[hidden] { display: none; }
.co-block h2 + .co-fields { margin-top: 0; }
.co-field { flex: 1 1 calc(50% - .6rem); min-width: 0; display: flex; flex-direction: column; }
.co-field.full { flex-basis: 100%; }
.co-field > * { max-width: 100%; }
.co-field label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.co-field input, .co-field select, .co-field textarea {
  display: block; width: 100%; min-width: 0; min-height: 50px; padding: .75rem 1rem;
  border-radius: 12px; border: 2px solid var(--bone-2); background: var(--bone);
  color: var(--ink); font: inherit; transition: border-color .2s, background .2s;
}
.co-field textarea { resize: vertical; min-height: 84px; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { border-color: var(--ink); background: var(--card); outline: none; }
.co-field [aria-invalid="true"] { border-color: var(--red); }
.ship-options { display: grid; gap: .6rem; }
.ship { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border: 2px solid var(--bone-2); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s, background .2s; }
.ship:has(input:checked) { border-color: var(--ink); background: var(--card-2); }
.ship input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.ship-body { display: flex; flex-direction: column; min-width: 0; }
.ship-body small { color: var(--ink-soft); }
.ship-price { font-weight: 700; white-space: nowrap; }
.co-summary { position: sticky; top: 96px; min-width: 0; background: var(--indigo); color: var(--on-dark); border-radius: var(--r-lg); padding: 1.75rem; }
.co-summary h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.co-summary .cart-line { border-color: rgba(245,238,225,.1); grid-template-columns: 56px minmax(0, 1fr) auto; }
.co-summary .cart-line img { width: 56px; height: 56px; background: rgba(245,238,225,.9); }
.co-summary .cl-body small { color: var(--on-dark-soft); }
.co-totals { margin: 1.2rem 0; }
.co-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: var(--on-dark-soft); }
.co-totals dd { margin: 0; color: var(--on-dark); }
.co-totals .grand { border-top: 1px solid rgba(245,238,225,.2); margin-top: .5rem; padding-top: .9rem; font-size: 1.25rem; font-weight: 700; color: var(--on-dark); }
.co-summary .form-msg:empty { display: none; }
.co-summary .form-msg.err { color: #FFB4A9; }
.secure { display: flex; gap: .5rem; align-items: flex-start; color: var(--on-dark-soft); margin: 1rem 0 0; }
.secure svg { flex: none; margin-top: .2rem; }
.empty.big { text-align: center; padding: 4rem 2rem; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { position: static; }
}
@media (max-width: 560px) {
  .co-field { flex-basis: 100%; }
  .co-block, .co-summary { padding: 1.25rem; border-radius: var(--r-md); }
  .ship { padding: .8rem .9rem; gap: .7rem; }
  .checkout.section { padding-top: 2.5rem; }
}

/* ---------- Order complete ---------- */
.receipt { text-align: center; background: var(--card); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); }
.receipt h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.receipt .lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; margin-inline: auto; }
.receipt-coin { width: 96px; height: 96px; margin: 0 auto 1.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--night); background: radial-gradient(circle at 35% 30%, #FFE3A1, var(--gold) 50%, var(--gold-deep)); box-shadow: inset 0 0 0 6px rgba(255,255,255,.3); animation: pop .7s var(--ease) both, coinspin 6s linear .7s infinite; }
@keyframes pop { from { transform: scale(0) rotate(-180deg); } }
.receipt-lines { list-style: none; padding: 0; margin: 2rem 0; text-align: left; }
.receipt-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--bone-2); }
.receipt-lines img { border-radius: 10px; background: var(--bone-2); }
.receipt-lines li span:nth-child(2) { display: flex; flex-direction: column; }
.receipt-lines small { color: var(--ink-soft); }
.receipt-lines .r-sub, .receipt-lines .r-total { grid-template-columns: 1fr auto; }
.receipt-lines .r-total { font-weight: 800; font-size: 1.2rem; border-bottom: 0; }

/* ---------- Homepage: ticker ---------- */
.ticker { background: var(--night); color: var(--on-dark); overflow: hidden; border-bottom: 1px solid rgba(245,238,225,.08); }
.ticker-track { display: flex; width: max-content; gap: 3rem; padding: .85rem 0; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { white-space: nowrap; font-size: .95rem; display: inline-flex; gap: .5rem; align-items: center; }
.tk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tk b { font-weight: 600; }
.tk .up { color: #5FD39A; } .tk .down { color: #FF8A80; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Homepage: path ---------- */
.steps-wrap { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps-line { position: absolute; top: 44px; left: 0; width: 100%; height: 20px; overflow: visible; }
.steps-line path { stroke: var(--gold); stroke-width: 3; fill: none; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.steps li { position: relative; text-align: center; padding: 0 .5rem; }
.steps .step-icon { z-index: 1; }
.step-icon { position: relative; width: 108px; height: 108px; margin: 0 auto 1.5rem; display: grid; place-items: center; border-radius: 32px; background: var(--indigo); color: var(--gold); transform: rotate(-6deg); transition: transform .4s var(--ease); }
.steps li:nth-child(odd) .step-icon { transform: rotate(6deg); }
.steps li:hover .step-icon { transform: rotate(0) scale(1.06); }
.step-n { position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font: 800 1rem var(--display); }
.steps p { max-width: 32ch; margin-inline: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps-line { display: none; } }

/* ---------- Homepage: gallery ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.gallery-head p { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 1rem; }
.g-tile { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--indigo); }
.g-tile.tall { grid-row: span 2; }
.g-tile.wide { grid-column: span 2; }
.g-tile > img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; transition: scale .8s var(--ease); }
.g-tile:hover > img { scale: 1.05; }
.g-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(15,12,54,.85)); font-weight: 600; display: flex; flex-direction: column; }
.g-tile figcaption span { font-weight: 400; font-size: .88rem; opacity: .85; }
.poster { color: #fff; }
.poster figcaption { background: none; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.poster-art { position: absolute; inset: 0; background-size: 60px 40px; }
.poster-art img { position: absolute; right: -14%; top: -12%; width: 70%; opacity: .22; transition: transform 1.2s var(--ease); }
.poster:hover .poster-art img { transform: rotate(-12deg) scale(1.1); }
.tone-gold { background: var(--gold); } .tone-gold figcaption { color: var(--night); } .tone-gold .poster-art img { filter: brightness(0); opacity: .14; }
.tone-green { background: var(--green); } .tone-red { background: var(--red); } .tone-indigo { background: var(--indigo-3); }
.poster::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--gold) 0 24px, var(--night) 24px 27px, var(--green) 27px 40px, var(--red) 40px 54px); }
.tone-gold::after { background: repeating-linear-gradient(90deg, var(--night) 0 24px, var(--green) 24px 37px, var(--red) 37px 51px); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 150px; } .g-tile.wide { grid-column: span 2; } }

/* ---------- Homepage: shop band ---------- */
.shop-band { background: linear-gradient(180deg, var(--night), var(--indigo)); color: var(--on-dark); overflow: hidden; }
.shop-band-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.shop-band-head p { color: var(--on-dark-soft); max-width: 48ch; margin: 0; font-size: 1.1rem; }
.shop-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.rail-item { text-decoration: none; display: flex; flex-direction: column; gap: .2rem; }
.rail-img { aspect-ratio: 1; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 40%, rgba(244,182,63,.25), rgba(245,238,225,.06) 65%); border: 1px solid rgba(245,238,225,.1); display: grid; place-items: center; margin-bottom: .7rem; transition: background .4s, border-color .4s; }
.rail-img img { width: 86%; animation: float 5s ease-in-out infinite; animation-delay: calc(var(--f) * -1.2s); transition: transform .5s var(--ease); }
.rail-item:hover .rail-img { border-color: var(--gold); }
.rail-item:hover .rail-img img { transform: scale(1.08) rotate(-4deg); }
.rail-name { font-weight: 600; }
.rail-price { color: var(--gold); font-family: var(--display); font-weight: 800; }
@media (max-width: 860px) { .shop-rail { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Homepage: voices marquee ---------- */
.voices { overflow: hidden; background: var(--bone-2); }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 60s linear infinite; padding: .5rem 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.voice { margin: 0; width: 340px; flex: none; background: var(--card); border-radius: var(--r-lg); padding: 1.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.voice p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.voice p::before { content: "“"; display: block; font-family: var(--display); font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: .4rem; }
.voice footer { display: flex; gap: .8rem; align-items: center; }
.voice footer span:last-child { display: flex; flex-direction: column; font-size: .92rem; }
.voice small { color: var(--green); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: var(--gold); font-weight: 700; }

/* ---------- Homepage: events teaser ---------- */
.ev-card { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; text-decoration: none; background: var(--card); border-radius: var(--r-lg); padding: 1.5rem; border: 1px solid rgba(var(--ink-rgb), .07); transition: transform .3s var(--ease), border-color .3s; }
.ev-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.ev-card time { width: 72px; text-align: center; border-radius: 16px; background: var(--indigo); color: var(--on-dark-soft); padding: .7rem 0; font-size: .85rem; }
.ev-card time b { display: block; font-family: var(--display); font-size: 2rem; color: var(--gold); line-height: 1; }
.ev-card h3 { margin: .5rem 0 .3rem; }

/* ---------- Admin ---------- */
.admin { background: var(--bone); }
.admin-bar { background: var(--night); color: var(--on-dark); }
.admin-login { max-width: 420px; margin: 2rem auto; display: grid; gap: .8rem; }
.admin-login input { min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 2px solid var(--bone-2); font: inherit; }
.admin-stats { margin-bottom: 1.5rem; }
.chips a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.admin-orders { display: grid; gap: 1rem; }
.admin-order { background: var(--card); border-radius: var(--r-md); padding: 1.25rem 1.5rem; border-left: 5px solid var(--gold); }
.admin-order.done { border-left-color: var(--green); opacity: .8; }
.admin-order:not(.st-paid) { border-left-color: var(--ink-soft); }
.ao-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ao-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ao-body a { color: var(--green); }
.ao-lines { list-style: none; padding: 0; margin: 0; }
.ao-lines li { padding: .3rem 0; border-bottom: 1px solid var(--bone-2); }
.ao-total { font-weight: 700; border-bottom: 0 !important; }
@media (max-width: 700px) { .ao-body { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track, .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .steps-line path { stroke-dashoffset: 0; }
}
