/* =========================================================
   云顶游艺 — /assets/site.css
   Shared shell: reset → tokens → typography → utilities
   → header → footer → components → motion → breakpoints
   ========================================================= */

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: #061426;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ice);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 88% -6%, rgba(75, 46, 131, 0.55), transparent 68%),
    radial-gradient(680px 380px at 4% 2%, rgba(34, 230, 210, 0.13), transparent 70%),
    radial-gradient(560px 340px at 52% 106%, rgba(240, 68, 138, 0.13), transparent 70%);
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---------- 2. tokens ---------- */
:root {
  /* palette */
  --ink: #061426;
  --deep: #0B2A3A;
  --slate: #142238;
  --cyan: #22E6D2;
  --gold: #E7B95B;
  --magenta: #F0448A;
  --violet: #4B2E83;
  --ice: #EAF4FF;
  --mist: #9FB4C8;
  --amber: #FFB347;

  --cyan-dim: rgba(34, 230, 210, 0.22);
  --gold-dim: rgba(231, 185, 91, 0.28);
  --magenta-dim: rgba(240, 68, 138, 0.28);
  --line: rgba(159, 180, 200, 0.2);
  --line-soft: rgba(159, 180, 200, 0.12);

  /* type */
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;

  /* scale */
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.05rem, 0.98rem + 0.35vw, 1.15rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.95vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.35rem, 1.65rem + 3.4vw, 4rem);

  /* layout */
  --header-h: 72px;
  --maxw: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --cut: 20px;
}

/* ---------- 3. typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--ice);
}

h1 { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.6rem); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }

p { color: var(--ice); }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ef7e8; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(2.5rem, 1.4rem + 6vw, 5.5rem);
  color: var(--ice);
}

.serif-lead {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--ice);
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.muted { color: var(--mist); }
.small { font-size: var(--step--1); line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan-dim), var(--gold-dim) 55%, transparent);
  margin-block: clamp(1.4rem, 3vw, 2.4rem);
}

/* ---------- 4. accessibility ---------- */
.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;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 120;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: #04212c;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.22s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: #04212c; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#main-content:focus { outline: none; }

/* ---------- 5. layout utilities ---------- */
.container {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(2.6rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(1.6rem, 4vw, 3rem); }
.section--flush { padding-block: 0; }

.stack > * + * { margin-top: clamp(0.8rem, 1.6vw, 1.2rem); }
.stack--loose > * + * { margin-top: clamp(1.4rem, 3vw, 2.2rem); }

.grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.grid--tight { gap: clamp(0.6rem, 1.2vw, 0.9rem); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.cols-2 {
  display: grid;
  gap: clamp(1rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.cols-3 {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* ---------- 6. header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(6, 20, 38, 0.9) 0%, rgba(6, 20, 38, 0.3) 66%, rgba(6, 20, 38, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header[data-solid="true"] {
  background: rgba(11, 42, 58, 0.97);
  border-bottom-color: var(--cyan-dim);
  box-shadow: 0 20px 44px -32px rgba(34, 230, 210, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.2rem);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ice);
  flex: 0 0 auto;
}
.brand:hover { color: var(--ice); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  color: #04212c;
  background: linear-gradient(142deg, var(--cyan) 8%, #8ef8ec 46%, var(--gold) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  box-shadow: 0 0 18px -4px rgba(34, 230, 210, 0.75);
}

.brand-text { display: grid; gap: 0.1rem; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ice);
}

.brand-sign {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--mist);
  text-transform: uppercase;
}

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 0.9vw, 0.85rem);
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.5rem 0.6rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.18rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.25, 1);
}
.nav-link:hover { color: var(--ice); }
.nav-link:hover::after { transform: scaleX(0.45); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link--entry { color: var(--gold); }
.nav-link--entry:hover { color: #f6d79a; }
.nav-link--entry::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: -0.15rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px var(--gold);
}

.nav-foot { display: none; }

/* mobile toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 40px;
  padding: 0;
  background: rgba(34, 230, 210, 0.07);
  border: 1px solid rgba(34, 230, 210, 0.34);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.nav-toggle:hover { background: rgba(34, 230, 210, 0.16); border-color: var(--cyan); }
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ice);
  transform: translateX(-50%);
  transition: transform 0.26s ease, top 0.26s ease, background-color 0.26s ease;
}
.nav-toggle::before { top: calc(50% - 5px); }
.nav-toggle::after { top: calc(50% + 3px); }
.site-header[data-nav-open="true"] .nav-toggle::before {
  top: 50%;
  background: var(--cyan);
  transform: translateX(-50%) rotate(45deg);
}
.site-header[data-nav-open="true"] .nav-toggle::after {
  top: 50%;
  background: var(--cyan);
  transform: translateX(-50%) rotate(-45deg);
}

/* progress */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(159, 180, 200, 0.1);
  overflow: hidden;
}
.header-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 42%, var(--magenta) 76%, var(--gold));
  box-shadow: 0 0 12px rgba(34, 230, 210, 0.7);
  transition: transform 0.12s linear;
}

