/* ==========================================================================
   NAESE // shared stylesheet
   v1.0 First Signal — design direction validated 2026-05-10
   Uses native CSS nesting (Chrome 112+, Safari 16.5+, Firefox 117+)
   ========================================================================== */

:root {
  --bg: #0A0A0B;
  --bg-2: #131316;
  --bg-card: #050507;        /* darker than --bg — for content cards over the gradient */
  --bg-zone: rgba(0, 0, 0, 0.45);  /* translucent zone — sections cover most of gradient, cards stack on top */
  --fg: #F0EDE6;
  --fg-dim: #807D77;
  --fg-faint: #4A4842;
  --rule: #1F1F22;

  /* Dual-accent system */
  --accent: #D946EF;         /* fuchsia / electric violet — emphasis */
  --accent-deep: #A21CAF;    /* deeper fuchsia for gradients */
  --link: #06B6D4;           /* cyan — interactive */
  --link-deep: #0E7490;      /* deeper cyan for gradients */

  /* Reserved for glitch RGB-shift only */
  --hot: #FF3D00;
  --signal: #19C37D;

  /* Gradient tokens */
  --grad-primary: linear-gradient(135deg, var(--accent) 0%, var(--link) 100%);
  --grad-warm: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  --grad-cool: linear-gradient(135deg, var(--link-deep) 0%, var(--link) 100%);

  --f-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  isolation: isolate;
  position: relative;

  /* Fixed ambient gradient — does not scroll. Drifts + pulses gently. */
  &::before {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(circle at 78% 22%, rgba(217,70,239,0.20) 0%, transparent 38%),
      radial-gradient(circle at 18% 78%, rgba(6,182,212,0.16) 0%, transparent 42%),
      radial-gradient(circle at 50% 55%, rgba(162,28,175,0.08) 0%, transparent 48%);
    filter: blur(72px);
    animation: bg-drift 14s ease-in-out infinite;
    will-change: transform;
  }
}

@keyframes bg-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-13%, 8%) scale(1.12); }
  66%      { transform: translate(10%, -6%) scale(0.92); }
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ─── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── CTA BUTTONS (global — works on <a> and <button>) ─── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  isolation: isolate;
  transition: color 220ms ease, border-color 220ms ease;
}

/* Gradient overlay sits behind the text; fades in on hover. */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.cta-primary {
  color: var(--link);
  border-color: var(--link);
}

.cta-primary::before {
  background: var(--grad-primary);
}

.cta-primary:hover {
  color: var(--bg);
  border-color: var(--accent);
}

.cta-primary:hover::before { opacity: 1; }

.cta-secondary {
  color: var(--accent);
  border-color: var(--accent);
}

.cta-secondary::before {
  background: linear-gradient(90deg, var(--accent), var(--link));
}

.cta-secondary:hover {
  color: var(--bg);
  border-color: var(--link);
}

.cta-secondary:hover::before { opacity: 1; }

/* Larger variant for form submit buttons (more visual weight) */
button.cta {
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ─── PATH LABEL ─────────────────────────────────── */
.path {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;

  & .slash { color: var(--accent); }
}

/* ─── NAV ────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,11,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);

  .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
  }

  .mark {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
  }

  .mark-logo {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
  }

  .meta {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .links {
    display: flex;
    gap: 32px;
    align-items: center;

    & a {
      font-size: 13px;
      color: var(--fg-dim);
      transition: color 160ms ease;
      position: relative;

      &::after {
        content: '';
        position: absolute;
        left: 0;
        right: 100%;
        bottom: -6px;
        height: 1px;
        background: var(--link);
        transition: right 240ms ease;
      }

      &:hover { color: var(--fg); }
      &:hover::after { right: 0; }

      &[aria-current="page"] {
        color: var(--fg);

        &::after {
          right: 0;
          background: var(--grad-primary);
        }
      }
    }
  }

  .nav-tail {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .nav-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color 160ms ease;

  &:hover { border-color: var(--link); }

  & span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--fg);
    transition: transform 220ms ease, opacity 220ms ease;
  }

  &[aria-expanded="true"] {
    & span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    & span:nth-child(2) { opacity: 0; }
    & span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  }
}

.nav-mobile-ctas {
  display: none;
  gap: 10px;
  padding: 14px 32px 16px;
  border-top: 1px solid var(--rule);
  justify-content: space-between;

  & .cta {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 11px;
  }
}

/* Mobile nav drawer (right-slide). Visible only at mobile breakpoint. */
.nav-mobile-menu {
  display: none;
}

.nav-mobile-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--fg-dim);
  font-family: var(--f-mono);
  font-size: 20px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  z-index: 1;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-mobile-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 55;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-card);
    border-left: 1px solid var(--rule);
    z-index: 60;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.32, 0.72, 0.27, 1);
    overflow-y: auto;
    padding-top: 72px;          /* clearance for the floating close button */
  }
  .nav-mobile-menu[data-open="true"] {
    transform: translateX(0);
  }
  .nav-mobile-menu[data-open="true"] + .nav-backdrop {
    display: block;
    animation: fade-in 200ms ease;
  }
  .nav-mobile-close { display: flex; }

  .nav-mobile-menu a {
    display: block;
    padding: 18px 28px;
    border-bottom: 1px solid var(--rule);
    color: var(--fg-dim);
    font-size: 15px;
    font-family: var(--f-display);
    font-weight: 500;
    transition: color 160ms, background 160ms, padding-left 200ms ease;
  }

  .nav-mobile-menu a:hover {
    color: var(--fg);
    background: var(--bg-2);
    padding-left: 34px;
  }

  .nav-mobile-menu a[aria-current="page"] {
    color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: 26px;
  }
}

