/* ============================================================
   夜航局 / NOCTURNE BUREAU
   base.css — reset, tokens, typography, shared primitives
   ============================================================ */

:root {
  --void: #08090b;
  --void-2: #0c0e12;
  --ink: #111318;
  --ink-2: #171a20;
  --paper: #f2efe4;
  --paper-dim: #d8d4c6;
  --muted: #878a83;
  --muted-2: #5d615d;
  --line: rgba(242, 239, 228, 0.14);
  --line-soft: rgba(242, 239, 228, 0.07);
  --acid: #d8ff4f;
  --acid-dim: #a9cc2f;
  --ember: #ff6b3d;
  --lilac: #b6a4ff;
  --cyan: #72f6df;
  --gold: #f3ca72;
  --danger: #ff4f4f;

  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "STSong", "SimSun", "Times New Roman", serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", "Cascadia Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4.4vw, 68px);
  --max: 1480px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --head-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--acid) var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }
body.game-open { overflow: hidden; }

::selection { background: var(--acid); color: var(--void); }

img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 1.5px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  background: var(--acid); color: var(--void);
  padding: 10px 18px; font-family: var(--mono); font-size: 12px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- type helpers ---------- */
.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.serif { font-family: var(--serif); }
.lilac { color: var(--lilac); }
.acid { color: var(--acid); }
.ember { color: var(--ember); }
.muted { color: var(--muted); }

/* ---------- background layers ---------- */
.sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -4; pointer-events: none;
  background: var(--void);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .055; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(2) infinite;
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0,0,0,.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 18%, transparent 82%, rgba(0,0,0,.4));
}
.scanlines {
  position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: .12;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(255,255,255,.055) 3px, transparent 4px);
  mix-blend-mode: overlay;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, 1%); }
  100% { transform: translate(0,0); }
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity .25s;
}
.cursor.is-on { opacity: 1; }
.cursor__dot {
  position: absolute; left: -2px; top: -2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--acid);
}
.cursor__ring {
  position: absolute; left: -15px; top: -15px;
  width: 30px; height: 30px; border: 1px solid rgba(216,255,79,.7);
  border-radius: 50%; transition: width .22s var(--ease), height .22s var(--ease), left .22s var(--ease), top .22s var(--ease), background .22s, border-color .22s;
}
.cursor.is-hover .cursor__ring {
  left: -25px; top: -25px; width: 50px; height: 50px;
  background: rgba(216,255,79,.08); border-color: var(--acid);
}
.cursor.is-down { transform: scale(.72); }
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button { cursor: none; }
}

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: #07080a;
  transition: opacity .7s var(--ease), visibility .7s;
}
.boot::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(242,239,228,.045) 80px);
  pointer-events: none;
}
.boot.is-leaving { opacity: 0; visibility: hidden; }
.boot__inner { position: relative; width: min(440px, calc(100vw - 56px)); text-align: center; }
.boot__mark {
  font-size: 44px; line-height: 1; color: var(--acid);
  animation: spin 8s linear infinite; display: inline-block;
}
.boot__eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--muted); margin-top: 22px; }
.boot__line { font-family: var(--serif); font-size: 20px; margin-top: 18px; letter-spacing: .06em; }
.boot__dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.boot__dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--acid); animation: blink 1s infinite; }
.boot__dots i:nth-child(2) { animation-delay: .16s; }
.boot__dots i:nth-child(3) { animation-delay: .32s; }
.boot__bar { height: 1px; background: var(--line); margin: 28px 0 14px; overflow: hidden; }
.boot__bar span { display: block; height: 100%; background: var(--acid); width: 0; animation: bootbar 1.35s var(--ease) forwards; }
.boot__meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 9px; letter-spacing: .15em; color: var(--muted-2); }
.boot__meta button { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; border-bottom: 1px solid var(--line); padding: 2px 0; }
.boot__meta button:hover { color: var(--acid); border-color: var(--acid); }
@keyframes bootbar { to { width: 100%; } }
@keyframes blink { 0%,100% { opacity: .18; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(8,9,11,.76);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.site-head__inner {
  max-width: var(--max); margin: 0 auto; height: var(--head-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark {
  font-size: 27px; line-height: 1; color: var(--acid);
  transition: transform .7s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(120deg); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__type strong { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; font-weight: 700; }
.brand__type small { font-family: var(--mono); font-size: 7px; letter-spacing: .24em; color: var(--muted); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: 7px;
  font-size: 13px; color: var(--paper-dim); padding: 4px 0;
}
.nav a span { font-family: var(--mono); font-size: 8px; color: var(--muted-2); transition: color .25s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--acid); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover span { color: var(--acid); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--acid); }

.head-tools { display: flex; align-items: center; gap: 12px; }
.head-clock {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--paper-dim);
  padding-right: 12px; border-right: 1px solid var(--line);
}
.head-clock__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); animation: pulse 2.4s infinite; }
.head-clock__zone { color: var(--muted-2); font-size: 8px; }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--paper-dim); transition: border-color .2s, color .2s, background .2s;
}
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg path:first-child { fill: currentColor; stroke: none; }
.icon-btn .sound-off { display: none; }
.icon-btn[aria-pressed="true"] { color: var(--acid); border-color: rgba(216,255,79,.45); background: rgba(216,255,79,.06); }
.icon-btn:not([aria-pressed="true"]) .sound-wave { display: none; }
.icon-btn:not([aria-pressed="true"]) .sound-off { display: block; }
.icon-btn:hover { color: var(--acid); border-color: var(--acid); }

