/* ============================================================
   Healthcare Agent Summit · Editorial design system
   ============================================================ */

:root {
  --paper:        #F6F4EE;
  --paper-2:      #EFEAD9;   /* slightly cooler/grayer cream — analytical */
  --paper-warm:   #F4ECDB;   /* slightly peachier cream — human */
  --paper-cool:   #ECE9DB;   /* slightly cooler cream with hint of green — place */
  --ink:          #292524;
  --ink-muted:    #5C5854;
  --ink-soft:     #8A857C;
  --rule:         rgba(41,37,36,0.13);
  --rule-soft:    rgba(41,37,36,0.06);
  --accent:       #075D37;
  --accent-bright:#088A65;
  --accent-soft:  rgba(7,93,55,0.08);
  --dark:         #1A1816;
  --dark-paper:   #1F1C1A;

  --serif:        'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:    1240px;
  --pad:          clamp(20px, 4vw, 56px);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

/* === Container === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* === Typography === */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--accent);
}
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 64px;
}
.h-display em {
  font-style: italic;
  color: var(--accent);
}
.h-display--light { color: var(--paper); }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  max-width: 28ch;
  margin-top: 32px;
}
.big {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 28px;
}
.big em { font-style: italic; color: var(--accent); }
p { color: var(--ink-muted); }
p + p { margin-top: 18px; }
.muted { color: var(--ink-soft); }

/* Eyebrow / tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--paper-2);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.9); }
}

.section-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.section-tag--light { color: rgba(246,244,238,0.65); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--inverse {
  background: var(--paper);
  color: var(--ink);
}
.btn--inverse:hover { background: var(--accent); color: var(--paper); }

.btn--large {
  font-size: 16px;
  padding: 18px 28px;
}
.btn--small {
  padding: 10px 18px;
  font-size: 13px;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,238,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}
.brand__divider {
  width: 1px;
  height: 20px;
  background: var(--rule);
  margin: 0 2px;
}
.brand__partner {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--accent); }
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* === Hero === */
.hero {
  padding: clamp(48px, 8vw, 96px) var(--pad) 0;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero__lede { max-width: 720px; }
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero__rule {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  font-size: 14px;
  color: var(--ink);
}
.hero__meta > div span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* Date stamp (right column) */
.hero__stamp {
  display: flex;
  justify-content: flex-end;
}
.stamp {
  width: 100%;
  max-width: 360px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 36px 32px;
  position: relative;
  border-radius: 4px;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.stamp::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.stamp__sat {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.stamp__day {
  font-family: var(--serif);
  font-size: 168px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 4px 0;
}
.stamp__month {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 22px;
}
.stamp__rule {
  height: 1px;
  background: var(--rule);
  margin: 18px 0;
}
.stamp__location {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.stamp__location span {
  font-weight: 400;
  color: var(--ink-muted);
}
.stamp__time {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-muted);
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stamp { justify-content: flex-start; }
  .stamp__day { font-size: 128px; }
  .hero__meta { grid-template-columns: 1fr; gap: 16px; }
}

/* === Logo wall === */
.logo-wall {
  border-top: 1px solid var(--rule);
  padding: 36px 0 8px;
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 48px;
  align-items: center;
}
.logo-wall__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.logo-wall__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 30px;
}
.logo-wall__item {
  display: inline-flex;
  align-items: center;
  height: 28px;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}
.logo-wall__item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-1px);
}
.logo-wall__item img {
  height: 28px;
  width: auto;
  display: block;
}
.logo-wall__item img + .logo-wall__name { display: none; }
.logo-wall__name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 880px) {
  .logo-wall {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }
  .logo-wall__row { gap: 22px 28px; }
  .logo-wall__name { font-size: 14px; }
}

/* === Sections (shared) === */
.section {
  padding: clamp(96px, 12vw, 168px) 0;
  position: relative;
  overflow: hidden;
}
.section + .section { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 24px; position: relative; z-index: 2; }
.section .container { position: relative; z-index: 2; }

