/* ==========================================================================
   The Triad: design system v3
   Black marble, chrome and gold. Dark only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #070708;
  --bg-2: #0A0A0C;
  --bg-3: #0E0E11;
  --surface: rgba(12, 12, 14, .82);
  --surface-2: rgba(16, 16, 19, .9);
  --surface-solid: #0C0C0E;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .24);
  --line-gold: rgba(201, 169, 110, .45);

  --text: #E8E8EA;
  --heading: #F2F2F4;
  --muted: #B4B4BA;
  --muted-2: #A8A8AF;
  --faint: #8E8E95;

  --gold: #C9A96E;
  --gold-text: #D9C08F;
  --gold-hi: #F1DDB2;
  --danger: #F1A7A7;
  --ok: #A9D8B8;

  --tag-news: #D9C08F;
  --tag-finding: #CFD3DA;
  --tag-easter: #F0A9B8;
  --tag-event: #8FD3CB;
  --tag-community: #B9AEEA;

  --display: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --metal: linear-gradient(180deg, #F5F5F6 0%, #C4C4C9 100%);
  --metal-hi: linear-gradient(180deg, #FFFFFF 0%, #D8D8DC 100%);
  --chrome-grad: linear-gradient(180deg, #FFFFFF 0%, #D9D9DD 46%, #8C8C93 56%, #ECECEF 100%);

  --radius: 2px;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 32px);
  --section-y: clamp(80px, 11vw, 144px);
  --header-space: 96px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: dark;
}

@property --pct {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  body { animation: page-in .7s var(--ease) both; }
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* iframes stay clickable (Lenis can leave lenis-scrolling on <html>) */
html.menu-open { overflow: hidden; }

[hidden] { display: none !important; }
img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-hi); }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(201, 169, 110, .35); color: #fff; }
[id] { scroll-margin-top: var(--header-space); }
p { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  padding: 12px 16px; background: #fff; color: #000; font-weight: 600; text-decoration: none;
  border-radius: var(--radius); transition: top .2s;
}
.skip:focus { top: 12px; color: #000; }
.nowrap { white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { --wrap: 880px; }
.wrap--mid { --wrap: 1040px; }
.section { position: relative; padding-block: var(--section-y); }
.section--line { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 28px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head > .stack { max-width: 680px; gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }
.pt-0 { padding-top: 0; }
.section-aside { max-width: 380px; }
.feed-col { min-width: 0; }
.page-hero .btn-row { padding-top: 6px; }
.admin-section { padding-top: clamp(140px, 16vw, 200px); min-height: 80vh; }
.admin-head { margin-bottom: 40px; }
.center { text-align: center; }
.center .stack { align-items: center; }
.rule { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; margin: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--display); font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .75; }
.eyebrow--plain::before { display: none; }
.display {
  margin: 0; font-family: var(--display); font-weight: 300;
  font-size: clamp(46px, 9vw, 128px); line-height: 1; letter-spacing: -.02em; color: var(--heading);
}
.h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 7vw, 96px); line-height: 1.03; letter-spacing: -.015em; color: var(--heading);
}
.h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.01em; color: var(--heading);
}
.h2--sm { font-size: clamp(28px, 3.2vw, 40px); }
.h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--heading); }
.lead { margin: 0; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--muted); }
.body { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted-2); }
.small { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.tiny { margin: 0; font-size: 13px; line-height: 1.6; color: var(--faint); }
.num { font-family: var(--display); font-size: 13px; letter-spacing: .24em; color: var(--faint); }
.prose { font-size: 17px; line-height: 1.8; color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }

/* Chrome text with a slow sheen sweep on hover */
.chrome {
  background-image:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%),
    var(--chrome-grad);
  background-size: 260% 100%, 100% 100%;
  background-position: 170% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .18em;
  margin-bottom: -.18em;
  transition: background-position 1.8s var(--ease);
}
.chrome:hover, a:hover .chrome, a:focus-visible .chrome { background-position: -70% 0, 0 0; }

