@font-face {
  font-family: "Source Han Serif K";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("./assets/fonts/SourceHanSerifK-ExtraLight.otf") format("opentype");
}

@font-face {
  font-family: "Source Han Serif K";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/SourceHanSerifK-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Source Han Serif K";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/SourceHanSerifK-SemiBold.otf") format("opentype");
}

@font-face {
  font-family: "Source Han Serif K";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("./assets/fonts/SourceHanSerifK-Heavy.otf") format("opentype");
}

:root {
  --bg: #faf9f5;
  --theme-blue: #bee1e3;
  --theme-blue-strong: #6e9ca2;
  --theme-blue-soft: rgba(190, 225, 227, 0.74);
  --deep-gray: #292929;
  --ui-gray: var(--deep-gray);
  --ui-gray-soft: rgba(41, 41, 41, 0.32);
  --ui-gray-faint: rgba(41, 41, 41, 0.1);
  --title-gray: rgba(41, 41, 41, 0.2);
  --title-gray-near: rgba(41, 41, 41, 0.52);
  --title-gray-active: var(--deep-gray);
  --title-highlight: rgba(255, 255, 255, 0.98);
  --ink: var(--ui-gray);
  --ink-strong: var(--ui-gray);
  --ink-soft: var(--ui-gray-soft);
  --line: var(--ui-gray-faint);
  --line-dark: #d5d8d2;
  --shadow: rgba(96, 91, 84, 0.09);
  --sans: "Poppins", "Avenir Next", "Helvetica Neue", Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --detail-small: clamp(10px, 0.72vw, 13px);
  --detail-tiny: clamp(9px, 0.58vw, 11px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    "Source Han Serif K", Georgia, "Times New Roman", "Songti SC", serif;
  overflow-x: clip;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  display: none;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: -16vmax;
  background:
    radial-gradient(ellipse 42% 22% at 18% 32%, rgba(203, 232, 227, 0.28), transparent 68%),
    radial-gradient(ellipse 36% 20% at 82% 68%, rgba(190, 225, 227, 0.18), transparent 70%),
    linear-gradient(116deg, transparent 0 25%, rgba(203, 232, 227, 0.12) 35%, transparent 48% 58%, rgba(203, 232, 227, 0.09) 68%, transparent 82%);
  filter: blur(24px);
  opacity: 0.82;
  transform: translate3d(-2%, -1%, 0) scale(1.02);
  animation: windMist 28s ease-in-out infinite alternate;
}

body::after {
  inset: -20vh -26vw;
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0 17vw,
      rgba(190, 225, 227, 0.1) 19vw,
      rgba(190, 225, 227, 0.04) 22vw,
      transparent 27vw
    );
  filter: blur(18px);
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0 12%, #000 28% 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0 12%, #000 28% 78%, transparent 100%);
  transform: translate3d(-12%, 0, 0) skewY(-3deg);
  animation: windCurrent 24s linear infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

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

.site-shell {
  min-height: 100vh;
  background: transparent;
}

.home-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(14px, 1.8vw, 26px) clamp(28px, 4.2vw, 68px) 0;
  background: var(--bg);
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 34px;
  padding-bottom: clamp(7px, 0.74vw, 12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink-strong);
  font-size: clamp(15px, 1.06vw, 19px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.brand:hover,
.brand:focus-visible,
.home-nav a:hover,
.home-nav a:focus-visible,
.home-nav a.is-current {
  color: var(--deep-gray);
  outline: none;
}

.home-nav {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(24px, 4.4vw, 70px);
  padding-bottom: 0;
  color: var(--ui-gray-soft);
  font-size: clamp(15px, 1.06vw, 19px);
  font-weight: 200;
  line-height: 1.08;
  white-space: nowrap;
}

.home-nav a {
  color: var(--ui-gray-soft);
  letter-spacing: 0;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.home-nav a.is-current {
  color: var(--deep-gray);
  opacity: 1;
}

.home-nav span {
  font-weight: 400;
}

.home-nav span::after {
  content: "/";
  margin: 0 0.36em;
  color: inherit;
  opacity: 0.56;
}

.scroll-hero {
  position: relative;
  height: 1420vh;
  background: transparent;
}

.sticky-scene {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  perspective: 980px;
  background: transparent;
}

.rotator-gallery {
  position: absolute;
  inset: 0;
  z-index: 12;
  transform-style: preserve-3d;
}

.rotor-card {
  --tx: 0px;
  --ty: 0px;
  --tz: 0px;
  --rx: 0deg;
  --ry: 0deg;
  --rz: 0deg;
  --scale: 1;
  --opacity: 1;
  --blur: 0px;
  --brightness: 1;
  --saturate: 1;
  --glow-opacity: 0;
  --cover-image: none;
  --cover-size: cover;
  --cover-position: center;
  --placeholder: linear-gradient(135deg, #f1eee7, #ffffff);
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(320px, min(38vw, 76vh), 700px);
  aspect-ratio: 1.42 / 1;
  opacity: var(--opacity);
  filter:
    blur(var(--blur))
    brightness(var(--brightness))
    saturate(var(--saturate));
  outline: none;
  pointer-events: none;
  transform:
    translate(-50%, -50%)
    translate3d(var(--tx), var(--ty), var(--tz))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz))
    scale(var(--scale));
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.rotor-card.is-active {
  pointer-events: auto;
  cursor: pointer;
}

.rotor-card:focus-visible .image-surface {
  outline: 2px solid #aaa69e;
  outline-offset: 8px;
}

.image-surface {
  position: absolute;
  inset: -2px;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-image:
    var(--cover-image),
    var(--placeholder);
  background-size:
    var(--cover-size),
    cover;
  background-position:
    var(--cover-position),
    center;
  background-color: var(--cover-base, transparent);
  box-shadow: 0 28px 58px rgba(96, 91, 84, 0.1);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.image-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--glow-opacity);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.44), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 56%),
    radial-gradient(circle at 50% 50%, rgba(203, 232, 227, 0.28), transparent 64%);
  mix-blend-mode: screen;
  transition: opacity 140ms linear;
}

