:root {
  --paper: #f5f7f1;
  --paper-strong: #ffffff;
  --ink: #1d2421;
  --muted: #5f6961;
  --line: #d8ded4;
  --teal: #1f9b8f;
  --blue: #2d6cdf;
  --coral: #ef755f;
  --gold: #f2b63d;
  --lime: #b9dd57;
  --shadow: 0 18px 45px rgba(31, 40, 35, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: background 900ms ease, color 900ms ease;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 100;
  content: "";
  background: #050706;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

body.pinecone-dimming::after {
  opacity: 0.42;
}

body.night-mode {
  background: #0c1110;
  color: #f6f7f2;
}

main {
  padding-top: 70px;
}

body.home main {
  padding-top: 0;
}

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

.site-header {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background 900ms ease, border-color 900ms ease, color 900ms ease, backdrop-filter 900ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  z-index: -1;
  height: 118px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(247, 249, 246, 0.94) 0%,
    rgba(247, 249, 246, 0.72) 58%,
    rgba(247, 249, 246, 0) 100%
  );
  opacity: 0;
  transition: opacity 420ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(19, 31, 35, 0.08);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

body.night-mode .site-header {
  border-bottom-color: transparent;
  background: transparent;
}

body.night-mode .site-header.is-scrolled {
  border-bottom-color: rgba(246, 247, 242, 0.1);
}

body.night-mode .site-header::after {
  background: linear-gradient(
    180deg,
    rgba(9, 14, 17, 0.92) 0%,
    rgba(9, 14, 17, 0.7) 58%,
    rgba(9, 14, 17, 0) 100%
  );
}

.brand,
.nav,
.hero-actions,
.site-footer,
.project-row ul {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0;
  min-width: max-content;
  font-weight: 850;
}

.dynamic-logo {
  position: relative;
  display: inline-grid;
  width: 46px;
  height: 40px;
  place-items: center;
  overflow: visible;
  transform: translateZ(0);
}

.dynamic-logo::before {
  position: absolute;
  inset: 2px;
  content: "";
  background: var(--lime);
  filter: blur(5px);
  opacity: 0.16;
  transform: scale(0.92);
  -webkit-mask: url("assets/x-logo.png") center / contain no-repeat;
  mask: url("assets/x-logo.png") center / contain no-repeat;
}

.logo-mark {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%);
  object-fit: contain;
  object-position: center;
  transform-origin: center;
  animation: logoSpin 4.8s linear infinite;
}

body.night-mode .logo-mark {
  filter: none;
}

.brand:hover .dynamic-logo {
  transform: scale(1.04);
}

.nav {
  justify-content: flex-end;
  gap: clamp(12px, 2.6vw, 32px);
  color: var(--muted);
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 780;
  text-transform: uppercase;
}

body.night-mode .nav {
  color: #b8c5bf;
}

.nav a {
  white-space: nowrap;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
}

body.night-mode .nav a:hover,
body.night-mode .nav a[aria-current="page"] {
  color: #ffffff;
}

.hero {
  position: relative;
  display: block;
  min-height: 106svh;
  padding: clamp(116px, 13vw, 154px) clamp(18px, 5vw, 72px) clamp(58px, 8vw, 92px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: border-color 900ms ease;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(rgba(29, 36, 33, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 33, 0.075) 1px, transparent 1px),
    linear-gradient(120deg, rgba(245, 247, 241, 0.88) 0%, rgba(245, 247, 241, 0.68) 46%, rgba(245, 247, 241, 0.12) 100%),
    radial-gradient(circle at 88% 18%, rgba(239, 117, 95, 0.34), transparent 28%),
    radial-gradient(circle at 74% 72%, rgba(45, 108, 223, 0.3), transparent 30%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  pointer-events: none;
  transition: opacity 900ms ease, background 900ms ease;
  animation: heroGridDrift 11s linear infinite;
}

.hero::after {
  position: absolute;
  inset: -18%;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 22% 32%, rgba(31, 155, 143, 0.4), transparent 35%),
    radial-gradient(circle at 72% 24%, rgba(239, 117, 95, 0.42), transparent 33%),
    radial-gradient(circle at 62% 82%, rgba(45, 108, 223, 0.36), transparent 38%),
    radial-gradient(circle at 36% 76%, rgba(185, 221, 87, 0.34), transparent 32%);
  mix-blend-mode: multiply;
  opacity: 0.88;
  pointer-events: none;
  transform: scale(1);
  animation: coverBreath 6.4s ease-in-out infinite;
  transition: opacity 900ms ease, filter 900ms ease;
}

body.night-mode .hero {
  border-bottom-color: rgba(246, 247, 242, 0.16);
}

body.night-mode .hero::before {
  background:
    linear-gradient(rgba(246, 247, 242, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 247, 242, 0.055) 1px, transparent 1px),
    linear-gradient(120deg, rgba(12, 17, 16, 0.97) 0%, rgba(12, 17, 16, 0.9) 46%, rgba(12, 17, 16, 0.48) 100%),
    radial-gradient(circle at 86% 18%, rgba(239, 117, 95, 0.13), transparent 25%),
    radial-gradient(circle at 74% 72%, rgba(45, 108, 223, 0.15), transparent 27%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

body.night-mode .hero::after {
  opacity: 0.42;
  filter: hue-rotate(50deg) saturate(0.8);
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-content {
  display: flex;
  min-height: calc(100svh - 260px);
  max-width: 1120px;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 26px;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.84;
}

h1 span {
  display: block;
}

.name-lockup {
  max-width: 12.5ch;
  margin-bottom: clamp(32px, 4vw, 46px);
  font-size: clamp(3.2rem, 8.8vw, 7.2rem);
}

.name-alias {
  width: fit-content;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(110deg, var(--ink), var(--teal) 48%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 0.62em;
  font-weight: 900;
  letter-spacing: 0;
}

.name-legal {
  margin-top: 0.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6.6vw, 6.4rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  line-height: 1;
}

h4 {
  margin-bottom: 8px;
  font-size: clamp(1.08rem, 1.6vw, 1.45rem);
}

.role-line {
  max-width: 920px;
  margin: 0;
  color: #39433d;
  font-size: clamp(1.05rem, 1.9vw, 1.72rem);
  font-weight: 760;
  line-height: 1.48;
  transition: color 900ms ease;
}

body.night-mode .role-line {
  color: #d8dfda;
}

body.night-mode .name-alias {
  background: linear-gradient(110deg, #ffffff, var(--lime) 44%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-index {
  align-self: end;
  display: grid;
  border-top: 1px solid rgba(29, 36, 33, 0.18);
  border-bottom: 1px solid rgba(29, 36, 33, 0.18);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  transition: background 900ms ease, border-color 900ms ease;
}

body.night-mode .hero-index {
  border-color: rgba(246, 247, 242, 0.2);
  background: rgba(12, 17, 16, 0.56);
}

.hero-index a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 900ms ease;
}

body.night-mode .hero-index a {
  border-bottom-color: rgba(246, 247, 242, 0.16);
}

.hero-index a:last-child {
  border-bottom: 0;
}

.hero-index span,
.project-number,
.publication-list span,
.category-heading span,
.capability-row span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-index strong {
  font-size: 1.04rem;
}

.hero-index small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.35;
  transition: color 900ms ease;
}

body.night-mode .hero-index small {
  color: #bac6c0;
}

.pinecone-station {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  top: clamp(360px, 58vh, 520px);
  bottom: auto;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: end;
  touch-action: none;
  user-select: none;
}

.pinecone-station.is-dragging {
  cursor: grabbing;
}

.pinecone-button,
.ar-toggle,
.ar-close {
  font: inherit;
  cursor: pointer;
}

.pinecone-button {
  position: relative;
  width: 78px;
  height: 98px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: grab;
  touch-action: none;
  transition: background 900ms ease, border-color 900ms ease, filter 900ms ease, opacity 900ms ease, transform 220ms ease;
}

.pinecone-button:hover {
  transform: translateY(-3px);
}

.pinecone-station.is-dragging .pinecone-button {
  cursor: grabbing;
  transform: scale(1.03);
}

body.night-mode .pinecone-button {
  border-color: transparent;
  background: transparent;
  filter: saturate(0.25) brightness(0.72);
  opacity: 0.58;
}

.pinecone-model {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 66px;
  height: 88px;
  overflow: visible;
  transform: translateX(-50%);
}

.pine-stem {
  fill: #3a2c1f;
}

.pine-scale {
  fill: url("#pineScaleGradient");
}

.pinecone-model .pine-scale {
  fill: #6f4a2d;
  stroke: rgba(29, 36, 33, 0.32);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: 50% 8%;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), fill 900ms ease;
}

.pinecone-model .scale-1,
.pinecone-model .scale-4,
.pinecone-model .scale-7 {
  fill: #7f5634;
}

.pinecone-model .scale-2,
.pinecone-model .scale-5,
.pinecone-model .scale-8 {
  fill: #8c613b;
  transform: rotate(-9deg);
}

.pinecone-model .scale-3,
.pinecone-model .scale-6,
.pinecone-model .scale-9 {
  fill: #5f3f2a;
  transform: rotate(9deg);
}

.pine-shadow {
  fill: rgba(45, 33, 25, 0.5);
}

.pinecone-button.is-closed .pine-scale {
  fill: #493523;
}

.pinecone-button.is-closed .scale-2,
.pinecone-button.is-closed .scale-5,
.pinecone-button.is-closed .scale-8 {
  transform: rotate(-2deg) scaleX(0.86);
}

.pinecone-button.is-closed .scale-3,
.pinecone-button.is-closed .scale-6,
.pinecone-button.is-closed .scale-9 {
  transform: rotate(2deg) scaleX(0.86);
}

.pinecone-button.is-closed .scale-1,
.pinecone-button.is-closed .scale-4,
.pinecone-button.is-closed .scale-7 {
  transform: scaleX(0.9);
}

.cone-stem {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(#56625b, #1d2421);
  transform: translateX(-50%) rotate(4deg);
}

.cone-scale {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 34px;
  border: 1px solid rgba(29, 36, 33, 0.18);
  border-radius: 54% 54% 48% 48%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(180deg, #8e6c42, #4a3527);
  box-shadow: 0 7px 12px rgba(31, 40, 35, 0.14);
  transform-origin: 50% 8%;
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 900ms ease;
}

.scale-1 { top: 18px; transform: translateX(-50%) rotate(-4deg); }
.scale-2 { top: 28px; margin-left: -16px; transform: translateX(-50%) rotate(-28deg); }
.scale-3 { top: 28px; margin-left: 16px; transform: translateX(-50%) rotate(28deg); }
.scale-4 { top: 42px; margin-left: -22px; transform: translateX(-50%) rotate(-38deg); }
.scale-5 { top: 42px; margin-left: 22px; transform: translateX(-50%) rotate(38deg); }
.scale-6 { top: 50px; transform: translateX(-50%) rotate(3deg); }
.scale-7 { top: 60px; margin-left: -24px; transform: translateX(-50%) rotate(-46deg); }
.scale-8 { top: 60px; margin-left: 24px; transform: translateX(-50%) rotate(46deg); }
.scale-9 { top: 69px; margin-left: -11px; transform: translateX(-50%) rotate(-18deg); }
.scale-10 { top: 69px; margin-left: 11px; transform: translateX(-50%) rotate(18deg); }
.scale-11 { top: 80px; margin-left: -14px; transform: translateX(-50%) rotate(-24deg) scale(0.94); }
.scale-12 { top: 80px; margin-left: 14px; transform: translateX(-50%) rotate(24deg) scale(0.94); }

.water-sprinkle {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 80px;
  height: 52px;
  pointer-events: none;
  transform: translateX(-50%);
}

.water-sprinkle span {
  position: absolute;
  top: 0;
  width: 5px;
  height: 15px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.72);
  opacity: 0;
}

.water-sprinkle span:nth-child(1) { left: 10px; }
.water-sprinkle span:nth-child(2) { left: 25px; }
.water-sprinkle span:nth-child(3) { left: 39px; }
.water-sprinkle span:nth-child(4) { left: 53px; }
.water-sprinkle span:nth-child(5) { left: 67px; }

.pinecone-button.is-watering .water-sprinkle span {
  animation: waterDrop 720ms ease-out forwards;
}

.pinecone-button.is-watering .water-sprinkle span:nth-child(2) { animation-delay: 80ms; }
.pinecone-button.is-watering .water-sprinkle span:nth-child(3) { animation-delay: 140ms; }
.pinecone-button.is-watering .water-sprinkle span:nth-child(4) { animation-delay: 40ms; }
.pinecone-button.is-watering .water-sprinkle span:nth-child(5) { animation-delay: 110ms; }

.ar-toggle {
  position: relative;
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(29, 36, 33, 0.2);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper-strong);
}

.ar-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ar-toggle::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 170px;
  padding: 6px 8px;
  border: 1px solid rgba(29, 36, 33, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ar-toggle:hover::after {
  opacity: 1;
  transform: translateY(0);
}

body.night-mode .ar-toggle {
  border-color: rgba(246, 247, 242, 0.2);
  background: #f6f7f2;
  color: #0c1110;
}

body.night-mode .ar-toggle::after {
  border-color: rgba(246, 247, 242, 0.18);
  background: rgba(12, 17, 16, 0.9);
  color: #f6f7f2;
}

.ar-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  bottom: auto;
  width: min(270px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(29, 36, 33, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body.night-mode .ar-panel {
  border-color: rgba(246, 247, 242, 0.18);
  background: rgba(12, 17, 16, 0.88);
}

.ar-video,
.ar-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ar-video {
  background: #111715;
}

.ar-canvas {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}

.ar-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(12, 17, 16, 0.72);
  color: #ffffff;
}

.ar-guide {
  position: absolute;
  left: 10px;
  right: 44px;
  top: 10px;
  margin: 0;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: rgba(12, 17, 16, 0.72);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.ar-status {
  margin: 0;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

body.night-mode .ar-status {
  color: #c9d3ce;
}

.section,
.contact {
  padding: clamp(70px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section {
  transition: background 900ms ease, color 900ms ease;
}

.section-heading {
  max-width: 960px;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.page-hero {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 86px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(31, 155, 143, 0.16), transparent 27%),
    radial-gradient(circle at 16% 88%, rgba(239, 117, 95, 0.14), transparent 27%),
    var(--paper);
}

.page-hero h1 {
  max-width: 1050px;
  margin-bottom: 20px;
  font-size: clamp(3.7rem, 10vw, 9rem);
  line-height: 0.84;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.52;
}

.section-heading p:not(.eyebrow),
.contact p,
.about-copy p,
.capability-row p,
.project-row p,
.publication-list p,
.photo-section p {
  color: var(--muted);
  line-height: 1.58;
  transition: color 900ms ease;
}

body.night-mode .section-heading p:not(.eyebrow),
body.night-mode .directory-list small {
  color: #c0ccc6;
}

.home-directory {
  padding-top: clamp(54px, 7vw, 82px);
}

.directory-list {
  display: grid;
  border-top: 1px solid var(--line);
  transition: border-color 900ms ease;
}

body.night-mode .directory-list {
  border-top-color: rgba(246, 247, 242, 0.16);
}

.directory-list a {
  display: grid;
  grid-template-columns: 68px minmax(0, 0.7fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 900ms ease, color 900ms ease;
}

body.night-mode .directory-list a {
  border-bottom-color: rgba(246, 247, 242, 0.16);
}

.directory-list span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.directory-list strong {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1;
}

.directory-list small {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
  transition: color 900ms ease;
}

.about-grid,
.publication-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.about-grid {
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
}

.profile-visual {
  display: grid;
  gap: 18px;
  align-self: start;
}

.profile-portrait {
  position: sticky;
  top: 112px;
  margin: 0;
  max-width: 440px;
}

.profile-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9efe8;
  transition: border-color 900ms ease, filter 900ms ease;
}

.about-copy {
  padding-top: 10px;
  font-size: clamp(0.95rem, 1.05vw, 1.06rem);
}

.education-block {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  margin-top: clamp(54px, 8vw, 88px);
  padding-top: clamp(38px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.education-block h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 5rem);
}

.education-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.education-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.education-list span,
.activity-grid span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.education-list h3,
.activity-grid h3 {
  margin-top: 14px;
  font-size: clamp(1.28rem, 2vw, 1.9rem);
}

.education-list p,
.activity-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
  transition: color 900ms ease;
}

.education-list p + p {
  margin-top: 8px;
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(42px, 7vw, 76px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-row article {
  min-height: 238px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.capability-row article:last-child {
  border-right: 0;
}

.capability-row h3 {
  margin-top: 42px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.projects-section {
  border-top: 1px solid var(--line);
}

.project-category {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(220px, 0.55fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: stretch;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.category-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.category-heading h3 {
  margin-bottom: 0;
}

.category-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(29, 36, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 33, 0.08) 1px, transparent 1px),
    #eef2ec;
  background-size: 26px 26px;
}

.category-visual::before,
.category-visual::after,
.category-visual span {
  position: absolute;
  content: "";
}

.visual-metaverse::before {
  inset: 22% 13%;
  border: 18px solid var(--blue);
  transform: skewY(-8deg);
}

.visual-metaverse::after {
  width: 130px;
  height: 130px;
  right: 14%;
  bottom: 10%;
  border: 18px solid var(--coral);
  border-radius: 50%;
}

.visual-metaverse span:nth-child(1) {
  width: 42px;
  height: 42px;
  left: 17%;
  top: 20%;
  background: var(--lime);
}

.visual-metaverse span:nth-child(2) {
  width: 44%;
  height: 16px;
  left: 20%;
  bottom: 23%;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(-18deg);
}

.visual-hci span {
  left: 14%;
  right: 14%;
  height: 30px;
  border-radius: 999px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.visual-hci span:nth-child(1) { top: 42px; background: var(--ink); }
.visual-hci span:nth-child(2) { top: 92px; width: 42%; right: auto; background: var(--blue); }
.visual-hci span:nth-child(3) { top: 144px; width: 67%; right: auto; background: var(--lime); }
.visual-hci span:nth-child(4) { top: 196px; width: 34%; right: auto; background: var(--coral); }

.visual-product::before {
  width: 220px;
  height: 108px;
  left: 50%;
  top: 45%;
  border-radius: 46px 70px 42px 58px;
  background: linear-gradient(120deg, var(--ink), #56625b 48%, var(--teal));
  transform: translate(-50%, -50%) rotate(-8deg);
}

.visual-product::after {
  width: 116px;
  height: 46px;
  left: 46%;
  top: 46%;
  border-radius: 999px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(-8deg);
}

.visual-product span:nth-child(1) {
  width: 66px;
  height: 66px;
  left: 18%;
  top: 18%;
  border: 12px solid var(--blue);
  border-radius: 50%;
}

.project-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(190px, auto);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.project-row p {
  margin-bottom: 0;
}

.project-row ul {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-row li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #39433d;
  font-size: 0.78rem;
  font-weight: 820;
}

.publication-section {
  border-top: 1px solid var(--line);
  background: #eaf1ee;
}

.activities-section {
  border-top: 1px solid var(--line);
}

.publication-section .publication-layout,
.activities-section .publication-layout {
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 44px);
}

.publication-section .section-kicker,
.activities-section .section-kicker {
  margin-bottom: 0;
}

.publication-list {
  display: grid;
  border-top: 1px solid rgba(29, 36, 33, 0.18);
}

.publication-section .publication-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 0;
}

.publication-list article {
  padding: 22px 0;
  border-bottom: 1px solid rgba(29, 36, 33, 0.18);
}

.publication-section .publication-list article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(29, 36, 33, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  transition: background 900ms ease, border-color 900ms ease;
}

.publication-list h3 {
  margin-top: 18px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.activities-content {
  display: grid;
  gap: clamp(30px, 5vw, 58px);
}

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

.activity-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
  transition: background 900ms ease, border-color 900ms ease;
}

.activity-gallery-panel {
  display: grid;
  gap: 18px;
}

.activity-gallery-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.activity-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.activity-gallery::-webkit-scrollbar {
  display: none;
}

.activity-gallery figure {
  flex: 0 0 min(380px, 78vw);
  margin: 0;
  scroll-snap-align: start;
}

.activity-gallery figure.is-wide {
  flex-basis: min(380px, 78vw);
}

.activity-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(29, 36, 33, 0.16);
  background: rgba(255, 255, 255, 0.5);
}

.gallery-slider {
  width: min(520px, 100%);
  accent-color: var(--teal);
  cursor: pointer;
}

.photo-section {
  border-top: 1px solid var(--line);
}

.photography-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  margin-bottom: clamp(42px, 7vw, 78px);
}

.photographer-image {
  margin: 0;
  max-width: 440px;
}

.photographer-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9efe8;
  transition: border-color 900ms ease, filter 900ms ease;
}

.photography-statement {
  max-width: 820px;
  padding-bottom: 6px;
}

.photography-subtitle {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.05vw, 1.06rem);
  font-weight: 400;
  line-height: 1.58;
  transition: color 900ms ease;
}

.photo-album-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: end;
  margin-bottom: clamp(20px, 4vw, 34px);
}

.photo-album-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.8rem);
}

.photo-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.photo-album {
  min-width: 0;
}

.album-cover {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  min-height: 270px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 900ms ease, transform 180ms ease;
}

.album-cover:hover,
.album-cover[aria-expanded="true"] {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.album-stack {
  position: relative;
  display: block;
  min-height: 230px;
}

.album-stack::before,
.album-stack::after {
  content: "";
  position: absolute;
  inset: 10px 2px 2px 18px;
  border: 1px solid rgba(29, 36, 33, 0.16);
  border-radius: calc(var(--radius) - 2px);
  background: #f4f6f1;
  transform: rotate(4deg);
  transition: border-color 900ms ease, background 900ms ease;
}

.album-stack::after {
  inset: 3px 14px 12px 6px;
  transform: rotate(-3deg);
}

.album-stack img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: cover;
  border: 1px solid rgba(29, 36, 33, 0.16);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 18px 38px rgba(29, 36, 33, 0.18);
}

.album-stack img:nth-child(2) {
  z-index: 1;
  transform: translate(22px, 18px) rotate(4deg);
}

.album-stack.single img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
}

.album-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.album-meta span {
  max-width: 18ch;
  font-size: clamp(0.78rem, 0.95vw, 0.96rem);
  font-weight: 400;
  line-height: 1.25;
}

.album-meta strong {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
}

.album-expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 0 8px;
}

.album-expanded[hidden] {
  display: none;
}

.album-expanded figure {
  margin: 0;
}

.album-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.album-expanded img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border: 1px solid rgba(29, 36, 33, 0.16);
  border-radius: var(--radius);
  background: #e9efe8;
  transition: border-color 900ms ease, background 900ms ease;
}

.album-photo:hover img,
.album-photo:focus-visible img {
  border-color: var(--teal);
}

.photo-section img,
.photo-lightbox img {
  -webkit-user-drag: none;
  user-select: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(7, 10, 10, 0.9);
  color: #f6f7f2;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(246, 247, 242, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.photo-lightbox p {
  max-width: min(620px, 92vw);
  margin: 0;
  color: rgba(246, 247, 242, 0.68);
  font-size: 0.86rem;
  text-align: center;
}

.lightbox-close {
  justify-self: end;
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(246, 247, 242, 0.26);
  border-radius: var(--radius);
  background: rgba(246, 247, 242, 0.08);
  color: #f6f7f2;
  cursor: pointer;
  font-weight: 820;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: #f6f7f2;
}

body.lightbox-open {
  overflow: hidden;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 14px;
}

.photo-tile {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 36, 33, 0.18), transparent),
    linear-gradient(45deg, rgba(31, 155, 143, 0.26), rgba(239, 117, 95, 0.26)),
    #e9efe8;
}

.photo-tile:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(45, 108, 223, 0.24), transparent 70%),
    repeating-linear-gradient(90deg, rgba(29, 36, 33, 0.12) 0 2px, transparent 2px 16px),
    #edf1ea;
}

