/* ==========================================================
   AIF — AI in Finance · University of Minnesota
   Redesign: editorial paper + ledger/ticker system
   Type: Instrument Serif (display) · Instrument Sans (body)
         IBM Plex Mono (data, labels, ticker)
   ========================================================== */

:root {
  --paper: #FBFAF7;
  --paper-deep: #F4F1EA;
  --ink: #1A1214;
  --ink-soft: #4C4145;
  --ink-faint: #857A7E;
  --maroon: #7A1E1E;
  --maroon-deep: #4A0F0F;
  --maroon-ink: #2B0808;
  --gold: #C9940F;
  --gold-bright: #E4B31C;
  --hairline: #E6DFD3;
  --hairline-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold-bright); color: var(--maroon-ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Type utilities ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--maroon);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-solid {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #FFF6E3;
}
.btn-solid:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }

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

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--hairline); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar-logo-img { height: 44px; width: auto; }

.navbar-right { display: flex; align-items: center; gap: 34px; }

.navbar-links { display: flex; gap: 30px; }
.navbar-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.navbar-links a:hover { color: var(--ink); }
.navbar-links a:hover::after,
.navbar-links a.active::after { right: 0; }
.navbar-links a.active { color: var(--maroon); }

.navbar-cta { padding: 11px 22px; }

.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 24px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: 12px 28px 26px;
}
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.mobile-menu a.active { color: var(--maroon); }

/* ---------- Hero (home) ---------- */

.hero {
  padding: 190px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
}

.hero .eyebrow,
.hero h1,
.hero-lead,
.hero-actions,
.hero-facts {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3.1rem, 8.6vw, 7.2rem);
  max-width: 12ch;
}

.rewrite-wrap { white-space: nowrap; }
.rewrite {
  font-style: italic;
  color: var(--maroon);
}
.caret {
  display: inline-block;
  width: 0.5ch;
  height: 0.78em;
  margin-left: 0.06em;
  background: var(--gold-bright);
  vertical-align: -0.06em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lead {
  margin-top: 34px;
  max-width: 470px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-skyline {
  position: absolute;
  top: -66px;
  left: 50%;
  right: auto;
  transform: translateX(-39.15%);
  width: clamp(1040px, 79.5vw, 1328px);
  max-width: none;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  opacity: 1;
}
.hero-skyline img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center right;
  filter: none;
}

.hero-student-note {
  position: absolute;
  top: -42px;
  right: -12px;
  z-index: 3;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", "Comic Sans", cursive;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.15em;
  color: rgba(122, 30, 30, 0.82);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-decoration: none;
  transform: rotate(-1deg);
}

.hero-facts {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-facts span { display: flex; align-items: center; }
.hero-facts span + span::before {
  content: "/";
  margin: 0 18px;
  color: var(--gold);
}
.hero-facts b { color: var(--ink); font-weight: 600; margin-right: 0.5ch; }

/* ---------- Ticker ---------- */

.ticker {
  background: var(--maroon-ink);
  border-block: 1px solid var(--maroon-deep);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 44s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #EBD9AE;
  white-space: nowrap;
}
.ticker-group span { padding-right: 12px; }
.ticker-group .up { color: var(--gold-bright); }
.ticker-group .dot { color: var(--maroon); padding: 0 12px 0 0; }
.ticker-group .dot::before { content: "•"; color: #6B4A20; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section { padding: 108px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 58px;
}
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

.link-plain {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease);
}
.link-plain:hover { gap: 13px; }

/* ---------- Experience ledger (home) ---------- */

.ledger { border-top: 1px solid var(--hairline); }

.ledger-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: baseline;
  padding: 38px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s var(--ease);
}
.ledger-row:hover { background: rgba(122, 30, 30, 0.028); }

.ledger-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.ledger-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.08;
}

.ledger-row p {
  color: var(--ink-soft);
  font-size: 0.99rem;
  line-height: 1.7;
}

/* ---------- Belief band ---------- */