.image-label {
  display: none;
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 18px;
  max-width: calc(100% - 40px);
  color: rgba(191, 132, 132, 0.44);
  font-size: clamp(18px, 2.15vw, 34px);
  font-weight: 400;
  line-height: 0.98;
}

.cover-lighbo {
  --cover-image: url("./首页卡片封面/lighbo-from-original-watercolor4x3.png");
}

.cover-poursona {
  --cover-image: url("./首页卡片封面/poursona-from-original-watercolor4x3.png");
}

.cover-socrates {
  --cover-image: url("./首页卡片封面/socrate-from-original-watercolor4x3.png");
}

.cover-comac {
  --cover-image: url("./首页卡片封面/comac's cmf-from-original-watercolor4x3.png");
}

.cover-digital {
  --cover-image: url("./首页卡片封面/digital craft-from-original-watercolor4x3.png");
}

.cover-spiral {
  --cover-image: url("./首页卡片封面/spiral-from-original-watercolor4x3.png");
}

.cover-mouse {
  --cover-image: url("./首页卡片封面/THREE-BODY mouse-series.png");
}

.cover-hoto {
  --cover-image: url("./首页卡片封面/hoto实习-from-original-watercolor4x3.png");
}

.cover-dianping {
  --cover-image: url("./首页卡片封面/美团实习-from-original-watercolor4x3.png");
}

.cover-student {
  --cover-image: url("./首页卡片封面/学生时代-bluepink-watercolor4x3.png");
}

.cover-interest {
  --cover-image: url("./首页卡片封面/兴趣史-from-original-watercolor4x3.png");
}

