:root {
  --ink: #14211b;
  --paper: #f2efe7;
  --paper-deep: #e7e2d6;
  --accent: #d35c3f;
  --green: #264b3b;
  --line: rgba(20, 33, 27, 0.18);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.grain {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.nav-wrap { position: sticky; top: 0; z-index: 10; background: rgba(242,239,231,.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1280px; height: 76px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.monogram { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-weight: 700; font-size: 13px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; }
.section { max-width: 1280px; margin: auto; padding: 120px 32px; }
.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: clamp(38px, 6vw, 90px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; }
.hero h1 { max-width: 850px; margin: 20px 0 30px; font-family: var(--serif); font-size: clamp(64px, 8.5vw, 126px); line-height: .88; letter-spacing: -.035em; font-weight: 400; }
.hero h1 em, .display-heading em { color: var(--accent); font-weight: 400; }
.hero-summary { max-width: 620px; font-size: clamp(17px, 1.7vw, 22px); color: rgba(20,33,27,.72); }
.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 32px; }
.hero-portrait { margin: 0; align-self: center; }
.hero-portrait-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 48% 48% 3px 3px; background: var(--green); box-shadow: 18px 20px 0 rgba(211,92,63,.18); }
.hero-portrait-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(20,33,27,.18); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; filter: saturate(.82) contrast(1.03); }
.hero-portrait figcaption { margin-top: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; opacity: .58; }
.button { display: inline-flex; align-items: center; gap: 28px; padding: 16px 20px; border-radius: 2px; font-weight: 600; }
.button.primary { color: var(--paper); background: var(--green); }
.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.profile-card { align-self: end; margin-bottom: 60px; background: var(--paper-deep); }
.portrait-placeholder { aspect-ratio: 4 / 4.7; background: var(--green); color: var(--paper); display: grid; place-items: center; overflow: hidden; }
.portrait-placeholder span { font-family: var(--serif); font-size: 82px; opacity: .9; }
.portrait-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.profile-card-copy { padding: 25px; }
.availability { font-size: 12px; text-transform: uppercase; letter-spacing: .11em; }
.availability span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #55a66f; }
.profile-card h2 { margin: 20px 0 2px; font-family: var(--serif); font-size: 32px; font-weight: 400; }
.profile-card p { margin: 0; }
.location { opacity: .55; font-size: 14px; }
.marquee { overflow: hidden; padding: 22px 0; background: var(--green); color: var(--paper); transform: rotate(-1deg) scale(1.01); }
.marquee-track { display: flex; width: max-content; animation: scroll 24s linear infinite; font-family: var(--serif); font-size: 25px; }
.marquee-track span::after { content: "✦"; margin: 0 32px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }
.section-label { color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; }
.about { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.display-heading { max-width: 840px; margin: 0 0 60px; font-family: var(--serif); font-size: clamp(48px, 6vw, 86px); line-height: .97; letter-spacing: -.02em; font-weight: 400; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 850px; font-size: 18px; }
.about-grid p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: 46px; font-weight: 400; }
.stat span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.section-header .display-heading { width: 70%; }
.experience { padding-top: 40px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 145px 52px 1fr 1fr; gap: 24px; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--line); }
.timeline-item > span { font-size: 13px; opacity: .6; }
.timeline-item h3 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; }
.timeline-item p { margin: 0; opacity: .65; }
.institution-link { display: inline; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.institution-link:hover { color: var(--accent); }
.institution-mark { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.institution-mark img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.institution-mark > span { font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.education-block { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; margin-top: 90px; }
.education-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.education-item { padding-top: 20px; border-top: 2px solid var(--green); }
.education-item .institution-mark { margin-bottom: 22px; }
.education-item h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 25px; line-height: 1.1; font-weight: 400; }
.education-item p { margin: 0; font-size: 14px; opacity: .6; }
.directions { background: var(--green); color: var(--paper); }
.directions-inner { padding-top: 120px; padding-bottom: 120px; }
.directions .section-header { align-items: flex-start; }
.directions .section-label { color: #ef8a6f; }
.directions-intro { width: 70%; }
.directions-intro .display-heading { width: 100%; margin-bottom: 30px; }
.directions-intro > p { max-width: 720px; margin: 0 0 60px; color: rgba(242,239,231,.72); font-size: 18px; }
.research-map-shell { margin-bottom: 70px; padding: 24px 30px 30px; border: 1px solid rgba(242,239,231,.22); }
.research-map-topline { display: flex; justify-content: space-between; gap: 20px; color: rgba(242,239,231,.52); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.research-map { width: 100%; margin: 10px auto 0; }
.research-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.research-connectors line { stroke: rgba(242,239,231,.27); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.research-core circle { fill: var(--accent); }
.research-core text { fill: var(--paper); font-family: var(--serif); font-size: 25px; }
.research-core .core-subtitle { font-family: var(--sans); font-size: 8px; letter-spacing: .12em; }
.research-node { cursor: pointer; outline: none; }
.research-node ellipse { fill: rgba(242,239,231,.06); stroke: rgba(242,239,231,.34); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.research-node text { fill: var(--paper); font-family: var(--sans); font-size: 14px; pointer-events: none; }
.research-node:hover ellipse,
.research-node:focus ellipse,
.research-node.is-active ellipse { fill: rgba(211,92,63,.24); stroke: #ef8a6f; stroke-width: 2.5; }
.research-map-detail { display: grid; grid-template-columns: 110px 1fr 280px; gap: 28px; align-items: start; padding-top: 26px; border-top: 1px solid rgba(242,239,231,.2); }
.research-map-detail > span { color: #ef8a6f; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.research-map-detail h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 400; }
.research-map-detail p { margin: 0; color: rgba(242,239,231,.68); }
.research-map-detail strong { color: rgba(242,239,231,.52); font-size: 11px; line-height: 1.7; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.direction-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(242,239,231,.22); border-left: 1px solid rgba(242,239,231,.22); }
.direction-card { min-height: 520px; padding: 34px; display: flex; flex-direction: column; border-right: 1px solid rgba(242,239,231,.22); border-bottom: 1px solid rgba(242,239,231,.22); }
.direction-figure { margin: 0 0 34px; }
.direction-figure figcaption { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 16px; color: rgba(242,239,231,.48); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.direction-figure figcaption span:first-child { color: #ef8a6f; }
.direction-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.direction-figure svg path,
.direction-figure svg circle,
.direction-figure svg rect { vector-effect: non-scaling-stroke; }
.figure-grid path { fill: none; stroke: rgba(242,239,231,.12); stroke-width: 1; }
.figure-routes path { fill: none; stroke: #ef8a6f; stroke-width: 2.2; }
.figure-routes path:last-child { stroke: rgba(242,239,231,.55); stroke-dasharray: 5 6; }
.figure-points circle { fill: var(--green); stroke: var(--paper); stroke-width: 2; }
.figure-points circle:first-child,
.figure-points circle:last-child { fill: #ef8a6f; stroke: #ef8a6f; }
.figure-sim-lines path { fill: none; stroke: rgba(242,239,231,.35); stroke-width: 1.5; }
.figure-agents circle,
.figure-agents rect,
.figure-agents path { fill: #ef8a6f; stroke: none; }
.figure-agents circle:nth-child(3) { fill: var(--paper); }
.figure-cycle path { fill: none; stroke: rgba(242,239,231,.45); stroke-width: 1.6; }
.figure-cycle-points circle { fill: rgba(211,92,63,.22); stroke: #ef8a6f; stroke-width: 1.5; }
.figure-axis path { fill: none; stroke: rgba(242,239,231,.22); stroke-width: 1; }
.figure-axis path:not(:first-child) { stroke-dasharray: 3 5; }
.figure-trajectories path { fill: none; stroke: #ef8a6f; stroke-width: 2; }
.figure-trajectories path:nth-child(2) { stroke: rgba(242,239,231,.72); }
.figure-trajectories path:nth-child(3) { stroke: rgba(242,239,231,.36); stroke-dasharray: 5 5; }
.figure-labels text { fill: rgba(242,239,231,.52); font-family: var(--sans); font-size: 10px; letter-spacing: .1em; }
.figure-labels-centered text { text-anchor: middle; fill: var(--paper); font-size: 8px; }
.route-flow { stroke-dasharray: 7 9 !important; animation: route-flow 2.8s linear infinite; }
.pulse-point { transform-box: fill-box; transform-origin: center; animation: point-pulse 3.2s ease-in-out infinite; }
.pulse-2 { animation-delay: .55s; }
.pulse-3 { animation-delay: 1.1s; }
.pulse-4 { animation-delay: 1.65s; }
.moving-agent { offset-rotate: 0deg; animation: agent-trip 8s ease-in-out infinite; }
.agent-a { offset-path: path("M28 52H155L228 95H344L408 47H492"); }
.agent-b { offset-path: path("M28 139H142L228 95L330 145H492"); animation-delay: -2.7s; }
.agent-c { offset-path: path("M155 52L142 139L228 95L344 95L420 145"); animation-delay: -5.2s; }
.figure-cycle { transform-box: view-box; transform-origin: 260px 95px; animation: cycle-turn 18s linear infinite; }
.cycle-point { transform-box: fill-box; transform-origin: center; animation: cycle-pulse 4s ease-in-out infinite; }
.cycle-2 { animation-delay: 1s; }
.cycle-3 { animation-delay: 2s; }
.cycle-4 { animation-delay: 3s; }
.figure-trajectories path { stroke-dasharray: 560; stroke-dashoffset: 0; animation: trajectory-shift 8s ease-in-out infinite; }
.figure-trajectories path:nth-child(2) { animation-delay: -2.4s; }
.figure-trajectories path:nth-child(3) { animation-delay: -4.8s; }
.behaviour-marker { fill: #ef8a6f; offset-path: path("M36 62C95 60 142 73 204 67S278 128 350 119 430 78 490 82"); offset-rotate: 0deg; animation: agent-trip 7s ease-in-out infinite; }
@keyframes route-flow { to { stroke-dashoffset: -32; } }
@keyframes point-pulse { 0%, 70%, 100% { transform: scale(1); } 82% { transform: scale(1.45); } }
@keyframes agent-trip { 0% { offset-distance: 0%; } 45%, 55% { offset-distance: 100%; } 100% { offset-distance: 0%; } }
@keyframes cycle-turn { to { transform: rotate(360deg); } }
@keyframes cycle-pulse { 0%, 55%, 100% { opacity: .45; transform: scale(1); } 12% { opacity: 1; transform: scale(1.12); } }
@keyframes trajectory-shift { 0%, 100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 70; } }
.direction-card h3 { max-width: 420px; margin: auto 0 18px; font-family: var(--serif); font-size: clamp(32px, 3.2vw, 46px); line-height: 1; font-weight: 400; }
.direction-card p { max-width: 520px; margin: 0 0 26px; color: rgba(242,239,231,.7); }
.direction-methods { padding-top: 18px; border-top: 1px solid rgba(242,239,231,.18); color: rgba(242,239,231,.52); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.project-list { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 70px 1.2fr 1fr 40px; gap: 30px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .25s, color .25s; }
.project:hover { padding-left: 12px; color: var(--accent); }
.project-number { opacity: .55; font-size: 13px; }
.project h3 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 3vw, 40px); font-weight: 400; }
.project p { margin: 0; color: var(--ink); opacity: .62; }
.project-arrow { font-size: 25px; }
.featured-video { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; align-items: center; margin-top: 90px; padding-top: 50px; border-top: 1px solid var(--line); }
.video-copy h3 { margin: 20px 0 16px; font-family: var(--serif); font-size: clamp(36px, 4vw, 55px); line-height: 1; font-weight: 400; }
.video-copy p { margin: 0 0 30px; color: rgba(20,33,27,.65); }
.video-frame { position: relative; aspect-ratio: 766 / 514; overflow: hidden; background: var(--green); }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; object-position: center; background: #0b2118; }
.publications { background: var(--paper-deep); max-width: none; padding-left: max(32px, calc((100vw - 1216px)/2)); padding-right: max(32px, calc((100vw - 1216px)/2)); }
.publication-item { display: grid; grid-template-columns: 100px 1fr 110px; gap: 25px; padding: 28px 0; border-top: 1px solid var(--line); }
.publication-item:last-child { border-bottom: 1px solid var(--line); }
.publication-item h3 { margin: 0 0 7px; font-size: 18px; }
.publication-item p, .publication-item span { margin: 0; font-size: 14px; opacity: .65; }
.contact { padding: 140px 32px; background: var(--accent); color: var(--paper); text-align: center; }
.contact h2 { max-width: 900px; margin: 20px auto 45px; font-family: var(--serif); font-size: clamp(55px, 8vw, 110px); line-height: .94; font-weight: 400; }
.contact-email { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid; font-size: clamp(18px, 2.2vw, 28px); }
.socials { display: flex; justify-content: center; gap: 28px; margin-top: 60px; font-size: 14px; }
.socials a:hover { text-decoration: underline; }
footer { padding: 25px 32px; display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .18s; }

@media (max-width: 800px) {
  .nav { height: 66px; padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 28px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .section { padding: 82px 20px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: clamp(60px, 19vw, 86px); }
  .about { display: block; }
  .section-label { margin-bottom: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr; }
  .section-header { display: block; }
  .section-header .display-heading { width: 100%; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 8px 16px; align-items: center; }
  .timeline-item > span { grid-column: 1 / -1; }
  .timeline-item h3, .timeline-item p { grid-column: 2; }
  .timeline-item .institution-mark { grid-column: 1; grid-row: 2 / span 2; }
  .education-block { grid-template-columns: 1fr; gap: 20px; }
  .education-list { grid-template-columns: 1fr; }
  .directions-inner { padding-top: 82px; padding-bottom: 82px; }
  .directions-intro { width: 100%; }
  .research-map-shell { margin: 0 -4px 55px; padding: 20px 12px 24px; }
  .research-map-topline span:last-child { display: none; }
  .research-map-detail { grid-template-columns: 1fr; gap: 8px; padding: 22px 8px 0; }
  .research-map-detail h3 { font-size: 27px; }
  .research-map-detail strong { margin-top: 8px; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 470px; padding: 28px; }
  .direction-figure { margin-bottom: 28px; }
  .direction-figure .figure-labels { display: none; }
  .project { grid-template-columns: 40px 1fr 30px; gap: 12px; }
  .project p { display: none; }
  .featured-video { grid-template-columns: 1fr; gap: 36px; margin-top: 65px; padding-top: 40px; }
  .publication-item { grid-template-columns: 62px 1fr; }
  .publication-item > span:last-child { display: none; }
  .contact { padding: 100px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-flow,
  .pulse-point,
  .moving-agent,
  .figure-cycle,
  .cycle-point,
  .figure-trajectories path,
  .behaviour-marker,
  .marquee-track { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
