/* ============================================================
   天行赛场 · Pulse Tianxing
   全站共享样式 /assets/site.css
   ============================================================ */

/* ---------- 01 Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--cream);
  min-height: 100vh;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* ---------- 02 CSS Variables ---------- */
:root {
  --cream: #F5F0E6;
  --cream-deep: #E8DFCE;
  --ink: #1D1B1A;
  --ink-muted: #4B4440;
  --dark-blue: #1D3557;
  --red: #E63946;
  --red-card: #C1121F;
  --red-soft: #FBEAEC;
  --red-text: #A41623;
  --green: #2A9D8F;
  --green-soft: #E7F2F0;
  --gold: #FFB703;
  --yellow-card: #F4D03F;

  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Anton", "Arial Narrow", "Impact", "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 3rem;
  --sp-xl: 5rem;
  --sp-2xl: 7.5rem;

  --container-max: 1280px;
  --header-h: 4.5rem;
  --ease-fast: 0.2s ease;
  --ease-med: 0.35s ease;
  --ease-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 03 Typography ---------- */
h1, h2, h3, h4, h5, h6,
.heading {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 2.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--ink-muted); }
.text-small { font-size: var(--text-sm); }
.text-mono { font-family: var(--font-mono); }
.text-mark { color: var(--red); }

/* 正文链接 */
p a,
.note a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
  transition: color var(--ease-fast), border-bottom-color var(--ease-fast);
}
p a:hover,
.note a:hover {
  color: var(--red-card);
  border-bottom-color: var(--red-card);
}

/* ---------- 04 Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.main-content {
  min-height: 60vh;
}

.page-wrap {
  padding-top: calc(var(--header-h) + var(--sp-lg));
  padding-bottom: var(--sp-xl);
}

/* ---------- 05 Accessibility ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 0.6rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top var(--ease-med);
}
.skip-link:focus-visible {
  top: 16px;
}

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

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

/* ---------- 06 Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(245, 240, 230, 0.62);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  border-bottom: 1px solid rgba(232, 223, 206, 0.65);
  transition: background-color var(--ease-med), border-color var(--ease-med);
}
.site-header.is-solid {
  background-color: rgba(245, 240, 230, 0.97);
  border-bottom-color: var(--cream-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: var(--header-h);
  position: relative;
}

/* ---------- Brand ---------- */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.brand-en {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--red);
  padding-left: 0.5rem;
  border-left: 1px solid var(--red);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Header Nav ---------- */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-md);
  flex: 1;
}

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

.nav-link {
  display: block;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-left: 2px solid transparent;
  transition: color var(--ease-fast), border-color var(--ease-fast), background-color var(--ease-fast);
}
.nav-link:hover {
  color: var(--red);
  border-left-color: var(--red);
  background-color: rgba(230, 57, 70, 0.06);
}
.nav-link[aria-current="page"] {
  color: var(--ink);
  border-left-color: var(--red);
  font-weight: 600;
}

/* ---------- Shortcut ---------- */
.nav-shortcut {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: var(--sp-md);
  border-left: 1px solid var(--cream-deep);
  white-space: nowrap;
}
.shortcut-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  transition: color var(--ease-fast);
}
.shortcut-link:hover {
  color: var(--red);
}
.shortcut-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex-shrink: 0;
  background: var(--ink-muted);
}
.dot-red { background: var(--red); }
.dot-blue { background: var(--dark-blue); }
.shortcut-sep {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cream-deep);
}

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 1px solid var(--cream-deep);
  background: var(--cream);
  cursor: pointer;
  position: relative;
  transition: border-color var(--ease-fast), background-color var(--ease-fast);
}
.nav-toggle:hover {
  border-color: var(--red);
}
.toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--ease-fast), opacity var(--ease-fast);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 07 Footer ---------- */
.site-footer {
  background: var(--dark-blue);
  color: var(--cream);
  border-top: 4px solid var(--red);
  margin-top: var(--sp-xl);
}