/* Chapter numerals — editorial watermark behind each section */
.section__numeral {
  position: absolute;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(180px, 26vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: clamp(40px, 6vw, 80px);
  right: clamp(-20px, -1vw, -10px);
  white-space: nowrap;
}
.section__numeral em {
  font-style: italic;
  color: var(--accent);
  opacity: 0.7;
}
@media (max-width: 880px) {
  .section__numeral {
    font-size: clamp(140px, 38vw, 200px);
    right: -8px;
    top: 48px;
  }
}

/* Tonal palette — each chapter feels distinct */
.section--about    { background: var(--paper); }
.section--pillars  { background: var(--paper-2); }
.section--audience { background: var(--paper-warm); }
.section--venue    { background: var(--paper-cool); }
.section--apply    { background: var(--dark); }
.section + .section { border-top: 0; }   /* tonal shift IS the divider */

/* Light section numerals on dark apply section */
.section--apply .section__numeral {
  color: var(--paper);
  opacity: 0.05;
}

/* === Scroll reveal ===
   .js-reveal is added to <html> by JS before observers wire up.
   Without JS, content shows immediately (no class, no hide rules apply). */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-reveal [data-reveal-from="left"] { transform: translateX(-32px); }
.js-reveal [data-reveal-from="right"] { transform: translateX(32px); }
.js-reveal [data-reveal-from="scale"] { transform: translateY(20px) scale(0.97); }
.js-reveal .is-visible [data-reveal],
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.js-reveal [data-stagger] > * { opacity: 0; }
.js-reveal .is-visible [data-stagger] > * {
  animation: revealItem 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  opacity: 1;
}
.js-reveal .is-visible [data-stagger] > *:nth-child(1) { animation-delay: 0.05s; }
.js-reveal .is-visible [data-stagger] > *:nth-child(2) { animation-delay: 0.16s; }
.js-reveal .is-visible [data-stagger] > *:nth-child(3) { animation-delay: 0.27s; }
.js-reveal .is-visible [data-stagger] > *:nth-child(4) { animation-delay: 0.38s; }
.js-reveal .is-visible [data-stagger] > *:nth-child(5) { animation-delay: 0.49s; }
.js-reveal .is-visible [data-stagger] > *:nth-child(6) { animation-delay: 0.60s; }
.js-reveal .is-visible [data-stagger] > *:nth-child(7) { animation-delay: 0.71s; }

@keyframes revealItem {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* === About · two col === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: clamp(32px, 6vw, 80px);
}
.two-col__label .section-tag { margin: 0; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 16px; }
}

/* === Pillars === */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar:nth-child(n+2) { padding-left: 28px; }
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 28px;
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.pillar__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 14px !important;
  line-height: 1.3;
}
.pillar p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.pillar p + p { margin-top: 0; }
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .pillar:nth-child(odd) { padding-left: 0; }
  .pillar:nth-child(even) { padding-left: 28px; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule); padding: 32px 0; }
  .pillar:last-child { border-bottom: 0; }
  .pillar:nth-child(even), .pillar:nth-child(odd) { padding-left: 0; }
}

/* === Schedule === */
.schedule { border-top: 1px solid var(--rule); }
.schedule__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s ease;
}
.schedule__row:hover { background: var(--paper-2); padding-left: 16px; padding-right: 16px; }
.schedule__time {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
}
.schedule__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.schedule__detail {
  font-size: 14px;
  color: var(--ink-muted);
}
.schedule__row--accent .schedule__title { color: var(--accent); }

@media (max-width: 720px) {
  .schedule__row { grid-template-columns: 1fr; gap: 6px; }
  .schedule__row:hover { padding-left: 0; padding-right: 0; }
}

