/* ==========================================================================
   DubaiStudentLife, design system

   Flat colour blocks, strong contrast, clean cards, large friendly type.
   No gradients as decoration, no glow, no glassmorphism, no serif display.
   The only gradients in this file are functional scrims that keep text
   legible over video, which is a legibility tool rather than a style.

   Contrast note: the brand's #7A6FDD reaches 4.08:1 against white, which
   fails AA for button labels at normal size. Solid buttons therefore use
   the brand's own hover value #6D61CC (4.96:1) as the resting colour and
   #7A6FDD on hover, so the palette is unchanged and every label passes.
   ========================================================================== */

:root {
  /* The page ground is true black; the brand navy is kept for raised surfaces,
     so cards read as objects sitting on the page rather than tinting the whole
     screen. Accent hues are unchanged from the identity file. */
  --bg: #000000;
  --surface: #0B0E1A;
  --surface-alt: #111524;
  --primary: #7A6FDD;
  --secondary: #E478A1;
  --accent: #7F8FE2;
  --text: #F4EBE5;
  --muted: #A3A8BF;
  --border: #1C2033;
  --success: #4FBF88;
  --warning: #F2B84B;
  --error: #E96767;

  /* Derived tints, each checked against --bg for text use */
  --primary-ink: #9A90EA;      /* primary as small text */
  --primary-solid: #6D61CC;    /* 4.96:1 with white, button surface */
  --primary-hover: #7A6FDD;
  --surface-hi: #191E31;
  --border-hi: #2A3046;
  --overlay: rgba(0, 0, 0, .78);

  /* One radius, used everywhere. --circle is reserved for things that are
     genuinely round (status dots, avatars); nothing else is a pill. */
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 6px;
  --r-xl: 8px;
  --pill: 6px;
  --circle: 999px;

  --shadow: 0 8px 24px rgba(0, 0, 0, .22);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .38);

  /* Spacing base 8px */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --shell: 1240px;
  /* Horizontal rails bleed off the right edge but must start on the same line
     as the section heading. The 50% resolves against the rail's own width,
     the same box .shell is centred in, so unlike 100vw this stays correct
     when a classic scrollbar is present. */
  --rail-gutter: max(var(--s3), calc(50% - var(--shell) / 2 + var(--s3)));
  --sans: 'DM Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.6rem, 7.2vw, 5.4rem);
  --fs-h1: clamp(2.1rem, 5.2vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3.8vw, 2.75rem);
  --fs-h3: clamp(1.12rem, 1.8vw, 1.35rem);
  --fs-lede: clamp(1.02rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .78rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t: .32s var(--ease);

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;      /* fallback */
  overflow-x: clip;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;      /* fallback */
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

/* Component rules set `display`, which would otherwise beat the [hidden]
   attribute's user-agent `display: none`. Everything toggled by JS relies on
   `hidden`, so this has to win. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--primary-solid); color: #fff; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Sticky chrome would otherwise cover anything scrolled to by an anchor or by
   scrollIntoView, so every likely target reserves room for it. */
:target, .ecard, .erow, section[id], [id] { scroll-margin-top: calc(var(--header-h) + var(--s3)); }
.page-events .ecard { scroll-margin-top: calc(var(--header-h) + 150px); }

/* --------------------------------------------------------------- type --- */

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.022em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }

.lede {
  font-size: var(--fs-lede);
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
  text-wrap: pretty;
}
.h-small {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--s2);
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .04em;
  color: var(--primary-ink);
}
.eyebrow-num {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; padding: 0 7px;
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.live-dot {
  width: 8px; height: 8px; border-radius: var(--circle);
  background: var(--success); flex: none;
  box-shadow: 0 0 0 0 rgba(79, 191, 136, .55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 191, 136, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(79, 191, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 191, 136, 0); }
}

/* ----------------------------------------------------------- structure --- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s3);
}
.section { padding-block: var(--s7); position: relative; }
.section + .section { padding-top: 0; }

.section-head { margin-bottom: var(--s5); max-width: 70ch; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .lede { margin-inline: auto; }
.section-head h2 + .lede { margin-top: var(--s2); }
.section-head .text-link { margin-top: var(--s3); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--primary-ink);
  padding: 6px 0; min-height: 44px;
  transition: color var(--t), gap var(--t);
}
.text-link .icon { transition: transform var(--t); }
.text-link:hover { color: var(--text); }
.text-link:hover .icon { transform: translateX(4px); }
.text-link-alt { color: var(--secondary); }

/* ------------------------------------------------------------- buttons --- */

.btn {
  --btn-bg: transparent;
  --btn-ink: var(--text);
  --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--btn-border); border-radius: var(--pill);
  background: var(--btn-bg); color: var(--btn-ink);
  font-size: .98rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t), transform .18s var(--ease);
}
.btn .icon { flex: none; transition: transform var(--t); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { --btn-bg: var(--primary-solid); --btn-ink: #fff; }
.btn-primary:hover { --btn-bg: var(--primary-hover); }

.btn-ghost { --btn-border: var(--border-hi); --btn-ink: var(--text); }
.btn-ghost:hover { --btn-bg: var(--surface-alt); --btn-border: var(--primary); }

.btn-glass {
  --btn-bg: rgba(244, 235, 229, .1);
  --btn-border: rgba(244, 235, 229, .3);
}
.btn-glass:hover { --btn-bg: rgba(244, 235, 229, .18); --btn-border: var(--text); }

.btn-quiet { --btn-ink: var(--muted); }
.btn-quiet:hover { --btn-ink: var(--text); --btn-bg: var(--surface-alt); }

.btn-danger { --btn-ink: var(--error); --btn-border: rgba(233, 103, 103, .4); }
.btn-danger:hover { --btn-bg: rgba(233, 103, 103, .14); --btn-border: var(--error); }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }
.btn-xl { min-height: 60px; padding: 16px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-wide { padding-inline: 34px; }

/* ------------------------------------------------------- tags & chips --- */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em;
  background: var(--surface-hi); color: var(--muted);
  white-space: nowrap;
}
.tag-primary   { background: rgba(122, 111, 221, .17); color: var(--primary-ink); }
.tag-secondary { background: rgba(228, 120, 161, .16); color: var(--secondary); }
.tag-accent    { background: rgba(127, 143, 226, .16); color: var(--accent); }
.tag-success   { background: rgba(79, 191, 136, .15);  color: var(--success); }
.tag-warning   { background: rgba(242, 184, 75, .15);  color: var(--warning); }
.tag-flag      { background: rgba(242, 184, 75, .16);  color: var(--warning); }
.tag-when      { background: var(--surface-hi); color: var(--text); }
.tag-past      { background: rgba(233, 103, 103, .15); color: var(--error); }
a.tag { transition: filter var(--t); }
a.tag:hover { filter: brightness(1.25); }

.mini-tag {
  display: inline-block;
  padding: 5px 11px; margin: 0 6px 6px 0;
  border: 1px solid var(--border); border-radius: var(--pill);
  font-size: var(--fs-xs); color: var(--muted);
}
a.mini-tag { transition: border-color var(--t), color var(--t); }
a.mini-tag:hover { border-color: var(--primary); color: var(--text); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 8px 16px;
  border: 1.5px solid var(--border); border-radius: var(--pill);
  background: var(--surface); color: var(--muted);
  font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.chip b {
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: var(--r-sm);
  background: var(--surface-hi); color: inherit;
}
.chip:hover { border-color: var(--border-hi); color: var(--text); }
.chip.is-active {
  background: var(--primary-solid); border-color: var(--primary-solid); color: #fff;
}
.chip.is-active b { background: rgba(0, 0, 0, .32); color: #fff; }

.price {
  font-weight: 700; font-size: .96rem; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.price.is-free { color: var(--success); }

/* -------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(0, 0, 0, .92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t), transform .4s var(--ease);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(0, 0, 0, .74); backdrop-filter: blur(14px) saturate(1.3); }
}
.site-header.is-stuck { border-bottom-color: var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; gap: var(--s3);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word {
  font-size: 1.06rem; font-weight: 500; letter-spacing: -.025em; color: var(--text);
}
.brand-word b { font-weight: 700; color: var(--primary-ink); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a[aria-current='page'] { color: var(--text); background: var(--surface-alt); }

.header-actions { display: flex; align-items: center; gap: var(--s1); }
.header-account {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px 0 6px; border-radius: var(--pill);
  border: 1.5px solid var(--border);
  font-size: var(--fs-sm); font-weight: 600;
  transition: border-color var(--t);
}
.header-account:hover { border-color: var(--primary); }

.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  border: none; background: none; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------- mobile nav --- */

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 88;
  background: var(--bg);
  overflow-y: auto;
  animation: navIn .3s var(--ease-out);
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav-inner { padding-block: var(--s4) var(--s6); }
.mobile-nav ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.mobile-nav li {
  border-bottom: 1px solid var(--border);
  animation: navItem .45s var(--ease-out) both;
  animation-delay: calc(var(--i) * .05s + .05s);
}
@keyframes navItem { from { opacity: 0; transform: translateX(-14px); } }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) 0;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--text);
}
.mobile-nav a .icon { color: var(--muted); }
.mobile-nav a[aria-current='page'] { color: var(--primary-ink); }
.mobile-nav-cta { display: grid; gap: var(--s2); }

/* ----------------------------------------------------------- preloader --- */

.no-js .preloader { display: none; }
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: var(--s2); }
.preloader-mark {
  width: 56px; height: 56px;
  animation: markIn .9s var(--ease-out) both;
}
@keyframes markIn {
  from { opacity: 0; transform: scale(.82) rotate(-8deg); }
}
.preloader-word {
  font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; color: var(--muted);
  animation: fadeUp .7s var(--ease-out) .15s both;
}
.preloader-word b { font-weight: 700; color: var(--text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.preloader-bar {
  display: block; width: 132px; height: 3px; border-radius: var(--circle);
  background: var(--surface-alt); overflow: hidden;
}
.preloader-bar i {
  display: block; height: 100%; width: 0; border-radius: var(--circle);
  background: var(--primary);
  animation: loadBar 1.05s var(--ease-out) forwards;
}
@keyframes loadBar { to { width: 100%; } }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  /* svh minus the sticky header: 100vh alone pushed the last row under the fold. */
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-block: var(--s6) var(--s7);
  text-align: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Flat scrim rather than a decorative gradient, it exists only so the
   headline stays legible over a bright frame of the loop. The bottom fade
   hands off to the black page beneath. */
.hero-scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .62);
}
.hero-scrim::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: var(--s4);
}
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700; line-height: 1.0; letter-spacing: -.038em;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.hero-line { display: block; }
.hero-line-accent { color: var(--primary-ink); }

