/* =========================================================
   欧博会馆 共享样式 / assets/site.css
   未来感数字会馆 · 非对称编辑部版式
   ========================================================= */

:root {
  --deep-900: #061826;
  --deep-700: #0B2A3D;
  --cyan-400: #29E0D6;
  --cyan-200: #A8FFF6;
  --amber-400: #FFB84D;
  --magenta-500: #E63BBE;
  --paper-50: #F5F7F4;
  --black-900: #111827;
  --slate-500: #5B6B7A;
  --green-400: #2ED47A;

  --wrap-max: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black-900);
  background: var(--paper-50);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, h4, h5, h6 { font-weight: 900; line-height: 1.18; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(6, 24, 38, 0.45);
}

/* ---------- 容器 ---------- */
.wrap {
  width: min(100% - 2.4rem, var(--wrap-max));
  margin-inline: auto;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  padding: 0.7rem 1.15rem;
  background: var(--cyan-400);
  color: var(--deep-900);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 3px;
  transform: translateY(-200%);
  transition: transform 0.24s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--cyan-400) 0%, var(--magenta-500) 58%, var(--amber-400) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--deep-900);
  color: var(--paper-50);
  border-bottom: 1px solid rgba(41, 224, 214, 0.22);
}

.header-top { position: relative; z-index: 1; }

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.6rem, 1.6vw, 0.95rem);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--deep-900);
  background: linear-gradient(140deg, var(--cyan-200), var(--cyan-400) 58%, #14b8b0);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand-text { min-width: 0; }

.brand-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.brand-latin {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--cyan-400);
}

.brand-tagline {
  margin-top: 0.18rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 244, 0.55);
}

.quick-entry {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1b1305;
  background: linear-gradient(100deg, var(--amber-400), #ffd48a);
  border: 1px solid rgba(255, 184, 77, 0.85);
  border-radius: 3px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.quick-entry-arrow {
  font-family: var(--font-mono);
  transition: transform 0.22s ease;
}
.quick-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(255, 184, 77, 0.85);
}
.quick-entry:hover .quick-entry-arrow { transform: translateX(4px); }
.quick-entry:focus-visible { outline-color: var(--amber-400); }

/* 下层目录条 */
.header-nav-bar {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--deep-700), var(--deep-900) 65%);
  border-top: 1px solid rgba(245, 247, 244, 0.09);
}

.header-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  min-height: 54px;
}

.nav-kicker {
  flex: 0 0 auto;
  padding-right: 1.2rem;
  border-right: 1px solid rgba(245, 247, 244, 0.14);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(168, 255, 246, 0.55);
  white-space: nowrap;
}

.header-nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(245, 247, 244, 0.78);
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.24rem;
  height: 2px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.24s ease;
}
.nav-link:hover { color: var(--cyan-200); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] {
  color: var(--deep-900);
  background: var(--cyan-400);
  font-weight: 800;
}
.nav-link[aria-current="page"]::after { display: none; }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(41, 224, 214, 0.45);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-200);
}
.nav-toggle-text { line-height: 1; }
.nav-toggle-box {
  position: relative;
  display: block;
  width: 16px;
  height: 12px;
}
.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 5px; }
.nav-toggle-box span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--paper-50);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(230, 59, 190, 0.16), transparent 55%),
    linear-gradient(180deg, var(--deep-700), var(--deep-900) 55%);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-400) 0 32%, var(--magenta-500) 32% 62%, var(--amber-400) 62% 100%);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background: repeating-linear-gradient(90deg, rgba(41, 224, 214, 0.06) 0 1px, transparent 1px 32px);
}
.site-footer > * { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(245, 247, 244, 0.14);
}

.footer-brand { min-width: 0; }

.footer-brand-name {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.footer-brand-latin {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  color: var(--cyan-400);
}
.footer-note {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(245, 247, 244, 0.68);
}
.footer-note--small {
  max-width: none;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: rgba(245, 247, 244, 0.5);
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid rgba(41, 224, 214, 0.5);
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan-200);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.footer-cta:hover {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--deep-900);
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(245, 247, 244, 0.14);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(168, 255, 246, 0.62);
}

.footer-links li + li { margin-top: 0.1rem; }
.footer-links a {
  display: inline-block;
  padding: 0.34rem 0;
  font-size: 0.9rem;
  color: rgba(245, 247, 244, 0.78);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: var(--cyan-200);
  transform: translateX(3px);
}

