/* ==========================================================================
   Gays Against Groomers — Dark Neon Spectrum design system
   1. Tokens   2. Base   3. Layout   4. Signature spectrum elements
   5. Components   6. Sections   7. Motion   8. Responsive / a11y
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #08090d;
  --surface: #14151b;
  --surface-2: #1a1c24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --silver: #b4b8c4;
  --dim: #8a8f9e;

  /* Spectrum, sampled from the official logo */
  --s-magenta: #f0407f;
  --s-violet: #9b5cf6;
  --s-indigo: #5f62f2;
  --s-blue: #3f8cff;
  --s-cyan: #2fd0ea;
  --s-green: #5fe08a;
  --s-yellow: #ffd23a;
  --s-orange: #ff8a34;
  --spectrum: linear-gradient(90deg, var(--s-magenta), var(--s-violet), var(--s-indigo), var(--s-blue), var(--s-cyan), var(--s-green), var(--s-yellow), var(--s-orange), var(--s-magenta));

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.55rem + 2.2vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 6rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-stretch: 84%; font-weight: 750;
  line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance;
}
h1 { font-size: var(--step-4); font-stretch: 78%; font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; }
h4 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }
::selection { background: rgba(155, 92, 246, 0.45); }
:focus-visible { outline: 2px solid var(--s-cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; overflow: clip; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--raised { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* Same content order in the page (heading first, for phones and screen readers), shown form-left on wide screens */
.split--swap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--swap > :first-child { order: 2; }
.stack > * + * { margin-top: 1rem; }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1.4rem;
  font: 600 var(--step--1)/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver);
}
.eyebrow::before { content: ""; flex: none; width: 26px; height: 20px; background: url(/assets/img/logo-mark-sm.png) center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(47, 208, 234, 0.35)); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--silver); max-width: 56ch; }
.muted { color: var(--silver); }
.dim { color: var(--dim); font-size: var(--step--1); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 16ch; }

/* 4. SIGNATURE SPECTRUM ELEMENTS ------------------------------------------- */
/* Light trail: hairline spectrum with a soft atmospheric glow */
.trail { position: relative; height: 1px; border: 0; margin: 0; background: var(--spectrum); background-size: 200% 100%; animation: drift 40s linear infinite; opacity: 0.85; }
.trail::after { content: ""; position: absolute; inset: -7px 6%; background: inherit; background-size: inherit; animation: inherit; filter: blur(12px); opacity: 0.55; }
.trail--short { width: min(180px, 40%); margin: 1.6rem 0; }
.trail--fade { -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
@keyframes drift { to { background-position: -200% 0; } }

/* Ambient light: blurred, cinematic, low-intensity */
.ambient { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(90px); opacity: 0.22; will-change: transform; }
.ambient--a { width: 46vw; height: 30vw; max-width: 720px; max-height: 460px; background: radial-gradient(closest-side, var(--s-violet), transparent 70%), radial-gradient(closest-side at 70% 60%, var(--s-blue), transparent 70%); }
.ambient--b { width: 40vw; height: 26vw; max-width: 620px; max-height: 400px; background: radial-gradient(closest-side at 30% 50%, var(--s-magenta), transparent 70%), radial-gradient(closest-side at 75% 50%, var(--s-orange), transparent 70%); opacity: 0.16; }
.ambient--c { width: 44vw; height: 26vw; max-width: 680px; max-height: 400px; background: radial-gradient(closest-side at 30% 50%, var(--s-cyan), transparent 70%), radial-gradient(closest-side at 70% 50%, var(--s-green), transparent 70%); opacity: 0.14; }
.section > .wrap { position: relative; z-index: 1; }

/* Illuminated edge: 1px gradient border via mask; brightens on hover */
.edge { position: relative; border-radius: var(--radius); background: var(--surface); isolation: isolate; }
.edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, var(--s-magenta), var(--s-violet), var(--s-blue), var(--s-cyan), var(--s-green), var(--s-yellow), var(--s-orange));
  background-size: 220% 220%; background-position: var(--edge-pos, 0% 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.42; transition: opacity 0.5s var(--ease), background-position 1.2s var(--ease);
}
.edge::after {
  content: ""; position: absolute; inset: 8px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(135deg, var(--s-violet), var(--s-cyan), var(--s-orange)); filter: blur(28px); opacity: 0; transition: opacity 0.6s var(--ease);
}
a.edge:hover::before, .edge:focus-within::before, .edge.is-lit::before { opacity: 0.95; --edge-pos: 100% 50%; }
a.edge:hover::after, .edge.is-lit::after { opacity: 0.2; }
.edge--quiet::before { background: linear-gradient(135deg, var(--line-strong), var(--line)); opacity: 1; }
a.edge--quiet:hover::before { background: linear-gradient(135deg, var(--s-magenta), var(--s-violet), var(--s-blue), var(--s-cyan), var(--s-green), var(--s-yellow), var(--s-orange)); }

