:root {
  --paper: #f8f7f1;
  --paper-cool: #f2f6f6;
  --ink: #3f4242;
  --muted: #8c9190;
  --pale-line: rgba(63, 66, 66, 0.12);
  --line: rgba(63, 66, 66, 0.34);
  --strong-line: rgba(63, 66, 66, 0.64);
  --blue: #eaf3f5;
  --blue-deep: #b8cdd2;
  --yellow: #d6c36d;
  --green: #dfe9df;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --sans: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 52% 44%, rgba(234, 243, 245, 0.82), transparent 34%),
    linear-gradient(180deg, #fbfaf5, var(--paper));
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  color: rgba(63, 66, 66, 0.5);
  font-size: 13px;
  letter-spacing: 0.24em;
}

.site-header nav {
  display: flex;
  gap: clamp(22px, 4vw, 54px);
}

.site-header button {
  transition: color 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.site-header button:hover {
  color: var(--ink);
}

.signature {
  justify-self: end;
  opacity: 0.34;
}

.back-button {
  opacity: 0;
  pointer-events: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  letter-spacing: 0;
  color: var(--ink);
}

.app[data-view="module"] .back-button,
.app[data-view="subpage"] .back-button {
  opacity: 0.72;
  pointer-events: auto;
}

.app[data-view="cover"] .site-header {
  opacity: 0;
  pointer-events: none;
}

.view {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  padding: 80px clamp(24px, 5vw, 72px) 56px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 760ms ease, transform 760ms ease, visibility 0s linear 760ms;
}

.app[data-view="cover"] [data-screen="cover"],
.app[data-view="about"] [data-screen="about"],
.app[data-view="friends"] [data-screen="friends"],
.app[data-view="module"] [data-screen="module"],
.app[data-view="subpage"] [data-screen="subpage"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.app.is-cover-leaving[data-view="cover"] [data-screen="cover"] {
  opacity: 0;
  transform: translateY(0) scale(1.018);
  transition: opacity 3200ms ease, transform 3600ms ease, visibility 0s linear 3600ms;
}

.cover-view {
  display: grid;
  place-items: center;
  padding: 0;
}

.cover-canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  background: var(--paper);
  overflow: hidden;
}

.cover-map {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.94;
  filter: saturate(0.82) contrast(0.96) brightness(1.02);
}

.cover-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 247, 241, 0.16), transparent 36%, rgba(248, 247, 241, 0.18) 100%),
    radial-gradient(circle at 52% 48%, transparent 0 42%, rgba(248, 247, 241, 0.2) 74%, rgba(248, 247, 241, 0.48) 100%);
}

