/* ==========================================================================
   SAII website styles. One file. Tokens from 04-DESIGN.md (sections 2-7).
   ========================================================================== */

/* ---------- Fonts (self-hosted, never Google Fonts) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colors */
  --ink: #0B0C10;
  --paper: #F4F4F6;
  --white: #FFFFFF;
  --indigo: #3D3BF3;
  --indigo-hover: #2F2DD6;
  --indigo-light: #8B8AFF;
  --spark: #C8F25A;
  --grey-light: #55575F;
  --grey-dark: #9A9CA6;
  --bar-dark: #1E2029;
  --bar-light: #DCDDE3;
  --line-light: rgba(11, 12, 16, 0.10);
  --line-dark: rgba(244, 244, 246, 0.14);

  /* type */
  --font: "Geist", sans-serif;
  --font-mono: "Geist Mono", monospace;
  --fs-display: clamp(3rem, 1.5rem + 5.6vw, 6rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-ui: 0.9375rem;
  --fs-data: 0.8125rem;

  /* spacing scale: 4 8 12 16 24 32 48 64 96 128 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* layout */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 80px;
  --nav-h: 56px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
}
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section-y: 128px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--indigo); color: var(--white); }

/* Section anchors land below the floating navbar */
[id] { scroll-margin-top: 96px; }

/* Links in text */
a { color: var(--indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.on-dark a:not(.btn) { color: var(--indigo-light); }

/* Focus: visible everywhere */
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--indigo-light); }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-ui);
  border-radius: 999px;
  border: 1px solid var(--line-light);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead { max-width: 65ch; }
.on-dark { color: var(--paper); }
.on-dark .lead { line-height: 1.6; }
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--s-5);
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) ease-out, border-color var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}
.btn:active { transform: translateY(1px); }
.btn--small { height: 40px; }

/* on light */
.btn--primary { background: var(--indigo); color: var(--white); }
.btn--primary:hover { background: var(--indigo-hover); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: rgba(11, 12, 16, 0.06); }

/* on dark / indigo */
.btn--primary-dark { background: var(--paper); color: var(--ink); }
.btn--primary-dark:hover { background: var(--white); }
.btn--secondary-dark { background: transparent; color: var(--paper); border-color: rgba(244, 244, 246, 0.4); }
.btn--secondary-dark:hover { border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Text button (Menu / Close) */
.text-btn {
  min-height: 44px;
  padding: 0 var(--s-3);
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: var(--s-4);
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--nav-h);
  padding: 0 var(--s-2) 0 var(--s-5);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 999px;
}
.nav__logo { display: flex; align-items: center; height: 44px; border-radius: 4px; }
.nav__logo img { height: 21px; width: auto; }
.nav__links { display: none; gap: var(--s-6); }
.nav__links a {
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 4px;
}
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nav__cta { display: none; }
.nav__menu-btn { display: inline-flex; align-items: center; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__menu-btn { display: none; }
}

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: var(--s-4) var(--gutter) var(--s-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, visibility 0s linear 200ms;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease-out, visibility 0s;
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--s-2) 0 var(--s-5);
}
.menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-8);
}
.menu__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  border-radius: 4px;
  display: block;
  padding: var(--s-2) 0;
}
.menu__bottom { margin-top: auto; }
.menu__bottom .btn { width: 100%; }
@media (min-width: 900px) {
  .menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 152px;
}
.hero__content { padding-bottom: var(--s-8); }
.hero__title { max-width: 11ch; }
.hero__text {
  margin-top: var(--s-5);
  max-width: 34rem;
  color: var(--grey-dark);
  line-height: 1.6;
}
.hero .btn-row { margin-top: var(--s-6); }
.hero .btn-row .btn { flex: 1 1 auto; }

@media (min-width: 560px) {
  .hero .btn-row .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s-5);
    align-items: end;
    min-height: min(100svh, 920px);
    padding-top: 176px;
  }
  .hero__content {
    grid-column: 1 / span 8;
    align-self: center;
    padding-bottom: var(--s-10);
  }
  .hero__text { margin-top: var(--s-6); }
  .hero .btn-row { margin-top: var(--s-7); }
  .hero__bars { grid-column: 9 / span 4; }
}