/* ─── HERO (HOME) ────────────────────────────────── */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;

  & .container {
    position: relative;
    z-index: 2;
  }

  & .label-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
  }

  & .tick {
    
    
    animation: tick 1.4s steps(2) infinite;
  }

  & h1 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(54px, 11vw, 168px);
    line-height: 0.88;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin-bottom: 40px;
  }

  & .tagline {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(20px, 2.4vw, 32px);
    line-height: 1.25;
    color: var(--fg);
    max-width: 780px;
    margin-bottom: 64px;

    & em {
      font-style: normal;
      color: var(--accent);
    }
  }
}

@keyframes tick {
  50% { opacity: 0.25; }
}

/* ─── PAGE HERO (NON-HOME) ───────────────────────── */
.page-hero {
  padding: 96px 0 56px;
  position: relative;
  border-bottom: 1px solid var(--rule);

  & .container {
    position: relative;
    z-index: 2;
  }

  & .label-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;

    & .tick {
      
      animation: tick 1.4s steps(2) infinite;
    }
  }

  & h1 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
  }

  & .lede {
    font-family: var(--f-display);
    font-weight: 500;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.4;
    color: var(--fg);
    max-width: 720px;

    & em {
      font-style: normal;
      color: var(--accent);
    }
  }
}

/* ─── HERO FACTS (HOME) ──────────────────────────── */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);

  & .fact {
    padding: 28px 24px;
    border-right: 1px solid var(--rule);

    &:last-child { border-right: none; }

    & .k {
      font-family: var(--f-mono);
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--fg-dim);
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    & .v {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 22px;
      letter-spacing: -0.01em;
    }
  }
}

/* ─── COUNTDOWN ──────────────────────────────────── */
.countdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
  margin-top: -1px;        /* overlap with hero-facts bottom border */
  position: relative;
}

.countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-primary);
  opacity: 0.6;
}

.cd-cell {
  padding: 22px 16px 20px;
  border-right: 1px solid var(--rule);
  text-align: center;
  position: relative;
}

.cd-cell:last-child { border-right: none; }

.cd-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 80ms ease-out;
}

/* Subtle pulse when the seconds cell ticks */
.cd-cell[data-unit="seconds"] .cd-num.tick {
  transform: scale(1.1);
}

.cd-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-top: 10px;
}

.cd-target {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-faint);
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
}

.cd-target .pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 700px) {
  .countdown {
    grid-template-columns: repeat(5, 1fr);
  }
  .cd-cell {
    padding: 16px 4px 14px;
  }
  .cd-num {
    font-size: clamp(22px, 6.5vw, 32px);
  }
  .cd-label {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
}

/* Hero ambient grid lines */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(217,70,239,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6,182,212,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ─── GLITCH WORDMARK ────────────────────────────── */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--fg);

  &::before, &::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  &::before {
    color: var(--hot);
    transform: translate(0, 0);
    clip-path: inset(0 0 88% 0);
    mix-blend-mode: screen;
    opacity: 0.55;
    animation: g-shift-a 6s steps(1) infinite;
  }

  &::after {
    color: var(--signal);
    transform: translate(0, 0);
    clip-path: inset(72% 0 0 0);
    mix-blend-mode: screen;
    opacity: 0.45;
    animation: g-shift-b 6s steps(1) infinite;
  }

  &:hover {
    &::before { animation: g-shift-a 0.6s steps(1) infinite; opacity: 0.85; }
    &::after  { animation: g-shift-b 0.6s steps(1) infinite; opacity: 0.75; }
  }
}

@keyframes g-shift-a {
  0%, 92%, 100% { transform: translate(0,0); clip-path: inset(0 0 88% 0); }
  93%   { transform: translate(-3px, 0); clip-path: inset(10% 0 60% 0); }
  94%   { transform: translate(2px, 0);  clip-path: inset(35% 0 30% 0); }
  95%   { transform: translate(-1px, 0); clip-path: inset(60% 0 20% 0); }
  96%   { transform: translate(0, 0);    clip-path: inset(0 0 88% 0); }
}