/* Glowing edge: full animated spectrum border with a soft halo */
.edge--glow::before { background: var(--spectrum); background-size: 200% 100%; opacity: 1; padding: 1.5px; animation: drift 10s linear infinite; }
/* The card is always its own layer, with an explicit dark fill between the halo and the content,
   so the halo sits behind the fill from the first frame (no flash while the card fades in) */
.edge--glow { isolation: isolate; background: transparent; }
.edge--glow .glow-fill { position: absolute; inset: 0; border-radius: inherit; background: rgba(16, 17, 22, 0.56); z-index: -1; pointer-events: none; }
.edge--glow::after { inset: -2px; z-index: -2; background: var(--spectrum); background-size: 200% 100%; filter: blur(15px); opacity: 0.28; animation: drift 10s linear infinite; }
.edge--glow:hover::after { opacity: 0.42; }

/* 5. COMPONENTS ------------------------------------------------------------ */
/* Header + navigation */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.site-header.is-stuck { background: rgba(8, 9, 13, 0.78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 1.7vw, 1.8rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: block; padding: 0.5rem 0; font-size: 0.9rem; font-weight: 500; color: var(--silver); transition: color 0.3s; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--spectrum);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); box-shadow: 0 0 10px rgba(155, 92, 246, 0.7);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 26px; height: 8px; translate: -50% 0; background: var(--s-cyan); filter: blur(8px); opacity: 0.7; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-toggle span { position: relative; translate: 0 -3px; }
.nav-toggle span::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { translate: 0 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(90deg); }

/* Buttons */
.btn {
  --pad: 0.85rem 1.4rem; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--pad); border-radius: 999px; border: 0; cursor: pointer; isolation: isolate; min-height: 44px;
  font: 600 0.92rem/1 var(--font-body); letter-spacing: 0.01em; color: var(--text); background: var(--surface); transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: #0d0e13; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 1; pointer-events: none;
  background: var(--spectrum); background-size: 200% 100%; animation: drift 14s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.btn--primary::after { content: ""; position: absolute; inset: 4px 10px; border-radius: inherit; z-index: -1; background: var(--spectrum); background-size: 200% 100%; animation: drift 14s linear infinite; filter: blur(16px); opacity: 0.28; transition: opacity 0.4s; }
.btn--primary:hover::after { opacity: 0.6; }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { background: #fff; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.btn--sm { --pad: 0.6rem 1rem; font-size: 0.85rem; min-height: 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; background: linear-gradient(var(--text), var(--text)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size 0.4s var(--ease); }
.link:hover { background-image: var(--spectrum); }
.card-foot .link { white-space: nowrap; flex-shrink: 0; }
.link .arr { transition: transform 0.35s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* Cards */
.card { display: flex; flex-direction: column; padding: clamp(1.4rem, 2.4vw, 2rem); height: 100%; transition: transform 0.5s var(--ease); }
a.card:hover { transform: translateY(-3px); }
.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p { color: var(--silver); font-size: 0.97rem; }
.card .card-foot { margin-top: auto; padding-top: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--step--1); color: var(--dim); }
.tag { display: inline-flex; align-items: center; gap: 0.45rem; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); margin-bottom: 1rem; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tag, var(--s-cyan)); box-shadow: 0 0 8px var(--tag, var(--s-cyan)); }
.tag[data-kind="commentary"] { --tag: var(--s-violet); }
.tag[data-kind="statement"] { --tag: var(--s-cyan); }
.tag[data-kind="reporting"] { --tag: var(--s-green); }
.tag[data-kind="podcast"] { --tag: var(--s-orange); }
.tag[data-kind="video"] { --tag: var(--s-magenta); }
.tag[data-kind="press"] { --tag: var(--s-yellow); }
.num { font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.14em; color: var(--dim); margin-bottom: 2.4rem; display: block; }