.photo-tile:nth-child(3) {
  background:
    radial-gradient(circle at 72% 30%, rgba(242, 182, 61, 0.65), transparent 22%),
    linear-gradient(130deg, rgba(29, 36, 33, 0.2), transparent),
    #edf1ea;
}

.photo-tile:nth-child(4) {
  background:
    radial-gradient(circle at 28% 42%, rgba(185, 221, 87, 0.42), transparent 24%),
    linear-gradient(110deg, rgba(45, 108, 223, 0.22), rgba(239, 117, 95, 0.16)),
    #edf1ea;
}

.photo-tile span {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(29, 36, 33, 0.18);
  border-radius: calc(var(--radius) - 2px);
}

.photo-tile figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--ink);
  font-weight: 850;
}

.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.8fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
}

.contact p {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

body.night-mode .button.primary {
  border-color: #f6f7f2;
  background: #f6f7f2;
  color: #0c1110;
}

body.night-mode .button.secondary {
  border-color: rgba(246, 247, 242, 0.34);
  background: rgba(246, 247, 242, 0.08);
  color: #f6f7f2;
}

.home-projects {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  transition: border-color 900ms ease;
}

body.night-mode .home-projects {
  border-top-color: rgba(246, 247, 242, 0.16);
}

.home-projects h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.home-project-list {
  display: grid;
  border-top: 1px solid var(--line);
}

body.night-mode .home-project-list {
  border-top-color: rgba(246, 247, 242, 0.16);
}

.home-project-list a {
  display: grid;
  grid-template-columns: 58px minmax(160px, 0.45fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 900ms ease, color 180ms ease, transform 180ms ease;
}

body.night-mode .home-project-list a {
  border-bottom-color: rgba(246, 247, 242, 0.16);
}

.home-project-list a:hover,
.home-project-list a.active {
  color: var(--teal);
  transform: translateX(6px);
}

.home-project-list span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-project-list strong {
  color: var(--ink);
  font-size: clamp(1.18rem, 2.3vw, 2.2rem);
  line-height: 1.05;
  transition: color 900ms ease;
}

body.night-mode .home-project-list strong {
  color: #f6f7f2;
}

.home-project-list small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
  transition: color 900ms ease;
}

body.night-mode .home-project-list small {
  color: #c0ccc6;
}

.project-showcase {
  padding: clamp(50px, 7vw, 86px) clamp(18px, 5vw, 72px) clamp(78px, 10vw, 126px);
  border-top: 1px solid var(--line);
  background: #f8f1ed;
  transition: background 900ms ease, border-color 900ms ease;
}

body.night-mode .project-showcase {
  border-top-color: rgba(246, 247, 242, 0.16);
  background: #111715;
}

.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(300px, 1fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
  margin-bottom: clamp(24px, 5vw, 52px);
}

.showcase-heading h2 {
  grid-column: 1;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.2vw, 5.6rem);
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px) clamp(18px, 2.5vw, 30px);
}

