/* =========================================================
   长乐坊备用站 · 共享 Site Kit
   /assets/site.css
   ========================================================= */

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

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

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

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

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-green: #12352B;
  --amber: #E6A23C;
  --wick: #F47C3C;
  --night: #1E2A38;
  --paper: #F6EFE3;
  --pine: #1F4A3D;
  --mist: #C9A56A;
  --warm-gray: #6F6A60;
  --moon: #DCEBE2;
  --deep-amber: #8A5A1F;

  --font-heading: "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, "STSong", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --line: 1px solid rgba(201, 165, 106, 0.32);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

/* ---------- 3. Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--night);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(230, 162, 60, 0.14), transparent 68%),
    radial-gradient(760px 420px at -6% 22%, rgba(31, 74, 61, 0.09), transparent 70%);
  background-repeat: no-repeat;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--pine);
}

::selection {
  background: var(--amber);
  color: #20180B;
}

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

/* ---------- 4. Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.on-dark {
  background: var(--ink-green);
  color: var(--moon);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 { color: var(--paper); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--amber);
  color: #20180B;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink-green);
  background-image: linear-gradient(180deg, #14402F 0%, #12352B 62%, #0F2C24 100%);
  color: var(--moon);
  border-bottom: 1px solid rgba(201, 165, 106, 0.3);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 20px 38px -30px rgba(0, 0, 0, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding-block: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--amber), var(--wick));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.brand-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 12px 4px rgba(246, 239, 227, 0.7);
}

.brand-text { display: block; }

.brand-line {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.header-helper {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(220, 235, 226, 0.6);
  padding-left: clamp(10px, 1.6vw, 20px);
  border-left: 1px solid rgba(201, 165, 106, 0.32);
  white-space: nowrap;
}

/* nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.3vw, 20px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.7vw, 12px);
  counter-reset: navidx;
}

.nav-item {
  counter-increment: navidx;
}

.nav-link {
  position: relative;
  display: block;
  padding: 8px 9px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(220, 235, 226, 0.82);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  opacity: 0.62;
  margin-right: 0.45em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 3px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--amber), var(--wick));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.26s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
}

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

.nav-link[aria-current="page"] {
  color: var(--amber);
}

.nav-link[aria-current="page"]::before {
  color: var(--wick);
  opacity: 1;
}

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

.nav-cta {
  flex: 0 0 auto;
  margin-left: 4px;
}

/* progress lamp */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--wick));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(201, 165, 106, 0.48);
  border-radius: 2px;
  color: var(--moon);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--amber);
  background: rgba(230, 162, 60, 0.1);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

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

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--amber);
  transition: transform 0.26s 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);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

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

.btn--lamp {
  background: linear-gradient(135deg, var(--amber), var(--wick));
  color: #20180B;
  box-shadow:
    0 0 0 1px rgba(230, 162, 60, 0.45),
    0 12px 26px -16px rgba(244, 124, 60, 0.95);
}

.btn--lamp:hover,
.btn--lamp:focus-visible {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(230, 162, 60, 0.85),
    0 16px 30px -14px rgba(244, 124, 60, 1);
}

.btn--line {
  background: transparent;
  color: var(--deep-amber);
  border-color: rgba(201, 165, 106, 0.65);
}

.btn--line:hover,
.btn--line:focus-visible {
  color: var(--night);
  border-color: var(--amber);
  background: rgba(230, 162, 60, 0.14);
}

.btn--deep {
  background: var(--ink-green);
  color: var(--moon);
  border-color: rgba(201, 165, 106, 0.4);
}

.btn--deep:hover,
.btn--deep:focus-visible {
  background: var(--pine);
  border-color: var(--amber);
  color: var(--paper);
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 116px);
  padding: clamp(44px, 6vw, 84px) 0 26px;
  background: var(--ink-green);
  background-image: linear-gradient(180deg, #12352B 0%, #0E2B23 100%);
  color: var(--moon);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--wick) 34%, rgba(201, 165, 106, 0) 82%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(230, 162, 60, 0.18), transparent 68%);
  pointer-events: none;
}

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

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer-brand-line {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.footer-note {
  margin-top: 12px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(220, 235, 226, 0.7);
}

.footer-signal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  color: var(--amber);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(201, 165, 106, 0.26);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(220, 235, 226, 0.78);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--amber);
  transform: translateX(2px);
}

.footer-contact {
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(201, 165, 106, 0.22);
}

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

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(220, 235, 226, 0.72);
}

.footer-contact-key {
  flex: 0 0 auto;
  min-width: 5.2em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
  padding-top: 0.28em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 165, 106, 0.18);
}

.footer-legal-line {
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(220, 235, 226, 0.5);
}

/* ---------- 8. Shared components ---------- */
.section {
  padding-block: clamp(40px, 6vw, 84px);
}

