:root {
  --bg: #fff8fc;
  --surface: #fffefe;
  --surface-soft: #f9f3ff;
  --text: #2b2244;
  --muted: #6f5f86;
  --lavender: #c7b0ff;
  --peach: #ffd6bf;
  --mint: #93d8c9;
  --line: #ecdff2;
  --shadow-soft: 0 14px 34px rgba(74, 51, 113, 0.12);
  --hero-image: url("../images/hero-canoe.png");
  /* washi-tape style accents (used on cards, hero aside, timeline) */
  --tape-sun: linear-gradient(90deg, rgba(255, 230, 160, 0.9), rgba(255, 195, 170, 0.88));
  --tape-sky: linear-gradient(90deg, rgba(155, 210, 245, 0.88), rgba(198, 178, 255, 0.87));
  --tape-mint: linear-gradient(90deg, rgba(165, 235, 205, 0.88), rgba(200, 215, 255, 0.86));
  --tape-petal: linear-gradient(90deg, rgba(255, 195, 215, 0.9), rgba(255, 225, 185, 0.86));
  /* torn paper lift — a bit stronger so it reads on light section backgrounds; filter follows clip-path */
  --paper-raise:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7)) drop-shadow(0 2px 5px rgba(32, 22, 48, 0.1))
    drop-shadow(0 6px 16px rgba(48, 38, 70, 0.12)) drop-shadow(0 12px 28px rgba(58, 46, 86, 0.14))
    drop-shadow(0 20px 46px rgba(74, 51, 113, 0.13));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  padding-bottom: 22vh;
  background:
    radial-gradient(1200px 720px at -10% -10%, rgba(199, 176, 255, 0.26), transparent 55%),
    radial-gradient(920px 620px at 110% 0%, rgba(255, 214, 191, 0.33), transparent 55%),
    var(--bg);
}

.container {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(248, 245, 242, 0.85);
  border-bottom: 1px solid rgba(232, 223, 216, 0.75);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  transition: color 220ms ease;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.hero {
  padding: 5.6rem 0 3.7rem;
  position: relative;
  z-index: 5;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(232, 223, 216, 0.75);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      112deg,
      rgba(30, 27, 46, 0.42) 0%,
      rgba(30, 27, 46, 0.3) 40%,
      rgba(30, 27, 46, 0.22) 100%
    ),
    linear-gradient(180deg, rgba(248, 245, 242, 0.08), rgba(248, 245, 242, 0.14));
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
}

.eyebrow {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #4d4568;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.8rem;
}

h1 {
  margin: 0.65rem 0 0.75rem;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  max-width: 18ch;
}

.hero h1 {
  color: #fffdfd;
  text-shadow: 0 2px 18px rgba(30, 27, 46, 0.35);
}

.subtitle {
  margin: 0;
  color: #fbf8ff;
  font-size: 1.1rem;
  max-width: 52ch;
}

.meta {
  margin-top: 0.9rem;
  color: #f2ecff;
}

.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  background: linear-gradient(135deg, #7c5ec7, #5f9ccd);
  color: #fff;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.button-soft {
  background: var(--surface);
  color: var(--text);
  border-color: #d9c6ea;
  box-shadow: none;
}