@keyframes g-shift-b {
  0%, 92%, 100% { transform: translate(0,0); clip-path: inset(72% 0 0 0); }
  93%   { transform: translate(2px, 0);  clip-path: inset(40% 0 20% 0); }
  94%   { transform: translate(-2px, 0); clip-path: inset(60% 0 10% 0); }
  95%   { transform: translate(1px, 0);  clip-path: inset(20% 0 50% 0); }
  96%   { transform: translate(0, 0);    clip-path: inset(72% 0 0 0); }
}

/* ─── SECTIONS ───────────────────────────────────── */
section {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-zone);
  position: relative;

  &.room-strip { background: transparent; padding: 0; }
}

footer { background: var(--bg-zone); position: relative; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;

  & h2 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
  }

  & .index {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* ─── MANIFESTO ──────────────────────────────────── */
.manifesto p {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  max-width: 920px;

  & + p { margin-top: 32px; }
  & .accent { color: var(--accent); }
}

/* ─── IMAGE PLACEHOLDERS ─────────────────────────── */
.img-ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(217,70,239,0.06) 0%, rgba(6,182,212,0.06) 100%),
    repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(255,255,255,0.025) 12px, rgba(255,255,255,0.025) 24px),
    var(--bg-2);
  border: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 18px;
  overflow: hidden;

  & .marker {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  & .desc {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--fg-dim);
    line-height: 1.5;
    max-width: 32ch;
  }

  &.aspect-16-9 { aspect-ratio: 16 / 9; }
  &.aspect-21-9 { aspect-ratio: 21 / 9; }
  &.aspect-3-2  { aspect-ratio: 3 / 2; }
  &.aspect-1-1  { aspect-ratio: 1 / 1; }
}

.room-strip .img-ph { aspect-ratio: 21 / 9; border: none; }

/* Hero video (drop-in ready) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

/* ─── PILLARS ────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.pillar {
  background: var(--bg-card);
  padding: 48px 40px;
  transition: background 220ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--grad-primary);
    transition: width 380ms cubic-bezier(0.65, 0, 0.35, 1);
  }

  &:hover { background: var(--bg-2); }
  &:hover::before { width: 100%; }

  & .img-ph {
    margin-bottom: 32px;
    border-radius: 0;
  }

  & .num {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--fg-faint);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
  }

  & h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 64px;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--accent);
    line-height: 1;
  }

  & .sub {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  & p {
    font-size: 16px;
    color: var(--fg);
    max-width: 460px;
  }
}

.pillar-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  background: linear-gradient(90deg, var(--link), var(--link)) no-repeat left bottom / 0 1px;
  transition: background-size 280ms ease, color 200ms ease;
  padding-bottom: 4px;

  &:hover {
    background-size: 100% 1px;
    background-image: var(--grad-primary);
    color: var(--accent);
  }

  /* Stretched-link: makes the entire pillar clickable */
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
  }
}

/* ─── SCHEDULE STRIP ─────────────────────────────── */
.schedule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.day-card {
  background: var(--bg-card);
  padding: 36px 28px;
  transition: background 200ms ease;

  &:hover { background: var(--bg-2); }

  & .dow {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-faint);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  & .date {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.015em;
    line-height: 1;
    margin-bottom: 22px;

    & .month {
      color: var(--accent);
      font-size: 18px;
      margin-right: 8px;
      vertical-align: 4px;
    }
  }

  & ul {
    list-style: none;
    border-top: 1px solid var(--rule);
    padding-top: 18px;
  }

  & li {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
    color: var(--fg);

    & .t {
      font-family: var(--f-mono);
      font-size: 11px;
      color: var(--fg-dim);
      letter-spacing: 0.04em;
      display: block;
      margin-bottom: 2px;
    }
  }
}

/* ─── PROGRAMS GRID ──────────────────────────────── */
.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.program-card {
  background: var(--bg-card);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 220ms ease;
  overflow: hidden;
  cursor: pointer;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 360ms cubic-bezier(0.65, 0, 0.35, 1);
  }

  &:hover { background: var(--bg-2); }
  &:hover::before { transform: scaleX(1); }

  & .pkey {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    text-transform: uppercase;
    margin-bottom: 18px;

    & .slash { color: var(--accent); }
  }

  & h4 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  & p {
    font-size: 15px;
    color: var(--fg);
    margin-bottom: 24px;
    flex: 1;
  }

  & a.more {
    align-self: flex-start;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--link);
    background: linear-gradient(90deg, var(--link), var(--link)) no-repeat left bottom / 0 1px;
    padding-bottom: 4px;
    transition: background-size 280ms ease, color 200ms ease;

    &:hover {
      background-size: 100% 1px;
      background-image: var(--grad-primary);
      color: var(--accent);
    }

    /* Stretched-link */
    &::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
    }
  }
}

