:root {
  --seafoam: #c0cace;
  --ballerina: #ecece7;
  --linen: #e9e8e0;
  --silence: #d1ccc4;
  --text: #1f1f1f;
  --muted: #66625c;
  --paper: #f8f8f4;
  --white: rgba(255, 255, 255, 0.78);
  --line: rgba(31, 31, 31, 0.12);
  --shadow: 0 24px 70px rgba(31, 31, 31, 0.09);
  --soft-shadow: 0 16px 40px rgba(31, 31, 31, 0.07);
  --radius: 22px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(192, 202, 206, 0.28), transparent 30rem),
    linear-gradient(135deg, var(--ballerina), var(--linen) 48%, #f7f6f0);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: min(46vw, 520px);
  aspect-ratio: 1.2 / 1;
  left: -14vw;
  top: 18vh;
  border-radius: 43% 57% 52% 48%;
  background: rgba(209, 204, 196, 0.26);
  filter: blur(2px);
}

body::after {
  width: min(34vw, 420px);
  aspect-ratio: 1;
  right: -12vw;
  bottom: 5vh;
  border-radius: 57% 43% 46% 54%;
  background: rgba(192, 202, 206, 0.22);
  filter: blur(2px);
}

body.overlay-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--text);
  color: var(--ballerina);
  padding: 0.7rem 1rem;
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 202, 206, 0.2), var(--seafoam), rgba(31, 31, 31, 0.5));
  box-shadow: 0 0 20px rgba(192, 202, 206, 0.7);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: 0.7rem 0.8rem 0.7rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: rgba(248, 248, 244, 0.72);
  box-shadow: 0 14px 40px rgba(31, 31, 31, 0.07);
  backdrop-filter: blur(18px);
  transition: background 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 248, 244, 0.92);
  box-shadow: 0 16px 46px rgba(31, 31, 31, 0.11);
}

