/* ==========================================================================
   娱乐神殿中心 · 共享站点样式 /assets/site.css
   01 重置  02 变量  03 基础排版  04 通用组件  05 头部轨道  06 页脚  07 响应式与无障碍
   ========================================================================== */

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

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

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

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

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

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

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

/* 02 变量 ---------------------------------------------------------------- */
:root {
  --void: #140B26;
  --night: #1E1238;
  --nebula: #2C1B52;
  --gold: #D9A94A;
  --gold-bright: #F2D48A;
  --cyan: #4FE3D0;
  --orange: #FF8A3D;
  --mist: #F2EEF8;
  --violet-grey: #B9ACD4;
  --rune: #6E7BFF;

  --rail-w: 88px;
  --bar-h: 64px;
  --shell-max: 1240px;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-pill: 999px;

  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "DIN Alternate", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --line-gold: 1px solid rgba(217, 169, 74, 0.32);
  --line-cyan: 1px solid rgba(79, 227, 208, 0.42);

  --shadow-paper:
    7px 7px 0 -1px rgba(12, 6, 24, 0.9),
    8px 8px 0 0 rgba(217, 169, 74, 0.16),
    0 18px 40px -26px rgba(0, 0, 0, 0.95);
  --shadow-lift:
    7px 7px 0 -1px rgba(12, 6, 24, 0.9),
    8px 8px 0 0 rgba(242, 212, 138, 0.42),
    0 26px 48px -24px rgba(79, 227, 208, 0.4);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 03 基础排版 ------------------------------------------------------------ */
body {
  min-height: 100vh;
  padding-top: var(--bar-h);
  background-color: var(--void);
  background-image:
    radial-gradient(1200px 620px at 10% -10%, rgba(110, 123, 255, 0.18), transparent 64%),
    radial-gradient(900px 560px at 92% 6%, rgba(217, 169, 74, 0.12), transparent 62%),
    radial-gradient(1100px 720px at 50% 108%, rgba(79, 227, 208, 0.09), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--mist);
}

h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  letter-spacing: 0.02em;
  text-shadow: 0 0 1px rgba(217, 169, 74, 0.9), 0 0 30px rgba(217, 169, 74, 0.18);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-shadow: 0 0 1px rgba(217, 169, 74, 0.6);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

p { max-width: 72ch; }

strong { color: var(--gold-bright); font-weight: 700; }

::selection { background: rgba(79, 227, 208, 0.32); color: #ffffff; }

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--bar-h) + 16px);
}

[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* 04 通用组件 ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold-bright);
  color: #241238;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.rule-gold {
  height: 1px;
  width: 100%;
  border: 0;
  margin-block: clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(217, 169, 74, 0.85), rgba(217, 169, 74, 0));
}

.rule-gold--short {
  width: 48px;
  background: linear-gradient(90deg, var(--gold-bright), rgba(217, 169, 74, 0.2));
}

.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mist);
}

.prose p + p { margin-top: 1em; }
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(79, 227, 208, 0.45);
}
.prose a:hover { border-bottom-color: var(--cyan); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

.card {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: var(--line-gold);
  border-radius: var(--radius-m);
  background:
    linear-gradient(165deg, rgba(44, 27, 82, 0.94), rgba(30, 18, 56, 0.97));
  box-shadow: var(--shadow-paper);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 212, 138, 0.62);
  box-shadow: var(--shadow-lift);
}

.card > h3:first-child { margin-bottom: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(217, 169, 74, 0.55);
  border-radius: var(--radius-pill);
  background: rgba(44, 27, 82, 0.62);
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--cyan {
  border-color: rgba(79, 227, 208, 0.55);
  color: var(--cyan);
  background: rgba(79, 227, 208, 0.1);
}

.badge--orange {
  border-color: rgba(255, 138, 61, 0.62);
  color: #FFC8A2;
  background: rgba(255, 138, 61, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, #FF8A3D 0%, #FFB06B 58%, #FFD4A6 100%);
  color: #22113A;
  box-shadow: 0 12px 28px -14px rgba(255, 138, 61, 0.95);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(255, 138, 61, 1);
}

.btn-outline {
  border-color: rgba(217, 169, 74, 0.55);
  background: rgba(44, 27, 82, 0.5);
  color: var(--gold-bright);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  background: rgba(217, 169, 74, 0.16);
}

.btn-ghost {
  border-color: rgba(79, 227, 208, 0.4);
  color: var(--cyan);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(79, 227, 208, 0.12);
  border-color: var(--cyan);
}

.btn-sm { padding: 8px 16px; font-size: 12.5px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--violet-grey);
}

.breadcrumb a {
  padding-bottom: 1px;
  color: var(--violet-grey);
  border-bottom: 1px solid rgba(79, 227, 208, 0.4);
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--gold-bright); }
.breadcrumb-sep { color: rgba(217, 169, 74, 0.62); }

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