/* ─── SPEC TABLE ─────────────────────────────────── */
.spec {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--rule);

  & .k, & .v {
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
  }

  & .k {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-right: 24px;
  }

  & .v {
    font-family: var(--f-body);
    font-size: 17px;

    & strong {
      color: var(--accent);
      font-weight: 600;
    }
  }
}

/* ─── BADGES ─────────────────────────────────────── */
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.badge-card {
  border: 1px solid var(--rule);
  padding: 36px 32px;
  position: relative;
  background: var(--bg-card);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 280ms ease;

  &:not(.feature)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(217,70,239,0.10), transparent 60%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
  }

  &:hover {
    border-color: var(--link);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px -16px rgba(6,182,212,0.4);
  }

  &:not(.feature):hover::before { opacity: 1; }

  &.feature {
    border-color: transparent;
    z-index: 0;

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      padding: 1px;
      border-radius: inherit;
      background: linear-gradient(135deg, var(--accent) 0%, var(--link) 50%, var(--accent) 100%);
      background-size: 200% 200%;
      -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
      animation: feature-border 6s ease-in-out infinite;
      pointer-events: none;
      z-index: -1;
    }

    &::before {
      content: 'CAP // 150';
      position: absolute;
      top: -10px;
      left: 24px;
      background: var(--bg-card);
      padding: 0 8px;
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.12em;
      color: var(--accent);
      z-index: 1;
    }
  }

  & .tier {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  & .name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
  }

  & .price {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 56px;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;

    & .currency {
      font-size: 24px;
      vertical-align: top;
      color: var(--fg-dim);
      margin-right: 4px;
    }
  }

  & .desc {
    font-size: 14px;
    color: var(--fg-dim);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }
}

@keyframes feature-border {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ─── PROSE BLOCKS (used on content pages) ───────── */
.prose {
  max-width: 760px;

  & p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--fg);

    &.lede {
      font-family: var(--f-display);
      font-weight: 500;
      font-size: 22px;
      line-height: 1.45;
      color: var(--fg);
      margin-bottom: 32px;
    }
  }

  & h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 16px;
    text-transform: uppercase;
  }

  & ul {
    list-style: none;
    margin-bottom: 20px;

    & li {
      position: relative;
      padding-left: 22px;
      margin-bottom: 10px;
      font-size: 16px;
      line-height: 1.6;

      &::before {
        content: '//';
        position: absolute;
        left: 0;
        color: var(--accent);
        font-family: var(--f-mono);
        font-size: 12px;
        top: 4px;
      }
    }
  }

  & a {
    color: var(--link);
    border-bottom: 1px solid currentColor;
    transition: color 160ms ease;

    &:hover { color: var(--accent); }
  }
}

/* ─── CALLOUT (highlighted block) ────────────────── */
.callout {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 32px 36px;
  position: relative;
  margin: 32px 0;
  overflow: hidden;
  transition: background 220ms ease;

  /* Same gradient top-edge sweep on hover as .program-card */
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 360ms cubic-bezier(0.65, 0, 0.35, 1);
  }

  &:hover { background: var(--bg-2); }
  &:hover::before { transform: scaleX(1); }

  & .callout-key {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  & h4 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
  }

  & p {
    font-size: 16px;
    color: var(--fg);
    line-height: 1.6;
  }
}

/* ─── FORMS ──────────────────────────────────────── */
.contact-form {
  max-width: 720px;

  & .form-row {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  & label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    text-transform: uppercase;
  }

  & input,
  & textarea,
  & select {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 16px;
    padding: 14px 16px;
    transition: border-color 200ms ease, background 200ms ease;
    width: 100%;
  }

  & input:focus,
  & textarea:focus,
  & select:focus {
    outline: none;
    border-color: var(--link);
    background: var(--bg-2);
  }

  & textarea {
    resize: vertical;
    font-family: var(--f-body);
    line-height: 1.55;
  }

  & .form-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  & button[type="submit"] {
    cursor: pointer;
    background: transparent;
  }

  & .form-note {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.04em;
  }
}

/* ════════════════════════════════════════════════════════════════
   PORTAL / BACKPACK COMPONENTS
   Used by /portal/* and eventually .NET project pages
   ════════════════════════════════════════════════════════════════ */

