/*!
 * 禾杨智绘 · 公开资源门户 v15「金锋中枢 · 双境」 assets/portal/portal.css
 * Copyright (c) 2026 绍兴市柯桥区禾杨智绘软件开发工作室 (Heyang Zhihui Software Studio) & Merziller.
 * 曜夜 · 曜石金锋 (data-theme="night") / 宣昼 · 宣纸金箔 (data-theme="day").
 * System fonts only, zero external resources, CSP style-src 'self' ready (no inline styles anywhere).
 */

/* ==========================================================================
   1 · Tokens — 曜夜 · 曜石金锋 (default)
   ========================================================================== */
:root {
  color-scheme: dark;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: Bahnschrift, "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --bg-0: #07080B;
  --ink: #F1ECE2;
  --ink-2: #B7B2A7;
  --ink-3: #8E8A80;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --gold: #E8B973;
  --gold-text: #E8B973;
  --gold-hi: #F8DFB0;
  --gold-line: rgba(232, 185, 115, 0.22);
  --gold-line-2: rgba(232, 185, 115, 0.42);
  --gold-wash: rgba(232, 185, 115, 0.08);
  --satin: linear-gradient(135deg, #F8DFB0 0%, #E8B973 34%, #C08945 70%, #9A6B2F 100%);
  --satin-text: linear-gradient(100deg, #F8DFB0 0%, #EBC07E 38%, #C99450 72%, #E8B973 100%);
  --tick: linear-gradient(90deg, rgba(248, 223, 176, 0.1) 0%, #F8DFB0 30%, #E8B973 62%, #9A6B2F 100%);
  --canvas:
    radial-gradient(1100px 640px at 84% -6%, rgba(232, 185, 115, 0.12), rgba(232, 185, 115, 0) 62%),
    radial-gradient(900px 620px at -12% 104%, rgba(120, 134, 170, 0.07), rgba(120, 134, 170, 0) 60%),
    linear-gradient(180deg, #0C0E13 0%, #08090C 46%, #07080B 100%);
  --panel: linear-gradient(162deg, rgba(28, 31, 41, 0.9) 0%, rgba(18, 20, 27, 0.93) 46%, rgba(12, 14, 19, 0.96) 100%);
  --panel-rim: linear-gradient(90deg, rgba(232, 185, 115, 0.55) 0%, rgba(232, 185, 115, 0.12) 30%, rgba(232, 185, 115, 0) 58%);
  --panel-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --panel-line: rgba(255, 255, 255, 0.085);
  --facet-shadow: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.38));
  --chip-bg: rgba(255, 255, 255, 0.028);
  --chip-on-bg: linear-gradient(180deg, rgba(232, 185, 115, 0.2) 0%, rgba(232, 185, 115, 0.07) 100%);
  --chip-on-ink: #F8E9CC;
  --chip-on-line: rgba(232, 185, 115, 0.55);
  --chip-on-no: #F8DFB0;
  --btn-bg: var(--satin);
  --btn-ink: #1B1307;
  --btn-line: rgba(255, 238, 206, 0.4);
  --btn-shadow: 0 12px 26px -12px rgba(232, 185, 115, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(84, 52, 16, 0.4);
  --btn-shadow-hover: 0 16px 30px -12px rgba(232, 185, 115, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(84, 52, 16, 0.4);
  --glint: rgba(255, 251, 240, 0.62);
  --ok: #34D399;
  --ok-ring: rgba(52, 211, 153, 0.18);
  --warn: #F5B544;
  --warn-ring: rgba(245, 181, 68, 0.18);
  --danger: #FB7185;
  --danger-ring: rgba(251, 113, 133, 0.18);
  --topbar-bg: rgba(8, 9, 12, 0.72);
  --skel-a: rgba(255, 255, 255, 0.04);
  --skel-b: rgba(255, 255, 255, 0.085);
  --ring-1: rgba(232, 185, 115, 0.3);
  --ring-2: rgba(255, 255, 255, 0.1);
  --face-1: rgba(255, 255, 255, 0.05);
  --face-2: rgba(255, 255, 255, 0.008);
  --face-3: rgba(255, 255, 255, 0.03);
  --face-4: rgba(255, 255, 255, 0.004);
  --face-5: rgba(232, 185, 115, 0.05);
  --face-6: rgba(232, 185, 115, 0);
  --face-edge: rgba(255, 255, 255, 0.05);
  --blade-a: rgba(232, 185, 115, 0);
  --blade-b: rgba(232, 185, 115, 0.1);
  --blade-c: rgba(248, 223, 176, 0.28);
  --lattice: rgba(255, 255, 255, 0.022);
  --logo-shadow: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(232, 185, 115, 0.35));
  --halo: rgba(232, 185, 115, 0.22);
  --qr-ring: rgba(232, 185, 115, 0.5);
  --qr-shadow: 0 22px 40px -22px rgba(0, 0, 0, 0.8);
  --sel: rgba(232, 185, 115, 0.3);
}

/* ==========================================================================
   1b · Tokens — 宣昼 · 宣纸金箔 (manual toggle, or system light without JS)
   ========================================================================== */
:root[data-theme="day"] {
  color-scheme: light;
  --bg-0: #F6F3EC;
  --ink: #171E2C;
  --ink-2: #4F596B;
  --ink-3: #687082;
  --line: rgba(23, 30, 44, 0.08);
  --line-2: rgba(23, 30, 44, 0.13);
  --gold: #9A6B2F;
  --gold-text: #87591F;
  --gold-hi: #C08945;
  --gold-line: rgba(154, 107, 47, 0.24);
  --gold-line-2: rgba(154, 107, 47, 0.45);
  --gold-wash: rgba(154, 107, 47, 0.075);
  --satin-text: linear-gradient(100deg, #B9843F 0%, #9A6B2F 42%, #74491A 78%, #9A6B2F 100%);
  --tick: linear-gradient(90deg, rgba(192, 137, 69, 0.12) 0%, #D4A05C 30%, #9A6B2F 64%, #6E4615 100%);
  --canvas:
    radial-gradient(1100px 640px at 84% -6%, rgba(232, 185, 115, 0.2), rgba(232, 185, 115, 0) 62%),
    radial-gradient(900px 620px at -12% 104%, rgba(154, 107, 47, 0.07), rgba(154, 107, 47, 0) 60%),
    linear-gradient(180deg, #FAF8F3 0%, #F6F3EC 44%, #F2EDE3 100%);
  --panel: linear-gradient(162deg, rgba(255, 255, 253, 0.96) 0%, rgba(251, 249, 245, 0.96) 48%, rgba(246, 242, 234, 0.97) 100%);
  --panel-rim: linear-gradient(90deg, rgba(154, 107, 47, 0.6) 0%, rgba(154, 107, 47, 0.14) 30%, rgba(154, 107, 47, 0) 58%);
  --panel-inset: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --panel-line: rgba(23, 30, 44, 0.1);
  --facet-shadow: drop-shadow(0 1px 1px rgba(72, 54, 26, 0.06)) drop-shadow(0 16px 22px rgba(72, 54, 26, 0.1));
  --chip-bg: rgba(255, 255, 255, 0.66);
  --chip-on-bg: linear-gradient(162deg, #2A3043 0%, #171B26 55%, #0E1118 100%);
  --chip-on-ink: #F4DDB0;
  --chip-on-line: #141821;
  --chip-on-no: #E8B973;
  --btn-bg: linear-gradient(162deg, #2B3244 0%, #181C27 52%, #0E1118 100%);
  --btn-ink: #F4DDB0;
  --btn-line: rgba(232, 185, 115, 0.42);
  --btn-shadow: 0 12px 22px -12px rgba(16, 20, 30, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  --btn-shadow-hover: 0 16px 26px -12px rgba(16, 20, 30, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  --glint: rgba(248, 223, 176, 0.4);
  --ok: #047857;
  --ok-ring: rgba(4, 120, 87, 0.14);
  --warn: #B45309;
  --warn-ring: rgba(180, 83, 9, 0.14);
  --danger: #DC2626;
  --danger-ring: rgba(220, 38, 38, 0.12);
  --topbar-bg: rgba(247, 244, 238, 0.8);
  --skel-a: rgba(23, 30, 44, 0.05);
  --skel-b: rgba(23, 30, 44, 0.1);
  --ring-1: rgba(154, 107, 47, 0.38);
  --ring-2: rgba(23, 30, 44, 0.12);
  --face-1: rgba(255, 255, 255, 0.85);
  --face-2: rgba(255, 255, 255, 0.2);
  --face-3: rgba(23, 30, 44, 0.035);
  --face-4: rgba(23, 30, 44, 0.008);
  --face-5: rgba(154, 107, 47, 0.08);
  --face-6: rgba(154, 107, 47, 0.01);
  --face-edge: rgba(23, 30, 44, 0.06);
  --blade-a: rgba(154, 107, 47, 0);
  --blade-b: rgba(192, 137, 69, 0.14);
  --blade-c: rgba(232, 185, 115, 0.36);
  --lattice: rgba(23, 30, 44, 0.03);
  --logo-shadow: drop-shadow(0 24px 30px rgba(40, 30, 14, 0.3)) drop-shadow(0 2px 3px rgba(40, 30, 14, 0.2));
  --halo: rgba(232, 185, 115, 0.34);
  --qr-ring: rgba(154, 107, 47, 0.45);
  --qr-shadow: 0 20px 36px -22px rgba(60, 44, 18, 0.45);
  --sel: rgba(154, 107, 47, 0.22);
}

/* Same 宣昼 token set when JavaScript is unavailable and the system prefers light. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg-0: #F6F3EC;
    --ink: #171E2C;
    --ink-2: #4F596B;
    --ink-3: #687082;
    --line: rgba(23, 30, 44, 0.08);
    --line-2: rgba(23, 30, 44, 0.13);
    --gold: #9A6B2F;
    --gold-text: #87591F;
    --gold-hi: #C08945;
    --gold-line: rgba(154, 107, 47, 0.24);
    --gold-line-2: rgba(154, 107, 47, 0.45);
    --gold-wash: rgba(154, 107, 47, 0.075);
    --satin-text: linear-gradient(100deg, #B9843F 0%, #9A6B2F 42%, #74491A 78%, #9A6B2F 100%);
    --tick: linear-gradient(90deg, rgba(192, 137, 69, 0.12) 0%, #D4A05C 30%, #9A6B2F 64%, #6E4615 100%);
    --canvas:
      radial-gradient(1100px 640px at 84% -6%, rgba(232, 185, 115, 0.2), rgba(232, 185, 115, 0) 62%),
      radial-gradient(900px 620px at -12% 104%, rgba(154, 107, 47, 0.07), rgba(154, 107, 47, 0) 60%),
      linear-gradient(180deg, #FAF8F3 0%, #F6F3EC 44%, #F2EDE3 100%);
    --panel: linear-gradient(162deg, rgba(255, 255, 253, 0.96) 0%, rgba(251, 249, 245, 0.96) 48%, rgba(246, 242, 234, 0.97) 100%);
    --panel-rim: linear-gradient(90deg, rgba(154, 107, 47, 0.6) 0%, rgba(154, 107, 47, 0.14) 30%, rgba(154, 107, 47, 0) 58%);
    --panel-inset: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --panel-line: rgba(23, 30, 44, 0.1);
    --facet-shadow: drop-shadow(0 1px 1px rgba(72, 54, 26, 0.06)) drop-shadow(0 16px 22px rgba(72, 54, 26, 0.1));
    --chip-bg: rgba(255, 255, 255, 0.66);
    --chip-on-bg: linear-gradient(162deg, #2A3043 0%, #171B26 55%, #0E1118 100%);
    --chip-on-ink: #F4DDB0;
    --chip-on-line: #141821;
    --chip-on-no: #E8B973;
    --btn-bg: linear-gradient(162deg, #2B3244 0%, #181C27 52%, #0E1118 100%);
    --btn-ink: #F4DDB0;
    --btn-line: rgba(232, 185, 115, 0.42);
    --btn-shadow: 0 12px 22px -12px rgba(16, 20, 30, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
    --btn-shadow-hover: 0 16px 26px -12px rgba(16, 20, 30, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
    --glint: rgba(248, 223, 176, 0.4);
    --ok: #047857;
    --ok-ring: rgba(4, 120, 87, 0.14);
    --warn: #B45309;
    --warn-ring: rgba(180, 83, 9, 0.14);
    --danger: #DC2626;
    --danger-ring: rgba(220, 38, 38, 0.12);
    --topbar-bg: rgba(247, 244, 238, 0.8);
    --skel-a: rgba(23, 30, 44, 0.05);
    --skel-b: rgba(23, 30, 44, 0.1);
    --ring-1: rgba(154, 107, 47, 0.38);
    --ring-2: rgba(23, 30, 44, 0.12);
    --face-1: rgba(255, 255, 255, 0.85);
    --face-2: rgba(255, 255, 255, 0.2);
    --face-3: rgba(23, 30, 44, 0.035);
    --face-4: rgba(23, 30, 44, 0.008);
    --face-5: rgba(154, 107, 47, 0.08);
    --face-6: rgba(154, 107, 47, 0.01);
    --face-edge: rgba(23, 30, 44, 0.06);
    --blade-a: rgba(154, 107, 47, 0);
    --blade-b: rgba(192, 137, 69, 0.14);
    --blade-c: rgba(232, 185, 115, 0.36);
    --lattice: rgba(23, 30, 44, 0.03);
    --logo-shadow: drop-shadow(0 24px 30px rgba(40, 30, 14, 0.3)) drop-shadow(0 2px 3px rgba(40, 30, 14, 0.2));
    --halo: rgba(232, 185, 115, 0.34);
    --qr-ring: rgba(154, 107, 47, 0.45);
    --qr-shadow: 0 20px 36px -22px rgba(60, 44, 18, 0.45);
    --sel: rgba(154, 107, 47, 0.22);
  }
}

/* ==========================================================================
   2 · Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: var(--bg-0);
  background-image: var(--canvas);
  background-repeat: no-repeat;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--sel);
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: calc(12px + env(safe-area-inset-top, 0px));
}

/* Honeypot: offscreen, never focusable, hidden from assistive tech. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ==========================================================================
   3 · Backdrop — faint isometric facet planes + diagonal gold blade light
   ========================================================================== */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1280px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(30deg, var(--lattice) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(150deg, var(--lattice) 0 1px, transparent 1px 74px);
  -webkit-mask-image: radial-gradient(ellipse 70% 58% at 78% 8%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 58% at 78% 8%, #000 0%, transparent 72%);
}

.backdrop__art {
  position: absolute;
  left: 50%;
  top: 0;
  width: max(1440px, 100%);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.bd-s1 { stop-color: var(--face-1); }
.bd-s2 { stop-color: var(--face-2); }
.bd-s3 { stop-color: var(--face-3); }
.bd-s4 { stop-color: var(--face-4); }
.bd-s5 { stop-color: var(--face-5); }
.bd-s6 { stop-color: var(--face-6); }
.bd-b0 { stop-color: var(--blade-a); }
.bd-b1 { stop-color: var(--blade-b); }
.bd-b2 { stop-color: var(--blade-c); }

.bd-face {
  stroke: var(--face-edge);
  stroke-width: 1;
}

.bd-wire polygon {
  fill: none;
  stroke: var(--face-edge);
  stroke-width: 1;
}

.bd-wire--soft polygon {
  stroke: var(--gold-line);
}

/* ==========================================================================
   4 · Top bar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand__sub {
  font: 600 9.5px/1.2 var(--font-num);
  letter-spacing: 0.26em;
  color: var(--gold-text);
  white-space: nowrap;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--chip-bg);
}

.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.seg__btn svg {
  width: 14px;
  height: 14px;
}

.seg__btn:hover {
  color: var(--ink);
}

.seg__btn[aria-pressed="true"] {
  background: var(--chip-on-bg);
  border-color: var(--chip-on-line);
  color: var(--chip-on-ink);
}

.only-narrow {
  display: none;
}

/* ==========================================================================
   5 · Buttons
   ========================================================================== */
.btn {
  --btn-h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--lg {
  --btn-h: 50px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 13px;
}

.btn--sm {
  --btn-h: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
  gap: 7px;
}

.btn--sm svg {
  width: 15px;
  height: 15px;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-color: var(--btn-line);
  box-shadow: var(--btn-shadow);
}

/* Satin glint: a diagonal light band sweeps across on hover. */
.btn--primary::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, var(--glint) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-170%) skewX(-22deg);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

.btn--primary:hover::after {
  transform: translateX(340%) skewX(-22deg);
  transition: transform 0.9s var(--ease);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--gold-text);
  border-color: var(--gold-line-2);
}

.btn--ghost:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn[disabled]::after {
  display: none;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
}

.spin {
  animation: hy-spin 0.9s linear infinite;
}

/* ==========================================================================
   6 · Facet panels — chamfered corner + gold blade tick
   ========================================================================== */
.facet {
  --cut: 18px;
  --cut-2: 0px;
  --r: 18px;
  position: relative;
  filter: var(--facet-shadow);
}

.facet__panel {
  position: relative;
  height: 100%;
  border: 1px solid var(--panel-line);
  border-radius: var(--r) 0 var(--r) var(--r);
  background:
    var(--panel-rim) top left / 100% 1px no-repeat,
    var(--panel);
  box-shadow: var(--panel-inset);
  -webkit-clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut-2) 100%, 0 calc(100% - var(--cut-2)));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut-2) 100%, 0 calc(100% - var(--cut-2)));
}

/* The blade tick sits exactly on the 45-degree chamfer of the top-right corner. */
.facet::after {
  content: "";
  position: absolute;
  top: calc(var(--cut) / 2);
  right: calc(var(--cut) / 2);
  width: calc(var(--cut) * 1.4142 + 6px);
  height: 2px;
  background: var(--tick);
  -webkit-clip-path: polygon(0 50%, 100% 0, 100% 100%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform: translate(50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

.facet--hero {
  --cut: 34px;
  --cut-2: 22px;
  --r: 24px;
}

.facet--hero::after {
  height: 3px;
}

/* Secondary tick on the bottom-left chamfer of the hero (the blade's entry point). */
.facet--hero::before {
  content: "";
  position: absolute;
  bottom: calc(var(--cut-2) / 2);
  left: calc(var(--cut-2) / 2);
  width: calc(var(--cut-2) * 1.4142 + 4px);
  height: 2px;
  background: var(--tick);
  opacity: 0.7;
  -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-50%, 50%) rotate(45deg);
  pointer-events: none;
  z-index: 2;
}

.facet--join {
  --cut: 26px;
  --r: 22px;
}

/* ==========================================================================
   7 · Hero
   ========================================================================== */
.main {
  position: relative;
  z-index: 1;
}

.hero {
  margin-top: clamp(16px, 2.6vw, 32px);
}

.hero__panel {
  padding: clamp(26px, 3.8vw, 48px) clamp(20px, 4.4vw, 56px) clamp(24px, 3vw, 36px);
  overflow: hidden;
}

/* Diagonal gold blade light sweeping across the hero once on load. */
.hero__sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__sweep::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, rgba(248, 223, 176, 0) 0%, rgba(248, 223, 176, 0.07) 40%, rgba(248, 223, 176, 0.16) 50%, rgba(248, 223, 176, 0.07) 60%, rgba(248, 223, 176, 0) 100%);
  transform: translateX(-130%) skewX(-24deg);
  animation: hy-sweep 2.4s cubic-bezier(0.45, 0.05, 0.25, 1) 0.5s 1 both;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 28px;
}

.hero__copy {
  min-width: 0;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 11.5px/1.4 var(--font-num);
  letter-spacing: 0.24em;
  color: var(--gold-text);
}

.blade {
  width: 24px;
  height: 7px;
  flex: none;
  background: var(--satin);
  -webkit-clip-path: polygon(0 100%, 100% 0, 100% 38%, 30% 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 38%, 30% 100%);
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.gilt {
  background: var(--satin-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin-top: 16px;
  max-width: 41em;
  font-size: clamp(14.5px, 1.2vw, 16px);
  line-height: 1.85;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 26px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 0 4px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--chip-bg);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-ring);
}

.status[data-state="probe"] .status__dot {
  animation: hy-pulse 1.6s ease-in-out infinite;
}

.status[data-state="live"] .status__dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-ring);
}

.status[data-state="preview"] {
  border-color: var(--gold-line-2);
  color: var(--gold-text);
}

.status[data-state="preview"] .status__dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.status[data-state="error"] .status__dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-ring);
}

/* Emblem: official logo on an isometric hexagon stage with a satin sheen. */
.emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.emblem__stage {
  position: relative;
  width: 268px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.emblem__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.em-hex {
  fill: none;
  stroke-width: 1;
}

.em-hex--outer {
  stroke: var(--ring-1);
}

.em-hex--inner {
  stroke: var(--ring-2);
  stroke-dasharray: 2 6;
}

.em-axis {
  fill: none;
  stroke: var(--ring-2);
  stroke-width: 1;
}

.em-blade {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.em-b0 { stop-color: var(--gold); stop-opacity: 0.1; }
.em-b1 { stop-color: var(--gold); }
.em-b2 { stop-color: var(--gold-hi); }

.em-dot {
  fill: var(--gold);
}

.emblem__halo {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, rgba(232, 185, 115, 0) 70%);
  filter: blur(14px);
}

.emblem__logo {
  position: relative;
  width: 59.5%;
  aspect-ratio: 1 / 1;
  filter: var(--logo-shadow);
  animation: hy-logo-in 1.2s var(--ease) 0.15s 1 backwards;
}

.emblem__logo img {
  width: 100%;
  height: 100%;
}

.emblem__sheen {
  position: absolute;
  inset: 1.5%;
  border-radius: 23%;
  overflow: hidden;
  pointer-events: none;
}

.emblem__sheen::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, rgba(255, 244, 222, 0) 0%, rgba(255, 244, 222, 0.08) 34%, rgba(255, 238, 205, 0.42) 50%, rgba(255, 244, 222, 0.08) 66%, rgba(255, 244, 222, 0) 100%);
  mix-blend-mode: screen;
  transform: translateX(-170%) skewX(-20deg);
  animation: hy-sheen 8s cubic-bezier(0.45, 0.05, 0.25, 1) 1.15s infinite;
}

.emblem__cap {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  white-space: nowrap;
}

.emblem__cap > span {
  white-space: nowrap;
}

/* Trust pillars */
.pillars {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: clamp(20px, 2.2vw, 26px) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.pillar__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--gold-wash);
  color: var(--gold);
}

.pillar__icon svg {
  width: 19px;
  height: 19px;
}

.pillar__body {
  min-width: 0;
}

.pillar__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.pillar__text {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.pillar__text code {
  font: 600 12px/1 var(--font-num);
  letter-spacing: 0.02em;
  color: var(--gold-text);
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ==========================================================================
   8 · Catalog
   ========================================================================== */
.catalog {
  margin-top: clamp(40px, 4.6vw, 60px);
  scroll-margin-top: 84px;
}

.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.catalog__title {
  margin-top: 10px;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.catalog__meta {
  font-size: 13px;
  color: var(--ink-3);
}

.catalog__meta b {
  font: 700 14px/1 var(--font-num);
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 0 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--chip-bg);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.chip:hover {
  color: var(--ink);
  border-color: var(--gold-line-2);
}

.chip__no {
  font: 700 11.5px/1 var(--font-num);
  letter-spacing: 0.08em;
  color: var(--gold-text);
}

.chip__short {
  display: none;
}

.chip[aria-pressed="true"] {
  background: var(--chip-on-bg);
  border-color: var(--chip-on-line);
  color: var(--chip-on-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chip[aria-pressed="true"] .chip__no {
  color: var(--chip-on-no);
}

.notice {
  --cut: 14px;
  --r: 16px;
  margin-top: 20px;
}

.notice__panel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
}

.notice__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--gold-line-2);
  background: var(--gold-wash);
  color: var(--gold);
}

.notice__icon svg {
  width: 19px;
  height: 19px;
}

.notice__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.notice__text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.notice__text code {
  font: 600 12px/1 var(--font-num);
  color: var(--gold-text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 316px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: 20px;
}

.noscript {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px dashed var(--gold-line-2);
  font-size: 13.5px;
  color: var(--ink-2);
}

.catalog__foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
}

.catalog__foot svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

/* ---------- Resource card ---------- */
.res {
  --cut: 16px;
  position: relative;
  min-width: 0;
  filter: var(--facet-shadow);
  transition: transform 0.35s var(--ease);
  animation: hy-rise 0.62s var(--ease) 1 backwards;
}

.res::after {
  content: "";
  position: absolute;
  top: calc(var(--cut) / 2);
  right: calc(var(--cut) / 2);
  width: calc(var(--cut) * 1.4142 + 6px);
  height: 2px;
  background: var(--tick);
  -webkit-clip-path: polygon(0 50%, 100% 0, 100% 100%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform: translate(50%, -50%) rotate(45deg);
  opacity: 0.72;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.res__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--panel-line);
  border-radius: 16px 0 16px 16px;
  background:
    var(--panel-rim) top left / 100% 1px no-repeat,
    var(--panel);
  box-shadow: var(--panel-inset);
  -webkit-clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: border-color 0.3s var(--ease);
}

/* Warm light pooling from the cut corner on hover. */
.res__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 100% 0%, var(--gold-wash), rgba(232, 185, 115, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.res:hover {
  transform: translateY(-3px);
}

.res:hover::after {
  opacity: 1;
}

.res:hover .res__panel {
  border-color: var(--gold-line-2);
}

.res:hover .res__panel::before {
  opacity: 1;
}

.res__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  padding-right: 8px;
}

.res__slot {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  font-size: 12px;
  color: var(--ink-2);
}

.res__no {
  flex: none;
  padding-right: 9px;
  margin-right: 9px;
  border-right: 1px solid var(--line-2);
  font: 700 12px/1 var(--font-num);
  letter-spacing: 0.08em;
  color: var(--gold-text);
}

.res__cat {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res__tag {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--gold-line-2);
  background: var(--gold-wash);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-text);
}

.res__heat {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
}

.res__tag:not([hidden]) + .res__heat {
  margin-left: 0;
}

.res__heat svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.res__heat-num {
  font: 700 13px/1 var(--font-num);
  letter-spacing: 0.03em;
  color: var(--ink);
}

.res__title {
  position: relative;
  margin: 14px 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  min-height: 3.1em;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-wrap: pretty;
}

.res__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: auto;
  padding-top: 16px;
}

.res__foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.res__disks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.disk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.disk__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.disk.is-on {
  color: var(--gold-text);
  border-color: var(--gold-line-2);
  background: var(--gold-wash);
}

.disk.is-on .disk__dot {
  opacity: 1;
  box-shadow: 0 0 6px currentColor;
}

.disk.is-off {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.res__go {
  margin-left: auto;
}

.res__go-icon {
  display: inline-flex;
}

.res__status {
  position: relative;
  margin: -4px 0 16px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--chip-bg);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.res__status[data-tone="ok"] {
  border-color: var(--ok-ring);
}

.res__status[data-tone="ok"]::first-line {
  color: var(--ink);
}

.res__status[data-tone="error"] {
  border-color: var(--danger-ring);
  color: var(--danger);
}

.res__status[data-tone="info"] {
  border-color: var(--gold-line);
}

.res__status a {
  color: var(--gold-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Skeleton ---------- */
.skel {
  filter: var(--facet-shadow);
}

.skel__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  padding: 20px 18px 16px;
  border: 1px solid var(--panel-line);
  border-radius: 16px 0 16px 16px;
  background: var(--panel);
  -webkit-clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.skel__line,
.skel__pill,
.skel__btn {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 50%, var(--skel-a) 100%);
  background-size: 200% 100%;
  animation: hy-shimmer 1.5s linear infinite;
}

.skel__line {
  height: 12px;
}

.skel__line--s { width: 46%; }
.skel__line--l { width: 92%; height: 16px; margin-top: 6px; }
.skel__line--m { width: 64%; height: 16px; }

.skel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.skel__pill {
  width: 110px;
  height: 24px;
  border-radius: 999px;
}

.skel__btn {
  width: 148px;
  height: 36px;
  border-radius: 10px;
}

/* ---------- Empty / error states (inside the grid) ---------- */
.state {
  grid-column: 1 / -1;
  --cut: 16px;
  --r: 18px;
}

.state__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(32px, 5vw, 52px) 24px;
}

.state__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--gold-line-2);
  background: var(--gold-wash);
  color: var(--gold);
}

