/* =========================================================
   蒙青创班级 · 独立门户原型
   Design tokens: ink + paper + teal/mint + amber
   ========================================================= */

:root {
  --paper: #f4f6f0;
  --paper-2: #ecf1e9;
  --surface: #ffffff;
  --ink: #10211e;
  --ink-2: #2f433f;
  --muted: #5c6f6a;
  --line: rgba(16, 33, 30, 0.12);
  --line-strong: rgba(16, 33, 30, 0.22);
  --teal: #0b6b5d;
  --teal-deep: #073f38;
  --teal-ink: #052b27;
  --mint: #5ad7bf;
  --mint-2: #a9efdf;
  --mint-soft: #ddf4ec;
  --amber: #e8a93c;
  --amber-soft: #fbf0d8;
  --red: #c4553d;
  --red-soft: #f8e4de;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow: 0 22px 50px -30px rgba(7, 63, 56, 0.35);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 94px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(90, 215, 191, 0.14), transparent 62%),
    radial-gradient(800px 420px at -10% 30%, rgba(232, 169, 60, 0.07), transparent 60%),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link:focus {
  transform: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 246, 240, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 246, 240, 0.95);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand__text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand__name {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.nav__link {
  position: relative;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--teal);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(11, 107, 93, 0.8);
}

.btn--primary:hover {
  background: var(--teal-deep);
  box-shadow: 0 16px 32px -16px rgba(11, 107, 93, 0.75);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--teal);
}

.btn--light {
  background: #fff;
  color: var(--teal-deep);
}

.btn--light:hover {
  background: var(--mint-soft);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #f2faf7;
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

/* ---------- Eyebrow / section head ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--mint);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-head__left {
  max-width: 720px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 850;
  text-wrap: balance;
}

.section-head p {
  margin: 12px 0 0;
  max-width: 580px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-head__link:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.section-head__link .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 74px 0 62px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 33, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 33, 30, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 0%, transparent 72%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 58px;
  align-items: center;
}

.hero__copy > * {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero__copy > *:nth-child(1) {
  animation-delay: 0.02s;
}

.hero__copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__copy > *:nth-child(3) {
  animation-delay: 0.14s;
}

.hero__copy > *:nth-child(4) {
  animation-delay: 0.2s;
}

.hero__copy > *:nth-child(5) {
  animation-delay: 0.26s;
}

.hero__title {
  margin: 18px 0 20px;
  font-size: clamp(44px, 6.1vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-wrap: balance;
}

.hero__title em {
  position: relative;
  isolation: isolate;
  font-style: normal;
  color: var(--teal);
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 7px;
  height: 15px;
  z-index: -1;
  border-radius: 3px;
  background: var(--mint-2);
  transform: rotate(-1.2deg);
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.hero__visual {
  position: relative;
  min-width: 0;
  padding: 18px 8px;
  animation: rise 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* Homepage carousel */
.hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: #0b2823;
  box-shadow: 0 46px 90px -42px rgba(7, 63, 56, 0.8);
  transform: rotate(1deg);
}

.hero-carousel__track,
.hero-carousel__slide {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-carousel__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 25, 21, 0.92) 0%, rgba(4, 25, 21, 0.48) 42%, rgba(4, 25, 21, 0.06) 76%),
    linear-gradient(120deg, rgba(4, 25, 21, 0.44), transparent 58%);
}

.hero-carousel__body {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: #f2faf7;
}