/* Masked line reveal (built by site.js) */
.line-mask { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line-inner { display: block; }
.split-w { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; overflow: hidden; isolation: isolate;
  font-family: var(--display); font-size: 13px; font-weight: 500; line-height: 1.2;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease); pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn-metal {
  background: var(--metal); color: #0A0A0B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(0, 0, 0, .35);
}
.btn-metal:hover { background: var(--metal-hi); color: #000; box-shadow: inset 0 1px 0 #fff, 0 10px 32px rgba(201, 169, 110, .18); }
.btn-line { border-color: rgba(201, 169, 110, .55); color: #EDEDEF; background: rgba(7, 7, 8, .25); }
.btn-line::after { background: linear-gradient(105deg, transparent 35%, rgba(201, 169, 110, .22) 50%, transparent 65%); }
.btn-line:hover { border-color: var(--gold); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%); }
.btn-ghost:hover { border-color: var(--line-3); color: #fff; }
.btn-danger { border-color: rgba(241, 167, 167, .45); color: var(--danger); background: transparent; }
.btn-danger::after { display: none; }
.btn-danger:hover { border-color: var(--danger); color: #fff; background: rgba(241, 167, 167, .08); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 12px; letter-spacing: .16em; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.btn .arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 1.5px solid rgba(10, 10, 11, .25); border-top-color: #0A0A0B; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-line.is-loading::before, .btn-ghost.is-loading::before { border-color: rgba(255, 255, 255, .2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); text-decoration: none;
}
.link-arrow span[aria-hidden] { transition: transform .4s var(--ease); }
.link-arrow:hover span[aria-hidden] { transform: translateX(5px); }
@media (max-width: 400px) {
  .btn { padding: 0 20px; letter-spacing: .14em; }
  .btn-row > .btn { flex: 1 1 auto; }
}

/* ---------- Header: floating pill ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 14px var(--gutter) 0; pointer-events: none;
}
.nav-pill {
  pointer-events: auto; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; height: 64px; margin: 0 auto; padding: 0 8px 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(10, 10, 12, .55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .7s var(--ease), background-color .4s, border-color .4s;
}
.site-header.is-scrolled .nav-pill { background: rgba(8, 8, 10, .82); border-color: rgba(255, 255, 255, .12); }
.site-header.is-hidden .nav-pill { transform: translateY(calc(-100% - 24px)); }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; flex: none;
  color: #ECECEE; text-decoration: none;
}
.brand:hover { color: #fff; }
.brand .mark { width: 30px; height: 27px; transition: transform .6s var(--ease); }
.brand:hover .mark { transform: translateY(-2px); }
.brand-word { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .42em; margin-right: -.42em; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--muted); text-decoration: none;
  font-family: var(--display); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px;
  background: rgba(255, 255, 255, .45); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }
.nav-end { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-cta { border-radius: 999px; }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .03); cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.menu-btn:hover { border-color: var(--line-3); }
.menu-icon { position: relative; display: block; width: 18px; height: 10px; }
.menu-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: #fff; border-radius: 1px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-pill { height: 60px; padding: 0 6px 0 18px; }
}
@media (max-width: 520px) { .nav-cta { display: none; } }

/* No-JS fallback header (replaced by site.js) */
.nav-fallback {
  pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px;
  max-width: 1180px; margin: 0 auto; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 28px;
  background: rgba(10, 10, 12, .9);
}
.nav-fallback a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none;
  font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.nav-fallback a:first-child { color: #fff; letter-spacing: .32em; }

/* Mobile overlay menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: auto;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 108px var(--gutter) 32px;
  visibility: hidden; opacity: 0;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-overlay.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease), visibility 0s; }
.menu-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(201, 169, 110, .12), transparent 60%),
    linear-gradient(180deg, rgba(6, 6, 7, .9), rgba(6, 6, 7, .98)),
    url("/assets/img/marble.jpg") center / cover no-repeat;
  background-color: #060607;
}
.menu-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; flex: 1; max-width: 640px; width: 100%; margin: 0 auto; }
.menu-list { margin: 0; padding: 0; list-style: none; }
.menu-list li, .menu-foot {
  opacity: 0; transform: translate3d(0, 36px, 0);
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.menu-overlay.is-open .menu-list li, .menu-overlay.is-open .menu-foot {
  opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.menu-link {
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0; min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 300; font-size: clamp(36px, 10vw, 60px); line-height: 1.12;
  letter-spacing: -.01em; color: var(--heading); text-decoration: none;
}
.menu-link:hover { color: #fff; }
.menu-link:hover span:last-child { transform: translateX(6px); }
.menu-link span:last-child { transition: transform .5s var(--ease); }
.menu-n { flex: none; width: 2.4em; font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--gold); }
.menu-link[aria-current="page"] { color: var(--gold-text); }
.menu-foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 961px) { .menu-overlay { display: none; } }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: #050506; opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-io);
}
.curtain .mark { width: 44px; height: 40px; opacity: 0; transform: scale(.9); transition: opacity .4s .1s, transform .6s var(--ease); }
.curtain.is-on { opacity: 1; pointer-events: auto; }
.curtain.is-on .mark { opacity: .9; transform: none; }

/* ---------- Reveal initial states (only when motion runs) ---------- */
html.js-motion [data-reveal]:not([data-reveal="stagger"]):not(.is-in) { opacity: 0; }
html.js-motion [data-reveal="stagger"] > :not(.is-in) { opacity: 0; }
/* Failsafe: if site.js never boots, show everything after a moment */
html.js-motion:not(.motion-ready) [data-reveal]:not([data-reveal="stagger"]):not(.is-in),
html.js-motion:not(.motion-ready) [data-reveal="stagger"] > :not(.is-in) {
  animation: reveal-failsafe .6s 2.5s forwards;
}
@keyframes reveal-failsafe { to { opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #050506; }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px;
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: 32px;
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 360px; }
.foot-tag { font-size: 15px; line-height: 1.65; color: var(--muted-2); }
.foot-h { margin-bottom: 12px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col a {
  display: inline-flex; align-items: center; min-height: 40px; color: #A3A3AA; text-decoration: none; font-size: 15px;
}
.foot-col a:hover, .foot-col a[aria-current="page"] { color: #fff; }
.foot-word {
  font-family: var(--display); font-weight: 300; font-size: clamp(64px, 17vw, 260px); line-height: .9;
  letter-spacing: .06em; text-align: center; white-space: nowrap; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  padding: 8px 0 0; margin-bottom: -.12em;
}
.foot-legal {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: #8A8A91;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #A3A3AA; text-decoration: none; }
.to-top:hover { color: #fff; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
.site-footer:not(:has(.foot-grid)) { padding: 32px var(--gutter); font-size: 13px; color: #8A8A91; }

/* ---------- Backgrounds ---------- */
.bg-marble {
  position: absolute; inset: -14% 0; z-index: -2; pointer-events: none;
  background: url("/assets/img/marble.jpg") center / cover no-repeat;
  opacity: .4; will-change: transform;
}
.bg-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 85% 0%, rgba(201, 169, 110, .12), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 8, .55) 0%, rgba(7, 7, 8, .3) 40%, var(--bg) 100%);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(150px, 19vw, 230px) 0 clamp(64px, 8vw, 112px);
}
.page-hero .stack { max-width: 880px; gap: 24px; }
.page-hero .h1 { font-size: clamp(46px, 7.4vw, 104px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero-art { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.page-hero-art img {
  display: block; width: 100%; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art { max-width: 280px; justify-self: start; }
}

/* ---------- Home: cinematic hero (#hero3d) ---------- */
.hero3d { position: relative; background: #050506; }
.hero3d-stage {
  position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 140px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 80px;
}
.hero3d-canvas {
  position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none;
}
html.has-3d .hero3d-canvas { opacity: 1; }
.hero3d-fallback {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 0;
  display: block; width: 100%; max-width: 440px; height: auto; mix-blend-mode: lighten;
  transition: opacity 1s var(--ease);
}
html.has-3d .hero3d-fallback { opacity: 0; visibility: hidden; }
.hero3d-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 45%, rgba(5, 5, 6, .8) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, .55) 0%, transparent 22%, transparent 55%, rgba(5, 5, 6, .92) 100%);
}
.hero3d-chapter { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero3d-chapter[data-chapter="1"] { grid-column: 1; grid-row: 1; }
.hero3d-chapter:not([data-chapter="1"]) { display: none; }
.hero3d-chapter .lead { max-width: 520px; }
.hero3d-hint, .hero3d-rail { display: none; }
.hero-date {
  display: inline-flex; align-items: center; gap: 12px; min-height: 36px; padding: 0 16px 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 7, 8, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero-date b { font-weight: 500; color: var(--heading); font-variant-numeric: tabular-nums; }
.hero-date .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 169, 110, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 169, 110, .55); } 70% { box-shadow: 0 0 0 10px rgba(201, 169, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); } }
.hero-steps { display: grid; }
.hero-step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; }
.hero-step .n { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.hero-step .h2 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 300; }
@media (max-width: 860px) {
  .hero3d-stage { grid-template-columns: minmax(0, 1fr); padding-top: 112px; padding-bottom: 64px; gap: 28px; align-content: center; }
  .hero3d-fallback { grid-column: 1; grid-row: 1; max-width: 260px; justify-self: start; }
  .hero3d-chapter[data-chapter="1"] { grid-row: 2; }
}

/* Motion mode: tall scroll track, sticky stage, chapters as overlays */
html.js-motion .hero3d { height: 400vh; }
html.js-motion .hero3d-stage {
  position: sticky; top: 0; display: block; height: 100vh; height: 100svh; min-height: 0; padding: 0;
}
html.js-motion .hero3d-fallback {
  position: absolute; left: 50%; top: 50%; width: auto; max-width: none;
  height: min(74svh, 118vw);
  transform: translate3d(-50%, -50%, 0) scale(calc(1.32 - var(--hero-p, 0) * .42));
  will-change: transform;
  transition: opacity 1s var(--ease);
}
html.js-motion .hero3d-chapter {
  position: absolute; z-index: 2; display: flex;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: clamp(48px, 11vh, 120px);
  max-width: 620px; gap: 20px;
  opacity: 0; transform: translate3d(0, 40px, 0); pointer-events: none;
  transition: opacity .8s var(--ease), transform 1.1s var(--ease);
}
html.js-motion .hero3d-chapter.is-active,
html.js-motion:not(.motion-ready) .hero3d-chapter[data-chapter="1"] { opacity: 1; transform: none; pointer-events: auto; }
html.js-motion .hero3d-chapter[data-chapter="2"] { left: auto; text-align: right; align-items: flex-end; max-width: 560px; }
html.js-motion .hero3d-chapter[data-chapter="3"] { left: auto; max-width: 460px; top: 0; bottom: 0; justify-content: center; }
html.js-motion .hero3d-chapter[data-chapter="4"] { left: 0; right: 0; margin: 0 auto; max-width: 760px; padding: 0 var(--gutter); align-items: center; text-align: center; }
html.js-motion .hero3d-chapter[data-chapter="1"] > * { animation: rise 1.2s var(--ease) both; }
html.js-motion .hero3d-chapter[data-chapter="1"] > :nth-child(2) { animation-delay: .12s; }
html.js-motion .hero3d-chapter[data-chapter="1"] > :nth-child(3) { animation-delay: .24s; }
html.js-motion .hero3d-chapter[data-chapter="1"] > :nth-child(4) { animation-delay: .36s; }
html.js-motion .hero3d-chapter[data-chapter="1"] > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
html.js-motion .hero-step { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .6s var(--ease), transform .8s var(--ease); }
html.js-motion .hero-step.is-active { opacity: 1; transform: none; }
/* hero3d.js scrubs chapters/steps with inline GSAP styles once 3D renders: no CSS easing on top */
html.has-3d .hero3d-chapter, html.has-3d .hero-step { transition: none; pointer-events: auto; }
html.has-3d .hero3d-chapter[data-chapter="1"] > * { animation: none; }
html.js-motion .hero3d-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-2);
  transition: opacity .5s;
}
.hero3d-hint i { display: block; width: 1px; height: 36px; overflow: hidden; background: rgba(255, 255, 255, .15); position: relative; }
.hero3d-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--gold); animation: hint 2s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
html.js-motion .hero3d.is-scrolled .hero3d-hint { opacity: 0; }
html.js-motion .hero3d-rail {
  position: absolute; z-index: 2; right: max(16px, calc((100vw - var(--wrap)) / 2 - 24px)); top: 50%;
  display: block; width: 1px; height: 120px; margin-top: -60px; background: rgba(255, 255, 255, .12);
}
.hero3d-rail span { position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0; transform: scaleY(var(--hero-p, 0)); }
@media (max-width: 860px) {
  html.js-motion .hero3d-chapter { bottom: clamp(32px, 7vh, 64px); }
  html.js-motion .hero3d-chapter[data-chapter="2"],
  html.js-motion .hero3d-chapter[data-chapter="3"] { left: var(--gutter); right: var(--gutter); text-align: left; align-items: flex-start; }
  html.js-motion .hero3d-chapter[data-chapter="3"] { top: auto; bottom: clamp(32px, 7vh, 64px); justify-content: flex-end; }
  html.js-motion .hero3d-chapter .lead { font-size: 16px; }
  html.js-motion .hero3d-hint { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  html.js-motion .hero3d-chapter[data-chapter="1"] { bottom: calc(clamp(32px, 7vh, 64px) + 56px); }
  html.js-motion .hero3d-rail { right: 10px; height: 80px; margin-top: -40px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  html.js-motion .hero3d-chapter .lead { display: none; }
}
/* Short screens: tighter CTA so hero3d.js can frame the settled logo above it at a decent size */
@media (max-height: 760px) {
  html.js-motion .hero3d-chapter[data-chapter="4"] { bottom: 28px; gap: 14px; }
  html.js-motion .hero3d-chapter[data-chapter="4"] .lead { display: none; }
}
/* hero3d.js bailed (.hero-static) and site.js never took over (no .motion-ready):
   drop the scroll track and show the static hero instead of a 400vh blank stage */
html.js-motion:not(.motion-ready) .hero3d.hero-static { height: auto; }
html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-stage {
  position: relative; display: grid; height: auto; min-height: 100vh; min-height: 100svh;
  padding: 140px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 80px;
}
html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-fallback {
  position: relative; left: auto; top: auto; width: 100%; max-width: 440px; height: auto; transform: none;
}
html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-chapter[data-chapter="1"] {
  position: relative; left: auto; right: auto; bottom: auto; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-chapter:not([data-chapter="1"]),
html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-hint,
html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-rail { display: none; }
@media (max-width: 860px) {
  html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-stage { padding-top: 112px; padding-bottom: 64px; }
  html.js-motion:not(.motion-ready) .hero3d.hero-static .hero3d-fallback { max-width: 260px; }
}

/* ---------- Countdown ---------- */
.countdown-sec { text-align: center; }
.countdown-sec .eyebrow { justify-content: center; }
.cd-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 920px; margin: 44px auto 0;
  background: var(--line-2); border: 1px solid var(--line-2);
}
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(22px, 4vw, 44px) 4px; background: #0B0B0D; }
.cd-num { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 8.4vw, 104px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd-label { font-family: var(--display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); }
@media (max-width: 480px) { .cd-label { font-size: 10.5px; letter-spacing: .14em; } }
.cd-note { margin-top: 24px; }
.countdown-sec .h2 { margin-top: 18px; }
.countdown-sec .cd-out .lead { margin: 20px auto 0; }
.countdown-sec .cd-out .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Triad / pillars grid ---------- */
.tri {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line);
}
.tri > * {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(28px, 3.4vw, 44px); background: var(--bg-2); color: inherit; text-decoration: none;
  transition: background-color .4s;
}
.tri > *::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.tri > a:hover { background: #111114; color: inherit; }
.tri > a:hover::before { transform: scaleX(1); }
.pillar .h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; }
.pillar .more {
  margin-top: auto; padding-top: 14px; font-family: var(--display); font-size: 12.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text);
}
.pillar .more span { display: inline-block; transition: transform .4s var(--ease); }
.pillar:hover .more span { transform: translateX(5px); }
.step-n { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1; color: var(--gold); }

/* ---------- Generic cards, rows, quote, CTA ---------- */
.card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color .3s;
}
a.card:hover { border-color: var(--line-gold); color: inherit; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows li > :first-child { flex: 0 0 200px; font-family: var(--display); font-size: 18px; color: var(--heading); }
.rows li > :last-child { flex: 1 1 240px; font-size: 15.5px; line-height: 1.6; color: var(--muted-2); }
.quote { position: relative; margin: 8px 0; padding: 8px 0 8px 28px; border-left: 1px solid var(--gold); }
.quote p { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 3vw, 36px); line-height: 1.35; color: var(--heading); }
.quote footer { margin-top: 14px; font-family: var(--display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.bar .stack { max-width: 640px; gap: 12px; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-top: 1px solid var(--line); }
.cta-band .bg-marble { opacity: .32; }
.cta-band .bg-glow { background: radial-gradient(60% 70% at 50% 50%, rgba(7, 7, 8, .2), var(--bg) 100%); }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 900px; }
.cta-band .h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 300; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.member-box {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 5vw, 60px); border: 1px solid var(--line-gold);
  background: linear-gradient(135deg, rgba(201, 169, 110, .07), transparent 55%), var(--bg-2);
}
.member-box .stack { max-width: 620px; gap: 12px; }
.tba {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2);
  font-family: var(--display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02); font-size: 14.5px; line-height: 1.6; color: var(--muted-2);
}
.notice::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; transform: rotate(45deg); background: var(--gold); }

/* ---------- News layout + filters ---------- */
.news-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.news-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }
.news-aside .feed-filters { flex-direction: column; align-items: stretch; }
.news-aside .chip { justify-content: flex-start; }
@media (max-width: 960px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-aside { position: static; gap: 16px; }
  .news-aside .feed-filters {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
  }
  .news-aside .feed-filters::-webkit-scrollbar { display: none; }
  .news-aside .chip { flex: none; }
  .news-aside .aside-note { display: none; }
}
.feed-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--muted);
  font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; transition: color .25s, border-color .25s, background-color .25s;
}
.chip:hover { color: #fff; border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--metal); color: #0A0A0B; border-color: transparent; }
.chip .count { font-size: 11px; letter-spacing: .08em; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---------- Feed + post cards ---------- */
.feed { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.feed--stream { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .35s, box-shadow .35s;
  scroll-margin-top: 110px;
}
.post-card:hover { border-color: var(--line-2); }
.post-card:target, .post-card.is-target { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 169, 110, .25), 0 20px 60px rgba(0, 0, 0, .4); }
.post-card > * { min-width: 0; }
.post-card--featured {
  border-color: rgba(201, 169, 110, .38);
  background: linear-gradient(145deg, rgba(201, 169, 110, .07), transparent 50%), var(--surface-2);
}
.post-card--featured::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 110, 0));
}
.feed:not(.feed--stream) .post-card { height: 100%; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.post-type {
  --tag: var(--gold-text);
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  font-family: var(--display); font-size: 11.5px; font-weight: 500; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tag);
}
.post-type::before { content: ""; flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: currentColor; }
.post-type--news { --tag: var(--tag-news); }
.post-type--finding { --tag: var(--tag-finding); }
.post-type--easter-egg { --tag: var(--tag-easter); }
.post-type--event { --tag: var(--tag-event); }
.post-type--community { --tag: var(--tag-community); }
.post-date { margin: 0; font-family: var(--display); font-size: 11.5px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.post-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.25; color: var(--heading); text-wrap: balance; }
.feed--stream .post-title { font-size: clamp(22px, 2.6vw, 30px); }
.feed--stream .post-card--featured .post-title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--gold-hi); }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.feed--stream .post-title a::after { display: none; }
.post-excerpt { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.post-body { font-size: 16px; line-height: 1.75; color: var(--muted-2); }
.post-body p { margin: 0 0 1em; }
.post-body p:last-child { margin-bottom: 0; }
.post-source { margin: 0; font-size: 13.5px; color: var(--faint); }
.post-source a { position: relative; z-index: 1; }
.post-actions {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line);
}
.post-actions > :is(a, button):not(.btn) {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--muted);
  font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: color .25s, border-color .25s;
}
.post-actions > :is(a, button):not(.btn):hover { color: #fff; border-color: var(--line-3); }
.post-actions .is-done { color: var(--gold-text); border-color: var(--line-gold); }
.post-card .yt-lite, .post-card .spoiler, .post-card .poll { position: relative; z-index: 1; }
.post-card .poll { padding: clamp(18px, 2.4vw, 26px); background: rgba(0, 0, 0, .28); border-color: var(--line); }
.post-card .poll-q { font-size: 19px; }
.feed-empty, .gallery-empty, .empty-state {
  grid-column: 1 / -1; column-span: all; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: clamp(40px, 6vw, 72px) 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--muted-2); font-size: 15px; line-height: 1.6;
}
.feed-empty strong, .gallery-empty strong, .empty-state strong { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--heading); }