/* The status pill and supporting line sit over the loop, so both carry their
   own backing rather than relying on the scrim alone. */
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--border-hi); border-radius: var(--pill);
  background: rgba(0, 0, 0, .66);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
@supports (backdrop-filter: blur(6px)) {
  .hero-kicker { backdrop-filter: blur(8px); }
}
.hero-kicker .state-dot { flex: none; }

.hero-lede {
  max-width: 56ch; margin-inline: auto;
  font-size: var(--fs-lede); color: var(--text); opacity: .86;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .6);
}
.hero-lede em { font-style: normal; color: var(--primary-ink); font-weight: 600; opacity: 1; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: var(--s3); z-index: 1;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: var(--fs-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.scroll-cue-line {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}
.scroll-cue:hover { color: var(--text); }

/* ==========================================================================
   In development, the statement, the list and the form
   ========================================================================== */

.dev-section { padding-top: var(--s7); scroll-margin-top: var(--header-h); }
.dev-head { max-width: 74ch; margin-bottom: var(--s5); }
.dev-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; margin-bottom: var(--s3);
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.dev-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.dev-head .lede { margin-top: var(--s2); }

.dev-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: var(--s5); align-items: start;
}
.dev-sub, .dev-form-title {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .11em; color: var(--muted); margin-bottom: var(--s2);
}
.dev-list {
  list-style: none; display: grid; gap: 1px; margin: 0 0 var(--s3); padding: 0;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.dev-list li {
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  align-items: start; gap: var(--s2) var(--s3);
  padding: 13px var(--s3); background: var(--surface);
}
.dev-state {
  justify-self: start;
  padding: 3px 9px; border-radius: var(--r-sm);
  background: rgba(242, 184, 75, .13); color: var(--warning);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.dev-state.is-built { background: rgba(79, 191, 136, .14); color: var(--success); }
.dev-main { display: grid; gap: 2px; min-width: 0; }
.dev-main b { font-size: .98rem; font-weight: 600; }
.dev-main i { font-style: normal; font-size: var(--fs-sm); color: var(--muted); }

.dev-form-wrap {
  padding: var(--s4);
  border: 1px solid var(--border-hi); border-radius: var(--r);
  background: var(--surface);
  position: sticky; top: calc(var(--header-h) + var(--s3));
}
.dev-form-lede { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s3); }

/* ==========================================================================
   Registration form
   ========================================================================== */

.lead-form { display: grid; gap: var(--s3); }
.lead-grid {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Name and email get the full width; the short fields pair up. */
.lead-grid .field:nth-child(1),
.lead-grid .field:nth-child(2) { grid-column: 1 / -1; }

.field-label-text { font-size: var(--fs-sm); font-weight: 600; }

.radio-row { display: flex; gap: var(--s1); }
.radio { position: relative; flex: 1; display: block; cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-face {
  display: grid; place-items: center;
  min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg);
  font-size: var(--fs-sm); font-weight: 600; color: var(--muted);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.radio:hover .radio-face { border-color: var(--border-hi); color: var(--text); }
.radio input:checked + .radio-face {
  border-color: var(--primary); background: rgba(122, 111, 221, .14); color: var(--text);
}
.radio input:focus-visible + .radio-face { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Honeypot: off-screen rather than display:none so bots still see it. */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.lead-submit-idle,
.lead-submit-busy { display: inline-flex; align-items: center; gap: 9px; }
.lead-submit-busy { display: none; }
.lead-form.is-busy [data-lead-submit] { pointer-events: none; opacity: .75; }
.lead-form.is-busy .lead-submit-idle { display: none; }
.lead-form.is-busy .lead-submit-busy { display: inline; }

.lead-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--fs-xs); color: var(--muted); line-height: 1.5;
}
.lead-note .icon { flex: none; margin-top: 1px; }

.lead-error {
  padding: 12px 14px;
  border: 1px solid rgba(233, 103, 103, .45); border-radius: var(--r-sm);
  background: rgba(233, 103, 103, .1);
  font-size: var(--fs-sm); color: var(--error);
}

/* The success panel replaces the fields in place. */
.lead-form.is-sent .lead-grid,
.lead-form.is-sent [data-lead-submit],
.lead-form.is-sent .lead-note,
.lead-form.is-sent .hp { display: none; }

.lead-done {
  display: grid; justify-items: center; gap: 10px;
  padding: var(--s4) var(--s3); text-align: center;
  border: 1px solid var(--border-hi); border-radius: var(--r);
  background: var(--surface-alt);
}
.lead-tick {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: var(--circle); background: var(--success); color: #06251a;
  animation: pop .5s var(--ease-out);
}
.lead-done h3 { font-size: 1.25rem; }
.lead-done p { font-size: var(--fs-sm); color: var(--muted); max-width: 38ch; }

/* The modal reuses the auth panel styling; only the form needs spacing. */
[data-lead-modal] .lead-form { margin-top: var(--s3); }

/* -------------------------------------------------------------- ticker --- */

.ticker-band {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: var(--s2);
  overflow: hidden;
}
.ticker-label {
  display: flex; align-items: center; gap: 9px;
  max-width: var(--shell); margin: 0 auto var(--s2); padding-inline: var(--s3);
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .11em; color: var(--muted);
}
.ticker { position: relative; overflow: hidden; }
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 58s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-group { display: flex; }

.tick {
  display: flex; align-items: center; gap: 11px;
  padding: 10px var(--s3); margin-right: 2px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: background var(--t);
}
.tick:hover { background: var(--surface-alt); }
.tick-day {
  font-size: var(--fs-xs); font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .06em;
}
.tick-dot { width: 7px; height: 7px; border-radius: var(--circle); background: var(--primary); }
.tick-dot-secondary { background: var(--secondary); }
.tick-dot-accent { background: var(--accent); }
.tick-dot-success { background: var(--success); }
.tick-dot-warning { background: var(--warning); }
.tick-title { font-weight: 600; font-size: var(--fs-sm); }
.tick-meta { font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   Home, feed, rails, week strip, coming-soon preview
   ========================================================================== */

.feed-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--s5); align-items: end; margin-bottom: var(--s4);
}
.feed-lede { color: var(--muted); font-size: var(--fs-lede); max-width: 44ch; }

.feed {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.feed-tabs {
  display: flex; gap: 4px; padding: var(--s2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 16px;
  border: none; border-radius: var(--pill);
  background: transparent; color: var(--muted);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.feed-tab b {
  padding: 1px 7px; border-radius: var(--r-sm);
  background: var(--surface-hi); color: inherit;
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
}
.feed-tab:hover { color: var(--text); background: var(--surface-alt); }
.feed-tab.is-active { background: var(--primary-solid); color: #fff; }
.feed-tab.is-active b { background: rgba(0, 0, 0, .32); }

.feed-list { list-style: none; margin: 0; padding: 0; }

/* --- event row (feed) --- */

.erow {
  display: grid;
  grid-template-columns: 58px 60px minmax(0, 1fr) auto;
  align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--t);
}
.erow:last-child { border-bottom: none; }
.erow:hover { background: var(--surface-alt); }
.erow.is-hidden { display: none; }

.erow-date {
  display: grid; justify-items: center; gap: 0;
  padding: 7px 4px; border-radius: var(--r-sm);
  background: var(--surface-alt);
  line-height: 1.1;
}
.erow-date i { font-style: normal; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.erow-date b { font-size: 1.22rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.erow-art {
  display: block; width: 60px; height: 78px;
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface-alt);
}
.erow-art svg, .erow-art img { width: 100%; height: 100%; object-fit: cover; }

.erow-main { display: grid; gap: 3px; min-width: 0; }
.erow-top { display: flex; align-items: center; gap: 10px; }
.erow-time { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.erow-title { font-size: 1.04rem; font-weight: 600; line-height: 1.3; }
.erow-title a::after { content: ''; position: absolute; inset: 0; }
.erow-title a { transition: color var(--t); }
.erow:hover .erow-title a { color: var(--primary-ink); }
.erow-sub {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: var(--fs-sm); color: var(--muted);
}
/* text-overflow needs a block box of its own: on the flex parent the ellipsis
   never renders and the venue simply gets sliced off mid-word. */
.erow-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erow-sub .icon { flex: none; }
.erow-org { font-size: var(--fs-xs); color: var(--muted); opacity: .8; }
.erow-end {
  display: flex; align-items: center; gap: var(--s2);
  position: relative; z-index: 2;
}

.feed-empty {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--s6) var(--s3); color: var(--muted);
}
.feed-empty a { color: var(--primary-ink); font-weight: 600; text-decoration: underline; }

.feed-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2); padding: var(--s3);
  border-top: 1px solid var(--border); background: var(--surface-alt);
}
.feed-hint { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------- category rail --- */

/* ------------------------------------------------------------ week strip --- */

.week-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--s5); align-items: center; margin-bottom: var(--s4);
}
.week-media {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16 / 9;
}
.week-media video { width: 100%; height: 100%; object-fit: cover; }

.week-scroll {
  overflow-x: auto; scroll-snap-type: x proximity;
  scroll-padding-left: var(--rail-gutter);
  padding: 2px var(--s3) var(--s3) var(--rail-gutter);
  scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent;
}
/* Columns size to their own day. Stretching them to the busiest day left a
   quiet Sunday as a tall empty box. */
.week-grid { display: flex; align-items: start; gap: var(--s2); width: max-content; min-width: 100%; }
.week-grid::after { content: ''; flex: none; width: 1px; }

.wcol {
  flex: 1 0 218px; min-width: 218px;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  scroll-snap-align: start;
  overflow: hidden;
}
.wcol.is-today { border-color: var(--primary); }
.wcol.is-empty { background: transparent; border-style: dashed; }
.wcol-none { align-self: center; }

.wcol-head {
  display: flex; align-items: baseline; gap: 7px;
  padding: var(--s2); border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.wcol.is-empty .wcol-head { background: transparent; }
.wcol.is-today .wcol-head { background: rgba(122, 111, 221, .14); }
.wcol-day {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.wcol-num { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wcol-mon { font-size: var(--fs-xs); color: var(--muted); }
.wcol-today {
  margin-left: auto; padding: 2px 8px; border-radius: var(--r-sm);
  background: var(--primary-solid); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
/* align-content keeps the day's events stacked at the top; without it the
   grid stretches each card to fill the tallest column in the row. */
.wcol-body { display: grid; gap: 1px; align-content: start; background: var(--border); flex: 1; }
.wcol.is-empty .wcol-body { background: transparent; }
.wcol-none {
  padding: var(--s3) var(--s2); text-align: center;
  font-size: var(--fs-sm); color: var(--muted); background: transparent;
}
.wcol-foot {
  padding: 9px var(--s2); border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--muted); background: var(--surface-alt);
}

.emini {
  position: relative; display: grid; gap: 5px; align-content: start;
  padding: var(--s2); background: var(--surface);
  transition: background var(--t);
}
.emini:hover { background: var(--surface-alt); }
.emini-art {
  display: block; height: 74px; border-radius: var(--r-sm);
  overflow: hidden; margin-bottom: 3px; background: var(--surface-alt);
}
.emini-art svg, .emini-art img { width: 100%; height: 100%; object-fit: cover; }
.emini .tag { justify-self: start; }
.emini-title { font-size: .95rem; font-weight: 600; line-height: 1.28; }
.emini-title a::after { content: ''; position: absolute; inset: 0; }
.emini:hover .emini-title a { color: var(--primary-ink); }
.emini-meta { font-size: var(--fs-xs); color: var(--muted); }
.emini-foot { margin-top: 2px; }
.emini-foot .price { font-size: var(--fs-sm); }

.week-foot { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s2); }

/* -------------------------------------------------------------- featured --- */

.featured-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s3);
}

.fhero {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t);
}
.fhero:hover { border-color: var(--primary); }
.fhero-link { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.fhero-art { display: block; position: relative; min-height: 260px; overflow: hidden; }
.fhero-art svg, .fhero-art img { width: 100%; height: 100%; object-fit: cover; }
.fhero-body { display: grid; gap: 9px; padding: var(--s3); }
.fhero-top { display: flex; align-items: center; gap: 10px; }
.fhero-date { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.fhero-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.14; }
.fhero-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.fhero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-top: 4px; padding-top: var(--s2); border-top: 1px solid var(--border);
}
.fhero-where { font-size: var(--fs-sm); color: var(--muted); }
.fhero-go {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: var(--fs-sm); font-weight: 600; color: var(--primary-ink);
}
.fhero:hover .fhero-go .icon { transform: translateX(4px); }
.fhero-go .icon { transition: transform var(--t); }

.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }

/* -------------------------------------------------------- universities --- */

.uni-section { text-align: center; }
.uni-marquee { overflow: hidden; margin-block: var(--s4); padding-block: var(--s1);
  border-block: 1px solid var(--border); }
.uni-track { display: flex; gap: var(--s2); width: max-content; animation: tick 46s linear infinite; }
.uni-marquee:hover .uni-track { animation-play-state: paused; }
.uni-pill {
  padding: 9px 18px; border: 1px solid var(--border); border-radius: var(--pill);
  background: var(--surface); color: var(--muted);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
}
.uni-foot { display: grid; justify-items: center; gap: var(--s2); }
.uni-note { font-size: var(--fs-sm); color: var(--muted); }

/* ---------------------------------------------------------- closing cta --- */

.close-section { padding-bottom: var(--s8); }
.close-inner {
  display: grid; justify-items: center; gap: var(--s3); text-align: center;
  max-width: 760px; margin-inline: auto;
  padding: var(--s6) var(--s4);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface);
}
.close-inner h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.close-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.close-points {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3);
  list-style: none; margin: var(--s2) 0 0; padding: 0;
}
.close-points li {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); color: var(--muted);
}
.close-points .icon { color: var(--success); }

