/* =========================================================
   /assets/site.css — 澳门葡京主站 共享外壳与基础组件
   ========================================================= */

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

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

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

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, label, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. tokens ---------- */
:root {
  --ink: #0B0B0F;
  --ink-soft: #15141A;
  --deep-red: #7A1220;
  --vermilion: #A61B2B;
  --dark-gold: #B08A3E;
  --bright-gold: #D9B168;
  --rice: #F5EFE4;
  --rock: #6E6A63;
  --jade: #2F7A6B;
  --terracotta: #A9583C;
  --warm: #E7E0D3;

  --on-dark: rgba(245, 239, 228, 0.78);
  --on-dark-soft: rgba(245, 239, 228, 0.56);
  --hair-dark: rgba(176, 138, 62, 0.30);
  --hair-light: rgba(11, 11, 15, 0.12);
  --paper: rgba(255, 255, 255, 0.62);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "Iowan Old Style", "Times New Roman", ui-monospace, "Courier New", monospace;

  --r-s: 20px;
  --r-m: 28px;
  --r-l: 40px;
  --r-pill: 999px;

  --shell: 1320px;
  --gut: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. base typography ---------- */
body {
  background: var(--rice);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: 19px; }

p { max-width: 68ch; }

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

#main-content { display: block; scroll-margin-top: 96px; }

::selection { background: var(--deep-red); color: var(--rice); }

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

/* ---------- 4. layout ---------- */
.shell {
  width: min(100% - (var(--gut) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding: clamp(42px, 6vw, 84px) 0; }
.section--dark { background: var(--ink); color: var(--rice); }
.section--warm { background: var(--warm); }
.section--rice { background: var(--rice); }

.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--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--dark-gold), rgba(176, 138, 62, 0.08));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--dark-gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--dark-gold);
}
.section--dark .eyebrow { color: var(--bright-gold); }
.section--dark .eyebrow::before { background: var(--bright-gold); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.18;
}

.lede {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--rock);
}
.section--dark .lede { color: var(--on-dark); }

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.85;
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose a { color: var(--deep-red); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: var(--vermilion); }

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn--cta {
  background: var(--deep-red);
  color: var(--rice);
  border-color: rgba(217, 177, 104, 0.42);
}
.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--vermilion);
  border-color: var(--bright-gold);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--rice);
  border-color: var(--hair-dark);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(217, 177, 104, 0.14);
  color: var(--bright-gold);
}
.btn--ink {
  background: var(--ink);
  color: var(--rice);
  border-color: var(--ink);
}
.btn--ink:hover { background: var(--deep-red); border-color: var(--deep-red); }
.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-light);
}
.btn--line:hover { border-color: var(--jade); color: var(--jade); }

/* ---------- 6. skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--bright-gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: top 0.18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 14px; }

/* ---------- 7. header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--rice);
  background:
    radial-gradient(120% 190% at 50% -70%, rgba(176, 138, 62, 0.20), transparent 62%),
    linear-gradient(180deg, #0B0B0F 0%, #100E14 100%);
  border-bottom: 1px solid var(--hair-dark);
  transition: box-shadow 0.22s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(217, 177, 104, 0.06) 0 1px,
    transparent 1px 9px
  );
}
.site-header[data-compact="true"] {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--deep-red), var(--bright-gold));
  transition: transform 0.12s linear;
}

.command-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  transition: min-height 0.22s var(--ease);
}
.site-header[data-compact="true"] .command-bar { min-height: 62px; }

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 6px 4px;
  border-radius: var(--r-pill);
}
.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1.5px solid var(--dark-gold);
  border-radius: 6px;
  transform: rotate(45deg);
  background: linear-gradient(150deg, var(--deep-red), transparent 72%);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--bright-gold);
  border-radius: 2px;
}
.brand:hover .brand__mark { border-color: var(--bright-gold); }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--rice);
}
.brand__tag {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--dark-gold);
  transition: opacity 0.2s var(--ease);
}

/* mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--hair-dark);
  border-radius: var(--r-pill);
  background: rgba(245, 239, 228, 0.04);
  color: var(--rice);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--bright-gold); }
.nav-toggle__lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__lines span {
  height: 1.5px;
  background: var(--bright-gold);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.site-header[data-open="true"] .nav-toggle__lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__lines span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__lines span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* panel + nav */
.command-bar__panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav { margin-inline: auto; }