.brand {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.22rem;
  border: 1px solid rgba(31, 31, 31, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 999px;
  padding: 0.5rem 0.82rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
  background: rgba(192, 202, 206, 0.18);
}

.primary-nav a.is-active {
  color: var(--text);
  background: rgba(192, 202, 206, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(31, 31, 31, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.nav-toggle span {
  display: block;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background: var(--text);
}

.nav-toggle strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  scroll-margin-top: 6rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  min-height: 100svh;
  padding-top: 7.25rem;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.hero-bg {
  position: absolute;
  inset: 8rem -7vw auto;
  height: min(58vw, 620px);
  pointer-events: none;
  transform: translate3d(var(--cursor-x, 0), calc(var(--hero-drift, 0px) + var(--cursor-y, 0)), 0);
  transition: transform 160ms ease-out;
}

.soft-shape {
  position: absolute;
  border-radius: 46% 54% 58% 42%;
  filter: blur(1px);
  opacity: 0.85;
}

.shape-one {
  width: min(48vw, 540px);
  aspect-ratio: 1;
  background: rgba(192, 202, 206, 0.44);
  right: 2vw;
  top: 0;
}

.shape-two {
  width: min(35vw, 400px);
  aspect-ratio: 1;
  background: rgba(209, 204, 196, 0.5);
  left: 0;
  bottom: 4rem;
}

.shape-three {
  width: min(22vw, 250px);
  aspect-ratio: 1.15 / 1;
  right: 36%;
  top: 8%;
  border-radius: 58% 42% 49% 51%;
  background: rgba(233, 232, 224, 0.64);
}

.line-accent,
.curve-accent,
.float-mark {
  position: absolute;
  pointer-events: none;
}

.line-accent {
  width: min(24vw, 280px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 31, 31, 0.14), transparent);
  transform: rotate(-12deg);
}

.line-one {
  left: 18%;
  top: 12%;
}

.line-two {
  right: 10%;
  bottom: 16%;
  transform: rotate(16deg);
}

.curve-accent {
  width: min(18vw, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.curve-one {
  left: 48%;
  bottom: 4%;
  transform: rotate(-24deg);
}

.float-mark {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(192, 202, 206, 0.7);
  box-shadow: 0 0 0 0.5rem rgba(192, 202, 206, 0.12);
  animation: float-mark 7s ease-in-out infinite;
}

.mark-one {
  left: 8%;
  top: 26%;
}

.mark-two {
  right: 23%;
  bottom: 26%;
  animation-delay: -2.5s;
}

.hero-content,
.hero-card,
.section-heading,
.about-panel,
.info-card,
.project-card,
.achievement-card,
.featured-achievement {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin-top: 0.65rem;
  font-size: clamp(4.8rem, 14vw, 10.4rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.7rem, 4.25vw, 3.8rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.school {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-intro {
  width: min(100%, 650px);
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.placeholder-copy {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.82rem 1.22rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(192, 202, 206, 0.95);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  background: var(--text);
  color: var(--ballerina);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #2a2a2a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.56);
}

.hero-card,
.about-panel {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.portrait-editable {
  min-height: 0;
}

.portrait-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: calc(var(--radius) - 8px);
  background:
    linear-gradient(135deg, rgba(192, 202, 206, 0.8), rgba(236, 236, 231, 0.8)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 31, 31, 0.035) 12px 13px);
  color: rgba(31, 31, 31, 0.58);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
}

.image-placeholder.alt {
  background:
    linear-gradient(135deg, rgba(233, 232, 224, 0.95), rgba(192, 202, 206, 0.62)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 31, 31, 0.035) 12px 13px);
}

.image-placeholder.warm {
  background:
    linear-gradient(135deg, rgba(209, 204, 196, 0.88), rgba(236, 236, 231, 0.86)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 31, 31, 0.035) 12px 13px);
}

.image-placeholder.cool {
  background:
    linear-gradient(135deg, rgba(192, 202, 206, 0.72), rgba(209, 204, 196, 0.74)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 31, 31, 0.035) 12px 13px);
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
}

.portrait-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.quick-profile {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-profile div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
}

dd {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.6rem);
}

.section-heading h2 {
  max-width: 16ch;
}

.compact-heading {
  display: block;
  width: min(100%, 76rem);
  margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
}

.compact-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.compact-heading h2 {
  max-width: 18ch;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(192, 202, 206, 0.28), transparent 34%);
  transition: opacity 260ms ease;
}

.spotlight-card:hover::after,
.spotlight-card:focus-visible::after,
.spotlight-card:focus-within::after {
  opacity: 1;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.split-section .section-heading {
  display: block;
  position: sticky;
  top: 7rem;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.about-panel p + p {
  margin-top: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.student-hero .hero-intro {
  max-width: 700px;
}

.hero-callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.hero-callouts span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 999px;
  padding: 0.46rem 0.7rem;
  background: rgba(192, 202, 206, 0.16);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-stats,
.number-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.stat-card,
.number-tile {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: calc(var(--radius) - 8px);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 26px rgba(31, 31, 31, 0.045);
}

.stat-card-large {
  grid-column: span 2;
  min-height: 132px;
  background: rgba(255, 255, 255, 0.54);
}

.stat-card-lead {
  grid-column: span 2;
  min-height: 132px;
}

.stat-card strong,
.number-tile strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 300;
  line-height: 1;
}

.stat-card-large strong {
  font-size: clamp(2.35rem, 6vw, 4.2rem);
}

.stat-card-lead strong {
  max-width: 13rem;
  font-size: clamp(1.2rem, 2.7vw, 1.9rem);
  line-height: 1.08;
}

.stat-card span,
.number-tile span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.stat-icon {
  display: inline-flex;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.72;
  filter: saturate(0.45);
}

.note-stack {
  display: grid;
  gap: 0.85rem;
}

.note-stack article {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  padding: 1rem;
  background: rgba(236, 236, 231, 0.55);
}

.note-stack p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.narrative-panel {
  width: min(100%, 58rem);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  max-width: 62rem;
}

.narrative-panel p + p {
  margin-top: 1rem;
}

.narrative-section {
  display: grid;
  justify-items: start;
  padding-top: clamp(1.8rem, 3vw, 2.8rem);
}

.narrative-heading {
  display: block;
  width: min(100%, 76rem);
  margin-bottom: clamp(1rem, 2.4vw, 1.5rem);
}

.narrative-heading h2 {
  max-width: 20ch;
}

.narrative-section .eyebrow {
  margin-bottom: 0.35rem;
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.journey-item,
.pathway-step {
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 34px rgba(31, 31, 31, 0.055);
  text-align: left;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.journey-item span,
.pathway-step span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.journey-item strong,
.pathway-step h3 {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 400;
  line-height: 1.18;
}

.journey-item p,
.pathway-step p {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  opacity: 0;
  transition: max-height 260ms ease, margin 260ms ease, opacity 260ms ease;
}

.journey-item:hover,
.journey-item:focus-visible,
.journey-item.is-open,
.pathway-step:hover,
.pathway-step:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(192, 202, 206, 0.95);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--soft-shadow);
}

.journey-item:hover p,
.journey-item:focus-visible p,
.journey-item.is-open p {
  max-height: 9rem;
  margin-top: 0.7rem;
  opacity: 1;
}

.pathway-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pathway-step {
  position: relative;
}

.pathway-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 1px solid rgba(31, 31, 31, 0.34);
  border-right: 1px solid rgba(31, 31, 31, 0.34);
  transform: rotate(45deg);
}

.pathway-step p {
  max-height: none;
  margin-top: 0.8rem;
  opacity: 1;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.snapshot-card {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 34px rgba(31, 31, 31, 0.055);
}

.snapshot-card p {
  margin-top: 1rem;
  color: var(--muted);
}

.number-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0;
}

.number-tile {
  min-height: 150px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.strength-card {
  min-height: 250px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 34px rgba(31, 31, 31, 0.055);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.strength-card:hover,
.strength-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(192, 202, 206, 0.95);
  box-shadow: var(--soft-shadow);
}

.strength-card h3 {
  margin-top: 0.9rem;
}

.strength-card p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.strength-evidence {
  font-size: 0.9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.featured-story-stack {
  display: grid;
  gap: 1rem;
}

.featured-story-stack .featured-achievement {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  align-items: center;
  min-height: 0;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  overflow: hidden;
}

.featured-story-stack .featured-evidence-image {
  order: 2;
  min-height: 0;
  height: clamp(180px, 18vw, 260px);
  border-radius: calc(var(--radius) - 10px);
  padding: 0.65rem;
  background: linear-gradient(135deg, rgba(236, 236, 231, 0.92), rgba(192, 202, 206, 0.34));
}

.featured-story-stack .featured-evidence-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius) - 12px);
}

.featured-story-stack .featured-evidence-copy {
  order: 1;
  justify-content: start;
  padding: clamp(0.2rem, 1vw, 0.4rem) clamp(1rem, 2.5vw, 1.8rem) clamp(0.2rem, 1vw, 0.4rem) 0;
}

.featured-story-stack .featured-achievement:hover .featured-evidence-image,
.featured-story-stack .featured-achievement:focus-visible .featured-evidence-image {
  transform: none;
}

.featured-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 34px rgba(31, 31, 31, 0.055);
  text-align: left;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.featured-card:hover,
.featured-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(192, 202, 206, 0.95);
  box-shadow: var(--soft-shadow);
}

.featured-card:hover .featured-card-media,
.featured-card:focus-visible .featured-card-media {
  transform: scale(1.025);
}

.featured-card-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-card-media img,
.achievement-image img,
.evidence-modal-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.featured-card-copy {
  padding: 1.2rem;
}

.featured-card-copy h3 {
  margin-top: 0.85rem;
}

.featured-card-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.project-card,
.achievement-card,
.featured-achievement {
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 34px rgba(31, 31, 31, 0.055);
  text-align: left;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.project-card:nth-child(1) {
  grid-row: span 2;
}

.project-card:hover,
.project-card:focus-visible,
.achievement-card:hover,
.achievement-card:focus-visible,
.featured-achievement:hover,
.featured-achievement:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(192, 202, 206, 0.95);
  box-shadow: var(--soft-shadow);
}

.project-image {
  min-height: clamp(190px, 25vw, 320px);
  border-radius: 0;
  border: 0;
}

.project-card:nth-child(1) .project-image {
  min-height: clamp(280px, 44vw, 530px);
}

.project-body {
  padding: 1.2rem;
}

.project-label,
.tag-line {
  font-size: 0.84rem;
}

.project-body p,
.achievement-card p,
.featured-evidence-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.achievements-showcase {
  position: relative;
}

.evidence-heading {
  align-items: start;
}

.section-subtitle {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
}

.featured-achievement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  align-items: stretch;
  width: 100%;
  min-height: 0;
  margin-bottom: 1rem;
  overflow: hidden;
}

.featured-achievement:hover .featured-evidence-image,
.featured-achievement:focus-visible .featured-evidence-image,
.achievement-card:hover .achievement-image,
.achievement-card:focus-visible .achievement-image {
  transform: scale(1.025);
}

.featured-evidence-image,
.achievement-image {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-evidence-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.featured-evidence-copy h3 {
  max-width: 16ch;
  margin-top: 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  font-weight: 300;
  line-height: 1.04;
}

.featured-support {
  max-width: 42ch;
  font-size: 0.96rem;
}

.featured-evidence-image {
  display: flex;
}

.media-photo img {
  object-fit: cover;
  object-position: center;
}

.media-document {
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, rgba(236, 236, 231, 0.92), rgba(192, 202, 206, 0.34));
}

.media-document img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

.featured-evidence-image.media-document {
  min-height: 0;
}

.achievement-image.media-document {
  aspect-ratio: 3 / 4;
}

.evidence-modal-image.media-document {
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 760px);
  padding: 0;
  background: linear-gradient(135deg, rgba(236, 236, 231, 0.92), rgba(192, 202, 206, 0.34));
}