/* ==========================================================================
   Event cards (shared)
   ========================================================================== */

.ecard {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.ecard:hover { border-color: var(--primary); transform: translateY(-4px); }
.ecard.is-hidden { display: none; }
.ecard.is-featured { border-color: rgba(242, 184, 75, .35); }

.ecard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.ecard-media svg, .ecard-media img { width: 100%; height: 100%; object-fit: cover; }

.ecard-date {
  position: absolute; left: 12px; top: 12px;
  display: grid; justify-items: center; line-height: 1.05;
  padding: 7px 10px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .82); color: var(--text);
}
.ecard-date b { font-size: 1.14rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ecard-date i {
  font-style: normal; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
}
.ecard-flag {
  position: absolute; right: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .82); color: var(--warning);
  font-size: var(--fs-xs); font-weight: 700;
}

.ecard-body { display: grid; gap: 9px; padding: var(--s3); flex: 1; align-content: start; }
.ecard-meta { display: flex; align-items: center; gap: 10px; }
.ecard-when { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.ecard-when.is-soon { color: var(--secondary); }
.ecard-title { font-size: 1.1rem; font-weight: 700; line-height: 1.26; letter-spacing: -.015em; }
.ecard-title a { transition: color var(--t); }
.ecard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ecard:hover .ecard-title a { color: var(--primary-ink); }
.ecard-desc {
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ecard-facts { list-style: none; display: grid; gap: 5px; margin: 2px 0 0; padding: 0; }
.ecard-facts li {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: var(--fs-sm); color: var(--muted);
}
.ecard-facts li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecard-facts .icon { flex: none; color: var(--muted); opacity: .8; }
.ecard-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); margin-top: auto; padding-top: var(--s2);
  border-top: 1px solid var(--border);
}
.ecard-org {
  font-size: var(--fs-xs); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- save button --- */

.save-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px solid var(--border); border-radius: var(--pill);
  background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all var(--t);
}
.save-btn.is-compact {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; padding: 0;
  background: rgba(0, 0, 0, .82);
}
.erow .save-btn.is-compact, .ecard .save-btn.is-compact { position: absolute; }
.erow .save-btn.is-compact { position: static; }
.save-btn .save-btn-text { display: none; }
.save-btn.is-compact .save-btn-text { display: none; }
.save-btn-on { display: none; }
.save-btn:hover { border-color: var(--primary); color: var(--primary-ink); }
.save-btn[aria-pressed='true'] { border-color: var(--primary); color: var(--primary-ink); }
.save-btn[aria-pressed='true'] .save-btn-off { display: none; }
.save-btn[aria-pressed='true'] .save-btn-on { display: block; }
.save-btn.is-just-saved { animation: pop .42s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.22); } }

