:root {
  --q-ink: #111311;
  --q-paper: #f2efe7;
  --q-paper-2: #e7e0d2;
  --q-line: rgba(17, 19, 17, .16);
  --q-gold: #c79a45;
  --q-gold-soft: #e7c77f;
  --q-white: #fffdf8;
  --q-muted: #6f706c;
}

html { scroll-behavior: smooth; }
body { background: var(--q-paper); color: var(--q-ink); }

.site-head {
  background: rgba(17, 19, 17, .96);
  border-bottom-color: rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px);
}
.nav { min-height: 84px; }
.brand img { border-radius: 0; }
.nav-links a { letter-spacing: 0; }
.nav-cta { background: var(--q-gold-soft); color: var(--q-ink); }

.premium-hero {
  min-height: min(740px, calc(100vh - 150px));
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--q-ink);
  color: var(--q-white);
}
.premium-hero-brand::before,
.premium-hero-brand::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.premium-hero-brand::before { background: radial-gradient(circle at 78% 28%, rgba(199,154,69,.16), transparent 24%), repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,.045) 25%); }
.premium-hero-brand::after { inset: 15% 6% auto auto; width: min(30vw, 420px); height: min(30vw, 420px); border: 1px solid rgba(231,199,127,.28); transform: rotate(45deg); }
.premium-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .5fr);
  gap: clamp(48px, 9vw, 148px);
  align-items: end;
  padding-top: clamp(68px, 9vh, 96px);
  padding-bottom: clamp(22px, 4vh, 42px);
}
.premium-hero .eyebrow { color: var(--q-gold-soft); }
.premium-hero h1 {
  max-width: 920px;
  margin: 12px 0 18px;
  font-family: "Songti SC", "Noto Serif SC", STSong, serif;
  font-size: clamp(50px, 5.5vw, 82px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: 0;
}
.premium-hero h1 em { display: block; color: var(--q-gold-soft); font-style: normal; }
.premium-hero-copy { max-width: 760px; color: rgba(255, 253, 248, .79); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.65; }
.premium-hero-index { border-top: 1px solid rgba(255, 255, 255, .36); padding-top: 22px; }
.premium-hero-index small { display: block; color: var(--q-gold-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.premium-hero-index b { display: block; margin: 16px 0 10px; font-family: "Songti SC", STSong, serif; font-size: clamp(24px, 2vw, 30px); font-weight: 500; white-space: nowrap; }
.premium-hero-index span { color: rgba(255, 253, 248, .66); line-height: 1.7; }

.premium-intro { padding: clamp(84px, 11vw, 150px) 0; background: var(--q-paper); }
.premium-intro-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: clamp(54px, 9vw, 148px); align-items: start; }
.premium-intro h2,
.live-proof h2,
.member-route-heading h2,
.data-map-heading h2 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", STSong, serif;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}
.premium-intro-copy { max-width: 760px; }
.premium-intro-copy > p { margin: 0 0 36px; font-size: clamp(20px, 1.6vw, 27px); line-height: 1.75; }
.premium-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--q-line); }
.premium-fact { padding: 22px 18px 0 0; }
.premium-fact b { display: block; color: var(--q-gold); font-family: "Songti SC", STSong, serif; font-size: 42px; font-weight: 500; }
.premium-fact span { color: var(--q-muted); line-height: 1.5; }

.live-proof { padding: clamp(86px, 10vw, 148px) 0; background: var(--q-ink); color: var(--q-white); }
.live-proof-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 54px; }
.live-proof-heading p { max-width: 650px; margin: 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.8; }
.live-editorial { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.live-story { position: relative; overflow: hidden; min-height: 430px; background: #202320; }
.live-story-major { grid-column: span 7; min-height: 650px; }
.live-story-side { grid-column: span 5; }
.live-story-wide { grid-column: 6 / span 7; min-height: 500px; margin-top: -168px; }
.live-story figure,
.live-story img,
.live-story::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.live-story figure { margin: 0; }
.live-story img { object-fit: cover; transition: transform .8s cubic-bezier(.2,.65,.2,1); }
.live-story::after { content: ""; background: rgba(6, 8, 7, .25); pointer-events: none; }
.live-story:hover img { transform: scale(1.025); }
.live-story-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 52px); }
.live-story-meta { display: flex; gap: 16px; align-items: center; color: var(--q-gold-soft); font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; text-transform: uppercase; }
.live-story h3 { margin: 12px 0 8px; font-family: "Songti SC", STSong, serif; font-size: clamp(30px, 3vw, 52px); font-weight: 500; }
.live-story p { max-width: 560px; margin: 0; color: rgba(255,255,255,.74); line-height: 1.65; }
.live-proof-note { display: flex; gap: 18px; align-items: flex-start; max-width: 980px; margin: 34px 0 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.64); line-height: 1.7; }
.live-proof-note b { flex: 0 0 auto; color: var(--q-gold-soft); }