/* Loading skeleton */
.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, .04); border-radius: var(--radius); min-height: 16px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Spoiler ---------- */
.spoiler { position: relative; min-height: 150px; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.spoiler > :not(.spoiler-btn) {
  filter: blur(14px); opacity: .5; user-select: none; -webkit-user-select: none; pointer-events: none;
  transition: filter .7s var(--ease), opacity .7s var(--ease);
}
.spoiler::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border: 1px solid var(--line-2);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px), rgba(7, 7, 8, .4);
  transition: opacity .5s;
}
.spoiler-btn {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 22px; width: max-content; max-width: calc(100% - 24px);
  border: 1px solid var(--line-gold); border-radius: 24px; background: rgba(7, 7, 8, .82); color: var(--heading);
  font-family: var(--display); font-size: 11.5px; font-weight: 500; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; text-align: left;
  cursor: pointer; transition: border-color .3s, background-color .3s;
}
.spoiler-btn::before { content: ""; flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: var(--tag-easter); }
.spoiler-btn::after { content: ""; position: absolute; inset: -999px; }
.spoiler-btn:hover { border-color: var(--gold); background: rgba(14, 14, 16, .92); }
.spoiler.is-open { min-height: 0; overflow: visible; }
.spoiler.is-open::before { opacity: 0; }
.spoiler.is-open > :not(.spoiler-btn) { filter: none; opacity: 1; user-select: auto; -webkit-user-select: auto; pointer-events: auto; }
.spoiler.is-open .spoiler-btn { display: none; }
.spoiler > * + * { margin-top: 14px; }