.project-card {
  display: block;
  min-width: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card.hidden {
  display: none;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  margin-bottom: 16px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
  transition: filter 220ms ease, transform 220ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
}

.project-card:hover img,
.project-card:focus-visible img {
  filter: saturate(1.1) contrast(1.06);
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.38;
  transition: color 900ms ease;
}

body.night-mode .project-card p {
  color: #d8dfda;
}

.portfolio-index {
  border-top: 1px solid var(--line);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.project-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 860;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-filters button:hover,
.project-filters button.active {
  background: var(--ink);
  color: var(--paper-strong);
  transform: translateY(-2px);
}

.portfolio-card-grid {
  display: flex;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.portfolio-card {
  flex: 0 0 auto;
  width: min(230px, 72vw);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.portfolio-card.active {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(31, 155, 143, 0.1);
  transform: translateY(-3px);
}

.portfolio-card.active img {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.portfolio-card p,
.portfolio-card ul {
  display: none;
}

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  object-fit: cover;
}

.portfolio-card span {
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.portfolio-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.16;
  text-decoration: none;
  text-overflow: ellipsis;
}

.portfolio-card ul,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.portfolio-card li,
.project-tags li {
  padding: 5px 8px;
  border: 1px solid rgba(29, 36, 33, 0.14);
  border-radius: 999px;
  color: #3d4741;
  font-size: 0.72rem;
  font-weight: 820;
}

.portfolio-card-placeholder {
  aspect-ratio: 1 / 0.92;
  margin-bottom: 16px;
  background:
    linear-gradient(rgba(29, 36, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 36, 33, 0.08) 1px, transparent 1px),
    #eef2ec;
  background-size: 24px 24px;
}

.portfolio-details {
  border-top: 1px solid var(--line);
}

.project-detail {
  display: none;
  padding: clamp(34px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.project-detail.active {
  display: block;
}

.project-detail-header {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.project-detail-header h2 {
  max-width: 1120px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5.4vw, 5.8rem);
}

.project-detail-header p:not(.eyebrow) {
  max-width: 880px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
}

.project-detail-hero,
.portfolio-figure {
  margin: 0 0 clamp(18px, 3vw, 34px);
}

.project-detail-hero img,
.portfolio-figure img {
  display: block;
  width: 100%;
  max-height: 820px;
  object-fit: contain;
  background: #eef2ec;
}

.project-detail-body {
  max-width: 1080px;
  margin-left: 76px;
}

.project-detail-body h3,
.project-detail-body h4,
.project-detail-body h5 {
  max-width: 780px;
  margin-top: clamp(30px, 5vw, 58px);
}

.project-detail-body h4 {
  font-size: clamp(1.45rem, 2.4vw, 2.7rem);
}

.project-detail-body h5 {
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
}

.project-detail-body p,
.project-detail-body li {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.project-detail-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.portfolio-video {
  position: relative;
  max-width: 960px;
  margin: 0 0 clamp(24px, 4vw, 46px);
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.portfolio-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.night-mode .project-filters button {
  border-color: rgba(246, 247, 242, 0.18);
  color: #f6f7f2;
}

body.night-mode .project-filters button:hover,
body.night-mode .project-filters button.active {
  background: #f6f7f2;
  color: #0c1110;
}

body.night-mode .portfolio-card li,
body.night-mode .project-tags li {
  border-color: rgba(246, 247, 242, 0.18);
  color: #cbd6d0;
}

body.night-mode .project-detail,
body.night-mode .portfolio-details,
body.night-mode .portfolio-index {
  border-color: rgba(246, 247, 242, 0.16);
}

body.night-mode .project-detail-body p,
body.night-mode .project-detail-body li,
body.night-mode .project-detail-header p:not(.eyebrow) {
  color: #c0ccc6;
}

body.night-mode .education-block,
body.night-mode .education-list,
body.night-mode .education-list article,
body.night-mode .profile-portrait img,
body.night-mode .photographer-image img,
body.night-mode .album-cover,
body.night-mode .album-stack::before,
body.night-mode .album-stack::after,
body.night-mode .album-stack img,
body.night-mode .album-expanded img,
body.night-mode .publication-section .publication-list article,
body.night-mode .activities-section,
body.night-mode .activity-gallery img,
body.night-mode .activity-grid article {
  border-color: rgba(246, 247, 242, 0.16);
}

body.night-mode .education-list p,
body.night-mode .activity-grid p,
body.night-mode .publication-list p,
body.night-mode .photography-subtitle {
  color: #c0ccc6;
}

body.night-mode .activity-grid article,
body.night-mode .publication-section .publication-list article,
body.night-mode .album-cover,
body.night-mode .album-stack::before,
body.night-mode .album-stack::after,
body.night-mode .album-expanded img,
body.night-mode .activity-gallery img {
  background: rgba(246, 247, 242, 0.06);
}

body.night-mode .album-cover {
  color: #f6f7f2;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 900ms ease, color 900ms ease;
}

body.night-mode .site-footer {
  border-top-color: rgba(246, 247, 242, 0.16);
  color: #bcc8c2;
}

.home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px clamp(24px, 5vw, 72px);
  align-items: end;
}

.footer-connect {
  max-width: 740px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 400;
  line-height: 1.48;
  transition: color 900ms ease;
}

.footer-connect a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

body.night-mode .footer-connect,
body.night-mode .social-link {
  color: #f6f7f2;
}

body.night-mode .social-link {
  border-color: rgba(246, 247, 242, 0.18);
}

@media (max-width: 1100px) {
  main {
    padding-top: 104px;
  }

  body.home main {
    padding-top: 0;
  }

  .site-header,
  .home-projects,
  .showcase-heading,
  .education-block,
  .about-grid,
  .photography-feature,
  .photo-album-heading,
  .publication-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-portrait {
    position: static;
    max-width: 520px;
  }

  .photographer-image {
    max-width: 520px;
  }

  .project-category {
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  }

  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-visual {
    grid-column: 1;
  }

  .project-detail-body {
    margin-left: 0;
  }

  .project-list {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 14px;
  }

  .nav {
    gap: 10px 16px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 108svh;
    padding-top: 128px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .capability-row,
  .project-category,
  .publication-section .publication-list,
  .activity-grid,
  .photo-album-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .album-cover,
  .album-expanded {
    grid-template-columns: 1fr;
  }

  .album-stack {
    min-height: 260px;
  }

  .capability-row article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-row article:last-child {
    border-bottom: 0;
  }

  .category-heading {
    min-height: auto;
    gap: 40px;
  }

  .category-visual,
  .project-list {
    grid-column: auto;
    grid-row: auto;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-detail-header {
    grid-template-columns: 1fr;
  }

  .home-project-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-row ul {
    justify-content: flex-start;
  }

  .photo-grid {
    grid-auto-rows: 210px;
  }

  .tile-large,
  .tile-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-socials {
    justify-content: flex-start;
  }
}

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

  .hero::before {
    animation: none !important;
  }

  .dynamic-logo {
    animation: none !important;
  }

  .logo-mark {
    animation: none !important;
  }

  .pinecone-button.is-watering .water-sprinkle span {
    animation: none !important;
  }
}

@keyframes coverBreath {
  0% {
    filter: hue-rotate(-18deg) saturate(1.2);
    opacity: 0.68;
    transform: scale(1) translate3d(0, 0, 0);
  }

  45% {
    filter: hue-rotate(72deg) saturate(1.85);
    opacity: 0.98;
    transform: scale(1.08) translate3d(-2.4%, 1.8%, 0);
  }

  100% {
    filter: hue-rotate(-58deg) saturate(1.45);
    opacity: 0.76;
    transform: scale(1.03) translate3d(2%, -2%, 0);
  }
}

@keyframes logoSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroGridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 34px 34px, 34px 34px, 0 0, 0 0, 0 0;
  }
}

@keyframes logoBreath {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  45% {
    transform: scale(1.055) rotate(-2deg);
  }
}

@keyframes logoTrace {
  0%,
  100% {
    opacity: 0.84;
    transform: translate3d(0, 0, 0);
  }

  46% {
    opacity: 1;
    transform: translate3d(0, -1px, 0);
  }
}

@keyframes logoEcho {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.8);
  }

  46% {
    opacity: 0.28;
    transform: scale(1.08);
  }
}

@keyframes waterDrop {
  0% {
    opacity: 0;
    transform: translateY(0) scaleY(0.6);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(58px) scaleY(1);
  }
}