.save-btn-wide { min-height: 54px; padding: 14px 26px; }
.save-btn-wide .save-btn-text { display: inline; }
.save-btn-wide[aria-pressed='true'] .save-btn-text::after { content: 'd'; }

/* ==========================================================================
   Events page
   ========================================================================== */

.page-head { padding-block: var(--s6) var(--s4); }
.page-head h1 { max-width: 18ch; }
/* The account page's visible headline is an h2; it still reads as the page title. */
.account-title { font-size: var(--fs-h1); max-width: 18ch; }
.page-head .lede { margin-top: var(--s2); }

.featured-strip { padding-block: var(--s3) var(--s5); }
.fstrip-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); margin-bottom: var(--s2);
}
.fstrip-head h2 {
  display: flex; align-items: center; gap: 9px;
  font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase;
  letter-spacing: .11em; color: var(--warning);
}
.fstrip {
  display: flex; gap: var(--s2);
  padding: 2px var(--s3) var(--s2) var(--rail-gutter);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: var(--rail-gutter);
  scrollbar-width: none; cursor: grab;
}
.fstrip::-webkit-scrollbar { display: none; }
.fstrip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.fstrip::after { content: ''; flex: none; width: var(--rail-gutter); }

.fcard {
  flex: none; width: 290px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
  scroll-snap-align: start;
  transition: border-color var(--t), transform var(--t);
}
.fcard:hover { border-color: var(--primary); transform: translateY(-3px); }
.fcard-link { display: grid; grid-template-rows: 132px auto; height: 100%; }
.fcard-art { display: block; overflow: hidden; }
.fcard-art svg, .fcard-art img { width: 100%; height: 100%; object-fit: cover; }
.fcard-body { display: grid; gap: 7px; padding: var(--s2) var(--s3) var(--s3); align-content: start; }
.fcard-body .tag { justify-self: start; }
.fcard-title { font-size: 1.02rem; font-weight: 700; line-height: 1.26; }
.fcard-meta { font-size: var(--fs-sm); color: var(--muted); }
.fcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border);
}
.fcard-where { font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------- filter bar --- */

.filter-bar { display: grid; gap: var(--s2); margin-bottom: var(--s3); }

.filter-sticky {
  position: sticky; top: var(--header-h); z-index: 40;
  display: grid; gap: var(--s2);
  padding-block: var(--s2);
  background: var(--bg);
}
/* Bleeds the background to the viewport edges so content scrolling underneath
   is covered, without the element itself leaving the grid. */
.filter-sticky::before {
  content: ''; position: absolute; inset: 0 -100vw; z-index: -1;
  background: var(--bg); border-bottom: 1px solid transparent;
}
.filter-bar.is-stuck .filter-sticky::before { border-bottom-color: var(--border); }

.filter-primary { display: flex; gap: var(--s2); }
.search { position: relative; flex: 1; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search input {
  width: 100%; min-height: 52px;
  padding: 13px 46px 13px 46px;
  border: 1.5px solid var(--border); border-radius: var(--pill);
  background: var(--surface); color: var(--text);
  font-size: 1rem;
  transition: border-color var(--t), background var(--t);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--primary); background: var(--surface-alt); }
.search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px;
  border: none; border-radius: var(--pill);
  background: var(--surface-hi); color: var(--muted); cursor: pointer;
}
.search-clear:hover { color: var(--text); }

.filter-toggle {
  display: none; align-items: center; gap: 9px;
  min-height: 52px; padding: 12px 20px;
  border: 1.5px solid var(--border); border-radius: var(--pill);
  background: var(--surface); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.filter-toggle b {
  min-width: 22px; padding: 1px 6px; border-radius: var(--pill);
  background: var(--primary-solid); color: #fff;
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
}

.chip-row {
  display: flex; gap: var(--s1);
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

/* Sideways scrolling suits a filter bar, where the chips are one control and
   the row sits above the thing it filters. It suits a block of navigation
   links much less: half of them start off-screen. These wrap instead. */
.chip-row.is-wrap { flex-wrap: wrap; overflow: visible; row-gap: var(--s1); }
.chip-row.is-wrap .chip { white-space: normal; }

.filter-advanced {
  display: grid; gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.filter-group { display: grid; gap: 9px; min-width: 0; }
.filter-label {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted);
}
.seg-row {
  display: flex; gap: 3px; padding: 4px;
  border: 1px solid var(--border); border-radius: var(--pill);
  background: var(--bg); overflow-x: auto; scrollbar-width: none;
}
.seg-row::-webkit-scrollbar { display: none; }
.seg {
  flex: 1; min-height: 40px; padding: 8px 15px;
  border: none; border-radius: var(--pill);
  background: transparent; color: var(--muted);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.seg:hover { color: var(--text); }
.seg.is-active { background: var(--primary-solid); color: #fff; }

.filter-selects {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2);
}
.select { position: relative; }
.select select {
  width: 100%; min-height: 48px;
  padding: 12px 42px 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text);
  font-size: var(--fs-sm); cursor: pointer;
  appearance: none;
  text-overflow: ellipsis;
}
.select select:focus { outline: none; border-color: var(--primary); }
.select select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.select .icon {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

/* ------------------------------------------------------------- results --- */

.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-bottom: var(--s3);
}
.results-count { display: flex; align-items: baseline; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.results-count b { font-size: 1.35rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.results-of { opacity: .7; }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.fpill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 6px 8px 6px 14px;
  border: 1px solid var(--primary); border-radius: var(--pill);
  background: rgba(122, 111, 221, .14); color: var(--text);
  font-size: var(--fs-xs); font-weight: 600;
}
.fpill button {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: none; border-radius: var(--pill);
  background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer;
}
.fpill button:hover { background: rgba(255, 255, 255, .22); }

.clear-all {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 14px; margin-left: auto;
  border: none; border-radius: var(--pill);
  background: transparent; color: var(--muted);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.clear-all:hover { color: var(--text); background: var(--surface); }

.events-grid {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.events-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.events-empty, .saved-empty {
  display: grid; justify-items: center; gap: var(--s2);
  padding: var(--s7) var(--s3); text-align: center;
}
.events-empty-icon, .saved-empty span[aria-hidden] {
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: var(--pill); background: var(--surface); color: var(--muted);
}
.events-empty p, .saved-empty p { color: var(--muted); }

.submit-section { padding-bottom: var(--s8); }
.submit-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3); padding: var(--s5);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface);
}
.submit-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }

/* ==========================================================================
   Event detail
   ========================================================================== */

.breadcrumbs { padding-block: var(--s3) 0; font-size: var(--fs-sm); }
.page-legal .breadcrumbs { padding-top: var(--s4); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
  color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; min-height: 32px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 28px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs li:last-child span {
  color: var(--text);
  display: inline-block; max-width: 46ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

.event-hero { padding-block: var(--s4) var(--s5); }
.event-hero-inner {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--s5); align-items: start;
}
.event-hero-art {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--surface-alt);
  border: 1px solid var(--border);
}
.event-hero-art svg, .event-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.event-hero-stamp {
  position: absolute; left: 16px; top: 16px;
  display: grid; justify-items: center; line-height: 1.05;
  padding: 10px 14px; border-radius: var(--r);
  background: rgba(0, 0, 0, .82);
}
.event-hero-stamp b { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-hero-stamp i {
  font-style: normal; font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--primary-ink);
}
.event-hero-stamp em {
  font-style: normal; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-top: 2px;
}

.event-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); }
.event-hero-main h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 22ch; }
.event-lede { margin-top: var(--s2); font-size: var(--fs-lede); color: var(--muted); max-width: 60ch; }

.event-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s2); margin: var(--s4) 0 0;
  padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.event-fact { display: grid; gap: 5px; }