/* ---------- 7. footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 7rem);
  color: var(--mist);
  background:
    radial-gradient(760px 320px at 88% -4%, rgba(75, 46, 131, 0.6), transparent 70%),
    radial-gradient(520px 260px at 6% 108%, rgba(34, 230, 210, 0.14), transparent 72%),
    linear-gradient(180deg, #0B2A3A 0%, #061426 62%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, var(--magenta) 58%, var(--gold) 82%, transparent);
  opacity: 0.85;
}

.footer-inner {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.85fr) minmax(230px, 1fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  padding-block: clamp(2.4rem, 5vw, 3.8rem) clamp(1.6rem, 3vw, 2.4rem);
}

.footer-brand { display: grid; align-content: start; gap: 0.5rem; }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(96deg, var(--ice) 6%, var(--cyan) 54%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-sign {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-cta { margin-top: 1.2rem; justify-self: start; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(231, 185, 91, 0.22);
}

.footer-links li + li { margin-top: 0.1rem; }

.footer-links a {
  display: inline-block;
  padding: 0.34rem 0;
  font-size: 0.92rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer-contact { display: grid; align-content: start; gap: 0.55rem; }

.contact-line { display: grid; gap: 0.1rem; }

.contact-k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 180, 200, 0.78);
}

.contact-v {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ice);
  word-break: break-word;
}

.footer-note {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--mist);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  padding-block: 1.15rem 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--mist);
}
.footer-meta p { color: var(--mist); }
.footer-copy { font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-icp { font-family: var(--font-mono); letter-spacing: 0.04em; color: rgba(159, 180, 200, 0.85); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-left: auto;
}
.footer-legal a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--cyan); }

/* ---------- 8. components ---------- */
/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: linear-gradient(118deg, var(--cyan) 10%, #8ef8ec 100%);
  color: #04212c;
  box-shadow: 0 12px 28px -16px rgba(34, 230, 210, 0.95);
}
.btn--primary:hover {
  color: #04212c;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(34, 230, 210, 1);
}
.btn--ghost {
  background: rgba(34, 230, 210, 0.06);
  color: var(--ice);
  box-shadow: inset 0 0 0 1px var(--cyan-dim);
}
.btn--ghost:hover {
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(34, 230, 210, 0.62);
}
.btn--gold {
  background: linear-gradient(118deg, var(--gold) 8%, #f7dc9f 100%);
  color: #2a1c04;
  box-shadow: 0 12px 28px -18px rgba(231, 185, 91, 0.95);
}
.btn--gold:hover { color: #2a1c04; transform: translateY(-2px); }

/* chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--cyan);
  background: rgba(34, 230, 210, 0.08);
  box-shadow: inset 0 0 0 1px rgba(34, 230, 210, 0.32);
}
.chip--gold { color: var(--gold); background: rgba(231, 185, 91, 0.09); box-shadow: inset 0 0 0 1px rgba(231, 185, 91, 0.34); }
.chip--magenta { color: var(--magenta); background: rgba(240, 68, 138, 0.09); box-shadow: inset 0 0 0 1px rgba(240, 68, 138, 0.34); }
.chip--muted { color: var(--mist); background: rgba(159, 180, 200, 0.08); box-shadow: inset 0 0 0 1px var(--line); }

/* breadcrumb */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(159, 180, 200, 0.45);
}
.breadcrumb a { color: var(--mist); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* panel */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  background: linear-gradient(158deg, rgba(20, 34, 56, 0.94), rgba(11, 42, 58, 0.82));
  box-shadow: inset 0 0 0 1px rgba(159, 180, 200, 0.16);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.panel > * + * { margin-top: 0.75rem; }
.panel--violet { background: linear-gradient(158deg, rgba(75, 46, 131, 0.62), rgba(20, 34, 56, 0.9)); }
.panel--ink { background: linear-gradient(158deg, rgba(6, 20, 38, 0.95), rgba(11, 42, 58, 0.88)); }

/* prose */
.prose {
  max-width: 68ch;
  font-size: var(--step-1);
  line-height: 1.78;
  color: var(--ice);
}
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.7em; font-size: var(--step-1); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.4em; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--ice); font-weight: 700; }
.prose a { color: var(--cyan); }

