@view-transition {
  navigation: auto;
}

:root {
  --ink: #191715;
  --ink-soft: #514c47;
  --paper: #f1ede6;
  --paper-bright: #fbf9f5;
  --warm: #e7ded1;
  --line: rgba(25, 23, 21, 0.16);
  --white-line: rgba(255, 255, 255, 0.24);
  --shadow: 0 28px 80px rgba(20, 15, 10, 0.22);
  --radius: 24px;
  --page-pad: clamp(1.35rem, 5vw, 5.5rem);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #171412;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: transparent;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: #171412;
  background: #fff;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  color: #171412;
  background: #fff;
  transform: translateY(-180%);
}

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

/* Full-screen image system */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #171412;
}

.ambient-bg__layer {
  position: absolute;
  inset: -2.5%;
  z-index: 1;
  opacity: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: 50% 50%;
  filter: saturate(1.03) contrast(1.03);
  transform: translate3d(10%, 0, 0) scale(1.065);
  transition:
    opacity 1.35s ease,
    transform 1.65s cubic-bezier(.2,.72,.18,1);
  will-change: opacity, transform, background-position;
}

.ambient-bg__layer.is-active {
  z-index: 3;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1.065);
  animation: wallpaper-pan 18s ease-in-out both;
}

.ambient-bg__layer.is-exiting {
  z-index: 2;
  opacity: 0;
  transform: translate3d(-9%, 0, 0) scale(1.09);
}

.ambient-bg__shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.72) 0%, rgba(10, 8, 7, 0.34) 44%, rgba(10, 8, 7, 0.08) 78%),
    linear-gradient(180deg, rgba(10, 8, 7, 0.36) 0%, rgba(10, 8, 7, 0.03) 28%, rgba(10, 8, 7, 0.2) 100%);
}

.page-contact .ambient-bg__shade {
  background:
    linear-gradient(90deg, rgba(10, 8, 7, 0.68) 0%, rgba(10, 8, 7, 0.32) 50%, rgba(10, 8, 7, 0.13) 100%),
    linear-gradient(180deg, rgba(10, 8, 7, 0.3) 0%, transparent 40%, rgba(10, 8, 7, 0.18) 100%);
}

@keyframes wallpaper-pan {
  from { background-position: 47% 50%; }
  to { background-position: 53% 50%; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: 78px;
  padding: 1.35rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.34), transparent);
  transition: background 260ms ease, backdrop-filter 260ms ease, border-color 260ms ease;
}

.site-header.is-scrolled {
  background: rgba(18, 16, 14, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.05);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.site-brand__name {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2.5vw, 2.4rem);
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: #fff;
  transition: right 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

main {
  position: relative;
  z-index: 2;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 7rem var(--page-pad) 4rem;
  display: flex;
  align-items: flex-start;
  color: #fff;
}

.hero-screen {
  min-height: 100svh;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - (var(--page-pad) * 2)));
  margin-left: calc(max(0px, calc((100vw - var(--max-width)) / 2)) + clamp(0.4rem, 1.2vw, 1.4rem));
  padding: clamp(1.45rem, 2.3vw, 2.05rem) clamp(1.5rem, 2.8vw, 2.3rem) clamp(1.7rem, 3vw, 2.35rem);
  border-radius: 26px;
  overflow: clip;
  isolation: isolate;
  transform: none;
}

.hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(13, 11, 10, 0.72) 0%, rgba(13, 11, 10, 0.58) 48%, rgba(13, 11, 10, 0.38) 100%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px) saturate(1.02);
  -webkit-backdrop-filter: blur(20px) saturate(1.02);
}

.hero__inner-home {
  width: min(920px, calc(100vw - (var(--page-pad) * 2)));
  padding: 1.2rem 1.55rem 1.35rem;
  border-radius: 22px;
}

.hero-home .hero__inner,
.hero-resume .hero__inner,
.hero-baypark .hero__inner,
.hero-contact .hero__inner {
  margin-top: clamp(3rem, 8vh, 6.35rem);
}

.hero__inner-resume {
  width: min(900px, calc(100vw - (var(--page-pad) * 2)));
  padding: 1.2rem 1.55rem 1.35rem;
  border-radius: 22px;
}

.hero-resume h1 {
  max-width: none;
  white-space: nowrap;
}

.hero__inner-contact {
  width: min(820px, calc(100vw - (var(--page-pad) * 2)));
  padding: 1.2rem 1.55rem 1.35rem;
  border-radius: 22px;
}

