* {
  box-sizing:border-box;
}

:root {
  --paper:#eef7f2;
  --mint:#b9dec9;
  --green:#1ba784;
  --sky:#63bbd0;
  --ink:#134857;
  --body:#375858;
  --em:#207d64;
  --line:#cbded3;
  --soft:#f8fbf8;
  --serif:"Baskervville",Georgia,"Times New Roman",serif;
  --sans:"DM Sans","Helvetica Neue",Arial,sans-serif;
  --mono:"IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family:var(--sans);
  font-size:16px;
  color:var(--ink);
  background:#fafcf9;
  font-synthesis:none;
}

body {
  margin:0;
  min-width:280px;
}

main {
  min-height:62vh;
}

main:focus {
  outline:none;
}

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

button,select,input {
  font:inherit;
  color:inherit;
}

button,select,summary {
  cursor:pointer;
}

button {
  background:none;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.server:focus-visible {
  outline:3px solid #338a99;
  outline-offset:4px;
}

.icon {
  flex:none;
  vertical-align:middle;
}

.container {
  width:min(1280px,calc(100% - clamp(48px,9.5vw,152px)));
  margin-inline:auto;
}

.skip {
  position:absolute;
  top:-100px;
  left:1rem;
  z-index:99;
  padding:14px;
  background:white;
}

.skip:focus {
  top:10px;
}

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

h1,h2,h3 {
  font-weight:400;
}

h1,h2 {
  font-family:var(--serif);
}

h2 {
  font-size:clamp(2.22rem,3.7vw,3.23rem);
  letter-spacing:-.052em;
  line-height:1.07;
}

p {
  color:var(--body);
  line-height:1.63;
}

.topbar {
  height:75px;
  background:#fbfdf9f7;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(12px);
}

.header-inner,.brand,nav,.btn,.square-btn,.hero-actions,.section-head,.sim-actions,.panel-head,.board-foot,.curve-legend,.source-line,.fig-key,.scroll-hint,.footer-brand {
  display:flex;
  align-items:center;
}

.header-inner {
  height:100%;
  justify-content:space-between;
}

.brand {
  gap:10px;
  font-family:var(--serif);
  font-size:1.8rem;
  letter-spacing:-.06em;
  font-weight:600;
  white-space:nowrap;
}

.brand img {
  width:39px;
  height:39px;
}

nav {
  height:100%;
  gap:clamp(20px,2.55vw,41px);
}

nav a {
  display:inline-flex;
  align-items:center;
  position:relative;
  height:100%;
  font-size:.92rem;
  color:#375253;
  font-weight:500;
}

nav a:not(.nav-contact)[aria-current]::after {
  position:absolute;
  content:"";
  height:2px;
  left:0;
  right:0;
  bottom:17px;
  background:var(--em);
}

nav a[aria-current],nav a:hover {
  color:var(--em);
}

nav .nav-contact {
  gap:8px;
  border:1px solid #9bbbae;
  border-radius:6px;
  padding:9px 16px;
  height:auto;
}

.menu-button {
  display:none;
}

.eyebrow,.figure-label,.round,.paper-year,.venue,.grad-year small {
  font-family:var(--mono);
  font-size:.75rem;
  line-height:1.35;
  letter-spacing:.112em;
  text-transform:uppercase;
}

.eyebrow {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:#337563;
}

.eyebrow i {
  width:23px;
  height:2px;
  background:var(--green);
  display:inline-block;
}

.hero {
  border-bottom:1px solid var(--line);
  background:radial-gradient(ellipse at 78% 56%,#e5f2e7 0%,transparent 60%),linear-gradient(106deg,#f6faf4,var(--paper));
}

.hero-inner {
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
  gap:clamp(15px,2.2vw,42px);
  align-items:center;
  padding-block:clamp(33px,3.4vw,55px) clamp(31px,3.1vw,48px);
}

.hero-copy {
  padding-block:12px;
}

.hero-copy h1 {
  font-size:clamp(3.15rem,4.63vw,4.7rem);
  line-height:1.015;
  letter-spacing:-.061em;
  margin:23px 0 20px;
}

.hero h1 span,.hero h1 em {
  display:block;
}

.hero h1 em {
  color:var(--em);
  font-weight:400;
  letter-spacing:-.062em;
  font-style:italic;
}

.hero-copy>p {
  max-width:492px;
  font-size:clamp(1rem,1.25vw,1.13rem);
  line-height:1.55;
}

.hero-actions {
  gap:11px;
  flex-wrap:wrap;
  margin-top:27px;
}

.btn,.square-btn {
  appearance:none;
  justify-content:center;
  border:1px solid transparent;
  border-radius:6px;
  gap:9px;
  min-height:42px;
  padding:10px 16px;
  font-size:.91rem;
  font-weight:550;
  line-height:1.25;
  transition:background .18s,border-color .18s,transform .18s;
}

.btn:active,.square-btn:active {
  transform:translateY(1px);
}

.btn.primary {
  background:var(--ink);
  border-color:var(--ink);
  color:#f6fcf8;
}

.btn.primary:hover {
  background:#226172;
}

.btn.outline,.square-btn {
  border-color:#adc8ba;
  background:#f8fcf7;
  color:var(--ink);
}

.btn.outline:hover,.square-btn:hover {
  background:#e4f1e7;
  border-color:#72a38c;
}

.square-btn {
  padding:0;
  width:42px;
}

.terrain {
  align-self:stretch;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:650px;
}

.figure-field {
  position:relative;
  min-width:0;
}

.figure-label {
  position:absolute;
  top:3px;
  right:8px;
  z-index:1;
  display:flex;
  align-items:center;
  gap:7px;
  color:#47716b;
  font-size:.69rem;
  font-weight:600;
  letter-spacing:.12em;
}

.tiny-square {
  height:5px;
  width:5px;
  display:block;
  background:#4d8c78;
}

.surface {
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}

.axis-text,.math-label {
  font-family:Georgia,serif;
  font-style:italic;
  font-size:21px;
  fill:#315b52;
}

.axis-text {
  font-size:17px;
  fill:#50736b;
}

.terrain figcaption {
  display:flex;
  align-items:center;
  border-top:1px solid #b7d2c0;
  padding:11px 1px 0;
  gap:18px;
  color:#466660;
  font-family:var(--mono);
  font-size:.74rem;
}

.fig-key,.scroll-hint {
  gap:7px;
}

.path-key {
  width:21px;
  position:relative;
  height:0;
  border-top:1px dashed var(--em);
}

.path-key:after {
  content:"";
  position:absolute;
  top:-2.6px;
  left:8px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--em);
}

.opt-key {
  width:9px;
  height:9px;
  border:1.5px solid var(--em);
  border-radius:50%;
  box-shadow:inset 0 0 0 2px #f3f9ef;
  background:var(--em);
}

.scroll-hint {
  margin-left:auto;
  color:#536f67;
}

.scroll-hint .icon {
  color:var(--em);
}

.section-head {
  justify-content:space-between;
  gap:18px;
}

.section-head h2,.directory-heading h2 {
  margin-top:10px;
}

.experiment-section {
  padding-block:clamp(37px,3.9vw,62px) 38px;
  scroll-margin-top:87px;
}

.section-intro {
  margin:9px 0 22px;
  font-size:1rem;
}

.sim-actions {
  gap:8px;
  align-self:flex-end;
  margin-bottom:1px;
}

.sim-actions .btn {
  min-height:37px;
  padding:8px 13px;
  font-size:.87rem;
}

.sim-actions .square-btn {
  width:37px;
  min-height:37px;
}

.console {
  display:grid;
  grid-template-columns:1.14fr 1fr;
  border:1px solid #bbd3c5;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
}

.network-pane,.curve-pane {
  min-width:0;
}

.network-pane {
  border-right:1px solid var(--line);
}

.panel-head {
  height:57px;
  justify-content:space-between;
  padding:8px 21px;
  border-bottom:1px solid var(--line);
  gap:10px;
}

.panel-head h3 {
  font-family:var(--sans);
  font-size:1.02rem;
  font-weight:600;
  letter-spacing:-.025em;
  display:flex;
  align-items:center;
  gap:9px;
}

.panel-head h3 .icon {
  color:var(--em);
}

select {
  border:1px solid #b9d2c4;
  border-radius:5px;
  background:#f7fbf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23395651' stroke-width='1.3'/%3E%3C/svg%3E") right 9px center/10px auto no-repeat;
  appearance:none;
  padding:6px 27px 6px 10px;
  font-size:.85rem;
}

.round {
  font-size:.72rem;
  border:1px solid #cfe1d6;
  border-radius:4px;
  background:#eef6f0;
  padding:5px 7px;
  color:#3c7262;
  letter-spacing:.05em;
}

.net-board {
  background-color:#f2f8f2;
  background-image:radial-gradient(#b9d0c2 .7px,transparent .85px);
  background-size:14px 14px;
}

.network-svg {
  width:100%;
  height:192px;
  display:block;
}

.server {
  cursor:pointer;
  outline-offset:1px;
}

.server:hover .halo,.server:focus-visible .halo {
  stroke:#167558;
  stroke-width:2;
}

.node-tag,#curve text {
  fill:#526d67;
  font-family:var(--mono);
  font-size:12px;
}

.node-tag {
  font-size:14px;
}

.board-foot,.curve-legend {
  justify-content:center;
  gap:16px;
  font-size:.75rem;
  color:#4e6860;
}

.board-foot {
  padding:1px 8px 14px;
}

.board-foot span,.curve-legend span {
  display:flex;
  align-items:center;
  gap:6px;
}

.dot-key {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#308b75;
}

.line-key {
  height:0;
  width:18px;
  display:inline-block;
  border-top:2px solid #89afa1;
}

.line-key.strong {
  border-color:#1b856b;
}

.line-key.dashed {
  border-top:2px dashed #579eae;
}

.load-controls {
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 20px;
  border-top:1px solid var(--line);
  min-height:62px;
}

.load-controls label {
  font-size:.88rem;
}

.load-controls select {
  font-family:var(--mono);
}

.load-controls input {
  min-width:50px;
  flex:1;
  accent-color:#257f65;
}

.load-controls output {
  font: .83rem var(--mono);
  white-space:nowrap;
  min-width:41px;
  text-align:right;
}

.curve-pane {
  display:flex;
  flex-direction:column;
}

.chart-wrap {
  padding:13px 19px 10px;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.chart-title {
  font-size:.78rem;
  color:#415e57;
}

.chart-title span {
  color:#61796f;
}

.chart-wrap svg {
  display:block;
  width:100%;
  height:143px;
  margin-top:1px;
}

.gridline {
  stroke:#d9e7de;
  stroke-dasharray:3 4;
}

.curve-legend {
  margin-top:4px;
}

.stats {
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:11px 12px;
  min-height:62px;
  background:#f8fbf8;
}

.stats>div {
  padding-left:10px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.stats>div+div {
  border-left:1px solid var(--line);
}

.stats span {
  font-size:.73rem;
  color:#506a60;
}

.stats strong {
  font-size:1rem;
  font-family:var(--mono);
  font-weight:500;
  color:var(--ink);
}

.method {
  margin-top:13px;
  color:#466a5d;
  font-size:.88rem;
  max-width:920px;
}

.method summary {
  width:fit-content;
  padding:5px 0;
}

.method p {
  font-size:.94rem;
  margin:8px 0 0;
}

.research-section {
  border-block:1px solid var(--line);
  background:var(--paper);
  padding:48px 0 54px;
}

.text-link,.paper-link {
  color:#216c55;
  border-bottom:1px solid #8bb6a2;
  padding:2px 0;
  font-weight:550;
  font-size:.89rem;
}

.text-link:hover,.paper-link:hover {
  color:#134857;
  border-color:#134857;
}

.research-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}

.research-card {
  background:#fcfdfa;
  border:1px solid var(--line);
  border-radius:7px;
  overflow:hidden;
  transition:border-color .2s,box-shadow .2s;
}

.research-card:hover {
  border-color:#7eac96;
  box-shadow:0 3px 12px #1648360b;
}

.research-art {
  display:block;
  width:100%;
  height:106px;
  background:#e0f0e4;
  color:#73a290;
}

.art-agents {
  background:#e3eff0;
  color:#5c9fa7;
}

.art-contour {
  background:#dcebe1;
  color:#6f9d86;
}

.research-card>div {
  padding:19px 20px 23px;
}

.research-card h3,.paper-row h3,.person-record h3,.alumni-row h3 {
  font-family:var(--serif);
  font-size:1.6rem;
  letter-spacing:-.043em;
}

.research-card p {
  margin-top:8px;
  font-size:.96rem;
}

.home-pubs {
  padding-block:48px 62px;
}

.home-pubs .section-head {
  margin-bottom:21px;
}

.paper-row {
  display:grid;
  grid-template-columns:70px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:23px 0;
  border-top:1px solid var(--line);
}

.paper-year {
  letter-spacing:.02em;
  color:#386c5b;
}

.venue {
  line-height:1.5;
  color:#38725e;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.075em;
  margin:0 0 5px;
}

.paper-title:hover {
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

.paper-row h3 {
  font-size:1.52rem;
}

.authors {
  font-size:.92rem;
  margin-top:6px;
}

.paper-link {
  white-space:nowrap;
}

.subhead {
  background:linear-gradient(110deg,#f3f8f1,var(--paper));
  border-bottom:1px solid var(--line);
  padding:54px 0 47px;
}

.subhead h1 {
  font-size:clamp(2.9rem,5.3vw,5rem);
  line-height:1.03;
  letter-spacing:-.058em;
  margin:17px 0 13px;
}

.subhead p {
  font-size:1.08rem;
  max-width:650px;
}

.page-body,.reading {
  padding-block:45px 70px;
}

.page-body>.research-grid {
  margin-top:0;
}

.feature-band {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:35px;
  padding:28px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:7px;
}

.feature-band h2,.directory-heading h2,.reading h2,.contact-grid h2 {
  font-size:clamp(1.9rem,3vw,2.6rem);
}

.feature-band .eyebrow {
  margin-bottom:8px;
}

.feature-band p {
  margin-top:7px;
}

.feature-band .btn {
  flex-shrink:0;
}

.source-line {
  justify-content:space-between;
  margin-bottom:23px;
  gap:12px;
  color:#4b695d;
}

.reading {
  max-width:840px;
}

.reading-art {
  margin:20px 0 28px;
}

.reading-art svg {
  height:142px;
  border-radius:6px;
}

.reading>p {
  font-size:1.1rem;
  margin-top:15px;
}

.minor-title {
  font:600 .78rem var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:30px 0 8px;
}

.reading>.btn {
  display:inline-flex;
  margin-top:15px;
}

.directory-heading {
  margin-bottom:24px;
}

.person-record {
  display:grid;
  grid-template-columns:140px 1fr;
  gap:25px;
  border-block:1px solid var(--line);
  padding:24px 0;
}

.person-record h3,.alumni-row h3 {
  font-size:2.2rem;
}

.person-record p {
  margin-bottom:7px;
}

.profile-art {
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:5px;
  background:#deeee1;
}

.profile-art svg {
  position:absolute;
  inset:0;
  height:100%;
  opacity:.44;
}

.profile-art span {
  position:relative;
  font:italic 3rem var(--serif);
  color:#306954;
}

.alumni-row {
  display:grid;
  grid-template-columns:110px 1fr 1.4fr;
  gap:22px;
  align-items:center;
  border-block:1px solid var(--line);
  padding:25px 0;
}

.grad-year {
  font:2rem var(--serif);
}

.grad-year small {
  font-size:.7rem;
  display:block;
  margin-top:5px;
  color:#4e6c5e;
}

.placement p {
  margin:4px 0 9px;
}

.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px;
}

.contact-grid article {
  background:#f7faf5;
  border:1px solid var(--line);
  padding:30px;
  border-radius:7px;
}

.contact-icon {
  display:inline-flex;
  padding:11px;
  border:1px solid #aac9b8;
  border-radius:50%;
  background:#e1f1e5;
  color:#216c55;
  margin-bottom:20px;
}

.contact-grid h2 {
  margin-bottom:12px;
}

.contact-mail {
  display:inline-block;
  font-size:clamp(1.03rem,1.8vw,1.45rem);
  color:var(--em);
  border-bottom:1px solid #aac9b8;
  margin:11px 0 18px;
  overflow-wrap:anywhere;
}

address {
  font-style:normal;
  line-height:1.7;
  color:var(--body);
  margin-bottom:18px;
}

footer {
  background:var(--ink);
  color:#eef7f2;
}

.footer-content {
  display:flex;
  align-items:center;
  gap:24px;
  padding-block:28px;
}

.footer-brand {
  gap:8px;
  font:1.65rem var(--serif);
  letter-spacing:-.04em;
}

.footer-brand img {
  width:32px;
}

.footer-content p {
  font-size:.85rem;
  color:#d7e9e3;
  line-height:1.6;
}

.footer-content>div:last-child {
  display:flex;
  gap:22px;
  margin-left:auto;
  font-size:.9rem;
}

.footer-content a:hover {
  text-decoration:underline;
}

/* Portraits, personal links and lab moments */
.profile-art.has-photo {
  align-self:start;
  height:auto;
  aspect-ratio:4/5;
}

.profile-art.has-photo img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* The photo replaces the initials; keep them out of layout and screen readers. */
.profile-art.has-photo>span,
.avatar-sm.has-photo>span {
  display:none;
}

.record-links {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 20px;
  margin-top:5px;
}

.alumni-person {
  display:flex;
  align-items:center;
  gap:15px;
  min-width:0;
}

.avatar-sm {
  position:relative;
  flex:none;
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  overflow:hidden;
  background:#deeee1;
  border:1px solid #cfe2d6;
}

.avatar-sm img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.avatar-sm>span {
  font:italic 1.15rem var(--serif);
  color:#306954;
}

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:23px;
}

.gallery-card {
  margin:0;
  overflow:hidden;
  background:#fcfdfa;
  border:1px solid var(--line);
  border-radius:7px;
  transition:border-color .2s,box-shadow .2s;
}

.gallery-card:hover {
  border-color:#7eac96;
  box-shadow:0 3px 12px #1648360b;
}

.gallery-frame {
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#e0f0e4;
}

.gallery-frame img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}

.gallery-card:hover .gallery-frame img {
  transform:scale(1.025);
}

/* A photo that failed to load leaves a quiet placeholder instead of a broken icon. */
.gallery-frame.is-missing {
  display:grid;
  place-items:center;
  background:repeating-linear-gradient(135deg,#e2efe6 0 14px,#d8e8de 14px 28px);
}

.gallery-frame.is-missing::after {
  content:"Photo coming soon";
  font:italic 1rem var(--serif);
  color:#3f6b5b;
  padding:0 18px;
  text-align:center;
}

.gallery-card figcaption {
  padding:15px 19px 20px;
}

.gallery-meta {
  font:600 .7rem var(--mono);
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#38725e;
}

.gallery-card h3 {
  font-family:var(--serif);
  font-size:1.32rem;
  letter-spacing:-.035em;
  margin-top:5px;
}

.gallery-caption {
  font-size:.92rem;
  margin-top:6px;
}

.gallery-credit {
  font-size:.8rem;
  color:#5a766c;
  margin-top:7px;
}

.home-moments {
  padding-block:0 62px;
}

.empty-state {
  padding:46px 24px;
  text-align:center;
  background:#f9fcf8;
  border:1px dashed #b9d4c5;
  border-radius:7px;
}

.empty-state h2 {
  font-size:1.6rem;
}

.empty-state p {
  margin-top:8px;
  color:#4b695d;
  font-size:.96rem;
}

@media(min-width:1550px) {
  .hero-inner {
    gap:48px;
  }
  .hero-copy h1 {
    font-size:4.8rem;
  }
}

@media(max-width:1050px) {
  .container {
    width:calc(100% - 64px);
  }
  .hero-inner {
    gap:11px;
  }
  .hero-copy h1 {
    font-size:clamp(2.8rem,4.85vw,3.35rem);
  }
  .hero-copy>p {
    max-width:418px;
  }
  .terrain figcaption {
    gap:12px;
    font-size:.69rem;
  }
  .panel-head {
    padding-inline:14px;
  }
  .research-grid {
    gap:13px;
  }
  .hero-actions .btn {
    padding-inline:12px;
  }
  .chart-wrap {
    padding-inline:12px;
  }
}

@media(max-width:1000px) {
  .topbar {
    height:63px;
  }
  .brand {
    font-size:1.6rem;
  }
  .brand img {
    width:34px;
    height:34px;
  }
  .menu-button {
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid #c2d7c9;
    border-radius:5px;
  }
  .header-inner {
    position:relative;
  }
  nav {
    display:none;
    position:absolute;
    top:calc(100% - 1px);
    left:calc(-0.5 * clamp(48px,9.5vw,152px));
    right:calc(-0.5 * clamp(48px,9.5vw,152px));
    height:auto;
    padding:9px 20px 18px;
    background:#fbfdf9;
    border-bottom:1px solid var(--line);
    box-shadow:0 8px 16px #163f360d;
    gap:0;
  }
  nav.open {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:2px 6px;
  }
  nav a,nav .nav-contact {
    min-height:43px;
    height:auto;
    border:0;
    border-radius:4px;
    padding:9px 12px;
  }
  nav a[aria-current] {
    background:#e5f3e9;
  }
  nav a[aria-current]::after {
    display:none;
  }
  .lang-switch {
    order:-1;
    grid-column:1/-1;
    justify-self:start;
    margin:0 0 8px -9px;
  }
  .lang-switch button {
    padding:9px 11px;
  }
}

@media(max-width:780px) {
  .container {
    width:calc(100% - 40px);
  }
  nav {
    left:-20px;
    right:-20px;
  }
  .hero-inner {
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding-block:30px;
  }
  .hero-copy h1 {
    font-size:clamp(2.03rem,4.8vw,2.75rem);
  }
  .hero-copy>p {
    font-size:.95rem;
  }
  .eyebrow {
    font-size:.69rem;
  }
  .hero-actions {
    gap:7px;
    margin-top:18px;
  }
  .hero-actions .btn {
    font-size:.78rem;
    padding:8px;
    gap:5px;
  }
  .terrain figcaption {
    flex-wrap:wrap;
    row-gap:6px;
  }
  .scroll-hint {
    margin-left:0;
  }
  .figure-label {
    font-size:.6rem;
  }
  .console {
    grid-template-columns:1fr 1fr;
  }
  .panel-head {
    gap:4px;
    padding-inline:10px;
  }
  .panel-head h3 {
    font-size:.88rem;
    gap:5px;
  }
  .panel-head h3 .icon {
    width:16px;
  }
  .network-svg {
    height:168px;
  }
  .load-controls {
    padding:9px;
    gap:5px;
  }
  .load-controls label {
    font-size:.8rem;
  }
  .stats {
    padding-inline:4px;
  }
  .stats>div {
    padding-left:6px;
  }
  .stats span {
    font-size:.69rem;
  }
  .research-card>div {
    padding:15px;
  }
  .research-card h3 {
    font-size:1.4rem;
  }
  .footer-content {
    flex-wrap:wrap;
  }
  .footer-content>div:last-child {
    margin-left:0;
  }
  .experiment-section {
    scroll-margin-top:73px;
  }
}

@media(max-width:650px) {
  .hero-inner {
    grid-template-columns:1fr;
    gap:13px;
    padding-block:28px 24px;
  }
  .hero-copy {
    padding:0;
  }
  .hero-copy h1 {
    font-size:clamp(2.62rem,8.6vw,3.8rem);
    margin:17px 0 13px;
    letter-spacing:-.06em;
  }
  .hero-copy>p {
    max-width:460px;
    font-size:1rem;
  }
  .hero-actions {
    margin-top:18px;
    gap:9px;
  }
  .hero-actions .btn {
    font-size:.88rem;
    min-height:42px;
    padding:9px 13px;
    gap:7px;
  }
  .terrain {
    width:min(100%,440px);
    justify-self:center;
  }
  .figure-label {
    font-size:.64rem;
  }
  .surface {
    width:100%;
    height:auto;
    max-height:280px;
  }
  .terrain figcaption {
    font-size:.69rem;
    gap:12px;
  }
  .scroll-hint {
    margin-left:auto;
  }
  .experiment-section {
    padding-block:32px 28px;
  }
  .section-head {
    align-items:flex-end;
    flex-wrap:wrap;
    gap:13px;
  }
  .section-head h2 {
    margin-top:8px;
  }
  .section-intro {
    margin:10px 0 16px;
  }
  .sim-actions {
    margin:0;
  }
  .console {
    grid-template-columns:1fr;
  }
  .network-pane {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .panel-head {
    height:53px;
    padding-inline:14px;
  }
  .panel-head h3 {
    font-size:1rem;
    gap:7px;
  }
  .panel-head h3 .icon {
    width:18px;
  }
  .network-svg {
    height:auto;
    max-height:225px;
  }
  .load-controls {
    padding:12px 14px;
    gap:9px;
    min-height:56px;
  }
  .load-controls label {
    font-size:.88rem;
  }
  .load-controls select {
    min-height:34px;
  }
  .chart-wrap {
    padding:12px 15px;
  }
  .chart-wrap svg {
    height:auto;
    max-height:165px;
  }
  .curve-legend {
    margin-top:8px;
  }
  .stats {
    min-height:63px;
  }
  .stats>div {
    padding-left:10px;
  }
  .stats span {
    font-size:.76rem;
  }
  .board-foot {
    padding-bottom:12px;
  }
  .stats strong {
    font-size:1.02rem;
  }
  .research-section,.home-pubs {
    padding-block:34px 38px;
  }
  .research-grid {
    grid-template-columns:1fr;
    margin-top:18px;
  }
  .research-card>div {
    padding:18px;
  }
  .research-card h3 {
    font-size:1.6rem;
  }
  .research-art {
    height:96px;
  }
  .paper-row {
    grid-template-columns:1fr auto;
    gap:7px 10px;
    padding:19px 0;
  }
  .paper-year {
    grid-column:1/-1;
  }
  .paper-row h3 {
    font-size:1.37rem;
  }
  .paper-link {
    font-size:.8rem;
  }
  .subhead {
    padding:34px 0 29px;
  }
  .subhead h1 {
    font-size:clamp(2.55rem,9vw,3.6rem);
  }
  .subhead p {
    font-size:1rem;
  }
  .page-body,.reading {
    padding-block:28px 44px;
  }
  .feature-band {
    align-items:flex-start;
    flex-direction:column;
    padding:20px;
    margin-top:24px;
  }
  .person-record {
    grid-template-columns:1fr;
    gap:16px;
  }
  .profile-art {
    width:110px;
    height:100px;
  }
  .alumni-row {
    grid-template-columns:65px 1fr;
    gap:15px;
  }
  .placement {
    grid-column:2;
  }
  .contact-grid {
    grid-template-columns:1fr;
    gap:16px;
  }
  .contact-grid article {
    padding:22px;
  }
  .footer-content {
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
  .source-line {
    flex-wrap:wrap;
  }
  .paper-row>div {
    min-width:0;
  }
  .reading .paper-link {
    align-self:center;
  }
}

@media(max-width:410px) {
  .container {
    width:calc(100% - 32px);
  }
  .hero-inner {
    padding-top:24px;
  }
  .terrain figcaption {
    font-size:.66rem;
  }
  .sim-actions .btn {
    font-size:.8rem;
  }
  .experiment-section>.section-head {
    align-items:center;
  }
  .section-head h2 {
    font-size:2.1rem;
  }
  .sim-actions {
    gap:5px;
  }
  .section-head {
    gap:8px;
  }
  .hero-actions .btn {
    padding-inline:10px;
  }
  .section-intro {
    font-size:.96rem;
  }
  .alumni-row {
    grid-template-columns:1fr;
  }
  .placement {
    grid-column:auto;
  }
}

@media(max-width:1050px) {
  .gallery-grid {
    gap:14px;
  }
}

@media(max-width:780px) {
  .gallery-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
  }
  .home-moments {
    padding-block:0 46px;
  }
  .gallery-card figcaption {
    padding:13px 16px 17px;
  }
  .gallery-card h3 {
    font-size:1.2rem;
  }
  .record-links {
    gap:3px 16px;
  }
}

@media(max-width:650px) {
  .avatar-sm {
    width:44px;
    height:44px;
  }
  .alumni-person {
    gap:12px;
  }
  .profile-art.has-photo {
    height:auto;
  }
}

@media(max-width:410px) {
  .gallery-grid {
    grid-template-columns:1fr;
  }
}

/* Language switch */
.lang-switch {
  display:inline-flex;
  align-items:center;
  gap:1px;
  margin-left:-5px;
}

.lang-switch button {
  padding:6px 9px;
  border:0;
  background:none;
  cursor:pointer;
  border-radius:999px;
  font-family:var(--mono);
  font-size:.74rem;
  line-height:1;
  letter-spacing:.08em;
  color:#79968a;
  transition:background .18s,color .18s;
}

.lang-switch button:hover {
  background:#eef7f1;
  color:#14563f;
}

.lang-switch button[aria-pressed="true"] {
  background:#e4f1e9;
  color:#124f3b;
  font-weight:600;
}

/* News */
.news-list {
  list-style:none;
  margin:0;
  padding:0;
}

.news-item {
  display:grid;
  grid-template-columns:126px minmax(0,1fr);
  gap:24px;
  align-items:baseline;
  padding:17px 0;
  border-top:1px solid var(--line);
}

.news-date {
  font-family:var(--mono);
  font-size:.74rem;
  line-height:1.5;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#3f7563;
}

.news-text {
  margin:0;
  font-size:1rem;
  line-height:1.62;
  color:#294546;
}

.news-text a {
  color:#1d604a;
  transition:color .16s;
}

.news-text a:hover {
  color:#134857;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

.news-link {
  color:#1d604a;
  transition:color .16s;
}

.news-link:hover {
  color:#134857;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

/* Honors and awards */
.honors-list {
  list-style:none;
  margin:0;
  padding:0;
}

.honor-item {
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:24px;
  padding:20px 0;
  border-top:1px solid var(--line);
}

.honor-year {
  font-family:var(--mono);
  font-size:.76rem;
  letter-spacing:.1em;
  color:#3f7563;
  padding-top:7px;
}

.honor-body h3 {
  font-family:var(--serif);
  font-size:1.5rem;
  letter-spacing:-.04em;
  line-height:1.25;
}

.honor-body p {
  margin-top:6px;
  font-size:.94rem;
  color:#33524a;
}

.honor-note {
  color:#4d6b60;
}

/* Chinese typography */
:lang(zh) {
  --serif:"Songti SC","Noto Serif SC","Source Han Serif SC",Georgia,serif;
  --sans:"PingFang SC","Noto Sans SC","Source Han Sans SC","Hiragino Sans GB",sans-serif;
  --mono:"SF Mono",Menlo,monospace;
}

:lang(zh) h1,:lang(zh) h2,:lang(zh) h3 {
  letter-spacing:0;
}

:lang(zh) .hero-copy h1 em {
  font-style:normal;
}

:lang(zh) .brand {
  letter-spacing:-.01em;
}

:lang(zh) .eyebrow,:lang(zh) .venue,:lang(zh) .figure-label,:lang(zh) .news-date,:lang(zh) .honor-year {
  letter-spacing:.06em;
}

:lang(zh) .gallery-frame.is-missing::after {
  content:"照片即将上线";
}

@media(max-width:1250px) and (min-width:1001px) {
  nav {
    gap:clamp(11px,1.4vw,20px);
  }
  nav a {
    font-size:.87rem;
  }
  nav .nav-contact {
    padding:8px 12px;
  }
}

@media(max-width:780px) {
  .news-item {
    grid-template-columns:1fr;
    gap:4px;
    padding:15px 0;
  }
  .honor-item {
    grid-template-columns:74px minmax(0,1fr);
    gap:16px;
  }
  .honor-body h3 {
    font-size:1.3rem;
  }
}

@media(max-width:410px) {
  .honor-item {
    grid-template-columns:1fr;
    gap:3px;
  }
  .honor-year {
    padding-top:0;
  }
}

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