.event-fact dt {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.event-fact dd { margin: 0; font-weight: 600; line-height: 1.35; }
.event-fact dd.is-free { color: var(--success); }
.fact-extra { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }

.event-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-top: var(--s3);
}
.book-provider {
  flex-basis: 100%; order: 9;
  font-size: var(--fs-sm); color: var(--muted);
}
.btn-icon span { display: inline; }

.event-capacity { margin-top: var(--s3); max-width: 420px; }
.cap-track {
  height: 8px; border-radius: var(--circle);
  background: var(--surface-alt); overflow: hidden; border: 1px solid var(--border);
}
.cap-track span { display: block; height: 100%; background: var(--secondary); border-radius: var(--circle); }
.event-capacity p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }

.event-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s6); padding-bottom: var(--s6);
}
.event-about h2, .know-section h2 { margin-bottom: var(--s2); font-size: 1.5rem; }
.event-about p { margin-bottom: var(--s2); color: var(--muted); line-height: 1.72; max-width: 68ch; }
.know-section { margin-top: var(--s5); }
.know-list { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.know-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s2); padding: var(--s2) var(--s3); background: var(--surface);
}
.know-icon { color: var(--primary-ink); padding-top: 2px; }
.know-main { display: grid; gap: 2px; }
.know-main b { font-size: var(--fs-sm); font-weight: 700; }
.know-main span { font-size: var(--fs-sm); color: var(--muted); }

.event-tags-section { margin-top: var(--s5); }
.tag-cloud { margin-top: var(--s2); }

.event-side { display: grid; gap: var(--s2); align-content: start;
  position: sticky; top: calc(var(--header-h) + var(--s3)); }
.side-card {
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.side-card h2 { margin-bottom: 10px; }
.side-card p { color: var(--muted); font-size: var(--fs-sm); }
.org-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.05rem; font-weight: 700; color: var(--text) !important;
}
.verified {
  display: grid; place-items: center; width: 19px; height: 19px;
  border-radius: var(--circle); background: var(--success); color: #06251a; flex: none;
}
.org-type { margin-bottom: var(--s2); }
.side-card-cta { background: var(--surface-alt); border-color: var(--border-hi); }
.side-card-cta p { margin-bottom: var(--s2); }

.related-section { padding-bottom: var(--s8); border-top: 1px solid var(--border); padding-top: var(--s6); }
.related-section .section-head { display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s2); max-width: none; }
.related-section .section-head h2 { font-size: 1.6rem; }

/* Sticky booking bar, the action is always one tap away on a phone. */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 12px var(--s3) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .94);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.book-bar.is-shown { transform: translateY(0); }
.book-bar-info { display: grid; gap: 1px; }
.book-bar-info b { font-size: 1.05rem; font-weight: 700; }
.book-bar-info span { font-size: var(--fs-xs); color: var(--muted); }

/* ==========================================================================
   Features page
   ========================================================================== */

.split-head { margin-bottom: var(--s5); }
.split-head h2 { display: flex; align-items: center; gap: 12px; }
.split-head p { margin-top: var(--s2); color: var(--muted); font-size: var(--fs-lede); max-width: 60ch; }
.state-dot { width: 11px; height: 11px; border-radius: var(--circle); flex: none; }
.state-dot.is-live { background: var(--success); }
.state-dot.is-next { background: var(--warning); }
/* Further out than "almost done", and dimmer on purpose: a roadmap item that
   looks as certain as a finished one is a promise nobody made. */
.state-dot.is-later { background: var(--muted); opacity: .55; }


/* ==========================================================================
   Community page
   ========================================================================== */

.stats-band { padding-block: var(--s5); }
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s2); margin: 0;
}
.stat {
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.stat dt {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; line-height: 1; color: var(--primary-ink);
}
.stat dd { margin: 8px 0 0; font-weight: 600; }
.stat-note { display: block; margin-top: 4px; font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }

.principle-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s2);
}
.principle {
  display: grid; gap: 10px; align-content: start;
  padding: var(--s4);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--t), transform var(--t);
}
.principle:hover { border-color: var(--primary); transform: translateY(-3px); }
.principle-num {
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em;
  color: var(--primary-ink); font-variant-numeric: tabular-nums;
}
.principle h3 { font-size: 1.2rem; }
.principle p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.62; }

.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s2); }
.voice {
  display: grid; gap: var(--s2); align-content: start;
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.voice-head { display: flex; align-items: center; gap: var(--s2); }
.voice-head h3 { font-size: 1.08rem; }
.voice-uni { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.voice-quote {
  margin: 0; padding: var(--s2) 0 var(--s2) var(--s2);
  border-left: 3px solid var(--primary);
  font-size: 1.02rem; font-weight: 500; line-height: 1.5; color: var(--text);
}
.voice-bio { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.voice-tags { margin-top: auto; }

.avatar {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: var(--circle);
  background: var(--primary-solid); color: #fff;
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em;
}
.avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar-xl { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar-primary   { background: var(--primary-solid); }
.avatar-secondary { background: #C4557F; }
.avatar-accent    { background: #5E6FC6; }
.avatar-success   { background: #2F8D62; }
.avatar-warning   { background: #A87A20; }

.faq-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + var(--s3)); }
.faq-side .lede { margin-block: var(--s2) var(--s3); }
.faq-media {
  margin-top: var(--s3); border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface);
}
.faq-media video { width: 100%; height: 100%; object-fit: cover; }

.faq-list { display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  width: 100%; min-height: 64px; padding: var(--s3);
  border: none; background: none; color: var(--text);
  font-size: 1.05rem; font-weight: 600; text-align: left; cursor: pointer;
  transition: background var(--t);
}
.faq-q:hover { background: var(--surface-alt); }
.faq-q .icon { flex: none; color: var(--primary-ink); transition: transform .3s var(--ease); }
.faq-q[aria-expanded='true'] .icon { transform: rotate(45deg); }
.faq-a { padding: 0 var(--s3) var(--s3); }
.faq-a p { color: var(--muted); line-height: 1.68; max-width: 64ch; }

/* ==========================================================================
   Account
   ========================================================================== */

.account-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.guest-saved { padding-top: 0; }
.guest-saved-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3); padding: var(--s3) var(--s4); margin-bottom: var(--s2);
  border: 1px solid var(--primary); border-radius: var(--r-lg);
  background: rgba(122, 111, 221, .1);
}
.guest-saved-inner h2 { font-size: 1.5rem; }
.guest-saved-inner p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }

.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s2); }
.perk {
  display: grid; gap: 10px; align-content: start;
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.perk-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r-sm); background: var(--surface-alt); color: var(--primary-ink);
}
.perk h3 { font-size: 1.08rem; }
.perk p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

.profile-head { padding-block: var(--s5) var(--s4); border-bottom: 1px solid var(--border); }
.profile-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.profile-id { flex: 1; min-width: 200px; }
.profile-id h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.profile-sub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; color: var(--muted); font-size: var(--fs-sm); }
.profile-sub span:not(:empty) ~ span:not(:empty)::before { content: '·'; margin-right: 10px; }
.profile-email { margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); opacity: .8; }
.profile-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }

.profile-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--s2); margin: var(--s4) 0 0;
}
.profile-stats div {
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.profile-stats dt {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.profile-stats dd { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--muted); }

.saved-list { list-style: none; display: grid; gap: var(--s1); margin: 0; padding: 0; }
/* Saved rows are built client-side without the poster column the feed rows
   carry, so they need their own three-column track, otherwise the title
   block lands in the 60px artwork column and wraps to one word per line. */
.saved-list .erow {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  border: 1px solid var(--border); border-radius: var(--r);
}
.saved-list .erow:last-child { border-bottom: 1px solid var(--border); }

.interests-section .pick-grid { margin-top: var(--s2); }
.save-state {
  display: inline-flex; align-items: center; gap: 7px; margin-top: var(--s2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--success);
}

.edit-inner {
  max-width: 720px;
  padding: var(--s4);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}
.edit-form { display: grid; gap: var(--s2); margin-top: var(--s3); }
.edit-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.danger-zone { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--border); }
.danger-zone p { margin: 8px 0 var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.danger-actions { display: flex; flex-wrap: wrap; gap: var(--s1); }

/* ==========================================================================
   Coming soon, preview cards and the per-feature pages
   ========================================================================== */

/* --- the vision, above the almost-done grid --- */

.vision-section { position: relative; }
.vision-head { max-width: 68ch; margin-bottom: var(--s5); }
.vision-head h2 {
  display: grid; font-size: var(--fs-h2);
  letter-spacing: -.03em; line-height: 1.06; text-wrap: balance;
}
.vision-head-line.is-accent { color: var(--primary-ink); }
.vision-head .lede { margin-top: var(--s3); }

.vision-grid {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.vision-tile {
  /* Column rather than grid so the state row can be pushed to the bottom.
     Packed to the top instead, every chip sat at a different height across the
     row and the whole grid read as misaligned. */
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.vision-tile:hover { border-color: var(--border-hi); background: var(--surface-alt); transform: translateY(-3px); }

/* The one that already works gets the accent edge. Everything else is stated
   as intent, and should not be dressed up to look shipped. */
.vision-tile.is-live { border-color: rgba(79, 191, 136, .38); }
.vision-tile.is-later { opacity: .78; }
.vision-tile.is-later:hover { opacity: 1; }

.vision-glyph {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-sm); background: var(--surface-alt); color: var(--primary-ink);
}
.vision-tile.is-live .vision-glyph { color: var(--success); }
.vision-tile:hover .vision-glyph { background: var(--surface-hi); }

.vision-name { font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.vision-line { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.vision-state {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  padding-top: var(--s2); border-top: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--muted);
}
.vision-glyph { flex: none; }

.vision-close {
  max-width: 64ch; margin-top: var(--s4);
  font-size: var(--fs-lede); color: var(--text); opacity: .9; text-wrap: pretty;
}

@media (max-width: 560px) {
  .vision-grid { grid-template-columns: minmax(0, 1fr); }
}

.next-grid {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.next-card {
  display: grid; gap: 8px; align-content: start;
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.next-card:hover { border-color: var(--primary); background: var(--surface-alt); transform: translateY(-3px); }
.next-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.next-card-glyph {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); background: var(--surface-alt); color: var(--primary-ink);
}
.next-card:hover .next-card-glyph { background: var(--surface-hi); }
.next-card-status {
  padding: 4px 10px; border-radius: var(--r-sm);
  background: rgba(242, 184, 75, .13); color: var(--warning);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.next-card-name { font-size: 1.16rem; font-weight: 700; letter-spacing: -.02em; }
.next-card-line { font-size: var(--fs-sm); font-weight: 600; color: var(--primary-ink); }
.next-card-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.next-card-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  padding-top: var(--s2); border-top: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.next-card-go .icon { transition: transform var(--t); }
.next-card:hover .next-card-go .icon { transform: translateX(4px); }

/* --- individual coming-soon page --- */

.soon-head-inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
}
.soon-head-main { min-width: 0; }
.soon-status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; margin-bottom: var(--s3);
  border: 1px solid var(--border-hi); border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.soon-head h1 { max-width: 16ch; }
.soon-line {
  margin-top: 10px; font-size: var(--fs-lede); font-weight: 600; color: var(--primary-ink);
}
.soon-head .lede { margin-top: var(--s2); }
.soon-glyph {
  display: grid; place-items: center; flex: none;
  width: 84px; height: 84px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); color: var(--primary-ink);
}

.soon-body { padding-top: var(--s2); }
.soon-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s6); align-items: start;
}
.soon-main h2 { font-size: 1.45rem; }
.soon-h { margin-top: var(--s5); }
.soon-para { margin-top: var(--s2); color: var(--muted); line-height: 1.72; max-width: 66ch; }
.soon-list { list-style: none; display: grid; gap: 1px; margin: var(--s2) 0 0; padding: 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.soon-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2);
  padding: 14px var(--s3); background: var(--surface);
  font-size: var(--fs-sm);
}
.soon-list .icon { color: var(--success); }
.soon-honest {
  margin-top: var(--s5); padding: var(--s3);
  border: 1px dashed var(--border-hi); border-radius: var(--r);
}
.soon-honest h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.soon-honest p { margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.soon-side { display: grid; gap: var(--s2); align-content: start;
  position: sticky; top: calc(var(--header-h) + var(--s3)); }

.soon-more { padding-bottom: var(--s8); border-top: 1px solid var(--border); padding-top: var(--s6); }
.soon-more .section-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2); max-width: none;
}
.soon-more .section-head h2 { font-size: 1.5rem; }
.soon-cards { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.soon-card {
  display: grid; gap: 7px; align-content: start;
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--t), background var(--t);
}
.soon-card:hover { border-color: var(--primary); background: var(--surface-alt); }
.soon-card-glyph { color: var(--primary-ink); }
.soon-card-status { font-size: var(--fs-xs); font-weight: 600; color: var(--warning); }
.soon-card-name { font-size: 1.08rem; font-weight: 700; }
.soon-card-line { font-size: var(--fs-sm); color: var(--muted); }
.soon-card-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--primary-ink);
}

/* ==========================================================================
   Forms, modal, footer, utilities
   ========================================================================== */

.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field-opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text);
  font-size: 1rem;
  transition: border-color var(--t);
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field-hint { font-size: var(--fs-xs); color: var(--muted); }
.field-error { font-size: var(--fs-xs); color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.field .select select { min-height: 50px; }

/* --- interest picker --- */

.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s1); }
.pick-grid-wide { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s2); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick-face {
  display: grid; gap: 3px;
  min-height: 66px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--bg);
  transition: border-color var(--t), background var(--t);
}
.pick-face b { font-size: .95rem; font-weight: 600; }
.pick-face i { font-style: normal; font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.pick:hover .pick-face { border-color: var(--border-hi); }
.pick input:checked + .pick-face {
  border-color: var(--primary); background: rgba(122, 111, 221, .14);
}
.pick input:focus-visible + .pick-face { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- modal --- */

.modal {
  position: fixed; inset: 0; z-index: 150;
  display: flex; justify-content: center; align-items: flex-start;
  padding: var(--s2);
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .82);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.modal-panel {
  position: relative;
  width: min(540px, 100%);
  margin: auto;
  padding: var(--s5) var(--s4) var(--s4);
  border: 1px solid var(--border-hi); border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modalIn .38s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
/* Sticky so there is always a way out of a long form on a phone, where the
   scrim may be too narrow to tap and there is no Escape key. It floats over
   the fields as you scroll, so it is given a border and a shadow to read as a
   deliberate pinned control rather than a stray button. */
.modal-close {
  position: sticky; float: right; top: 4px; z-index: 3;
  margin: -6px -6px 0 var(--s2);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border-hi); border-radius: var(--pill);
  background: var(--surface-hi); color: var(--text); cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .7);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.modal-close:hover { background: var(--surface-alt); border-color: var(--primary); }

.auth-progress {
  height: 4px; border-radius: var(--circle); background: var(--surface-alt);
  margin-bottom: var(--s4); overflow: hidden;
}
.auth-progress span {
  display: block; height: 100%; width: 33%; border-radius: var(--circle);
  background: var(--primary);
  transition: width .45s var(--ease-out);
}
.auth-step { display: none; }
.auth-step.is-active { display: grid; gap: var(--s2); animation: stepIn .34s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
.auth-kicker {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--primary-ink);
}
.auth-step h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); }
.auth-lede { color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.auth-step .field { margin-top: 4px; }
.auth-actions { display: flex; gap: var(--s1); margin-top: var(--s2); }
.auth-actions .btn { flex: 1; }
.auth-actions-center { justify-content: center; }
.auth-alt { font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.auth-alt button {
  border: none; background: none; padding: 0;
  color: var(--primary-ink); font-weight: 600; cursor: pointer; text-decoration: underline;
}
.auth-fine { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.auth-done { justify-items: center; text-align: center; }
.auth-tick {
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: var(--circle); background: var(--success); color: #06251a;
  animation: pop .5s var(--ease-out);
}

/* --- footer --- */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--s6) var(--s3); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s5); padding-bottom: var(--s5);
}
.footer-brand .brand { margin-bottom: var(--s2); }
.footer-line { font-weight: 600; margin-bottom: 8px; max-width: 32ch; }
.footer-copy { font-size: var(--fs-sm); color: var(--muted); max-width: 38ch; line-height: 1.6; }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.footer-social a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-sm); color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px; transition: color var(--t);
}
.footer-social a:hover { color: var(--text); }

.footer-col { display: grid; gap: 4px; align-content: start; }
.footer-head {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .11em; color: var(--muted); margin-bottom: 8px;
}
.footer-col .footer-copy { margin-bottom: var(--s2); }
.footer-col .btn { justify-self: start; margin-bottom: var(--s1); }
.footer-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; font-size: var(--fs-sm); color: var(--muted);
  transition: color var(--t);
}
.footer-link:hover { color: var(--text); }
.footer-link-btn { border: none; background: none; padding: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--muted);
}

/* --- sticky cta + toast --- */