.belief-band {
  position: relative;
  overflow: hidden;
  background: var(--maroon-ink);
  color: #F5EDDD;
  padding: 118px 0;
}
.belief-band .container { position: relative; }
.belief-band .eyebrow { color: var(--gold-bright); }
.belief-band .eyebrow::before { background: var(--gold-bright); }
.belief-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.12;
  max-width: 20ch;
}
.belief-band blockquote em { color: var(--gold-bright); font-style: italic; }
.belief-band .band-foot {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--hairline-dark);
  padding-top: 26px;
}
.belief-band .band-foot p {
  color: rgba(245, 237, 221, 0.66);
  max-width: 520px;
  font-size: 0.98rem;
}
.belief-band .link-plain { color: var(--gold-bright); border-color: var(--gold-bright); }


.belief-notes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.belief-note {
  position: absolute;
  width: max-content;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(0.82rem, 1.08vw, 1.05rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.035em;
  color: rgba(228, 179, 28, 0.80);
  white-space: nowrap;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
}

.belief-note::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 58px;
  height: 1px;
  background: rgba(228, 179, 28, 0.74);
  transform: translateX(-42%) rotate(-4deg);
  transform-origin: center;
}

.belief-note-top {
  top: -76px;
  left: 76.4%;
  transform: rotate(-6deg);
}

.belief-note-top::after {
  width: 64px;
  transform: translateX(-28%) rotate(-5deg);
}

.belief-note-middle {
  top: 50px;
  left: 60.5%;
  transform: rotate(-3deg);
}

.belief-note-middle::after {
  width: 60px;
  transform: translateX(-25%) rotate(-6deg);
}

.belief-note-lower {
  top: 128px;
  left: 82.8%;
  transform: rotate(-2deg);
}

.belief-note-lower::after {
  width: 78px;
  transform: translateX(-31%) rotate(-5deg);
}

/* ---------- Join CTA ---------- */

.join-cta { text-align: center; padding: 130px 0 140px; }
.join-cta h2 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  max-width: 14ch;
  margin: 0 auto 20px;
}
.join-cta p {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 40px;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 180px 0 70px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
.page-hero .page-lead {
  margin-top: 22px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ---------- Events hero illustration ---------- */

.events-hero {
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.events-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -108px;
  height: 260px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0) 0%, rgba(251, 250, 247, 0.68) 60%, var(--paper) 100%);
}
.events-hero .container {
  position: relative;
  z-index: 2;
}
.events-hero-art {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  top: 72px;
  left: 42%;
  width: min(920px, 58vw);
  height: 500px;
  overflow: hidden;
  opacity: 0.74;
  transform: translateZ(0);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.48) 19%, black 35%, black 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.04) 6%, rgba(0,0,0,0.48) 19%, black 35%, black 100%);
}
.events-hero-art img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 52%, rgba(0,0,0,0.52) 64%, transparent 74%);
  mask-image: linear-gradient(180deg, black 0%, black 52%, rgba(0,0,0,0.52) 64%, transparent 74%);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
}
.about-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.about-grid h2 em { color: var(--maroon); }
.about-grid p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-principles { border-top: 1px solid var(--hairline); }
.principle {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.principle .ledger-tag { padding-top: 4px; }
.principle p { color: var(--ink-soft); max-width: 640px; }

/* ---------- Events ---------- */

.event-list { border-top: 1px solid var(--hairline); }

.event-row {
  display: grid;
  grid-template-columns: 150px 170px minmax(0, 1fr) 24px;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s var(--ease);
}
.event-row:hover { background: rgba(122, 30, 30, 0.028); }

.event-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.event-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  margin-bottom: 8px;
}
.event-row .event-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 640px;
}
.event-row .tick {
  color: var(--gold);
  font-family: var(--font-mono);
  transition: transform 0.25s var(--ease);
}
.event-row:hover .tick { transform: translateX(5px); }