/* ─── AUTH CARD (login, signup, forgot, reset, MFA) ─── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-shell-nav {
  padding: 22px 32px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-shell-nav .mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
}

.auth-shell-nav .mark-logo { width: 32px; height: 32px; }

.auth-shell-nav .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.auth-shell-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.auth-card .auth-key {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.auth-card h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.auth-card .lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.auth-card .form-row {
  margin-bottom: 20px;
}

.auth-card .form-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.auth-card .form-actions button.cta {
  width: 100%;
}

.auth-card .auth-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-card .auth-meta a {
  color: var(--link);
  border-bottom: 1px solid currentColor;
  transition: color 160ms ease;
}

.auth-card .auth-meta a:hover { color: var(--accent); }

.auth-shell-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 600px) {
  .auth-card { padding: 36px 28px; }
  .auth-shell-nav { padding: 16px 20px; }
  .auth-shell-footer { padding: 16px 20px; flex-direction: column; gap: 6px; }
}

/* ─── MFA 6-DIGIT INPUT ─── */
.mfa-code {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 8px 0 16px;
}

.mfa-code input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 16px 0;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--fg);
  transition: border-color 200ms ease, background 200ms ease;
}

.mfa-code input:focus {
  outline: none;
  border-color: var(--link);
  background: var(--bg-2);
}

.mfa-code input.filled {
  border-color: var(--accent);
}

/* ─── APP SHELL (post-login dashboards) ─── */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
}

.app-sidebar {
  grid-area: sidebar;
  background: var(--bg-card);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-sidebar .brand {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.app-sidebar .sidebar-close {
  display: none;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--fg-dim);
  font-family: var(--f-mono);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: color 160ms ease, border-color 160ms ease;
}

.app-sidebar .sidebar-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 55;
  cursor: pointer;
}

.app-sidebar .brand img { width: 28px; height: 28px; }

.app-sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  background: transparent;
  position: static;
  backdrop-filter: none;
  border-bottom: none;
}

.app-sidebar .nav-section {
  padding: 16px 24px 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.app-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  font-size: 14px;
  color: var(--fg-dim);
  border-left: 2px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
  position: relative;
}

.app-sidebar .nav-item:hover {
  color: var(--fg);
  background: var(--bg-2);
}

.app-sidebar .nav-item[aria-current="page"] {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(217,70,239,0.06), transparent);
}

.app-sidebar .nav-item .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-topbar {
  grid-area: topbar;
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-topbar .crumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.app-topbar .crumbs .sep { color: var(--fg-faint); margin: 0 8px; }

.app-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-topbar .icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--fg-dim);
  position: relative;
  transition: color 160ms ease, border-color 160ms ease;
}

.app-topbar .icon-btn:hover {
  color: var(--fg);
  border-color: var(--link);
}

.app-topbar .icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.app-topbar .user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: border-color 160ms ease;
}

.app-topbar .user-menu:hover { border-color: var(--rule); }

.app-topbar .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bg);
}

.app-topbar .user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-topbar .user-meta .name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.app-topbar .user-meta .role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.app-main {
  grid-area: main;
  padding: 32px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }
  .app-sidebar[data-open="true"] { transform: translateX(0); }
  .app-sidebar .sidebar-close { display: flex; }
  .app-sidebar[data-open="true"] + .sidebar-backdrop {
    display: block;
    animation: fade-in 200ms ease;
  }
  .app-topbar {
    padding: 0 16px;
    gap: 12px;
  }
  .app-topbar .crumbs { display: none; }
  .app-topbar .user-meta { display: none; }
  .app-topbar .user-menu { padding: 4px; border: none; }
  .app-topbar .user-menu:hover { background: var(--bg-2); }
  .app-main { padding: 20px; }
}

@media (max-width: 700px) {
  .app-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .app-page-head .header-actions {
    width: 100%;
  }
  .app-page-head .header-actions .cta {
    flex: 1;
  }
}

/* Dashboard-specific grids (used in dashboard.html) */
.dash-badge-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}

.dash-addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 700px) {
  .dash-badge-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: start;
  }
  .dash-badge-grid .img-ph { width: 100%; max-width: 200px; }
  .dash-addons-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── PAGE HEADER (inside app-main) ─── */
.app-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.app-page-head .title-block h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.app-page-head .title-block .subtitle {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.5;
}

.app-page-head .header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── STATUS PILL ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  background: transparent;
  line-height: 1.4;
  white-space: nowrap;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.pill.pill-active,
.pill.pill-confirmed,
.pill.pill-paid,
.pill.pill-success {
  color: var(--signal);
  border-color: var(--signal);
}

.pill.pill-pending,
.pill.pill-awaiting,
.pill.pill-review {
  color: var(--accent);
  border-color: var(--accent);
}

.pill.pill-info,
.pill.pill-draft {
  color: var(--link);
  border-color: var(--link);
}

.pill.pill-warning {
  color: #FFB627;
  border-color: #FFB627;
}

.pill.pill-error,
.pill.pill-cancelled,
.pill.pill-failed,
.pill.pill-rejected {
  color: var(--hot);
  border-color: var(--hot);
}

