:root {
  --paper: #f3f2ee;
  --ink: #111;
  --muted: #696963;
  --line: rgba(17, 17, 17, 0.18);
  --accent: #b73722;
  --max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Noto Sans SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body[data-page="home"] { --page-bg: url("assets/hero-8k.jpg"); }
body[data-page="about"], body[data-page="fellows"] { --page-bg: url("assets/member-bg.jpg"); }
body[data-page="research"], body[data-page="publications"] { --page-bg: url("assets/research-bg.jpg"); }
body[data-page="working"] { --page-bg: url("assets/project-bg.jpg"); }
body[data-page="methods"] { --page-bg: url("assets/hero-8k.jpg"); }
body[data-page="contact"] { --page-bg: url("assets/works-bg.jpg"); }
body[data-page="sound"] { --page-bg: url("assets/works-bg.jpg"); }
body[data-page="art"] { --page-bg: url("assets/works-bg.jpg"); }
body[data-page="writing"] { --page-bg: url("assets/member-bg.jpg"); }

/* Keep each section's original artwork present as a full-screen visual field. */
body:not([data-page="home"]) {
  background: transparent;
  isolation: isolate;
}

body:not([data-page="home"])::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #eee;
  background-image: var(--page-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body:not([data-page="home"]) > main.page-shell {
  background:
    linear-gradient(
      to bottom,
      rgba(243, 242, 238, 0.08) 0,
      rgba(243, 242, 238, 0.24) 52vh,
      rgba(243, 242, 238, 0.88) 78vh,
      rgba(243, 242, 238, 0.9) 100%
    );
}

body:not([data-page="home"]) > footer.page-shell {
  background: rgba(243, 242, 238, 0.9);
}

body:not([data-page="home"]) .page-intro > .page-code,
body:not([data-page="home"]) .page-intro > .intro-copy {
  background: rgba(243, 242, 238, 0.62);
  backdrop-filter: blur(8px);
}

body:not([data-page="home"]) .page-intro > .page-code {
  width: fit-content;
  padding: 10px 12px;
}

body:not([data-page="home"]) .page-intro > .intro-copy {
  padding: 24px;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.language-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
  font-family: "Michroma", sans-serif;
}

.language-toggle,
.language-options button {
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  font: 400 9px/1.4 "Michroma", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.language-options {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  min-width: 118px;
  padding: 10px 12px;
  background: rgba(247, 247, 244, .94);
  box-shadow: 0 12px 30px rgba(17, 17, 17, .08);
}

.language-menu.is-open .language-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.language-options button:hover,
.language-options button:focus-visible { opacity: .48; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  font: 10px "Michroma", sans-serif;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.page-shell {
  transition: opacity 0.8s ease;
}

body.is-route-leaving .site-header,
body.is-route-leaving .page-shell {
  opacity: 0;
  pointer-events: none;
}

.route-transition {
  position: fixed;
  inset: -5%;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  background-color: #111;
  background-image: var(--transition-bg);
  background-position: 42% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: none;
  transform: scale(1.08) translate3d(-1.5%, 0, 0);
  transform-origin: center;
  will-change: opacity, transform, background-position;
}

.route-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.route-transition.is-active {
  animation: santoo-route-pan-right 3s cubic-bezier(.22, .64, .24, 1) forwards;
}

.route-transition[data-pan="left"] {
  background-position: 58% 50%;
  transform: scale(1.08) translate3d(1.5%, 0, 0);
}

.route-transition.is-active[data-pan="left"] {
  animation-name: santoo-route-pan-left;
}

.route-transition.is-arrival {
  opacity: 1;
  background-position: 58% 50%;
  transform: scale(1.02) translate3d(1.5%, 0, 0);
}

.route-transition.is-arrival[data-pan="left"] {
  background-position: 42% 50%;
  transform: scale(1.02) translate3d(-1.5%, 0, 0);
}

.route-transition.is-releasing {
  opacity: 0;
  transition: opacity 0.6s ease;
}

@keyframes santoo-route-pan-right {
  0% { opacity: 0; background-position: 42% 50%; transform: scale(1.08) translate3d(-1.5%, 0, 0); }
  16% { opacity: 1; }
  100% { opacity: 1; background-position: 58% 50%; transform: scale(1.02) translate3d(1.5%, 0, 0); }
}

@keyframes santoo-route-pan-left {
  0% { opacity: 0; background-position: 58% 50%; transform: scale(1.08) translate3d(1.5%, 0, 0); }
  16% { opacity: 1; }
  100% { opacity: 1; background-position: 42% 50%; transform: scale(1.02) translate3d(-1.5%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .route-transition { animation: none !important; transition: none !important; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2.3fr);
  align-items: start;
  gap: 32px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 242, 238, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Michroma", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px 16px;
}

.site-nav a {
  position: relative;
  padding-top: 2px;
  color: var(--muted);
  font-family: "Michroma", sans-serif;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.menu-button {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  font: 10px "Michroma", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 28px 72px;
}

.page-intro {
  min-height: 48vh;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2.3fr);
  gap: 32px;
  align-items: end;
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--ink);
}

.page-code,
.module-code,
.status,
.axis-index,
.footer-meta {
  font-family: "Michroma", sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-code { color: var(--accent); }

.intro-copy h1 {
  max-width: 1000px;
  margin: 0;
  font-family: "Michroma", sans-serif;
  font-size: clamp(34px, 5.7vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.intro-question {
  max-width: 720px;
  margin: 26px 0 0;
  font-family: Georgia, "Noto Serif", serif;
  font-size: clamp(18px, 2vw, 29px);
  line-height: 1.3;
}

.intro-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2.3fr);
  gap: 32px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0;
  font: 10px/1.5 "Michroma", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-body > :first-child { margin-top: 0; }

.section-body p {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.75;
}

.lead {
  font-family: Georgia, "Noto Serif", serif;
  font-size: clamp(21px, 2.6vw, 38px) !important;
  line-height: 1.35 !important;
}

.trajectory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.trajectory span {
  position: relative;
  padding: 24px 16px 24px 0;
  font: 12px "Michroma", sans-serif;
  text-transform: uppercase;
}

.trajectory span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 18px;
  color: var(--accent);
}

.module-grid,
.axis-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.axis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.module-card,
.axis-card,
.contact-card {
  min-height: 220px;
  padding: 22px;
  background: var(--paper);
}

.module-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.status { color: var(--muted); }
.status.published, .status.active { color: var(--accent); }

.module-card h2,
.axis-card h2,
.contact-card h2 {
  margin: 0 0 14px;
  font: 400 16px/1.4 "Michroma", sans-serif;
  text-transform: uppercase;
}

.module-card p,
.axis-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.module-card p + p { margin-top: 14px; }

.axis-card { min-height: 300px; }
.axis-index { display: block; margin-bottom: 76px; color: var(--accent); }

.record-list { border-top: 1px solid var(--ink); }

.record {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 140px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.record-year,
.record-state { font: 9px/1.5 "Michroma", sans-serif; text-transform: uppercase; }
.record-state { color: var(--accent); text-align: right; }
.record h2 { margin: 0 0 8px; font: 400 16px/1.4 "Michroma", sans-serif; }
.record p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.metadata {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 12px;
}

.metadata td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.metadata td:first-child { width: 140px; color: var(--muted); }

.notice {
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(183, 55, 34, 0.05);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: 32px;
}

.artwork-grid.single-feature { grid-template-columns: minmax(0, 1fr); }

.artwork-card {
  margin: 0;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}

.artwork-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: rgba(17, 17, 17, 0.035);
  text-align: inherit;
  cursor: zoom-in;
}

.artwork-card img {
  display: block;
  width: 100%;
  height: min(52vw, 520px);
  object-fit: contain;
  background: rgba(17, 17, 17, 0.035);
  filter: grayscale(1);
  transition: filter .55s ease;
}

.single-feature .artwork-card img { height: min(58vw, 680px); }

.artwork-media:hover img,
.artwork-media:focus-visible img { filter: grayscale(0); }

.artwork-media:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.artwork-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: clamp(88px, 9vw, 118px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background-color: #111;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 1px rgba(17, 17, 17, .55),
    0 8px 28px rgba(17, 17, 17, .22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.86);
  transition: opacity .18s ease, transform .18s ease;
  will-change: left, top, background-position;
}

.artwork-media.is-lens-active .artwork-lens {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .artwork-media { cursor: none; }
}

.artwork-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: #f7f7f4;
  background: rgba(8, 8, 8, .975);
  opacity: 0;
  transition: opacity .24s ease;
}

.artwork-lightbox[hidden] { display: none; }
.artwork-lightbox.is-open { opacity: 1; }

.artwork-lightbox-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 66px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(247, 247, 244, .18);
}

.artwork-lightbox-title,
.artwork-lightbox-pixels {
  overflow: hidden;
  font: 9px/1.5 "Michroma", sans-serif;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.artwork-lightbox-pixels { color: rgba(247, 247, 244, .58); }

.artwork-lightbox-close {
  padding: 0;
  border: 0;
  color: #f7f7f4;
  background: transparent;
  font: 9px/1.5 "Michroma", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.artwork-lightbox-close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.artwork-lightbox-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(247, 247, 244, .4) transparent;
}

.artwork-lightbox-canvas {
  display: grid;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  place-items: center;
  padding: 28px;
}

.artwork-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  filter: none;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .42);
}

body.artwork-lightbox-open { overflow: hidden; }

.artwork-card figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.artwork-card figcaption span:first-child {
  color: var(--ink);
  font-family: "Michroma", sans-serif;
  text-transform: uppercase;
}

.artwork-card figcaption span:last-child { text-align: right; }

.contact-card { min-height: 180px; }
.contact-card a { text-underline-offset: 4px; }
.unverified { color: var(--muted); font-style: italic; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: var(--muted);
}

.site-footer a { text-underline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; align-items: center; }
  .menu-button { display: block; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 18px;
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 10px 0; border-top: 1px solid var(--line); }
  .site-nav a[aria-current="page"]::before { display: none; }
  .page-intro, .section { grid-template-columns: 1fr; }
  .page-intro { min-height: 54vh; }
  .axis-grid { grid-template-columns: 1fr; }
  .axis-card { min-height: 230px; }
  .axis-index { margin-bottom: 42px; }
}

@media (max-width: 640px) {
  .site-header, .page-shell { padding-left: 18px; padding-right: 18px; }
  .brand { font-size: 10px; }
  .page-intro { padding-top: 54px; }
  .module-grid, .contact-grid, .artwork-grid { grid-template-columns: 1fr; }
  .artwork-card img, .single-feature .artwork-card img { height: auto; max-height: 74svh; }
  .artwork-card figcaption { grid-template-columns: 1fr; gap: 6px; }
  .artwork-card figcaption span:last-child { text-align: left; }
  .trajectory { grid-template-columns: 1fr; }
  .trajectory span { border-bottom: 1px solid var(--line); }
  .trajectory span::after { transform: rotate(90deg); }
  .record { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .record-state { grid-column: 2; text-align: left; }
  .site-footer { flex-direction: column; }
  .artwork-lightbox-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 58px;
    padding: 13px 16px;
  }
  .artwork-lightbox-pixels { display: none; }
  .artwork-lightbox-canvas { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .page-shell { transition: none !important; }
  .artwork-card img,
  .artwork-lens,
  .artwork-lightbox { transition: none !important; }
}

/* Immersive secondary-page system: scene, hierarchy, then modal detail. */
body.immersive-page {
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.immersive-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.immersive-page .brand {
  position: fixed;
  left: 30px;
  bottom: 22px;
  z-index: 2;
  font-size: 9px;
  pointer-events: auto;
}

.immersive-page .site-nav {
  position: fixed;
  top: 34px;
  right: clamp(30px, 5.5vw, 88px);
  display: flex;
  width: auto;
  justify-content: flex-end;
  gap: 38px;
  pointer-events: auto;
}

.immersive-page .site-nav > a,
.immersive-page .site-nav > .language-menu,
.home-nav > a,
.home-nav > .language-menu {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.site-nav > .language-menu,
.home-nav > .language-menu { width: 77px; flex-basis: 77px; }
.site-nav > a[href="about.html"],
.home-nav > a[href="about.html"] { width: 55px; flex-basis: 55px; }
.site-nav > a[href="research-fields.html"],
.home-nav > a[href="research-fields.html"] { width: 143px; flex-basis: 143px; }
.site-nav > a[href="publications.html"],
.home-nav > a[href="publications.html"] { width: 115px; flex-basis: 115px; }
.site-nav > a[href="working-papers.html"],
.home-nav > a[href="working-papers.html"] { width: 143px; flex-basis: 143px; }
.site-nav > a[href="methods.html"],
.home-nav > a[href="methods.html"] { width: 79px; flex-basis: 79px; }
.site-nav > a[href="fellows.html"],
.home-nav > a[href="fellows.html"] { width: 76px; flex-basis: 76px; }
.site-nav > a[href="contact.html"],
.home-nav > a[href="contact.html"] { width: 75px; flex-basis: 75px; }

.home-nav {
  display: flex !important;
  width: auto;
  justify-content: flex-end;
  gap: 38px !important;
}

/*
 * Keep the navigation track anchored to the English composition, while
 * allowing Chinese and Japanese labels to retain their natural widths.
 * space-between redistributes only the inter-label whitespace, producing an
 * even rhythm for every language without moving the track itself.
 */
@media (min-width: 821px) {
  .immersive-page .site-nav,
  .home-nav {
    width: min(1029px, calc(100vw - 180px));
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .immersive-page .site-nav > a,
  .immersive-page .site-nav > .language-menu,
  .home-nav > a,
  .home-nav > .language-menu {
    width: auto !important;
    flex-basis: auto !important;
  }
}

.immersive-page .site-nav a {
  padding: 0;
  border: 0;
  color: #111;
  font-size: 9px;
  white-space: nowrap;
  -webkit-text-stroke: .7px transparent;
  transition: color .55s ease, -webkit-text-stroke .55s ease;
}

.immersive-page .site-nav a:hover,
.immersive-page .site-nav a:focus-visible,
.immersive-page .site-nav a[aria-current="page"] {
  color: transparent;
  -webkit-text-stroke: .7px #111;
}

.immersive-page .site-nav a[aria-current="page"]::before { display: none; }
.immersive-page .menu-button { display: none; pointer-events: auto; }

.immersive-page > main.page-shell {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

body.immersive-page > main.page-shell {
  background: transparent;
}

.immersive-page .page-intro {
  position: fixed;
  right: clamp(30px, 5.5vw, 88px);
  bottom: 26px;
  display: block;
  width: min(420px, 36vw);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  text-align: right;
}

.immersive-page .page-intro > .page-code { display: none; }

.immersive-page .page-intro > .intro-copy {
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

body.immersive-page .page-intro > .intro-copy {
  background: transparent;
  backdrop-filter: none;
}

.immersive-page .intro-copy h1 {
  font-size: clamp(22px, 2.3vw, 36px);
  letter-spacing: -.035em;
}

.immersive-page .intro-question {
  margin-top: 22px;
  font-family: "Michroma", sans-serif;
  font-size: 11px;
  line-height: 1.6;
}

.immersive-page .intro-note {
  margin: 14px 0 0 auto;
  font-size: 10px;
  line-height: 1.65;
}

.immersive-page main > .section,
.immersive-page > .site-footer { display: none; }

.immersive-back {
  position: fixed;
  top: 34px;
  left: 30px;
  z-index: 80;
  color: #111;
  font: 9px/1.4 "Michroma", sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.immersive-directory {
  position: fixed;
  top: 126px;
  right: clamp(30px, 5.5vw, 88px);
  z-index: 55;
  display: flex;
  width: min(430px, 38vw);
  max-height: calc(100svh - 390px);
  flex-direction: column;
  align-items: stretch;
  overflow: auto;
  scrollbar-width: none;
}

.immersive-directory::-webkit-scrollbar { display: none; }

.immersive-directory-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding: 9px 0;
  border: 0;
  color: #111;
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.immersive-directory-primary {
  font: 10px/1.4 "Michroma", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-text-stroke: .7px transparent;
  transition: color .5s ease, -webkit-text-stroke .5s ease;
}

.immersive-directory-secondary {
  max-width: 390px;
  color: rgba(17, 17, 17, .5);
  font-size: 9px;
  line-height: 1.5;
}

.immersive-directory-item:hover .immersive-directory-primary,
.immersive-directory-item:focus-visible .immersive-directory-primary {
  color: transparent;
  -webkit-text-stroke: .7px #111;
}

/* Preserve legibility over both the white field and the black structures. */
@media (min-width: 821px) {
  .immersive-page .site-nav > a,
  .immersive-page .site-nav > .language-menu > .language-toggle,
  .immersive-back,
  .immersive-directory-primary,
  .immersive-page .page-intro > .intro-copy {
    color: #111;
    mix-blend-mode: normal;
    text-shadow:
      0 0 2px rgba(255, 255, 255, .98),
      0 0 7px rgba(255, 255, 255, .92),
      0 0 14px rgba(255, 255, 255, .66);
  }

  .immersive-page .site-nav > a:hover,
  .immersive-page .site-nav > a:focus-visible,
  .immersive-page .site-nav > a[aria-current="page"],
  .immersive-directory-item:hover .immersive-directory-primary,
  .immersive-directory-item:focus-visible .immersive-directory-primary {
    color: transparent;
    -webkit-text-stroke-color: #111;
  }
}

.immersive-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(17, 17, 17, .18);
  backdrop-filter: blur(4px);
}

.immersive-overlay[hidden] { display: none; }

.immersive-dialog {
  position: relative;
  width: min(940px, 92vw);
  max-height: min(84svh, 900px);
  overflow: auto;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(17, 17, 17, .2);
  color: #111;
  background: rgba(247, 247, 244, .94);
  box-shadow: 0 28px 90px rgba(17, 17, 17, .12);
}

.immersive-close {
  position: absolute;
  top: 4%;
  right: 4%;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  font: 9px/1.4 "Michroma", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-language-menu {
  position: absolute;
  top: 4%;
  left: 4%;
  z-index: 3;
  justify-content: flex-start;
}

.modal-language-menu .language-options {
  right: auto;
  left: 0;
}

.modal-language-menu.is-open .language-options { align-items: flex-start; }

.immersive-dialog-title {
  margin: 0 0 48px;
  padding-right: 90px;
  font: 400 clamp(24px, 3.6vw, 52px)/1.1 "Michroma", sans-serif;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.immersive-dialog-content .section-body { width: 100%; }
.immersive-dialog-content .section-body > :first-child { margin-top: 0; }
.immersive-dialog-content .lead {
  font-family: "Noto Sans", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.65 !important;
}
.immersive-dialog-content .module-card,
.immersive-dialog-content .axis-card,
.immersive-dialog-content .contact-card { background: rgba(247, 247, 244, .78); }

body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .immersive-page { min-height: 620px; }
  .immersive-page .menu-button {
    position: fixed;
    top: 24px;
    right: 20px;
    display: block;
  }
  .immersive-page .site-nav {
    top: 58px;
    right: 20px;
    display: none;
    width: 210px;
    padding: 12px 16px;
    background: rgba(247, 247, 244, .9);
    flex-direction: column;
    gap: 0;
  }
  .immersive-page .site-nav.is-open { display: flex; }
  .immersive-page .site-nav a { padding: 9px 0; }
  .immersive-page .site-nav > a,
  .immersive-page .site-nav > .language-menu {
    width: 100%;
    flex-basis: auto;
  }
  .immersive-back { top: 24px; left: 20px; }
  .immersive-directory {
    top: 86px;
    right: 20px;
    width: min(350px, calc(100vw - 40px));
    max-height: calc(100svh - 350px);
  }
  .immersive-page .page-intro {
    right: 20px;
    bottom: 60px;
    width: min(350px, calc(100vw - 40px));
  }
  .immersive-page .brand { left: 20px; bottom: 18px; }
  .immersive-page .intro-note { display: none; }
  .immersive-overlay { padding: 0; }
  .immersive-dialog { width: 100%; max-height: 100svh; min-height: 100svh; padding: 72px 22px 36px; border: 0; }
  .immersive-close { position: absolute; top: 24px; right: 22px; }
  .modal-language-menu { top: 24px; left: 22px; }
}

@media (max-width: 820px) {
  .home-nav {
    width: auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px !important;
  }
  .home-nav > a,
  .home-nav > .language-menu {
    width: auto !important;
    flex-basis: auto !important;
  }
}
