/* ==========================================================
   云顶俱乐部 — 共享层 /assets/site.css
   轨道 · 章节 · 侧翼
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}

ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }

img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; }

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

:focus-visible {
  outline: 2px solid #35E0D0;
  outline-offset: 3px;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0A1633;
  --ink-2: #101F44;
  --ink-3: #14264F;
  --line: #1B2B55;
  --cyan: #35E0D0;
  --cyan-soft: #9BF3EA;
  --orange: #FF8A3D;
  --amber: #FFC46B;
  --white: #F2F6FF;
  --muted: #8FA3C8;
  --paper: #F5F7FC;

  /* 字体三档 */
  --font-display: 'Noto Serif SC', 'Source Han Serif SC', Georgia, 'Songti SC', serif;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Courier New', monospace;

  /* 尺寸 */
  --shell: 1280px;
  --rail: 76px;
  --header-h: 78px;
  --header-h-slim: 62px;
  --gap: 28px;
  --r: 2px;

  /* 动效 */
  --t-fast: 140ms;
  --t-mid: 200ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(80% 55% at 8% 0%, rgba(53, 224, 208, .14), rgba(53, 224, 208, 0) 60%),
    radial-gradient(60% 45% at 95% 2%, rgba(255, 138, 61, .09), rgba(255, 138, 61, 0) 58%),
    linear-gradient(to right, rgba(53, 224, 208, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 224, 208, .035) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-attachment: fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main,
#main-content { display: block; position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 1rem + .55vw, 1.4rem); }
h4 { font-size: 1.02rem; }

p { text-wrap: pretty; }

strong { color: var(--cyan-soft); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
}

.num { font-variant-numeric: tabular-nums; }

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

/* 正文内链接：下划线由左向右展开 */
.link {
  color: var(--cyan-soft);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.link:hover,
.link:focus-visible {
  color: var(--cyan);
  background-size: 100% 1px;
}

/* ---------- 4. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.section { position: relative; z-index: 1; }
.section--ink2 { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--ink); }
.section--paper .link { color: #0F6E68; background-image: linear-gradient(#0F6E68, #0F6E68); }
.section--paper .link:hover { color: #0A1633; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 140;
  padding: 11px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  border-radius: var(--r);
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 6. 头部轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    backdrop-filter var(--t-mid) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: rgba(10, 22, 51, .95);
  border-bottom-color: var(--line);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: var(--shell);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  transition: height var(--t-mid) var(--ease);
}

.site-header[data-scrolled="true"] .header-inner { height: var(--header-h-slim); }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--cyan);
  border-radius: var(--r);
  background: radial-gradient(120% 120% at 28% 14%, rgba(53, 224, 208, .26), rgba(53, 224, 208, 0) 72%);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  transition: box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  color: var(--cyan-soft);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(53, 224, 208, .35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--muted);
}

/* 导航 */
.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: .93rem;
  color: rgba(242, 246, 255, .72);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-fast) var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--white); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 工具位 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.tool-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .755rem;
  letter-spacing: .07em;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}

.tool-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

.tool-link:hover,
.tool-link:focus-visible { color: var(--amber); }

.tool-count {
  font-family: var(--font-mono);
  font-size: .755rem;
  letter-spacing: .07em;
  color: var(--amber);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.btn-accent {
  background: var(--orange);
  color: #12203C;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 22px rgba(255, 138, 61, .26);
}

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

.btn-line {
  background: rgba(53, 224, 208, .1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-line:hover,
.btn-line:focus-visible {
  background: rgba(53, 224, 208, .2);
  color: var(--cyan-soft);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 208, .07);
}

.btn[aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 196, 107, .12);
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
  flex: none;
}

.nav-toggle-bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle-label { display: inline-block; }

.site-header[data-open="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: transparent;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width 120ms linear;
}

/* ---------- 7. 页面头部 / 面包屑 ---------- */
.page-head {
  position: relative;
  z-index: 1;
  padding: 40px 0 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .05em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--t-fast) var(--ease);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--cyan); }

.crumb-sep { color: var(--line); }

.breadcrumb [aria-current="page"] { color: var(--cyan-soft); }