/* Generated cover art for stories without an image */
.cover { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: #0b0c11; margin-bottom: 1.3rem; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.8s; }
a:hover .cover img { transform: scale(1.04); }
.cover--art::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from calc(var(--h, 0) * 1deg) at 60% 55%, var(--s-magenta), var(--s-violet), var(--s-blue), var(--s-cyan), var(--s-green), var(--s-yellow), var(--s-orange), var(--s-magenta)); filter: blur(60px); opacity: 0.24; transition: opacity 0.8s, transform 1.6s var(--ease); }
.cover--art::after { content: ""; position: absolute; left: 8%; right: 8%; top: calc(30% + var(--h, 0) * 0.1%); height: 1px; background: var(--spectrum); box-shadow: 0 0 18px 1px rgba(255, 255, 255, 0.25); transform: rotate(calc(-8deg + var(--h, 0) * 0.04deg)); opacity: 0.8; }
a:hover .cover--art::before { opacity: 0.5; transform: rotate(18deg); }
.cover .mark { position: absolute; right: 1rem; bottom: 1rem; width: 44px; opacity: 0.9; z-index: 1; }
.cover--tall { aspect-ratio: 16 / 9; }

/* Story (news) cards */
.story { display: flex; flex-direction: column; padding: 1rem 1rem 1.4rem; height: 100%; }
.story h3 { font-size: var(--step-1); line-height: 1.15; margin-bottom: 0.5rem; }
.story p { color: var(--silver); font-size: 0.95rem; margin: 0; }
.story .meta, .meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: auto; padding-top: 1.1rem; font-size: 0.8rem; color: var(--dim); }
.story--feature { padding: clamp(1rem, 2vw, 1.5rem); }
.story--feature h3 { font-size: var(--step-3); line-height: 1.02; }
.story--feature p { font-size: var(--step-1); }
.story--wide { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.story--wide .cover { margin: 0; grid-row: 1 / span 5; }
.story--wide > :not(.cover) { grid-column: 2; }
.story--wide .meta { margin-top: 0; }
.story-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: baseline; transition: padding 0.4s var(--ease); }
.story-row:hover { padding-left: 0.6rem; }
.story-row h3 { font-size: var(--step-1); margin: 0 0 0.3rem; }
.story-row p { margin: 0; color: var(--silver); font-size: 0.95rem; }
.story-row time { color: var(--dim); font-size: 0.8rem; white-space: nowrap; }

/* Filters + search */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: 40px; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--silver); font: 500 0.85rem/1 var(--font-body); cursor: pointer; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search input { padding-left: 2.6rem; }
.search svg { position: absolute; left: 0.95rem; top: 50%; translate: 0 -50%; color: var(--dim); pointer-events: none; }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--silver); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
[hidden] { display: none !important; }