/* ---------- Bar rhythm (the signature element) ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  --bar-w: 7px;
}
.bars__bar {
  width: var(--bar-w);
  height: var(--h);
  background: var(--bar-dark);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: bar-grow 700ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 40ms);
}
.bars__bar--ai { background: var(--indigo-light); }
.bars__bar--spark { background: var(--spark); }

@media (min-width: 900px) {
  .bars {
    height: clamp(360px, 52vh, 520px);
    --bar-w: 12px;
  }
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bars__bar { animation: none; transform: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-9) 0 var(--s-7);
}
.footer__top {
  display: grid;
  gap: var(--s-7);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--s-5); }
.footer__logo-row { display: flex; align-items: flex-end; gap: var(--s-4); }
.footer__logo { display: inline-flex; align-items: flex-end; min-height: 44px; border-radius: 4px; }
.footer__logo img { height: 32px; width: auto; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.mini-bars span { width: 4px; background: var(--bar-dark); border-radius: 1px 1px 0 0; }
.mini-bars .is-ai { background: var(--indigo-light); }
.footer__tagline { font-size: var(--fs-h3); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; max-width: 14ch; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.footer__col { display: flex; flex-direction: column; gap: 0; }
.on-dark .footer__col a {
  color: var(--paper);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  display: inline-block;
  padding: var(--s-3) 0;
  border-radius: 4px;
}
.footer__col a[href^="mailto:"] { overflow-wrap: anywhere; }
.on-dark .footer__col a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.footer__small {
  color: var(--grey-dark);
  font-size: var(--fs-ui);
  line-height: 1.4;
  max-width: 65ch;
}

@media (min-width: 768px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s-5);
  }
  .footer__brand { grid-column: 1 / span 5; }
  .footer__cols { grid-column: 6 / span 7; grid-template-columns: 1fr 1.5fr 1fr; }
}

/* ==========================================================================
   C2: home page sections
   ========================================================================== */

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight-top { padding-top: calc(var(--section-y) * 0.5); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--indigo { background: var(--indigo); color: var(--paper); }
.section__title { max-width: 18ch; }
.section__intro { margin-top: var(--s-5); color: var(--grey-light); }
.on-dark .section__intro { color: var(--grey-dark); }
.section--indigo .section__intro { color: var(--paper); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}

.text-link {
  font-size: var(--fs-ui);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.small-note {
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  color: var(--grey-light);
  max-width: 65ch;
}
.on-dark .small-note { color: var(--grey-dark); }

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

/* ---------- Manifesto ---------- */
.manifesto__lines span { display: block; }
.manifesto__lines span + span { margin-top: 0.08em; }
.manifesto__lines { max-width: 15ch; }
.manifesto__sub { margin-top: var(--s-7); }
@media (min-width: 900px) {
  .manifesto__lines { max-width: none; }
  .manifesto__sub { margin-top: var(--s-8); }
}

/* ---------- What we do: rows with rules ---------- */
.rows { margin-top: var(--s-7); border-top: 1px solid var(--line-light); }
.row {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line-light);
}
.row__body p { max-width: 65ch; }
@media (min-width: 900px) {
  .rows { margin-top: var(--s-8); }
  .row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s-5);
    padding: var(--s-7) 0;
  }
  .row__name { grid-column: 1 / span 4; }
  .row__body { grid-column: 5 / span 8; }
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--s-3);
  border: 1px solid rgba(11, 12, 16, 0.24);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.chip--mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: 24px;
}

/* ---------- Track cards ---------- */
.tracks {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.track {
  border-radius: 16px;
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
}
.track--member { background: var(--white); color: var(--ink); }
.track--builder { background: var(--ink); color: var(--paper); }
.track__label { font-size: var(--fs-ui); font-weight: 500; line-height: 1.4; color: var(--grey-light); }
.track--builder .track__label { color: var(--grey-dark); }
.track__title { margin-top: var(--s-3); }
.track__text { margin-top: var(--s-4); max-width: 46ch; }
.track--builder .track__text { line-height: 1.6; }
.track .bar-list { margin-top: var(--s-6); }
@media (min-width: 768px) {
  .tracks { grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-8); }
  .track { padding: 40px; }
}

/* List with bar bullets (2x12px vertical bar instead of a dot) */
.bar-list { display: flex; flex-direction: column; gap: var(--s-3); }
.bar-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}
.bar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 2px;
  height: 12px;
  background: var(--indigo);
  border-radius: 1px;
}
.on-dark .bar-list li::before { background: var(--indigo-light); }

/* ---------- Steps ---------- */
.steps__title { margin-top: var(--s-9); }
.steps {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: grid;
  gap: var(--s-6);
}
.step { border-top: 1px solid var(--line-light); padding-top: var(--s-4); }
.steps--dark .step { border-top-color: var(--line-dark); }
.step__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.step__title { margin-top: var(--s-4); font-weight: 500; }
.step__text { margin-top: var(--s-1); color: var(--grey-light); max-width: 40ch; }
.on-dark .step__text { color: var(--grey-dark); line-height: 1.6; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
}

/* ---------- Companies ---------- */
.companies__title { max-width: 16ch; }
.section--ink .steps { margin-top: var(--s-7); }
.companies__why { margin-top: var(--s-7); }
.companies__why + .cta-block { margin-top: var(--s-5); }

/* ---------- Events ---------- */
.event-grid {
  display: grid;
  gap: var(--s-7);
  margin-top: var(--s-7);
}
@media (min-width: 768px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}
@media (min-width: 1024px) {
  .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.event-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
}
.event-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: var(--s-4);
}
.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--t-fast) ease-out;
}
.event-card:hover .event-card__img img { filter: brightness(0.92); }
.event-card__date { margin-top: var(--s-3); color: var(--grey-light); }
.event-card__title { margin-top: var(--s-2); }
.event-card:hover .event-card__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.event-card__teaser { margin-top: var(--s-3); line-height: 1.55; }
.event-card__place { margin-top: var(--s-3); color: var(--grey-light); }