.cover-waacking {
  --placeholder:
    radial-gradient(circle at 34% 36%, rgba(133, 131, 127, 0.28), transparent 15%),
    linear-gradient(145deg, #fbfaf6, #e4e0d8);
}

.cover-reptile {
  --placeholder:
    radial-gradient(circle at 68% 38%, rgba(133, 131, 127, 0.24), transparent 18%),
    linear-gradient(145deg, #ffffff, #e8e3da);
}

.experience-mark {
  position: absolute;
  z-index: 36;
  top: 50%;
  left: 0;
  width: 100vw;
  padding-block: 0.24em;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(calc(-50% - 0.04em));
}

.experience-highlight {
  display: none;
  z-index: 37;
  clip-path: inset(0 var(--clip-right, 50vw) 0 var(--clip-left, 50vw));
  mix-blend-mode: plus-lighter;
}

.experience-track {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 1.8vw, 34px);
  width: max-content;
  will-change: transform;
}

.experience-track span {
  display: inline-flex;
  align-items: baseline;
  color: var(--title-gray);
  font-size: clamp(40px, 5.8vw, 104px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 1;
  filter: drop-shadow(0 1px 0 rgba(78, 97, 99, 0.1));
  transition:
    opacity 220ms ease,
    color 220ms ease,
    filter 220ms ease;
}

.experience-track span:not(:last-child)::after {
  content: "/";
  margin-left: 0.78em;
  color: var(--title-gray);
  opacity: 0.72;
}

.experience-track span.is-near {
  color: var(--title-gray-near);
  opacity: 1;
}

.experience-track span.is-current {
  color: var(--title-gray-active);
  opacity: 1;
  filter: blur(0);
}

.experience-highlight .experience-track span {
  color: transparent;
  opacity: 0;
  filter: none;
  text-shadow: none;
}

.experience-highlight .experience-track span::after {
  color: transparent;
  opacity: 0;
}

.experience-highlight .experience-track span.is-current {
  color: var(--title-highlight);
  opacity: 1;
  -webkit-text-stroke: 0.35px rgba(86, 96, 96, 0.18);
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.72),
    0 0 8px rgba(190, 225, 227, 0.5),
    0 1px 0 rgba(82, 92, 92, 0.18);
}

.experience-highlight .experience-track span.is-current::after {
  color: var(--title-highlight);
  opacity: 1;
}

.chapter-cta {
  position: absolute;
  z-index: 48;
  left: clamp(28px, 4.2vw, 68px);
  bottom: clamp(14px, 2vw, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--ui-gray-soft);
  background: transparent;
  font-size: clamp(17px, 1.25vw, 23px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.chapter-cta:hover,
.chapter-cta:focus-visible {
  color: var(--deep-gray);
  outline: none;
  transform: translateY(-2px);
}

.chapter-cta:active {
  color: var(--deep-gray);
  opacity: 0.72;
}

.chapter-cta span:last-child {
  padding-bottom: 1px;
  font-size: 0.88em;
}

.content-section {
  min-height: 78vh;
  padding: clamp(86px, 12vw, 150px) clamp(24px, 7vw, 100px);
  border-top: 1px solid var(--line);
  background: transparent;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content-section h2 {
  max-width: 1180px;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-page {
  min-height: 100vh;
  background: var(--bg);
}

.detail-shell {
  min-height: 100vh;
  padding:
    clamp(108px, 14vw, 180px)
    clamp(28px, 6vw, 96px)
    clamp(48px, 7vw, 96px);
}

.detail-back {
  display: inline-flex;
  margin-bottom: clamp(34px, 5vw, 70px);
  color: var(--ui-gray-soft);
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.detail-back:hover,
.detail-back:focus-visible {
  color: var(--deep-gray);
  outline: none;
  transform: translateY(-2px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: end;
}

.detail-copy {
  max-width: 520px;
}

.detail-kicker {
  margin: 0 0 18px;
  color: var(--ui-gray-soft);
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  line-height: 1.45;
}

.detail-copy h1 {
  margin: 0;
  color: var(--deep-gray);
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 900;
  line-height: 0.98;
}

.detail-copy p:last-child {
  margin: 26px 0 0;
  color: rgba(41, 41, 41, 0.48);
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 400;
  line-height: 1.8;
}

.detail-cover {
  --detail-cover:
    linear-gradient(135deg, rgba(190, 225, 227, 0.32), transparent 44%),
    linear-gradient(145deg, #ffffff, #e8e8e1);
  min-height: clamp(280px, 46vw, 640px);
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 80px rgba(41, 41, 41, 0.09);
}

.project-page {
  min-height: 100vh;
  background: transparent;
}

.project-shell {
  display: grid;
  grid-template-columns: clamp(180px, 19vw, 300px) minmax(0, 1fr);
  gap: clamp(42px, 6vw, 110px);
  min-height: 100vh;
  padding:
    clamp(108px, 12vw, 154px)
    clamp(28px, 4.2vw, 68px)
    clamp(58px, 8vw, 112px);
}

.project-rail {
  position: sticky;
  top: clamp(104px, 11vw, 146px);
  align-self: start;
  min-height: calc(100vh - 170px);
  color: var(--ui-gray-soft);
}

.project-mark {
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 116px);
  aspect-ratio: 1;
  margin: 0 auto clamp(48px, 6vw, 82px);
  border-radius: 34% 48% 42% 36%;
  color: rgba(41, 41, 41, 0.28);
  background:
    radial-gradient(circle at 32% 28%, rgba(236, 197, 197, 0.48), transparent 33%),
    radial-gradient(circle at 64% 58%, rgba(203, 232, 227, 0.62), transparent 42%),
    rgba(255, 255, 255, 0.38);
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-side-nav {
  display: grid;
  gap: clamp(14px, 1.5vw, 21px);
  max-width: 120px;
  margin: 0 auto;
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  line-height: 1.1;
}

.project-side-nav a {
  color: var(--ui-gray-soft);
  transition: color 180ms ease;
}

.project-side-nav a:hover,
.project-side-nav a:focus-visible,
.project-side-nav a.is-current {
  color: var(--deep-gray);
  outline: none;
}

.project-article {
  max-width: min(1160px, 74vw);
  padding-bottom: clamp(46px, 8vw, 96px);
}

.project-hero {
  padding-top: clamp(34px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.project-intro {
  max-width: 760px;
  margin-bottom: clamp(72px, 9vw, 128px);
}

.project-kicker {
  margin: 0 0 12px;
  color: rgba(41, 41, 41, 0.46);
  font-size: clamp(13px, 0.92vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-intro h1 {
  margin: 0;
  color: var(--deep-gray);
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 600;
  line-height: 1.04;
}

.project-intro p {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(41, 41, 41, 0.68);
  font-size: clamp(17px, 1.34vw, 24px);
  font-weight: 400;
  line-height: 1.65;
}

.project-links {
  display: grid;
  gap: 11px;
  margin-top: 30px;
  color: rgba(41, 41, 41, 0.48);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.3;
}

.project-links a {
  width: fit-content;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: var(--deep-gray);
  outline: none;
  transform: translateX(2px);
}

.project-cover-frame {
  margin: 0;
}

.project-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 35vw, 560px);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, rgba(236, 197, 197, 0.4), transparent 25%),
    radial-gradient(circle at 72% 64%, rgba(203, 232, 227, 0.5), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(236, 233, 224, 0.52));
  box-shadow: 0 26px 74px rgba(41, 41, 41, 0.08);
}

.project-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(41, 41, 41, 0.16) 50%, transparent calc(50% + 0.5px)),
    repeating-linear-gradient(112deg, transparent 0 92px, rgba(255, 255, 255, 0.22) 96px, transparent 132px);
  opacity: 0.62;
}

.project-placeholder span {
  position: relative;
  color: rgba(41, 41, 41, 0.34);
  font-size: clamp(15px, 1.1vw, 19px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-placeholder-main {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.project-cover-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: rgba(41, 41, 41, 0.54);
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 400;
  line-height: 1.2;
}

.project-cover-frame figcaption span:first-child {
  color: var(--deep-gray);
  font-style: italic;
  font-weight: 600;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: clamp(18px, 2vw, 30px);
  margin-top: clamp(80px, 10vw, 140px);
}

.project-gallery .project-placeholder {
  min-height: clamp(260px, 28vw, 420px);
}

.project-placeholder-wide {
  grid-row: span 2;
  min-height: clamp(420px, 57vw, 850px);
}

.project-notes {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(280px, 1fr);
  gap: clamp(26px, 4vw, 72px);
  margin-top: clamp(78px, 10vw, 136px);
  padding-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.project-notes h2 {
  margin: 0;
  color: var(--deep-gray);
  font-size: clamp(28px, 3.4vw, 54px);
  font-weight: 600;
  line-height: 1.12;
}

.project-notes p:last-child {
  margin: 0;
  color: rgba(41, 41, 41, 0.58);
  font-size: clamp(17px, 1.24vw, 21px);
  font-weight: 400;
  line-height: 1.85;
}

.project-back {
  display: inline-flex;
  margin-top: clamp(68px, 8vw, 120px);
  color: rgba(41, 41, 41, 0.46);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-back:hover,
.project-back:focus-visible {
  color: var(--deep-gray);
  outline: none;
  transform: translateY(-2px);
}

body.project-page::before,
body.project-page::after,
body.detail-page::before,
body.detail-page::after {
  display: none;
}

body.project-page {
  background: var(--bg);
}

.project-page .home-header {
  background: var(--bg);
  backdrop-filter: none;
}

.project-book-shell {
  grid-template-columns: clamp(160px, 18vw, 260px) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 132px);
  padding-top: clamp(92px, 7.8vw, 112px);
  padding-bottom: clamp(42px, 5vw, 72px);
}

.project-branch-rail {
  top: clamp(110px, 10vw, 138px);
  min-height: 0;
}

.project-branch-nav {
  display: grid;
  gap: 13px;
  max-width: 180px;
  margin-top: clamp(28px, 4.6vh, 54px);
  color: rgba(41, 41, 41, 0.32);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
  line-height: 1.48;
}

.project-branch-nav a,
.project-branch-nav button,
.project-branch-nav span {
  width: fit-content;
  color: rgba(41, 41, 41, 0.32);
  font: inherit;
}

.project-branch-nav a,
.project-branch-nav span {
  display: block;
}

.project-branch-nav button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-branch-nav a:hover,
.project-branch-nav a:focus-visible,
.project-branch-nav button:hover,
.project-branch-nav button:focus-visible {
  color: var(--deep-gray);
  outline: none;
  transform: translateX(2px);
}

.branch-heading {
  margin-bottom: clamp(44px, 5vw, 70px);
}

.branch-group {
  display: grid;
  gap: 6px;
}

.branch-year,
.branch-project {
  transition: color 180ms ease;
}

.branch-year {
  font-size: var(--detail-tiny);
  font-weight: 600;
}

.branch-group.is-current .branch-year,
.branch-project.is-current {
  color: var(--deep-gray);
}

.branch-project {
  margin-left: 4px;
  font-size: var(--detail-small);
}

.project-book-article {
  max-width: none;
  padding-bottom: clamp(56px, 8vw, 120px);
}

.book-landing {
  display: grid;
  min-height: auto;
  align-content: start;
  padding-top: clamp(28px, 4.6vh, 54px);
}

.project-book-article {
  --book-width: clamp(620px, 55vw, 810px);
  --book-right-offset: clamp(18px, 4.2vw, 72px);
}

.project-book {
  --book-page-background: url("../首页卡片封面/poursona-from-original-watercolor4x3.png");
  --book-page-size: cover;
  --book-page-position: center;
  width: var(--book-width);
  margin: 0 var(--book-right-offset) 0 auto;
  perspective: 1800px;
}

.book-page-system {
  --book-page-background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) calc(50% - 1px), rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) calc(50% + 1px)),
    linear-gradient(135deg, rgba(190, 225, 227, 0.28), rgba(250, 249, 245, 0.92));
}

.book-page-process {
  --book-page-background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) calc(50% - 1px), rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0) calc(50% + 1px)),
    linear-gradient(145deg, rgba(236, 197, 197, 0.3), rgba(250, 249, 245, 0.94));
}

.book-page-context {
  --book-page-background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) calc(50% - 1px), rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0) calc(50% + 1px)),
    linear-gradient(120deg, rgba(190, 225, 227, 0.22), rgba(236, 197, 197, 0.22), rgba(250, 249, 245, 0.95));
}

.book-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.55;
  background: #f5f2ea;
  box-shadow:
    0 32px 72px rgba(41, 41, 41, 0.12),
    0 2px 10px rgba(41, 41, 41, 0.04);
  transform-style: preserve-3d;
}

