:root {
  --ink: #1c2430;
  --muted: #5c6a76;
  --paper: #e7eef1;
  --sheet: #f5f8f9;
  --line: #c5d2d8;
  --accent: #2f6b52;
  --night: #10161c;
  --star: #f3efe6;
  --star-dim: rgba(243, 239, 230, 0.66);
  --max: 72rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --song: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color-scheme: light;
}

body.night {
  background: var(--night);
  color: var(--star);
  color-scheme: dark;
  --accent: #86b59d;
  --line: rgba(243, 239, 230, 0.16);
  --muted: var(--star-dim);
  --sheet: #171e26;
}

body.night .mast {
  background: rgba(16, 22, 28, 0.96);
}

img, canvas { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(231, 238, 241, 0.9);
  backdrop-filter: blur(14px);
}

.mark {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
}

.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.mast nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
}

.mast nav a[aria-current="page"] {
  color: inherit;
  box-shadow: inset 0 -1px 0 currentColor;
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--song);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
}

h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

h2 .en, .sub {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

h2 .en {
  display: inline-block;
  margin-left: 0.55rem;
  font-size: 0.46em;
  letter-spacing: 0;
  vertical-align: 0.28em;
}

.sub {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 1.5rem 3rem;
  align-items: start;
  padding: 2.2rem 0 0.4rem;
}

.hero > div { min-width: 0; }

.portrait {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
}

.statement {
  margin-top: 1.15rem;
  padding-bottom: 0.4rem;
}

.statement .zh {
  font-family: var(--song);
  font-size: 1.18rem;
  line-height: 1.85;
  margin: 0 0 1rem;
}

.statement .en {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.profile-copy {
  margin-top: 0;
  color: var(--ink);
}

.profile-copy > p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.profile-meta {
  margin: 0 0 1.35rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.profile-meta div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-meta dt {
  font-family: var(--sans);
  color: var(--muted);
}

.profile-meta dd { margin: 0; }

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.2rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.35s ease;
}

.index a:hover { padding-left: 0.4rem; }

.index a:hover .index-title { color: var(--accent); }

.index-no {
  font-family: var(--sans);
  color: var(--accent);
  padding-top: 0.2rem;
}

.index-title {
  font-family: var(--song);
  font-size: 1.35rem;
}

.index small {
  grid-column: 2;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.92rem;
}

.film {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 2.2rem 0 3rem;
}

.film a {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.film img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: center;
  transition: transform 1.1s ease;
}

.film a:hover img { transform: scale(1.045); }

.film span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.home-portals {
  padding: 3.5rem 0 4.5rem;
}

.home-portals-head {
  margin-bottom: 1rem;
}

.home-portals-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

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

.work-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.work-no,
.work-action {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
}

.work-copy {
  display: block;
}

.work-copy strong {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.work-copy > span {
  display: block;
  max-width: 42rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.work-action { text-transform: uppercase; letter-spacing: 0.05em; }

.work-item:hover .work-copy strong { color: var(--accent); }

.page-head { padding: 2.4rem 0 0.4rem; }

.lead {
  max-width: 40rem;
  margin: 0.4rem 0 0;
}

.lead.zh {
  font-family: var(--song);
  line-height: 1.85;
}

.project-intro {
  max-width: 51rem;
  margin-top: 0.65rem;
  color: var(--muted);
}

.project-intro p { margin: 0.5rem 0 0; }

.project-intro strong {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
}

.block {
  padding: 2.6rem 0 3rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.studio, .bench {
  display: grid;
  gap: 1.6rem 2rem;
  align-items: start;
  margin-top: 1.4rem;
}

.studio { grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr); }
.bench { grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.15fr); }

.frame {
  background: var(--night);
  padding: 0.7rem;
}

.frame canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  background: #0c1116;
}

.frame p, .controls p, .readout p { margin: 0.45rem 0 0; }

.caption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--star-dim);
}

.controls, .readout {
  background: var(--sheet);
  padding: 1rem 1rem 1.1rem;
}

body.night .controls { color: var(--star); }

label.slider {
  display: block;
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

label.slider span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.presets button, .text-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}

.presets button[aria-pressed="true"] {
  border-color: currentColor;
}

.formula {
  font-family: "Iowan Old Style", Palatino, serif;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0.8rem 0 0;
  overflow-wrap: anywhere;
}

.formula small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.78rem;
}

.eq {
  font-style: italic;
  margin: 0.15rem 0;
}

.eq strong {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.scale {
  position: relative;
  height: 3.2rem;
  margin: 1.3rem 0 0.4rem;
}

.scale-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.15rem;
  height: 1px;
  background: var(--line);
}