/* Forms */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--silver); }
.field .req { color: var(--s-orange); }
input, select, textarea {
  width: 100%; background: #0c0d12; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0.85rem 1rem; font: 400 1rem/1.4 var(--font-body); min-height: 48px; transition: border-color 0.3s, box-shadow 0.3s;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--s-cyan); box-shadow: 0 0 0 3px rgba(47, 208, 234, 0.18), 0 0 24px rgba(155, 92, 246, 0.18); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 0.92rem; }
.form-status[data-state="ok"] { border-color: rgba(95, 224, 138, 0.5); }
.form-status[data-state="error"] { border-color: rgba(255, 138, 52, 0.6); }
.panel { padding: clamp(1.5rem, 3vw, 2.5rem); }

/* Details / FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.5rem 0; font: 700 var(--step-1)/1.2 var(--font-display); font-stretch: 88%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 400 1.2rem/1 var(--font-body); color: var(--silver); transition: transform 0.4s var(--ease), border-color 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--s-cyan); }
.faq .answer { padding: 0 0 1.8rem; color: var(--silver); max-width: 70ch; }

/* Facts / definition strips */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 1.6rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.6rem; }
.facts dd { margin: 0; font: 700 var(--step-1)/1.2 var(--font-display); font-stretch: 88%; }
.facts dd small { display: block; font: 400 0.85rem/1.4 var(--font-body); color: var(--silver); margin-top: 0.3rem; }

.quote { font: 650 var(--step-3)/1.08 var(--font-display); font-stretch: 84%; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.quote em { font-style: normal; color: var(--silver); }
.list-rule { list-style: none; margin: 0; padding: 0; }
.list-rule li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); font: 650 var(--step-1)/1.25 var(--font-display); font-stretch: 88%; }
.list-rule li:last-child { border-bottom: 1px solid var(--line); }
.list-rule li span:first-child { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--dim); padding-top: 0.35rem; }

/* Footer */
.slaps { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; scroll-margin-top: 110px; }
.slaps h2 { font-size: var(--step-2); margin: 0.8rem 0 0.5em; }
.slaps .btn-row { margin-top: 1.4rem; }
.slaps-art { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1rem; align-items: center; }
.slaps-art img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.slaps-tall { transform: rotate(-3deg); }
.slaps-wide { transform: rotate(2deg); }
@media (max-width: 900px) { .slaps { grid-template-columns: minmax(0, 1fr); } .slaps-art { max-width: 440px; } }

.package h3 { font-size: var(--step-1); }
.package-list { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: 0.6rem; font-size: 0.92rem; color: var(--text); }
.package-list li { position: relative; padding-left: 1.2rem; line-height: 1.4; }
.package-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--s-cyan); box-shadow: 0 0 8px var(--s-cyan); }
.kit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.kit h2 { font-size: var(--step-2); margin-bottom: 0.4em; }
.kit p { color: var(--silver); max-width: 52ch; margin: 0; }
.kit .btn-row { margin: 0; }
@media (max-width: 1080px) { .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .packages { grid-template-columns: minmax(0, 1fr); } }

.newsletter-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.newsletter h2 { margin-bottom: 0.4em; }
.newsletter-form .field { margin-bottom: 1.1rem; }
.newsletter-form .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .newsletter-grid { grid-template-columns: minmax(0, 1fr); } }

