:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --paper-deep: #e8e5db;
  --ink: #141411;
  --ink-soft: #5f5d55;
  --line: rgba(20, 20, 17, 0.16);
  --line-strong: rgba(20, 20, 17, 0.3);
  --surface: rgba(250, 249, 244, 0.72);
  --surface-solid: #faf9f4;
  --inverse-bg: #141411;
  --inverse-text: #f1efe7;
  --inverse-soft: rgba(241, 239, 231, 0.64);
  --inverse-line: rgba(241, 239, 231, 0.19);
  --shadow: 0 30px 80px rgba(24, 23, 19, 0.12);
  --header-bg: rgba(242, 240, 233, 0.8);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "STSong", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: clamp(22px, 4.8vw, 76px);
  --max-width: 1440px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11110f;
  --paper-deep: #191917;
  --ink: #f1efe7;
  --ink-soft: #aaa79d;
  --line: rgba(241, 239, 231, 0.15);
  --line-strong: rgba(241, 239, 231, 0.3);
  --surface: rgba(28, 28, 25, 0.72);
  --surface-solid: #1a1a17;
  --inverse-bg: #f1efe7;
  --inverse-text: #141411;
  --inverse-soft: rgba(20, 20, 17, 0.62);
  --inverse-line: rgba(20, 20, 17, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(17, 17, 15, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.76), transparent 23rem),
    radial-gradient(circle at 12% 58%, rgba(255, 255, 255, 0.46), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.45s ease, color 0.45s ease;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.055), transparent 23rem),
    radial-gradient(circle at 12% 58%, rgba(255, 255, 255, 0.025), transparent 30rem),
    var(--paper);
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

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

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transition: transform 0.2s ease;
}

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

.page-noise {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: 0.034;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 40vw;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.ambient--one {
  top: -28vw;
  right: -7vw;
}

.ambient--two {
  bottom: -31vw;
  left: -19vw;
}

.section-shell {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  margin-inline: auto;
}

.section-space {
  padding-top: clamp(100px, 13vw, 190px);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 84px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  transition: background-color 0.45s ease, border-color 0.45s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  width: fit-content;
}

.brand__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(15deg);
  background: var(--ink);
  color: var(--paper);
}

.brand__name {
  display: grid;
  line-height: 1.06;
}

.brand__name > span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__name small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.1vw, 48px);
}