/* ---------- Lite YouTube ---------- */
.yt-lite {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: #000 center / cover no-repeat; color: #fff; cursor: pointer;
}
.yt-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .5s, transform 1.4s var(--ease); }
.yt-lite:hover img { opacity: 1; transform: scale(1.03); }
.yt-lite::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: linear-gradient(180deg, #F7F7F8 0%, #C9C9CE 52%, #8C8C93 100%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55), inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0, 0, 0, .25);
  transition: transform .6s var(--ease);
}
.yt-lite::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 3; width: 22px; height: 26px; margin: -13px 0 0 -8px;
  background: #0A0A0B; clip-path: polygon(0 0, 100% 50%, 0 100%); pointer-events: none;
}
.yt-lite:hover::before, .yt-lite:focus-visible::before { transform: scale(1.08); }
.yt-lite.is-playing { cursor: auto; }
.yt-lite.is-playing::before, .yt-lite.is-playing::after { display: none; }
.yt-lite iframe { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; }
@media (max-width: 480px) { .yt-lite::before { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .yt-lite::after { width: 18px; height: 21px; margin: -10.5px 0 0 -6px; } }
.yt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.yt-meta strong, .yt-meta .yt-title { font-weight: 500; color: var(--muted); }

/* ---------- Polls ---------- */
.polls-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
.poll {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0;
  padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
}
.poll > .eyebrow, .poll-label { margin-bottom: 2px; }
.poll-q { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; color: var(--heading); text-wrap: balance; }
.poll :is(ul, ol) { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.poll-opt {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 54px; padding: 12px 18px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .015); color: var(--text);
  font: 500 15.5px/1.35 var(--body); text-align: left; cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.poll-opt:hover { border-color: var(--line-3); }
.poll-opt > :not(.poll-bar) { position: relative; z-index: 1; }
.poll-bar {
  position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .1));
  transform-origin: 0 50%; transform: scaleX(calc(var(--pct, 0) / 100));
  transition: transform 1.1s var(--ease);
}
.poll-pct { flex: none; margin-left: auto; font-family: var(--display); font-size: 14px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(201, 169, 110, .06); box-shadow: inset 3px 0 0 var(--gold); }
.poll-opt[aria-pressed="true"] .poll-bar { background: linear-gradient(90deg, rgba(201, 169, 110, .2), rgba(201, 169, 110, .38)); }
.poll-opt[aria-pressed="true"] .poll-pct { color: var(--gold-text); }
.poll-opt:disabled, .poll-opt[aria-disabled="true"] { cursor: default; }
.poll-opt:disabled:hover { border-color: var(--line-2); }
.poll.is-voted .poll-bar { background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .12)); }
.poll.is-voted .poll-opt[aria-pressed="true"] .poll-bar { background: linear-gradient(90deg, rgba(201, 169, 110, .2), rgba(201, 169, 110, .4)); }
.poll.is-loading .poll-opt { opacity: .6; cursor: progress; }
.poll.is-loading::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: poll-load 1.1s var(--ease-io) infinite;
}
@keyframes poll-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.poll-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 4px 0 0; font-size: 13px; color: var(--faint); }
.poll-status { min-height: 1.5em; margin: 0; font-size: 14px; line-height: 1.5; color: var(--gold-text); }
.poll-status.is-error { color: var(--danger); }