.tick, .now {
  position: absolute;
  top: 0.85rem;
  width: 1px;
  height: 12px;
  background: var(--muted);
}

.now {
  width: 2px;
  height: 16px;
  top: 0.7rem;
  background: var(--accent);
}

.tick i, .now i {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--muted);
}

.tick i { bottom: 14px; }
.now i { top: 18px; color: var(--accent); }

.factors {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.factors th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
}

.factors th, .factors td {
  padding: 0.38rem 0.4rem 0.38rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.note {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.papers { list-style: none; margin: 1.5rem 0 3rem; padding: 0; }

.papers li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.papers li:last-child { border-bottom: 1px solid var(--line); }

.papers h2 { font-size: 1.45rem; }

.status {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.3rem;
}

.papers p { margin: 0.45rem 0; }

.papers a.download {
  font-family: var(--sans);
  color: var(--accent);
}

.sky-intro { padding: 2.2rem 0 0.5rem; max-width: 40rem; }

.sky-intro .zh {
  font-family: var(--song);
  font-size: 1.12rem;
  line-height: 1.85;
}

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 22rem);
  gap: 1.25rem 3rem;
  align-items: start;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}

.shot, .plate figure, .film a { min-width: 0; }

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0c1116;
  cursor: zoom-in;
  overflow: hidden;
}

.shot img { display: block; width: 100%; }

.has-js .shot img { transform: scale(1.06); }

.credit, .where, .en-name, .poem footer {
  font-family: var(--sans);
  color: var(--star-dim);
}

.credit { margin: 0.45rem 0 0; font-size: 0.8rem; }

.catalog {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

.label h2 { margin: 0.2rem 0 0; font-size: 1.85rem; }

@media (min-width: 861px) {
  .label {
    position: sticky;
    top: 5.2rem;
    align-self: start;
  }
}

.block,
.plate,
.page-head {
  scroll-margin-top: 5.2rem;
}

.en-name, .where { margin: 0.2rem 0 0; font-size: 0.95rem; }

.poem {
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
}

.poem p {
  margin: 0;
  font-family: var(--song);
  font-size: 1.35rem;
  line-height: 1.7;
  font-weight: 500;
}

.poem footer { margin-top: 0.35rem; font-size: 0.85rem; }

.colophon {
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}

dialog::backdrop { background: rgba(8, 10, 12, 0.88); }

dialog img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

dialog .text-btn {
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  color: var(--star);
  border-color: rgba(243, 239, 230, 0.4);
  background: rgba(16, 22, 28, 0.7);
}

@media (max-width: 860px) {
  .mast { align-items: flex-start; }
  .mast nav { width: 100%; }
  .hero, .studio, .bench, .plate { grid-template-columns: minmax(0, 1fr); }
  .portrait { justify-self: start; width: min(14rem, 70%); }
  .film img { height: 9.5rem; }
  .work-item { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .work-action { grid-column: 2; }
  .label { padding-bottom: 0.2rem; }
  .sub { font-size: 1rem; }
}

.opening {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 32rem;
  overflow: hidden;
  background: #0c1116;
  color: var(--star);
}

.opening-shift {
  position: absolute;
  left: 0;
  right: 0;
  top: -10%;
  height: 124%;
}

.opening-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  animation: ken 34s ease-in-out infinite alternate;
}

.opening-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.4rem;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.08) 46%, rgba(8, 10, 14, 0.28) 100%);
}

.opening h1 {
  color: var(--star);
  font-size: clamp(3.2rem, 8vw, 6rem);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.home .hero { padding-top: 4.6rem; }

.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2f6b52;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 8;
  pointer-events: none;
}

body.night .scroll-line { background: #86b59d; }

.opening .kicker,
.opening .sub { color: rgba(243, 239, 230, 0.78); }

.opening-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.opening-lines {
  font-size: clamp(0.98rem, 1.7vw, 1.2rem);
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.86);
}

.opening-lines p { margin: 0.08rem 0; }

.opening-name {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
}

.opening-home {
  margin: 0.05rem 0 0;
  font-family: var(--song);
  color: rgba(243, 239, 230, 0.76);
}

.mast-over {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  border-bottom: 0;
  color: var(--star);
  background: linear-gradient(to bottom, rgba(8, 10, 14, 0.5), transparent);
  backdrop-filter: none;
  padding: 0.85rem 0 1.4rem;
}

.mast-over .mast-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
}

.mast-over .mast-bar-home { justify-content: flex-end; }