.events-note {
  margin-top: 42px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.events-note a { color: var(--maroon); border-bottom: 1px solid var(--gold); }


/* ---------- Leadership hero monogram watermark ---------- */

.leadership-page .page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.leadership-page .page-hero::before {
  content: "AIF";
  position: absolute;
  z-index: 0;
  left: 49%;
  right: auto;
  bottom: -26px;
  font-family: var(--font-display);
  font-size: clamp(15rem, 35vw, 32rem);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.055em;
  color: rgba(74, 15, 15, 0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.leadership-page .page-hero .container {
  position: relative;
  z-index: 1;
}

/* ---------- Leadership ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 28px;
}

.team-card { position: relative; }

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: 2px solid var(--gold);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  transition: transform 0.6s var(--ease);
}
.team-card:hover .team-photo img {
  transform: scale(1.025);
}

.team-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-top: 18px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-top: 7px;
}
.team-study {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 5px;
}

.team-hometown {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 5px;
  font-weight: 400;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 100px);
}

.contact-channels { border-top: 1px solid var(--hairline); margin-top: 8px; }
.contact-channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s var(--ease);
}
.contact-channel:hover { background: rgba(122, 30, 30, 0.028); }
.contact-channel .ledger-tag { flex: none; }
.contact-channel .value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.contact-blurb { color: var(--ink-soft); margin-bottom: 34px; max-width: 40ch; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 2px;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--maroon);
}
.form-submit { grid-column: 1 / -1; margin-top: 10px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--maroon-ink);
  color: rgba(245, 237, 221, 0.72);
  padding: 84px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline-dark);
}
.footer-word {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #F5EDDD;
  line-height: 1.1;
  margin-bottom: 18px;
}
.footer-word em { color: var(--gold-bright); }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 46ch; }

.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #F5EDDD;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.footer-social a:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 7px 0;
  font-size: 0.94rem;
  color: rgba(245, 237, 221, 0.72);
  transition: color 0.2s ease, padding-left 0.25s var(--ease);
}
.footer-col a:hover { color: #F5EDDD; padding-left: 6px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  padding-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 237, 221, 0.45);
}
.footer-bottom span { color: var(--gold-bright); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .caret { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .belief-note { font-size: 0.78rem; }
  .belief-note-top { top: -62px; left: 73%; }
  .belief-note-middle { top: 48px; left: 58%; }
  .belief-note-lower { top: 134px; left: 76%; }

  .events-hero-art {
    left: 40%;
    width: min(780px, 72vw);
    height: 420px;
    top: 98px;
    opacity: 0.62;
  }

  .hero-skyline {
    top: -24px;
    left: 54%;
    right: auto;
    transform: translateX(-35%);
    width: min(92vw, 980px);
    max-width: none;
    min-width: 0;
    opacity: 0.72;
  }

  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .ledger-row { grid-template-columns: 150px 1fr; }
  .ledger-row p { grid-column: 2; }
  .event-row { grid-template-columns: 130px 1fr 20px; }
  .event-row .event-body { grid-column: 2; }
  .event-row .event-date { grid-row: 1; }
}

@media (max-width: 820px) {
  .belief-notes { display: none; }
  .hero-skyline { display: none; }
  .events-hero-art { display: none; }

  .navbar-links, .navbar-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 150px 0 72px; }
  .section { padding: 78px 0; }
  .page-hero { padding: 140px 0 54px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .principle { grid-template-columns: 1fr; gap: 8px; }

  .ledger-row { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .ledger-row p { grid-column: auto; }

  .event-row { grid-template-columns: 1fr; gap: 10px; }
  .event-row .tick { display: none; }

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

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-card h3 { font-size: 1.2rem; }
  .hero-facts span + span::before { margin: 0 10px; }
}

/* ---------- About page integrated approved hero ---------- */

.about-page .about-copy-hero {
  position: relative;
  min-height: 680px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 0;
  background-color: var(--paper);
  background-image: url("assets/images/sketches/about-hero-approved.png");
  background-repeat: no-repeat;
  background-position: center 92px;
  background-size: min(1720px, calc(100vw + 320px)) auto;
}

.about-page .about-copy-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  width: min(1124px, calc(100vw - 284px));
  height: 1px;
  transform: translateX(-50%);
  background: rgba(201, 148, 15, 0.34);
  pointer-events: none;
}

.about-page .about-copy-hero .container {
  position: relative;
  z-index: 3;
  max-width: none;
  min-height: 680px;
  padding: 276px clamp(28px, 7.1vw, 104px) 54px;
}

.about-page .about-copy-row {
  display: block;
  width: min(360px, 100%);
}

.about-page .about-copy-heading .eyebrow {
  margin-bottom: 20px;
}

.about-page .about-copy-hero h1 {
  font-size: clamp(4rem, 6.8vw, 5.4rem);
}

.about-page .about-copy-hero .page-lead {
  margin-top: 30px;
  max-width: 350px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-page .about-core-section {
  padding: 42px 0 108px;
}

.about-page .about-core-section .about-grid {
  align-items: start;
}

@media (max-width: 1000px) {
  .about-page .about-copy-hero {
    min-height: 620px;
    background-position: center 100px;
    background-size: min(1220px, calc(100vw + 180px)) auto;
  }

  .about-page .about-copy-hero::after {
    width: calc(100vw - 56px);
  }

  .about-page .about-copy-hero .container {
    min-height: 620px;
    padding-top: 254px;
  }
}

@media (max-width: 820px) {
  .about-page .about-copy-hero {
    min-height: 690px;
    background-position: center 100px;
    background-size: 940px auto;
  }

  .about-page .about-copy-hero::after {
    width: calc(100vw - 56px);
  }

  .about-page .about-copy-hero .container {
    min-height: 690px;
    padding: 386px 28px 42px;
  }

  .about-page .about-copy-row {
    width: min(440px, 100%);
  }

  .about-page .about-copy-hero .page-lead {
    margin-top: 22px;
  }

  .about-page .about-core-section {
    padding-top: 34px;
  }
}

@media (max-width: 480px) {
  .about-page .about-copy-hero {
    min-height: 640px;
    background-position: center 96px;
    background-size: 780px auto;
  }

  .about-page .about-copy-hero .container {
    min-height: 640px;
    padding: 330px 24px 42px;
  }
}

/* ---------- About page locked hero (independent from Join) ---------- */

.about-page .about-fixed-hero {
  position: relative;
  height: 619px;
  min-height: 619px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.about-page .about-fixed-hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.about-page .about-fixed-hero-illustration img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}

.about-page .about-fixed-hero::before,
.about-page .about-fixed-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.about-page .about-fixed-hero::before {
  left: 0;
  width: 13%;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251, 250, 247, 0.42) 38%, rgba(251, 250, 247, 0) 100%);
}

.about-page .about-fixed-hero::after {
  right: 0;
  width: 8%;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(251, 250, 247, 0.34) 30%, rgba(251, 250, 247, 0) 100%);
}