.annotation {
  font-size: 12px;
  letter-spacing: 0.26em;
  line-height: 1.7;
  color: var(--violet-grey);
}

.img-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--line-gold);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(44, 27, 82, 0.92), rgba(20, 11, 38, 0.96));
  box-shadow:
    7px 7px 0 -1px rgba(12, 6, 24, 0.86),
    8px 8px 0 0 rgba(217, 169, 74, 0.16);
}

.img-frame > img,
.img-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(20, 11, 38, 0.6);
  pointer-events: none;
}

.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* 05 头部轨道 ------------------------------------------------------------ */
.temple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--bar-h);
}

.rail-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(30, 18, 56, 0.98), rgba(20, 11, 38, 0.96));
  border-bottom: 1px solid rgba(217, 169, 74, 0.3);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
}

.rail-progress {
  --progress: 0;
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold-bright));
  box-shadow: 0 0 12px rgba(79, 227, 208, 0.7);
  transition: transform 0.12s linear;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-sigil {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.sigil-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(217, 169, 74, 0.95), transparent);
}

.sigil-line--a { transform: translate(-50%, -50%) rotate(45deg); }
.sigil-line--b { transform: translate(-50%, -50%) rotate(-45deg); }

.sigil-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(79, 227, 208, 0.9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}

.brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--violet-grey);
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  z-index: 320;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(217, 169, 74, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(44, 27, 82, 0.7);
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav-toggle-glyph { display: grid; gap: 3px; }

.nav-toggle-glyph span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.temple-header[data-open="true"] .nav-toggle-glyph span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.temple-header[data-open="true"] .nav-toggle-glyph span:nth-child(2) { opacity: 0; }

.temple-header[data-open="true"] .nav-toggle-glyph span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(340px, 88vw);
  padding: calc(var(--bar-h) + 18px) 22px 28px;
  overflow-y: auto;
  border-left: 1px solid rgba(217, 169, 74, 0.32);
  background: linear-gradient(180deg, #1E1238 0%, #140B26 68%, #180E2E 100%);
  box-shadow: -34px 0 70px -34px rgba(0, 0, 0, 0.95);
  transform: translateX(102%);
  transition: transform 0.24s var(--ease);
  visibility: hidden;
}

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

.nav-rail-caption {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: rgba(185, 172, 212, 0.62);
}

.nav-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
}

.nav-item { list-style: none; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(217, 169, 74, 0.16);
  color: var(--mist);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    padding-left 0.2s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  padding-left: 16px;
  color: var(--gold-bright);
  background: rgba(110, 123, 255, 0.1);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(185, 172, 212, 0.72);
}

.nav-label {
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.nav-link[aria-current="page"] { color: var(--gold-bright); }
.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }
.nav-link[aria-current="page"] { background: rgba(217, 169, 74, 0.1); }

.nav-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 169, 74, 0.22);
}

.nav-cta { width: 100%; }

.nav-note {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: rgba(185, 172, 212, 0.72);
}

.rail-aside { display: none; }

.rail-cta {
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 16px 9px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  line-height: 1;
}

.rail-utility {
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.8;
  color: rgba(185, 172, 212, 0.6);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 5, 20, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.temple-header[data-open="true"] .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* 06 页脚 ---------------------------------------------------------------- */
.temple-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 132px);
  overflow: hidden;
  border-top: 1px solid rgba(217, 169, 74, 0.34);
  background: linear-gradient(180deg, #1E1238 0%, #140B26 56%, #0E0820 100%);
  color: var(--mist);
}

.foot-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30%;
  height: 62%;
  background: radial-gradient(58% 100% at 50% 100%, rgba(110, 123, 255, 0.22), transparent 72%);
  pointer-events: none;
}

.foot-inner {
  position: relative;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 62px) clamp(18px, 4vw, 48px) 28px;
}

.foot-head {
  display: grid;
  gap: clamp(30px, 4vw, 56px);
}

.foot-brand {
  position: relative;
  padding-left: 18px;
  border-left: 1px solid rgba(217, 169, 74, 0.34);
}

.brand-sigil--foot {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}

.brand-sigil--foot .sigil-line { height: 34px; }

.foot-brand-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--gold-bright);
  text-shadow: 0 0 22px rgba(217, 169, 74, 0.32);
}