.footer-pulse {
  background: var(--dark-blue);
  border-bottom: 1px solid rgba(245, 240, 230, 0.12);
  padding: var(--sp-sm) 0 0;
  overflow: hidden;
}
.pulse-svg {
  width: 100%;
  height: 32px;
  display: block;
}
.pulse-path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-path {
    animation: pulse-breathe 2.4s ease-in-out infinite;
  }
}

.footer-main {
  padding: var(--sp-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: var(--sp-lg);
}

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

.site-brand--light .brand-name {
  color: var(--cream);
}
.site-brand--light .brand-en {
  color: var(--gold);
  border-left-color: var(--gold);
}

.footer-about {
  font-size: var(--text-sm);
  color: rgba(245, 240, 230, 0.72);
  line-height: 1.8;
  margin-top: var(--sp-md);
}

.footer-trust {
  font-size: var(--text-xs);
  color: rgba(245, 240, 230, 0.55);
  line-height: 1.85;
  border-left: 2px solid var(--gold);
  padding-left: 0.75rem;
  margin-top: var(--sp-md);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(245, 240, 230, 0.15);
  margin-bottom: 1rem;
}

.footer-links li + li {
  margin-top: 0.5rem;
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(245, 240, 230, 0.75);
  transition: color var(--ease-fast), padding-left var(--ease-fast);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 0.25rem;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.1);
}
.footer-contact li:first-child {
  padding-top: 0;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 240, 230, 0.5);
}
.contact-value {
  font-size: var(--text-sm);
  color: rgba(245, 240, 230, 0.9);
  line-height: 1.5;
}

.footer-note {
  font-size: var(--text-xs);
  color: rgba(245, 240, 230, 0.55);
  line-height: 1.7;
  margin-top: var(--sp-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.15);
  margin-top: var(--sp-xl);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  padding-top: var(--sp-sm);
  padding-bottom: var(--sp-sm);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(245, 240, 230, 0.6);
  letter-spacing: 0.04em;
}
.footer-icp a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(245, 240, 230, 0.6);
  letter-spacing: 0.04em;
  transition: color var(--ease-fast);
}
.footer-icp a:hover {
  color: var(--gold);
}

/* ---------- 08 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: background-color var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn:active {
  animation: btn-flash 0.2s ease;
}
@keyframes btn-flash {
  0% { box-shadow: inset 0 0 0 2px var(--gold); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--red-card);
  border-color: var(--red-card);
  color: var(--cream);
}

.btn--ghost {
  border-color: var(--cream-deep);
  color: var(--ink-muted);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--light {
  border-color: rgba(245, 240, 230, 0.8);
  color: var(--cream);
}
.btn--light:hover {
  background: var(--cream);
  color: var(--ink);
}

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

/* ---------- 09 Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  border: 1px solid var(--cream-deep);
  color: var(--ink-muted);
  background: transparent;
}
.tag--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}
.tag--yellow {
  background: var(--yellow-card);
  border-color: var(--yellow-card);
  color: var(--ink);
}
.tag--green {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}
.tag--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- 10 Panels ---------- */
.panel {
  padding: var(--sp-xl) 0;
}
.panel--lead {
  padding-top: calc(var(--header-h) + var(--sp-lg));
  min-height: 60vh;
}
.panel--dark {
  background: var(--dark-blue);
  color: var(--cream);
}
.panel--dark h1,
.panel--dark h2,
.panel--dark h3,
.panel--dark .heading {
  color: var(--cream);
}
.panel--cream-deep {
  background: var(--cream-deep);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--cream-deep);
  margin-bottom: var(--sp-lg);
}
.panel-head--dark {
  border-bottom-color: rgba(245, 240, 230, 0.2);
}
.panel-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.panel-title {
  margin: 0;
}