.event-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  background: var(--white);
  border-radius: 16px;
}
.event-empty__text { color: var(--grey-light); max-width: 40ch; }
.event-empty .btn { margin-top: var(--s-2); }
@media (min-width: 768px) {
  .event-empty { padding: 40px; }
}

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-top: var(--s-7);
}
@media (min-width: 560px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
}
@media (min-width: 900px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-8); }
}
.person__tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.person__tile img { width: 100%; height: 100%; object-fit: cover; }
.person__initials {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-4);
  color: var(--paper);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.person__name { margin-top: var(--s-4); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.person__role { margin-top: var(--s-1); color: var(--grey-light); }
.person__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-ui);
  font-weight: 500;
}
.team__more { margin-top: var(--s-7); }

/* ---------- FAQ ---------- */
.faq-groups { display: grid; gap: var(--s-8); margin-top: var(--s-7); }
.faq-group__title { margin-bottom: var(--s-4); }
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) 48px var(--s-5) 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 200ms ease-out;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p {
  max-width: 65ch;
  padding: 0 0 var(--s-5);
  color: var(--grey-light);
}
@media (min-width: 900px) {
  .faq-groups {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--s-5);
    margin-top: var(--s-8);
  }
  .faq-group { grid-column: 1 / span 8; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::before, .faq summary::after { transition: none; }
}

/* ---------- Stay in the loop ---------- */
.loop__buttons { margin-top: var(--s-6); }
.section--indigo :focus-visible { outline-color: var(--paper); }

/* ==========================================================================
   C3: events list and event page
   ========================================================================== */
.page-head { padding: 136px 0 0; }
@media (min-width: 900px) { .page-head { padding-top: 176px; } }

.list-title { margin-bottom: var(--s-6); }
.page-actions { margin-top: var(--s-6); }

.event-empty--plain { background: var(--white); }

/* Event page */
.event-page__inner { max-width: 800px; }
.event-page__date { margin-top: var(--s-4); color: var(--grey-light); }
.event-page__title { margin-top: var(--s-3); }
.event-page__place { margin-top: var(--s-5); color: var(--grey-light); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; }
.event-page__place a { font-size: var(--fs-ui); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.event-page__partner { margin-top: var(--s-2); font-weight: 500; }
.event-page__ended { margin-top: var(--s-6); font-weight: 500; color: var(--grey-light); }
.event-page__img {
  margin-top: var(--s-7);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}
.event-page__img img { width: 100%; height: 100%; object-fit: cover; }
.event-page__body { margin-top: var(--s-6); }
.event-page__body p { max-width: 65ch; }
.event-page__body p + p { margin-top: var(--s-4); }
.event-page__recap-title { margin-top: var(--s-8); }
.event-page__recap-title + .event-page__body { margin-top: var(--s-4); }
.event-page__gallery { display: grid; gap: var(--s-4); }

/* Previous / Next / All events */
.event-nav {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.event-nav__item, .event-nav__all {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}
.event-nav > span:empty { display: none; }
.event-nav__label { font-size: var(--fs-ui); font-weight: 500; color: var(--grey-light); }
.event-nav__title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.event-nav__item:hover .event-nav__title,
.event-nav__all:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.event-nav__all { font-weight: 500; color: var(--indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .event-nav { grid-template-columns: 1fr 1fr auto; column-gap: var(--s-5); align-items: stretch; }
  .event-nav > span:empty { display: block; }
  .event-nav { border-bottom: 1px solid var(--line-light); }
  .event-nav__item, .event-nav__all { border-bottom: 0; }
  .event-nav__item--next { text-align: left; }
  .event-nav__all { justify-content: center; }
}

/* ==========================================================================
   C4: form pages, legal pages, 404
   ========================================================================== */
.page-section { padding-bottom: var(--section-y); }

/* Form panel (Tally inside) */
.form-panel {
  max-width: 680px;
  margin-top: var(--s-7);
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
}
@media (min-width: 768px) { .form-panel { padding: 32px; } }
.form-panel iframe { display: block; width: 100%; border: 0; min-height: 400px; }
.form-note {
  max-width: 680px;
  margin-top: var(--s-5);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.4;
  color: var(--grey-light);
}
.steps--compact { margin-top: var(--s-7); }
.steps--compact .step__num { font-size: 2rem; }

/* Legal pages */
.legal p, .legal li { max-width: 65ch; }
.legal__sub { margin-top: var(--s-5); color: var(--grey-light); }
.legal__list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.legal__ol { margin: var(--s-7) 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--s-5); }
.legal__ol li { padding-left: var(--s-1); }
.legal__ol li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.legal strong { font-weight: 600; }
.legal__p { margin-top: var(--s-6); color: var(--grey-light); }

/* 404 */
.bars--small { margin-top: var(--s-9); height: 96px; max-width: 160px; --bar-w: 8px; }
/* Bars on paper: neutral bars light grey, AI bars indigo (DESIGN 2 and 5) */
.bars--small .bars__bar { background: var(--bar-light); }
.bars--small .bars__bar--ai { background: var(--indigo); }