.support-pop { width: min(92vw, 620px); max-height: 92dvh; padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); color: var(--text); overflow: auto; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(47, 208, 234, 0.12); }
.support-pop::backdrop { background: rgba(4, 5, 8, 0.78); backdrop-filter: blur(4px); }
.support-pop[open] { animation: pop-in 0.45s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.support-pop img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 672; object-fit: cover; background: #0c0d12; }
.support-pop-body { padding: clamp(1.3rem, 3vw, 2rem); text-align: center; }
.support-pop-body h2 { font-size: var(--step-2); margin: 0 0 1.2rem; text-wrap: balance; }
.support-pop-body .btn-row { justify-content: center; margin: 0; }
.support-pop-close { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(8, 9, 13, 0.7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.support-pop-close:hover { background: rgba(8, 9, 13, 0.95); }
@media (prefers-reduced-motion: reduce) { .support-pop[open] { animation: none; } }

.site-footer { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; background: #06070a; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; margin-bottom: 3.5rem; }
.footer-grid h2 { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.2rem; font-stretch: 100%; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.footer-grid li a { color: var(--silver); font-size: 0.95rem; transition: color 0.3s; display: inline-block; padding: 0.35rem 0; }
.footer-grid li a:hover { color: var(--text); }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.4rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8rem; }
.footer-legal p { margin: 0; max-width: 78ch; }

.donor-frame { background: #fff; border-radius: 12px; padding: 0.5rem; margin-top: 1.2rem; overflow: hidden; }
.donor-frame iframe { display: block; border: 0; width: 100%; max-width: 500px; min-width: 250px; margin-inline: auto; }

.tier .amount { font: 800 var(--step-3)/1 var(--font-display); font-stretch: 80%; letter-spacing: -0.03em; margin: 0.4rem 0 1.6rem; color: var(--text); }
.tier .amount span { font: 500 0.95rem/1 var(--font-body); letter-spacing: 0; color: var(--dim); margin-left: 0.35rem; }
.tier .card-foot { padding-top: 0; }
.tier .card-foot .btn { width: 100%; }
.tier--featured { background: linear-gradient(180deg, #1c1e29, var(--surface)); }
.tier--featured .amount { font-size: clamp(2.6rem, 2rem + 2.6vw, 4.2rem); }
.ico { width: 1.05em; height: 1.05em; flex-shrink: 0; display: inline-block; vertical-align: -0.15em; }
.tag--icon::before { display: none; }
.tag--icon { color: var(--text); gap: 0.55rem; }
.tag--icon .ico { width: 18px; height: 18px; }
.channel strong { display: flex; align-items: center; gap: 0.6rem; }
.channel strong .ico { width: 20px; height: 20px; }
.footer-grid li a.with-ico { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-grid .ico { width: 16px; height: 16px; }
.follow-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.card-foot--stack { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.card-foot--stack .btn { width: 100%; }
.btn .ico { width: 15px; height: 15px; }
.follow { padding: clamp(1.2rem, 1.8vw, 1.6rem); }
.follow .card-foot { flex-wrap: wrap; gap: 0.5rem 1rem; }
.follow .card-foot { flex-direction: column; align-items: flex-start; }
.follow .card-foot span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; }
.follow .amount { font: 800 clamp(2.2rem, 1.7rem + 1.6vw, 3.1rem)/1 var(--font-display); font-stretch: 80%; letter-spacing: -0.03em; margin: 0.6rem 0 0.2rem; color: var(--text); }
.follow .follow-text { font: 750 var(--step-1)/1.15 var(--font-display); font-stretch: 86%; letter-spacing: -0.01em; color: var(--text); margin: 0.6rem 0 1.4rem; }
.follow .follow-sub { margin: 0 0 1.4rem; color: var(--dim); font-size: 0.9rem; }
.once { position: relative; overflow: hidden; }
.once h2 { margin-bottom: 0.3em; font-size: var(--step-2); }
.once .lede { font-size: 1rem; }
.once .amounts { margin-top: 1.6rem; gap: 0.7rem; }
.btn--amount { --pad: 0.8rem 1.3rem; font: 700 1.05rem/1 var(--font-display); font-stretch: 88%; min-width: 84px; }
.once-jump { margin: 2rem 0 0; color: var(--silver); }
.amounts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip--amount { display: inline-flex; align-items: center; min-height: 48px; padding: 0.7rem 1.4rem; font: 700 1.05rem/1 var(--font-display); font-stretch: 88%; color: var(--text); }
.is-off { opacity: 0.55; cursor: not-allowed; }

.product-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.picker-bar { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; margin-bottom: 1.5rem; background: rgba(20, 21, 27, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; top: 1.2rem; left: 1.2rem; width: 26px; height: 26px; min-height: 0; padding: 0; z-index: 3; accent-color: var(--s-green); cursor: pointer; }
.pick:has(input:checked)::before { opacity: 1; background: linear-gradient(135deg, var(--s-magenta), var(--s-violet), var(--s-blue), var(--s-cyan), var(--s-green), var(--s-yellow), var(--s-orange)); }

.oppose-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.8rem; }
.oppose-top .num { margin: 0; }
.oppose-ico { height: 32px; width: auto; color: #fff; }

.speaker { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.speaker-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-name { font: 750 var(--step-1)/1.1 var(--font-display); font-stretch: 86%; margin: 0 0 0.3rem; }
.speaker-role { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 0 0 0.55rem; }
.speaker-bio { color: var(--silver); font-size: 0.84rem; line-height: 1.5; margin: 0; }
@media (max-width: 600px) { .speaker { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; } }

/* 6. SECTIONS -------------------------------------------------------------- */
/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hero-stage .glow { filter: blur(34px); opacity: 0.75; }
.hero-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 24% 50%, rgba(8, 9, 13, 0.88), transparent 70%), linear-gradient(180deg, rgba(8, 9, 13, 0.5), transparent 25%, transparent 70%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 11ch; margin-bottom: 0.35em; }
.hero-logo { position: relative; justify-self: end; width: min(100%, 440px); }
.hero-logo::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 9, 13, 0.92) 45%, transparent); z-index: -1; }
.hero-logo img { width: 100%; position: relative; }
/* Animated logo: slow float, breathing spectrum glow, and a light sweep confined to the logo's own shape */
.about-logo { width: min(100%, 360px); }
.about-logo img { width: 100%; position: relative; }
@media (max-width: 900px) { .about-logo { width: 170px; } }
.logo-anim { position: relative; animation: logo-float 9s ease-in-out infinite; will-change: transform; }
.logo-anim::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/img/logo-mark-sm.png) center / contain no-repeat; filter: blur(34px) saturate(140%); opacity: 0.35; animation: logo-breathe 6s ease-in-out infinite; }
.logo-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask: url(/assets/img/logo-mark.png) center / contain no-repeat; mask: url(/assets/img/logo-mark.png) center / contain no-repeat; }
.logo-sheen::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, 0.7) 50%, transparent 56%); transform: translateX(-75%); animation: logo-sheen 7s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes logo-float { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }
@keyframes logo-breathe { 0%, 100% { opacity: 0.28; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.06); } }
@keyframes logo-sheen { 0% { transform: translateX(-75%); } 38%, 100% { transform: translateX(75%); } }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); display: grid; justify-items: center; gap: 0.6rem; }
.hero-scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--s-cyan), transparent); animation: drop 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Page hero (interior) */
.page-hero { position: relative; padding: clamp(9rem, 16vw, 13rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 1.8rem + 4.4vw, 5.2rem); max-width: 14ch; }
.page-hero .ambient { top: -30%; right: -8%; }
.crumbs { font-size: 0.8rem; color: var(--dim); margin-bottom: 1.6rem; display: flex; gap: 0.5rem; }
.crumbs a:hover { color: var(--text); }