/* media container */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(152deg, rgba(34, 230, 210, 0.12), transparent 46%),
    linear-gradient(180deg, #0f2b3f, #0a1a2b);
  box-shadow: inset 0 0 0 1px rgba(159, 180, 200, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.media > img,
.media > picture > img,
.media > .media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(158deg, rgba(34, 230, 210, 0.16), transparent 44%),
    linear-gradient(0deg, rgba(6, 20, 38, 0.55), transparent 58%);
  opacity: 0.6;
}
.media--plain::after { display: none; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 21 / 9; }

/* ---------- 9. motion & floating ui ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px) rotate(-0.4deg);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.25, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0.95rem;
  color: var(--cyan);
  background: rgba(11, 42, 58, 0.94);
  border: 1px solid var(--cyan-dim);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(34, 230, 210, 0.16); color: var(--ice); }

/* ---------- 10. breakpoints ---------- */
@media (max-width: 1080px) {
  .nav-link { font-size: 0.82rem; padding-inline: 0.4rem; }
  .nav-link::after { left: 0.4rem; right: 0.4rem; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    flex: 0 0 auto;
    padding-inline: var(--gutter);
    background:
      radial-gradient(420px 220px at 88% 0%, rgba(75, 46, 131, 0.5), transparent 70%),
      linear-gradient(180deg, #0B2A3A 0%, #061426 100%);
    border-bottom: 1px solid var(--cyan-dim);
    box-shadow: 0 34px 60px -34px #000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.42s cubic-bezier(0.22, 0.9, 0.25, 1), opacity 0.3s ease, visibility 0.3s ease;
  }
  .site-nav[data-open="true"] {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 0.4rem 0.9rem;
  }
  .nav-item { display: block; }
  .nav-link {
    display: block;
    padding: 0.95rem 0.2rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after {
    left: 0.2rem;
    right: auto;
    width: 26px;
    bottom: 0.55rem;
  }
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-link--entry::before { left: auto; right: 0.2rem; top: 1.15rem; }

  .nav-foot {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 0.2rem 1.4rem;
    border-top: 1px solid var(--line-soft);
  }
  .nav-foot-k {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
  }
  .nav-foot-v {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--mist);
    word-break: break-word;
  }

  body[data-nav-locked="true"] { overflow: hidden; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; --cut: 14px; }

  .brand-mark { width: 34px; height: 34px; font-size: 0.95rem; }
  .brand-name { font-size: 1rem; }
  .brand-sign { font-size: 0.58rem; letter-spacing: 0.1em; }

  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .footer-legal { margin-left: 0; width: 100%; }
  .footer-meta { gap: 0.5rem 1.2rem; }

  .to-top { width: 42px; height: 42px; }
}

/* ---------- 11. reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .nav-link:hover,
  .footer-links a:hover { transform: none; }
}