/* If this aside is uncommented: clip-path clips text too — mirror .card (paper on ::before only) or add an inner wrapper. */
.hero-card {
  background:
    linear-gradient(78deg, transparent 40%, rgba(115, 88, 58, 0.06) 44.5%, rgba(115, 88, 58, 0.1) 46.5%, rgba(115, 88, 58, 0.055) 49%, transparent 53%),
    linear-gradient(198deg, transparent 46%, rgba(95, 72, 52, 0.048) 50.5%, rgba(95, 72, 52, 0.09) 52%, rgba(95, 72, 52, 0.042) 54.5%, transparent 58%),
    linear-gradient(152deg, transparent 58%, rgba(108, 82, 58, 0.045) 62%, rgba(108, 82, 58, 0.078) 63.5%, rgba(108, 82, 58, 0.04) 66%, transparent 70%),
    linear-gradient(22deg, transparent 18%, rgba(100, 78, 55, 0.04) 22%, rgba(100, 78, 55, 0.075) 23.5%, rgba(100, 78, 55, 0.038) 26%, transparent 30%),
    linear-gradient(112deg, transparent 72%, rgba(88, 68, 50, 0.038) 76%, rgba(88, 68, 50, 0.068) 77.5%, transparent 81%),
    radial-gradient(ellipse 92% 58% at 22% 78%, rgba(188, 158, 125, 0.09), transparent 58%),
    radial-gradient(ellipse 72% 48% at 82% 20%, rgba(198, 172, 138, 0.075), transparent 52%),
    radial-gradient(ellipse 50% 38% at 55% 45%, rgba(165, 135, 105, 0.055), transparent 62%),
    radial-gradient(ellipse 45% 55% at 68% 68%, rgba(175, 145, 115, 0.06), transparent 55%),
    linear-gradient(150deg, #fffdfb 0%, #faf3eb 100%);
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: var(--paper-raise);
  padding: 1.4rem 1.35rem;
  position: relative;
  transform: rotate(-0.6deg);
  -webkit-clip-path: url(#tear-b);
  clip-path: url(#tear-b);
}

/* Tape accents: sitting on the paper (inside the tear) */
.hero-card::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 15px;
  right: 0.7rem;
  top: 0.5rem;
  z-index: 2;
  border-radius: 3px;
  background: var(--tape-sun);
  opacity: 0.92;
  transform: rotate(5deg);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 16px;
  left: 0.7rem;
  top: 0.48rem;
  z-index: 2;
  border-radius: 3px;
  background: var(--tape-sky);
  opacity: 0.9;
  transform: rotate(-5deg);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-card-text {
  margin: 0.45rem 0 0;
}

/* Home placeholder: hero graphic only, no nav/footer */
.placeholder-site main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.placeholder-site .hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 12vh, 6rem);
}

.placeholder-site .hero .container {
  flex: 0 0 auto;
  width: 100%;
}

.hero--placeholder .hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 44rem;
}

.hero-placeholder-note {
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff8ff;
  text-shadow: 0 1px 12px rgba(30, 27, 46, 0.35);
}

.section {
  padding: 3.2rem 0;
  position: relative;
}

section[id] {
  scroll-margin-top: 30px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(191, 166, 255, 0.13), rgba(123, 200, 182, 0.08));
  border-block: 1px solid var(--line);
  position: relative;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Wrapper: tape + drop-shadow live here. Filter on the shell (not the clipped .card) so shadows render around the torn shape. */
.card-shell {
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  -webkit-filter: var(--paper-raise);
  filter: var(--paper-raise);
}