/* ---------- 11 Grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-md);
}
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: 1 / -1; }

/* ---------- 12 Cards ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  padding: var(--sp-md);
  position: relative;
  border-radius: 0;
  transition: border-color var(--ease-med), transform var(--ease-med);
}
.card:hover {
  border-color: var(--red);
}
.card--dark {
  background: var(--dark-blue);
  color: var(--cream);
  border-color: transparent;
}
.card--dark:hover {
  border-color: var(--gold);
}
.card--skew {
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 1.25rem 100%, 0 calc(100% - 1.25rem));
}
.card--skew:hover {
  border-color: var(--cream-deep);
}

/* ---------- 13 Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-md);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  display: block;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 0.25rem;
}
.card--dark .stat-num {
  color: var(--gold);
}
.card--dark .stat-label {
  color: rgba(245, 240, 230, 0.65);
}

/* ---------- 14 Index List ---------- */
.index-list {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.index-list li {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--cream-deep);
  transition: border-color var(--ease-fast), background-color var(--ease-fast), padding-left var(--ease-fast);
}
.index-list li:hover {
  border-left-color: var(--red);
  background-color: var(--cream-deep);
  padding-left: 1rem;
}
.index-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-sm);
}
.index-num {
  color: var(--red);
  font-size: var(--text-xs);
}
.index-meta {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

/* ---------- 15 Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: var(--sp-sm) 0;
}
.breadcrumb a {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}
.breadcrumb a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.breadcrumb-sep {
  color: var(--cream-deep);
  margin: 0 0.25rem;
}

/* ---------- 16 Note ---------- */
.note {
  padding: var(--sp-sm) var(--sp-md);
  border-left: 3px solid var(--red);
  background: var(--cream);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.8;
}
.note--green {
  border-left-color: var(--green);
  background: var(--green-soft);
}
.note--gold {
  border-left-color: var(--gold);
  background: #FFF8E6;
}

/* ---------- 17 Image Frame ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--cream-deep);
}
.img-frame--16-9 { padding-top: 56.25%; }
.img-frame--4-3 { padding-top: 75%; }
.img-frame--1-1 { padding-top: 100%; }
.img-frame--2-1 { padding-top: 50%; }
.img-frame > img,
.img-frame > .img-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 18 Pulse Decorative ---------- */
.pulse-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--green) 50%, var(--gold) 100%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse-bar--flow {
    animation: pulse-flow 3s linear infinite;
  }
}
@keyframes pulse-flow {
  from { background-position: 0% 0; }
  to { background-position: -200% 0; }
}
@keyframes pulse-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- 19 Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumb,
  .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .main-content {
    padding: 0;
    min-height: 0;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .panel,
  .panel--lead {
    padding: 0;
    min-height: 0;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ---------- 20 Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg) var(--sp-md);
  }
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-deep);
    padding: 0 var(--sp-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0s 0.4s;
  }
  .header-nav[data-open] {
    max-height: 520px;
    padding: var(--sp-sm) var(--sp-md) var(--sp-md);
    opacity: 1;
    visibility: visible;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    border-left: 2px solid transparent;
    border-bottom: 1px solid var(--cream-deep);
    font-size: var(--text-sm);
  }
  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-left-color: var(--red);
    background-color: rgba(230, 57, 70, 0.06);
    color: var(--ink);
  }

  .nav-shortcut {
    margin-top: var(--sp-sm);
    padding-left: 0.5rem;
    padding-top: var(--sp-sm);
    border-left: none;
    border-top: 1px solid var(--cream-deep);
    gap: 1rem;
  }

  .brand-en {
    display: inline;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 4rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }
  .brand-en {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .panel--lead {
    padding-top: calc(var(--header-h) + var(--sp-md));
  }

  .header-inner {
    gap: var(--sp-sm);
  }
}

/* ---------- 21 Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pulse-path {
    animation: none !important;
  }
  .btn:active {
    box-shadow: none !important;
    animation: none !important;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .header-nav {
    transition: none !important;
  }
  .header-nav[data-open] {
    transition: none !important;
  }
}

/* ---------- 22 Reveal Protocol ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