/* ---------- Community gallery ---------- */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery > .gallery-item { display: inline-block; width: 100%; vertical-align: top; }
@media (max-width: 640px) { .gallery { columns: 2 140px; column-gap: 10px; } .gallery > .gallery-item { margin-bottom: 10px; } }
.gallery-item {
  position: relative; display: block; margin: 0 0 16px; break-inside: avoid; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-solid);
  transition: border-color .35s;
}
.gallery-item:hover { border-color: var(--line-2); }
.gallery-item > img, .gallery-item > a > img, .gallery-item > button > img { display: block; width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.gallery-item:hover > img, .gallery-item:hover > a > img, .gallery-item:hover > button > img { transform: scale(1.035); }
.gallery-item > a, .gallery-item > button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery-item .yt-lite { border: 0; border-radius: 0; }
.gallery-cap {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px;
  background: var(--surface-solid); font-size: 14px; line-height: 1.5; color: var(--muted);
}
.gallery-cap strong, .gallery-cap .handle {
  font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text);
}
.gallery-tag {
  position: absolute; left: 10px; top: 10px; z-index: 5; pointer-events: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
  border-radius: 999px; background: rgba(7, 7, 8, .75); font-family: var(--display); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}
@media (max-width: 640px) { .gallery-cap { padding: 10px 10px 12px; font-size: 13px; } }