.pill.pill-muted,
.pill.pill-closed,
.pill.pill-archived {
  color: var(--fg-faint);
  border-color: var(--fg-faint);
}

/* ─── KPI TILE ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-tile {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.kpi-tile:hover { border-color: var(--link); }

.kpi-tile .kpi-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.kpi-tile .kpi-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.kpi-tile .kpi-delta {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
}

.kpi-tile .kpi-delta.up { color: var(--signal); }
.kpi-tile .kpi-delta.down { color: var(--hot); }

/* ─── CARD (generic content card) ─── */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 28px;
  margin-bottom: 20px;
}

.app-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}

.app-card .card-head h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.app-card .card-head .card-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.app-card .card-body { font-size: 15px; line-height: 1.55; color: var(--fg); }

.app-card .card-body p + p { margin-top: 12px; }

/* ─── EMPTY / LOADING / ERROR STATES ─── */
.state-block {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--rule);
  background: rgba(0,0,0,0.2);
}

.state-block .state-icon {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

.state-block h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.state-block p {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.state-block.empty .state-icon { color: var(--fg-faint); }
.state-block.error .state-icon { color: var(--hot); }
.state-block.loading .state-icon { color: var(--link); }

/* Skeleton row (for tables during load) */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--rule) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes skeleton-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Inline spinner (in buttons, etc.) */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST / NOTIFICATIONS ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 48px);
  width: 360px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--link);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: auto;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
  animation: toast-in 240ms ease;
}

@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.toast.toast-success { border-left-color: var(--signal); }
.toast.toast-error   { border-left-color: var(--hot); }
.toast.toast-warning { border-left-color: #FFB627; }
.toast.toast-info    { border-left-color: var(--link); }

.toast .toast-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
}

.toast .toast-title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.toast .toast-close {
  background: transparent;
  border: none;
  color: var(--fg-faint);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

.toast .toast-close:hover { color: var(--fg); }

/* ─── MODAL / DIALOG ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 90;
  animation: fade-in 200ms ease;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modal-in 240ms ease;
}

@keyframes modal-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.modal-head {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-head h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.1;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 22px;
  padding: 0;
  line-height: 1;
  transition: color 160ms ease;
}

.modal-close:hover { color: var(--accent); }

.modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
}

.modal-foot {
  padding: 20px 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dangerous-confirmation flavor */
.modal.modal-danger::before { background: var(--hot); }
.modal.modal-danger .modal-head h3 { color: var(--hot); }

/* ─── COMMERCE / CART / CHECKOUT ─────────────────── */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.cart-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.cart-summary .cart-head {
  padding: 24px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-summary .cart-head h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cart-summary .cart-head .cart-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.cart-summary .cart-items {
  border-top: 1px solid var(--rule);
}

.line-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--rule);
}

.line-item:last-of-type { border-bottom: none; }

.line-item .li-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.line-item .li-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.line-item .li-detail {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.line-item .li-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--rule);
}

.line-item .li-qty button {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--fg-dim);
  font-family: var(--f-mono);
  font-size: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.line-item .li-qty button:hover {
  color: var(--accent);
  background: var(--bg-2);
}

.line-item .li-qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.line-item .li-qty input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--fg);
  padding: 8px 0;
  -moz-appearance: textfield;
}

.line-item .li-qty input::-webkit-outer-spin-button,
.line-item .li-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.line-item .li-price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--fg);
  text-align: right;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}

.line-item .li-price .li-strikethrough {
  display: block;
  font-size: 12px;
  color: var(--fg-faint);
  text-decoration: line-through;
  font-weight: 400;
}

.line-item .li-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--fg-faint);
  font-family: var(--f-mono);
  font-size: 16px;
  padding: 4px 8px;
  transition: color 160ms ease;
}

.line-item .li-remove:hover { color: var(--hot); }

/* Promo / discount input */
.promo-input {
  padding: 18px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 0;
}

.promo-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 13px;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.promo-input input:focus {
  outline: none;
  border-color: var(--link);
}

.promo-input button {
  background: transparent;
  border: 1px solid var(--rule);
  border-left: none;
  color: var(--link);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.promo-input button:hover {
  color: var(--accent);
  border-color: var(--link);
}

.promo-applied {
  padding: 14px 28px;
  background: rgba(25,195,125,0.06);
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--signal);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* Order summary (subtotal/tax/total) */
.order-summary {
  padding: 18px 28px 22px;
}

.order-summary .os-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  color: var(--fg-dim);
}

.order-summary .os-row .os-value {
  font-family: var(--f-mono);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.order-summary .os-row.os-total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--fg);
}

.order-summary .os-row.os-total .os-label {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-summary .os-row.os-total .os-value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
}

.order-summary .os-disclaimer {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  line-height: 1.5;
}