/* === Audience === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.audience-grid--4 { grid-template-columns: repeat(4, 1fr); }
.audience-card {
  padding: 36px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: background 0.2s ease;
}
.audience-card:last-child { border-right: 0; }
.audience-card:hover { background: var(--paper-2); }
.audience-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
}
.audience-card__label {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  color: var(--ink);
}
.audience-note {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-muted);
  max-width: 70ch;
}
@media (max-width: 880px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-card { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .audience-card:nth-child(even) { border-right: 0; }
  .audience-card:nth-last-child(-n+1) { border-bottom: 0; }
  .audience-grid--4 .audience-card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { border-right: 0; }
}

/* === Venue === */
.venue-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.venue-info .h-display { margin-bottom: 24px; }
.venue-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--accent);
  margin-bottom: 16px;
}
.venue-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 24px;
}
.venue-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.venue-card__row:last-child { border-bottom: 0; }
.venue-card__row span:first-child {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.venue-card__row span:last-child {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
}
@media (max-width: 880px) {
  .venue-grid { grid-template-columns: 1fr; }
}

/* === Venue flip card === */
.venue-flip {
  position: relative;
  cursor: pointer;
  perspective: 1400px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.venue-flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.venue-flip__inner {
  display: grid;
  grid-template-areas: "stack";
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 4px;
}
.venue-flip.is-flipped .venue-flip__inner { transform: rotateY(180deg); }
.venue-flip__face {
  grid-area: stack;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  position: relative;
  min-height: 320px;
}
.venue-flip__front {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 8px 24px 56px;
}
.venue-flip__back {
  transform: rotateY(180deg);
  overflow: hidden;
  background: linear-gradient(135deg, #1F3A2A 0%, #2D5040 50%, #3D6B57 100%);
  border: 1px solid rgba(0,0,0,0.2);
  display: flex;
  align-items: flex-end;
}
.venue-flip__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}
.venue-flip__photo.is-broken { display: none; }
.venue-flip__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.venue-flip__placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}
.venue-flip__caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 24px 22px;
  background: linear-gradient(to top, rgba(8,16,12,0.92) 0%, rgba(8,16,12,0.4) 65%, rgba(8,16,12,0) 100%);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.venue-flip__name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.venue-flip__loc {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.78);
}
.venue-flip__hint {
  position: absolute;
  bottom: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.venue-flip:hover .venue-flip__hint { opacity: 1; transform: translateX(-2px); }
.venue-flip__hint--inline {
  position: static;
  margin-top: 14px;
  align-self: flex-end;
  color: rgba(246,244,238,0.7);
  opacity: 1;
  pointer-events: none;
}
.venue-flip:hover .venue-flip__hint--inline {
  color: var(--paper);
  transform: translateX(0);
}
@media (max-width: 880px) {
  .venue-flip__face { min-height: 280px; }
}

/* === Apply (form) === */
.section--apply {
  background: var(--dark);
  color: var(--paper);
  border-top: 1px solid var(--ink) !important;
}
.section--apply .section-tag { color: rgba(246,244,238,0.5); }

.apply {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.apply__head { position: sticky; top: 96px; }
.apply__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: rgba(246,244,238,0.72);
  max-width: 28ch;
  margin: 0;
}

@media (max-width: 980px) {
  .apply { grid-template-columns: 1fr; gap: 48px; }
  .apply__head { position: static; }
}

/* Tabs */
.tabs {
  display: inline-flex;
  padding: 4px;
  background: rgba(246,244,238,0.06);
  border: 1px solid rgba(246,244,238,0.12);
  border-radius: 100px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(246,244,238,0.68);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.tab:hover { color: var(--paper); }
.tab.is-active {
  background: var(--paper);
  color: var(--ink);
}

/* Form */
.form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
  .form-row--2col { grid-template-columns: 1fr; }
}

.form-track > .form-field { margin-bottom: 20px; }
.form-track > .form-field:last-child { margin-bottom: 0; }
.form-track[hidden] { display: none; }

.form-field { display: flex; flex-direction: column; }
.form-field label,
.form-field legend {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.55);
  margin-bottom: 10px;
  padding: 0;
  font-weight: 500;
}
.form-field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: rgba(246,244,238,0.4);
  font-weight: 400;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246,244,238,0.18);
  padding: 10px 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
  font-weight: 400;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(246,244,238,0.35);
}
.form-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  -webkit-box-shadow: 0 0 0 1000px var(--dark) inset;
  caret-color: var(--paper);
}

/* Select wrap with chevron */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid rgba(246,244,238,0.55);
  border-bottom: 1.5px solid rgba(246,244,238,0.55);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form-field select {
  padding-right: 24px;
  cursor: pointer;
}
.form-field select option { background: var(--dark); color: var(--paper); }

/* Tier indicator */
.tier-display {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(246,244,238,0.45);
  letter-spacing: 0;
  text-transform: none;
}
.tier-display.is-active {
  color: var(--paper);
  font-style: normal;
}
.tier-display strong {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-bright);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 4px;
}

/* Fieldset reset */
fieldset.form-field {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

/* Checkbox / radio grids */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(246,244,238,0.14);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(246,244,238,0.85);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check:hover { border-color: rgba(246,244,238,0.32); }
.check input { accent-color: var(--accent-bright); }
.check:has(input:checked) {
  border-color: var(--accent-bright);
  background: rgba(8,138,101,0.12);
  color: var(--paper);
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 880px) { .radio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .radio-grid { grid-template-columns: 1fr; } }

.radio {
  position: relative;
  display: block;
  cursor: pointer;
}
.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border: 1px solid rgba(246,244,238,0.14);
  border-radius: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio:hover .radio__inner { border-color: rgba(246,244,238,0.32); }
.radio input:checked + .radio__inner {
  border-color: var(--accent-bright);
  background: rgba(8,138,101,0.12);
}
.radio__amount {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.radio__label {
  font-size: 12px;
  color: rgba(246,244,238,0.6);
}
.radio input:checked + .radio__inner .radio__label { color: rgba(246,244,238,0.9); }

/* Submit + status */
.form-submit {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.form-status {
  font-size: 13.5px;
  color: rgba(246,244,238,0.7);
  font-family: var(--sans);
}
.form-status.is-success {
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}
.form-status.is-success strong {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-bright);
  margin-right: 8px;
}
.form-status.is-error { color: #E89A8E; }
.form-status.is-pending { color: rgba(246,244,238,0.6); }

/* === Footer === */
.footer {
  background: var(--dark);
  color: rgba(246,244,238,0.6);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-size: 14px;
}
.footer__brand .brand__logo {
  height: 22px;
  filter: invert(1) brightness(1.4);
}
.footer__brand .brand__partner { color: rgba(246,244,238,0.7); }
.footer__brand .brand__divider { background: rgba(246,244,238,0.18); }
.footer__meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.footer__legal { font-size: 12px; }
@media (max-width: 720px) {
  .footer__meta { flex-direction: column; gap: 4px; }
}

/* === Selection === */
::selection {
  background: var(--accent);
  color: var(--paper);
}

/* === Reduce motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