.mast-over a,
.mast-over nav a { color: rgba(243, 239, 230, 0.82); }

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

.mast-over.on-paper {
  color: var(--ink);
  background: #e7eef1;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.mast-over.on-paper a,
.mast-over.on-paper nav a { color: var(--muted); }

.mast-over.on-paper .mark,
.mast-over.on-paper nav a[aria-current="page"] { color: var(--ink); }

.orbit-stage {
  margin-top: 1.5rem;
  background: #0c1116;
  position: relative;
}

.orbit-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.5;
  background: #0c1116;
}

.orbit-stage .caption { padding: 0.15rem 0.9rem 0.75rem; }

.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.has-js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.07) translate3d(-1.2%, -0.6%, 0); }
}

@media (max-width: 860px) {
  .opening { min-height: 28rem; }
  .opening-veil { padding-bottom: 1.8rem; }
  .film img { height: 11rem; }
  .orbit-stage canvas { aspect-ratio: 4 / 5; }
  .mast-over .mast-bar nav { width: 100%; }
  .block, .plate, .page-head { scroll-margin-top: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening-photo { animation: none; }
  .film img { transition: none; }
  .index a { transition: none; }
  .has-js .shot img { transform: none; }
  .scroll-line { display: none; }
  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* The astrophotography gallery follows the white 16:9 presentation layout. */
body.astro {
  --paper: #ffffff;
  --sheet: #ffffff;
  --ink: #111111;
  --muted: #525252;
  --line: #dedede;
  --accent: #2f6b52;
  background: #ffffff;
  color: var(--ink);
}

body.astro .wrap {
  width: min(76rem, calc(100% - 2.5rem));
}

body.astro .mast { background: rgba(255, 255, 255, 0.94); }

.sky-intro {
  max-width: 58rem;
  padding: 3.4rem 0 2.5rem;
}

.sky-intro h1 { margin-bottom: 1.1rem; }

.sky-intro > p:not(.kicker) {
  max-width: 52rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.astro-gallery {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin: 1rem 0 4.5rem;
}

.astro-plate {
  display: grid;
  grid-template-columns: 46% minmax(0, 54%);
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
  color: #111111;
  border: 1px solid #e1e1e1;
  box-shadow: 0 1.2rem 3.5rem rgba(20, 24, 30, 0.07);
  scroll-margin-top: 5.2rem;
}

.astro-plate figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0c1116;
}

.astro-plate .shot {
  height: 100%;
  cursor: zoom-in;
}

.astro-plate .shot img,
.has-js .astro-plate .shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none;
}

.astro-copy {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.astro-meta {
  position: absolute;
  z-index: 1;
  top: 2.6%;
  left: 0;
  right: 0;
  padding: 0 1.45rem;
  font-family: var(--sans);
}

.astro-meta h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.65vw, 1.22rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.astro-meta h2 span {
  margin-left: 0.22em;
  font-weight: 600;
}

.astro-meta p {
  margin: 0.08rem 0 0;
  font-size: clamp(0.58rem, 1.4vw, 1rem);
  line-height: 1.25;
}

.calligraphy {
  position: absolute;
  top: 9.5%;
  left: 15%;
  width: 70%;
  height: 72%;
  object-fit: contain;
  object-position: center;
}

.translation {
  position: absolute;
  left: 0;
  bottom: 3.8%;
  width: 100%;
  margin: 0;
  padding: 0 1.45rem;
  border: 0;
  font-size: clamp(0.55rem, 1.32vw, 0.97rem);
  line-height: 1.24;
}

.translation { text-align: center; }

.translation p { margin: 0; font-weight: 650; }

.translation footer {
  margin-top: 0.12rem;
  font-family: var(--serif);
  color: #111111;
  font-size: 0.9em;
}

.translation cite { font-style: italic; }

@media (max-width: 700px) {
  body.astro .wrap { width: min(100% - 1.25rem, 40rem); }

  .sky-intro { padding: 2.4rem 0 1.8rem; }

  .astro-gallery { gap: 2rem; margin-bottom: 3rem; }

  .astro-plate {
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: auto;
  }

  .astro-plate figure { height: min(145vw, 40rem); }

  .astro-copy {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 35rem;
    padding: 1rem;
  }

  .astro-meta,
  .calligraphy,
  .translation {
    position: static;
  }

  .astro-meta { padding: 0; }

  .astro-meta h2 { font-size: 1.1rem; }

  .astro-meta h2 span {
    display: block;
    margin: 0.12rem 0 0;
  }

  .astro-meta p { margin-top: 0.25rem; font-size: 0.9rem; }

  .calligraphy {
    width: min(58%, 15.5rem);
    height: 25rem;
    margin: 1rem auto 0.75rem;
  }

  .translation {
    width: auto;
    margin-top: auto;
    padding: 0;
    font-size: 0.9rem;
  }
}

/* Calm editorial refinement: interactions never change surrounding geometry. */
:root {
  --ink: #18222b;
  --muted: #5f6870;
  --paper: #ffffff;
  --sheet: #ffffff;
  --line: #d9dde0;
  --accent: #2f6b52;
  --max: 76rem;
}

html { scrollbar-gutter: stable; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a,
button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.mast {
  min-height: 4.1rem;
  padding: 1.05rem 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(24, 34, 43, 0.03);
}

.mast nav { gap: 0.35rem 1.4rem; }

.mast nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

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

.mast-over {
  min-height: 4.1rem;
  padding: 0.85rem 0 1.4rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.mast-over a,
.mast-over nav a,
.mast-over nav a[aria-current="page"] {
  color: var(--ink);
  text-shadow: none;
}

.mast-over.on-paper {
  padding: 0.85rem 0 1.4rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(120%);
}

.mast-over.on-paper a,
.mast-over.on-paper nav a { color: var(--muted); text-shadow: none; }

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

.opening-veil {
  background:
    linear-gradient(90deg, rgba(6, 10, 15, 0.2) 0%, transparent 58%),
    linear-gradient(to top, rgba(6, 10, 15, 0.86) 0%, rgba(6, 10, 15, 0.12) 53%, rgba(6, 10, 15, 0.3) 100%);
}

.opening-kicker {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
}

.opening-lines {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.opening-name { margin-top: 1.65rem; }

.opening-home {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.home .hero {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin: 4.5rem 0 3.5rem;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1.3rem 4rem rgba(34, 41, 47, 0.06);
}

.portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 0.8rem 2.5rem rgba(20, 27, 33, 0.13);
}

.profile-copy > p {
  max-width: 47rem;
  font-size: 1.01rem;
  line-height: 1.76;
}

.profile-meta { margin-bottom: 1.7rem; }

.profile-meta div { padding: 0.7rem 0; }

.profile-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.index { border-color: var(--line); }

.index a {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  padding: 1.3rem 0;
  transition: color 180ms ease, background-color 180ms ease;
}

.index a::after {
  content: "↗";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  padding-right: 0.35rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.index a:hover {
  padding-left: 0;
  background: #f7f8f8;
}

.index-title { font-size: 1.45rem; }

.film { gap: 1.2rem; padding: 3rem 0 4.5rem; }

.film img {
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.film span {
  margin-top: 0.65rem;
  letter-spacing: 0.025em;
}

.page-head { max-width: 52rem; padding: 4.3rem 0 2rem; }

.page-head .lead { margin-top: 0.9rem; color: var(--muted); }

.block {
  margin: 1.5rem 0 3rem;
  padding: clamp(1.25rem, 3.5vw, 2.8rem);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1.1rem 3.5rem rgba(34, 41, 47, 0.045);
}

.project-intro {
  max-width: 55rem;
  margin-top: 0.8rem;
  line-height: 1.72;
}

.studio,
.bench { gap: clamp(1.25rem, 3vw, 2.4rem); margin-top: 2rem; }

.frame,
.orbit-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1rem 2.8rem rgba(13, 18, 23, 0.14);
}

.controls,
.readout {
  border: 1px solid var(--line);
  background: var(--sheet);
  padding: 1.25rem;
}

.readout {
  min-height: 29rem;
  overflow-x: auto;
}

label.slider { margin-bottom: 1.05rem; }

label.slider > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 1.45rem;
}

label.slider > span > span {
  display: inline-block;
  min-width: 7.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  appearance: none;
  display: block;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--sheet);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

input[type="range"]::-moz-range-thumb {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--sheet);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.presets { gap: 0.5rem; margin-bottom: 1.35rem; }

.presets button,
.text-btn {
  min-height: 2rem;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
}

.presets button:hover { border-color: var(--ink); }

.presets button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--sheet);
}

.formula {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.eq strong {
  display: inline-block;
  min-width: 3.2ch;
  font-variant-numeric: tabular-nums;
}

.orbit-stage .caption {
  height: 2.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  overflow: auto;
}

.scale { min-height: 3.2rem; }

.factors {
  table-layout: fixed;
  min-width: 31rem;
  font-variant-numeric: tabular-nums;
}

.factors th:nth-child(1) { width: 20%; }
.factors th:nth-child(2) { width: 19%; }
.factors th:nth-child(3) { width: 33%; }
.factors th:nth-child(4),
.factors th:nth-child(5) { width: 14%; }

#limit {
  height: 3.2rem;
  overflow: auto;
}

.factors tbody tr { height: 3.15rem; }

.papers { display: grid; gap: 1rem; }

.papers li,
.papers li:last-child {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: #ffffff;
}

.papers h2 { max-width: 60rem; line-height: 1.28; }

.has-js .reveal,
.has-js .reveal.in {
  opacity: 1;
  transform: none;
  transition: none;
}

.shot img { transition: none; }

dialog {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 3rem;
  overflow: hidden;
}

dialog[open] {
  display: grid;
  place-items: center;
}

dialog img {
  grid-area: 1 / 1;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.38);
}

body.astro .mast { background: rgba(255, 255, 255, 0.96); }

.astro-plate {
  border-color: #e6e3de;
  box-shadow: 0 1.5rem 4.5rem rgba(20, 24, 30, 0.08);
}

@media (max-width: 860px) {
  .mast nav { gap: 0.35rem 0.85rem; }

  .mast nav a { font-size: 0.74rem; }

  body.home .hero {
    grid-template-columns: minmax(0, 1fr);
    margin: 2.2rem 0;
    padding: 1.25rem;
  }

  .portrait { width: min(19rem, 78%); }

  .profile-meta div { grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr); }

  .film { gap: 0.6rem; padding-top: 2rem; }

  .film img { height: auto; aspect-ratio: 2 / 3; }

  .block { margin: 1rem 0 2rem; }

  .readout { min-height: 30rem; }

  .orbit-stage .caption { height: 4.4rem; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 1.25rem)); }

  .mast nav {
    gap: 0.25rem 0.65rem;
    justify-content: space-between;
  }

  .mast nav a {
    font-size: 0.65rem;
    letter-spacing: 0.025em;
  }

  .opening-veil { padding-bottom: 1.5rem; }

  .opening-lines { line-height: 1.38; }

  .profile-meta div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .index a { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }

  .index-title { font-size: 1.18rem; }

  .index small { font-size: 0.8rem; }

  .film { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

  .film img { aspect-ratio: 4 / 5; }

  .page-head { padding: 2.7rem 0 1.2rem; }

  .controls,
  .readout { padding: 1rem; }

  label.slider > span > span { min-width: 6.7rem; }

  dialog { padding: 2.5rem 0.7rem 0.7rem; }
}

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