.book-art,
.book-flip-sheet {
  background-image: var(--book-page-background);
  background-size: var(--book-page-size);
  background-position: var(--book-page-position);
}

.book-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    filter 260ms ease,
    opacity 260ms ease;
}

.book-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.book-art::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    -16px 0 28px rgba(0, 0, 0, 0.12),
    16px 0 32px rgba(255, 255, 255, 0.34);
  transform: translateX(-0.5px);
}

.book-page-label {
  position: relative;
  z-index: 1;
  color: rgba(41, 41, 41, 0.36);
  font-size: clamp(17px, 1.26vw, 22px);
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
}

.book-page-cover .book-page-label {
  opacity: 0;
}

.book-flip-sheet {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 50%;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.book-flip-sheet-next {
  right: 0;
  background-size: 200% 100%;
  background-position: right center;
  transform-origin: left center;
}

.book-flip-sheet-prev {
  left: 0;
  background-size: 200% 100%;
  background-position: left center;
  transform-origin: right center;
}

.project-book.is-turning-next .book-flip-sheet-next {
  animation: bookTurnNext 680ms cubic-bezier(0.62, 0, 0.28, 1) both;
}

.project-book.is-turning-prev .book-flip-sheet-prev {
  animation: bookTurnPrev 680ms cubic-bezier(0.62, 0, 0.28, 1) both;
}

.book-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: 50%;
  padding: 0;
  border: 0;
  background: transparent;
}

.book-hit::after {
  position: absolute;
  top: 50%;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 900;
  opacity: 0;
  text-shadow: 0 4px 18px rgba(41, 41, 41, 0.32);
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.book-hit-left {
  left: 0;
  cursor: w-resize;
}

.book-hit-left::after {
  content: "◀";
  left: clamp(18px, 2vw, 34px);
}

.book-hit-right {
  right: 0;
  cursor: e-resize;
}

.book-hit-right::after {
  content: "▶";
  right: clamp(18px, 2vw, 34px);
}

.book-hit:hover::after,
.book-hit:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.book-hit:focus-visible {
  outline: none;
}

.book-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(12px, 1.35vw, 20px);
  color: rgba(41, 41, 41, 0.58);
}

.book-caption h1 {
  margin: 0;
  color: var(--deep-gray);
  font-family: "Damion", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: var(--detail-small);
  font-style: normal;
  font-weight: 400;
  line-height: 1.1;
}

.book-caption span {
  font-family: var(--sans);
  font-size: var(--detail-tiny);
  font-style: normal;
  font-weight: 600;
  line-height: 1.1;
}

.book-count {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
  width: var(--book-width);
  margin: clamp(18px, 2vw, 28px) var(--book-right-offset) 0 auto;
  margin-left: auto;
  color: rgba(41, 41, 41, 0.48);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
  line-height: 1;
}

.book-count-arrow {
  font-size: 0.64em;
  font-weight: 900;
  transform: translateY(-0.02em);
}

.poursona-story,
.project-story {
  width: min(var(--book-width), 100%);
  margin: clamp(96px, 14vw, 190px) var(--book-right-offset) 0 auto;
  padding-top: clamp(34px, 4vw, 58px);
  border-top: 1px solid var(--line);
}

.story-header {
  max-width: 860px;
}

.story-header h2 {
  margin: 0;
  color: var(--deep-gray);
  font-family:
    "Source Han Serif K", Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 600;
  line-height: 1.06;
}

.story-subtitle {
  margin: 18px 0 0;
  color: var(--deep-gray);
  font-family: var(--sans);
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 500;
  line-height: 1.62;
}

