/* ==========================================================================
   红牛娱乐会馆 · 共享站点样式
   路径：/assets/site.css
   结构：01 变量 / 02 重置 / 03 排版 / 04 基础组件 / 05 头部 / 06 资料栏
        07 页脚 / 08 动效与无障碍 / 09 响应式
   ========================================================================== */

/* 01 变量 ---------------------------------------------------------------- */
:root {
  --c-red: #C8102E;
  --c-red-deep: #8E0B20;
  --c-gold: #F5B700;
  --c-gold-deep: #8A6100;
  --c-paper: #F6EFE3;
  --c-white: #FFFDF8;
  --c-ink: #151515;
  --c-gray: #6E7378;
  --c-line: #D9D6CF;
  --c-cyan: #1FA7C9;
  --grad-cyan: linear-gradient(135deg, #2BB3D6 0%, #0E7FA8 100%);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: "Barlow Condensed", "DIN Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --shell-max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --rail-w: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 420ms;
  --line-ink: rgba(21, 21, 21, 0.14);
  --line-paper: rgba(246, 239, 227, 0.16);
  --shadow-paper: 4px 4px 0 var(--c-line);
}

/* 02 重置 ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

body.is-nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 800; }
address { font-style: normal; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--c-white);
}

/* 03 排版 ---------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.display--tilt {
  transform: rotate(-6deg);
  transform-origin: left bottom;
  margin-block: 0.12em 0.22em;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.9;
}

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(24px, 3vw, 34px); }
.prose h3 { margin-top: 1.7em; font-size: clamp(19px, 2vw, 24px); }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }

/* 04 基础组件 ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gray);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--c-red);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--c-line);
  background-color: var(--c-white);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--c-ink);
}

.tag--red { border-color: var(--c-red); color: var(--c-red); }
.tag--gold { border-color: var(--c-gold); background-color: var(--c-gold); color: var(--c-ink); font-weight: 700; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

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

.btn--brand {
  background-color: var(--c-red);
  color: var(--c-white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.btn--brand:hover {
  background-color: var(--c-red-deep);
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.28);
}

.btn--brand:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--c-white), inset 0 0 0 5px var(--c-cyan);
}

.btn--gold {
  background-color: var(--c-gold);
  color: var(--c-ink);
}

.btn--gold:hover { background-color: #DDA400; }

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

.btn--ghost:hover { background-color: var(--c-ink); color: var(--c-paper); }

.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--c-gold);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-gold-deep);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-gold:hover { color: var(--c-red); border-color: var(--c-red); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  background-color: var(--c-white);
  color: var(--c-ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-paper);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-gray);
}

.crumbs a {
  color: var(--c-gray);
  border-bottom: 1px solid transparent;
}

.crumbs a:hover { color: var(--c-red); border-color: var(--c-red); }
.crumbs__sep { color: var(--c-line); }
.crumbs [aria-current="page"] { color: var(--c-ink); font-weight: 700; }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background-color: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-paper);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
              border-color 0.24s var(--ease);
}

.card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--c-gray);
  box-shadow: 6px 6px 0 var(--c-line);
}

.note {
  padding-left: 14px;
  border-left: 3px solid var(--c-gold);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-gray);
}

.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--c-ink);
  border: 1px solid var(--c-line);
}

.media__frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-image: linear-gradient(135deg, var(--c-ink) 0%, #2c2c2c 60%, var(--c-red-deep) 100%);
}

.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--square .media__frame { aspect-ratio: 1 / 1; }

.media__caption {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--c-line);
  background-color: var(--c-white);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-gray);
}

.blueprint {
  background-color: var(--c-paper);
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* 05 头部 ---------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background-color: var(--c-ink);
  color: var(--c-paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}

.header-top {
  height: 38px;
  overflow: hidden;
  background-color: var(--c-ink);
  color: var(--c-paper);
  transition: height 0.32s var(--ease), opacity 0.24s var(--ease);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}

.site-header[data-shrunk] .header-top { height: 0; opacity: 0; }

.brandline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 239, 227, 0.86);
  overflow: hidden;
  white-space: nowrap;
}

.brandline__mark { font-weight: 800; color: var(--c-white); }
.brandline__sep { color: var(--c-gold); }
.brandline__place { color: rgba(246, 239, 227, 0.6); }

.header-top__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px;
  border: 1px solid rgba(245, 183, 0, 0.5);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-gold);
  white-space: nowrap;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

.lang {
  padding: 2px 8px;
  border: 1px solid var(--line-paper);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(246, 239, 227, 0.7);
  white-space: nowrap;
}

.header-main { background-color: var(--c-white); }

.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: 68px;
  transition: min-height 0.3s var(--ease);
}

.site-header[data-shrunk] .header-main__inner { min-height: 56px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  white-space: nowrap;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gray);
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { list-style: none; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 3px;
  background-color: var(--c-red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease);
}

.nav__link:hover { color: var(--c-red); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__num {
  padding: 0 3px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-gray);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__link[aria-current="page"] { color: var(--c-red); font-weight: 900; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] .nav__num {
  padding: 0 4px;
  background-color: var(--c-gold);
  color: var(--c-ink);
  font-weight: 700;
}

.nav__library { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.header-actions .btn--brand { padding: 11px 20px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--c-line);
  background-color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-ink);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background-color: var(--c-red);
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: relative;
  height: 3px;
  background-color: var(--c-paper);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, var(--c-red) 0%, var(--c-gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: rgba(21, 21, 21, 0.6);
}

.nav-scrim[hidden] { display: none; }

/* 06 左侧资料栏 ---------------------------------------------------------- */
.rail { display: none; }

/* 07 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: 24px;
  background-color: var(--c-ink);
  color: var(--c-paper);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-image: linear-gradient(90deg,
    var(--c-red) 0 54%,
    var(--c-gold) 54% 68%,
    rgba(246, 239, 227, 0.18) 68% 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 239, 227, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 227, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer__brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-white);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.footer__desc {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 239, 227, 0.72);
}

.footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer__tag {
  padding: 3px 8px;
  border: 1px solid rgba(246, 239, 227, 0.24);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(246, 239, 227, 0.78);
}

.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--c-gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: rgba(246, 239, 227, 0.78);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--c-white);
  transform: translateX(3px);
}

.footer__contact {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(246, 239, 227, 0.78);
  word-break: break-word;
}

.footer__contact strong {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-white);
}

.footer__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(246, 239, 227, 0.2);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(246, 239, 227, 0.6);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(246, 239, 227, 0.16);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(246, 239, 227, 0.62);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer__legal a {
  color: rgba(246, 239, 227, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__legal a:hover { color: var(--c-white); border-color: var(--c-gold); }
.footer__legal-sep { color: rgba(246, 239, 227, 0.3); }

.btn-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(246, 239, 227, 0.28);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(246, 239, 227, 0.82);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}

.btn-top:hover {
  background-color: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
}

/* 08 动效与无障碍 -------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .pill__dot { animation: none; }
  .btn:hover,
  .card:hover,
  .footer__link:hover { transform: none; }
}

/* 09 响应式 -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 9px; font-size: 14px; }
  .nav__link::after { left: 9px; right: 9px; }
  .header-actions .link-gold { display: none; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .rail {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 70;
    width: var(--rail-w);
    align-items: center;
    justify-content: center;
    background-color: var(--c-ink);
    border-right: 1px solid rgba(246, 239, 227, 0.1);
  }

  .rail__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    height: 100%;
    padding: 24px 0;
  }

  .rail__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(246, 239, 227, 0.85);
    transition: color 0.2s var(--ease);
  }

  .rail__num {
    font-family: var(--font-num);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--c-gold);
  }

  .rail__label { color: inherit; }

  .rail__line {
    width: 1px;
    height: 56px;
    background-color: rgba(246, 239, 227, 0.28);
  }

  .rail__meta {
    writing-mode: vertical-rl;
    font-family: var(--font-num);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(246, 239, 227, 0.42);
  }

  .rail__link:hover { color: var(--c-gold); }

  .nav-scrim { display: none; }
}

@media (max-width: 1023px) {
  .brand { flex: 1; }
  .nav-toggle { display: inline-flex; }

  .header-main__inner { justify-content: space-between; }

  .header-actions .link-gold,
  .header-actions .icon-btn { display: none; }

  .header-actions .btn--brand { padding: 10px 14px; font-size: 13px; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: block;
    max-height: 82vh;
    padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    background-color: var(--c-ink);
    border-top: 3px solid var(--c-gold);
    overflow-y: auto;
    transform: translateY(115%);
    visibility: hidden;
    transition: transform 0.34s var(--ease), visibility 0.34s;
  }

  .nav[data-open] {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.34s var(--ease), visibility 0s;
  }

  .nav__library {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 13px 16px;
    background-color: var(--c-red);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  }

  .nav__library .num { color: var(--c-gold); }

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

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 12px;
    border-bottom: 1px solid rgba(246, 239, 227, 0.14);
    color: var(--c-paper);
    font-size: 17px;
    font-weight: 700;
  }

  .nav__link::after { display: none; }
  .nav__link:hover { color: var(--c-gold); }
  .nav__link .nav__num { order: 2; font-size: 13px; color: rgba(245, 183, 0, 0.72); background: none; }

  .nav__link[aria-current="page"] {
    color: var(--c-gold);
    background-color: rgba(200, 16, 46, 0.18);
    box-shadow: inset 3px 0 0 var(--c-red);
  }

  .nav__link[aria-current="page"] .nav__num {
    background-color: var(--c-gold);
    color: var(--c-ink);
    padding: 0 5px;
  }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .brandline__place { display: none; }
  .pill--live { display: none; }
  .brand__name { font-size: 17px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 479px) {
  .brand__sub { display: none; }
  .nav-toggle__label { display: none; }
  .header-actions .btn--brand { padding: 9px 12px; font-size: 12px; }
}