.foot-brand-sub {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--violet-grey);
}

.foot-contact {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  font-size: 13.5px;
}

.foot-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.foot-contact-label {
  flex: 0 0 auto;
  min-width: 3.4em;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.foot-contact-value {
  color: var(--mist);
  word-break: break-word;
}

.foot-columns {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.foot-col-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(217, 169, 74, 0.3);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
}

.foot-list { display: grid; gap: 2px; }

.foot-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--violet-grey);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--mist);
  transform: translateX(3px);
}

.foot-legal {
  display: grid;
  gap: 8px;
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid rgba(217, 169, 74, 0.22);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(185, 172, 212, 0.74);
}

.foot-legal-line { max-width: none; line-height: 1.9; }

.foot-legal-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.foot-copy {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(185, 172, 212, 0.66);
}

.foot-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(217, 169, 74, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(44, 27, 82, 0.55);
  color: var(--gold-bright);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  line-height: 1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.foot-top:hover {
  border-color: var(--gold-bright);
  background: rgba(217, 169, 74, 0.18);
}

/* 07 响应式与无障碍 ------------------------------------------------------ */
@media (min-width: 640px) {
  .foot-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .annotation--vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.32em;
  }
}

@media (min-width: 900px) {
  .foot-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 桌面：88px 神殿立柱轨道 */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-w);
  }

  [id] { scroll-margin-top: 28px; }

  .temple-header {
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    height: auto;
  }

  .rail-frame {
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: 100%;
    padding: 20px 0 16px;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid rgba(217, 169, 74, 0.3);
    background: linear-gradient(180deg, #221442 0%, #140B26 58%, #1A1030 100%);
    box-shadow: 18px 0 46px -34px rgba(0, 0, 0, 0.95);
    scrollbar-width: none;
  }

  .rail-frame::-webkit-scrollbar { display: none; }

  .rail-progress {
    top: 0;
    bottom: auto;
    right: -1px;
    left: auto;
    width: 2px;
    height: 100%;
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--gold-bright), var(--cyan));
    box-shadow: 0 0 14px rgba(242, 212, 138, 0.6);
  }

  .brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .brand-text { align-items: center; }

  .brand-name {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 13px;
    letter-spacing: 0.3em;
    line-height: 1;
  }

  .brand-sub { display: none; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    gap: 6px;
  }

  .nav-rail-caption {
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin-bottom: 8px;
    font-size: 9.5px;
    letter-spacing: 0.34em;
    color: rgba(185, 172, 212, 0.5);
  }

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

  .nav-link {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 0;
    border-bottom: 0;
    background: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    padding-left: 0;
    background: linear-gradient(90deg, rgba(217, 169, 74, 0.12), transparent 76%);
  }

  .nav-link::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: top center;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  }

  .nav-link:hover::before { opacity: 0.5; transform: scaleY(1); }

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(217, 169, 74, 0.16), transparent 78%);
  }

  .nav-link[aria-current="page"]::before {
    opacity: 1;
    transform: scaleY(1);
    box-shadow: 0 0 14px rgba(242, 212, 138, 0.7);
  }

  .nav-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 12.5px;
    letter-spacing: 0.3em;
    line-height: 1;
  }

  .nav-index { font-size: 9.5px; letter-spacing: 0.06em; }

  .nav-foot { display: none; }

  .rail-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
  }

  .rail-utility { display: none; }
  .nav-scrim { display: none; }
}

@media (min-width: 1024px) and (min-height: 880px) {
  .rail-utility {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: upright;
    max-height: 130px;
  }
}

@media (min-width: 1024px) and (max-height: 880px) {
  .rail-frame { padding: 12px 0; }
  .brand-name { font-size: 11.5px; letter-spacing: 0.22em; }
  .nav-link { padding: 4px 0; gap: 3px; }
  .nav-index { display: none; }
  .nav-label { font-size: 11.5px; letter-spacing: 0.24em; }
  .rail-cta { padding: 12px 8px; font-size: 10.5px; }
}

@media (min-width: 1024px) and (max-height: 680px) {
  .nav-rail-caption { display: none; }
  .site-nav { margin-top: 10px; }
  .rail-aside { padding-top: 10px; }
}

@media (max-width: 359px) {
  .brand-sub { display: none; }
  .nav-toggle-text { display: none; }
}

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

  .card:hover,
  .btn:hover,
  .foot-link:hover,
  .foot-link:focus-visible {
    transform: none;
  }

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

  .rail-progress { transition: none; }
}