.story-meta,
.story-tags {
  margin: 12px 0 0;
  color: rgba(41, 41, 41, 0.5);
  font-family: var(--sans);
  font-size: clamp(12px, 0.92vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.72;
}

.story-tags {
  margin-top: 4px;
}

.story-copy {
  max-width: 860px;
  margin-top: clamp(52px, 6vw, 92px);
}

.story-copy p {
  margin: 0;
  color: rgba(41, 41, 41, 0.74);
  font-family:
    "Source Han Serif K", Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(17px, 1.22vw, 22px);
  font-weight: 400;
  line-height: 1.96;
}

.story-copy p + p {
  margin-top: 1.1em;
}

.story-copy ul {
  margin: 1.15em 0;
  padding-left: 1.35em;
  color: rgba(41, 41, 41, 0.68);
  font-family:
    "Source Han Serif K", Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(16px, 1.12vw, 20px);
  font-weight: 400;
  line-height: 1.9;
}

.story-copy li + li {
  margin-top: 0.42em;
}

.story-video,
.story-media-stack {
  margin: clamp(48px, 6vw, 86px) 0 0;
}

.story-video video,
.story-media-stack img {
  display: block;
  width: 100%;
  height: auto;
  background: #f1eee8;
  box-shadow:
    0 24px 58px rgba(41, 41, 41, 0.1),
    0 2px 8px rgba(41, 41, 41, 0.04);
}

.story-media-stack {
  display: grid;
  gap: clamp(28px, 4vw, 58px);
}

.about-shell,
.internship-shell {
  grid-template-columns: clamp(220px, 27vw, 430px) minmax(0, 1fr);
  align-items: center;
}

.about-title-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - clamp(190px, 18vw, 250px));
}

.about-kicker,
.internship-heading,
.internship-company {
  margin: 0;
  color: rgba(41, 41, 41, 0.34);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
  line-height: 1.5;
}

.about-title-rail h1 {
  margin: clamp(18px, 2vw, 30px) 0 clamp(24px, 3vw, 46px);
  color: var(--deep-gray);
  font-size: clamp(56px, 7.4vw, 126px);
  font-weight: 600;
  line-height: 1.04;
}

.about-title-rail p:last-child {
  max-width: 370px;
  margin: 0;
  color: rgba(41, 41, 41, 0.34);
  font-size: clamp(15px, 1.04vw, 18px);
  line-height: 1.86;
}

.about-profile-content {
  display: flex;
  align-items: center;
  min-height: calc(100vh - clamp(190px, 18vw, 250px));
}

.about-card {
  width: min(780px, 100%);
  margin-left: auto;
}

.about-card-top {
  display: grid;
  grid-template-columns: clamp(150px, 15vw, 220px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 26%;
  box-shadow:
    0 22px 60px rgba(41, 41, 41, 0.11),
    0 2px 8px rgba(41, 41, 41, 0.04);
}

.about-eyebrow,
.about-pronoun,
.about-summary,
.about-contact,
.about-education {
  font-family: var(--sans);
}

.about-eyebrow {
  margin: 0 0 10px;
  color: rgba(41, 41, 41, 0.36);
  font-size: var(--detail-tiny);
  font-weight: 600;
  text-transform: uppercase;
}

.about-intro h2 {
  margin: 0;
  color: var(--deep-gray);
  font-family: "Source Han Serif K", Georgia, serif;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.12;
}

.about-pronoun {
  margin: 6px 0 0;
  color: rgba(41, 41, 41, 0.42);
  font-size: var(--detail-small);
}

.about-summary {
  max-width: 500px;
  margin: clamp(18px, 2vw, 30px) 0 0;
  color: rgba(41, 41, 41, 0.68);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.82;
}

.about-contact {
  display: grid;
  gap: 8px;
  margin: clamp(22px, 2.6vw, 38px) 0 0;
  color: rgba(41, 41, 41, 0.54);
  font-size: var(--detail-small);
  line-height: 1.45;
}

.about-contact div {
  display: grid;
  grid-template-columns: minmax(78px, 0.28fr) 1fr;
  gap: 16px;
}

.about-contact dt,
.about-contact dd {
  margin: 0;
}

.about-contact dt {
  color: rgba(41, 41, 41, 0.32);
}

.about-contact dd {
  color: rgba(41, 41, 41, 0.62);
}

.about-education {
  margin-top: clamp(76px, 8vw, 124px);
  padding-top: clamp(24px, 3vw, 42px);
  border-top: 1px solid var(--line);
}

.about-section-title {
  margin: 0 0 clamp(24px, 2.7vw, 38px);
  color: rgba(41, 41, 41, 0.38);
  font-size: var(--detail-tiny);
  font-weight: 700;
  text-transform: uppercase;
}

.education-item {
  display: grid;
  grid-template-columns: clamp(118px, 10vw, 160px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 54px);
  color: rgba(41, 41, 41, 0.58);
  font-size: var(--detail-small);
  line-height: 1.72;
}

.education-item + .education-item {
  margin-top: clamp(22px, 2.4vw, 36px);
}

.education-time {
  color: rgba(41, 41, 41, 0.42);
}

.education-item h3,
.education-item p {
  margin: 0;
}

.education-item h3 {
  color: var(--deep-gray);
  font-size: clamp(14px, 1.02vw, 17px);
  font-weight: 600;
  line-height: 1.48;
}

.education-item p + p {
  margin-top: 5px;
}

.internship-rail {
  min-height: calc(100vh - clamp(190px, 18vw, 250px));
}

.internship-nav {
  display: grid;
  gap: clamp(12px, 1.3vw, 18px);
  color: rgba(41, 41, 41, 0.26);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 600;
}

.internship-heading {
  margin-bottom: clamp(44px, 7vw, 92px);
}

.internship-nav a {
  width: fit-content;
  color: rgba(41, 41, 41, 0.28);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.internship-nav a:hover,
.internship-nav a:focus-visible,
.internship-nav a.is-current {
  color: var(--deep-gray);
  outline: none;
}

.internship-nav a:hover,
.internship-nav a:focus-visible {
  transform: translateX(2px);
}

.internship-article {
  max-width: min(1060px, 68vw);
}

.internship-cover {
  width: min(820px, 100%);
  margin: 0 0 clamp(54px, 6vw, 92px) auto;
  box-shadow:
    0 26px 72px rgba(41, 41, 41, 0.08),
    0 2px 8px rgba(41, 41, 41, 0.04);
}

.internship-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.internship-story {
  width: min(820px, 100%);
  margin: 0 0 0 auto;
  padding-top: clamp(30px, 3.4vw, 48px);
}

.internship-company {
  margin-bottom: 12px;
  color: rgba(41, 41, 41, 0.58);
}

.internship-copy {
  margin-top: clamp(38px, 5vw, 72px);
}

.internship-copy strong {
  color: var(--deep-gray);
  font-weight: 600;
}

.student-book-shell {
  grid-template-columns: clamp(180px, 19vw, 300px) minmax(0, 1fr);
}

.student-title-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - clamp(190px, 18vw, 250px));
}