.state__icon svg {
  width: 24px;
  height: 24px;
}

.state--error .state__icon {
  border-color: var(--danger-ring);
  color: var(--danger);
  background: transparent;
}

.state__title {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.state__text {
  margin-top: 8px;
  max-width: 34em;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.state__ref {
  margin-top: 6px;
  font: 600 11.5px/1.5 var(--font-num);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   9 · Join band
   ========================================================================== */
.join {
  margin-top: clamp(52px, 7vw, 92px);
}

.join__panel {
  display: grid;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 4vw, 46px) clamp(20px, 4vw, 52px);
  background:
    var(--panel-rim) top left / 100% 1px no-repeat,
    radial-gradient(520px 320px at 88% 50%, var(--gold-wash), rgba(232, 185, 115, 0) 70%),
    var(--panel);
}

.join__title {
  margin-top: 12px;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 800;
  line-height: 1.35;
}

.join__lead {
  margin-top: 12px;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.join__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.join__note {
  font-size: 12.5px;
  color: var(--ink-3);
}

.join__qr {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr {
  width: 150px;
  padding: 8px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--qr-ring), var(--qr-shadow);
}

.qr img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.join__cap {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.join__cap strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* ==========================================================================
   10 · Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(52px, 7vw, 88px);
  padding: 26px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__brand img {
  width: 28px;
  height: 28px;
}

.footer__name {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer__domain {
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  font: 600 12px/1 var(--font-num);
  letter-spacing: 0.12em;
  color: var(--gold-text);
}

.footer__legal {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.footer__copy {
  color: var(--ink-2);
}

/* ==========================================================================
   11 · Staggered entrance
   ========================================================================== */
.grid > :nth-child(2) { animation-delay: 0.05s; }
.grid > :nth-child(3) { animation-delay: 0.1s; }
.grid > :nth-child(4) { animation-delay: 0.15s; }
.grid > :nth-child(5) { animation-delay: 0.2s; }
.grid > :nth-child(6) { animation-delay: 0.25s; }
.grid > :nth-child(7) { animation-delay: 0.3s; }
.grid > :nth-child(8) { animation-delay: 0.35s; }
.grid > :nth-child(9) { animation-delay: 0.4s; }
.grid > :nth-child(10) { animation-delay: 0.45s; }
.grid > :nth-child(11) { animation-delay: 0.5s; }
.grid > :nth-child(n+12) { animation-delay: 0.55s; }

.hero .facet,
.catalog__head,
.chips {
  animation: hy-rise 0.7s var(--ease) 1 backwards;
}

.catalog__head { animation-delay: 0.12s; }
.chips { animation-delay: 0.18s; }

.state {
  animation: hy-rise 0.5s var(--ease) 1 backwards;
}

/* ==========================================================================
   12 · Keyframes
   ========================================================================== */
@keyframes hy-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}

@keyframes hy-logo-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.9);
  }
  60% {
    opacity: 1;
  }
}

@keyframes hy-sweep {
  0% {
    transform: translateX(-130%) skewX(-24deg);
  }
  100% {
    transform: translateX(420%) skewX(-24deg);
  }
}

@keyframes hy-sheen {
  0% {
    transform: translateX(-170%) skewX(-20deg);
  }
  18%,
  100% {
    transform: translateX(330%) skewX(-20deg);
  }
}

@keyframes hy-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes hy-pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes hy-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   13 · Responsive
   ========================================================================== */
@media (min-width: 760px) {
  .join__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
  }
}

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

  .pillar {
    padding-right: 22px;
  }

  .pillar + .pillar {
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 40px;
  }

  .emblem {
    margin: -12px 0;
  }

  .qr {
    width: 168px;
  }
}