.stack {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

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

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--rail { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep-amber);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

.on-dark .eyebrow { color: var(--amber); }

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.26;
  letter-spacing: -0.012em;
  color: var(--pine);
}

.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: #FFFBF4;
  border: 1px solid rgba(201, 165, 106, 0.38);
  border-radius: 2px;
  clip-path: var(--cut);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.panel:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 24px 42px -32px rgba(18, 53, 43, 0.75);
}

.panel--dark {
  background: var(--ink-green);
  border-color: rgba(201, 165, 106, 0.3);
  color: var(--moon);
}

.panel-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.42;
  color: var(--pine);
}

.panel--dark .panel-title { color: var(--paper); }

.panel-text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--warm-gray);
}

.panel--dark .panel-text { color: rgba(220, 235, 226, 0.72); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--deep-amber);
  background: rgba(230, 162, 60, 0.08);
  border: 1px solid rgba(201, 165, 106, 0.5);
  border-radius: 999px;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.chip:hover {
  background: rgba(230, 162, 60, 0.18);
  border-color: var(--amber);
  color: var(--night);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: #241A0A;
  font-weight: 700;
}

.status-lamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
  box-shadow: 0 0 0 3px rgba(201, 165, 106, 0.16);
  flex: 0 0 auto;
}

.status-lamp--live {
  background: var(--wick);
  box-shadow:
    0 0 0 3px rgba(244, 124, 60, 0.18),
    0 0 12px 2px rgba(244, 124, 60, 0.6);
}

/* image containers */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--ink-green);
  background-image:
    radial-gradient(120% 92% at 20% 10%, rgba(230, 162, 60, 0.24), transparent 62%),
    linear-gradient(150deg, #12352B 0%, #1F4A3D 100%);
  border: 1px solid rgba(201, 165, 106, 0.36);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(246, 239, 227, 0.08);
  pointer-events: none;
}

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

.media-frame--empty::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 2px;
  transform: translate(-50%, -50%) rotate(-32deg);
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.65;
}

.media-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--warm-gray);
}

/* breadcrumb */
.breadcrumb {
  margin-block: clamp(18px, 2.6vw, 30px);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--warm-gray);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--mist);
}

.breadcrumb-link {
  color: var(--deep-amber);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  color: var(--wick);
  border-bottom-color: var(--wick);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--night);
  font-weight: 600;
}

/* prose */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.9;
  color: var(--night);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.34;
  margin-top: 1.9em;
  color: var(--pine);
}

.prose h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.48;
  margin-top: 1.6em;
  color: var(--pine);
}

.prose a {
  color: var(--deep-amber);
  border-bottom: 1px solid rgba(201, 165, 106, 0.75);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--wick);
  border-bottom-color: var(--wick);
}

.prose ul {
  display: grid;
  gap: 0.5em;
}

.prose ul > li {
  position: relative;
  padding-left: 1.25em;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
}

.prose blockquote {
  padding-left: 1.1em;
  border-left: 3px solid var(--amber);
  color: var(--warm-gray);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  background: rgba(230, 162, 60, 0.14);
  border-radius: 2px;
}

/* to-top lamp button */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 95;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 17px;
  line-height: 1;
  color: var(--amber);
  background: var(--ink-green);
  border: 1px solid rgba(230, 162, 60, 0.55);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s,
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--amber);
  color: #231A09;
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1240px) {
  .header-helper { display: none; }
  .nav-link { font-size: 13px; padding: 8px 7px; }
  .nav-link::after { left: 7px; right: 7px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; }
  .grid--rail { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .header-inner { min-height: 66px; }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin-left: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--ink-green);
    background-image: linear-gradient(180deg, #12352B 0%, #0E2B23 100%);
    border-bottom: 1px solid rgba(201, 165, 106, 0.34);
    box-shadow: 0 28px 46px -30px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease),
      visibility 0.22s;
  }

  .site-header[data-open="true"] .header-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    display: block;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(201, 165, 106, 0.16);
  }

  .nav-link {
    padding: 14px 4px;
    font-size: 16px;
    letter-spacing: 0.05em;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    color: var(--amber);
    background: rgba(230, 162, 60, 0.1);
    padding-left: 12px;
  }

  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 18px;
    min-height: 46px;
    font-size: 14px;
  }
}

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

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

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

  .footer-legal { justify-content: flex-start; }

  .to-top { width: 42px; height: 42px; }
}

@media (max-width: 520px) {
  .brand-line { font-size: 17px; }
  .brand-tagline { font-size: 9.5px; letter-spacing: 0.12em; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-toggle-label { display: none; }
  .footer-contact-line { flex-direction: column; gap: 2px; }
  .footer-contact-key { padding-top: 0; }
}

/* ---------- 10. Motion preferences ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .panel:hover,
  .footer-link:hover,
  .brand:hover .brand-mark {
    transform: none;
  }
}
