/* ==========================================================================
   Morphosys Quant Ltd — main stylesheet
   Palette derived from the MQ1 pitch deck (blueprint paper / navy ink /
   blueprint blue / red-orange construction accent).
   ========================================================================== */


:root {
  --paper: #EDF1F4;
  --paper-2: #F5F7F9;
  --surface: #FFFFFF;
  --ink: #0C213C;
  --ink-2: #2E405A;
  --muted: #5B6B80;
  --line: #C5D1DC;
  --line-2: #DCE4EB;
  --blue: #2D6A9F;
  --blue-2: #5D8DB8;
  --blue-soft: #A9C2D8;
  --blue-wash: #DCE7F0;
  --accent: #C8623F;
  --accent-soft: #E7B4A1;
  --good: #2E7D5B;
  --bad: #B4462F;

  --f-display: "Orbitron", "Eurostile", "Microgramma", "Segoe UI", sans-serif;
  --f-head: "Expletus Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --header-h: 72px;
  --shadow: 0 1px 0 rgba(12, 33, 60, .04), 0 8px 24px -12px rgba(12, 33, 60, .18);
}

:lang(zh) {
  --f-head: "Expletus Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-display: "Orbitron", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Eyebrow / technical label ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: .75em; margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.tech { font-family: var(--f-display); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; cursor: pointer;
  font-family: var(--f-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .95em 1.5em; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s; text-decoration: none !important;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { padding: .65em 1.1em; font-size: .72rem; }
.btn svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(237, 241, 244, .88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-family: var(--f-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-family: var(--f-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55em 2.1em .55em .8em; border-radius: var(--radius); cursor: pointer;
}
.lang::after { content: ""; position: absolute; right: .8em; top: 50%; width: 6px; height: 6px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); width: 40px; height: 40px; border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .menu-toggle { display: block; }
  .header-tools { margin-left: auto; }
  .header-tools .btn span.lbl-long { display: none; }
}
@media (max-width: 520px) {
  .brand img { height: 30px; }
  .header-tools .btn { padding: .6em .8em; }
  .header-tools { gap: 8px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--white { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section--ink { background: var(--ink); color: #C9D5E2; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: var(--blue-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section--ink .section-head p { color: #9FB2C7; }
.bp-grid-bg {
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta div { font-family: var(--f-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-meta strong { display: block; font-family: var(--f-head); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: 4px; }
.hero-art { position: relative; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 620px; margin: 0 auto; width: 100%; } }

/* ---------- Blueprint drawing ---------- */
.blueprint { color: var(--ink); width: 100%; height: auto; }
.blueprint .c1 { stroke: var(--blue-soft); stroke-width: .6; opacity: .55; }
.blueprint .c2 { stroke: var(--blue-soft); stroke-width: .5; opacity: .45; }
.blueprint .c3 { stroke: var(--accent); stroke-width: .8; opacity: .7; }
.blueprint .bp-frame { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.blueprint .plate.top { fill: rgba(245, 247, 249, .42); stroke: var(--ink); stroke-width: 1.1; }
.blueprint .plate.side { fill: rgba(220, 231, 240, .85); stroke: var(--ink); stroke-width: 1; }
.blueprint .plate.side2 { fill: #C9D9E7; stroke: var(--ink); stroke-width: 1; }
.blueprint .pgrid { stroke: var(--blue-2); stroke-width: .35; opacity: .7; }
.blueprint .mod .top, .blueprint .rack .top, .blueprint .gate .top { fill: #fff; stroke: var(--ink); stroke-width: .9; }
.blueprint .mod .side, .blueprint .rack .side, .blueprint .gate .side { fill: #D4E1EC; stroke: var(--ink); stroke-width: .9; }
.blueprint .mod .side2, .blueprint .rack .side2, .blueprint .gate .side2 { fill: #B8CCDE; stroke: var(--ink); stroke-width: .9; }
.blueprint .gate .top { fill: #F6E4DC; }
.blueprint .gate .side { fill: #E9C5B6; }
.blueprint .gate .side2 { fill: #DDAE9B; }
.blueprint .mesh { fill: none; stroke: var(--blue); stroke-width: .7; }
.blueprint .ring { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.blueprint .ring.thin { stroke-width: .8; stroke-dasharray: 3 3; }
.blueprint .coin { fill: rgba(255, 255, 255, .7); stroke: var(--ink); stroke-width: .7; }
.blueprint .leader { stroke: var(--ink); stroke-width: .6; stroke-dasharray: 2 3; }
.blueprint .lbl { font-family: var(--f-display); font-size: 11.5px; letter-spacing: .1em; fill: var(--ink); }
.blueprint .lbl.small { font-size: 9px; fill: var(--muted); }
.blueprint .flow { stroke: var(--accent); stroke-width: 1.1; stroke-dasharray: 4 4; color: var(--accent); }
.blueprint .dim { stroke: var(--ink); stroke-width: .7; color: var(--ink); }
.blueprint .pulse { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .blueprint .layer { opacity: 0; transform: translateY(-14px); animation: bpIn .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.15s + (4 - var(--i)) * .14s); }
  .blueprint .flow { animation: dash 1.4s linear infinite; }
}
@keyframes bpIn { to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: -16; } }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid > * { background: var(--paper-2); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card { padding: clamp(24px, 3vw, 36px); position: relative; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card .num { position: absolute; top: 20px; right: 22px; font-family: var(--f-display); font-size: .7rem; color: var(--accent); letter-spacing: .1em; }
.card .icon { width: 56px; height: 56px; color: var(--ink); }
.card .icon .a { stroke: var(--accent); }
.card .icon .b { stroke: var(--blue); }
.card--feature { background: var(--ink); color: #C9D5E2; }
.card--feature h3 { color: #fff; }
.card--feature p { color: #9FB2C7; }
.card--feature .icon { color: #fff; }
.card .tag { display: inline-block; margin-top: 16px; font-family: var(--f-display); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue-soft); padding: 4px 8px; }
.card--feature .tag { color: var(--blue-soft); border-color: rgba(169, 194, 216, .4); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { font-family: var(--f-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts li span:last-child { color: var(--ink); }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- MQ1 section ---------- */
.mq1 { overflow: hidden; }
.mq1-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .mq1-grid { grid-template-columns: 1fr; } }
.mq1-badge { font-family: var(--f-display); font-size: clamp(3.6rem, 9vw, 7rem); line-height: .9; color: #fff; letter-spacing: .02em; margin-bottom: .2em; }
.mq1-badge span { color: var(--accent); }
.pipeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.pipeline li { position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid rgba(169, 194, 216, .18); }
.pipeline li::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 18px; font-family: var(--f-display); font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.pipeline li::after { content: ""; position: absolute; left: 38px; top: 27px; width: 14px; height: 1px; background: rgba(169, 194, 216, .5); }
.pipeline strong { display: block; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 1.08rem; }
.pipeline span { color: #9FB2C7; font-size: .95rem; }
.mq1-props { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mq1-props span { font-family: var(--f-display); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(169, 194, 216, .35); color: #C9D5E2; padding: 6px 10px; }
.section--ink .bp-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(169, 194, 216, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 194, 216, .07) 1px, transparent 1px);
  background-size: 48px 48px; }

/* ---------- Principles ---------- */
.pillar { padding: clamp(24px, 3vw, 40px); }
.pillar .k { font-family: var(--f-display); font-size: .7rem; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.pillar h3 { margin: 10px 0 10px; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Access levels ---------- */
.access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .access { grid-template-columns: 1fr; } }
.access-card { border: 1px solid var(--line); background: var(--paper-2); padding: 28px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.access-card .lvl { font-family: var(--f-display); font-size: .7rem; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.access-card p { color: var(--muted); margin: 0; flex: 1; }
.access-card .status { font-family: var(--f-display); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.access-card .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.access-card .status.live::before { background: var(--good); }
.access-card .status.live { color: var(--good); }
.access-card.is-live { border-color: var(--ink); }

/* ---------- Contact CTA ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 18em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9FB2C7; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #C9D5E2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--f-display); font-weight: 400; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid button.linklike { background: none; border: 0; padding: 0; color: #C9D5E2; font: inherit; cursor: pointer; text-align: left; }
.footer-grid button.linklike:hover { text-decoration: underline; }
.footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(169, 194, 216, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; }
.footer-risk { font-size: .8rem; color: #7E93AA; max-width: 900px; margin-top: 28px; line-height: 1.6; }

/* ---------- Legal pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 46em; font-size: 1.05rem; }
.legal { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 8vw, 112px); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal .toc { position: static !important; } }
.legal .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 10px; }
.legal .toc a { font-family: var(--f-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.legal article { max-width: 760px; }
.legal article h2 { font-size: 1.6rem; margin-top: 0; padding-top: 8px; }
.legal article h3 { font-size: 1.1rem; margin-top: 1.8em; }
.legal article section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal article p, .legal article li { color: var(--ink-2); }
.legal dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; margin: 0 0 1.5em; }
.legal dt { font-family: var(--f-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.legal dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.note { border-left: 2px solid var(--accent); background: var(--paper-2); padding: 14px 18px; color: var(--muted); font-size: .92rem; margin: 1.2em 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 106, 159, .15); }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--ink); }
.form-msg { font-size: .9rem; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper-2); display: none; }
.form-msg.show { display: block; }
.form-msg.err { border-color: var(--bad); color: var(--bad); }

/* ---------- Login ---------- */
.login-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }
.login-art { background: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 5vw, 64px); color: #C9D5E2; }
.login-art .bp-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(169, 194, 216, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 194, 216, .08) 1px, transparent 1px); background-size: 40px 40px; }
.login-art h2 { color: #fff; position: relative; }
.login-art p { position: relative; color: #9FB2C7; max-width: 30em; }
.login-art .q-mark { position: absolute; top: 12%; right: -6%; width: 62%; opacity: .07; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.login-box { width: 100%; max-width: 420px; }
.login-box h1 { font-size: 2rem; }
.levels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; position: relative; }
.levels li { display: flex; gap: 14px; align-items: baseline; border-top: 1px solid rgba(169, 194, 216, .2); padding-top: 10px; }
.levels li b { font-family: var(--f-display); font-weight: 400; font-size: .7rem; color: var(--accent); letter-spacing: .12em; min-width: 32px; }

/* ---------- Cookie banner & modal ---------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 980px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--ink); box-shadow: var(--shadow);
  padding: 22px 24px; display: none; gap: 20px; align-items: center; grid-template-columns: 1fr auto;
}
.cc-banner.show { display: grid; }
.cc-banner h2 { font-size: 1.05rem; margin-bottom: 4px; }
.cc-banner p { margin: 0; font-size: .9rem; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) { .cc-banner { grid-template-columns: 1fr; } .cc-actions { justify-content: stretch; } .cc-actions .btn { flex: 1; justify-content: center; } }
.cc-modal { position: fixed; inset: 0; z-index: 130; background: rgba(12, 33, 60, .45); display: none; align-items: center; justify-content: center; padding: 16px; }
.cc-modal.show { display: flex; }
.cc-dialog { background: var(--surface); max-width: 620px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border: 1px solid var(--ink); }
.cc-dialog h2 { font-size: 1.4rem; }
.cc-cat { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; }
.cc-cat h3 { font-size: 1rem; margin: 0; }
.cc-cat p { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--muted); }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 12px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-dialog .cc-actions { margin-top: 18px; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .site-header .wrap { gap: 10px; }
  .header-tools .btn span { display: none; }
  .header-tools .btn { padding: .6em .7em; }
  .lang select { padding-right: 1.8em; max-width: 112px; }
  .login-art .q-mark { display: none; }
}
.blueprint { overflow: hidden; }
.legal dt { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.btn svg { flex-shrink: 0; }
