:root {
  --ink: #0b0b0f;
  --ink-2: #181820;
  --paper: #f4ede0;
  --paper-2: #ebe1cf;
  --court: #1d3a8a;       /* deep court blue */
  --orange: #f25c1f;      /* signal orange */
  --magenta: #e23a78;
  --lime: #c8e85a;
  --cream: #f9e7c4;
  --rule: rgba(11,11,15,0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.06  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ===== NAV ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0;
  background: rgba(244, 237, 224, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  background: var(--ink);
  color: var(--paper);
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  position: relative;
}
.nav__mark-dot { color: var(--orange); font-size: 8px; position: absolute; top: 6px; right: 8px; }
.nav__wordmark { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.nav__wordmark em { color: var(--orange); font-style: italic; }

.nav__links { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a:hover { color: var(--orange); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--orange);
  transition: width 0.25s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: var(--orange); transform: translateY(-1px); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: clamp(40px, 8vw, 110px) clamp(20px, 4vw, 56px) 0;
  position: relative;
}
.hero__meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; border-radius: 999px;
  font-weight: 500;
}
.tag--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.hero__title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(58px, 12vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 40px;
}
.hero__title-accent {
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
  position: relative;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--court);
  z-index: -1;
  transform: skewX(-6deg);
  opacity: 0.2;
}

.hero__split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  margin-bottom: 40px;
}
@media (max-width: 820px) { .hero__split { grid-template-columns: 1fr; } }

.hero__lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0;
}
.hero__lede em { color: var(--orange); font-style: italic; font-weight: 500; }
.hero__lede u { text-decoration: underline; text-decoration-color: var(--court); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.hero__stats { display: flex; gap: 28px; }
.stat__num {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  color: var(--court);
}
.stat__label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }

.hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--orange);
  color: var(--paper);
  padding: 22px 30px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.25s, background 0.25s;
}
.hero__cta:hover { background: var(--ink); transform: translateY(-2px); }
.hero__cta-arrow { transition: transform 0.25s; }
.hero__cta:hover .hero__cta-arrow { transform: translateX(6px); }

.ticker {
  margin-top: clamp(60px, 8vw, 100px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-radius: 999px;
  padding: 16px 0;
  position: relative;
}
.ticker__track {
  display: inline-flex; gap: 40px;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
}
.ticker__track span { padding-left: 40px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  gap: 0 clamp(24px, 5vw, 60px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 80px;
}
.manifesto__num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 56px;
  color: var(--orange);
  grid-row: 1 / span 2;
}
.manifesto__kicker {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.manifesto__body {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
  opacity: 0.88;
}
@media (max-width: 720px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto__num { grid-row: auto; }
}

/* ===== SECTION HEADERS ===== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 4vw, 56px) 32px;
  border-bottom: 1px solid var(--rule);
}
.section-head__num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--orange);
}
.section-head__title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 110px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.section-head__sub {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
  text-align: right;
  max-width: 30ch;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head__sub { text-align: left; }
}

/* ===== CLASSES ===== */
.classes__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.class-card {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: pointer;
}
.class-card:nth-child(1) { grid-column: span 7; }
.class-card:nth-child(2) { grid-column: span 5; }
.class-card:nth-child(3) { grid-column: span 4; }
.class-card:nth-child(4) { grid-column: span 4; }
.class-card:nth-child(5) { grid-column: span 4; }
@media (max-width: 900px) {
  .class-card { grid-column: span 12 !important; }
}

.class-card[data-accent="orange"]:hover { background: var(--orange); color: var(--paper); }
.class-card[data-accent="magenta"]:hover { background: var(--magenta); color: var(--paper); }
.class-card[data-accent="lime"]:hover { background: var(--lime); color: var(--ink); }
.class-card[data-accent="blue"]:hover { background: var(--court); color: var(--paper); }
.class-card[data-accent="cream"]:hover { background: var(--cream); color: var(--ink); }

.class-card__num {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 18px;
}
.class-card__name {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(38px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0 0 14px;
}
.class-card__tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0 0 18px;
}
.class-card__body {
  font-size: 15px; line-height: 1.55;
  margin: 0 0 24px;
  opacity: 0.85;
  max-width: 44ch;
}
.class-card__levels {
  margin-top: auto;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.class-card__level {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===== SCHEDULE ===== */
.schedule__tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 56px) 0;
}
.schedule__tab {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.schedule__tab:hover { background: var(--ink); color: var(--paper); }
.schedule__tab.is-active { background: var(--orange); border-color: var(--orange); color: var(--paper); }

.schedule__list {
  padding: 32px clamp(20px, 4vw, 56px) clamp(60px, 8vw, 100px);
  display: flex; flex-direction: column;
}
.sched-row {
  display: grid;
  grid-template-columns: 120px 1.6fr 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s, padding-left 0.2s;
}
.sched-row:hover { background: rgba(11,11,15,0.04); padding-left: 12px; }
.sched-row__time {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
}
.sched-row__name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
}
.sched-row__instr { font-size: 14px; opacity: 0.8; }
.sched-row__meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
@media (max-width: 820px) {
  .sched-row { grid-template-columns: 80px 1fr; gap: 4px 16px; }
  .sched-row__instr, .sched-row__meta { grid-column: 2; }
}

/* ===== FACULTY ===== */
.faculty__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fac-card {
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 36px);
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: background 0.3s;
  cursor: default;
}
.fac-card:hover { background: var(--ink); color: var(--paper); }
.fac-card:hover .fac-card__avatar { background: var(--orange); color: var(--paper); }
.fac-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--court);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  transition: background 0.3s, color 0.3s;
}
.fac-card__name {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.fac-card__role {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 18px;
  opacity: 0.85;
}
.fac-card__credits {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ===== STORIES ===== */
.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px) clamp(80px, 10vw, 120px);
}
.story {
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 28px;
  background: var(--paper);
  display: flex; flex-direction: column;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.story:hover { transform: translate(-3px, -3px); background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--orange); }
.story__quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  margin: 0 0 24px;
}
.story__quote::before { content: '“'; font-weight: 900; font-size: 1.4em; line-height: 0.7; margin-right: 4px; color: var(--orange); }
.story__name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: auto;
}
.story__role {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 4px;
}

/* ===== VISIT ===== */
.visit {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 56px);
}
.visit__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 900px) { .visit__inner { grid-template-columns: 1fr; } }

.visit .section-head__num { color: var(--orange); }
.visit__title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(60px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 12px 0 28px;
}
.visit__copy {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 50ch;
  opacity: 0.85;
  margin: 0 0 36px;
}
.visit__details { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(244,237,224,0.18); }
.visit__details li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(244,237,224,0.18);
  align-items: baseline;
}
.visit__details span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.visit__details strong { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; }

.visit__card {
  background: var(--orange);
  color: var(--ink);
  padding: clamp(32px, 4vw, 48px);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.visit__card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; height: 180%;
  background: var(--cream);
  border-radius: 50%;
  opacity: 0.4;
}
.visit__card > * { position: relative; z-index: 1; }
.visit__card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.visit__card-price {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(96px, 14vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.visit__card-price span {
  font-size: 0.4em;
  vertical-align: top;
  margin-right: 6px;
  font-weight: 700;
}
.visit__card-copy {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 38ch;
}
.visit__card-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 26px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.visit__card-cta:hover { background: var(--court); transform: translateY(-2px); }
.visit__card-foot {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ===== FOOTER ===== */
.foot {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) 40px;
  border-top: 1px solid var(--rule);
}
.foot__big {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(56px, 14vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.foot__row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