@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 160ms; }

/* Borderless editorial layout: hierarchy comes from space and type, not rules. */
.mast,
.mast-over,
.mast-over.on-paper {
  border-bottom: 0;
}

.mast { box-shadow: 0 0.8rem 2.5rem rgba(24, 34, 43, 0.045); }

.mast nav a[aria-current="page"],
.mast-over nav a[aria-current="page"] {
  position: relative;
  box-shadow: none;
  color: var(--accent);
}

.mast nav a[aria-current="page"]::after,
.mast-over nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.48rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

body.home .hero,
.block {
  border: 0;
  box-shadow: none;
}

body.home .hero { padding-inline: 0; }

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

.profile-meta div {
  display: block;
  padding: 0;
  border: 0;
}

.profile-meta dt { margin-bottom: 0.3rem; }

.index {
  display: grid;
  gap: 0.25rem;
  border: 0;
}

.index a { border: 0; }

.block {
  padding-inline: 0;
  background: #ffffff;
}

.frame,
.orbit-stage,
.controls,
.readout {
  border: 0;
}

.controls,
.readout { background: #f6f9f7; }

.formula {
  padding-top: 0.35rem;
  border-top: 0;
}

.presets button,
.text-btn {
  border: 0;
  background: #eaf1ed;
}

.presets button:hover { border-color: transparent; background: #dfeae4; }

.factors {
  border-collapse: separate;
  border-spacing: 0 0.28rem;
}

.factors th,
.factors td {
  border: 0;
}

.factors td { background: rgba(255, 255, 255, 0.72); }

.factors td:first-child { padding-left: 0.55rem; }

.scale-track {
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8f0eb, #a9c7b7);
}

.papers { gap: 2.7rem; }

.papers li,
.papers li:last-child {
  padding: 0;
  border: 0;
  background: #ffffff;
}

.astro-plate { border: 0; }

.colophon {
  padding-top: 2.2rem;
  border-top: 0;
}

.scroll-line { display: none; }

dialog .text-btn {
  color: #ffffff;
  background: rgba(16, 22, 28, 0.78);
}

@media (max-width: 700px) {
  .profile-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .profile-meta div { padding-bottom: 0.3rem; }
}

/* Minimal editorial finish. */
body {
  background: #ffffff;
  font-size: 1rem;
  line-height: 1.62;
}

h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); }

