:root {
  --ink: #17283b;
  --ink-soft: #526071;
  --blue: #2f56d8;
  --blue-dark: #17379d;
  --coral: #ff624d;
  --yellow: #f4c84a;
  --green: #58a376;
  --paper: #f7f5ee;
  --white: #fffefb;
  --line: rgba(23, 40, 59, 0.16);
  --shadow: 0 24px 70px rgba(24, 38, 68, 0.15);
  --page: min(1240px, calc(100vw - 48px));
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open,
body:has(.work-dialog[open]) {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(247, 245, 238, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(23, 40, 59, 0.06);
}

.header-inner {
  width: var(--page);
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--coral);
  transform: rotate(-6deg);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
}

.brand-mark .brand-mark-line {
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-width: 3.4;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--coral);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-height: 44px;
  padding: 0 17px 0 19px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: var(--ink);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.admin-login-link {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.admin-login-link:hover {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

.header-cta:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.header-cta svg,
.primary-button svg,
.dialog-nav svg,
.dialog-close svg,
.view-icon svg,
.favorite-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.header-cta svg {
  width: 16px;
}

.menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.menu-button span {
  width: 24px;
  height: 2px;
  display: block;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  min-height: 770px;
  padding: 146px max(24px, calc((100vw - 1240px) / 2)) 88px;
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 72px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(23, 40, 59, 0.095) 1px, transparent 1px);
  background-size: 25px 25px;
}

.hero::before {
  position: absolute;
  width: 410px;
  height: 410px;
  top: 140px;
  right: -170px;
  content: "";
  border: 90px solid rgba(47, 86, 216, 0.06);
  border-radius: 50%;
}

.hero-doodle {
  position: absolute;
  border: 3px solid currentColor;
  opacity: 0.6;
}

.hero-doodle-one {
  width: 72px;
  height: 34px;
  top: 146px;
  left: 7%;
  color: var(--yellow);
  border-width: 0 0 3px 3px;
  transform: rotate(-18deg) skew(-24deg);
}

.hero-doodle-two {
  width: 55px;
  height: 55px;
  right: 5%;
  bottom: 92px;
  color: var(--green);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow-dot {
  width: 11px;
  height: 11px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 3px 0 var(--coral);
}

.hero h1 {
  max-width: 650px;
  margin: 23px 0 21px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: clamp(52px, 4.9vw, 70px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero h1 em {
  position: relative;
  color: var(--blue);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -8px;
  bottom: 5px;
  left: -2px;
  height: 17px;
  content: "";
  background: var(--yellow);
  border-radius: 60% 35% 55% 40%;
  transform: rotate(-2deg);
}

.hero-keywords {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-button,
.outline-button {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: white;
  background: var(--coral);
}

.primary-button svg {
  width: 21px;
}

.primary-button:hover,
.outline-button:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
}

.text-link span {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translate(4px, 4px);
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  justify-self: end;
  padding: 28px 30px 31px 24px;
}

.hero-photo {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 15px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 18px 20px 0 var(--blue), 20px 22px 0 var(--ink);
  transform: rotate(2.1deg);
}

.hero-photo::before,
.hero-photo::after {
  position: absolute;
  z-index: 3;
  width: 82px;
  height: 23px;
  content: "";
  background: rgba(244, 200, 74, 0.86);
  box-shadow: 0 1px 3px rgba(23, 40, 59, 0.12);
}

.hero-photo::before {
  top: 4px;
  left: -34px;
  transform: rotate(-43deg);
}

.hero-photo::after {
  right: -34px;
  bottom: 8px;
  transform: rotate(-43deg);
}

.hero-photo img {
  width: 100%;
  height: clamp(340px, 38vw, 470px);
  object-fit: cover;
  object-position: 52% center;
}

.hero-photo figcaption {
  padding: 15px 3px 2px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.hero-photo figcaption span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-photo figcaption strong {
  font-size: 20px;
}

.paper-note {
  position: absolute;
  z-index: 4;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
}

.paper-note-top {
  top: 1px;
  right: 15%;
  padding: 9px 17px;
  background: var(--yellow);
  transform: rotate(4deg);
}

.paper-note-side {
  right: -9px;
  bottom: 80px;
  width: 98px;
  height: 98px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--coral);
  transform: rotate(-6deg);
}

.paper-note-side span {
  font-size: 11px;
  letter-spacing: 0.07em;
}

.paper-note-side strong {
  color: white;
  font-size: 37px;
  line-height: 1;
}

.hero-spark {
  position: absolute;
  z-index: 5;
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 2;
}

.hero-spark-one {
  width: 49px;
  top: 40%;
  left: -24px;
}

.hero-spark-two {
  width: 27px;
  top: 56%;
  left: -42px;
  fill: var(--green);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.hero-scroll span {
  width: 22px;
  height: 35px;
  position: relative;
  display: block;
  border: 2px solid var(--ink-soft);
  border-radius: 99px;
}

.hero-scroll span::after {
  position: absolute;
  width: 4px;
  height: 8px;
  top: 6px;
  left: 7px;
  content: "";
  background: var(--coral);
  border-radius: 99px;
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(12px); }
}

.category-ribbon {
  color: white;
  background: var(--ink);
  border-block: 2px solid var(--ink);
  overflow: hidden;
  transform: rotate(-0.45deg);
}

.ribbon-track {
  width: max-content;
  min-width: 100%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 52px;
  padding: 0 28px;
}

.ribbon-track span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}

.shape {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 1.5px solid white;
  transform: rotate(12deg);
}

.shape-blue { background: var(--blue); border-radius: 50%; }
.shape-coral { background: var(--coral); }
.shape-yellow { background: var(--yellow); border-radius: 50% 50% 0 50%; }
.shape-green { background: var(--green); transform: rotate(45deg); }

.journey-section {
  width: var(--page);
  margin: 0 auto;
  padding: 132px 0 30px;
}

.journey-heading {
  margin-bottom: 44px;
}

.journey-heading > p {
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.journey-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
}

.year-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
}

.year-rail::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  content: "";
  background: var(--line);
}

.year-button {
  position: relative;
  width: 100%;
  min-height: 86px;
  padding: 15px 18px;
  display: grid;
  gap: 3px;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.year-button::before {
  position: absolute;
  top: 50%;
  left: -24px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.year-button strong {
  color: inherit;
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.year-button span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.year-button:hover,
.year-button.is-active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
  transform: translateX(5px);
}

.year-button.is-active::before {
  background: var(--coral);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--paper);
}

.program-intro {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 10px 11px 0 var(--ink);
  overflow: hidden;
}

.program-intro figure {
  position: relative;
  min-height: 420px;
  margin: 0;
  background: #d9d9d4;
  overflow: hidden;
}

.program-intro figure::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset -1px 0 0 rgba(23, 40, 59, 0.2);
  pointer-events: none;
}

.program-intro figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  transition: opacity 0.2s ease;
}

.program-status {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.program-content {
  padding: 47px 44px 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.program-year {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.program-content h3 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: clamp(30px, 2.7vw, 39px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.program-summary {
  margin: 24px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.program-content dl {
  width: 100%;
  margin: 0 0 32px;
  display: grid;
  gap: 11px;
}

.program-content dl div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.program-content dt {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.program-content dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.program-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.program-link svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.program-link:hover svg {
  transform: translateX(5px);
}

.works-section {
  width: var(--page);
  margin: 0 auto;
  padding: 132px 0 150px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.section-number {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.section-heading h2,
.classroom-copy h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-heading p strong {
  margin-right: 4px;
  color: var(--blue);
  font-size: 24px;
}

.filter-bar {
  margin: 36px 0 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-button span {
  margin-left: 6px;
  opacity: 0.55;
  font-size: 10px;
}

.filter-button:hover,
.filter-button.is-active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 24px;
  align-items: start;
}

.home-works-grid .work-card:nth-of-type(n + 7) {
  display: none;
}

.works-section .filter-bar[hidden] {
  display: none !important;
}

.home-works-footer {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.home-works-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.gallery-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 170px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 56px;
  border-bottom: 2px solid var(--ink);
}

.gallery-hero-copy {
  max-width: 820px;
}

.gallery-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gallery-hero h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", sans-serif;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
}

.gallery-hero-copy > p:last-child {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.gallery-years {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-year-button {
  min-width: 142px;
  padding: 13px 17px;
  display: grid;
  gap: 3px;
  color: var(--ink-soft);
  text-align: left;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: 0.2s ease;
}

.gallery-year-button strong {
  color: inherit;
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.gallery-year-button span {
  font-size: 10px;
  font-weight: 800;
}

.gallery-year-button:hover,
.gallery-year-button.is-active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 4px 5px 0 var(--yellow);
  transform: translateY(-2px);
}

.gallery-works {
  padding-top: 78px;
}

.works-loading,
.works-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 800;
  border: 1px dashed var(--line-strong);
}

.work-card {
  min-width: 0;
  animation: card-in 0.38s both;
}

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

.work-card-wide {
  grid-column: span 2;
}

.works-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 254, 251, 0.58);
  border: 1.5px dashed var(--line);
  border-radius: 5px;
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.works-empty[hidden] {
  display: none;
}

.work-image {
  position: relative;
  width: 100%;
  height: 320px;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #d9d9d4;
  border: 0;
  border-radius: 4px;
  cursor: zoom-in;
}

.work-card-wide .work-image {
  height: 380px;
}

.work-card-tall .work-image {
  height: 455px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.35s ease;
}

.work-card:nth-child(2) .work-image img { object-position: 54% center; }
.work-card:nth-child(3) .work-image img { object-position: 54% center; }
.work-card:nth-child(4) .work-image img { object-position: 52% center; }
.work-card:nth-child(8) .work-image img { object-position: 70% center; }

.work-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(23, 40, 59, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-image:hover img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.work-image:hover::after {
  opacity: 1;
}

.view-icon {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 254, 251, 0.92);
  border: 1px solid rgba(23, 40, 59, 0.2);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.view-icon svg {
  width: 19px;
}

.work-image:hover .view-icon,
.work-image:focus-visible .view-icon {
  opacity: 1;
  transform: translateY(0);
}

.work-info {
  min-height: 70px;
  padding: 15px 3px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.work-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.work-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.favorite-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.favorite-button svg {
  width: 18px;
}

.favorite-button:hover {
  border-color: var(--coral);
  transform: rotate(-7deg);
}

.favorite-button.is-favorite {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.favorite-button.is-favorite svg {
  fill: currentColor;
}

.classroom-section {
  position: relative;
  min-height: 690px;
  padding: 104px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: center;
  gap: 80px;
  color: white;
  background: var(--blue-dark);
  overflow: hidden;
}

.classroom-section::before {
  position: absolute;
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -140px;
  content: "";
  border: 60px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.classroom-copy {
  position: relative;
  z-index: 2;
}

.classroom-copy .section-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--yellow);
}

.classroom-copy h2 {
  max-width: 380px;
}

.classroom-tags {
  margin: 42px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.classroom-tags span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.classroom-tags span:nth-of-type(2) { background: var(--coral); }
.classroom-tags span:nth-of-type(3) { background: white; }
.classroom-tags span:nth-of-type(4) { background: var(--green); }

.classroom-tags i {
  width: 15px;
  height: 2px;
  display: block;
  background: rgba(255, 255, 255, 0.45);
}

.outline-button {
  color: var(--ink);
  background: white;
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.classroom-collage {
  position: relative;
  z-index: 2;
  min-height: 480px;
}

.classroom-collage figure {
  position: absolute;
  margin: 0;
  padding: 11px;
  color: var(--ink);
  background: white;
  border: 2px solid var(--ink);
  box-shadow: 12px 14px 0 rgba(9, 26, 75, 0.54);
}

.classroom-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-main {
  width: 72%;
  height: 390px;
  top: 20px;
  left: 0;
  transform: rotate(-2deg);
}

.collage-small {
  width: 42%;
  height: 290px;
  right: 0;
  bottom: 5px;
  transform: rotate(4deg);
}

.classroom-collage figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 10px 14px;
  display: grid;
  background: white;
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.classroom-collage figcaption span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.classroom-collage figcaption strong {
  font-size: 16px;
}

.site-footer {
  width: var(--page);
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-family: "STKaiti", "KaiTi", sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.site-footer > a:last-child {
  font-size: 13px;
  font-weight: 800;
}

.work-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.work-dialog::backdrop {
  background: rgba(10, 19, 31, 0.91);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
}

.dialog-shell figure {
  width: min(1120px, calc(100vw - 180px));
  height: min(76vh, 760px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dialog-shell figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-shell figcaption {
  min-height: 72px;
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.dialog-shell figcaption span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dialog-shell figcaption h2 {
  margin: 0;
  font-size: 20px;
}

.dialog-close,
.dialog-nav {
  position: absolute;
  z-index: 3;
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.dialog-close:hover,
.dialog-nav:hover {
  color: var(--ink);
  background: white;
}

.dialog-close svg,
.dialog-nav svg {
  width: 22px;
}

.dialog-close {
  top: 24px;
  right: 28px;
}

.dialog-prev { left: 34px; top: 50%; }
.dialog-next { right: 34px; top: 50%; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  :root { --page: min(100% - 38px, 900px); }

  .header-inner { height: 76px; }
  .main-nav { gap: 24px; }

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 110px;
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero h1 { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(84vw, 660px); justify-self: center; }

  .journey-layout { grid-template-columns: 1fr; }
  .year-rail {
    padding: 0 0 12px;
    flex-direction: row;
    overflow-x: auto;
  }
  .year-rail::before { display: none; }
  .year-button { width: 180px; min-width: 180px; min-height: 74px; }
  .year-button::before { display: none; }
  .year-button:hover,
  .year-button.is-active { transform: translateY(-3px); }
  .program-intro { grid-template-columns: 1fr 1fr; }

  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card-wide { grid-column: span 2; }

  .classroom-section {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .classroom-copy h2 { margin-inline: auto; }
  .classroom-tags { justify-content: center; }
  .classroom-collage { width: min(760px, 100%); justify-self: center; }
}

@media (max-width: 720px) {
  .header-inner {
    gap: 8px;
  }

  .admin-login-link {
    min-height: 34px;
    margin-left: auto;
    padding-inline: 10px;
  }

  :root { --page: calc(100vw - 30px); }

  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-cta { display: none; }
  .menu-button { display: block; }

  .main-nav {
    position: fixed;
    top: 75px;
    right: 0;
    left: 0;
    padding: 26px 24px 34px;
    display: grid;
    gap: 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav a {
    padding: 14px;
    font-size: 17px;
    text-align: center;
  }

  .main-nav a::after { display: none; }

  .menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-open .menu-button span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-button span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero {
    padding: 118px 18px 86px;
    gap: 46px;
  }

  .hero h1 { font-size: clamp(40px, 11.2vw, 54px); }
  .hero-keywords { font-size: 13px; }
  .hero-actions { margin-top: 33px; gap: 18px; }
  .primary-button { min-height: 52px; padding: 0 20px; }
  .hero-visual { width: calc(100vw - 46px); padding: 20px 14px 24px 8px; }
  .hero-photo { padding: 9px; box-shadow: 10px 12px 0 var(--blue), 12px 14px 0 var(--ink); }
  .hero-photo img { height: 345px; }
  .hero-photo figcaption { padding: 11px 2px 0; }
  .hero-photo figcaption strong { font-size: 16px; }
  .paper-note-top { right: 12%; padding: 7px 12px; font-size: 12px; }
  .paper-note-side { right: -7px; bottom: 62px; width: 75px; height: 75px; }
  .paper-note-side strong { font-size: 28px; }
  .hero-spark-one { left: -12px; width: 38px; }
  .hero-spark-two { display: none; }
  .hero-scroll { display: none; }

  .ribbon-track { min-height: 62px; gap: 34px; }
  .ribbon-track span { font-size: 18px; }

  .journey-section { padding: 88px 0 10px; }
  .journey-heading { margin-bottom: 28px; }
  .journey-heading > p { display: none; }
  .year-rail { gap: 8px; }
  .year-button { width: 150px; min-width: 150px; min-height: 66px; padding: 11px 14px; }
  .year-button strong { font-size: 27px; }
  .program-intro { min-height: 0; grid-template-columns: 1fr; box-shadow: 6px 7px 0 var(--ink); }
  .program-intro figure { min-height: 330px; }
  .program-content { padding: 31px 25px 28px; }
  .program-content h3 { font-size: clamp(24px, 7vw, 29px); }
  .program-summary { margin: 18px 0 22px; font-size: 13px; line-height: 1.75; }
  .program-content dl { margin-bottom: 25px; }

  .works-section { padding: 92px 0 105px; }
  .section-heading { align-items: center; }
  .section-heading > div { gap: 12px; }
  .section-heading h2, .classroom-copy h2 { font-size: 44px; }
  .section-heading p { font-size: 11px; }
  .section-heading p strong { font-size: 20px; }
  .filter-bar { margin: 28px 0 32px; gap: 8px; }
  .filter-button { min-height: 38px; padding: 0 13px; }

  .works-grid { grid-template-columns: 1fr; gap: 35px; }
  .work-card-wide { grid-column: span 1; }
  .work-image,
  .work-card-wide .work-image,
  .work-card-tall .work-image { height: min(76vw, 380px); }
  .work-card:nth-child(1) .work-image { height: 92vw; max-height: 450px; }
  .view-icon { opacity: 1; transform: none; }

  .classroom-section {
    min-height: auto;
    padding: 82px 18px 104px;
    gap: 50px;
  }
  .classroom-tags { gap: 7px; }
  .classroom-tags i { width: 7px; }
  .classroom-collage { min-height: 425px; }
  .collage-main { width: 88%; height: 310px; }
  .collage-small { width: 62%; height: 220px; }
  .classroom-collage figcaption { right: 12px; bottom: 12px; }

  .site-footer {
    min-height: 210px;
    padding: 42px 0;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .dialog-shell figure {
    width: calc(100vw - 24px);
    height: calc(100vh - 150px);
  }
  .dialog-close { top: 14px; right: 14px; }
  .dialog-nav { width: 44px; height: 44px; top: auto; bottom: 22px; }
  .dialog-prev { left: 18px; }
  .dialog-next { right: 18px; }
  .dialog-shell figcaption { padding-inline: 54px; }
}

@media (max-width: 720px) {
  .home-works-footer {
    margin-top: 36px;
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-hero {
    padding: 132px 0 46px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .gallery-hero h1 {
    font-size: clamp(27px, 8vw, 32px);
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  .gallery-hero-copy > p:last-child {
    margin-top: 20px;
    font-size: 13px;
  }

  .gallery-years {
    width: 100%;
    justify-content: flex-start;
  }

  .gallery-year-button {
    min-width: 132px;
  }

  .gallery-works {
    padding-top: 62px;
  }
}

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