.cover-phrase {
  position: absolute;
  right: clamp(28px, 5vw, 86px);
  bottom: clamp(82px, 12vh, 140px);
  z-index: 2;
  display: grid;
  gap: 0.08em;
  color: rgba(47, 50, 50, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5.4vw, 82px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: right;
}

.enter-button {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(22px, 5vh, 58px);
  transform: none;
  padding: 10px 18px;
  border: 1px solid rgba(63, 66, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(63, 66, 66, 0.46);
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.enter-button:hover {
  color: var(--ink);
  border-color: rgba(63, 66, 66, 0.28);
  transform: translateY(-2px);
}

.curate {
  height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: clamp(14px, 1.4vw, 26px);
  align-items: center;
}

.curate-item {
  position: relative;
  height: min(72vh, 640px);
  overflow: hidden;
  border-left: 1px solid rgba(63, 66, 66, 0.14);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(63, 66, 66, 0.62);
  display: grid;
  place-items: center;
  transition: transform 500ms ease, background 500ms ease, color 500ms ease, opacity 500ms ease;
}

.curate-item::before,
.curate-item::after,
.friend-tile::before,
.friend-tile::after {
  content: "";
  position: absolute;
  inset: 10%;
  opacity: 0.24;
  transition: opacity 500ms ease, transform 500ms ease;
}

.curate-item .short,
.curate-item .long {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--serif);
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: auto;
  line-height: 0.95;
}

.curate-item .short {
  font-size: clamp(64px, 11vw, 170px);
  color: rgba(63, 66, 66, 0.7);
  transition: opacity 420ms ease, transform 500ms ease;
}

.curate-item .long {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  font-size: clamp(32px, 5.2vw, 88px);
  opacity: 0;
  color: rgba(63, 66, 66, 0.78);
  transform: translate(-50%, -50%);
  transition: opacity 420ms ease, transform 500ms ease;
}

.curate-item .long::first-letter {
  color: var(--yellow);
}

.curate:hover .curate-item {
  color: rgba(63, 66, 66, 0.32);
}

.curate-item:hover {
  color: rgba(63, 66, 66, 0.86) !important;
  background: rgba(234, 243, 245, 0.72);
  transform: translateY(-8px);
}

.curate-item:hover .short {
  opacity: 0;
  transform: translateY(14px);
}

.curate-item:hover .long,
.curate-item.qa-hover .long {
  opacity: 1;
  transform: translate(-50%, calc(-50% - 4px));
}

.curate-item:hover::before,
.curate-item:hover::after,
.curate-item.qa-hover::before,
.curate-item.qa-hover::after {
  opacity: 0.42;
  transform: scale(1.03);
}

.capture::before {
  border: 1px solid var(--pale-line);
  box-shadow: inset 0 0 0 30px rgba(184, 205, 210, 0.08);
}

.capture::after {
  background:
    linear-gradient(90deg, transparent 48%, var(--pale-line) 49%, transparent 51%),
    linear-gradient(0deg, transparent 48%, var(--pale-line) 49%, transparent 51%);
}

.unbound::before {
  background: repeating-linear-gradient(116deg, transparent 0 32px, var(--pale-line) 33px 35px);
}

.unbound::after {
  border: 1px solid var(--pale-line);
  border-radius: 50%;
}

.reverie::before {
  background: repeating-linear-gradient(180deg, transparent 0 20px, var(--pale-line) 21px 22px);
}

.reverie::after {
  border-left: 30px solid rgba(184, 205, 210, 0.14);
  border-right: 30px solid rgba(223, 233, 223, 0.14);
}

.academia::before {
  background:
    linear-gradient(var(--pale-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--pale-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.academia::after {
  border-top: 1px solid var(--pale-line);
  border-bottom: 1px solid var(--pale-line);
  transform: rotate(-8deg);
}

.tinker::before {
  border: 1px dashed rgba(63, 66, 66, 0.16);
  background:
    linear-gradient(45deg, transparent 49%, var(--pale-line) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, var(--pale-line) 50%, transparent 51%);
  background-size: 78px 78px;
}

.ephemera::before {
  background:
    radial-gradient(circle at 48% 24%, rgba(214, 195, 109, 0.18) 0 16%, transparent 17%),
    repeating-linear-gradient(0deg, transparent 0 24px, var(--pale-line) 25px 26px);
}

.ephemera::after {
  border: 1px solid rgba(63, 66, 66, 0.1);
  transform: rotate(6deg) scale(0.7);
}

.module-page,
.sub-page {
  display: none;
  height: calc(100vh - 136px);
  animation: reveal 700ms ease both;
}

.module-page.is-active,
.sub-page.is-active {
  display: block;
}

.sub-page.is-active {
  overflow-y: auto;
  padding-bottom: 12vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 66, 66, 0.24) transparent;
}

.module-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 7vh;
  color: rgba(63, 66, 66, 0.62);
}

.module-heading span {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 132px);
  line-height: 0.9;
}

.module-heading strong {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 400;
  color: rgba(63, 66, 66, 0.46);
}

.photo-archive {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(160px, 0.28fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: end;
}

.capture-board {
  width: min(1280px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 0.78fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
}

.capture-library {
  position: sticky;
  top: 92px;
  min-height: 54vh;
  padding: 12px 0 22px;
  border-top: 1px solid var(--pale-line);
}

.capture-library-label {
  margin: 0 0 28px;
  color: rgba(63, 66, 66, 0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.capture-library-list { display: grid; gap: 4px; }

.capture-library-item {
  width: 100%; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px;
  align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(63, 66, 66, 0.08);
  color: rgba(63, 66, 66, 0.42); text-align: left;
  transition: color 240ms ease, padding-left 240ms ease;
}

.capture-library-item span, .capture-library-item em { font-size: 10px; font-style: normal; letter-spacing: 0.1em; }
.capture-library-item strong { overflow: hidden; color: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.capture-library-item:hover, .capture-library-item.is-active { padding-left: 8px; color: var(--ink); }

.capture-gallery { display: grid; gap: 28px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--pale-line); }
.capture-gallery-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; }
.capture-gallery-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 62px); font-weight: 400; line-height: 0.95; }
.capture-gallery-heading p { margin: 0 0 4px; color: rgba(63, 66, 66, 0.42); font-size: 10px; letter-spacing: 0.16em; white-space: nowrap; }

.capture-masonry { column-count: 3; column-gap: 14px; }
.capture-masonry-item { width: 100%; display: block; break-inside: avoid; margin: 0 0 14px; overflow: hidden; background: #eef3f1; }
.capture-masonry-item img { width: 100%; display: block; transition: transform 500ms ease, filter 500ms ease; filter: saturate(0.88) contrast(0.98); }
.capture-masonry-item:hover img { filter: saturate(1) contrast(1); transform: scale(1.025); }
.capture-gallery-empty { min-height: 42vh; display: grid; place-items: center; border: 1px dashed rgba(63, 66, 66, 0.18); color: rgba(63, 66, 66, 0.36); font-family: var(--serif); font-size: 24px; }

.photo-focus {
  height: 54vh;
  border: 1px solid rgba(63, 66, 66, 0.14);
  background:
    linear-gradient(135deg, rgba(184, 205, 210, 0.28), transparent),
    repeating-linear-gradient(135deg, #f9f8f2 0 18px, #eef4f4 19px 20px);
}

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-sheet i,
.entry-row i {
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(63, 66, 66, 0.13);
  background:
    linear-gradient(135deg, rgba(214, 195, 109, 0.12), transparent),
    repeating-linear-gradient(135deg, #f8f7f1 0 12px, #edf3f3 13px 14px);
}

.sports-index {
  width: min(780px, 90vw);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.sports-index button {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  min-height: 148px;
  text-align: left;
  color: rgba(63, 66, 66, 0.58);
  letter-spacing: 0.13em;
  transition: color 350ms ease, transform 350ms ease, opacity 350ms ease;
}

.sports-index:hover button {
  opacity: 0.42;
}

.sports-index button:hover {
  opacity: 1;
  color: var(--ink);
  transform: translateX(10px);
}

.sport-image {
  width: 150px;
  height: 128px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.86;
  filter: grayscale(1) contrast(0.95) brightness(1.04);
  transition: opacity 350ms ease, transform 350ms ease, filter 350ms ease;
}

.sports-index button:hover .sport-image {
  opacity: 1;
  filter: grayscale(0.8) contrast(1.02) brightness(1);
  transform: scale(1.035);
}

.entry-row {
  width: min(820px, 88vw);
  margin: 12vh auto 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  color: rgba(63, 66, 66, 0.52);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.8;
}

.section-tabs {
  width: min(1180px, 92vw);
  margin: -4vh auto 6vh;
  display: flex;
  gap: clamp(22px, 5vw, 74px);
  border-top: 1px solid rgba(63, 66, 66, 0.14);
  padding-top: 16px;
}

.section-tabs button {
  position: relative;
  color: rgba(63, 66, 66, 0.36);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.section-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.section-tabs button:hover,
.section-tabs button.is-active {
  color: rgba(63, 66, 66, 0.78);
}

.section-tabs button.is-active::after {
  transform: scaleX(1);
}

.section-panels {
  width: min(920px, 88vw);
  margin: 0 auto;
}

.section-panel {
  display: none;
  animation: reveal 520ms ease both;
}

.section-panel.is-active {
  display: block;
}

.unbound-records {
  display: grid;
  gap: 18px;
}

.unbound-record {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  min-height: 176px;
  border: 1px solid rgba(63, 66, 66, 0.12);
  color: rgba(63, 66, 66, 0.72);
}

.unbound-photo {
  min-height: 176px;
  border-right: 1px solid rgba(63, 66, 66, 0.1);
  background:
    linear-gradient(135deg, rgba(184, 205, 210, 0.18), transparent),
    repeating-linear-gradient(135deg, #f9f8f2 0 18px, #edf3f3 19px 20px);
}

.unbound-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.16) contrast(0.96) brightness(1.04);
}

.unbound-photo.is-empty img {
  display: none;
}

.unbound-body {
  padding: 24px clamp(20px, 4vw, 48px);
  display: grid;
  align-content: center;
  gap: 22px;
}

.unbound-body p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 68px);
  line-height: 0.98;
  color: rgba(63, 66, 66, 0.72);
}

.unbound-body dl {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.unbound-body dl div {
  display: grid;
  grid-template-columns: minmax(128px, 0.8fr) 1fr;
  gap: 18px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(63, 66, 66, 0.08);
}

.unbound-body dt {
  color: rgba(63, 66, 66, 0.36);
}

.unbound-body dd {
  margin: 0;
  color: rgba(63, 66, 66, 0.62);
}

.pb-records {
  display: grid;
  gap: 30px;
}

.pb-group h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
  color: rgba(63, 66, 66, 0.68);
}

.pb-group dl {
  margin: 0;
  display: grid;
  border-top: 1px solid rgba(63, 66, 66, 0.12);
}

.pb-group dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(63, 66, 66, 0.08);
  color: rgba(63, 66, 66, 0.62);
}

.pb-group dt {
  color: rgba(63, 66, 66, 0.36);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pb-group dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
}

.pb-group time {
  color: rgba(63, 66, 66, 0.42);
}

.badminton-players {
  width: min(920px, 88vw);
  margin: 8vh auto 0;
  display: grid;
  gap: 22px;
}

.badminton-player {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  min-height: 232px;
  border: 1px solid rgba(63, 66, 66, 0.12);
  color: rgba(63, 66, 66, 0.7);
}

.badminton-photo {
  min-height: 232px;
  border-right: 1px solid rgba(63, 66, 66, 0.1);
  background:
    linear-gradient(135deg, rgba(223, 233, 223, 0.2), transparent),
    repeating-linear-gradient(135deg, #f9f8f2 0 18px, #eef4f4 19px 20px);
}

.badminton-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.12) contrast(0.98) brightness(1.03);
}

.badminton-photo.is-empty img {
  display: none;
}

.badminton-body {
  padding: 28px clamp(22px, 4vw, 52px);
  display: grid;
  align-content: center;
  gap: 14px;
}

.badminton-index {
  color: rgba(63, 66, 66, 0.34);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.badminton-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  color: rgba(63, 66, 66, 0.76);
}

.badminton-ranking {
  margin: 6px 0 0;
  color: rgba(63, 66, 66, 0.48);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badminton-achievements {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  color: rgba(63, 66, 66, 0.62);
  line-height: 1.7;
}

.badminton-achievements li {
  padding-top: 8px;
  border-top: 1px solid rgba(63, 66, 66, 0.08);
}

.badminton-matches {
  width: min(920px, 88vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.badminton-match {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  min-height: 168px;
  border: 1px solid rgba(63, 66, 66, 0.12);
  color: rgba(63, 66, 66, 0.7);
}

.badminton-match-photo {
  min-height: 168px;
  border-right: 1px solid rgba(63, 66, 66, 0.1);
  background:
    linear-gradient(135deg, rgba(234, 243, 245, 0.34), transparent),
    repeating-linear-gradient(135deg, #f9f8f2 0 18px, #edf3f3 19px 20px);
}

.badminton-match-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.1) contrast(0.98) brightness(1.03);
}

.badminton-match-photo.is-empty img {
  display: none;
}

.badminton-match-body {
  padding: 24px clamp(22px, 4vw, 48px);
  display: grid;
  align-content: center;
  gap: 12px;
}

.badminton-match-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: rgba(63, 66, 66, 0.76);
}

.badminton-match-body p {
  margin: 0;
  color: rgba(63, 66, 66, 0.5);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.reverie-carousel {
  width: min(1080px, 90vw);
  height: min(58vh, 560px);
  margin: 2vh auto 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(63, 66, 66, 0.16);
  border-radius: 50%;
  color: rgba(63, 66, 66, 0.48);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  transition: color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.carousel-arrow:hover {
  color: var(--ink);
  border-color: rgba(63, 66, 66, 0.34);
  transform: translateY(-2px);
}

.reverie-track {
  position: relative;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}

.reverie-card {
  position: absolute;
  top: 0;
  left: calc(50% - min(18vw, 210px));
  width: min(36vw, 420px);
  height: min(58vh, 560px);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 10px;
  text-align: left;
  color: rgba(63, 66, 66, 0.62);
  transition: transform 620ms ease, opacity 620ms ease;
}

.reverie-poster,
.reverie-detail-poster {
  background:
    linear-gradient(135deg, rgba(214, 195, 109, 0.12), transparent),
    repeating-linear-gradient(135deg, #f8f7f1 0 16px, #edf3f3 17px 18px);
  border: 1px solid rgba(63, 66, 66, 0.12);
}

.reverie-poster {
  min-height: 0;
}

.reverie-poster img,
.reverie-detail-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.08) contrast(0.98) brightness(1.03);
}

.reverie-card span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(63, 66, 66, 0.36);
}

.reverie-card strong {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
  color: rgba(63, 66, 66, 0.72);
}

.reverie-card.is-active strong {
  color: var(--ink);
}

.reverie-detail {
  width: min(1080px, 90vw);
  margin: 4vh auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(320px, 0.56fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.reverie-detail-poster {
  aspect-ratio: 3 / 4;
}

.reverie-detail-body {
  display: grid;
  gap: 22px;
  color: rgba(63, 66, 66, 0.62);
}

.reverie-detail-body > span {
  color: rgba(63, 66, 66, 0.36);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reverie-detail-body h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.94;
  color: rgba(63, 66, 66, 0.76);
}

.reverie-detail-body p {
  margin: 0;
  white-space: pre-line;
  line-height: 1.9;
}

.reverie-review {
  padding-top: 18px;
  border-top: 1px solid rgba(63, 66, 66, 0.1);
  color: rgba(63, 66, 66, 0.5);
}

.reverie-detail audio {
  width: 100%;
  margin-top: 8px;
}

.poem-list {
  display: grid;
  gap: 24px;
}

.poem-post {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(20px, 4vw, 46px);
  padding: 28px 0;
  border-top: 1px solid rgba(63, 66, 66, 0.12);
  color: rgba(63, 66, 66, 0.66);
}

.poem-index {
  color: rgba(63, 66, 66, 0.34);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.poem-body {
  display: grid;
  gap: 20px;
}

.poem-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 400;
  line-height: 1;
  color: rgba(63, 66, 66, 0.74);
}

.poem-content,
.poem-note {
  margin: 0;
  white-space: pre-line;
  line-height: 1.9;
}

.poem-content {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 25px);
}

.poem-note {
  padding-top: 14px;
  border-top: 1px solid rgba(63, 66, 66, 0.08);
  color: rgba(63, 66, 66, 0.46);
  font-size: 14px;
}

.unbound-empty {
  margin: 18vh 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 96px);
  color: rgba(63, 66, 66, 0.42);
}

.academia-page {
  position: relative;
}

.academia-page.is-active {
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
}

.academia-page p {
  position: static;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 132px);
  line-height: 1;
  color: rgba(63, 66, 66, 0.68);
}

.academia-page .academia-wish {
  margin: 0;
  color: rgba(130, 83, 30, 0.72);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
}

.text-directory {
  width: min(780px, 86vw);
  min-height: 46vh;
  margin: 8vh auto 0;
  border-top: 1px solid rgba(63, 66, 66, 0.16);
  color: rgba(63, 66, 66, 0.48);
  font-family: var(--serif);
  font-size: 20px;
}

.repo-directory {
  width: min(980px, 88vw);
  margin: 8vh auto 0;
  border-top: 1px solid rgba(63, 66, 66, 0.16);
  font-family: var(--sans);
}

.repo-directory a {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: clamp(18px, 4vw, 60px);
  align-items: baseline;
  padding: 18px 0;
  color: rgba(63, 66, 66, 0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 66, 66, 0.08);
  transition: color 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.repo-directory time {
  color: rgba(63, 66, 66, 0.34);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.repo-directory span {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 46px);
  letter-spacing: 0;
}

.repo-directory a:hover {
  color: var(--ink);
  border-color: rgba(63, 66, 66, 0.2);
  transform: translateX(10px);
}

.friends-map {
  height: calc(100vh - 136px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-template-rows: 0.7fr 1fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.friends-map h1 {
  grid-column: 1 / 3;
  margin: 0;
  align-self: end;
  font-family: var(--serif);
  font-size: clamp(54px, 10vw, 150px);
  font-weight: 400;
  color: rgba(63, 66, 66, 0.52);
}

.friend-tile {
  position: relative;
  min-height: 120px;
  border-top: 1px solid rgba(63, 66, 66, 0.15);
  background: rgba(234, 243, 245, 0.24);
}

.friend-tile.large {
  grid-row: 2 / 4;
}

.friend-tile.wide {
  grid-column: 2 / 4;
}

.friend-tile::before {
  border: 1px solid rgba(63, 66, 66, 0.08);
}

.friend-tile::after {
  background: repeating-linear-gradient(135deg, transparent 0 26px, rgba(63, 66, 66, 0.08) 27px 28px);
}

.letter-transition {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  opacity: 0;
  background: rgba(248, 247, 241, 0);
  transition: opacity 180ms ease, background 1200ms ease;
}

.letter-transition.is-falling {
  opacity: 1;
  background: rgba(248, 247, 241, 0.58);
}

.letter-transition.is-blocking {
  pointer-events: auto;
}

.letter-transition i {
  position: absolute;
  top: 0;
  width: 112px;
  height: 72px;
  opacity: 0;
  border: 1px solid rgba(63, 66, 66, 0.36);
  background:
    linear-gradient(155deg, transparent 47%, rgba(63, 66, 66, 0.25) 48%, transparent 50%),
    linear-gradient(25deg, transparent 48%, rgba(63, 66, 66, 0.18) 49%, transparent 51%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 58px rgba(63, 66, 66, 0.2);
  transform: translateY(-112%) rotate(var(--r));
  animation: letterFall 4.8s cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

.letter-transition i:nth-child(1) { left: 12%; --r: -8deg; animation-delay: 0ms; }
.letter-transition i:nth-child(2) { left: 62%; --r: 7deg; animation-delay: 140ms; }
.letter-transition i:nth-child(3) { left: 28%; --r: -3deg; animation-delay: 360ms; width: 128px; height: 82px; }
.letter-transition i:nth-child(4) { left: 79%; --r: 10deg; animation-delay: 430ms; }
.letter-transition i:nth-child(5) { left: 45%; --r: -12deg; animation-delay: 520ms; width: 98px; height: 64px; }
.letter-transition i:nth-child(6) { left: 5%; --r: 4deg; animation-delay: 620ms; }
.letter-transition i:nth-child(7) { left: 92%; --r: 13deg; animation-delay: 700ms; width: 104px; height: 68px; }
.letter-transition i:nth-child(8) { left: 18%; --r: 16deg; animation-delay: 780ms; }
.letter-transition i:nth-child(9) { left: 36%; --r: -15deg; animation-delay: 850ms; width: 120px; height: 78px; }
.letter-transition i:nth-child(10) { left: 54%; --r: 5deg; animation-delay: 900ms; width: 96px; height: 64px; }
.letter-transition i:nth-child(11) { left: 70%; --r: -6deg; animation-delay: 960ms; width: 116px; height: 76px; }
.letter-transition i:nth-child(12) { left: 84%; --r: 11deg; animation-delay: 1010ms; width: 108px; height: 70px; }
.letter-transition i:nth-child(13) { left: 1%; --r: -14deg; animation-delay: 1080ms; width: 124px; height: 80px; }
.letter-transition i:nth-child(14) { left: 23%; --r: 9deg; animation-delay: 1130ms; }
.letter-transition i:nth-child(15) { left: 41%; --r: -7deg; animation-delay: 1190ms; width: 102px; height: 66px; }
.letter-transition i:nth-child(16) { left: 59%; --r: 15deg; animation-delay: 1240ms; width: 132px; height: 86px; }
.letter-transition i:nth-child(17) { left: 76%; --r: -10deg; animation-delay: 1300ms; }
.letter-transition i:nth-child(18) { left: 89%; --r: 3deg; animation-delay: 1360ms; width: 96px; height: 62px; }
.letter-transition i:nth-child(19) { left: 10%; --r: 12deg; animation-delay: 1420ms; }
.letter-transition i:nth-child(20) { left: 31%; --r: -5deg; animation-delay: 1470ms; width: 118px; height: 76px; }
.letter-transition i:nth-child(21) { left: 49%; --r: 8deg; animation-delay: 1530ms; }
.letter-transition i:nth-child(22) { left: 66%; --r: -13deg; animation-delay: 1580ms; width: 126px; height: 82px; }
.letter-transition i:nth-child(23) { left: 82%; --r: 6deg; animation-delay: 1640ms; }
.letter-transition i:nth-child(24) { left: 95%; --r: -8deg; animation-delay: 1690ms; width: 100px; height: 66px; }
.letter-transition i:nth-child(25) { left: 16%; --r: -2deg; animation-delay: 1750ms; width: 138px; height: 88px; }
.letter-transition i:nth-child(26) { left: 34%; --r: 14deg; animation-delay: 1800ms; }
.letter-transition i:nth-child(27) { left: 52%; --r: -11deg; animation-delay: 1860ms; width: 106px; height: 68px; }
.letter-transition i:nth-child(28) { left: 72%; --r: 2deg; animation-delay: 1910ms; }
.letter-transition i:nth-child(29) { left: 7%; --r: 18deg; animation-delay: 1970ms; width: 96px; height: 64px; }
.letter-transition i:nth-child(30) { left: 25%; --r: -16deg; animation-delay: 2020ms; }
.letter-transition i:nth-child(31) { left: 57%; --r: 12deg; animation-delay: 2080ms; width: 122px; height: 78px; }
.letter-transition i:nth-child(32) { left: 87%; --r: -4deg; animation-delay: 2130ms; }

@keyframes letterFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -112%, 0) rotate(var(--r));
  }
  4% {
    opacity: 0.95;
  }
  82% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 118vh, 0) rotate(calc(var(--r) * -1));
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .view {
    position: absolute;
    min-height: 100vh;
    padding-inline: 18px;
  }

  .cover-canvas {
    width: 100%;
    aspect-ratio: 1 / 1.25;
    min-height: 560px;
  }

  .gate-ring {
    width: 72vw;
  }

  .cypress {
    height: 150px;
  }

  .curate {
    height: auto;
    grid-template-columns: 1fr;
    padding-top: 7vh;
  }

  .curate-item {
    height: 15vh;
    min-height: 116px;
  }

  .curate-item .short,
  .curate-item .long {
    writing-mode: horizontal-tb;
    font-size: clamp(42px, 14vw, 74px);
  }

  .module-heading {
    display: block;
  }

  .photo-archive,
  .capture-board,
  .sports-index button,
  .entry-row,
  .unbound-record,
  .badminton-player,
  .badminton-match,
  .reverie-detail,
  .poem-post {
    grid-template-columns: 1fr;
  }

  .capture-library { position: static; min-height: 0; }
  .capture-masonry { column-count: 2; }

  .reverie-carousel {
    grid-template-columns: 38px 1fr 38px;
    height: 54vh;
  }

  .reverie-card {
    left: 12%;
    width: 76%;
  }

  .photo-focus {
    height: 44vh;
  }

  .unbound-photo,
  .badminton-photo,
  .badminton-match-photo {
    border-right: 0;
    border-bottom: 1px solid rgba(63, 66, 66, 0.1);
  }

  .unbound-body dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .friends-map {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .friends-map h1,
  .friend-tile.large,
  .friend-tile.wide {
    grid-column: auto;
    grid-row: auto;
  }
}


.letter-transition i { pointer-events: auto; cursor: pointer; }
.letter-page { display: none; height: calc(100vh - 136px); overflow-y: auto; padding-bottom: 8vh; }
.letter-page.is-active { display: grid; place-items: start center; }
.letter-paper {
  width: min(760px, 92vw); margin: 2vh auto 0; padding: clamp(42px, 7vw, 84px);
  background: linear-gradient(115deg, rgba(255,247,213,.32), transparent 45%), repeating-linear-gradient(0deg, rgba(102,72,31,.035) 0 1px, transparent 1px 5px), #d3b278;
  border: 1px solid rgba(86,57,21,.34); box-shadow: 0 18px 48px rgba(63,66,66,.18);
  color: #3f3425; font-family: "Palace Script MT", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(25px, 2.25vw, 33px); line-height: 2.12;
}
.letter-paper p { margin: 0 0 1.05em; }
.letter-letterhead { margin-bottom: 4em !important; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.45vw, 34px); letter-spacing: .03em; line-height: 1.3; }
.letter-headmaster { margin-bottom: .25em !important; text-align: center; }
.letter-honours { margin-bottom: 1.55em !important; color: #0776ba; text-align: center; font-style: italic; line-height: 1.65; }
.letter-paper em { color: #82531e; font-style: normal; }
.letter-signoff { margin-top: 2em !important; }

.academia-wish { margin-top: 10px; color: rgba(130,83,30,.72); font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); }


.friends-gallery { height: calc(100vh - 136px); display: grid; align-content: center; gap: clamp(38px, 7vh, 84px); }
.friends-heading { width: min(1180px, 90vw); margin: 0 auto; }
.friends-heading span { color: rgba(63,66,66,.38); font-size: 10px; letter-spacing: .2em; }
.friends-heading h1 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(60px, 10vw, 150px); font-weight: 400; line-height: .8; color: rgba(63,66,66,.64); }
.friends-marquee { width: 100vw; overflow: hidden; border-top: 1px solid var(--pale-line); border-bottom: 1px solid var(--pale-line); }
.friends-track { width: max-content; display: flex; gap: 16px; padding: 16px; animation: friends-drift 36s linear infinite; }
.friends-marquee:hover .friends-track, .friends-marquee:focus-within .friends-track { animation-play-state: paused; }
.friend-card { position: relative; width: clamp(240px, 26vw, 370px); min-height: 230px; display: grid; align-content: space-between; gap: 18px; padding: 24px; border: 1px solid rgba(63,66,66,.13); background: rgba(234,243,245,.28); color: rgba(63,66,66,.68); text-decoration: none; transition: background 260ms ease, color 260ms ease, transform 260ms ease; }
.friend-card span { color: rgba(63,66,66,.36); font-size: 10px; letter-spacing: .15em; }
.friend-card strong { align-self: end; font-family: var(--serif); font-size: clamp(29px, 3vw, 46px); font-weight: 400; line-height: .95; }
.friend-card p { margin: 0; font-size: 12px; letter-spacing: .08em; line-height: 1.6; }
.friend-card i { position: absolute; top: 20px; right: 22px; font-size: 22px; font-style: normal; }
a.friend-card:hover { color: var(--ink); background: rgba(214,195,109,.2); transform: translateY(-7px); }
.friends-empty { width: 100vw; padding: 90px 5vw; color: rgba(63,66,66,.38); font-family: var(--serif); font-size: 28px; }
@keyframes friends-drift { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .friends-gallery { height: calc(100vh - 116px); } .friend-card { width: 72vw; min-height: 210px; } }


.museum-journey { width: min(1040px, 92vw); margin: 3vh auto 0; }
.museum-map-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--pale-line); }
.museum-map-heading span { font-family: var(--serif); font-size: clamp(28px, 4vw, 56px); color: rgba(63,66,66,.72); }
.museum-map-heading p { margin: 0; color: rgba(63,66,66,.4); font-size: 12px; letter-spacing: .1em; }
.museum-map { position: relative; min-height: min(60vh, 650px); padding: 18px 0 8px; }
.museum-map svg { display: block; width: 100%; height: auto; max-height: 60vh; }
.museum-map path { fill: rgba(63,66,66,.075); stroke: rgba(63,66,66,.28); stroke-width: 1.1; vector-effect: non-scaling-stroke; transition: fill 220ms ease, stroke 220ms ease, filter 220ms ease; }
.museum-map path.is-visited { fill: rgba(170,190,145,.78); stroke: rgba(91,119,75,.8); cursor: pointer; }
.museum-map path.is-visited:hover, .museum-map path.is-visited:focus { fill: rgba(214,195,109,.9); outline: none; filter: drop-shadow(0 5px 5px rgba(63,66,66,.18)); }
.museum-map-tooltip { position: absolute; z-index: 2; width: min(198px, 54vw); display: none; gap: 7px; padding: 14px 16px; background: rgba(255,254,248,.96); border: 1px solid rgba(63,66,66,.18); box-shadow: 0 10px 28px rgba(63,66,66,.12); pointer-events: none; }
.museum-map-tooltip.is-visible { display: grid; }
.museum-map-tooltip strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.museum-map-tooltip span { color: rgba(63,66,66,.64); font-size: 12px; line-height: 1.75; white-space: pre-line; }
.museum-map-key { display: flex; gap: 24px; color: rgba(63,66,66,.42); font-size: 11px; letter-spacing: .08em; }
.museum-map-key span { display: inline-flex; align-items: center; gap: 8px; }
.museum-map-key i { width: 10px; height: 10px; background: rgba(63,66,66,.1); border: 1px solid rgba(63,66,66,.2); }
.museum-map-key i.visited { background: rgba(170,190,145,.78); border-color: rgba(91,119,75,.8); }
.museum-map-empty { min-height: 44vh; display: grid; place-items: center; color: rgba(63,66,66,.4); font-family: var(--serif); font-size: 28px; }
@media (max-width: 700px) { .museum-map-heading { display: grid; gap: 9px; } .museum-map { min-height: 46vh; } .museum-map svg { max-height: none; } }

.friend-card.has-preview { background: #e9e8e0; overflow: hidden; isolation: isolate; }
.friend-card-preview { position: absolute; z-index: -2; top: 0; left: 0; width: 270%; height: 270%; border: 0; pointer-events: none; transform: scale(.371); transform-origin: top left; opacity: .7; filter: saturate(.72) contrast(.94) brightness(1.08); }
.friend-card.has-preview::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(248,247,241,.26), rgba(248,247,241,.06) 40%, rgba(48,51,49,.58)); }
.friend-card.has-preview > span, .friend-card.has-preview > strong, .friend-card.has-preview > i { position: relative; z-index: 1; color: #fffdf7; text-shadow: 0 1px 14px rgba(25,27,24,.36); }
.friend-card.has-preview > span { color: rgba(255,253,247,.78); }
a.friend-card.has-preview:hover { background: #e9e8e0; }

/* Content index: quiet paper depth without changing the editorial grid. */
.about-view {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(214,195,109,.05), transparent 22%, transparent 78%, rgba(184,205,210,.08)),
    repeating-linear-gradient(0deg, transparent 0 74px, rgba(63,66,66,.025) 75px 76px),
    #f3f2eb;
}
.about-view::before {
  content: "";
  position: absolute;
  inset: 80px clamp(24px, 5vw, 72px) 56px;
  pointer-events: none;
  border-top: 1px solid rgba(63,66,66,.1);
  border-bottom: 1px solid rgba(63,66,66,.08);
}
.curate { position: relative; z-index: 1; }
.curate-item {
  border-top: 1px solid rgba(63,66,66,.1);
  border-bottom: 1px solid rgba(63,66,66,.08);
  border-right: 1px solid rgba(63,66,66,.08);
  background: rgba(255,255,255,.18);
}
.curate-item:nth-child(1) { background-color: rgba(222,235,237,.42); }
.curate-item:nth-child(2) { background-color: rgba(245,239,215,.34); }
.curate-item:nth-child(3) { background-color: rgba(225,235,225,.4); }
.curate-item:nth-child(4) { background-color: rgba(239,233,220,.35); }
.curate-item:nth-child(5) { background-color: rgba(227,237,239,.38); }
.curate-item:nth-child(6) { background-color: rgba(244,239,223,.38); }
.curate-item:hover { box-shadow: 0 18px 40px rgba(63,66,66,.08); }
@media (max-width: 700px) {
  .about-view { overflow-y: auto; }
  .about-view::before { inset: 80px 24px 56px; }
  .curate-item { border-right: 0; }
}

.module-page[data-module-page="capture"] { position: relative; overflow: hidden; }
.capture-board { position: relative; z-index: 1; }
.capture-camera { position: absolute; z-index: 0; right: -5vw; bottom: -7vh; width: min(40vw, 540px); aspect-ratio: 1.24; border: 2px solid rgba(63,66,66,.11); border-radius: 8%; pointer-events: none; transform: rotate(-8deg); }
.capture-camera::before { content: ""; position: absolute; width: 40%; aspect-ratio: 1; top: 50%; left: 50%; border: 2px solid rgba(63,66,66,.12); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: inset 0 0 0 min(1.8vw, 22px) rgba(184,205,210,.08); }
.capture-camera::after { content: ""; position: absolute; width: 22%; height: 11%; top: -11%; left: 14%; border: 2px solid rgba(63,66,66,.1); border-bottom: 0; border-radius: 4px 4px 0 0; }
.capture-camera i { position: absolute; width: 7%; aspect-ratio: 1; top: 10%; right: 12%; border: 2px solid rgba(214,195,109,.28); border-radius: 50%; }
.capture-camera b { position: absolute; width: 12%; height: 9%; top: 14%; left: 11%; border: 2px solid rgba(63,66,66,.09); border-radius: 3px; }
@media (max-width: 700px) { .capture-camera { width: 78vw; right: -22vw; bottom: 3vh; opacity: .72; } }

/* Keep the two longest CURATE labels inside their fixed editorial columns. */
.curate-item.academia .long,
.curate-item.ephemera .long {
  font-size: clamp(28px, 4.15vw, 68px);
}
@media (max-width: 700px) {
  .curate-item.academia .long,
  .curate-item.ephemera .long {
    max-width: calc(100% - 28px);
    font-size: clamp(30px, 9vw, 50px);
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* CAPTURE galleries may grow beyond one viewport. */
.module-page[data-module-page="capture"].is-active {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(63,66,66,.24) transparent;
}

/* Expanded module names must stay inside every fixed CURATE column. */
.curate-item .long {
  max-height: calc(100% - 44px);
  max-width: calc(100% - 24px);
  font-size: clamp(27px, 4vw, 64px);
  overflow-wrap: anywhere;
  text-align: center;
}
@media (max-width: 700px) {
  .curate-item .long {
    max-height: none;
    max-width: calc(100% - 28px);
    font-size: clamp(27px, 8vw, 46px);
    line-height: 1;
  }
}

/* Expanded words remain one vertical line on desktop. */
@media (min-width: 701px) {
  .curate-item .long {
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .curate-item.academia .long,
  .curate-item.ephemera .long {
    font-size: clamp(25px, 3.7vw, 60px);
  }
}

/* Vertical writing uses height as its inline axis: never let the long names wrap into a second column. */
@media (min-width: 701px) {
  .curate-item.academia .long,
  .curate-item.ephemera .long {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    font-size: clamp(24px, 3vw, 48px) !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all;
  }
}