.hero-carousel__body h2 {
  max-width: 420px;
  margin: 8px 0;
  font-size: clamp(23px, 2.35vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-carousel__body p {
  max-width: 390px;
  margin: 0;
  color: rgba(242, 250, 247, 0.74);
  font-size: 12px;
  line-height: 1.7;
}

.hero-carousel__eyebrow {
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding-bottom: 2px;
  color: var(--amber);
  border-bottom: 1px solid rgba(232, 169, 60, 0.55);
  font-size: 11px;
  font-weight: 700;
}

.hero-carousel__arrow {
  position: absolute;
  top: 18px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(4, 25, 21, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-carousel__arrow:hover,
.hero-carousel__arrow:focus-visible {
  background: rgba(4, 25, 21, 0.78);
  border-color: var(--mint);
}

.hero-carousel__arrow--prev { right: 58px; }
.hero-carousel__arrow--next { right: 18px; }

.hero-carousel__dots {
  position: absolute;
  z-index: 3;
  top: 27px;
  left: 24px;
  display: flex;
  gap: 6px;
}

.hero-carousel__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-carousel__dot.is-active {
  width: 18px;
  border-radius: 4px;
  background: var(--mint);
}

/* dashboard mock */

.dash {
  position: relative;
  padding: 20px;
  color: #eaf7f2;
  background: linear-gradient(155deg, #0d2d27 0%, #071b18 62%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  box-shadow: 0 46px 90px -42px rgba(7, 63, 56, 0.8);
  transform: rotate(1.2deg);
  overflow: hidden;
}

.dash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 220px at 88% 0%, rgba(90, 215, 191, 0.2), transparent 66%),
    radial-gradient(300px 200px at 0% 100%, rgba(232, 169, 60, 0.08), transparent 70%);
}

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

.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash__dots {
  display: flex;
  gap: 5px;
}

.dash__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.dash__dots i:first-child {
  background: var(--mint);
}

.dash__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(234, 247, 242, 0.5);
}

.dash__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 16px;
  align-items: center;
  padding: 22px 0 18px;
}

.dash__kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(234, 247, 242, 0.48);
}

.dash__title {
  margin: 8px 0 4px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash__sub {
  margin: 0;
  font-size: 11px;
  color: rgba(234, 247, 242, 0.58);
}

.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 58px;
  margin-top: 14px;
}

.dash__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(to top, rgba(90, 215, 191, 0.22), rgba(90, 215, 191, 0.85));
}

.dash__bars i:nth-child(6) {
  background: linear-gradient(to top, rgba(232, 169, 60, 0.28), var(--amber));
}

.ring {
  --p: 68;
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 34px -12px rgba(90, 215, 191, 0.55);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #0a211d;
}

.ring__inner {
  position: relative;
  text-align: center;
  line-height: 1;
}

.ring__inner strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.ring__inner span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(234, 247, 242, 0.48);
}

.dash__rank {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash__rank-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}

.dash__rank-row b {
  width: 17px;
  color: rgba(234, 247, 242, 0.42);
  font-family: var(--font-mono);
  font-size: 9px;
}

.dash__rank-row span {
  color: rgba(234, 247, 242, 0.72);
}

.dash__rank-row em {
  margin-left: auto;
  font-style: normal;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.float-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.float-badge--csp {
  top: -2px;
  right: -8px;
  background: var(--amber);
  color: #2a1a05;
  transform: rotate(3deg);
  box-shadow: 0 14px 26px -14px rgba(232, 169, 60, 0.8);
}

.float-badge--noip {
  bottom: 8px;
  left: -14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--teal-deep);
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}

.float-badge .icon {
  width: 13px;
  height: 13px;
}

/* ---------- Stats ---------- */

.stats {
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat__num {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat__num small {
  margin-left: 2px;
  font-size: 0.42em;
  color: var(--teal);
  letter-spacing: 0;
}

.stat__label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--mint-soft);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 13px 15px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pillar:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 107, 93, 0.28);
  box-shadow: var(--shadow);
}

.pillar__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 24px 0 18px;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--teal);
}

.pillar__icon .icon {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  margin: 0 0 9px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.pillar__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
}

.pillar__foot .icon {
  width: 13px;
  height: 13px;
}

/* ---------- Training path ---------- */

.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.path::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.path__step {
  position: relative;
  padding-top: 44px;
}