.contact-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(245, 247, 244, 0.1);
  font-size: 0.86rem;
  color: rgba(245, 247, 244, 0.8);
}
.contact-label {
  padding-top: 0.14rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: rgba(168, 255, 246, 0.55);
}
.contact-value { word-break: break-word; font-variant-numeric: tabular-nums; }
.contact-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding-block: 1.2rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(245, 247, 244, 0.58);
}
.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.legal-list a {
  color: rgba(245, 247, 244, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-list a:hover {
  color: var(--cyan-200);
  border-bottom-color: var(--cyan-400);
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 244, 0.5);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 224, 214, 0.5);
  border-radius: 3px;
  background: var(--deep-700);
  color: var(--cyan-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 14px 28px -18px #000;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cyan-400); color: var(--deep-900); }
.to-top-arrow { font-family: var(--font-mono); font-size: 1rem; line-height: 1; }

/* =========================================================
   通用区块 / 排版
   ========================================================= */
.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.section--dark { background: var(--deep-900); color: var(--paper-50); }
.section--ink { background: var(--deep-700); color: var(--paper-50); }
.section--paper { background: var(--paper-50); color: var(--black-900); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--deep-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--magenta-500);
}
.section--dark .eyebrow,
.section--ink .eyebrow { color: var(--cyan-400); }
.section--dark .eyebrow::before,
.section--ink .eyebrow::before { background: var(--cyan-400); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  letter-spacing: -0.02em;
}
.section-lede {
  max-width: 42ch;
  font-size: 0.95rem;
  color: var(--slate-500);
}
.section--dark .section-lede,
.section--ink .section-lede { color: rgba(245, 247, 244, 0.66); }

/* 网格 */
.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(100deg, var(--amber-400), #ffd48a);
  color: #1b1305;
  box-shadow: 0 12px 26px -18px rgba(255, 184, 77, 0.95);
}
.btn--cyan { background: var(--cyan-400); color: var(--deep-900); }
.btn--magenta {
  background: linear-gradient(100deg, var(--magenta-500), var(--cyan-400));
  color: #0b0410;
}
.btn--ghost {
  border-color: rgba(41, 224, 214, 0.55);
  color: var(--cyan-200);
  background: transparent;
}
.btn--ghost:hover { background: rgba(41, 224, 214, 0.12); }
.btn--ghost-ink {
  border-color: rgba(6, 24, 38, 0.3);
  color: var(--deep-900);
}
.btn--ghost-ink:hover { background: rgba(6, 24, 38, 0.06); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.58rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.tag--gold { color: var(--amber-400); }
.tag--cyan { color: #0f8f89; }
.tag--magenta { color: var(--magenta-500); }
.tag--slate { color: var(--slate-500); }
.tag--green { color: #1c9d59; }
.section--dark .tag--cyan,
.section--ink .tag--cyan { color: var(--cyan-400); }

/* 卡片 */
.card {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: #ffffff;
  border: 1px solid rgba(6, 24, 38, 0.12);
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 224, 214, 0.6);
  box-shadow: 0 20px 38px -28px rgba(6, 24, 38, 0.75);
}
.card__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.card__title {
  margin-top: 0.5rem;
  font-size: 1.08rem;
  color: var(--deep-900);
}
.card__text {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--slate-500);
}
.card--dark {
  background: var(--deep-700);
  border-color: rgba(41, 224, 214, 0.28);
  color: var(--paper-50);
}
.card--dark .card__label { color: rgba(168, 255, 246, 0.6); }
.card--dark .card__title { color: var(--paper-50); }
.card--dark .card__text { color: rgba(245, 247, 244, 0.66); }

/* 面包屑 */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--slate-500);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.breadcrumb a {
  color: var(--slate-500);
  border-bottom: 1px solid rgba(91, 107, 122, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--deep-700);
  border-bottom-color: var(--cyan-400);
}
.crumb-sep { color: rgba(91, 107, 122, 0.55); }
.breadcrumb [aria-current="page"] {
  color: var(--deep-700);
  font-weight: 600;
}

/* 折叠面板 */
.fold { border-top: 1px solid rgba(6, 24, 38, 0.14); }
.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 700;
  color: var(--deep-900);
  cursor: pointer;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--slate-500);
  transition: color 0.2s ease;
}
.fold[open] > summary::after {
  content: "–";
  color: var(--magenta-500);
}
.fold-body {
  max-width: 62ch;
  padding-bottom: 1.1rem;
  font-size: 0.92rem;
  color: var(--black-900);
}

/* 提示条 */
.note {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--amber-400);
  border-radius: 0 3px 3px 0;
  background: rgba(255, 184, 77, 0.12);
  font-size: 0.88rem;
  color: var(--deep-900);
}

/* 图片容器（页面阶段放置内容） */
.figure { margin: 0; }
.figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(41, 224, 214, 0.25);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--deep-700), var(--deep-900));
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(41, 224, 214, 0.12) 0 1px, transparent 1px 14px);
}
.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-caption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--slate-500);
}

/* 滚动显现 */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 980px) {
  .header-nav-inner { min-height: 52px; gap: 0.8rem; }
  .nav-kicker { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 0.7rem 1.2rem 1.1rem;
    background: linear-gradient(180deg, var(--deep-700), var(--deep-900));
    border-top: 1px solid rgba(41, 224, 214, 0.28);
    border-bottom: 1px solid rgba(41, 224, 214, 0.28);
    box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.95);
  }
  .header-nav[data-open] { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid rgba(245, 247, 244, 0.1); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.2rem;
    font-size: 0.95rem;
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    background: rgba(41, 224, 214, 0.14);
    color: var(--cyan-200);
    padding-left: 0.75rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--split,
  .grid--split-rev,
  .grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-mark { width: 38px; height: 38px; font-size: 0.68rem; }
  .brand-line { font-size: 0.98rem; gap: 0.4rem; }
  .brand-tagline { display: none; }
  .brand-latin { font-size: 0.58rem; letter-spacing: 0.18em; }
  .quick-entry { padding: 0.5rem 0.72rem; font-size: 0.74rem; letter-spacing: 0.02em; }
  .header-top-inner { padding-block: 0.55rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.74rem; }
  .grid--2 { grid-template-columns: 1fr; }
  .to-top { right: 0.8rem; bottom: 0.8rem; }
}

@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;
  }
  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