.about-page .about-fixed-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 219px;
}

.about-page .about-fixed-hero-copy {
  width: min(342px, calc(100vw - 56px));
  max-width: 342px;
  transform: translate(-20px, -42px);
}

.about-page .about-fixed-hero .eyebrow {
  margin-bottom: 24px;
}

.about-page .about-fixed-hero-eyebrow {
  visibility: hidden;
}

.about-page .about-fixed-hero .page-lead {
  max-width: 332px;
  margin-top: 24px;
}

/* ---------- Join / Contact page compressed tabletop hero ---------- */

.contact-page .join-map-hero {
  position: relative;
  height: 619px;
  min-height: 619px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.contact-page .join-hero-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.contact-page .join-hero-illustration img {
  width: 100vw;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
}

.contact-page .join-map-hero::before,
.contact-page .join-map-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.contact-page .join-map-hero::before {
  left: 0;
  width: 7%;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251, 250, 247, 0.28) 46%, rgba(251, 250, 247, 0) 100%);
}

.contact-page .join-map-hero::after {
  right: 0;
  width: 5%;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(251, 250, 247, 0.22) 40%, rgba(251, 250, 247, 0) 100%);
}

.contact-page .join-hero-content {
  position: relative;
  z-index: 2;
  width: min(405px, calc(100vw - 56px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(230px, 17vw, 248px) 0 0;
  transform: translateX(18px);
}

.contact-page .join-map-hero .eyebrow {
  margin-bottom: 24px;
}

.contact-page .join-map-hero .page-lead {
  max-width: 405px;
  margin-top: 24px;
}

.contact-page > .section {
  padding-top: 37px;
}

@media (max-width: 1000px) {
  .about-page .about-fixed-hero {
    height: 560px;
    min-height: 560px;
  }

  .about-page .about-fixed-hero-content {
    padding-top: 190px;
  }

  .about-page .about-fixed-hero-illustration img {
    width: 116%;
    transform: translateX(-7%);
  }

  .contact-page .join-map-hero {
    height: 560px;
    min-height: 560px;
  }

  .contact-page .join-hero-content {
    padding-top: 210px;
    transform: none;
  }
}

@media (max-width: 820px) {
  .about-page .about-fixed-hero,
  .contact-page .join-map-hero {
    height: auto;
    min-height: 0;
    padding: 140px 0 54px;
  }

  .about-page .about-fixed-hero-content,
  .contact-page .join-hero-content {
    width: auto;
    max-width: var(--container);
    padding-top: 0;
    padding-left: 28px;
    padding-right: 28px;
    transform: none;
  }

  .about-page .about-fixed-hero-copy {
    width: auto;
    max-width: none;
    transform: none;
  }

  .about-page .about-fixed-hero-illustration,
  .contact-page .join-hero-illustration {
    display: none;
  }

  .contact-page > .section {
    padding-top: 78px;
  }
}

/* ---------- Contact page lower section ---------- */

.contact-page .contact-lower {
  padding-top: 37px;
  padding-bottom: 92px;
}

.contact-page .contact-lower .container {
  max-width: 1350px;
}

.contact-page .contact-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.22fr);
  gap: clamp(48px, 5.7vw, 76px);
  align-items: stretch;
}