.mast,
.mast-over,
.mast-over.on-paper {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  backdrop-filter: none;
}

.mast nav a[aria-current="page"],
.mast-over nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.38rem;
}

.mast nav a[aria-current="page"]::after,
.mast-over nav a[aria-current="page"]::after { display: none; }

.opening {
  height: 76vh;
  height: 76svh;
  max-height: 48rem;
}

.opening-shift {
  top: 0;
  height: 100%;
}

.opening-photo { animation: none; }

.opening-veil {
  padding-bottom: 2.5rem;
  background: linear-gradient(to top, rgba(6, 10, 15, 0.78), rgba(6, 10, 15, 0.04) 62%);
}

.opening-kicker {
  max-width: 16ch;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.045em;
}

body.home .hero {
  margin: 3.5rem 0 2.5rem;
  padding-block: 0;
}

.portrait { box-shadow: none; }

.page-head { padding: 3.5rem 0 1.5rem; }

.block {
  margin: 0;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.frame,
.orbit-stage { box-shadow: none; }

.controls,
.readout {
  padding-inline: 0;
  background: #ffffff;
}

.presets button,
.text-btn {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.presets button:hover { background: transparent; border-color: var(--ink); }

.presets button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.scale-track {
  height: 1px;
  border-radius: 0;
  background: var(--line);
}

.factors {
  border-collapse: collapse;
  border-spacing: 0;
}

.factors td { background: transparent; }

.papers { gap: 0; }

.papers li,
.papers li:last-child {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.papers li:last-child { border-bottom: 1px solid var(--line); }

.astro-gallery { gap: 3rem; }

.astro-plate { box-shadow: none; }

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

::view-transition-old(root),
::view-transition-new(root) { animation: none; }

@media (max-width: 860px) {
  .opening {
    height: 70vh;
    height: 70svh;
  }
}

/* Home page: image-led introduction with a compact academic profile. */
body.home {
  --home-rule: rgba(255, 255, 255, 0.28);
  --home-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --home-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: #ffffff;
  font-family: var(--home-sans);
}

body.home .wrap { width: min(68rem, calc(100% - 3rem)); }

body.home .mast-over {
  min-height: 0;
  padding: 1.15rem 0 1.35rem;
  border: 0;
  background: linear-gradient(to bottom, rgba(4, 7, 11, 0.62), transparent);
}

body.home .mast-over .mast-bar-home {
  justify-content: space-between;
  align-items: center;
}

body.home .mast-over .mark,
body.home .mast-over nav a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.28);
}

body.home .mast-over .mark {
  font-family: var(--home-sans);
  font-size: 0.96rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

body.home .mast-over nav a {
  font-family: var(--home-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.home .mast-over nav a:hover { color: #ffffff; }

body.home .mast-over.on-paper {
  padding: 1rem 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.97);
}

body.home .mast-over.on-paper .mark { color: var(--ink); text-shadow: none; }

body.home .mast-over.on-paper nav a { color: var(--muted); text-shadow: none; }

body.home .opening {
  height: 80vh;
  height: 80svh;
  max-height: 52rem;
  min-height: 39rem;
}

body.home .opening-shift {
  top: 0;
  height: 100%;
  z-index: 0;
}

body.home .opening-photo {
  position: absolute;
  inset: 0;
  object-position: center 44%;
  filter: saturate(0.78) brightness(0.82);
  transform: translate3d(100%, 0, 0);
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

body.home .opening-photo.is-active {
  z-index: 2;
  transform: translate3d(0, 0, 0);
}

body.home .opening-photo.is-leaving {
  z-index: 1;
  transform: translate3d(-100%, 0, 0);
}

body.home .opening-veil {
  display: block;
  padding: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.48) 0%, rgba(4, 7, 11, 0.08) 58%),
    linear-gradient(to top, rgba(4, 7, 11, 0.84) 0%, rgba(4, 7, 11, 0.08) 58%, rgba(4, 7, 11, 0.26) 100%);
}

.opening-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  padding-top: 6.5rem;
  padding-bottom: 1.75rem;
}

.opening-intro {
  align-self: end;
  max-width: 58rem;
  padding-bottom: clamp(1.75rem, 4vh, 3rem);
}

body.home .opening-kicker {
  max-width: none;
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--home-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-transform: none;
}

body.home .opening h1 {
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-family: var(--home-serif);
  font-size: clamp(2.8rem, 4.7vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 0.98;
  text-shadow: 0 0.4rem 2.5rem rgba(0, 0, 0, 0.28);
}

body.home .opening h1 span { display: block; }

body.home .opening h1 span:first-child { white-space: nowrap; }

.opening-summary {
  max-width: 38rem;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.79);
  font-family: var(--home-sans);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.52;
}

.opening-paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  max-width: 58rem;
  margin-top: 1.35rem;
}

.opening-paths a {
  display: block;
  padding: 0;
  color: #ffffff;
  text-decoration: none;
}

.opening-paths p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--home-sans);
  font-size: 0.98rem;
  line-height: 1.35;
}