.nav-index {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-index__item { display: block; }
.nav-index__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 239, 228, 0.72);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-index__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: var(--bright-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.nav-index__link:hover { color: var(--rice); }
.nav-index__link:hover::after,
.nav-index__link:focus-visible::after { transform: scaleX(1); }
.nav-index__link[aria-current="page"] {
  color: var(--bright-gold);
  background: rgba(176, 138, 62, 0.14);
}
.nav-index__link[aria-current="page"]::after { transform: scaleX(1); }
.nav-index__num {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dark-gold);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s var(--ease);
}
.nav-index__link:hover .nav-index__num,
.nav-index__link[aria-current="page"] .nav-index__num { color: var(--bright-gold); }
.nav-index__label { white-space: nowrap; }

/* right rail */
.command-bar__rail {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.service-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--on-dark-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.service-clock__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(47, 122, 107, 0.18);
  animation: jade-pulse 2.6s ease-in-out infinite;
}
@keyframes jade-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (max-width: 1280px) {
  .service-clock { display: none; }
}

/* ---------- 8. footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 86px) 0 0;
  color: var(--on-dark);
  border-top: 1px solid var(--hair-dark);
  background:
    radial-gradient(95% 125% at 10% 0%, rgba(122, 18, 32, 0.55), transparent 62%),
    radial-gradient(70% 100% at 88% 100%, rgba(176, 138, 62, 0.18), transparent 60%),
    var(--ink);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(217, 177, 104, 0.05) 0 1px,
    transparent 1px 11px
  );
}
.footer-glow {
  position: absolute;
  top: -190px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(217, 177, 104, 0.16), transparent 68%);
}
.footer-shell { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(24px, 3.4vw, 48px);
  padding-bottom: 36px;
}

.footer-lead { min-width: 0; }
.footer-sign {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--rice);
}
.footer-sign__mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1.5px solid var(--dark-gold);
  background: rgba(122, 18, 32, 0.7);
}
.footer-sign__tag {
  margin-top: 10px;
  max-width: none;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--dark-gold);
}
.footer-note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--on-dark-soft);
}

.footer-col__heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bright-gold);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.footer-link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--on-dark);
  transition: color 0.18s var(--ease);
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--bright-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.footer-link:hover { color: var(--bright-gold); }
.footer-link:hover::after,
.footer-link:focus-visible::after { transform: scaleX(1); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(176, 138, 62, 0.22);
  font-size: 14.5px;
  color: var(--on-dark);
}
.footer-contact__line {
  max-width: none;
  font-variant-numeric: tabular-nums;
}
.footer-contact__value {
  color: var(--bright-gold);
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.legal-link {
  position: relative;
  font-size: 13.5px;
  color: var(--on-dark-soft);
  transition: color 0.18s var(--ease);
}
.legal-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--bright-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.legal-link:hover { color: var(--bright-gold); }
.legal-link:hover::after,
.legal-link:focus-visible::after { transform: scaleX(1); }
.footer-legal__icp {
  max-width: none;
  font-size: 13px;
  color: var(--on-dark-soft);
  font-variant-numeric: tabular-nums;
}

.footer-base {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid rgba(176, 138, 62, 0.2);
  background: rgba(0, 0, 0, 0.3);
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-base__copy {
  max-width: none;
  font-size: 13px;
  color: var(--on-dark-soft);
  font-variant-numeric: tabular-nums;
}
.footer-base__note {
  max-width: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(176, 138, 62, 0.9);
}

/* ---------- 9. breadcrumbs ---------- */
.breadcrumbs {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-light);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rock);
}
.breadcrumbs__link {
  color: var(--rock);
  transition: color 0.18s var(--ease);
}
.breadcrumbs__link:hover { color: var(--vermilion); }
.breadcrumbs__sep { color: var(--dark-gold); }
.breadcrumbs__current { color: var(--ink); font-weight: 500; }
.section--dark .breadcrumbs__list,
.section--dark .breadcrumbs__link { color: var(--on-dark-soft); }
.section--dark .breadcrumbs__current { color: var(--rice); }

/* ---------- 10. components ---------- */
.card {
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-m);
  background: var(--paper);
}

.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-m);
  background: var(--paper);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.archive-card:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}
.archive-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--dark-gold);
}
.archive-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}
.archive-card__text {
  max-width: none;
  font-size: 15px;
  line-height: 1.78;
  color: var(--rock);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--hair-light);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--rock);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.tag--jade { color: var(--jade); border-color: rgba(47, 122, 107, 0.42); }