/* ---------- Forms ---------- */
.submit-form { display: grid; gap: 24px; min-width: 0; }
.form-card { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label:not(.check):not(.dropzone), .field > legend, .label {
  padding: 0; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--heading);
}
.label-opt { color: var(--faint); letter-spacing: .08em; text-transform: none; font-family: var(--body); font-weight: 400; font-size: 13px; }
.input,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px; margin: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .025); color: var(--text);
  font: 16px/1.5 var(--body); transition: border-color .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.input:hover, .field input:hover, .field textarea:hover { border-color: var(--line-3); }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: rgba(255, 255, 255, .04); }
::placeholder { color: #85858C; opacity: 1; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.field-hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.field-error { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--danger); }
.field-error:empty { display: none; }
.field-count { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 15px; line-height: 1.55; color: var(--muted); }
.check input {
  -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center;
  width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--line-3); border-radius: var(--radius);
  background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.check input::before {
  content: ""; width: 12px; height: 12px; background: #0A0A0B; transform: scale(0); transition: transform .2s var(--ease);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::before { transform: scale(1); }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { min-height: 1.5em; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.form-status.is-success { color: var(--ok); }
.form-status.is-error { color: var(--danger); }
.form-status.is-pending { color: var(--gold-text); }

/* Tabs (radio segmented control or buttons with aria-selected) */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255, 255, 255, .02);
}
.tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 104px; padding: 0 20px; border: 0; border-radius: 1px; background: transparent; color: var(--muted);
  font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: background-color .3s, color .3s;
}
.tab:hover { color: #fff; }
.tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tab:has(input:checked), .tab[aria-selected="true"], .tab[aria-pressed="true"], .tab.is-active { background: var(--metal); color: #0A0A0B; }
.tab:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.tab .count { font-size: 11px; letter-spacing: .06em; opacity: .7; }
@media (max-width: 400px) { .tabs { display: flex; } .tab { flex: 1 1 0; min-width: 0; padding: 0 12px; } }

/* Photo / clip panels toggle without JS via :has() */
.submit-form:has(input[name="kind"][value="photo"]:checked) [data-kind="clip"],
.submit-form:has(input[name="kind"][value="clip"]:checked) [data-kind="photo"] { display: none; }

/* Dropzone + preview */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 210px; padding: 32px 20px; text-align: center; cursor: pointer;
  border: 1px dashed rgba(201, 169, 110, .5); border-radius: var(--radius); background: rgba(201, 169, 110, .03);
  transition: border-color .3s, background-color .3s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--gold); background: rgba(201, 169, 110, .08); }