.search-btn {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 7px 0 12px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.search-btn kbd { font-family: var(--mono); font-size: 8px; border: 1px solid var(--line); padding: 2px 5px; color: var(--muted-2); }
.search-btn:hover { color: var(--paper); border-color: var(--paper-dim); }

.menu-btn {
  display: none; width: 38px; height: 38px; border: 1px solid var(--line);
  padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; height: 1px; background: var(--paper); width: 100%; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--line);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-size: 13px; letter-spacing: .06em; white-space: nowrap;
  transition: color .25s, background .25s, border-color .25s, transform .25s var(--ease);
  overflow: hidden;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  transform: translateY(101%); transition: transform .4s var(--ease); z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--void); }
.btn--acid { --btn-bg: var(--acid); --btn-fg: var(--void); --btn-bd: var(--acid); font-weight: 700; }
.btn--acid::before { background: var(--paper); }
.btn--acid:hover { color: var(--void); }
.btn--ghost { --btn-fg: var(--paper); --btn-bd: var(--line); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--void); border-color: var(--paper); }
.btn--dark { --btn-bg: var(--void); --btn-fg: var(--paper); --btn-bd: var(--void); font-weight: 700; }
.btn--dark::before { background: var(--ink-2); }
.btn--dark:hover { color: var(--paper); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); font-weight: 700; }
.btn--danger::before { background: var(--paper); }
.btn--danger:hover { color: var(--void); }
.btn--text { --btn-bd: transparent; padding: 0 10px; color: var(--muted); }
.btn--text::before { display: none; }
.btn--text:hover { color: var(--acid); }

/* ---------- shared layout ---------- */
main { position: relative; z-index: 1; }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--pad); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { grid-template-columns: minmax(0, 1fr) minmax(240px, 390px); }
.section-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 18px; }
.section-kicker span { color: var(--acid); }
.section-title {
  font-family: var(--serif); font-size: clamp(40px, 5.8vw, 82px);
  line-height: .98; letter-spacing: -.035em; font-weight: 700;
}
.section-note { max-width: 390px; color: var(--muted); font-size: 13px; line-height: 1.8; justify-self: end; text-align: right; }
.section-head--split .section-title { margin-top: 4px; }

.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; white-space: nowrap; padding: 15px 0; position: relative; z-index: 1;
  background: rgba(8,9,11,.48);
}
.marquee__track { display: inline-flex; align-items: center; gap: 34px; animation: marquee 46s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.marquee b { color: var(--acid); font-size: 12px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .line:nth-child(2) { transition-delay: .08s; }
.hero__title .line:nth-child(3) { transition-delay: .16s; }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; right: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 32px);
  z-index: 400; display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none; width: min(340px, calc(100vw - 28px));
}
.toast {
  pointer-events: auto; display: flex; gap: 13px; align-items: flex-start;
  background: rgba(13,15,19,.94); border: 1px solid var(--line);
  border-left: 2px solid var(--acid); padding: 13px 15px;
  backdrop-filter: blur(16px);
  animation: toast-in .5s var(--ease);
}
.toast.is-out { animation: toast-out .35s var(--ease) forwards; }
.toast__sigil { color: var(--acid); font-size: 17px; line-height: 1.2; }
.toast__body { min-width: 0; }
.toast__body strong { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: .04em; }
.toast__body p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 2px; }
.toast__body span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .14em; color: var(--acid); margin-bottom: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(18px); } }