.happening-entry { padding: clamp(70px, 8vw, 110px) 0; background: var(--q-ink); color: var(--q-white); }
.happening-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 8vw, 120px); align-items: end; }
.happening-entry h2 { margin: 8px 0 0; font-family: "Songti SC", STSong, serif; font-size: clamp(42px, 5.4vw, 76px); font-weight: 500; line-height: 1.08; letter-spacing: 0; }
.happening-entry p { max-width: 720px; margin: 0 0 22px; color: rgba(255,255,255,.7); font-size: 19px; line-height: 1.8; }
.happening-entry .text-link { color: var(--q-gold-soft); }

.happening-hero { min-height: min(660px, calc(100vh - 150px)); }
.happening-hero h1 { max-width: 1050px; }
.activity-stream { padding: clamp(82px, 10vw, 140px) 0; background: var(--q-paper); }
.activity-stream-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(44px, 8vw, 120px); align-items: end; }
.activity-stream-head h2 { margin: 8px 0 0; font-family: "Songti SC", STSong, serif; font-size: clamp(42px, 5.4vw, 76px); font-weight: 500; line-height: 1.08; letter-spacing: 0; }
.activity-stream-head p { margin: 0; color: var(--q-muted); font-size: 18px; line-height: 1.8; }
.activity-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 54px 0 84px; padding-top: 22px; border-top: 1px solid var(--q-line); }
.activity-category-nav a { padding: 11px 15px; border: 1px solid var(--q-line); color: var(--q-ink); text-decoration: none; }
.activity-category-nav a:hover { border-color: var(--q-gold); }
.activity-category { scroll-margin-top: 110px; padding: 0 0 clamp(82px, 10vw, 130px); }
.activity-category + .activity-category { padding-top: clamp(70px, 8vw, 110px); border-top: 1px solid var(--q-line); }
.activity-category-heading { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
.activity-category-heading > span { color: var(--q-gold); font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.activity-category-heading h2 { margin: 0 0 8px; font-family: "Songti SC", STSong, serif; font-size: clamp(34px, 4vw, 56px); font-weight: 500; letter-spacing: 0; }
.activity-category-heading p { margin: 0; color: var(--q-muted); line-height: 1.7; }
.activity-group { border-top: 2px solid var(--q-ink); }
.activity-group-header { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 7vw, 100px); padding: 34px 0 40px; align-items: end; }
.activity-group-header h3 { margin: 12px 0 0; font-family: "Songti SC", STSong, serif; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: 0; }
.activity-group-header > p { margin: 0; color: var(--q-muted); line-height: 1.8; }
.activity-group-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--q-gold); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.activity-gallery { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.activity-photo { position: relative; min-height: 330px; margin: 0; overflow: hidden; background: #202320; color: var(--q-white); }
.activity-photo-cover { grid-row: span 2; min-height: 676px; }
.activity-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.activity-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,6,5,.76), transparent 52%); }
.activity-photo figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px; }
.activity-photo figcaption b,
.activity-photo figcaption span { display: block; }
.activity-photo figcaption b { color: var(--q-gold-soft); }
.activity-photo figcaption span { margin-top: 6px; color: rgba(255,255,255,.75); line-height: 1.6; }
.activity-empty { padding: 38px 0 0 96px; border-top: 1px solid var(--q-line); }
.activity-empty b { font-family: "Songti SC", STSong, serif; font-size: 26px; font-weight: 500; }
.activity-empty p { max-width: 620px; color: var(--q-muted); line-height: 1.7; }
.activity-category-dynamic { padding-bottom: 0; }
.pipeline-responsibility { max-width: 920px; margin: 28px 0 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.66); line-height: 1.75; }
.live-ledger { margin-top: 72px; border-top: 1px solid var(--q-line); }
.live-ledger-row { display: grid; grid-template-columns: 150px 1fr 1.15fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--q-line); }
.live-ledger-row time { color: var(--q-gold); font: 700 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.live-ledger-row b { font-size: 20px; }
.live-ledger-row span { color: var(--q-muted); line-height: 1.65; }

.premium-member-hero { position: relative; min-height: min(560px, calc(100vh - 140px)); display: flex; align-items: end; background: var(--q-ink); color: var(--q-white); overflow: hidden; }
.premium-member-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(199,154,69,.18), transparent 28%), repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), rgba(255,255,255,.04) 20%); }
.premium-member-hero::after { content: ""; position: absolute; inset: 0; background: rgba(7, 9, 8, .22); }
.premium-member-hero .gate-shell { position: relative; z-index: 1; padding-top: 68px; padding-bottom: 22px; }
.premium-member-hero h1 { max-width: 900px; font-family: "Songti SC", STSong, serif; font-size: clamp(48px, 5vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: 0; }
.member-title-cont { display: block; }
.premium-member-hero p { max-width: 780px; color: rgba(255,255,255,.72); font-size: 20px; line-height: 1.8; }

.member-route { padding: 88px 0; background: var(--q-paper-2); }
.member-route-heading,
.data-map-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: end; margin-bottom: 44px; }
.member-route-heading p,
.data-map-heading p { margin: 0; color: var(--q-muted); font-size: 18px; line-height: 1.75; }
.member-route-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--q-line); }
.member-route-step { padding: 28px 28px 34px 0; border-right: 1px solid var(--q-line); }
.member-route-step + .member-route-step { padding-left: 28px; }
.member-route-step:last-child { border-right: 0; }
.member-route-step small { color: var(--q-gold); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.member-route-step h3 { margin: 18px 0 12px; font-family: "Songti SC", STSong, serif; font-size: 27px; font-weight: 500; }
.member-route-step p { margin: 0; color: var(--q-muted); line-height: 1.7; }

.member-data-map { padding: 92px 0; background: var(--q-ink); color: var(--q-white); }
.member-data-map .data-map-heading p { color: rgba(255,255,255,.65); }
.data-map-list { border-top: 1px solid rgba(255,255,255,.2); }
.data-map-row { display: grid; grid-template-columns: 120px 1fr 1.15fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.data-map-row b { color: var(--q-gold-soft); font: 700 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.data-map-row h3 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: 26px; font-weight: 500; }
.data-map-row p { margin: 0; color: rgba(255,255,255,.64); line-height: 1.7; }

.gate-card,
.module-card,
.preview-band article,
.access-level,
.status-step { border-radius: 0; box-shadow: none; }
.gate-card { border-color: var(--q-line); }
.member-form input,
.member-form textarea,
.member-form select { border-radius: 0; border-color: rgba(17,19,17,.24); background: #fffdf8; }
.member-form input:focus,
.member-form textarea:focus,
.member-form select:focus { outline: 2px solid var(--q-gold); outline-offset: 2px; }
.btn { border-radius: 0; }

@media (max-width: 1020px) {
  .premium-hero-inner,
  .premium-intro-grid,
  .live-proof-heading,
  .happening-entry-grid,
  .activity-stream-head,
  .activity-group-header,
  .member-route-heading,
  .data-map-heading { grid-template-columns: 1fr; }
  .premium-hero-index { max-width: 420px; }
  .live-story-major,
  .live-story-side { grid-column: span 6; }
  .live-story-wide { grid-column: 1 / -1; margin-top: 0; }
  .member-route-grid { grid-template-columns: repeat(2, 1fr); }
  .member-route-step:nth-child(2) { border-right: 0; }
  .member-route-step:nth-child(n+3) { border-top: 1px solid var(--q-line); }
}

@media (max-width: 760px) {
  .nav { min-height: 70px; }
  .premium-hero { min-height: max(540px, calc(100svh - 150px)); }
  .premium-hero-inner { padding-top: clamp(68px, 10svh, 96px); padding-bottom: 24px; gap: 30px; }
  .premium-hero h1 { font-size: clamp(40px, 10.5vw, 44px); }
  .premium-hero-index { display: none; }
  .premium-intro,
  .activity-stream { padding-top: 32px; }
  .premium-facts { grid-template-columns: 1fr; }
  .premium-fact { padding-bottom: 18px; border-bottom: 1px solid var(--q-line); }
  .live-editorial { display: block; }
  .live-story,
  .live-story-major,
  .live-story-side,
  .live-story-wide { min-height: 480px; margin: 0 0 16px; }
  .live-story-copy { padding: 26px; }
  .live-ledger-row,
  .data-map-row { grid-template-columns: 1fr; gap: 10px; }
  .activity-category-nav { margin-bottom: 58px; }
  .activity-category-heading { grid-template-columns: 44px 1fr; gap: 12px; }
  .activity-gallery { grid-template-columns: 1fr; }
  .activity-photo,
  .activity-photo-cover { min-height: 460px; grid-row: auto; }
  .activity-empty { padding-left: 56px; }
  .member-route-grid { grid-template-columns: 1fr; }
  .member-route-step,
  .member-route-step + .member-route-step { padding: 26px 0; border-right: 0; border-top: 1px solid var(--q-line); }
  .member-route-step:first-child { border-top: 0; }
  .premium-member-hero { min-height: max(540px, calc(100svh - 150px)); }
  .premium-member-hero .gate-shell { padding-top: clamp(68px, 10svh, 96px); padding-bottom: 24px; }
  .premium-member-hero h1 { font-size: clamp(40px, 10.5vw, 44px); }
  .member-title-cont > span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-story img { transition: none; }
  .live-story:hover img { transform: none; }
}