/* Feature blocks */
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.plinth { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.plinth img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.channel { background: var(--bg); padding: 1.6rem; display: grid; gap: 0.3rem; transition: background 0.4s; position: relative; }
.channel:hover { background: var(--surface); }
.channel::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 1px; background: var(--spectrum); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.channel:hover::after { transform: scaleX(1); }
.channel strong { font: 700 var(--step-1)/1.1 var(--font-display); font-stretch: 86%; }
.channel span { color: var(--dim); font-size: 0.85rem; }
.band { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem); text-align: left; }
.band h2 { max-width: 14ch; }
.product { display: flex; flex-direction: column; padding: 0.8rem 0.8rem 1.3rem; height: 100%; }
.product .cover { aspect-ratio: 1; background: #fff; margin-bottom: 1rem; }
.product h3 { font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; margin: 0 0 0.4rem; font-stretch: 100%; }
.product .price { color: var(--silver); font-size: 0.92rem; margin-top: auto; display: flex; justify-content: space-between; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article h1 { font-size: clamp(2.3rem, 1.6rem + 3.6vw, 4.4rem); max-width: none; }
.article .dek { font-size: var(--step-2); line-height: 1.25; color: var(--silver); font-family: var(--font-display); font-stretch: 90%; font-weight: 500; margin-bottom: 2rem; }
.prose { font-size: 1.12rem; line-height: 1.75; color: #dfe1e7; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose a:not(.btn) { background: linear-gradient(var(--spectrum)) 0 100% / 100% 1px no-repeat; }
.prose blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 1px solid var(--s-violet); color: var(--text); font-size: 1.25rem; }
.legal { max-width: 760px; font-size: 1.02rem; }
.legal h2 { font-size: var(--step-1); margin-top: 2.4em; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.5em; }
.footer-legal a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--text); }
.notice { padding: 1.2rem 1.4rem; font-size: 0.92rem; color: var(--silver); border-radius: 12px; border: 1px solid var(--line-strong); }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 2.5rem 0; }
.share span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-right: 0.5rem; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; word-break: break-all; color: var(--silver); }