@media (max-width: 959.98px) {
  .hero__grid {
    gap: 0;
  }

  .emblem {
    order: -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 18px;
  }

  .emblem__stage {
    width: 116px;
  }

  .em-hex--inner,
  .em-axis {
    display: none;
  }

  .emblem__cap {
    display: grid;
    gap: 4px;
    margin-top: 0;
    font-size: 12.5px;
    line-height: 1.6;
    letter-spacing: 0.22em;
  }

  .emblem__cap > span:first-child {
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--ink);
  }

  .emblem__sep {
    display: none;
  }
}

@media (max-width: 639.98px) {
  body {
    font-size: 14.5px;
  }

  .topbar__inner {
    min-height: 56px;
  }

  .brand__sub {
    display: none;
  }

  .only-wide {
    display: none;
  }

  .only-narrow {
    display: inline;
  }

  .seg__btn {
    padding: 0 9px;
    gap: 5px;
  }

  .btn--sm.topbar__join {
    padding: 0 11px;
  }

  .eyebrow__brand {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .status {
    margin: 4px 0 0;
  }

  .catalog__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .chip {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    padding: 8px 4px;
    font-size: 12.5px;
    text-align: center;
  }

  .chip--all {
    grid-row: span 2;
  }

  .chip__full {
    display: none;
  }

  .chip__short {
    display: inline;
  }

  .res__panel {
    padding: 16px 16px 14px;
  }

  .res__go {
    flex: 1 1 auto;
  }

  .notice__panel {
    padding: 16px;
    gap: 12px;
  }

  .notice__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .join__qr {
    flex-direction: row;
    gap: 16px;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .qr {
    width: 112px;
    padding: 6px;
    border-radius: 12px;
  }

  .join__qr {
    align-items: center;
  }

  .join__cap {
    margin-top: 0;
    text-align: left;
    gap: 4px;
  }

  .join__actions .btn {
    flex: 1 1 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal {
    text-align: left;
  }
}

@media (max-width: 379.98px) {
  .brand__text {
    display: none;
  }

  .seg__btn span {
    display: none;
  }
}

/* ==========================================================================
   14 · Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__sweep,
  .emblem__sheen,
  .btn--primary::after {
    display: none;
  }

  .res:hover,
  .btn--primary:hover {
    transform: none;
  }
}