.desktop-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--ink);
  content: "";
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.icon-button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.icon-button:focus-visible,
.primary-link:focus-visible,
.text-link:focus-visible,
.fortune__button:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.language-button {
  min-width: 72px;
  gap: 7px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.music-button {
  min-width: 76px;
  gap: 8px;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.music-bars {
  display: flex;
  height: 15px;
  align-items: center;
  gap: 2px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
}

.music-bars i:nth-child(2) {
  height: 10px;
}

.music-button.is-playing {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.music-button.is-playing .music-bars i {
  animation: music-bar 0.9s ease-in-out infinite;
}

.music-button.is-playing .music-bars i:nth-child(2) {
  animation-delay: -0.32s;
}

.music-button.is-playing .music-bars i:nth-child(3) {
  animation-delay: -0.58s;
}

.language-button__current {
  font-size: 12px;
}

.language-button__divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.language-button__next {
  color: var(--ink-soft);
}

.theme-button {
  position: relative;
  width: 42px;
  padding: 0;
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.55s var(--ease), opacity 0.3s ease;
}

.theme-icon--sun {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

.theme-icon--moon {
  transform: translateY(24px) rotate(-30deg);
  opacity: 0;
}

[data-theme="dark"] .theme-icon--sun {
  transform: translateY(-24px) rotate(70deg);
  opacity: 0;
}

[data-theme="dark"] .theme-icon--moon {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
  padding-top: 130px;
  padding-bottom: 74px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 1vw;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow__line {
  display: inline-block;
  width: 31px;
  height: 1px;
  background: currentColor;
}

.hero__eyebrow {
  opacity: 0;
  animation: rise-in 0.9s 0.15s var(--ease) forwards;
}

.hero__title {
  margin: clamp(30px, 4.8vh, 52px) 0 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.hero__title-small {
  display: block;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: rise-in 0.9s 0.27s var(--ease) forwards;
}

.hero__title-name {
  display: block;
  white-space: nowrap;
  font-size: clamp(74px, 9.7vw, 158px);
  opacity: 0;
  animation: title-in 1.15s 0.32s var(--ease) forwards;
}

.hero__dot {
  font-family: var(--sans);
  font-size: 0.45em;
  vertical-align: top;
}

.hero__title-en {
  position: absolute;
  z-index: -1;
  top: -58px;
  right: -9px;
  color: transparent;
  font-family: var(--sans);
  font-size: clamp(61px, 8.6vw, 140px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.09em;
  pointer-events: none;
  -webkit-text-stroke: 1px var(--line);
  opacity: 0;
  animation: soft-in 1.5s 0.4s ease forwards;
}

.hero__intro {
  max-width: 510px;
  margin: clamp(30px, 5vh, 52px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.95;
  letter-spacing: 0.025em;
  opacity: 0;
  animation: rise-in 0.9s 0.56s var(--ease) forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 35px;
  opacity: 0;
  animation: rise-in 0.9s 0.7s var(--ease) forwards;
}

.primary-link {
  display: inline-flex;
  height: 52px;
  align-items: center;
  gap: 24px;
  padding: 0 22px 0 25px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.primary-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 0.35s var(--ease);
}

.primary-link:hover {
  transform: translateY(-3px);
  background: transparent;
  color: var(--ink);
}

.primary-link:hover svg {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--ink);
}

.hero__visual {
  position: relative;
  display: grid;
  width: min(100%, 530px);
  justify-self: end;
  place-items: center;
  aspect-ratio: 0.9;
}

.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit--outer {
  inset: 2%;
  opacity: 0.8;
}

.orbit--outer svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin 36s linear infinite;
}

.orbit--outer text {
  fill: var(--ink-soft);
  font-family: var(--sans);
  font-size: 6.3px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.portrait-card {
  position: relative;
  width: 66%;
  aspect-ratio: 0.77;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 47% 47% 10px 10px / 33% 33% 10px 10px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.56), transparent 46%),
    var(--ink);
  box-shadow: var(--shadow);
  color: var(--paper);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: portrait-in 1.2s 0.42s var(--ease) forwards;
}

.portrait-card__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.portrait-card__halo {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 73%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(242, 240, 233, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(242, 240, 233, 0.035),
    0 0 0 55px rgba(242, 240, 233, 0.025);
}

.portrait-card__halo::after {
  position: absolute;
  top: 10%;
  right: 2%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 7px rgba(242, 240, 233, 0.08);
  content: "";
}

.portrait-card__monogram {
  position: absolute;
  inset: 20% 0 auto;
  display: grid;
  justify-items: center;
}

.portrait-card__initial {
  font-family: "STKaiti", "KaiTi", var(--serif);
  font-size: clamp(96px, 11vw, 158px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.12em;
}

.portrait-card__en {
  margin-top: 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
}

.portrait-card__corner {
  position: absolute;
  font-size: 12px;
}

.portrait-card__corner--tl {
  top: 28px;
  left: 31px;
}

.portrait-card__corner--br {
  right: 31px;
  bottom: 74px;
}

.portrait-card__footer {
  position: absolute;
  right: 25px;
  bottom: 23px;
  left: 25px;
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(242, 240, 233, 0.25);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(20, 20, 17, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: hover-float 4.8s ease-in-out infinite;
}

.floating-note--age {
  top: 22%;
  left: 1%;
  gap: 5px;
  padding: 10px 17px;
}

.floating-note__number {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.floating-note--age > span:last-child {
  color: var(--ink-soft);
  font-size: 10px;
}

.floating-note--grade {
  right: 2%;
  bottom: 18%;
  display: grid;
  justify-items: center;
  min-width: 74px;
  padding: 11px 14px 12px;
  border-radius: 8px;
  animation-delay: -1.7s;
}

.floating-note--grade strong {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.floating-note__small {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.spark {
  position: absolute;
  color: var(--ink-soft);
  animation: pulse 3s ease-in-out infinite;
}

.spark--one {
  top: 10%;
  right: 11%;
  font-size: 25px;
}

.spark--two {
  bottom: 10%;
  left: 10%;
  font-size: 18px;
  animation-delay: -1.2s;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: var(--line-strong);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  padding: 14px 0;
  animation: ticker 34s linear infinite;
}

.ticker__track span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.ticker__track i {
  font-size: 10px;
  font-style: normal;
  opacity: 0.55;
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: clamp(40px, 6vw, 80px);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-marker > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 8px;
  letter-spacing: 0;
}

.section-marker__line {
  width: 52px;
  height: 1px;
  background: var(--line-strong);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(42px, 10vw, 160px);
  align-items: start;
}

.about h2,
.school h2,
.school__content h2,
.wishes__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 5.7vw, 88px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.065em;
}

.about h2 em,
.school h2 em,
.wishes__header h2 em,
.outro h2 em {
  font-weight: 400;
}

.about__body {
  padding-top: 13px;
}

.about__body p {
  max-width: 480px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.about__body .about__lead {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.facts {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.1fr;
  gap: 12px;
  margin-top: clamp(58px, 8vw, 100px);
}

.fact-card {
  position: relative;
  display: flex;
  min-height: 185px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
}

.fact-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface-solid);
}

.fact-card__index {
  position: absolute;
  top: 20px;
  right: 21px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.fact-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.fact-card__icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.fact-card p {
  margin: 0 0 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.fact-card strong {
  font-family: var(--serif);
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.fact-card strong span {
  font-size: 1.5em;
}

.fact-card strong small {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
}

.quote-panel {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  margin-top: 12px;
  padding: 80px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.48) 50%, transparent 70%),
    var(--paper-deep);
  text-align: center;
}

.quote-panel::before,
.quote-panel::after {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.quote-panel::before {
  top: -88px;
  left: -55px;
}

.quote-panel::after {
  right: -80px;
  bottom: -82px;
}

.quote-panel__mark {
  position: absolute;
  top: 20px;
  left: 50%;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 80px;
  transform: translateX(-50%);
  opacity: 0.28;
}

.quote-panel p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(39px, 5.3vw, 76px);
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.quote-panel__caption {
  position: absolute;
  bottom: 36px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.quote-panel__seal {
  position: absolute;
  right: 38px;
  bottom: 30px;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
}

.quote-panel__seal small {
  font-family: var(--sans);
  font-size: 6px;
}

.school {
  position: relative;
  margin-top: clamp(100px, 13vw, 180px);
  padding-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.school::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--line);
  content: "";
  opacity: 0.5;
}

.school .section-marker {
  padding-top: clamp(100px, 13vw, 180px);
}

.school__stage {
  display: grid;
  grid-template-columns: minmax(350px, 0.92fr) minmax(380px, 1fr);
  gap: clamp(45px, 9vw, 140px);
  align-items: center;
}

.school-art {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--inverse-bg);
  color: var(--inverse-text);
}

.school-art__sun {
  position: absolute;
  top: 11%;
  right: 13%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--inverse-text);
  opacity: 0.96;
}

.school-art__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--inverse-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--inverse-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 3%, black 30%, black 75%, transparent 95%);
}

.school-art__orbit {
  position: absolute;
  border: 1px solid var(--inverse-line);
  border-radius: 50%;
}

.school-art__orbit--one {
  top: -17%;
  left: -23%;
  width: 83%;
  aspect-ratio: 1;
}

.school-art__orbit--two {
  right: -34%;
  bottom: 5%;
  width: 80%;
  aspect-ratio: 1;
}

.school-art__building {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 67%;
  height: 38%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
  background: var(--inverse-bg);
}

.school-art__roof {
  position: absolute;
  top: -29%;
  left: 50%;
  width: 104%;
  height: 30%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(135deg, transparent 49.3%, currentColor 49.5%, currentColor 50.5%, transparent 50.7%),
    var(--inverse-bg);
}

.school-art__flag {
  position: absolute;
  top: -58%;
  left: 50%;
  width: 1px;
  height: 44%;
  background: currentColor;
}

.school-art__flag::after {
  position: absolute;
  top: 0;
  left: 1px;
  width: 33px;
  height: 20px;
  border: 1px solid currentColor;
  content: "";
  clip-path: polygon(0 0, 100% 21%, 0 100%);
}

.school-art__windows {
  position: absolute;
  top: 24%;
  right: 8%;
  left: 8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.school-art__windows i {
  height: 31px;
  border: 1px solid currentColor;
  background: repeating-linear-gradient(90deg, transparent 0 5px, var(--inverse-line) 5px 6px);
}

.school-art__door {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20%;
  height: 39%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
  border-bottom: 0;
  background:
    linear-gradient(90deg, transparent 48%, currentColor 48%, currentColor 52%, transparent 52%);
}

.school-art__door::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--inverse-bg);
  content: "";
}

.school-art__caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--inverse-line);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.school__content {
  padding-top: 10px;
}

.school__content h2 {
  margin-top: 27px;
  font-size: clamp(42px, 5.2vw, 76px);
}

.school__content h2 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}

.school__intro {
  max-width: 570px;
  margin: 29px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.school-id {
  max-width: 570px;
  margin-top: 44px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--line);
}

.school-id__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
}

.school-id__top > div {
  display: grid;
  line-height: 1.2;
}

.school-id__top span {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.school-id__top strong {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.school-id__stamp {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink) !important;
  border-radius: 50%;
  color: var(--ink) !important;
  font-family: var(--serif);
  font-size: 9px !important;
}

.school-id__body {
  display: grid;
  grid-template-columns: 77px 1fr 41px;
  gap: 21px;
  align-items: end;
  padding: 20px 18px;
}

.school-id__portrait {
  display: grid;
  width: 77px;
  aspect-ratio: 0.8;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: "STKaiti", "KaiTi", var(--serif);
  font-size: 37px;
}

.school-id dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.school-id dl > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: baseline;
}

.school-id dt {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.school-id dd {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
}

.school-id__barcode {
  width: 39px;
  height: 64px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px, var(--ink) 4px 6px, transparent 6px 9px);
}

.teacher {
  position: relative;
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  margin-top: clamp(90px, 12vw, 170px);
  padding: clamp(45px, 7vw, 100px);
  overflow: hidden;
  background: var(--inverse-bg);
  color: var(--inverse-text);
}

.teacher::before {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid var(--inverse-line);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 60px rgba(128, 128, 128, 0.04),
    0 0 0 120px rgba(128, 128, 128, 0.025);
}

.section-marker--light {
  color: var(--inverse-soft);
}

.section-marker--light > span:first-child {
  border-color: var(--inverse-line);
  color: var(--inverse-text);
}

.section-marker--light .section-marker__line {
  background: var(--inverse-line);
}

.teacher__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(45px, 9vw, 140px);
  align-items: center;
}

.teacher__intro {
  display: flex;
  align-items: center;
  gap: clamp(25px, 3vw, 45px);
}

.teacher__avatar {
  position: relative;
  display: grid;
  width: clamp(130px, 13vw, 185px);
  aspect-ratio: 0.82;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--inverse-line);
  background:
    linear-gradient(145deg, rgba(128, 128, 128, 0.12), transparent),
    var(--inverse-bg);
}

.teacher__avatar::before {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid var(--inverse-line);
  border-radius: 50%;
  content: "";
}

.teacher__avatar span {
  position: relative;
  font-family: "STKaiti", "KaiTi", var(--serif);
  font-size: clamp(62px, 8vw, 114px);
  line-height: 1;
}

.teacher__avatar i {
  position: absolute;
  bottom: 15px;
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.teacher__kicker {
  margin: 0 0 3px;
  color: var(--inverse-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.teacher__intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(39px, 4.9vw, 73px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.15;
  white-space: nowrap;
}

:lang(en) .teacher__intro h2 {
  white-space: normal;
}

.teacher__quote {
  position: relative;
  margin: 0;
  padding: 10px 0 0 clamp(0px, 3vw, 45px);
  border-left: 1px solid var(--inverse-line);
}

.teacher__quote-mark {
  position: absolute;
  top: -40px;
  left: 20px;
  font-family: var(--serif);
  font-size: 100px;
  line-height: 1;
  opacity: 0.15;
}

.teacher__quote p {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 45px);
  line-height: 1.6;
  letter-spacing: -0.025em;
}

.teacher__quote footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 19px;
  border-top: 1px solid var(--inverse-line);
}

.teacher__signature {
  color: var(--inverse-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.teacher__stars {
  display: flex;
  gap: 4px;
  font-size: 10px;
}

.teacher__stars i {
  font-style: normal;
}

.teacher__ribbon {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-top: clamp(50px, 8vw, 105px);
  padding-top: 23px;
  border-top: 1px solid var(--inverse-line);
  color: var(--inverse-soft);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.teacher__ribbon i {
  color: var(--inverse-text);
  font-style: normal;
}

.wishes__header {
  display: grid;
  grid-template-columns: 1.1fr 0.65fr;
  gap: clamp(40px, 10vw, 150px);
  align-items: end;
}

.wishes__header p {
  max-width: 420px;
  margin: 0 0 11px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.timeline {
  margin-top: clamp(60px, 9vw, 115px);
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px 1px minmax(0, 1fr) 45px;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item__number {
  padding-top: 2px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
}

.timeline-item__line {
  width: 1px;
  height: 100%;
  min-height: 95px;
  background: var(--line);
}

.timeline-item__content {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(230px, 1fr);
  gap: 12px 45px;
  align-items: baseline;
}

.timeline-item__tag {
  grid-column: 1 / -1;
  margin: 0 0 -3px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.timeline-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.timeline-item__content > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.timeline-item__symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 16px;
  transition: transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.timeline-item:hover .timeline-item__symbol {
  transform: rotate(20deg);
  background: var(--ink);
  color: var(--paper);
}

.fortune {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 70px;
  padding: clamp(30px, 5vw, 63px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(-45deg, transparent 0 34px, rgba(128, 128, 128, 0.035) 34px 35px),
    var(--surface-solid);
}

.fortune::before {
  position: absolute;
  inset: 13px;
  border: 1px solid var(--line);
  content: "";
  pointer-events: none;
}

.fortune__copy {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.fortune__label {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.fortune p {
  min-height: 2.4em;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 45px);
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.fortune p.is-changing {
  animation: quote-change 0.45s var(--ease);
}

.fortune__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 105px;
  height: 45px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.25s ease, color 0.25s ease;
}

.fortune__button:hover {
  transform: translateY(-3px);
  background: transparent;
  color: var(--ink);
}

.fortune__button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  transition: transform 0.5s var(--ease);
}

.fortune__button:hover svg {
  transform: rotate(180deg);
}

.fortune__star {
  position: absolute;
  color: var(--ink-soft);
  opacity: 0.45;
}

.fortune__star--1 {
  top: 23px;
  right: 28%;
}

.fortune__star--2 {
  right: 31%;
  bottom: 19px;
  font-size: 10px;
}

.outro {
  position: relative;
  display: grid;
  min-height: 82vh;
  margin-top: clamp(100px, 13vw, 190px);
  place-items: center;
  overflow: hidden;
  background: var(--inverse-bg);
  color: var(--inverse-text);
  text-align: center;
}

.outro__lines {
  position: absolute;
  inset: -50%;
  background: repeating-radial-gradient(circle at center, transparent 0 90px, var(--inverse-line) 91px 92px, transparent 93px 180px);
  opacity: 0.7;
}

.outro__content {
  position: relative;
  z-index: 1;
  padding: 100px var(--page-pad) 130px;
}

.outro .eyebrow {
  justify-content: center;
  color: var(--inverse-soft);
}

.outro h2 {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: clamp(45px, 7.1vw, 108px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.065em;
}

.outro__signature {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 45px;
}

.outro__signature span {
  font-family: "STKaiti", "KaiTi", var(--serif);
  font-size: 19px;
}

.outro__signature small {
  color: var(--inverse-soft);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.back-to-top {
  position: absolute;
  z-index: 2;
  right: var(--page-pad);
  bottom: 38px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--inverse-line);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.back-to-top svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--inverse-text);
  color: var(--inverse-bg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 27px var(--page-pad);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.site-footer__mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 8px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.site-footer__note {
  letter-spacing: 0.14em !important;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(45px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes soft-in {
  to {
    opacity: 1;
  }
}

@keyframes portrait-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes hover-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.8) rotate(0);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.18) rotate(15deg);
    opacity: 0.9;
  }
}

@keyframes quote-change {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes music-bar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1.35);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1.07fr) minmax(360px, 0.85fr);
    gap: 30px;
    padding-top: 150px;
    padding-bottom: 120px;
  }

  .hero__title-en {
    right: -2px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact-card--wide {
    grid-column: 1 / -1;
    min-height: 150px;
  }

  .school__stage {
    grid-template-columns: minmax(310px, 0.9fr) minmax(340px, 1fr);
    gap: 55px;
  }

  .school-art {
    min-height: 570px;
  }

  .teacher__layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: clamp(20px, 5vw, 36px);
  }

  .site-header {
    height: 74px;
  }

  .brand__name small {
    display: none;
  }

  .hero {
    display: block;
    padding-top: 142px;
    padding-bottom: 105px;
  }

  .hero__copy {
    max-width: 620px;
  }

  .hero__title-name {
    font-size: clamp(72px, 17vw, 132px);
  }

  .hero__title-en {
    top: -38px;
    right: 0;
    font-size: clamp(65px, 16vw, 120px);
  }

  .hero__intro {
    max-width: 570px;
  }

  .hero__visual {
    width: min(88vw, 520px);
    margin: clamp(50px, 9vw, 80px) auto 0;
  }

  .scroll-cue {
    display: none;
  }

  .section-space {
    padding-top: 105px;
  }

  .about__grid,
  .wishes__header {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about__body {
    max-width: 620px;
  }

  .about__body p {
    max-width: 620px;
  }

  .facts {
    margin-top: 55px;
  }

  .quote-panel {
    min-height: 330px;
  }

  .school::before {
    display: none;
  }

  .school__stage {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .school-art {
    width: min(100%, 590px);
    min-height: 600px;
    margin-inline: auto;
  }

  .school__content {
    max-width: 620px;
  }

  .teacher {
    padding: 50px 32px;
  }

  .teacher__layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .teacher__avatar {
    width: 150px;
  }

  .teacher__quote {
    padding-left: 0;
    border-left: 0;
  }

  .teacher__quote-mark {
    left: -10px;
  }

  .timeline-item {
    grid-template-columns: 48px 1px minmax(0, 1fr) 38px;
    gap: 20px;
  }

  .timeline-item__content {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-item__content > p:last-child {
    margin-top: 4px;
  }

  .fortune {
    align-items: flex-end;
  }

  .fortune p {
    max-width: 590px;
  }

  .outro {
    min-height: 67vh;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}

@media (max-width: 560px) {
  .header-actions {
    gap: 6px;
  }

  .language-button {
    min-width: 65px;
    height: 38px;
    padding: 0 10px;
  }

  .music-button {
    min-width: 38px;
    width: 38px;
    height: 38px;
    padding: 0;
  }

  .music-button__label {
    display: none;
  }

  .theme-button {
    width: 38px;
    height: 38px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 35px;
    height: 35px;
  }

  .brand__name > span {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .hero {
    padding-top: 128px;
  }

  .hero__eyebrow {
    max-width: 260px;
    font-size: 8px;
    line-height: 1.6;
  }

  .hero__eyebrow .eyebrow__line {
    width: 20px;
  }

  .hero__title {
    margin-top: 30px;
  }

  .hero__title-small {
    margin-bottom: 11px;
    font-size: 18px;
  }

  .hero__title-name {
    font-size: clamp(63px, 20.2vw, 102px);
  }

  .hero__title-en {
    top: -17px;
    font-size: 24vw;
  }

  .hero__intro {
    margin-top: 30px;
    font-size: 13px;
  }

  .hero__actions {
    gap: 20px;
    margin-top: 27px;
  }

  .primary-link {
    height: 48px;
    gap: 17px;
    padding-inline: 20px;
  }

  .text-link {
    font-size: 11px;
  }

  .hero__visual {
    width: 100%;
    margin-top: 42px;
  }

  .portrait-card {
    width: 70%;
  }

  .floating-note--age {
    top: 19%;
    left: 0;
  }

  .floating-note--grade {
    right: 0;
    bottom: 14%;
  }

  .section-marker {
    margin-bottom: 38px;
  }

  .section-marker__line {
    width: 31px;
  }

  .about h2,
  .school__content h2,
  .wishes__header h2 {
    font-size: 41px;
  }

  .about__body .about__lead {
    font-size: 20px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .fact-card {
    min-height: 135px;
  }

  .fact-card--wide {
    grid-column: auto;
  }

  .quote-panel {
    min-height: 300px;
    margin-top: 9px;
    padding-inline: 18px;
  }

  .quote-panel p {
    font-size: 39px;
  }

  .quote-panel__seal {
    right: 18px;
    bottom: 18px;
  }

  .school {
    padding-bottom: 90px;
  }

  .school .section-marker {
    padding-top: 100px;
  }

  .school-art {
    min-height: 460px;
  }

  .school-art__building {
    bottom: 20%;
    width: 76%;
    height: 37%;
  }

  .school-art__windows {
    gap: 6px;
  }

  .school-art__windows i {
    height: 22px;
  }

  .school-id {
    margin-top: 35px;
    box-shadow: 5px 5px 0 var(--line);
  }

  .school-id__body {
    grid-template-columns: 65px 1fr;
    gap: 15px;
  }

  .school-id__portrait {
    width: 65px;
    font-size: 31px;
  }

  .school-id__barcode {
    display: none;
  }

  .teacher {
    width: calc(100% - 28px);
    padding: 36px 24px 40px;
  }

  .teacher__intro {
    gap: 20px;
  }

  .teacher__avatar {
    width: 112px;
  }

  .teacher__kicker {
    font-size: 8px;
  }

  .teacher__intro h2 {
    font-size: 42px;
  }

  .teacher__quote p {
    font-size: 24px;
    line-height: 1.7;
  }

  .teacher__ribbon {
    flex-wrap: wrap;
    gap: 9px 15px;
    text-align: center;
  }

  .timeline {
    margin-top: 52px;
  }

  .timeline-item {
    grid-template-columns: 28px 1px minmax(0, 1fr);
    gap: 13px;
    padding: 27px 0;
  }

  .timeline-item__number {
    font-size: 10px;
  }

  .timeline-item__symbol {
    display: none;
  }

  .timeline-item h3 {
    font-size: 28px;
  }

  .fortune {
    display: block;
    margin-top: 52px;
    padding: 35px 27px 29px;
  }

  .fortune::before {
    inset: 8px;
  }

  .fortune p {
    min-height: 4.2em;
    font-size: 25px;
  }

  .fortune__button {
    margin-top: 25px;
  }

  .outro {
    min-height: 61vh;
    margin-top: 100px;
  }

  .outro__content {
    padding-block: 85px 110px;
  }

  .outro h2 {
    font-size: clamp(41px, 12.5vw, 68px);
  }

  .back-to-top {
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
  }

  .site-footer__note {
    font-size: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