.tag--jade:hover { background: rgba(47, 122, 107, 0.12); }
.tag--clay { color: var(--terracotta); border-color: rgba(169, 88, 60, 0.42); }
.tag--clay:hover { background: rgba(169, 88, 60, 0.12); }
.tag--gold {
  background: var(--dark-gold);
  border-color: var(--dark-gold);
  color: var(--ink);
  font-weight: 600;
}

.index-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--dark-gold);
  font-variant-numeric: tabular-nums;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.index-num--sm { font-size: clamp(38px, 5vw, 72px); }
a:hover > .index-num,
a:focus-visible > .index-num,
.index-link:hover .index-num {
  color: var(--bright-gold);
  transform: scale(1.04);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--dark-gold), rgba(176, 138, 62, 0.14));
}
.timeline__item {
  position: relative;
  padding: 18px 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bright-gold);
  box-shadow: 0 0 0 4px rgba(217, 177, 104, 0.16);
}
.timeline__date {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--rock);
  font-variant-numeric: tabular-nums;
}
.timeline__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.32;
}
.timeline__text {
  margin-top: 6px;
  max-width: 66ch;
  font-size: 15px;
  color: var(--rock);
}
.section--dark .timeline__date,
.section--dark .timeline__text { color: var(--on-dark-soft); }

/* filter chips（纯 CSS 单选筛选） */
.filter-set {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-set__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--hair-light);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--rock);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}
.filter-chip:hover { border-color: var(--jade); color: var(--jade); }
.filter-set__input:checked + .filter-chip {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bright-gold);
}
.filter-set__input:focus-visible + .filter-chip {
  outline: 2px solid var(--bright-gold);
  outline-offset: 2px;
}

/* 图片容器基础规则（页面阶段放入 img / svg） */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(176, 138, 62, 0.3);
  border-radius: var(--r-l);
  background:
    radial-gradient(80% 90% at 72% 6%, rgba(176, 138, 62, 0.22), transparent 60%),
    linear-gradient(155deg, #0B0B0F 0%, #1A1016 55%, #241407 100%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(217, 177, 104, 0.08) 0 1px,
    transparent 1px 10px
  );
}
.media-frame img,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--photo { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: none;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: rgba(245, 239, 228, 0.86);
}

/* ---------- 11. utilities ---------- */
.u-hidden { display: none !important; }

html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(176, 138, 62, 0.5);
  border-radius: 50%;
  background: var(--ink);
  color: var(--bright-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
              visibility 0.2s var(--ease), background-color 0.18s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { background: var(--deep-red); }
.to-top__glyph { font-size: 16px; line-height: 1; }

/* ---------- 12. responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .command-bar__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    padding: 0 var(--gut);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border-bottom: 1px solid var(--dark-gold);
    background: linear-gradient(180deg, #0B0B0F 0%, #141019 100%);
    transition: max-height 0.28s var(--ease), opacity 0.2s var(--ease),
                visibility 0.2s var(--ease), padding 0.2s var(--ease);
  }
  .site-header[data-open="true"] .command-bar__panel {
    max-height: min(78vh, 640px);
    padding: 8px var(--gut) 24px;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }

  .site-nav { margin: 0; display: block; }
  .nav-index { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-index__item { border-bottom: 1px solid rgba(176, 138, 62, 0.18); }
  .nav-index__link {
    width: 100%;
    gap: 14px;
    padding: 15px 4px;
    border-radius: 0;
    font-size: 16px;
  }
  .nav-index__link::after { left: 4px; right: 4px; bottom: 8px; }
  .nav-index__num { font-size: 13px; min-width: 22px; }

  .command-bar__rail {
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(176, 138, 62, 0.18);
  }
  .service-clock { display: inline-flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
  .footer-note { max-width: 52ch; }

  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__tag { display: none; }
  .command-bar { min-height: 66px; }
  .site-header[data-compact="true"] .command-bar { min-height: 58px; }
  .nav-toggle__text { display: none; }
  .command-bar__rail { flex-wrap: wrap; gap: 12px; }
  .btn--cta { padding: 12px 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact { gap: 8px 18px; font-size: 14px; }
  .footer-legal { justify-content: flex-start; }
  .footer-base__inner { flex-direction: column; align-items: flex-start; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .timeline { padding-left: 26px; }
  .timeline::before { left: 5px; }
  .timeline__item::before { left: -25px; }
}

/* ---------- 13. reduced motion ---------- */
@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;
  }
  html.js-ready [data-reveal] { opacity: 1; transform: none; }
}