.student-title-kicker {
  margin: 0 0 clamp(26px, 3vw, 44px);
  color: rgba(41, 41, 41, 0.32);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
}

.student-title-rail h1 {
  max-width: none;
  margin: 0;
  color: var(--deep-gray);
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

.marginalia-subnav {
  display: grid;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 44px);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
  line-height: 1.5;
}

.marginalia-subnav a {
  width: fit-content;
  color: rgba(41, 41, 41, 0.28);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.marginalia-subnav a:hover,
.marginalia-subnav a:focus-visible,
.marginalia-subnav a.is-current {
  color: var(--deep-gray);
  outline: none;
}

.marginalia-subnav a:hover,
.marginalia-subnav a:focus-visible {
  transform: translateX(2px);
}

.student-book-list {
  display: none;
  gap: 10px;
  margin-top: clamp(42px, 5vw, 72px);
  font-family: var(--sans);
  font-size: var(--detail-small);
}

.student-book-list button {
  display: flex;
  gap: 9px;
  align-items: baseline;
  width: fit-content;
  padding: 0;
  border: 0;
  color: rgba(41, 41, 41, 0.25);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.student-book-list button:hover,
.student-book-list button:focus-visible,
.student-book-list button.is-current {
  color: var(--deep-gray);
  outline: none;
}

.student-book-list button:hover,
.student-book-list button:focus-visible {
  transform: translateX(2px);
}

.student-book-list span {
  min-width: 2ch;
  font-weight: 600;
}

.student-book-article {
  --book-width: clamp(620px, 55vw, 810px);
  --book-right-offset: clamp(18px, 4.2vw, 72px);
  display: grid;
  align-content: start;
  max-width: none;
  min-height: auto;
  padding-top: clamp(28px, 4.6vh, 54px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.student-open-book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: var(--book-width);
  min-height: 0;
  margin: 0 var(--book-right-offset) 0 auto;
  aspect-ratio: 16 / 9.55;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 30px 96px rgba(41, 41, 41, 0.08),
    0 2px 8px rgba(41, 41, 41, 0.04);
}

.student-open-book::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: 1px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.student-map-leaf {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f4f3ec;
}

.student-map-leaf img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(1.13);
}

.student-map-leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(250, 249, 245, 0.12), transparent 38%),
    radial-gradient(circle at 52% 46%, transparent 38%, rgba(250, 249, 245, 0.13));
  pointer-events: none;
}

.student-map-leaf figcaption {
  position: absolute;
  left: clamp(20px, 2.4vw, 34px);
  bottom: clamp(18px, 2.2vw, 30px);
  z-index: 2;
  display: grid;
  gap: 4px;
  color: rgba(41, 41, 41, 0.44);
  font-family: var(--sans);
  font-size: var(--detail-tiny);
}

.student-map-leaf figcaption span:first-child {
  color: rgba(41, 41, 41, 0.62);
  font-family: "Source Han Serif K", Georgia, serif;
  font-size: var(--detail-small);
}

.student-text-leaf {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(34px, 4vw, 62px) clamp(28px, 3.6vw, 52px);
  background: rgba(250, 249, 245, 0.9);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.student-text-leaf.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.student-page-kicker {
  margin: 0 0 clamp(16px, 1.8vw, 28px);
  color: rgba(41, 41, 41, 0.34);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
}

.student-text-leaf h1 {
  max-width: 9em;
  margin: 0;
  color: var(--deep-gray);
  font-size: clamp(32px, 3.6vw, 62px);
  font-weight: 600;
  line-height: 1.16;
}

.student-page-copy {
  max-width: 34em;
  margin-top: 0;
}

.student-page-copy p {
  margin: 0;
  color: rgba(41, 41, 41, 0.72);
  font-size: clamp(14px, 0.98vw, 16px);
  font-weight: 400;
  line-height: 1.94;
}

.student-page-copy p + p {
  margin-top: 1em;
}

.student-book-hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 28%;
  border: 0;
  background: transparent;
}

.student-book-hotspot-prev {
  left: 0;
  cursor: w-resize;
}

.student-book-hotspot-next {
  right: 0;
  cursor: e-resize;
}

.student-book-meta {
  display: none;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(14px, 1.6vw, 22px);
  color: rgba(41, 41, 41, 0.44);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
}

.student-book-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
  width: var(--book-width);
  margin: clamp(24px, 3vw, 42px) var(--book-right-offset) 0 auto;
  color: rgba(41, 41, 41, 0.48);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 500;
}

.student-book-controls button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.student-book-controls button:hover,
.student-book-controls button:focus-visible {
  color: var(--deep-gray);
  outline: none;
  transform: translateY(-1px);
}

.student-book-controls span[aria-hidden="true"] {
  font-size: 0.78em;
  font-weight: 900;
}

.outside-title-rail {
  position: relative;
  overflow: visible;
}

.outside-stickers {
  position: relative;
  width: min(320px, 100%);
  height: clamp(230px, 28vw, 390px);
  margin-top: clamp(30px, 4.8vw, 72px);
}

.outside-sticker {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(41, 41, 41, 0.08));
}

.sticker-gecko-plate {
  top: 0;
  left: 8%;
  width: clamp(96px, 11vw, 148px);
  transform: rotate(-10deg);
}

.sticker-gecko-hand {
  top: 28%;
  right: -4%;
  width: clamp(118px, 14vw, 188px);
  transform: rotate(8deg);
}