.path__dot {
  position: absolute;
  top: 10px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.path__step:nth-child(2) .path__dot {
  background: var(--mint);
  box-shadow: 0 0 0 1px var(--mint);
}

.path__step:nth-child(3) .path__dot {
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.path__step:nth-child(4) .path__dot {
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.path__card {
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.path__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.path__stage {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.path h3 {
  margin: 9px 0 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.path p {
  margin: 0 0 13px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.path ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path li {
  display: flex;
  gap: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

.path li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--mint);
  flex: 0 0 auto;
}

/* ---------- Covers / tags ---------- */

.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--teal-deep);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.cover::after {
  content: attr(data-mark);
  position: absolute;
  right: 6px;
  bottom: -2px;
  z-index: 0;
  max-width: 110%;
  overflow: hidden;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.1em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.cover--teal {
  background: linear-gradient(135deg, #0c7566, #063a34);
}

.cover--amber {
  background: linear-gradient(135deg, #d7952f, #7f470f);
}

.cover--ink {
  background: linear-gradient(135deg, #24453f, #071b18);
}

.cover--mint {
  background: linear-gradient(135deg, #2cb49b, #0a5a4e);
}

.cover__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover--photo::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 31, 27, 0.42), transparent 42%, rgba(7, 31, 27, 0.5));
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.cover--photo::after {
  display: none;
}

.cover__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.cover__glyph {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
}

.cover__kicker {
  position: absolute;
  top: 46px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
}

.cover__art {
  position: absolute;
  left: 22px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: #fff;
}

.cover__big {
  font-size: clamp(64px, 8.4vw, 112px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.cover__big-label {
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.68);
}

.cover__ring {
  position: absolute;
  top: 22%;
  right: 12%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.cover__ring::before,
.cover__ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cover__ring::before {
  inset: 16%;
}

.cover__ring::after {
  inset: 34%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--amber {
  background: var(--amber-soft);
  color: #875706;
}

.tag--ink {
  background: #e9ede7;
  color: var(--ink-2);
}

.tag--red {
  background: var(--red-soft);
  color: var(--red);
}

.tag--on-cover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 22px;
  align-items: stretch;
}

.news-feature {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.news-feature__cover {
  aspect-ratio: 16 / 8.2;
}

.news-feature__body {
  padding: 22px 26px 26px;
}

.news-feature h3 {
  margin: 11px 0 10px;
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.news-feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.news-feature__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.news-feature__foot .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 107, 93, 0.28);
  box-shadow: var(--shadow);
}

.news-card__cover {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.news-card__cover::after {
  right: auto;
  left: 50%;
  bottom: 10px;
  font-size: 30px;
  transform: translateX(-50%);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.news-card__body > .tag,
.post-card__body > .tag {
  align-self: flex-start;
}

.news-card h3 {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.news-card p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.news-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ---------- Contest list ---------- */

.contest-list {
  border-top: 1px solid var(--line);
}

.contest {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}

.contest:hover {
  padding-inline: 16px;
  margin-inline: -16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.contest__date {
  display: grid;
  gap: 2px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.contest__date strong {
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.contest__date span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contest__body {
  min-width: 0;
}

.contest h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.contest__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  font-size: 11px;
  color: var(--muted);
}

.contest__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.contest__meta .icon {
  width: 12px;
  height: 12px;
}

.contest__side {
  display: flex;
  align-items: center;
  gap: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--open {
  background: var(--mint-soft);
  color: var(--teal);
}

.status--soon {
  background: var(--amber-soft);
  color: #8a5a06;
}

.status--done {
  background: #e9ede7;
  color: var(--muted);
}

/* ---------- Honors ---------- */

.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.honor {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.honor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.honor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.honor__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.medal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 169, 60, 0.4);
  border-radius: 50%;
  background: var(--amber-soft);
  color: #966108;
}

.medal .icon {
  width: 20px;
  height: 20px;
}

.honor__year {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.honor__level {
  margin-top: 16px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #9a6408;
}

.honor h3 {
  margin: 5px 0 14px;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.honor__person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
}

.honor__person b {
  color: var(--ink);
  font-weight: 750;
}

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.quote__mark {
  height: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 0.8;
  color: var(--mint);
}

.quote p {
  margin: 8px 0 22px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

.quote__person {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.quote__person__text b {
  display: block;
  font-size: 12px;
}

.quote__person__text span {
  font-size: 10px;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: 52px;
  overflow: hidden;
  background: var(--teal-deep);
  border-radius: 32px;
  color: #f2faf7;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(120deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 78%);
}

.cta::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 215, 191, 0.28), transparent 68%);
  pointer-events: none;
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.cta h2 {
  margin: 13px 0 15px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.cta p {
  max-width: 510px;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(242, 250, 247, 0.7);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.cta__note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(242, 250, 247, 0.44);
}

.cta__steps {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cta__step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.cta__step b {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mint);
}

.cta__step h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.cta__step p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(242, 250, 247, 0.52);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  padding: 58px 0 26px;
  background: #0a1e1b;
  color: #dcebe6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.7fr 1fr;
  gap: 38px;
}

.footer-brand .brand__name {
  color: #fff;
}

.footer-brand .brand__en {
  color: rgba(220, 235, 230, 0.45);
}

.footer-brand p {
  max-width: 300px;
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(220, 235, 230, 0.58);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 235, 230, 0.4);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(220, 235, 230, 0.76);
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: rgba(220, 235, 230, 0.42);
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom a:hover {
  color: var(--mint);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-legal--right {
  justify-content: flex-end;
  text-align: right;
}

.footer-legal [data-home="footer_police"]:empty {
  display: none;
}

@media (max-width: 720px) {
  .footer-legal,
  .footer-legal--right {
    display: block;
    text-align: left;
  }

  .footer-legal > * {
    display: block;
    margin-top: 4px;
  }
}

/* ---------- Page hero / breadcrumb ---------- */

.page-hero {
  position: relative;
  padding: 66px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 80% 0%, rgba(90, 215, 191, 0.14), transparent 66%),
    transparent;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-wrap: balance;
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb .icon {
  width: 11px;
  height: 11px;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
}

.page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-hero__meta .icon {
  width: 13px;
  height: 13px;
}

/* ---------- About ---------- */

.manifesto {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
}

.manifesto blockquote {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(27px, 4vw, 50px);
  line-height: 1.38;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.manifesto blockquote em {
  font-style: normal;
  color: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
}

.split h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.split p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

.split p:last-child {
  margin-bottom: 0;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.principle {
  padding-top: 17px;
  border-top: 1px solid var(--line-strong);
}

.principle b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.principle p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-card__avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.team-card:nth-child(2) .team-card__avatar {
  background: linear-gradient(135deg, #a56a13, var(--amber));
}

.team-card:nth-child(3) .team-card__avatar {
  background: linear-gradient(135deg, #284b45, #0b6b5d);
}

.team-card h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.team-card p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.team-card__tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 9px;
  color: var(--ink-2);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.support {
  padding-top: 17px;
  border-top: 2px solid var(--mint);
}

.support__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--teal);
}

.support__icon .icon {
  width: 18px;
  height: 18px;
}

.support h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.support p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- News page ---------- */

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 42px;
  align-items: start;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.filter {
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card__cover {
  aspect-ratio: 16 / 10;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 17px 19px 20px;
}

.post-card h3 {
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.post-card p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.post-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.post-card.is-hidden {
  display: none;
}

.empty-state {
  display: none;
  padding: 42px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.empty-state.is-show {
  display: block;
}

.aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.aside-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.aside-event {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.aside-event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-event:first-of-type {
  padding-top: 0;
}

.aside-event__date {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 10px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.aside-event__date b {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
}

.aside-event h4 {
  margin: 1px 0 4px;
  font-size: 11px;
  line-height: 1.5;
}

.aside-event p {
  margin: 0;
  font-size: 9px;
  color: var(--muted);
}

.aside-cta {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: var(--teal-deep);
  border-radius: var(--radius);
  color: #f2faf7;
}

.aside-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 215, 191, 0.35), transparent 68%);
}

.aside-cta h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 16px;
}

.aside-cta p {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(242, 250, 247, 0.62);
}

.aside-cta .btn {
  position: relative;
  z-index: 1;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  color: var(--ink-2);
}

.pagination .is-current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.pagination .is-disabled {
  opacity: 0.35;
}

.pagination button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  cursor: pointer;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Article ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 52px;
  align-items: start;
}

.article__head {
  max-width: 800px;
}

.article__title {
  margin: 16px 0 16px;
  font-size: clamp(31px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-wrap: balance;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 10px;
  color: var(--muted);
}

.article__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article__meta .icon {
  width: 12px;
  height: 12px;
}

.article__cover {
  aspect-ratio: 21 / 9;
  margin: 30px 0 36px;
  border-radius: var(--radius);
}

.prose {
  max-width: 760px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
}

.prose > p:first-of-type {
  font-size: 17px;
  color: var(--ink);
}

.prose p {
  margin: 0 0 17px;
}

.prose h2 {
  margin: 40px 0 14px;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 21px;
}

.prose li {
  margin-bottom: 7px;
}

.prose li::marker {
  color: var(--teal);
}

.prose blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  margin: 22px 0 26px;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.prose th,
.prose td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--paper-2);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article__foot span {
  margin-right: 4px;
  font-size: 10px;
  color: var(--muted);
}

.article__foot .tag {
  background: var(--paper-2);
  color: var(--ink-2);
}

.article__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}

.related-item__cover {
  aspect-ratio: 1;
  border-radius: 8px;
}

.related-item__cover::after {
  display: none;
}

.related-item h4 {
  margin: 0 0 3px;
  font-size: 11px;
  line-height: 1.5;
}

.related-item span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
}

/* ---------- Honors page ---------- */

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.year-tab {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.year-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.honor-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.certificate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 218px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificate:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.certificate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(232, 169, 60, 0.38);
  border-radius: 14px;
  pointer-events: none;
}

.certificate__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.certificate__year {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.certificate__seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232, 169, 60, 0.45);
  border-radius: 50%;
  color: #9a6408;
  background: var(--amber-soft);
}

.certificate__seal .icon {
  width: 18px;
  height: 18px;
}

.certificate__body {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.certificate__level {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #9a6408;
}

.certificate h3 {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.certificate__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 10px;
  color: var(--muted);
}

.certificate__bottom b {
  color: var(--ink);
}

.certificate.is-hidden {
  display: none;
}

/* ---------- Admission ---------- */

.admission-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 66px;
  background: linear-gradient(135deg, #073f38 0%, #0a2e29 58%, #071f1b 100%);
  color: #f2faf7;
}

.admission-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(110deg, #000, transparent 76%);
  -webkit-mask-image: linear-gradient(110deg, #000, transparent 76%);
}

.admission-hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 215, 191, 0.3), transparent 68%);
}

.admission-hero .shell {
  position: relative;
  z-index: 1;
}

.admission-hero h1 {
  max-width: 900px;
  margin: 14px 0 16px;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-wrap: balance;
}

.admission-hero p {
  max-width: 600px;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(242, 250, 247, 0.7);
}

.admission-hero .page-hero__meta {
  color: rgba(242, 250, 247, 0.52);
}

.admission-hero .page-hero__meta .icon {
  color: var(--mint);
}

.admission-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fit {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fit__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--teal);
}

.fit__icon .icon {
  width: 20px;
  height: 20px;
}

.fit h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.fit p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  margin-top: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 19px;
  width: 1px;
  background: var(--line-strong);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 19px;
  padding-bottom: 26px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.timeline__item.is-done .timeline__num {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.timeline__item h3 {
  margin: 2px 0 5px;
  font-size: 15px;
}

.timeline__item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 8px;
}

.faq__item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.faq__q .icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
  transition: transform 0.25s ease;
}

.faq__item.is-open .faq__q .icon {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq__a p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.form-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-card h3 {
  margin: 0 0 5px;
  font-size: 19px;
}

.form-card > p {
  margin: 0 0 22px;
  font-size: 11px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  height: 96px;
  padding: 11px 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 107, 93, 0.12);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.checkbox input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.form-note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Admission grid ---------- */

.admission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}

@media (max-width: 980px) {
  .admission-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 19px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal / motion ---------- */

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--d1 {
  transition-delay: 0.06s;
}

.reveal--d2 {
  transition-delay: 0.12s;
}

.reveal--d3 {
  transition-delay: 0.18s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .nav {
    gap: 19px;
  }

  .hero__grid {
    gap: 38px;
  }

  .dash {
    transform: none;
  }

  .float-badge--csp {
    right: 0;
  }

  .float-badge--noip {
    left: 0;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn--oj {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    max-width: 580px;
    width: 100%;
    margin-inline: auto;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .path {
    grid-template-columns: 1fr 1fr;
    gap: 26px 16px;
  }

  .path::before {
    display: none;
  }

  .path__step {
    padding-top: 0;
  }

  .path__dot {
    position: static;
    margin-bottom: 12px;
  }

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

  .news-list {
    grid-template-columns: 1fr 1fr;
  }

  .news-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

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

  .cta__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .news-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .aside,
  .article__aside {
    position: static;
  }

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

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

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

  .admission-hero {
    padding: 56px 0 50px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 32px);
  }

  .section {
    padding: 70px 0;
  }

  .section--tight {
    padding: 54px 0;
  }

  .header-inner {
    height: 66px;
  }

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

  .brand__name {
    font-size: 17px;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .hero__title {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero__lead {
    font-size: 14px;
  }

  .hero__actions .btn {
    flex: 1;
  }

  .dash__body {
    grid-template-columns: 1fr 100px;
  }

  .dash {
    padding: 17px;
  }

  .ring {
    width: 96px;
    height: 96px;
  }

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

  .float-badge--noip {
    display: none;
  }

  .stat {
    padding: 22px 17px;
  }

  .section-head {
    display: block;
  }

  .section-head__link {
    margin-top: 16px;
  }

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

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

  .path__dot {
    margin-bottom: 9px;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .contest {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 15px;
  }

  .contest__side {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 77px;
  }

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

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

  .cta {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .cta__actions .btn {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
    line-height: 1.8;
  }

  .footer-bottom span {
    display: block;
  }

  .page-hero {
    padding: 46px 0 36px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .manifesto {
    padding: 54px 0;
  }

  .team-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

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

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

  .post-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .post-card__cover {
    aspect-ratio: auto;
    min-height: 128px;
    height: 100%;
  }

  .post-card__body {
    padding: 14px 16px 16px;
  }

  .post-card h3 {
    font-size: 14px;
  }

  .post-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .post-card__meta {
    padding-top: 10px;
  }

  .post-card__cover::after,
  .news-card__cover::after {
    right: auto;
    bottom: 8px;
    font-size: 27px;
  }

  .post-card__cover::after {
    right: 8px;
    left: auto;
    transform: none;
  }

  .news-card__cover::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .aside,
  .article__aside {
    grid-template-columns: 1fr;
  }

  .article__cover {
    aspect-ratio: 16 / 9;
  }

  .honor-page-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .form-card {
    padding: 22px;
  }

  .admission-hero h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .admission-hero__actions .btn {
    flex: 1;
  }
}

@media (max-width: 460px) {
  .brand__en {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn--sm {
    padding: 0 14px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .hero__meta {
    display: grid;
    gap: 7px;
  }

  .dash__body {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .ring {
    grid-row: 1;
  }

  .news-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .news-card h3 {
    font-size: 13px;
  }

  .contest__side {
    padding-left: 0;
  }

  .cta__actions,
  .hero__actions,
  .admission-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta__actions .btn,
  .hero__actions .btn,
  .admission-hero__actions .btn {
    width: 100%;
  }

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

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }
}

/* ---------- Mobile drawer ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 20px 26px;
  background: #071f1b;
  color: #eaf7f2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav__top .brand__name {
  color: #fff;
}

.mobile-nav__top .brand__en {
  color: rgba(234, 247, 242, 0.45);
}

.mobile-nav__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.mobile-nav__links {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 26px 0;
}

.mobile-nav__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  outline-offset: 4px;
}

.mobile-nav__links a:focus-visible {
  outline: 2px solid var(--mint);
}

.mobile-nav__links a span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(234, 247, 242, 0.45);
}

.mobile-nav__links a.is-active {
  color: var(--mint);
}

.mobile-nav__bottom {
  display: grid;
  gap: 10px;
}

.mobile-nav__bottom p {
  margin: 0;
  font-size: 10px;
  color: rgba(234, 247, 242, 0.45);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 981px) {
  .mobile-nav {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

/* 静态截图模式：?snap=1 关闭所有入场动画，便于设计评审 */
.snap .hero__copy > *,
.snap .hero__visual,
.snap .reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.snap .marquee__track {
  animation: none !important;
}

/* ---------- Certificate honor cards ---------- */

.honor-grid--certs {
  align-items: stretch;
}

.honor--cert {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.honor--cert::before {
  left: 0;
  right: 0;
}

.honor__cert {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 8px;
  background: #f7f3ea;
  border-bottom: 1px solid var(--line);
}

.honor__cert img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
  background: #f7f3ea;
}

.honor__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7, 63, 56, 0.82);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.honor--cert:hover .honor__zoom {
  opacity: 1;
  transform: translateY(0);
}

.honor__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 20px 18px;
}

.honor__body .honor__level {
  margin-top: 0;
}

.honor__body h3 {
  margin: 5px 0 12px;
}

.honor__body .honor__person {
  margin-top: auto;
}

@media (max-width: 740px) {
  .honor__cert img {
    height: 200px;
  }
}

/* ---------- Certificate gallery (honors page) ---------- */

.honor-page-grid--certs {
  align-items: stretch;
}

.certificate--image {
  min-height: 0;
  padding: 0;
}

.certificate--image::before {
  display: none;
}

.certificate__image {
  display: block;
  padding: 8px;
  background: #f7f3ea;
  border-bottom: 1px solid var(--line);
}

.certificate__image img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: contain;
  background: #f7f3ea;
}

.certificate--image .certificate__body {
  padding: 16px 20px 0;
}

.certificate--image .certificate__bottom {
  margin: 16px 20px 18px;
}

@media (max-width: 740px) {
  .certificate__image img {
    height: 220px;
  }
}

/* ---------- Honor groups ---------- */

.honor-jump .year-tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.honor-group {
  margin-top: 38px;
  scroll-margin-top: 96px;
}

.honor-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.honor-group__head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.honor-group__head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 740px) {
  .honor-group__head h3 {
    font-size: 18px;
  }
}

.honor-jump .year-tab.is-active {
  color: #fff;
}

/* Honor groups: keep the first six certificates visible, expand on demand. */
.honor-page-grid > [hidden] { display: none !important; }
.honor-more { display: inline-flex; align-items: center; justify-content: center; margin: 18px auto 0; padding: 10px 18px; border: 1px solid rgba(11, 107, 93, 0.28); border-radius: 999px; background: transparent; color: var(--teal); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; cursor: pointer; }
.honor-more:hover { background: rgba(11, 107, 93, 0.07); }
.honor-group { display: flex; flex-direction: column; }

/* =========================================================
   Motion refresh: calmer page entrances, tactile controls,
   depth on cards and a soft aurora behind the hero.
   ========================================================= */

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-lift: 0 26px 56px -30px rgba(7, 63, 56, 0.42);
}

body {
  animation: mq-page-in 0.7s var(--motion-ease) both;
}

::selection {
  background: var(--mint-2);
  color: var(--teal-deep);
}

@supports (animation-timeline: scroll()) {
  body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--mint), var(--amber));
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: mq-scroll-progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -18%;
  right: 8%;
  width: min(52vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(90, 215, 191, 0.3), transparent 58%),
    radial-gradient(circle at 65% 60%, rgba(232, 169, 60, 0.14), transparent 55%);
  filter: blur(8px);
  opacity: 0.85;
  animation: mq-aurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-carousel {
  animation: mq-float 7s ease-in-out infinite;
}

.btn {
  transition:
    transform 0.32s var(--motion-spring),
    box-shadow 0.32s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn .icon {
  transition: transform 0.32s var(--motion-spring);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.brand__mark {
  transition: transform 0.45s var(--motion-spring);
}

.brand:hover .brand__mark {
  transform: rotate(-5deg) scale(1.04);
}

.nav__link::after {
  transition: transform 0.3s var(--motion-ease);
}

.section-head__link .icon {
  transition: transform 0.3s var(--motion-ease);
}

.section-head__link:hover .icon {
  transform: translate(3px, -2px);
}

.news-card,
.contest,
.honor,
.post-card,
.pillar,
.path__card,
.stat,
.dash,
.cta {
  transition:
    transform 0.4s var(--motion-ease),
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

@media (hover: hover) {
  .news-card:hover,
  .contest:hover,
  .honor:hover,
  .post-card:hover,
  .pillar:hover,
  .path__card:hover,
  .stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
}

.js .reveal {
  transition:
    opacity 0.85s var(--motion-ease),
    transform 0.85s var(--motion-ease);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

@keyframes mq-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mq-scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes mq-aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate3d(-3%, 4%, 0) scale(1.06); opacity: 0.9; }
  100% { transform: translate3d(2%, -3%, 0) scale(1.02); opacity: 0.7; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body,
  .hero-carousel,
  .hero::after {
    animation: none !important;
  }
  .btn,
  .btn .icon,
  .brand__mark,
  .nav__link::after,
  .section-head__link .icon,
  .news-card,
  .contest,
  .honor,
  .post-card,
  .pillar,
  .path__card,
  .stat,
  .js .reveal {
    transition: none !important;
  }
  .btn:hover,
  .news-card:hover,
  .contest:hover,
  .honor:hover,
  .post-card:hover,
  .pillar:hover,
  .path__card:hover,
  .stat:hover {
    transform: none;
  }
}