.evidence-modal-image.media-photo {
  padding: 0;
  background: transparent;
}

.evidence-modal-image.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(192, 202, 206, 0.58), rgba(236, 236, 231, 0.78)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 31, 31, 0.035) 12px 13px);
  color: rgba(31, 31, 31, 0.58);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
}

.featured-story-stack .featured-achievement:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
}

.featured-story-stack .featured-achievement:nth-child(even) .featured-evidence-image {
  order: 2;
}

.featured-story-stack .featured-achievement:nth-child(even) .featured-evidence-copy {
  order: 1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.category-chip,
.date-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.category-chip {
  background: rgba(192, 202, 206, 0.24);
}

.date-chip {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
}

.text-button {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.35rem;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

.evidence-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: clamp(1.4rem, 3vw, 2rem) 0 1rem;
}

.archive-search {
  display: grid;
  gap: 0.5rem;
  width: min(100%, 34rem);
  margin-top: 1rem;
}

.archive-search span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.archive-search input {
  width: 100%;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.archive-search input:focus {
  border-color: rgba(192, 202, 206, 0.95);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(192, 202, 206, 0.22);
}

.filter-chip {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  color: var(--text);
  border-color: rgba(192, 202, 206, 0.9);
  background: rgba(192, 202, 206, 0.28);
  transform: translateY(-1px);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.achievement-card {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.achievement-card.is-hidden {
  display: none;
}

.achievement-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.achievement-card > div:last-child {
  padding: 1rem;
}

.achievement-card h3 {
  margin-top: 0.85rem;
}

.back-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 44;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(248, 248, 244, 0.74);
  box-shadow: var(--soft-shadow);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease, transform 220ms ease, width 220ms ease, background 220ms ease;
}

.back-top span {
  font-size: 0.82rem;
  font-weight: 500;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-top:hover,
.back-top:focus-visible {
  width: 4.4rem;
  background: rgba(192, 202, 206, 0.42);
}

.evidence-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.evidence-modal[hidden] {
  display: none;
}

.evidence-modal-panel {
  width: min(100%, 760px);
  max-height: min(86svh, 820px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 26px;
  background: rgba(248, 248, 244, 0.9);
  box-shadow: 0 28px 90px rgba(31, 31, 31, 0.22);
  animation: modal-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.evidence-modal-content {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.24);
  backdrop-filter: blur(18px);
}

.evidence-modal-panel {
  position: relative;
  z-index: 1;
}

.modal-close {
  position: sticky;
  top: 0.85rem;
  left: 100%;
  z-index: 2;
  display: inline-flex;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 999px;
  margin: 0.85rem 0.85rem 0 auto;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  border-color: rgba(192, 202, 206, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

.evidence-modal-image {
  min-height: clamp(250px, 42vw, 440px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.evidence-modal-content h2 {
  max-width: 12ch;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.modal-detail-grid section {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(236, 236, 231, 0.5);
}

.modal-detail-grid p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-skills span {
  border: 1px solid rgba(192, 202, 206, 0.7);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: rgba(192, 202, 206, 0.18);
  color: var(--text);
  font-size: 0.82rem;
}

.evidence-modal-panel {
  width: min(100%, 900px);
}

.evidence-modal-content > p {
  margin-top: 1rem;
  color: var(--muted);
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(8px);
}

body.is-loaded .reveal {
  transition: opacity 960ms ease, transform 960ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 960ms ease;
  transition-delay: var(--stagger-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-mark {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    width: min(calc(100% - 1rem), var(--max));
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.22rem;
    padding: 0.42rem;
    background: rgba(248, 248, 244, 0.9);
    box-shadow: 0 18px 46px rgba(31, 31, 31, 0.11);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    min-height: 2.55rem;
    padding: 0.5rem 0.45rem;
    font-size: 0.78rem;
  }

  .hero,
  .split-section,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .split-section .section-heading {
    position: static;
  }

  .project-grid,
  .achievement-grid,
  .strength-grid,
  .featured-grid,
  .snapshot-grid,
  .journey-track,
  .pathway-flow,
  .number-grid,
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pathway-step:not(:last-child)::after {
    display: none;
  }

  .project-card:nth-child(1) {
    grid-row: auto;
  }

  .project-card:nth-child(1) .project-image {
    min-height: 230px;
  }

  .featured-achievement {
    grid-template-columns: 1fr;
  }

  .featured-evidence-image {
    min-height: 310px;
  }

  .featured-story-stack .featured-achievement {
    grid-template-columns: 1fr;
  }

  .featured-story-stack .featured-evidence-image {
    order: 1;
    height: clamp(210px, 42vw, 310px);
  }

  .featured-story-stack .featured-evidence-copy {
    order: 2;
    padding: 1.1rem 0 0;
  }

  .featured-story-stack .featured-achievement:nth-child(even) .featured-evidence-image,
  .featured-story-stack .featured-evidence-image {
    order: 1;
  }

  .featured-story-stack .featured-achievement:nth-child(even) .featured-evidence-copy,
  .featured-story-stack .featured-evidence-copy {
    order: 2;
  }

}

@media (max-width: 620px) {
  body {
    line-height: 1.6;
  }

  .section {
    width: min(calc(100% - 1rem), var(--max));
    padding: 3.4rem 0;
  }

  .hero {
    gap: 1.5rem;
    padding-top: 6.4rem;
  }

  h1 {
    font-size: clamp(4.1rem, 22vw, 6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 3.15rem;
  }

  .project-grid,
  .achievement-grid,
  .strength-grid,
  .featured-grid,
  .snapshot-grid,
  .journey-track,
  .pathway-flow,
  .number-grid,
  .hero-stats,
  .modal-detail-grid,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .stat-card-large,
  .stat-card-lead {
    grid-column: span 1;
    min-height: 0;
  }

  .stat-card-large strong {
    font-size: clamp(2.1rem, 15vw, 3.4rem);
  }

  .section-heading {
    display: block;
  }

  .portrait-placeholder {
    aspect-ratio: 4 / 5;
  }

  .portrait-editable {
    min-height: 0;
  }

  .quick-profile div {
    display: grid;
    gap: 0.25rem;
  }

  dd {
    text-align: left;
  }

  .featured-achievement,
  .achievement-card {
    min-height: auto;
  }

  .evidence-modal {
    align-items: end;
    padding: 0.5rem;
  }

  .evidence-modal-panel {
    max-height: 88svh;
    border-radius: 24px;
  }

  .back-top {
    right: 0.75rem;
    bottom: 4.7rem;
  }

  .primary-nav {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .primary-nav a {
    justify-content: flex-start;
    padding-inline: 0.85rem;
  }

  .hero-bg {
    inset: 6rem -22vw auto;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