.sticker-gecko-bowl {
  right: 24%;
  bottom: 0;
  width: clamp(88px, 10vw, 132px);
  transform: rotate(-6deg);
}

.sticker-friends {
  left: 0;
  bottom: 16%;
  width: clamp(62px, 7vw, 92px);
  transform: rotate(5deg);
}

.sticker-host {
  top: 12%;
  right: 32%;
  width: clamp(58px, 6.8vw, 86px);
  transform: rotate(11deg);
}

.outside-video-book {
  background: rgba(255, 255, 255, 0.42);
}

.outside-video-leaf {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #f4f3ec;
}

.outside-video-leaf video {
  display: block;
  width: 100%;
  height: 100%;
  background: #f4f3ec;
  object-fit: cover;
}

.marginalia-page {
  background: var(--bg);
}

.marginalia-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 55vw) minmax(360px, 1fr);
  gap: clamp(42px, 4.8vw, 86px);
  min-height: 100vh;
  padding: clamp(56px, 5.4vw, 76px) clamp(34px, 4.6vw, 78px) 0 0;
  overflow: hidden;
  background: var(--bg);
}

.memory-panel,
.memory-text-panel {
  position: relative;
  z-index: 8;
}

.memory-panel {
  align-self: center;
  color: var(--ui-gray-soft);
}

.memory-text-panel {
  align-self: center;
  max-width: min(44vw, 650px);
  padding: clamp(26px, 4vw, 64px) 0 clamp(28px, 4vw, 66px);
  color: rgba(41, 41, 41, 0.86);
}

.memory-kicker {
  margin: 0 0 18px;
  color: var(--deep-gray);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 400;
}

.memory-panel h1 {
  margin: 0 0 28px;
  color: var(--deep-gray);
  font-size: clamp(34px, 3.6vw, 62px);
  font-weight: 400;
  line-height: 1;
}

.memory-panel p {
  max-width: 20em;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 300;
  line-height: 1.9;
}

.memory-text-panel p {
  margin: 0 0 clamp(16px, 1.48vw, 26px);
  font-size: clamp(12px, 0.82vw, 15px);
  font-weight: 400;
  line-height: 2.05;
  letter-spacing: 0.01em;
}

.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.memory-actions-stage {
  position: absolute;
  z-index: 9;
  top: clamp(18px, 2.6vw, 42px);
  left: clamp(18px, 3.2vw, 58px);
  margin-top: 0;
}

.memory-button {
  min-width: 88px;
  padding: 9px 16px 10px;
  border: 1px solid rgba(41, 41, 41, 0.13);
  border-radius: 999px;
  color: var(--ui-gray-soft);
  background: rgba(255, 255, 255, 0.38);
  font-family: var(--sans);
  font-size: var(--detail-small);
  font-weight: 300;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.memory-button:hover,
.memory-button:focus-visible {
  color: var(--deep-gray);
  border-color: rgba(41, 41, 41, 0.3);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.memory-back {
  display: inline-flex;
  margin-top: 42px;
  color: var(--ui-gray-soft);
  font-family: var(--sans);
  font-size: var(--detail-small);
  transition: color 180ms ease;
}

.memory-back:hover,
.memory-back:focus-visible {
  color: var(--deep-gray);
  outline: none;
}

.memory-stage {
  --map-scale: 1;
  position: relative;
  min-height: calc(100vh - clamp(56px, 5.4vw, 76px));
  overflow: hidden;
  isolation: isolate;
}

.memory-stage::before {
  content: "";
  position: absolute;
  inset: 10% 7% 8%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 45% 50%, rgba(190, 225, 227, 0.16), transparent 48%),
    radial-gradient(circle at 64% 42%, rgba(246, 226, 226, 0.18), transparent 45%);
  filter: blur(32px);
  opacity: 0.64;
  pointer-events: none;
}

.memory-map-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f1f2ec;
  box-shadow:
    0 28px 78px rgba(74, 82, 79, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  cursor: zoom-in;
  transform: scale(var(--map-scale));
  transform-origin: 42% 50%;
  transition:
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 780ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, opacity, transform;
}

.memory-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 48% 45%, transparent 46%, rgba(250, 249, 245, 0.12));
}

.memory-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-map-frame figcaption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: rgba(41, 41, 41, 0.58);
  font-family: var(--sans);
  font-size: var(--detail-tiny);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.memory-map-frame figcaption span:first-child {
  color: var(--deep-gray);
  font-family: "Source Han Serif K", Georgia, serif;
  font-size: clamp(13px, 1vw, 17px);
  text-transform: none;
}

.memory-hero-copy {
  position: absolute;
  z-index: 7;
  left: clamp(48px, 6.4vw, 118px);
  bottom: clamp(48px, 6vw, 96px);
  width: min(44vw, 620px);
  pointer-events: none;
}

.memory-hero-copy p {
  margin: 0 0 clamp(12px, 1.2vw, 18px);
  color: rgba(41, 41, 41, 0.46);
  font-size: clamp(12px, 0.92vw, 16px);
  font-weight: 400;
}