/* ---------- footer ---------- */
.site-foot {
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--line); margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
}
.site-foot__inner {
  max-width: var(--max); margin: 0 auto; padding: 52px var(--pad) 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 34px;
}
.site-foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.site-foot__brand .brand__mark { font-size: 30px; }
.site-foot__brand strong { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .12em; line-height: 1; }
.site-foot__brand small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .2em; color: var(--muted); margin-top: 8px; }
.site-foot__links { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.site-foot__links a, .site-foot__links button { font-size: 12px; color: var(--muted); transition: color .2s; }
.site-foot__links a:hover, .site-foot__links button:hover { color: var(--acid); }
.site-foot__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 18px; color: var(--muted-2); }
.site-foot__giant {
  font-family: var(--serif); font-weight: 700; font-size: clamp(100px, 25vw, 370px);
  line-height: .72; letter-spacing: -.06em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(242,239,228,.09);
  user-select: none; pointer-events: none; transform: translateY(12%);
}

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 350; display: flex; align-items: flex-start; justify-content: center; padding-top: min(14vh, 130px); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.palette.is-open { visibility: visible; opacity: 1; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.72); backdrop-filter: blur(9px); }
.palette__panel {
  position: relative; width: min(620px, calc(100vw - 28px));
  background: #0d0f13; border: 1px solid rgba(242,239,228,.2);
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
  transform: translateY(-10px); transition: transform .25s var(--ease);
}
.palette.is-open .palette__panel { transform: none; }
.palette__input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 62px; border-bottom: 1px solid var(--line); }
.palette__input-wrap > span { color: var(--acid); font-family: var(--mono); font-size: 15px; }
.palette__input-wrap input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; letter-spacing: .04em; }
.palette__input-wrap input::placeholder { color: var(--muted-2); }
.palette__input-wrap kbd, .palette__foot kbd { font-family: var(--mono); font-size: 8px; border: 1px solid var(--line); padding: 3px 5px; color: var(--muted); }
.palette__list { max-height: min(48vh, 420px); overflow-y: auto; padding: 8px; }
.palette__item {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 12px;
  text-align: left; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.palette__item.is-selected { background: rgba(216,255,79,.07); border-color: rgba(216,255,79,.22); }
.palette__item .p-idx { font-family: var(--mono); font-size: 9px; color: var(--muted-2); width: 24px; flex: 0 0 auto; }
.palette__item .p-main { flex: 1; min-width: 0; }
.palette__item strong { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.palette__item small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.palette__item .p-kind { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--muted-2); }
.palette__item.is-locked { opacity: .45; }
.palette__empty { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 12px; }
.palette__foot { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.palette__foot span { display: flex; gap: 5px; align-items: center; }
.palette__hint { margin-left: auto; color: var(--muted-2); }

/* ---------- confirm ---------- */
.confirm { position: fixed; inset: 0; z-index: 360; display: grid; place-items: center; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; padding: 20px; }
.confirm.is-open { visibility: visible; opacity: 1; }
.confirm__backdrop { position: absolute; inset: 0; background: rgba(4,5,7,.82); backdrop-filter: blur(8px); }
.confirm__card { position: relative; width: min(460px, 100%); background: #0e1014; border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.confirm__card > span { color: var(--danger); }
.confirm__card h2 { font-family: var(--serif); font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin-top: 14px; letter-spacing: -.02em; }
.confirm__card p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 12px; }
.confirm__actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.confirm__actions .btn { flex: 1; min-width: 120px; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060709; }
::-webkit-scrollbar-thumb { background: #2a2d2b; border: 2px solid #060709; }
::-webkit-scrollbar-thumb:hover { background: var(--acid-dim); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .grain, .scanlines { display: none; }
}

@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .nav, .search-btn { display: none; }
  .menu-btn { display: flex; }
  .head-clock { border-right: 0; padding-right: 0; }
  .head-clock__zone { display: none; }
  .site-foot__inner { grid-template-columns: 1fr; gap: 26px; }
  .site-foot__links { order: 3; }
  .section-head, .section-head--split { grid-template-columns: 1fr; gap: 16px; }
  .section-note { justify-self: start; text-align: left; max-width: 480px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .head-clock { display: none; }
  .brand__type strong { font-size: 18px; }
  .brand__type small { font-size: 6px; letter-spacing: .18em; }
  .brand__mark { font-size: 23px; }
  .head-tools { gap: 8px; }
  .icon-btn { width: 32px; height: 32px; }
  .menu-btn { width: 34px; height: 34px; }
  .section { padding-top: 74px; padding-bottom: 74px; }
  .site-foot__meta { flex-direction: column; gap: 8px; }
  .toasts { bottom: 14px; right: 14px; }
  .cursor { display: none; }
}

.noscript {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center; text-align: center;
  background: var(--void); color: var(--paper); font-family: var(--serif);
  font-size: clamp(18px, 3vw, 28px); line-height: 1.8; padding: 30px;
}