/* ---------- 8. 内容组件 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-meta {
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card {
  position: relative;
  padding: 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: rgba(53, 224, 208, .5);
  background: var(--ink-3);
}

.section--paper .card {
  background: #FFFFFF;
  border-color: #D5DEEE;
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(27, 43, 85, .38);
  font-family: var(--font-mono);
  font-size: .715rem;
  letter-spacing: .05em;
  color: var(--muted);
  transition:
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

a.tag:hover,
a.tag:focus-visible,
.tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 224, 208, .09);
}

.section--paper .tag {
  background: #EDF2FB;
  border-color: #CBD8EC;
  color: #4A5F86;
}

.section--paper a.tag:hover,
.section--paper .tag:hover {
  border-color: #0F6E68;
  color: #0F6E68;
  background: #E1F2F0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: .67rem;
  letter-spacing: .07em;
  line-height: 1.6;
}

.badge--new {
  color: var(--orange);
  background: rgba(255, 138, 61, .15);
  border-color: rgba(255, 138, 61, .42);
}

.badge--update {
  color: var(--amber);
  background: rgba(255, 196, 107, .13);
  border-color: rgba(255, 196, 107, .4);
}

.badge--stable {
  color: var(--cyan);
  background: rgba(53, 224, 208, .11);
  border-color: rgba(53, 224, 208, .36);
}

.stat-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: var(--ink-2);
}

.stat-row dt {
  font-size: .86rem;
  color: var(--muted);
}

.stat-row dd {
  font-family: var(--font-mono);
  font-size: 1.06rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.section--paper .stat-list { background: #CBD8EC; border-color: #CBD8EC; }
.section--paper .stat-row { background: #FFFFFF; }
.section--paper .stat-row dt { color: #4A5F86; }
.section--paper .stat-row dd { color: #0F6E68; }

.path-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.path-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease);
}

.path-step:hover { background: var(--ink-3); }

.path-step-idx {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--cyan);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.update-list { display: grid; }

.update-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-item:last-child { border-bottom: 0; }

.update-time {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: .73rem;
  letter-spacing: .05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. 图片容器（页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame--veil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 22, 51, 0) 42%, rgba(10, 22, 51, .62) 100%);
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .05em;
  color: var(--muted);
}

/* ---------- 10. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: #08122A;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 54px 24px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(120px, 1fr));
  gap: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}

.footer-line {
  margin-top: 10px;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-domain {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--cyan);
}

.footer-col-title {
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan-soft);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: .9rem;
  color: rgba(242, 246, 255, .7);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--t-fast) var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cyan);
  padding-left: 14px;
}

.footer-link:hover::before,
.footer-link:focus-visible::before { width: 9px; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .765rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-item::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--orange);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
}

.footer-copy,
.footer-legal {
  font-family: var(--font-mono);
  font-size: .71rem;
  letter-spacing: .05em;
  color: rgba(143, 163, 200, .85);
}

.footer-legal { color: var(--cyan-soft); }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-tools .tool-count { display: none; }
}

@media (max-width: 1080px) {
  body { font-size: 16.5px; }
  .header-tools .tool-link { display: none; }
  .grid-12 { gap: 22px; }
  .col-7 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
  .col-9 { grid-column: span 12; }
  .col-5 { grid-column: span 7; }
  .col-6 { grid-column: span 6; }
}

@media (max-width: 980px) {
  :root {
    --header-h: 66px;
    --header-h-slim: 58px;
    --gap: 20px;
  }

  .header-inner { gap: 14px; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 24px) 24px 40px;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-mid) var(--ease), visibility var(--t-mid) var(--ease);
  }

  .site-header[data-open="true"] .site-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 15px 4px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    left: 4px;
    right: auto;
    width: 30px;
    bottom: 8px;
  }

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

  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9 { grid-column: span 12; }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-brand { grid-column: 1 / -1; }
  .footer-shell { padding: 44px 22px 24px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .shell { padding: 0 18px; }
  .header-inner { padding: 0 18px; }

  .brand-tagline { display: none; }

  .btn { padding: 10px 14px; font-size: .85rem; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle-label { display: none; }

  .page-head { padding: 30px 0 18px; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .path-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-shell { padding: 36px 18px 22px; }
  .footer-contact { font-size: .72rem; }
  .footer-bottom { justify-content: flex-start; }
}

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

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .progress-bar { transition: none; }
}