.memory-hero-copy h1 {
  margin: 0;
  color: rgba(41, 41, 41, 0.92);
  font-size: clamp(66px, 7.8vw, 142px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.memory-hero-copy span {
  display: block;
  max-width: 31em;
  margin-top: clamp(16px, 1.8vw, 28px);
  color: rgba(41, 41, 41, 0.38);
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 400;
  line-height: 1.9;
}

.memory-card {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: clamp(136px, 15vw, 236px);
  margin: 0;
  border-radius: 18px;
  box-shadow:
    0 24px 58px rgba(78, 86, 84, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
}

.memory-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.memory-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 9px 5px;
  border-radius: 999px;
  color: rgba(41, 41, 41, 0.68);
  background: rgba(250, 249, 245, 0.78);
  font-family: var(--sans);
  font-size: var(--detail-tiny);
  opacity: 0;
  transition: opacity 260ms ease;
}

.memory-stage.is-ready .memory-card span {
  opacity: 1;
}

.memory-stage.is-zoomed {
  --map-scale: 1.22;
}

.memory-stage.is-zoomed .memory-map-frame {
  z-index: 6;
  cursor: zoom-out;
  box-shadow:
    0 42px 110px rgba(74, 82, 79, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.memory-stage.is-zoomed .memory-card {
  opacity: 0.2 !important;
}

@keyframes bookTurnNext {
  0% {
    opacity: 1;
    transform: rotateY(0deg);
    filter: brightness(1);
  }

  46% {
    opacity: 1;
    filter: brightness(1.08);
  }

  100% {
    opacity: 0.9;
    transform: rotateY(-178deg);
    filter: brightness(0.94);
  }
}

@keyframes bookTurnPrev {
  0% {
    opacity: 1;
    transform: rotateY(0deg);
    filter: brightness(1);
  }

  46% {
    opacity: 1;
    filter: brightness(1.08);
  }

  100% {
    opacity: 0.9;
    transform: rotateY(178deg);
    filter: brightness(0.94);
  }
}

@keyframes windMist {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(-1deg);
  }

  to {
    transform: translate3d(3%, 2%, 0) scale(1.06) rotate(1deg);
  }
}

@keyframes windCurrent {
  from {
    transform: translate3d(-14%, 1%, 0) skewY(-3deg);
  }

  to {
    transform: translate3d(14%, -1%, 0) skewY(-3deg);
  }
}

@media (max-width: 820px) {
  .home-header {
    padding: 10px 18px 0;
  }

  .header-inner {
    display: grid;
    gap: 12px;
    padding-bottom: 12px;
  }

  .home-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 14px;
  }

  .rotor-card {
    width: clamp(250px, 70vw, 330px);
  }

  .experience-track span {
    font-size: clamp(24px, 7.5vw, 38px);
  }

  .chapter-cta {
    bottom: 22px;
    font-size: 18px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    padding-top: 136px;
  }

  .project-shell {
    display: block;
    padding: 136px 18px 72px;
  }

  .project-book-shell {
    padding-top: 118px;
  }

  .project-rail {
    position: static;
    min-height: 0;
    margin-bottom: 48px;
  }

  .project-mark {
    margin: 0 0 28px;
  }

  .project-side-nav {
    display: flex;
    gap: 18px;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .project-article {
    max-width: none;
  }

  .project-intro {
    margin-bottom: 58px;
  }

  .project-gallery,
  .project-notes {
    grid-template-columns: 1fr;
  }

  .project-placeholder-wide {
    grid-row: auto;
    min-height: 320px;
  }

  .project-branch-nav {
    max-width: none;
    margin: 0 0 40px;
    font-size: 12px;
  }

  .branch-heading {
    margin-bottom: 18px;
  }

  .book-landing {
    min-height: calc(100vh - 118px);
  }

  .project-book {
    width: 100%;
    max-width: none;
    margin-right: 0;
  }

  .book-viewport {
    aspect-ratio: 4 / 3;
  }

  .book-count {
    width: 100%;
    margin-right: 0;
  }

  .project-book-article {
    max-width: none;
    --book-width: 100%;
    --book-right-offset: 0px;
  }

  .about-shell,
  .internship-shell {
    display: block;
  }

  .about-title-rail,
  .about-profile-content,
  .internship-rail {
    min-height: 0;
  }

  .about-title-rail h1 {
    font-size: clamp(46px, 16vw, 72px);
  }

  .about-card {
    margin-left: 0;
  }

  .about-card-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo {
    width: min(220px, 64vw);
  }

  .about-contact div,
  .education-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-education {
    margin-top: 54px;
  }

  .internship-nav {
    margin-bottom: 44px;
  }

  .internship-heading {
    margin-bottom: 18px;
  }

  .internship-article,
  .internship-cover,
  .internship-story {
    max-width: none;
    width: 100%;
    margin-right: 0;
  }

  .student-title-rail {
    min-height: 0;
    margin-bottom: 34px;
  }

  .student-title-rail h1 {
    max-width: none;
    font-size: clamp(30px, 10vw, 48px);
    line-height: 1;
  }

  .student-title-kicker {
    margin-bottom: 18px;
  }

  .marginalia-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
  }

  .student-book-list {
    display: none;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 28px;
  }

  .student-book-article {
    --book-width: 100%;
    --book-right-offset: 0px;
    max-width: none;
    min-height: 0;
    padding-top: 0;
  }

  .student-open-book {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    margin-right: 0;
    aspect-ratio: auto;
  }

  .student-open-book::after {
    display: none;
  }

  .student-map-leaf {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .student-text-leaf {
    min-height: 360px;
    padding: 32px 24px 42px;
  }

  .student-text-leaf h1 {
    font-size: clamp(30px, 9vw, 46px);
  }

  .student-page-copy p {
    font-size: 15px;
  }

  .student-book-controls {
    width: 100%;
    margin-right: 0;
  }

  .outside-stickers {
    width: min(360px, 100%);
    height: 230px;
    margin-top: 26px;
  }

  .poursona-story,
  .project-story {
    width: 100%;
    margin-right: 0;
  }

  .story-header h2 {
    font-size: 36px;
  }

  .marginalia-map-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 92px 18px 42px;
  }

  .memory-panel {
    margin-bottom: 28px;
  }

  .memory-text-panel {
    max-width: none;
    padding: 0 0 10px;
  }

  .memory-panel h1 {
    font-size: 38px;
    margin-bottom: 18px;
  }

  .memory-stage {
    min-height: 62vh;
    order: 1;
  }

  .memory-map-frame {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

  .memory-stage.is-zoomed {
    --map-scale: 1.08;
  }

  .memory-hero-copy {
    left: 24px;
    bottom: 28px;
    width: calc(100% - 48px);
  }

  .memory-hero-copy h1 {
    font-size: clamp(48px, 17vw, 82px);
  }

  .memory-actions-stage {
    top: 18px;
    left: 18px;
  }

  .memory-card {
    width: clamp(120px, 36vw, 184px);
  }

  .memory-map-frame figcaption {
    left: 14px;
    bottom: 12px;
    display: grid;
    gap: 3px;
  }
}

@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;
  }
}