/* Clip only the paper layers (::before / ::after), not text — avoids torn edge cutting glyphs */
.card {
  --tear: url(#tear-a);
  position: relative;
  z-index: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  /* Room for torn top edge + washi before copy starts */
  padding: 2.45rem 1.95rem 2rem;
}

/* Base stock + subtle fiber; torn silhouette applies here only */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(118deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 2px, rgba(60, 48, 40, 0.02) 2px, rgba(60, 48, 40, 0.02) 3px),
    repeating-linear-gradient(12deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 4px, rgba(80, 65, 120, 0.016) 4px, rgba(80, 65, 120, 0.016) 5px),
    linear-gradient(160deg, #fffcfa 0%, #faf4ec 50%, #f2e9e1 100%);
  background-blend-mode: multiply, multiply, normal;
  -webkit-clip-path: var(--tear);
  clip-path: var(--tear);
}

/* Crumpled creases — three distinct fold patterns (multiply keeps the yellow paper base) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: multiply;
  background:
    linear-gradient(48deg, transparent 41%, rgba(118, 90, 58, 0.065) 45%, rgba(118, 90, 58, 0.12) 47%, rgba(118, 90, 58, 0.058) 49.5%, transparent 54%),
    linear-gradient(132deg, transparent 34%, rgba(92, 72, 52, 0.05) 38.5%, rgba(92, 72, 52, 0.1) 40.5%, rgba(92, 72, 52, 0.045) 43%, transparent 48%),
    linear-gradient(18deg, transparent 52%, rgba(105, 80, 58, 0.048) 56%, rgba(105, 80, 58, 0.088) 57.5%, rgba(105, 80, 58, 0.042) 60%, transparent 64%),
    linear-gradient(96deg, transparent 22%, rgba(98, 75, 54, 0.042) 26%, rgba(98, 75, 54, 0.078) 27.5%, rgba(98, 75, 54, 0.036) 30%, transparent 34%),
    linear-gradient(168deg, transparent 62%, rgba(88, 68, 50, 0.04) 66%, rgba(88, 68, 50, 0.072) 67.5%, transparent 71%),
    linear-gradient(72deg, transparent 8%, rgba(112, 85, 62, 0.038) 12%, rgba(112, 85, 62, 0.065) 13.5%, transparent 17%),
    linear-gradient(162deg, rgba(255, 252, 246, 0.4) 0%, transparent 36%),
    radial-gradient(ellipse 88% 52% at 16% 74%, rgba(186, 156, 122, 0.092), transparent 56%),
    radial-gradient(ellipse 74% 48% at 90% 20%, rgba(202, 176, 142, 0.082), transparent 52%),
    radial-gradient(ellipse 52% 42% at 50% 46%, rgba(158, 128, 98, 0.062), transparent 58%),
    radial-gradient(ellipse 42% 56% at 72% 62%, rgba(168, 138, 108, 0.055), transparent 54%);
  -webkit-clip-path: var(--tear);
  clip-path: var(--tear);
}

.grid > .card-shell:nth-child(3n + 1) .card::after,
.timeline li:nth-child(3n + 1) .card::after {
  transform: rotate(0.45deg);
  opacity: 0.37;
}

.grid > .card-shell:nth-child(3n + 2) .card::after,
.timeline li:nth-child(3n + 2) .card::after {
  transform: rotate(-0.55deg) scale(1.012);
  opacity: 0.36;
  background:
    linear-gradient(62deg, transparent 38%, rgba(115, 88, 62, 0.06) 42%, rgba(115, 88, 62, 0.11) 44%, rgba(115, 88, 62, 0.052) 46.5%, transparent 51%),
    linear-gradient(154deg, transparent 28%, rgba(90, 70, 52, 0.05) 32%, rgba(90, 70, 52, 0.095) 33.5%, rgba(90, 70, 52, 0.044) 36%, transparent 40%),
    linear-gradient(118deg, transparent 68%, rgba(100, 76, 55, 0.048) 72%, rgba(100, 76, 55, 0.085) 73.5%, rgba(100, 76, 55, 0.04) 76%, transparent 80%),
    linear-gradient(14deg, transparent 44%, rgba(108, 82, 60, 0.045) 48%, rgba(108, 82, 60, 0.082) 49.5%, transparent 53%),
    linear-gradient(88deg, transparent 12%, rgba(95, 74, 54, 0.04) 16%, rgba(95, 74, 54, 0.072) 17.5%, transparent 21%),
    linear-gradient(-18deg, transparent 78%, rgba(85, 66, 48, 0.042) 82%, rgba(85, 66, 48, 0.07) 83.5%, transparent 87%),
    linear-gradient(178deg, rgba(255, 251, 244, 0.38) 0%, transparent 34%),
    radial-gradient(ellipse 78% 56% at 82% 72%, rgba(190, 160, 128, 0.09), transparent 55%),
    radial-gradient(ellipse 62% 50% at 14% 24%, rgba(195, 168, 135, 0.078), transparent 50%),
    radial-gradient(ellipse 48% 44% at 48% 38%, rgba(152, 122, 95, 0.06), transparent 56%),
    radial-gradient(ellipse 55% 40% at 30% 88%, rgba(175, 145, 118, 0.058), transparent 52%);
}

.grid > .card-shell:nth-child(3n + 3) .card::after,
.timeline li:nth-child(3n + 3) .card::after {
  transform: rotate(0.32deg) scale(0.988);
  opacity: 0.35;
  background:
    linear-gradient(38deg, transparent 46%, rgba(120, 92, 65, 0.058) 50%, rgba(120, 92, 65, 0.11) 51.5%, rgba(120, 92, 65, 0.05) 54%, transparent 58%),
    linear-gradient(142deg, transparent 18%, rgba(94, 72, 52, 0.048) 22%, rgba(94, 72, 52, 0.09) 23.5%, rgba(94, 72, 52, 0.04) 26%, transparent 30%),
    linear-gradient(76deg, transparent 58%, rgba(102, 78, 56, 0.046) 62%, rgba(102, 78, 56, 0.084) 63.5%, rgba(102, 78, 56, 0.04) 66%, transparent 70%),
    linear-gradient(12deg, transparent 32%, rgba(110, 84, 62, 0.044) 36%, rgba(110, 84, 62, 0.08) 37.5%, transparent 41%),
    linear-gradient(170deg, transparent 6%, rgba(88, 68, 50, 0.04) 10%, rgba(88, 68, 50, 0.068) 11.5%, transparent 15%),
    linear-gradient(102deg, transparent 84%, rgba(92, 72, 54, 0.04) 88%, rgba(92, 72, 54, 0.065) 89.5%, transparent 93%),
    linear-gradient(8deg, rgba(255, 252, 246, 0.36) 0%, transparent 32%),
    radial-gradient(ellipse 70% 58% at 24% 32%, rgba(188, 158, 125, 0.088), transparent 54%),
    radial-gradient(ellipse 80% 46% at 88% 58%, rgba(200, 172, 140, 0.08), transparent 52%),
    radial-gradient(ellipse 44% 48% at 56% 18%, rgba(160, 130, 100, 0.064), transparent 58%),
    radial-gradient(ellipse 50% 52% at 40% 78%, rgba(170, 140, 112, 0.056), transparent 53%);
}

.grid > .card-shell:nth-child(3n + 1) .card {
  --tear: url(#tear-a);
}

.grid > .card-shell:nth-child(3n + 2) .card {
  --tear: url(#tear-b);
}

.grid > .card-shell:nth-child(3n + 3) .card {
  --tear: url(#tear-c);
}

.card--clickable {
  cursor: pointer;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 0;
  -webkit-clip-path: var(--tear);
  clip-path: var(--tear);
}

.card a[href]:not(.card-hit) {
  position: relative;
  z-index: 6;
}

.card-hit:focus-visible {
  outline: 2px solid #7c5ec7;
  outline-offset: 3px;
}

.card > *:not(.card-hit) {
  position: relative;
  z-index: 1;
}

.card-more {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: #6b5a8a;
}

/* Highlights: extra top inset so copy clears tape + torn edge */
#highlights .card {
  padding: 4.1rem 2.35rem 2.4rem;
}

