:root {
  --bg: #fffcf2;
  --surface: #ffffff;
  --surface-soft: #f7f1e5;
  --ink: #1c1917;
  --muted: #6b6258;
  --faint: #d8d0c4;
  --accent: #a65000;
  --accent-dark: #92400e;
  --secondary: #0f766e;
  --secondary-soft: #d9f4ee;
  --blue: #2563eb;
  --footer: #1c1917;
  --shadow: 0 16px 42px rgba(28, 25, 23, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1.5rem 0;
  background: transparent;
  transition: padding 200ms ease, background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.site-nav.scrolled {
  padding: 1rem 0;
  background: rgba(255, 252, 242, 0.86);
  border-bottom: 1px solid rgba(216, 208, 196, 0.75);
  box-shadow: 0 10px 28px rgba(28, 25, 23, 0.05);
  backdrop-filter: blur(14px);
}

.nav-inner,
.site-main,
.footer-inner {
  width: min(100% - 3rem, 64rem);
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.nav-link,
.plain-button,
.back-button {
  border: 0;
  background: transparent;
}



.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.25rem 0 0.35rem;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-nav {
  display: none;
}

.site-main {
  min-height: 72vh;
  padding: 10rem 0 6rem;
}

.page {
  animation: page-in 320ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 5rem;
  min-height: 60vh;
}

.home-copy {
  flex: 1;
}

.eyebrow {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.social-row {
  display: flex;
  gap: 0.8rem;
}

.social-row a,
.footer-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
}

.social-row a {
  color: #78716c;
  height: 2.8rem;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
  width: 2.8rem;
}

.social-row a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

.icon {
  height: 1.8rem;
  width: 1.8rem;
  flex: 0 0 auto;
}

.portrait-wrap {
  flex: 0 0 min(18rem, 38vw);
  position: relative;
}

.portrait-backdrop {
  background: linear-gradient(135deg, #f8d484, var(--secondary-soft));
  border-radius: 1.5rem;
  inset: 0;
  opacity: 0.7;
  position: absolute;
  transform: rotate(6deg) scale(1.04);
}

.portrait {
  aspect-ratio: 1;
  border: 4px solid #fff;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  height: auto;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.page-header {
  border-bottom: 1px solid var(--faint);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.page-header.compact {
  margin-bottom: 1rem;
}

.page-header h1,
.page-header h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.page-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-header {
  align-items: end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

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

.section-heading {
  align-items: center;
  display: flex;
  font-size: 1.22rem;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.section-heading .icon {
  color: var(--accent);
}

.education-item {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
}

.logo-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.05);
  display: flex;
  flex: 0 0 4rem;
  height: 4rem;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
  width: 4rem;
}

.logo-card img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.logo-card img[src*="/uiuc-logo.png"] {
  border-radius: calc(1rem - 0.5rem - 1px);
}

.border-note {
  border-left: 2px solid #f6d28b;
  padding-left: 1rem;
}

.border-note h3,
.border-note h4,
.award-list h3,
.award-list h4 {
  color: #292524;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.accent-text {
  color: var(--secondary);
  font-weight: 700;
}

.text-link,
.resume-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-weight: 750;
  gap: 0.45rem;
  text-decoration: none;
}

.text-link:hover,
.resume-link:hover,
.timeline-content a:hover,
.footer-links a:hover {
  color: var(--accent-dark);
}

.resume-link {
  color: var(--muted);
  margin-top: 2rem;
}

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

.award-list p,
.border-note p {
  color: var(--muted);
}

.timeline {
  border-left: 2px solid var(--faint);
  display: grid;
  gap: 3rem;
  margin-left: 1.25rem;
  padding: 0.25rem 0 0.25rem 2.25rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  background: #d6d3d1;
  border: 4px solid var(--bg);
  border-radius: 999px;
  height: 1rem;
  left: -2.8rem;
  position: absolute;
  top: 1rem;
  transition: background 180ms ease;
  width: 1rem;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
}

.timeline-card {
  display: flex;
  gap: 1.5rem;
}

.timeline-content { flex: 1; min-width: 0; }

.timeline-title-row {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.timeline-title-row h2,
.timeline-title-row h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.timeline-title-row span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.organization {
  color: #292524;
  font-weight: 750;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  color: var(--muted);
  max-width: 42rem;
}

.timeline-content a {
  color: var(--accent);
  font-weight: 750;
  text-decoration-color: #f6d28b;
  text-underline-offset: 3px;
}

.academic-background {
  border-top: 1px solid var(--faint);
  margin-top: 4rem;
  padding-top: 3rem;
}

.publication-list {
  display: grid;
  gap: 2.5rem;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 2.5rem;
}

.publication-copy { min-width: 0; }

.publication-visual { margin: 0; }

.publication-visual a {
  display: flex;
  align-items: center;
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid var(--faint);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.publication-visual a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(28, 25, 23, 0.1);
}

.publication-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.publication-visual figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.75rem;
  text-align: center;
}

@media (max-width: 820px) {
  .publication-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .publication-visual { max-width: 34rem; width: 100%; }
  .publication-visual a { min-height: 0; }
}

.publication-card h2,
.publication-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  margin: 1rem 0 0.65rem;
}

.publication-meta,
.publication-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.publication-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.publication-status {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication-meta > span + span {
  border-left: 1px solid var(--faint);
  padding-left: 1rem;
}

.publication-authors,
.publication-description {
  color: var(--muted);
  margin: 0 0 1rem;
}

.publication-description {
  max-width: 56rem;
}

.publication-links {
  gap: 0.75rem 1.75rem;
}

.publication-links .text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.hobby-button .icon,
.text-link .icon,
.resume-link .icon,
.back-button .icon,
.gallery-title .icon,
.fact-label .icon {
  height: 1.1rem;
  width: 1.1rem;
}

.loading-card {
  border: 1px dashed var(--faint);
  border-radius: 0.75rem;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

.hobbies-page {
  width: min(100%, 54rem);
  margin: 1.5rem auto 0;
}

.fact-box {
  border-left: 2px solid var(--accent);
  margin-top: 2rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.fact-label {
  align-items: center;
  color: var(--secondary);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.fact-box p {
  color: #292524;
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 5rem;
}

.plain-button {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0;
}

.plain-button::before {
  content: "-> ";
}

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

.hobby-button {
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0;
  text-align: center;
  align-items: center;
  min-width: 0;
  border-radius: 1rem;
}

.hobby-heading {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.hobby-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface-soft);
}

.hobby-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.hobby-button:hover .hobby-preview img {
  transform: scale(1.025);
}

.hobby-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}

.hobby-icon {
  color: #8a8178;
  flex: 0 0 auto;
  transition: color 180ms ease;
}

.hobby-button strong,
.hobby-button .hobby-title {
  display: block;
  font-size: 1.35rem;
  transition: color 180ms ease;
}

.hobby-gallery-link {
  align-items: center;
  color: var(--accent);
  display: flex;
  font-style: normal;
  font-weight: 750;
  gap: 0.35rem;
}

.hobby-button:hover .hobby-icon,
.hobby-button:hover strong {
  color: var(--accent);
}

.back-button {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 750;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0;
}

.back-button:hover {
  color: var(--accent);
}

.gallery-title {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.gallery-title h2 {
  margin-bottom: 0;
}

.gallery-title .icon {
  color: var(--accent);
}

.ebird-feature {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  margin: -0.5rem 0 4rem;
}

.ebird-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ebird-kicker {
  align-items: center;
  color: var(--secondary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  margin-bottom: 0;
  text-transform: uppercase;
}

.ebird-kicker .icon {
  height: 1rem;
  width: 1rem;
}

.ebird-feature-copy h3 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0;
}

.ebird-feature-copy p:not(.ebird-kicker) {
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 0;
  max-width: 34rem;
}

.ebird-stat-grid {
  border-bottom: 1px solid var(--faint);
  border-top: 1px solid var(--faint);
  display: grid;
  column-gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.5rem 0;
}

.ebird-stat-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ebird-stat-grid .icon {
  color: #a8a29e;
  height: 2rem;
  margin-bottom: 0.75rem;
  stroke-width: 2.35;
  width: 2rem;
}

.ebird-stat-grid strong {
  color: var(--secondary);
  display: block;
  font-size: clamp(3.1rem, 5vw, 4.2rem);
  letter-spacing: 0;
  line-height: 0.9;
}

.ebird-stat-grid span {
  color: #6f6961;
  display: block;
  font-size: clamp(0.76rem, 1.05vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.ebird-cta {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-weight: 800;
  gap: 0.45rem;
  text-decoration: none;
  width: fit-content;
}

.ebird-cta:hover {
  color: var(--accent-dark);
}

.ebird-cta .icon {
  height: 1.15rem;
  transition: transform 160ms ease;
  width: 1.15rem;
}

.ebird-cta:hover .icon {
  transform: translateX(3px);
}

.ebird-map-wrap {
  background: #fdfcf9;
  border: 1px solid rgba(28, 25, 23, 0.05);
  border-radius: 2rem;
  box-shadow: 0 25px 55px rgba(28, 25, 23, 0.12);
  min-height: 30rem;
  overflow: hidden;
  position: relative;
}

.ebird-leaflet-map {
  height: 100%;
  inset: 0;
  min-height: 30rem;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.ebird-map-loading {
  align-items: center;
  color: #a8a29e;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.75rem;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 1;
}

.ebird-map-loading .icon {
  color: #d6d3d1;
  height: 2rem;
  width: 2rem;
}

.ebird-map-wrap::after {
  border-radius: 2rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.03);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.ebird-map-caption {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.45rem;
  grid-column: 2;
  justify-content: flex-start;
  margin: -2.8rem 1rem 0;
}

.ebird-map-caption .icon {
  color: #a8a29e;
  height: 1rem;
  width: 1rem;
}

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

.photo-card {
  margin: 0;
}

.photo-card-wide {
  grid-column: 1 / -1;
}

.photo-cluster {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.photo-cluster .photo-frame {
  aspect-ratio: 4 / 5;
  background: #14110f;
}

.photo-cluster .photo-frame img {
  object-fit: contain;
}

.photo-frame {
  align-items: center;
  aspect-ratio: 1;
  background: #f5f0e8;
  border: 1px solid var(--faint);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.photo-frame img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.photo-card:hover img {
  transform: scale(1.05);
}

figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding-inline: 0.1rem;
}

figcaption strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

figcaption span {
  display: block;
  max-width: 52rem;
}

.upload-card {
  align-items: center;
  aspect-ratio: 1;
  background: var(--bg);
  border: 2px dashed #c9c0b4;
  border-radius: 1rem;
  color: #8a8178;
  display: flex;
  flex-direction: column;
  font-weight: 750;
  gap: 0.6rem;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.upload-card:hover {
  background: #fff;
  border-color: #99d7cb;
  color: var(--secondary);
}

.site-footer {
  background: var(--footer);
  color: #a8a29e;
  padding: 4rem 0;
  text-align: center;
}

.footer-inner {
  max-width: 48rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin-inline: auto;
  max-width: 36rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.footer-links a {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-icon {
  background: #292524;
  color: #e7e5e4;
  font-size: 0.72rem;
  font-weight: 800;
  height: 3rem;
  transition: background 180ms ease, color 180ms ease;
  width: 3rem;
}

.footer-links a:hover .footer-icon {
  background: var(--accent);
  color: #ffffff;
}

.visitor-map {
  margin: 2.5rem auto 0;
  max-width: 300px;
}

.visitor-map img {
  display: block;
  height: auto;
  width: 100%;
}

.visitor-map-canvas {
  min-height: 147px;
}

.visitor-map figcaption {
  font-size: 0.8rem;
  margin-top: 0.65rem;
}

.visitor-map a,
.visitor-privacy a {
  color: #d6d3d1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.visitor-map a:hover,
.visitor-privacy a:hover {
  color: #fff;
}

.visitor-privacy {
  font-size: 0.75rem;
  margin: 0.7rem auto 0;
  max-width: 30rem;
}

.visitor-privacy summary {
  cursor: pointer;
}

.visitor-privacy p {
  margin-top: 0.75rem;
}

.copyright {
  border-top: 1px solid #292524;
  font-size: 0.88rem;
  margin-top: 2rem;
  padding-top: 2rem;
}

@media (max-width: 820px) {
  .site-nav {
    padding: 1rem 0 0;
  }

  .site-nav.scrolled {
    padding: 0.9rem 0 0;
  }

  .nav-inner,
  .site-main,
  .footer-inner {
    width: min(100% - 2rem, 64rem);
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .app-nav .nav-inner {
    display: none;
  }

  .mobile-nav {
    background: rgba(255, 252, 242, 0.72);
    border-bottom: 1px solid rgba(216, 208, 196, 0.75);
    gap: 1rem;
    margin-top: 0;
    justify-content: center;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .site-main {
    padding-top: 8rem;
  }

  .page-home {
    flex-direction: column-reverse;
    gap: 2.5rem;
    text-align: left;
  }

  .portrait-wrap {
    flex-basis: auto;
    width: min(15rem, 64vw);
  }

  .two-column,
  .hobbies-page,
  .ebird-feature,
  .photo-grid,
  .photo-cluster,
  .timeline-card,
  .education-item {
    align-items: flex-start;
  }

  .split-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ebird-feature {
    margin-top: -1.5rem;
  }

  .ebird-map-wrap,
  .ebird-leaflet-map {
    min-height: 24rem;
  }

  .ebird-map-caption {
    grid-column: 1;
    justify-content: center;
    margin-top: -3rem;
  }

}

@media (max-width: 1180px) and (min-width: 821px) {
  .ebird-feature {
    gap: 2.5rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .ebird-stat-grid {
    column-gap: 1.25rem;
  }

  .ebird-stat-grid strong {
    font-size: clamp(2.7rem, 4.2vw, 3.4rem);
  }

  .ebird-stat-grid span {
    font-size: 0.72rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.75rem;
  }

  .hobby-grid {
    grid-template-columns: 1fr;
  }

  .timeline-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .timeline-card {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    gap: 1rem;
  }
}

/* Photography portfolio: quiet frames and clear species labels. */
.bird-portfolio .page-header {
  align-items: center;
  border-bottom: 0;
  margin-bottom: 3rem;
  padding-bottom: 0;
}
.bird-portfolio .page-header > div { max-width: 42rem; }
.bird-portfolio .page-header h1,
.bird-portfolio .page-header h1,
.page-header h2 {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.bird-portfolio .page-header p { font-size: 1rem; }
.bird-featured-photo { margin: 0 0 4.5rem; }
.bird-featured-photo > a,
.bird-photo > a {
  display: block;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid #e6e0d5;
  border-radius: 0.15rem;
  transition: border-color 180ms ease;
}
.bird-featured-photo > a:hover,
.bird-photo > a:hover { border-color: #aaa08c; }
.bird-featured-photo > a:focus-visible,
.bird-photo > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.bird-featured-photo img,
.bird-photo img { display: block; width: 100%; height: auto; }
.bird-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem 2.5rem; }
.bird-photo { margin: 0; min-width: 0; }
.bird-portfolio figcaption {
  margin-top: 1.15rem;
  text-align: center;
  font-style: normal;
  line-height: 1.5;
}
.bird-species {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}
.bird-species-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.bird-species-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.bird-species-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.bird-location {
  display: block;
  max-width: none;
  width: 100%;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .bird-photo-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bird-featured-photo { margin-bottom: 3rem; }
  .bird-portfolio .page-header { align-items: flex-start; margin-bottom: 2rem; }
}

.tech-page .page-header h1 { font-size: 2rem; line-height: 1.15; margin-bottom: 0.35rem; }
.tech-story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: 3rem; }
.tech-kind { font-size: 0.75rem; color: var(--secondary); font-weight: 700; margin: 0 0 0.7rem; }
.tech-story h2, .tech-story h3, .tech-favorites h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 1rem; }
.tech-story-copy > p:not(.tech-kind), .tech-favorites article > p:not(.tech-kind) { color: var(--muted); }
.tech-story-photo { margin: 0; min-width: 0; }
.tech-story-photo > img { width: 100%; height: auto; border-radius: 0.5rem; }
.tech-story-photo figcaption { text-align: center; font-size: 0.78rem; margin-top: 0.75rem; }
.tech-cover-flow { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tech-cover-flow img { position: absolute; width: 75%; height: 133.3333%; max-width: none; left: 12.5%; top: -16.6667%; object-fit: cover; transform: rotate(-90deg) scale(1.06); }
.tech-process { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--faint); }
.tech-process-copy h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.tech-process-copy p { color: var(--muted); font-size: 0.9rem; max-width: 28rem; }
.tech-process .tech-process-photos { margin-top: 0; max-width: 25rem; width: 100%; justify-self: center; }
.tech-process summary { color: var(--accent); cursor: pointer; font-size: 0.88rem; font-weight: 700; }
.tech-process-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.tech-process-photos img { width: 100%; height: 13rem; object-fit: contain; background: var(--surface-soft); border-radius: 0.4rem; }
.tech-favorites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); padding: 2.25rem 0; margin: 3rem 0; }
@media (max-width: 700px) {
  .tech-story, .tech-favorites { grid-template-columns: 1fr; gap: 1.5rem; }
  .tech-process { grid-template-columns: 1fr; gap: 1rem; }
  .tech-favorites { margin: 2rem 0; padding: 2rem 0; }
}

.hobby-button:hover .tech-cover-flow img { transform: rotate(-90deg) scale(1.08); }

.aviation-heading { max-width: 46rem; margin-bottom: 2rem; }
.aviation-heading h2, .aviation-heading h3 { font-size: 1.65rem; margin-bottom: 0.8rem; }
.aviation-heading > p:not(.tech-kind) { color: var(--muted); }
.aviation-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.aviation-photo { margin: 0; min-width: 0; }
.aviation-photo a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f2efe8; border-radius: 0.4rem; overflow: hidden; }
.aviation-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.aviation-photo a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.aviation-photo figcaption { margin-top: 0.85rem; font-style: normal; text-align: center; }
.aviation-photo figcaption strong { display: block; font-size: 1rem; color: var(--ink); }
.aviation-photo figcaption span { display: block; max-width: none; margin-top: 0.25rem; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 700px) {
  .aviation-photo-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Frame the original photographs without changing the source images. */
.tech-process-photos figure { margin: 0; min-width: 0; }
.tech-process-frame { position: relative; aspect-ratio: 3 / 5; overflow: hidden; border-radius: 0.4rem; }
.tech-process-frame img { position: absolute; max-width: none; height: auto; border-radius: 0; }
.tech-process-downgrade img { width: 130%; left: -15%; top: -25%; }
.tech-process-install img { width: 253%; left: -73%; top: -8%; }
.tech-process-photos figcaption { font-size: 0.75rem; text-align: center; font-style: normal; margin-top: 0.65rem; }
.tech-aviation { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--faint); }

.aviation-photo-landscape-crop img { object-fit: cover; object-position: center 46%; }

/* Trim only the top and bottom of the landscape Cover Flow photograph. */
.tech-story-photo .tech-cover-flow { aspect-ratio: 25 / 16; border-radius: 0.5rem; }
.tech-story-photo .tech-cover-flow img { height: 156.25%; top: -31.25%; }

/* A rectangular crop keeps the visible A380 wingtip, engines and tail. */
.aviation-photo-emirates a { position: relative; }
.aviation-photo-emirates img { position: absolute; width: 133.3333%; height: 133.3333%; max-width: none; right: 0; bottom: 0; object-fit: cover; }

/* Compact recognition records with distinct title and supporting detail. */
.award-list { gap: 0; }
.award-entry { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--faint); }
.award-entry:first-child { padding-top: 0.2rem; }
.award-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.award-mark { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; color: var(--secondary); background: #edf1eb; border-radius: 0.5rem; }
.award-mark svg { width: 1.2rem; height: 1.2rem; }
.award-copy .award-category { color: var(--muted); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.4rem; }
.award-copy h3, .award-copy h4 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 0.5rem; }
.award-copy .award-highlight { color: var(--secondary); font-size: 0.83rem; font-weight: 750; margin: 0 0 0.45rem; }
.award-copy .award-description { font-size: 0.85rem; line-height: 1.65; margin: 0; }

/* Native semantics, keyboard navigation, and user motion preferences. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; padding: 0.75rem 1rem; color: #fff; background: var(--ink); border-radius: 0.25rem; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
:where(h1, h2, h3, main, [id]) { scroll-margin-top: 9rem; }
.nav-link, .hobby-button { text-decoration: none; }
.nav-link { min-height: 2rem; display: inline-flex; align-items: center; }
.hobby-title { font-size: 1.35rem; line-height: inherit; font-weight: 750; margin: 0; }
.timeline { list-style: none; margin-top: 0; margin-bottom: 0; }
summary { min-height: 2rem; }
.publication-copy, .timeline-content { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .nav-link.active { border-bottom: 2px solid LinkText; }
  :focus-visible { outline-color: Highlight; }
}

.page-header h1 { font-weight: 700; letter-spacing: normal; }

.resume-options { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.resume-options > a:last-child { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.2em; }
.resume-text section { margin-top: 2.5rem; }
.resume-text h2 { font-size: 1.4rem; border-bottom: 1px solid var(--faint); padding-bottom: 0.4rem; }
.resume-text h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.resume-text p, .resume-text li { max-width: 75ch; }
.resume-text li + li { margin-top: 0.5rem; }
.resume-text { overflow-wrap: anywhere; }
/* Keep content readable with narrow viewports and enlarged browser text. */
.page-header > div, .timeline-item, .timeline-card { min-width: 0; }
.page-header h1 { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .timeline-content { width: 100%; }
  .timeline-title-row span { white-space: normal; text-align: left; }
}
@media (max-width: 820px) {
  .two-column { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .education-item > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; overflow: visible; }
  .mobile-nav .nav-link { justify-content: center; min-width: 0; min-height: 2.5rem; overflow-wrap: anywhere; }
  .site-main { padding-top: 9.5rem; }
  :where(h1, h2, h3, main, [id]) { scroll-margin-top: 9rem; }
}