.hero__inner-baypark {
  width: min(900px, calc(100vw - (var(--page-pad) * 2)));
  padding: 1.15rem 1.55rem 1.3rem;
  border-radius: 22px;
}


.hero-baypark h1 {
  max-width: none;
  font-size: clamp(2.75rem, 3.45vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  white-space: nowrap;
  text-wrap: nowrap;
}

.hero-baypark .hero__school-logo {
  width: clamp(54px, 4.3vw, 68px);
  margin-bottom: 0.5rem;
}

.hero-baypark .hero__summary {
  max-width: 650px;
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.hero-baypark .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero h1 {
  max-width: none;
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.85rem, 4vw, 4.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(28px);
  animation: hero-enter 850ms 120ms cubic-bezier(.2,.72,.18,1) forwards;
}

.hero-home h1,
.hero-contact h1 {
  max-width: none;
  white-space: nowrap;
  text-wrap: nowrap;
}

.hero-home h1 {
  font-size: clamp(2.9rem, 3.75vw, 4.35rem);
}

.hero-contact h1 {
  font-size: clamp(2.75rem, 3.45vw, 4rem);
}



.hero__eyebrow,
.hero__title,
.hero__summary,
.hero__actions,
.hero__school-logo,
.hero-profile,
.contact-card,
.hero__corner-note {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-enter 760ms cubic-bezier(.2,.72,.18,1) forwards;
}

.hero__eyebrow { animation-delay: 40ms; }
.hero__title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hero__summary { animation-delay: 300ms; }
.hero__actions { animation-delay: 390ms; }
.hero__school-logo { animation-delay: 20ms; }
.hero-profile,
.contact-card { animation-delay: 470ms; }
.hero__corner-note { animation-delay: 520ms; }

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-home .hero__summary {
  max-width: 34rem;
}

.hero__title {
  margin: 1.35rem 0 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero__summary {
  max-width: 650px;
  margin: 0.95rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero__school-logo {
  width: clamp(78px, 8vw, 112px);
  margin-bottom: 1.15rem;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
}

.hero__corner-note {
  position: absolute;
  right: var(--page-pad);
  bottom: 2.6rem;
  display: grid;
  gap: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__down {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: down-drift 1.8s ease-in-out infinite;
}

@keyframes down-drift {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 5px; }
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-light {
  color: #171412;
  background: #fff;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.button-dark {
  color: #fff;
  background: #171412;
}

.button-outline {
  border-color: var(--line);
  background: transparent;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 16, 13, 0.28);
  backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.hero-profile,
.contact-card {
  position: absolute;
  right: max(var(--page-pad), calc((100vw - var(--max-width)) / 2));
  bottom: clamp(4.8rem, 11vh, 8rem);
  width: min(360px, 29vw);
  padding: 1rem;
  color: #fff;
  border-radius: 18px;
}

.hero-profile {
  display: grid;
  grid-template-columns: 74px 1fr 48px;
  align-items: center;
  gap: 0.9rem;
}

.hero-profile__portrait,
.contact-card img {
  width: 74px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.hero-profile__copy,
.contact-card div {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.hero-profile strong,
.contact-card strong {
  font-size: 0.9rem;
}

.hero-profile span,
.contact-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.35;
}

.hero-profile__seal {
  width: 48px;
  justify-self: end;
}

.contact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 0.9rem;
}

/* Content pages */
.surface {
  background: var(--paper-bright);
}

.section {
  position: relative;
  z-index: 3;
  padding: clamp(4.8rem, 8vw, 8rem) var(--page-pad);
}

.section > * {
  max-width: var(--max-width);
}

.section-warm {
  color: var(--ink);
  background: var(--warm);
}

.section-dark {
  color: #fff;
  background: #1a1816;
}

.section-heading,
.resume-intro,
.split,
.two-column-heading,
.district-row,
.baypark-official,
.campus-gallery__heading {
  width: min(var(--max-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

.copy-block h2,
.section-heading h2,
.two-column-heading h2,
.editorial-copy h2,
.baypark-official h2,
.resume-intro h2,
.recognition-panel h2,
.campus-gallery__heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.copy-block p:not(.eyebrow),
.editorial-copy p:not(.eyebrow),
.baypark-official p:not(.eyebrow),
.resume-intro p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.section-dark .section-heading h2,
.section-dark .resume-role h3 {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.2fr);
  align-items: center;
  gap: clamp(2.8rem, 7vw, 7rem);
}

.wide-photo {
  margin: 0;
  aspect-ratio: 1.68;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wide-photo img,
.campus-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement-grid {
  width: min(var(--max-width), 100%);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.statement-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.resume-intro {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: clamp(2.4rem, 7vw, 7rem);
}

.resume-badges {
  justify-self: end;
  width: min(250px, 100%);
  padding: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  border: 1px solid var(--line);
  text-align: center;
  background: #fff;
}

.resume-badges img {
  width: 98px;
}

.resume-badges span {
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}

.resume-timeline {
  width: min(var(--max-width), 100%);
  margin: 3.5rem auto 0;
}

.resume-role {
  display: grid;
  grid-template-columns: minmax(165px, 0.32fr) minmax(0, 1.68fr);
  gap: 2.2rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.resume-role:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.resume-role__date,
.experience-card__date {
  color: #77716b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resume-role__date {
  color: rgba(255, 255, 255, 0.5);
}

.resume-role h3,
.experience-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1.18;
}

.resume-role p {
  color: rgba(255, 255, 255, 0.72);
}

.resume-role__org,
.experience-card__org {
  font-weight: 800;
}

.experience-grid {
  width: min(var(--max-width), 100%);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.experience-card {
  min-height: 290px;
  padding: clamp(1.7rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: #fff;
}

.experience-card p {
  color: var(--ink-soft);
}

.two-column-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(3rem, 7vw, 8rem);
}

.degree-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.degree-list p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list span {
  padding: 0.62rem 0.86rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.recognition-panel {
  position: relative;
  z-index: 3;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  color: #fff;
  text-align: center;
  background: rgba(22, 17, 13, 0.9);
  backdrop-filter: blur(14px);
}

.recognition-panel h2 {
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.recognition-panel__label {
  margin: 1rem 0 0;
  font-weight: 800;
}

.recognition-panel > p:not(.eyebrow):not(.recognition-panel__label) {
  max-width: 720px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.76);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-link-light {
  color: #fff;
}

/* Bay Park imagery */
.campus-gallery {
  position: relative;
  z-index: 3;
  padding: clamp(4.8rem, 8vw, 8rem) var(--page-pad);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "heading heading"
    "large small1"
    "large small2";
  gap: 1rem;
  background: var(--paper-bright);
}

.campus-gallery__heading {
  grid-area: heading;
  margin-bottom: 1.8rem;
}

.campus-gallery__heading h2 {
  max-width: 12ch;
}

.campus-gallery__item {
  margin: 0;
  min-height: 290px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.campus-gallery__item-large {
  grid-area: large;
  min-height: 590px;
}

.campus-gallery__item:nth-of-type(2) { grid-area: small1; }
.campus-gallery__item:nth-of-type(3) { grid-area: small2; }

.campus-gallery__logo-card {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.campus-gallery__logo-card img {
  width: min(220px, 70%);
  height: auto;
  object-fit: contain;
}

.district-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.district-mark {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.district-mark img {
  width: 66%;
}

.baypark-official {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.school-logo {
  width: 106px;
  aspect-ratio: 1;
  object-fit: contain;
}

.school-logo-large {
  width: clamp(130px, 17vw, 210px);
}

.site-disclaimer {
  width: min(1000px, 100%);
  margin: 4rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: #6d6761;
  font-size: 0.76rem;
}

/* Floating editorial motion */
.float-card {
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.float-card-left {
  animation: card-drift-left 8s ease-in-out infinite alternate;
}

.float-card-right {
  animation: card-drift-right 9s ease-in-out infinite alternate;
}

@keyframes card-drift-left {
  from { translate: 0 0; rotate: -0.2deg; }
  to { translate: 0 -8px; rotate: 0.25deg; }
}

@keyframes card-drift-right {
  from { translate: 0 -4px; rotate: 0.18deg; }
  to { translate: 0 7px; rotate: -0.22deg; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 820ms cubic-bezier(.2,.72,.18,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 3;
  padding: 3rem var(--page-pad) 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #171412;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.site-footer__name {
  color: #fff !important;
  font-weight: 800;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* App-like route transition */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  background: rgba(18, 15, 12, 0.88);
  backdrop-filter: blur(18px);
  transform: translate3d(100%, 0, 0);
  transition:
    transform 430ms cubic-bezier(.2,.72,.18,1),
    opacity 180ms ease;
}

body.is-leaving .page-transition {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.is-leaving main,
body.is-leaving .site-header,
body.is-leaving .site-footer {
  opacity: 0;
  transform: translate3d(-2.5vw, 0, 0);
  transition: opacity 250ms ease, transform 390ms cubic-bezier(.2,.72,.18,1);
}

body:not(.is-leaving) main {
  animation: route-enter 560ms cubic-bezier(.2,.72,.18,1) both;
}

@keyframes route-enter {
  from { opacity: 0; transform: translate3d(2vw, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

::view-transition-old(root) {
  animation: 300ms ease both view-old;
}

::view-transition-new(root) {
  animation: 520ms cubic-bezier(.2,.72,.18,1) both view-new;
}

@keyframes view-old {
  to { opacity: 0; transform: translateX(-2vw); }
}

@keyframes view-new {
  from { opacity: 0; transform: translateX(2vw); }
}

/* Mobile */
@media (max-width: 980px) {
  .site-header {
    min-height: 70px;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a:last-child {
    display: none;
  }

  .hero-profile,
  .contact-card {
    width: min(330px, 38vw);
  }

  .split,
  .resume-intro,
  .two-column-heading,
  .district-row,
  .baypark-official {
    grid-template-columns: 1fr;
  }

  .resume-badges {
    justify-self: start;
  }

  .degree-list {
    grid-template-columns: 1fr;
  }

  .experience-grid,
  .statement-grid {
    grid-template-columns: 1fr;
  }

  .campus-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "large"
      "small1"
      "small2";
  }

  .campus-gallery__item-large {
    min-height: 430px;
  }
}


@media (max-width: 900px) {
  .hero__inner {
    margin-left: 0;
    transform: none;
  }

  .hero-home .hero__inner,
  .hero-resume .hero__inner,
  .hero-baypark .hero__inner,
  .hero-contact .hero__inner {
    width: min(100%, 48rem);
    margin-top: clamp(2.4rem, 5vh, 3.25rem);
    padding: 1.1rem 1.25rem 1.25rem;
  }

  .hero-home h1,
  .hero-resume h1,
  .hero-baypark h1,
  .hero-contact h1 {
    font-size: clamp(2.35rem, 5vw, 3.7rem);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .site-brand__name {
    font-size: 0.68rem;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.07em;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 5.5rem;
  }

  .hero__inner {
    margin-left: 0;
    transform: none;
  }

  .hero-profile,
  .contact-card {
    position: static;
    width: min(100%, 390px);
    margin-top: 2rem;
    align-self: flex-end;
  }

  .hero-resume,
  .hero-contact {
    align-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-resume .hero__inner,
  .hero-contact .hero__inner {
    margin-top: 0.75rem;
  }

  .hero__corner-note {
    display: none;
  }

  .hero__down {
    bottom: 1.1rem;
  }

  .resume-role {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    background: linear-gradient(180deg, rgba(8, 7, 6, 0.55), transparent);
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .hero-resume,
  .hero-contact {
    padding-top: 6.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-profile,
  .contact-card {
    display: none;
  }

  .campus-gallery__item-large {
    min-height: 340px;
  }
}

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

  .ambient-bg__layer {
    transform: none !important;
  }

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



@media (max-width: 640px) {
  .hero-home h1,
  .hero-resume h1,
  .hero-baypark h1,
  .hero-contact h1 {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(2rem, 9vw, 3rem);
  }


  .hero__inner {
    padding: 1.15rem 1rem 1.3rem;
    border-radius: 18px;
  }

  .hero__inner::before {
    background: linear-gradient(180deg, rgba(13, 11, 10, 0.78) 0%, rgba(13, 11, 10, 0.62) 100%);
  }
}




/* LinkedIn icon links */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.linkedin-link img,
.linkedin-button img {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.linkedin-link-nav {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0 !important;
}

.site-nav .linkedin-link-nav::after {
  display: none;
}

.linkedin-link-footer {
  width: 1.35rem;
  height: 1.35rem;
}

.linkedin-button {
  gap: 0.55rem;
  width: auto;
  min-width: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}

.linkedin-button img {
  flex: 0 0 auto;
}


/* Resume affiliation and recognition marks */
.experience-card-with-mark {
  position: relative;
}

.experience-card__mark {
  width: min(190px, 52%);
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1.25rem;
}

.education-heading-with-mark {
  display: grid;
  justify-items: start;
}

.education-mark {
  width: min(260px, 72%);
  height: auto;
  object-fit: contain;
  margin: 0 0 1.35rem;
}

.recognition-panel__mark {
  width: min(220px, 46vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.6rem;
}

@media (max-width: 560px) {
  .experience-card__mark {
    width: min(180px, 62%);
  }

  .education-mark {
    width: min(220px, 72%);
  }

  .recognition-panel__mark {
    width: min(190px, 54vw);
  }
}