/* Checkout button (full-width, larger) */
.cart-checkout {
  padding: 0 28px 28px;
}

.cart-checkout .cta {
  width: 100%;
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.cart-checkout .secure-note {
  margin-top: 12px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
}

.cart-checkout .secure-note .lock {
  color: var(--signal);
  margin-right: 4px;
}

/* Payment status pills — extend the existing system */
.pill.pill-paid { color: var(--signal); border-color: var(--signal); }
.pill.pill-refunded { color: var(--link); border-color: var(--link); }
.pill.pill-disputed { color: var(--hot); border-color: var(--hot); }

@media (max-width: 600px) {
  .cart-summary .cart-head { padding: 20px 20px 16px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .line-item {
    padding: 16px 20px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info price"
      "qty  qty";
    gap: 12px;
  }
  .line-item .li-info { grid-area: info; }
  .line-item .li-price { grid-area: price; }
  .line-item .li-qty { grid-area: qty; justify-self: start; }
  .promo-input { padding: 14px 20px; }
  .order-summary { padding: 14px 20px 18px; }
  .cart-checkout { padding: 0 20px 20px; }
}

/* ─── DATATABLES.NET THEME (skin) ──────────────────
   For when DataTables is loaded server-side via .NET.
   Override the default Bootstrap/jQuery styling to match NAESE.
*/

.dataTables_wrapper {
  font-family: var(--f-body);
  color: var(--fg);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  margin: 12px 0;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 14px;
  padding: 8px 12px;
  margin: 0 6px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--link);
}

table.dataTable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-body);
}

table.dataTable thead th {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

table.dataTable tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

table.dataTable tbody tr:hover td {
  background: rgba(217,70,239,0.04);
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  cursor: pointer;
  position: relative;
  padding-right: 28px;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--fg-faint);
  font-family: var(--f-mono);
}

table.dataTable thead th.sorting::after      { content: '↕'; }
table.dataTable thead th.sorting_asc::after  { content: '↑'; color: var(--accent); }
table.dataTable thead th.sorting_desc::after { content: '↓'; color: var(--accent); }

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--fg-dim) !important;
  padding: 6px 12px;
  margin: 0 2px;
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg-2);
  color: var(--fg) !important;
  border-color: var(--link);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  color: var(--bg) !important;
  background: var(--grad-primary);
  border-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── MULTI-SECTION FORMS (registration) ─────────── */
.form-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
}
.form-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;

  & .index {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    text-transform: uppercase;
  }

  & h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }
}
.form-section-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: -8px 0 24px 0;
  max-width: 640px;
}

/* Conditional fields */
[data-show-when] { display: none; }
[data-show-when].is-visible { display: block; }

/* Two-column row (e.g., name + email) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Field group: checkbox / radio / multi-select clusters */
.field-group {
  margin-bottom: 22px;

  & > .group-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
  }

  & > .group-hint {
    font-size: 13px;
    color: var(--fg-dim);
    margin-bottom: 12px;
    line-height: 1.5;
  }
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);

  & input[type="checkbox"],
  & input[type="radio"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--link);
    flex-shrink: 0;
    cursor: pointer;
  }

  & .check-hint {
    display: block;
    font-size: 13px;
    color: var(--fg-dim);
    margin-top: 4px;
  }

  &:hover .check-label { color: var(--accent); }
}

/* Helper notes & headings within a form */
.form-note-inline {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin-top: 6px;
}

/* Inline signup (page-level, e.g. home or contact page) */
.signup-block {
  max-width: 720px;

  & .lede {
    font-family: var(--f-display);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 28px;
  }
}

.signup-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  transition: border-color 200ms ease;

  &:focus-within { border-color: var(--link); }

  & input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 16px;
    padding: 16px 18px;
    outline: none;

    &::placeholder { color: var(--fg-faint); }
  }

  & button {
    cursor: pointer;
    background: transparent;
    border: none;
    border-left: 1px solid var(--rule);
    color: var(--link);
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 24px;
    transition: background 220ms ease, color 220ms ease;

    &:hover {
      background: var(--grad-primary);
      color: var(--bg);
    }
  }
}

.signup-disclaimer {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* Footer signup — compact variant */
.footer-signup {
  display: flex;
  margin-top: 24px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  transition: border-color 200ms ease;
  max-width: 320px;

  &:focus-within { border-color: var(--link); }

  & input[type="email"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--fg);
    font-family: var(--f-body);
    font-size: 13px;
    padding: 10px 12px;
    outline: none;

    &::placeholder { color: var(--fg-faint); }
  }

  & button {
    cursor: pointer;
    background: transparent;
    border: none;
    border-left: 1px solid var(--rule);
    color: var(--link);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 14px;
    transition: background 200ms ease, color 200ms ease;
    white-space: nowrap;

    &:hover {
      background: var(--grad-primary);
      color: var(--bg);
    }
  }
}

