:root {
  --paper: #f5f1ea;
  --ink: #1a2238;
  --ink-soft: #3d4660;
  --ink-mute: #6b7290;
  --accent: #a8442a;
  --accent-deep: #7a2f1c;
  --rule: #c9c1b0;
  --hairline: rgba(26, 34, 56, 0.12);

  /* Institutional colors — restrained, slightly desaturated for editorial harmony */
  --harvard:      #8a1a1f;
  --stanford:     #8c1515;
  --caltech:      #ff6c0c;
  --columbia:     #4a7da8;
  --cornell:      #b31b1b;
  --cmu:          #a41e22;
  --brown:        #4e3629;
  --ucla:         #2774ae;
  --georgia-tech: #b3a369;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- NAV ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50;
}

.wordmark .ampersand {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.nav-link-portal {
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.nav-cta {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
  padding: 3.5rem 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease-out both;
}

.eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  font-variation-settings: "SOFT" 30;
  animation: fadeUp 0.9s ease-out 0.1s both;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  animation: fadeUp 0.9s ease-out 0.25s both;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease-out 0.4s both;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: all 0.4s;
}

.hero-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-aside {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-mute);
  max-width: 32ch;
  line-height: 1.5;
}

.hero-aside::before {
  content: '— ';
  color: var(--accent);
  font-style: normal;
}

/* ---------- NAME WALL ---------- */
.name-wall {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 4rem 3rem;
  animation: fadeUp 0.9s ease-out 0.55s both;
}

.name-wall-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.name-wall-label::before,
.name-wall-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.name-rows {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.name-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}

.name-row:first-child {
  border-bottom: 1px solid var(--hairline);
}

.name-cell {
  padding: 1.8rem 0.75rem;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  letter-spacing: -0.005em;
  font-variation-settings: "SOFT" 30;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
  color: var(--cell-color, var(--ink));
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.name-cell .cat {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.4s ease;
}

.name-cell .label {
  font-style: italic;
  line-height: 1;
}

.name-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--hairline);
}

.name-cell:hover {
  background-color: var(--cell-color);
  color: var(--paper);
}

.name-cell:hover .cat {
  color: rgba(245, 241, 234, 0.7);
}

.name-cell:hover::after {
  background: transparent;
}

.college-logo {
  max-width: 72%;
  max-height: 2.6rem;
  width: auto;
  height: auto;
  display: block;
  transition: filter 0.4s ease;
}

.name-cell:hover .college-logo {
  filter: brightness(0) invert(1);
}

/* Per-cell brand colors */
.name-cell.harvard      { --cell-color: var(--harvard); }
.name-cell.stanford     { --cell-color: var(--stanford); }
.name-cell.caltech      { --cell-color: var(--caltech); }
.name-cell.columbia     { --cell-color: var(--columbia); }
.name-cell.cornell      { --cell-color: var(--cornell); }
.name-cell.cmu          { --cell-color: var(--cmu); }
.name-cell.brown        { --cell-color: var(--brown); }
.name-cell.ucla         { --cell-color: var(--ucla); }
.name-cell.georgia-tech { --cell-color: var(--georgia-tech); }

.name-cell.more {
  color: var(--ink-mute);
  cursor: default;
}
.name-cell.more:hover {
  background-color: transparent;
  color: var(--ink-mute);
}

/* ---------- BIO ---------- */
.bio {
  padding: 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  border-top: 1px solid var(--hairline);
}

.bio-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink-mute);
  position: sticky;
  top: 2rem;
  align-self: start;
}

.bio-label::before {
  content: '§ ';
  color: var(--accent);
  font-style: normal;
}

.bio-content p {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 1.8rem;
  font-variation-settings: "SOFT" 40;
}

.bio-content p:first-child::first-letter {
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  margin: 0.4rem 0.6rem 0 0;
  font-weight: 400;
  color: var(--accent);
  font-style: italic;
}

.bio-content p strong {
  font-weight: 500;
  color: var(--ink);
}

.bio-content em {
  color: var(--accent-deep);
}

/* ---------- WHY ---------- */
.why {
  padding: 3.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.why h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-variation-settings: "SOFT" 30;
}

.why h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.why-body {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto;
}

.why-divider {
  width: 1px;
  height: 3rem;
  background: var(--rule);
  margin: 2.5rem auto 0;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 3rem 4rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.services-header h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30;
}

.services-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  align-self: end;
  max-width: 50ch;
}

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

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

.service-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink-mute);
  padding-top: 0.3rem;
}

.service-name {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 30;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem 4rem 0;
  text-align: center;
}

.cta-eyebrow {
  color: rgba(245, 241, 234, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0 auto 2.5rem;
  font-variation-settings: "SOFT" 30;
}

.cta h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--paper);
  transition: all 0.4s;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.cta-fineprint {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(245, 241, 234, 0.65);
  font-style: italic;
  font-family: 'Fraunces', serif;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: 4rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(245, 241, 234, 0.38);
  letter-spacing: 0.08em;
}

.ornament {
  color: var(--accent);
  font-size: 1.2rem;
}

.footer-email {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-email:hover {
  color: rgba(245, 241, 234, 0.75);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* NAV — wordmark only, centered */
  nav {
    padding: 1rem 1.25rem;
    justify-content: center;
  }
  .wordmark { font-size: 1.15rem; }
  .nav-right { display: none; }

  /* ARROWS — hide on mobile */
  .btn-arrow { display: none; }

  /* BIO LABEL — single line */
  .bio-label br { display: none; }

  /* HERO */
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-aside { max-width: 100%; }

  /* NAME WALL */
  .name-wall { padding: 1.5rem 1.25rem 2.5rem; }
  .name-wall-label { margin-bottom: 1.25rem; font-size: 0.62rem; }
  .name-cell { padding: 1rem 0.2rem; }
  .name-cell .label { font-size: 0.75rem; }
  .name-cell:not(:last-child)::after { top: 25%; bottom: 25%; }

  /* BIO */
  .bio { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.5rem 1.25rem; }
  .bio-label { position: static; }
  .bio-content p { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .bio-content p:first-child::first-letter {
    font-size: 2.8rem;
    margin: 0.15rem 0.4rem 0 0;
  }

  /* SERVICES */
  .services { padding: 2.5rem 1.25rem 2.5rem; }
  .services-header { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
  .service-item { grid-template-columns: 36px 1fr; gap: 0.5rem 0.875rem; padding: 1.25rem 0; }
  .service-desc { grid-column: 1 / -1; }
  .service-num { padding-top: 0.15rem; font-size: 0.85rem; }
  .service-name { font-size: 1.2rem; }

  /* APPROACH */
  .why { padding: 2.5rem 1.25rem; }
  .why-body { font-size: 1rem; }
  .why-divider { height: 2.5rem; margin-top: 2rem; }

  /* CTA */
  .cta { padding: 4rem 1.25rem 0; }

  /* FOOTER (inside CTA) */
  footer { flex-direction: column; gap: 0.75rem; padding: 1.75rem 0; text-align: center; margin-top: 3rem; }
}