.sticky-cta {
  position: fixed; left: var(--s2); right: var(--s2); bottom: var(--s2); z-index: 75;
  display: flex; align-items: center; gap: var(--s2);
  padding: 12px 14px;
  border: 1px solid var(--border-hi); border-radius: var(--r);
  background: rgba(11, 14, 26, .98);
  box-shadow: var(--shadow-lg);
  animation: ctaIn .45s var(--ease-out);
}
@keyframes ctaIn { from { opacity: 0; transform: translateY(20px); } }
.sticky-cta-copy { display: grid; gap: 1px; flex: 1; min-width: 0; }
.sticky-cta-copy b { font-size: .95rem; }
.sticky-cta-copy span { font-size: var(--fs-xs); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cta-dismiss {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: none; border-radius: var(--pill);
  background: transparent; color: var(--muted); cursor: pointer;
}
.sticky-cta-dismiss:hover { background: var(--surface-hi); color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--border-hi); border-radius: var(--pill);
  background: var(--surface-hi); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .34s var(--ease-out);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } }

/* --- reveal --- */

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .72s var(--ease-out), transform .72s var(--ease-out);
  transition-delay: calc(var(--i, 0) * .06s);
}
.no-js .reveal, .reveal.is-instant { opacity: 1; transform: none; }

/* ==========================================================================
   Inner page heroes, sample flags, categories, legal pages
   ========================================================================== */

/* Inner pages get a shorter version of the same hero so the site reads as one
   thing, without every page demanding a full screen before its content. */
.hero-compact { min-height: min(74svh, 660px); padding-block: var(--s5) var(--s6); }
.hero-compact .hero-title { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 20ch; }
.hero-compact .hero-lede { max-width: 58ch; }

/* --- sample flag ---------------------------------------------------------- */

.sample-tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: var(--r-sm);
  border: 1px solid rgba(242, 184, 75, .4);
  background: rgba(0, 0, 0, .74); color: var(--warning);
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  white-space: nowrap;
}
/* On artwork it floats; in a text run it sits inline. */
.ecard-media .sample-tag,
.emini-art .sample-tag,
.fcard-art .sample-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.ecard-media, .emini-art, .fcard-art { position: relative; }
.erow-org .sample-tag { margin-left: 8px; }
.event-tags .sample-tag { padding: 4px 10px; font-size: var(--fs-xs); }

/* --- categories as oversized rows ---------------------------------------- */

.crow-section { padding-bottom: var(--s7); }
.crows { display: grid; border-top: 1px solid var(--border); }
.crow {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center; gap: var(--s3);
  padding: clamp(18px, 2.6vw, 30px) var(--s3);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  transition: color var(--t);
}
/* The wash sweeps in from the left on hover, focus and touch. */
.crow-fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--crow-accent, var(--primary));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.crow:hover .crow-fill,
.crow:focus-visible .crow-fill,
.crow.is-touched .crow-fill { transform: scaleX(1); }

.crow-primary   { --crow-accent: #241F52; }
.crow-secondary { --crow-accent: #3E1B31; }
.crow-accent    { --crow-accent: #1D2450; }
.crow-success   { --crow-accent: #12332A; }
.crow-warning   { --crow-accent: #33270F; }

.crow-num {
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em;
  color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color var(--t);
}
.crow-main { display: grid; gap: 4px; min-width: 0; }
.crow-name {
  font-size: clamp(1.35rem, 3.4vw, 2.4rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
}
.crow-tag { font-size: var(--fs-sm); color: var(--muted); transition: color var(--t); }
.crow-count {
  display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap;
}
.crow-count b {
  font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.crow-count i { font-style: normal; font-size: var(--fs-sm); color: var(--muted); transition: color var(--t); }
.crow-go { color: var(--muted); transition: transform var(--t), color var(--t); }

.crow:hover .crow-tag,
.crow:hover .crow-count i,
.crow:hover .crow-num,
.crow:hover .crow-go { color: var(--text); }
.crow:hover .crow-go { transform: translateX(6px); }

.crow-foot { margin-top: var(--s3); }

/* --- legal pages ---------------------------------------------------------- */

.legal-wrap { padding-block: var(--s4) var(--s8); scroll-margin-top: var(--header-h); }
.legal-grid {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s6); align-items: start;
}
.legal-toc {
  position: sticky; top: calc(var(--header-h) + var(--s3));
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.legal-toc-title {
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: .11em; color: var(--muted); margin-bottom: var(--s2);
}
.legal-toc nav { max-height: min(52vh, 460px); overflow-y: auto; scrollbar-width: thin; }
.legal-toc ol { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }
.legal-toc a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
  align-items: baseline;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.35;
  transition: background var(--t), color var(--t);
}
.legal-toc a:hover { background: var(--surface-alt); color: var(--text); }
.legal-toc a.is-active { background: var(--surface-hi); color: var(--text); font-weight: 600; }
.toc-num { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; opacity: .7; }
.legal-updated {
  margin-top: var(--s3); padding-top: var(--s2);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--muted); line-height: 1.6;
}
.legal-updated time { color: var(--text); font-weight: 600; }

.legal-body { display: grid; gap: var(--s5); min-width: 0; }
.legal-section { scroll-margin-top: calc(var(--header-h) + var(--s3)); }
.legal-num {
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .12em;
  color: var(--primary-ink); font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.legal-section h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-bottom: var(--s2); }
.legal-section p { color: var(--muted); line-height: 1.75; max-width: 68ch; margin-bottom: var(--s2); }
.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
  margin: var(--s2) 0; padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
.legal-list-title {
  font-size: var(--fs-xs) !important; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted) !important; margin-bottom: var(--s2) !important;
}
.legal-list ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.legal-list li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
  font-size: var(--fs-sm); color: var(--muted);
}
.legal-list .icon { color: var(--success); }

.legal-callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
  padding: var(--s3); margin-top: var(--s2);
  border: 1px solid var(--border-hi); border-left: 3px solid var(--warning);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text) !important; font-weight: 500;
}
.legal-callout .icon { color: var(--warning); margin-top: 2px; }

.legal-contact { padding-top: var(--s4); border-top: 1px solid var(--border); }
.legal-meta { font-size: var(--fs-sm); opacity: .8; }

.legal-other {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--t), background var(--t);
}
.legal-other:hover { border-color: var(--primary); background: var(--surface-alt); }
.legal-other-label {
  grid-column: 1; font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.legal-other-title { grid-column: 1; font-size: 1.1rem; font-weight: 700; }
.legal-other .icon { grid-row: span 2; color: var(--primary-ink); transition: transform var(--t); }
.legal-other:hover .icon { transform: translateX(5px); }

/* --- chrome additions ----------------------------------------------------- */

.mobile-nav-note {
  display: flex; align-items: center; gap: 9px;
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm); color: var(--muted);
}
.footer-status { display: flex; align-items: center; gap: 9px; }

/* --- page transition ------------------------------------------------------ */

.page-transition {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--bg);
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.is-leaving {
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.page-transition-mark {
  font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; color: var(--muted);
  opacity: 0; transition: opacity .3s .15s;
}
.page-transition.is-leaving .page-transition-mark { opacity: 1; }
.page-transition-mark b { color: var(--text); font-weight: 700; }

/* ==========================================================================
   Features: stat band, capability spine, upgraded next cards
   ========================================================================== */

.stat-band { padding-block: var(--s5); border-bottom: 1px solid var(--border); }
.fstat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s2); margin: 0;
}
.fstat { padding-right: var(--s3); border-right: 1px solid var(--border); }
.fstat:last-child { border-right: none; }
.fstat dt {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.04em;
  line-height: 1; color: var(--primary-ink); font-variant-numeric: tabular-nums;
}
.fstat dd { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); max-width: 18ch; }

/* --- the spine ------------------------------------------------------------ */

.spine-layout {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  gap: var(--s6); align-items: start;
}