.contact-page .contact-lower-panel,
.contact-page .contact-form-panel {
  border: 1px solid rgba(201, 148, 15, 0.22);
  border-radius: 6px;
  background: rgba(251, 250, 247, 0.62);
}

.contact-page .contact-lower-panel {
  padding: 17px 28px 44px;
}

.contact-page .contact-form-panel {
  padding: 18px 40px 22px;
}

.contact-page .contact-lower .eyebrow {
  margin-bottom: 10px;
}

.contact-page .contact-lower-panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-size: clamp(2.55rem, 3.15vw, 3.35rem);
  color: var(--ink);
  margin-top: 0;
}

.contact-page .contact-lower-copy {
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.48;
  max-width: 48ch;
}

.contact-page .contact-links-card {
  margin-top: 20px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(251, 250, 247, 0.42);
}

.contact-page .contact-link-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 26px minmax(148px, 0.88fr) minmax(0, 1.12fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  transition: background 0.25s var(--ease);
}

.contact-page .contact-link-row:last-child {
  border-bottom: 0;
}

.contact-page .contact-link-row:hover {
  background: rgba(122, 30, 30, 0.028);
}

.contact-page .contact-link-icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 1.03rem;
}

.contact-page .contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  white-space: nowrap;
}

.contact-page .contact-link-value {
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.25;
}

.contact-page .contact-link-arrow {
  justify-self: end;
  color: var(--gold);
  font-size: 1.17rem;
  line-height: 1;
}

.contact-page .contact-interest-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
}

.contact-page .contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-page .contact-form-field.full,
.contact-page .contact-form-submit,
.contact-page .contact-form-note {
  grid-column: 1 / -1;
}

.contact-page .contact-form-field label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-page .contact-form-field input,
.contact-page .contact-form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 8px 1px 9px;
  min-height: 33px;
  transition: border-color 0.25s ease;
}

.contact-page .contact-form-field textarea {
  min-height: 50px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 9px 10px;
  resize: vertical;
}

.contact-page .contact-form-field input:focus,
.contact-page .contact-form-field textarea:focus {
  outline: none;
  border-color: var(--maroon);
}

.contact-page .contact-form-submit {
  margin-top: 0;
}

.contact-page .contact-submit-button {
  min-width: 350px;
  justify-content: center;
  padding: 13px 28px;
  letter-spacing: 0.22em;
}

.contact-page .contact-form-note {
  margin-top: -8px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .contact-page .contact-lower .container {
    max-width: var(--container);
  }

  .contact-page .contact-lower-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .contact-page .contact-lower {
    padding-top: 42px;
    padding-bottom: 78px;
  }

  .contact-page .contact-lower-panel,
  .contact-page .contact-form-panel {
    padding: 24px 22px 30px;
  }

  .contact-page .contact-interest-form {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .contact-page .contact-link-row {
    grid-template-columns: 24px 1fr 18px;
    gap: 10px;
    padding: 14px 14px;
  }

  .contact-page .contact-link-value {
    grid-column: 2 / 3;
    margin-top: -7px;
  }

  .contact-page .contact-link-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
  }

  .contact-page .contact-submit-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .contact-page .contact-lower-panel h2 {
    font-size: 2.45rem;
  }
}