.dropzone.is-dragover { border-style: solid; }
.dropzone:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-icon { width: 40px; height: 40px; color: var(--gold); }
.dropzone-title { font-family: var(--display); font-size: 18px; color: var(--heading); }
.dropzone-title u { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.dropzone-hint { font-size: 13.5px; color: var(--faint); }
.preview { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: #000; }
.preview:empty { display: none; }
.preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.preview :is(button, .preview-remove) {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line-3); border-radius: 999px; background: rgba(7, 7, 8, .82); color: var(--text);
  font-family: var(--display); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
}
.preview :is(button, .preview-remove):hover { border-color: var(--gold); color: #fff; }
.preview-meta, .preview figcaption { padding: 10px 14px; font-size: 13px; color: var(--faint); background: var(--surface-solid); }
.guidelines { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.guidelines li { display: flex; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.guidelines li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; transform: rotate(45deg); background: var(--gold); }
.guidelines b { color: var(--heading); font-weight: 500; }

/* ---------- Admin ---------- */
.admin-login {
  display: grid; gap: 20px; max-width: 440px; margin: 0 auto; padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
}
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-queue { display: grid; gap: 16px; }
.admin-item {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.admin-item > :first-child img, .admin-item .admin-media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; border: 1px solid var(--line); }
.admin-item .admin-media { display: grid; place-items: center; color: var(--faint); font-size: 13px; text-align: center; padding: 12px; }
.admin-item h3, .admin-item .admin-title { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--heading); }
.admin-item p { font-size: 14.5px; line-height: 1.6; color: var(--muted-2); overflow-wrap: anywhere; }
.admin-item dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0; font-size: 13.5px; }
.admin-item dt { color: var(--faint); }
.admin-item dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 640px) { .admin-item { grid-template-columns: minmax(0, 1fr); } }
.badge {
  display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending { color: var(--gold-text); border-color: var(--line-gold); }
.badge--approved { color: var(--ok); border-color: rgba(169, 216, 184, .4); }
.badge--rejected { color: var(--danger); border-color: rgba(241, 167, 167, .4); }
.badge--photo, .badge--clip { color: var(--muted); }

/* ---------- 404 ---------- */
.lost { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 140px 0 80px; }
.lost .stack { max-width: 720px; gap: 24px; }
.lost-code { font-family: var(--display); font-weight: 300; font-size: clamp(110px, 24vw, 280px); line-height: .85; letter-spacing: -.03em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .bg-marble { will-change: auto; }
}