#highlights .card--with-map {
  padding-bottom: 2.5rem;
}

#highlights .grid > .card-shell {
  transform: translateY(-10px);
}

/*
 * Washi: one consistent placement on every grid card (top-right, straddling the tear).
 * Only the gradient color varies by column — no jumping left/right.
 */
.card-shell::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  right: 0.62rem;
  left: auto;
  width: 64px;
  height: 16px;
  z-index: 3;
  border-radius: 3px;
  background: var(--tape-sun);
  opacity: 0.95;
  transform: rotate(4deg);
  transform-origin: center center;
  pointer-events: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(45, 35, 60, 0.1);
}

.grid > .card-shell:nth-child(3n + 2)::after {
  background: var(--tape-sky);
}

.grid > .card-shell:nth-child(3n + 3)::after {
  background: var(--tape-mint);
}

/* Academic Focus: nudge washi tape slightly higher on the cards */
#academics .card-shell::after {
  top: calc(0.42rem - 8px);
}

/* Activities & Leadership: nudge washi tape slightly lower on the cards */
#extracurriculars .card-shell::after {
  top: calc(0.42rem + 4px);
}

/* Highlights: washi tape slightly lower on the cards */
#highlights .card-shell::after {
  top: calc(0.42rem + 10px);
}

.card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card--with-map .highlight-map {
  margin: 0.5rem 0 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.card--with-map .highlight-map img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Caption below the image (e.g. PDF link); figure can’t use overflow:hidden or the caption clips */
.card--with-map .highlight-map:has(figcaption) {
  overflow: visible;
  border: none;
  background: transparent;
}

.card--with-map .highlight-map:has(figcaption) img {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.card--with-map .highlight-map--embed {
  overflow: visible;
  border: none;
  background: transparent;
}

.highlight-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8edf1;
}

.highlight-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.highlight-map-caption {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.highlight-map-external {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.highlight-map-external a {
  font-weight: 650;
}

.highlight-detail-page {
  padding-top: 2rem;
}

.highlight-detail-inner {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

/* Coulonge (and future detail pages): same torn paper + washi as grid cards */
.highlight-detail-paper-wrap {
  margin-top: 0.35rem;
  overflow: visible;
}

.highlight-detail-paper {
  --tear: url(#tear-b);
  /* Match highlights top inset so back link + title clear the tape */
  padding: 4.1rem 2.35rem 2.4rem;
}

/* Explicit tape = same geometry as .card-shell::after; mint accent for this page */
.highlight-detail-paper-wrap.card-shell::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  right: 0.62rem;
  left: auto;
  width: 64px;
  height: 16px;
  z-index: 3;
  border-radius: 3px;
  background: var(--tape-mint);
  opacity: 0.95;
  transform: rotate(4deg);
  transform-origin: center center;
  pointer-events: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(45, 35, 60, 0.1);
}

.highlight-detail-back {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.highlight-detail-back a {
  font-weight: 600;
}

.highlight-detail-title {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.highlight-detail-intro {
  margin: 0 0 1.75rem;
  max-width: 65ch;
  font-size: 1.05rem;
}

.highlight-map--full .highlight-map-frame {
  max-height: none;
  aspect-ratio: 16 / 10;
  min-height: 400px;
}

@media (min-width: 768px) {
  .highlight-map--full .highlight-map-frame {
    min-height: 520px;
  }
}

.highlight-detail-page .highlight-map--full {
  margin: 0;
}

.highlight-detail-page .highlight-map--full .highlight-map-caption {
  margin-top: 0.65rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.96rem;
  margin-top: 0.25rem;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.timeline li {
  list-style: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.timeline .card {
  --tear: url(#tear-a);
  position: relative;
  z-index: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.timeline li:nth-child(3n + 1) .card {
  --tear: url(#tear-a);
}

.timeline li:nth-child(3n + 2) .card {
  --tear: url(#tear-b);
}

.timeline li:nth-child(3n + 3) .card {
  --tear: url(#tear-c);
}

/* Honors: same tape geometry as grid, top-left so it doesn’t crowd the heading */
#awards .card-shell--honors::after {
  top: calc(0.42rem - 5px);
  right: auto;
  left: 0.62rem;
  width: 64px;
  height: 16px;
  transform: rotate(-4deg);
  background: var(--tape-sun);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(45, 35, 60, 0.1);
}

#awards .timeline li:nth-child(3n + 2) .card-shell--honors::after {
  background: var(--tape-sky);
}

#awards .timeline li:nth-child(3n + 3) .card-shell--honors::after {
  background: var(--tape-petal);
}

#awards .card > strong {
  display: block;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.25rem;
}

.timeline .card > * {
  position: relative;
  z-index: 1;
}

.timeline span {
  display: block;
  color: var(--muted);
}

a {
  color: #473983;
}

a:hover {
  color: #362c66;
}

.links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.links a {
  display: inline-flex;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #d9c6ea;
  background: var(--surface);
  color: var(--text);
  padding: 0.52rem 0.9rem;
  font-weight: 650;
  transition: transform 220ms ease;
}

.links a:hover {
  transform: translateY(-2px);
}

.site-footer {
  padding: 1.8rem 0 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .hero-card::before,
  .hero-card::after {
    width: 48px;
    height: 12px;
    opacity: 0.75;
  }

  .card {
    padding: 2.15rem 1.65rem 1.85rem;
  }

  .card-shell::after,
  #awards .card-shell--honors::after {
    width: 54px;
    height: 14px;
    top: 0.36rem;
    right: 0.5rem;
  }

  #awards .card-shell--honors::after {
    top: calc(0.36rem - 5px);
    right: auto;
    left: 0.5rem;
  }

  #highlights .card {
    padding: 3.65rem 1.85rem 2.15rem;
  }

  #highlights .card-shell::after {
    top: calc(0.36rem + 10px);
  }

  .timeline .card {
    padding: 2.15rem 1.65rem 1.85rem;
  }

  .highlight-detail-paper-wrap.card-shell::after {
    width: 54px;
    height: 14px;
    top: 0.36rem;
    right: 0.5rem;
  }

  .highlight-detail-paper {
    padding: 3.65rem 1.85rem 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