/* 7. MOTION ---------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s ease both vt-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* The wipe is applied to the image, not its box, so the box stays measurable and the reveal always fires */
.js [data-reveal="img"] { opacity: 1; transform: none; }
.js [data-reveal="img"] img { clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease), transform 0.7s var(--ease), opacity 0.5s; }
.js [data-reveal="img"].is-in img { clip-path: inset(0); }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--w) * 70ms + 120ms); }
.js .split-words.is-in .w > span { transform: none; }

.cursor-light { position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; z-index: 40; opacity: 0; mix-blend-mode: screen; transition: opacity 0.6s;
  background: radial-gradient(closest-side, rgba(155, 92, 246, 0.09), rgba(47, 208, 234, 0.04) 45%, transparent 70%); will-change: transform; }
.cursor-light.is-on { opacity: 1; }

/* 8. RESPONSIVE / ACCESSIBILITY -------------------------------------------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; height: calc(100dvh - 76px); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 3rem; background: var(--bg); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s; }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { font: 700 1.7rem/1.1 var(--font-display); font-stretch: 84%; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav-links a::after { bottom: -1px; }
  .nav-links a[aria-current="page"]::before { display: none; }
  .nav-cta .btn--ghost { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 120px 0 90px; }
  .hero-grid, .split, .split--rev, .split--swap, .feature { grid-template-columns: minmax(0, 1fr); }
  .split--swap > :first-child { order: 0; }
  .hero-logo { order: -1; justify-self: start; width: 150px; }
  .hero-logo::before { display: none; }
  .hero-stage::after { background: linear-gradient(180deg, rgba(8, 9, 13, 0.55), rgba(8, 9, 13, 0.72) 55%, var(--bg)); }
  .hero-stage .glow { opacity: 0.5; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ambient { filter: blur(60px); opacity: 0.14; }
  .cursor-light, .hero-scroll { display: none; }
  .story-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .story--wide { display: flex; }
  .story--wide .cover { margin-bottom: 1.3rem; }
}
@media (max-width: 600px) {
  .g-2, .g-3, .g-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .follow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .product { padding: 0.5rem 0.5rem 0.9rem; }
  .product .cover { margin-bottom: 0.7rem; }
  .product .tag { font-size: 0.62rem; margin-bottom: 0.5rem; }
  .product h3 { font-size: 0.88rem; }
  .product .price { font-size: 0.85rem; flex-wrap: wrap; gap: 0.3rem 0.6rem; }
  .follow { padding: 1rem; }
  .follow .amount { font-size: 1.9rem; }
  .follow .follow-text { font-size: 1rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 28px; }
  .nav-cta .btn { --pad: 0.6rem 0.95rem; font-size: 0.85rem; }
  .trail::after { display: none; }
  .search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js .split-words .w > span { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="img"] img { clip-path: none; }
  .cursor-light, .hero-scroll::after { display: none; }
  @view-transition { navigation: none; }
}
@media (forced-colors: active) { .edge::before, .btn--primary::before { background: CanvasText; opacity: 1; } }
@media print { .site-header, .site-footer, .hero-stage, .ambient, .cursor-light { display: none; } body { background: #fff; color: #000; } }