.spine-rail {
  position: sticky; top: calc(var(--header-h) + var(--s4));
  display: grid; gap: var(--s2);
}
.spine-readout { display: grid; gap: var(--s2); }
.spine-count { display: flex; align-items: baseline; gap: 6px; }
.spine-count b {
  font-size: 3.4rem; font-weight: 700; letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.spine-count i {
  font-style: normal; font-size: 1.1rem; font-weight: 600;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.spine-now {
  font-size: 1.05rem; font-weight: 600; color: var(--primary-ink);
  min-height: 2.6em; line-height: 1.3;
}
.spine-track {
  height: 3px; border-radius: var(--circle);
  background: var(--surface-hi); overflow: hidden;
}
.spine-fill {
  display: block; height: 100%; width: 0; border-radius: var(--circle);
  background: var(--primary);
  transition: width .3s var(--ease-out);
}

.spine-dots { list-style: none; display: grid; gap: 1px; margin: var(--s2) 0 0; padding: 0; }
.spine-dot {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 12px;
  width: 100%; min-height: 38px; padding: 7px 9px;
  border: none; border-radius: var(--r-sm);
  background: none; color: var(--muted);
  font-size: var(--fs-sm); text-align: left; cursor: pointer;
  transition: background var(--t), color var(--t);
}
.spine-dot-mark {
  width: 7px; height: 7px; border-radius: var(--circle);
  background: var(--border-hi); flex: none;
  transition: background var(--t), transform var(--t);
}
.spine-dot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spine-dot:hover { color: var(--text); background: var(--surface); }
.spine-dot.is-current { color: var(--text); font-weight: 600; }
.spine-dot.is-current .spine-dot-mark { background: var(--primary); transform: scale(1.5); }

/* --- the track and its nodes ---------------------------------------------- */

.spine-items {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s3);
  position: relative;
}
/* The line runs behind the nodes, down the left edge of the column. */
.spine-items::before {
  content: ''; position: absolute;
  left: 7px; top: 12px; bottom: 12px; width: 1px;
  background: var(--border);
}

.spine-item { position: relative; padding-left: var(--s5); }
.spine-node {
  position: absolute; left: 0; top: 26px;
  width: 15px; height: 15px; border-radius: var(--circle);
  border: 2px solid var(--border-hi);
  background: var(--bg);
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.spine-item.is-current .spine-node { border-color: var(--primary); background: var(--primary); transform: scale(1.25); }
.spine-item.is-past .spine-node { border-color: var(--primary); }

.spine-card {
  padding: var(--s4);
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.spine-item.is-current .spine-card { border-color: var(--border-hi); background: var(--surface-alt); }

.spine-top { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.spine-num {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em;
  color: #6B7396; font-variant-numeric: tabular-nums; line-height: 1;
}
.spine-glyph {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--r-sm); background: var(--bg); color: var(--primary-ink);
  border: 1px solid var(--border);
}
.spine-state {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  padding: 5px 11px; border-radius: var(--r-sm);
  background: rgba(79, 191, 136, .12); color: var(--success);
  font-size: var(--fs-xs); font-weight: 700;
}
.spine-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.spine-line { margin-top: 7px; font-size: 1.02rem; font-weight: 600; color: var(--primary-ink); }
.spine-desc { margin-top: 10px; color: var(--muted); line-height: 1.7; max-width: 62ch; }
.spine-points {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px var(--s3);
  margin: var(--s3) 0 0; padding: var(--s2) 0 0;
  border-top: 1px solid var(--border);
}
.spine-points li {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--muted);
}
.spine-points .icon { color: var(--success); flex: none; }

/* --- next cards, upgraded -------------------------------------------------- */

.next-card { position: relative; isolation: isolate; overflow: hidden; }
.next-card-wash {
  position: absolute; inset: 0; z-index: -1;
  background: var(--surface-alt);
  transform: translateY(100%);
  transition: transform .45s var(--ease-out);
}
.next-card:hover .next-card-wash,
.next-card:focus-visible .next-card-wash { transform: translateY(0); }

.next-card-index {
  margin-left: auto;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em;
  color: var(--border-hi); font-variant-numeric: tabular-nums; line-height: 1;
  transition: color var(--t);
}
.next-card:hover .next-card-index { color: var(--primary-ink); }
.next-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2); margin-top: 4px;
  padding-top: var(--s2); border-top: 1px solid var(--border);
}

/* --- what we are not building --------------------------------------------- */

.not-list {
  list-style: none; display: grid; gap: 1px; margin: 0; padding: 0;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.not-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3); align-items: start;
  padding: var(--s3); background: var(--surface);
}
.not-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(233, 103, 103, .12); color: var(--error);
}
.not-main { display: grid; gap: 4px; min-width: 0; }
.not-main b { font-size: 1.05rem; font-weight: 700; }
.not-main i { font-style: normal; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

.not-building-section .close-actions { justify-content: flex-start; margin-top: var(--s4); }
.not-building-section { padding-bottom: var(--s8); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .event-body { grid-template-columns: minmax(0, 1fr); }
  .event-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .soon-grid { grid-template-columns: minmax(0, 1fr); }
  .soon-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .soon-head-inner { flex-direction: column-reverse; align-items: flex-start; gap: var(--s3); }
  /* Below this the rail stops being a column and becomes a compact strip
     pinned under the header, so the progress is still visible while reading. */
  .spine-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .spine-rail {
    position: sticky; top: calc(var(--header-h) - 1px); z-index: 30;
    padding: 12px var(--s2);
    border: 1px solid var(--border); border-radius: var(--r);
    /* Fully opaque: at 94% the card heading showed through the strip. */
    background: var(--bg);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .9);
  }
  /* Clear the strip when a jump link scrolls a card to the top. */
  .spine-item { scroll-margin-top: calc(var(--header-h) + 104px); }
  .spine-readout {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center; gap: var(--s2) var(--s3);
  }
  .spine-count b { font-size: 1.8rem; }
  .spine-now { min-height: 0; font-size: var(--fs-sm); }
  .spine-track { grid-column: 1 / -1; }
  .spine-nav { display: none; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .legal-toc { position: static; }
  .legal-toc nav { max-height: none; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .faq-media { max-width: 420px; }
  .filter-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --s7: 72px; --s8: 88px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-quiet { display: none; }
  .feed-head { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .week-head { grid-template-columns: minmax(0, 1fr); }
  .week-media { max-width: 340px; }
  .featured-layout { grid-template-columns: minmax(0, 1fr); }
  .event-hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .event-hero-art { max-width: 260px; aspect-ratio: 4 / 3; }
  .dev-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  /* With the nav links hidden the actions block had nothing pushing it to the
     right edge, which left a gap beside the hamburger. */
  .header-actions { margin-left: auto; }
  .crow { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2); }
  .crow-go { display: none; }
  .dev-form-wrap { position: static; }
  .book-bar { display: flex; }
  .book-bar + * { padding-bottom: 80px; }
  body.page-event { padding-bottom: 76px; }
}

@media (max-width: 700px) {
  :root { --s7: 60px; --s8: 72px; --header-h: 62px; }
  .shell { padding-inline: var(--s2); }
  :root { --rail-gutter: max(var(--s2), calc(50% - var(--shell) / 2 + var(--s2))); }
  .hero { min-height: calc(100svh - var(--header-h)); padding-block: var(--s5) var(--s6); }
  .hero-title { max-width: 14ch; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .dev-form-wrap { padding: var(--s3); }
  .dev-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .spine-item { padding-left: var(--s4); }
  .spine-card { padding: var(--s3); }
  .spine-top { flex-wrap: wrap; }
  .spine-state { margin-left: 0; }
  .fstat { padding-right: var(--s2); }
  .fstat:nth-child(2n) { border-right: none; }
  .hero-compact { min-height: auto; padding-block: var(--s5) var(--s5); }
  .hero-compact .hero-title { max-width: none; }
  .crow {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start; gap: 4px var(--s2);
    padding: var(--s3) var(--s2);
  }
  .crow-count { grid-column: 2; margin-top: 4px; }
  .legal-toc { padding: var(--s2); }
  .legal-section p { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }

  .filter-toggle { display: inline-flex; }
  .filter-advanced { display: none; }
  .filter-advanced.is-open { display: grid; }
  .filter-selects { grid-template-columns: minmax(0, 1fr); }
  .filter-sticky { top: calc(var(--header-h) - 1px); }

  .erow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s2); padding: var(--s2); }
  .erow-art { display: none; }
  .erow-end { flex-direction: column; align-items: flex-end; gap: 8px; }

  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .events-grid { grid-template-columns: minmax(0, 1fr); }
  .wcol { flex-basis: 82vw; min-width: 82vw; }
  .crail-item { width: 78vw; }
  .fcard { width: 78vw; }

  .profile-top { flex-direction: column; align-items: flex-start; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .submit-inner, .guest-saved-inner { padding: var(--s3); }
  .close-inner { padding: var(--s4) var(--s3); }
  .modal-panel { padding: var(--s4) var(--s3) var(--s3); border-radius: var(--r-lg); }
  .auth-actions { flex-direction: column-reverse; }
  .sticky-cta { bottom: var(--s1); }
  .btn-icon span { display: none; }
  .event-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(1.85rem, 8.4vw, 2.5rem); }
  .feed-tabs { padding: 10px; }
  .close-points { gap: var(--s2); }
  .stat dt { font-size: 2.2rem; }
}

/* Ultrawide: cap the shell and let the rails breathe rather than stretching. */
@media (min-width: 1700px) {
  :root { --shell: 1440px; }
  .hero { min-height: min(88svh, 940px); }
}

/* ==========================================================================
   Motion and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track, .uni-track { animation: none; }
  .preloader { display: none; }
  .hero-video { display: none; }
}

@media print {
  .site-header, .mobile-nav, .site-footer, .sticky-cta, .book-bar,
  .modal, .preloader, .ticker-band, .save-btn, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