/* ─── PRICING TABLE (exhibitor) ──────────────────── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
  font-family: var(--f-body);

  & th, & td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
  }

  & th {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
  }

  & td.price {
    font-family: var(--f-display);
    font-weight: 600;
    color: var(--fg);
  }

  & tr:hover td { background: rgba(217,70,239,0.04); }
}

/* ─── FAQ — TWO-COLUMN LAYOUT ────────────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-nav {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.faq-nav::-webkit-scrollbar { width: 6px; }
.faq-nav::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

.faq-cat {
  border-bottom: 1px solid var(--rule);

  & summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    transition: color 160ms ease;

    &::-webkit-details-marker { display: none; }

    &::after {
      content: '+';
      font-family: var(--f-mono);
      font-size: 18px;
      color: var(--link);
      flex-shrink: 0;
      transition: color 160ms ease;
    }

    &:hover { color: var(--accent); }
  }

  &[open] summary::after {
    content: '−';
    color: var(--accent);
  }

  & ul {
    list-style: none;
    padding: 0 0 16px 0;
  }

  & li { margin: 0; }

  & li a {
    display: block;
    padding: 8px 0 8px 14px;
    font-size: 13px;
    color: var(--fg-dim);
    line-height: 1.45;
    border-left: 1px solid var(--rule);
    transition: color 160ms ease, border-color 160ms ease;

    &:hover {
      color: var(--fg);
      border-left-color: var(--link);
    }

    &.active {
      color: var(--accent);
      border-left-color: var(--accent);
    }
  }
}

.faq-content {
  min-width: 0;
}

.faq-q-group {
  margin-bottom: 80px;

  & .group-head {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
  }
}

article.faq-q {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 100px;

  & h4 {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: var(--fg);
    margin-bottom: 14px;
  }

  & .answer {
    font-size: 16px;
    line-height: 1.65;
    color: var(--fg-dim);
    max-width: 720px;

    & p + p { margin-top: 12px; }

    & a {
      color: var(--link);
      border-bottom: 1px solid currentColor;

      &:hover { color: var(--accent); }
    }

    & strong { color: var(--fg); }
  }

  &:target h4,
  &.active h4 { color: var(--accent); }
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-nav {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 16px;
    border: 1px solid var(--rule);
    background: var(--bg-card);
    padding: 0 24px;
  }
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--rule);

  & .grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
  }

  & h4 {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--fg-dim);
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  & ul {
    list-style: none;

    & li {
      margin-bottom: 10px;
      font-size: 14px;

      & a {
        color: var(--fg);
        transition: color 160ms;

        &:hover { color: var(--link); }
      }
    }
  }

  & .colophon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & .wordmark {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
    text-transform: uppercase;
  }

  & .footer-logo {
    width: 44px;
    height: 44px;
    display: block;
    flex-shrink: 0;
  }

  & .blurb {
    font-size: 14px;
    color: var(--fg-dim);
    max-width: 320px;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 56px 0 56px; }
  .hero .label-row { margin-bottom: 24px; }
  .hero-facts {
    grid-template-columns: 1fr;

    & .fact {
      border-right: none;
      border-bottom: 1px solid var(--rule);
      padding: 22px 24px;

      &:last-child { border-bottom: none; }
    }
  }
  .pillars { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr 1fr; }
  .programs { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr; }

  footer .grid { grid-template-columns: 1fr 1fr; }

  .spec {
    grid-template-columns: 1fr;

    & .k {
      padding: 16px 0 4px;
      border-bottom: none;
    }

    & .v { padding-top: 0; }
  }

  /* Mobile nav */
  nav {
    & .links { display: none; }
    & .nav-ctas { display: none; }
    & .nav-tail { gap: 14px; }
    & .meta { font-size: 10px; letter-spacing: 0.06em; }
    & .mark-text { font-size: 16px; }
    & .mark-logo { width: 28px; height: 28px; }
    & .row { padding: 14px 4px; }
  }
  .hamburger { display: flex; }
  .nav-mobile-ctas { display: flex; }
  .container { padding: 0 32px; }
}

@media (max-width: 600px) {
  .schedule { grid-template-columns: 1fr; }
  nav .meta { font-size: 9px; }
  .container { padding: 0 28px; }
  section { padding: 64px 0; }
  .pricing-table {
    font-size: 13px;

    & th, & td { padding: 12px 8px; }
  }
}

@media (max-width: 420px) {
  nav .meta { display: none; }
  .container { padding: 0 24px; }
}

/* Hide desktop meta on wide screens — gives nav links breathing room */
@media (min-width: 901px) {
  nav .meta { display: none; }
  nav .links {
    gap: 24px;

    & a { font-size: 13px; }
  }
}