.opening-paths strong {
  display: inline-block;
  font-family: var(--home-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}

.opening-paths a:hover strong { opacity: 0.68; }

.opening-paths small {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.59);
  font-family: var(--home-sans);
  font-size: 0.8rem;
  letter-spacing: 0.025em;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.18rem;
  margin-top: 0.65rem;
}

.banner-dot {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.banner-dot::before {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background-color 180ms ease, transform 180ms ease;
}

.banner-dot:hover::before { background: rgba(255, 255, 255, 0.75); }

.banner-dot.is-current::before {
  background: #ffffff;
  transform: scale(1.4);
}

.banner-dot:focus-visible {
  outline-color: #ffffff;
  outline-offset: 0;
}

.home-main { background: #ffffff; }

.home-profile {
  display: grid;
  grid-template-columns: minmax(13rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 4.75rem);
  align-items: start;
  padding-top: clamp(3.75rem, 6vw, 5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

.profile-card .portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: none;
}

body.home .profile-meta {
  display: block;
  margin: 1.1rem 0 0;
  border: 0;
}

body.home .profile-meta div {
  display: block;
  padding: 0;
  border: 0;
}

body.home .profile-meta div + div { margin-top: 0.8rem; }

body.home .profile-meta dt {
  margin: 0 0 0.16rem;
  color: #7b858e;
  font-family: var(--home-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.home .profile-meta dd {
  color: #38434c;
  font-family: var(--home-sans);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section-label {
  margin: 0 0 1.35rem;
  color: #77818a;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-story { padding-top: 0.1rem; }

.profile-story h2 {
  max-width: 20ch;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  font-family: var(--home-serif);
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.profile-story > p:not(.section-label) {
  max-width: 42rem;
  margin: 0 0 0.9rem;
  color: #56616a;
  font-family: var(--home-sans);
  font-size: 1.03rem;
  line-height: 1.68;
}

.home-work {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3.75rem, 6vw, 5rem);
  border: 0;
}

.home-work-head {
  margin-bottom: 1.8rem;
}

.home-work-head h2 {
  margin: 0;
  font-family: var(--home-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.home-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  border: 0;
}

.home-route {
  display: flex;
  min-height: 10.5rem;
  flex-direction: column;
  padding: 0;
  text-decoration: none;
}

.home-route + .home-route {
  padding-left: 0;
  border: 0;
}

.home-route strong {
  font-family: var(--home-sans);
  font-size: clamp(1.38rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.home-route p {
  max-width: 22rem;
  margin: 0.65rem 0 1.25rem;
  color: var(--muted);
  font-family: var(--home-sans);
  font-size: 0.96rem;
  line-height: 1.62;
}

.route-action {
  margin-top: auto;
  color: #38434c;
  font-family: var(--home-sans);
  font-size: 0.84rem;
  letter-spacing: 0.025em;
}

.home-route:hover .route-action { opacity: 0.58; }

body.home .colophon {
  border: 0;
  padding-bottom: 1.75rem;
  color: #7b858e;
  font-family: var(--home-sans);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

@media (max-width: 860px) {
  body.home .mast-over .mast-bar nav { width: auto; }

  body.home .opening {
    height: 84vh;
    height: 84svh;
  }

  .home-profile { gap: 2.5rem; }

  .profile-story h2 { font-size: clamp(2.15rem, 5.7vw, 3rem); }

  .home-route,
  .home-route + .home-route { padding: 0; }
}

@media (max-width: 700px) {
  body.home .wrap { width: min(68rem, calc(100% - 1.5rem)); }

  body.home .mast-over { padding: 0.9rem 0 1.1rem; }

  body.home .mast-over .mark { font-size: 0.9rem; }

  body.home .mast-over nav { gap: 0.3rem 0.8rem; }

  body.home .mast-over nav a { font-size: 0.7rem; letter-spacing: 0.01em; }

  body.home .opening { min-height: 38rem; }

  .opening-layout { padding-top: 5.5rem; padding-bottom: 1.1rem; }

  .opening-intro { padding-bottom: 1.5rem; }

  body.home .opening h1 {
    font-size: clamp(2.4rem, 9.5vw, 3.2rem);
    line-height: 0.98;
  }

  body.home .opening h1 span:first-child { white-space: normal; }

  .opening-summary { max-width: 31rem; font-size: 0.96rem; }

  .opening-paths { grid-template-columns: minmax(0, 1fr); }

  .opening-paths a,
  .opening-paths a + a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 1rem;
    padding: 0;
    border: 0;
  }

  .opening-paths { gap: 0.6rem; }

  .opening-paths strong { font-size: 0.9rem; }

  .opening-paths small { margin: 0; font-size: 0.75rem; text-align: right; }

  .banner-dots { margin-top: 0.45rem; }

  .home-profile {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 3.25rem;
    padding-bottom: 2.25rem;
  }

  .profile-card {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
  }

  body.home .profile-meta { margin-top: 0; }

  .profile-story h2 { margin-bottom: 1.5rem; }

  .home-routes { grid-template-columns: minmax(0, 1fr); }

  .home-route,
  .home-route + .home-route {
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .home-route + .home-route { margin-top: 2rem; }

  .home-route p { margin: 0.45rem 0 1rem; }
}

@media (max-width: 430px) {
  body.home .mast-over .mark { display: none; }

  body.home .mast-over .mast-bar-home { justify-content: flex-end; }

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

  .profile-card .portrait { width: min(13rem, 68vw); }
}

@media (prefers-reduced-motion: reduce) {
  body.home .opening-photo { transition: none; }
}

/* Shared navigation and line-free page structure. */
.mast {
  display: block;
  border: 0;
}

.mast .mast-bar {
  display: flex;
  width: min(68rem, calc(100% - 3rem));
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
}

.mast .mark {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mast nav {
  width: auto;
  gap: 0.35rem 1.35rem;
}

.mast nav a,
body.home .mast-over nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.mast nav a[aria-current="page"],
.mast-over nav a[aria-current="page"] {
  font-weight: 650;
  text-decoration: none;
}

body.home .mast-over nav a[aria-current="page"] { color: #ffffff; }

body.home .mast-over.on-paper nav a[aria-current="page"] { color: var(--ink); }

.mast,
.mast-over,
.mast-over.on-paper,
.profile-meta,
.index,
.work-list,
.block,
.formula,
.papers li,
.papers li:last-child,
.plate,
.colophon {
  border-top: 0;
  border-bottom: 0;
}

.profile-meta div,
.index a,
.work-item,
.factors th,
.factors td {
  border-bottom: 0;
}

.papers { gap: 1.35rem; }

@media (max-width: 700px) {
  .mast .mast-bar {
    width: min(68rem, calc(100% - 1.5rem));
    gap: 1rem;
  }

  .mast nav { width: auto; }

  .mast nav a,
  body.home .mast-over nav a { font-size: 0.72rem; }
}

@media (max-width: 600px) {
  .mast .mark { display: none; }

  .mast .mast-bar,
  body.home .mast-over .mast-bar-home { justify-content: center; }

  .mast nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
  }
}

/* Quiet motion and framed routes for the homepage work section. */
.has-js .reveal {
  opacity: 0;
  transform: translate3d(0, 1.15rem, 0);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-js .reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-routes {
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
}

.home-route,
.home-route + .home-route {
  position: relative;
  min-height: 12rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  overflow: hidden;
  border: 1px solid #dfe3e6;
  background: #ffffff;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.home-route::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: 1.55rem;
  width: 0.34rem;
  height: 0.34rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: #7d878f;
  transform: rotate(45deg);
  transition: transform 220ms ease;
}

.home-route:hover,
.home-route:focus-visible {
  border-color: #aeb6bc;
  box-shadow: 0 0.8rem 2.2rem rgba(29, 39, 47, 0.055);
}

.home-route:hover::after,
.home-route:focus-visible::after {
  transform: translateX(0.16rem) rotate(45deg);
}

.route-action { padding-right: 1.3rem; }

@media (max-width: 860px) {
  .home-route,
  .home-route + .home-route {
    min-height: 0;
    margin-top: 0;
    padding: 1.3rem;
    border: 1px solid #dfe3e6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal,
  .has-js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-route,
  .home-route + .home-route,
  .home-route::after {
    transition: none;
  }
}
