/* science.qodoonect.com — one stylesheet (CSP style-src 'self': no inline <style>, no style="").
   Group V8 brand tokens + the Science violet; dark is the original look, light is its paper twin. */

/* Self-hosted fonts (CSP font-src 'self', no Google Fonts request). Inter + JetBrains Mono,
   variable weight, WOFF2, OFL 1.1 — licences in fonts/; same files as knowledge-landing and
   imperio-landing. Latin is preloaded from index.html; latin-ext loads only when a glyph needs it. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Group V8 */
  --navy: #04050A; --navy2: #0B0E22;
  --cyan: #00E5FF; --gold: #F5C76A; --white: #F5F7FA;
  /* Science accent (unchanged from the original page) */
  --violet: #7C3AED; --violet-soft: #B388FF;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  /* Dark (default) */
  --bg: var(--navy);
  --bg2: var(--navy2);
  --text: var(--white);
  --strong: #FFFFFF;
  --muted: rgba(245, 247, 250, 0.72);
  --soft: rgba(245, 247, 250, 0.6);
  --accent: var(--violet-soft);
  --accent-2: var(--cyan);
  --warm: var(--gold);
  --hair: rgba(124, 58, 237, 0.26);
  --hair-strong: rgba(179, 136, 255, 0.46);
  --panel: rgba(4, 5, 10, 0.7);
  --veil: rgba(4, 5, 10, 0.8);
  --card: rgba(7, 9, 20, 0.82);
  --card-hover: rgba(124, 58, 237, 0.1);
  --menu-bg: rgba(7, 9, 20, 0.97);
  --btn-bg: var(--violet);
  --btn-text: #FFFFFF;
  --btn-glow: 0 0 30px rgba(124, 58, 237, 0.5);
  --focus: var(--cyan);
  --grad-a: var(--violet-soft);
  --grad-b: var(--cyan);
  --star-1: rgba(255, 255, 255, 0.55);
  --star-2: rgba(124, 58, 237, 0.38);
  --star-3: rgba(0, 229, 255, 0.34);
  --grid: rgba(124, 58, 237, 0.05);
  /* logo */
  --logo-orbit-a: #C9AEFF;
  --logo-orbit-b: #9F7AFA;
  --logo-orbit-c: rgba(179, 136, 255, 0.45);
  --logo-core-0: #F6F1FF;
  --logo-core-1: #B388FF;
  --logo-core-2: #7C3AED;
  --logo-planet: #00E5FF;
  --logo-moon: #E3D4FF;
  --logo-word: #FFFFFF;
  --logo-sub: #C9AEFF;
  --logo-glow: drop-shadow(0 0 6px rgba(179, 136, 255, 0.65));
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F6F4FC;
  --bg2: #E9E3FA;
  --text: #0B0E22;
  --strong: #04050A;
  --muted: rgba(11, 14, 34, 0.76);
  --soft: rgba(11, 14, 34, 0.66);
  --accent: #5B21B6;
  --accent-2: #0E6F86;
  --warm: #8A5300;
  --hair: rgba(91, 33, 182, 0.2);
  --hair-strong: rgba(91, 33, 182, 0.4);
  --panel: rgba(250, 248, 255, 0.78);
  --veil: rgba(246, 244, 252, 0.82);
  --card: rgba(255, 255, 255, 0.84);
  --card-hover: rgba(124, 58, 237, 0.07);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --btn-bg: #6D28D9;
  --btn-text: #FFFFFF;
  --btn-glow: 0 6px 24px rgba(109, 40, 217, 0.28);
  --focus: #0E6F86;
  --grad-a: #6D28D9;
  --grad-b: #0E6F86;
  --star-1: rgba(11, 14, 34, 0.32);
  --star-2: rgba(124, 58, 237, 0.3);
  --star-3: rgba(14, 111, 134, 0.3);
  --grid: rgba(91, 33, 182, 0.06);
  --logo-orbit-a: #6D28D9;
  --logo-orbit-b: #8B5CF6;
  --logo-orbit-c: rgba(91, 33, 182, 0.35);
  --logo-core-0: #EDE4FF;
  --logo-core-1: #8B5CF6;
  --logo-core-2: #5B21B6;
  --logo-planet: #0891B2;
  --logo-moon: #7C3AED;
  --logo-word: #0B0E22;
  --logo-sub: #5B21B6;
  --logo-glow: none;
  color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: radial-gradient(ellipse at 60% 30%, var(--bg2) 0%, var(--bg) 72%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
strong { font-weight: 500; color: var(--strong); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--btn-bg); color: var(--btn-text); font-family: var(--mono); font-size: 0.75rem; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── background stage ─────────────────────────────────────────────────── */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars { position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, var(--star-1), transparent),
    radial-gradient(2px 2px at 30% 80%, var(--star-2), transparent),
    radial-gradient(1px 1px at 90% 50%, var(--star-3), transparent),
    radial-gradient(1px 1px at 60% 70%, var(--star-1), transparent),
    radial-gradient(1.5px 1.5px at 75% 18%, var(--star-3), transparent),
    radial-gradient(1px 1px at 8% 62%, var(--star-2), transparent);
  opacity: 0.6; }
.grid-overlay { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, black 90%);
  mask-image: radial-gradient(ellipse at center, transparent 30%, black 90%); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
#scene.on { opacity: 1; }

/* content scrolling up under the floating nav fades out instead of showing above it */
.topfade { position: fixed; top: 0; left: 0; right: 0; height: 88px; z-index: 55; pointer-events: none; background: linear-gradient(var(--bg) 22%, transparent); }
.corner { position: fixed; width: 32px; height: 32px; border: 1px solid var(--hair-strong); z-index: 58; pointer-events: none; }
.corner.tl { top: 1.2rem; left: 1.2rem; border-right: 0; border-bottom: 0; }
.corner.tr { top: 1.2rem; right: 1.2rem; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 1.2rem; left: 1.2rem; border-right: 0; border-top: 0; }
.corner.br { bottom: 1.2rem; right: 1.2rem; border-left: 0; border-top: 0; }

/* ── HUD panels (decorative; below the nav, only where there is room) ──── */
.huds { position: fixed; top: 96px; right: 1.5rem; z-index: 15; display: flex; flex-direction: column; gap: 10px; transition: opacity 0.4s ease; }
.huds.away { opacity: 0; }
.hud { padding: 0.8rem 1rem; border: 1px solid var(--hair-strong); background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--muted); line-height: 1.8; min-width: 250px; text-transform: uppercase; }
.hud .t { color: var(--accent); font-size: 0.64rem; letter-spacing: 0.22em; margin-bottom: 0.4rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 1rem; }
.hud .row { display: flex; justify-content: space-between; gap: 1.2rem; }
.hud .k { color: var(--soft); }
.hud .v { color: var(--text); }
.hud .v.accent { color: var(--accent); }
.blink::after { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-left: 8px; box-shadow: 0 0 6px var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (max-width: 1279px) { .huds { display: none; } }

.container { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── nav ──────────────────────────────────────────────────────────────── */
.topnav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(1200px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 14px 9px 14px;
  border: 1px solid var(--hair-strong); background: var(--panel); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--logo-word); min-width: 0; }
.logo { flex: none; filter: var(--logo-glow); }
.logo .orbit-a { stroke: var(--logo-orbit-a); stroke-width: 1.7; }
.logo .orbit-b { stroke: var(--logo-orbit-b); stroke-width: 1.3; }
.logo .orbit-c { stroke: var(--logo-orbit-c); stroke-width: 0.8; stroke-dasharray: 1.4 2.4; }
.logo .core { fill: url(#logo-core); stroke: var(--logo-core-0); stroke-width: 0.6; }
.logo .c0 { stop-color: var(--logo-core-0); }
.logo .c1 { stop-color: var(--logo-core-1); }
.logo .c2 { stop-color: var(--logo-core-2); }
.logo .planet { fill: var(--logo-planet); }
.logo .moon { fill: var(--logo-moon); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--logo-word); }
.wm-sub { margin-top: 4px; font-family: var(--mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--logo-sub); }
.links { display: flex; gap: 26px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; }
.links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.theme-switch { display: inline-flex; border: 1px solid var(--hair-strong); }
.theme-switch[hidden] { display: none; }
.theme-switch button { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 10px; background: transparent; color: var(--muted); border: 0; cursor: pointer; }
.theme-switch button + button { border-left: 1px solid var(--hair-strong); }
.theme-switch button[aria-pressed="true"] { background: var(--card-hover); color: var(--accent); }
.theme-switch button:hover { color: var(--accent); }
.cta { padding: 8px 14px; border: 1px solid var(--accent); background: var(--card-hover); color: var(--accent); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
/* section menu for narrow screens: <details>, so it opens without JavaScript too */
.menu { position: relative; display: none; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--hair-strong);
  font: 500 0.6rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--card-hover); }
.menu-icon { position: relative; width: 12px; height: 9px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid currentColor; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; display: flex; flex-direction: column; padding: 8px;
  border: 1px solid var(--hair-strong); background: var(--menu-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.menu-panel a { padding: 13px 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.menu-panel a:hover { color: var(--accent); background: var(--card-hover); }
.menu-panel a + a { border-top: 1px solid var(--hair); }
@media (max-width: 900px) { .links { display: none; } .menu { display: block; } }
/* phones: the panel spans the nav bar (positioned against .topnav), never past the screen edge */
@media (max-width: 520px) { .menu { position: static; } .menu-panel { left: 0; right: 0; min-width: 0; top: calc(100% + 10px); } }
@media (max-width: 480px) {
  .topnav { padding: 8px 10px; gap: 8px; }
  .cta { display: none; }
  .wm-sub { letter-spacing: 0.32em; }
}

/* ── hero ─────────────────────────────────────────────────────────────── */
main { position: relative; z-index: 5; }
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 0 72px; }
.hero > .container { width: 100%; }
.hero-copy { max-width: 1000px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.26em; color: var(--accent); text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--hair-strong); background: var(--card-hover); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
h1 { font-weight: 200; font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: 0.98; letter-spacing: 0.01em; color: var(--strong); }
h1 .accent { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent); font-weight: 300; }
/* a soft halo in the page colour keeps small hero text legible over the moving tree */
.eyebrow, .tagline, .states, .quote-attr { text-shadow: 0 0 2px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg); }
.tagline { margin-top: 22px; font-family: var(--mono); font-size: clamp(0.78rem, 1.2vw, 1rem); letter-spacing: 0.5em; color: var(--accent); text-transform: uppercase; }
.lead { margin-top: 32px; max-width: 620px; font-size: 1.06rem; line-height: 1.75; color: var(--muted); }
.actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; border: 1px solid transparent; text-decoration: none; }
.btn.primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-glow); }
.btn.primary:hover { background: var(--accent); color: var(--bg); }
.btn.secondary { border-color: var(--hair-strong); background: var(--card); color: var(--text); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.states { list-style: none; margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); }
.states li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.open { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.dot.prep { border: 1px solid var(--warm); }
.dot.internal { border: 1px dashed var(--soft); }
.quote { margin-top: 52px; max-width: 640px; padding-left: 24px; border-left: 2px solid var(--violet); font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.4; color: var(--text); }
.quote-attr { margin-top: 12px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.26em; color: var(--soft); text-transform: uppercase; padding-left: 26px; }

/* ── sections ─────────────────────────────────────────────────────────── */
section.body { position: relative; padding: 128px 0; background: linear-gradient(180deg, transparent 0, var(--veil) 140px, var(--veil) 100%); }
section.body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair-strong), transparent); }
.section-head { margin-bottom: 56px; }
.se { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.section-head h2 { font-weight: 200; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.06; max-width: 860px; color: var(--strong); }
.section-head h2 .accent { color: var(--accent); }
.section-head > p:not(.se) { margin-top: 20px; max-width: 720px; font-size: 1.04rem; line-height: 1.7; color: var(--muted); }

.platforms, .research, .concepts, .verticals { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.platforms { grid-template-columns: repeat(3, 1fr); }
.research, .concepts { grid-template-columns: repeat(2, 1fr); }
.verticals { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .platforms { grid-template-columns: 1fr; } .verticals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .research, .concepts, .verticals { grid-template-columns: 1fr; } }

.pf-card, .rs-card { background: var(--card); padding: 40px 34px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: background 0.3s; }
.pf-card:hover, .rs-card:hover { background: linear-gradient(var(--card-hover), var(--card-hover)), var(--card); }
.pf-card::before, .rs-card::before { content: ""; position: absolute; top: 0; right: 0; width: 220px; height: 220px; background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 65%); pointer-events: none; }
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.num { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--accent); }
.status { display: inline-block; padding: 4px 9px; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid currentColor; }
.status.open { color: var(--accent-2); }
.status.early { color: var(--accent-2); border-style: dashed; }
.status.prep { color: var(--warm); border-style: dashed; }
.status.internal { color: var(--soft); border-style: dotted; }
.pf-card h3, .rs-card h3 { font-weight: 200; font-size: 2.2rem; letter-spacing: 0.02em; line-height: 1; color: var(--strong); }
.kicker { margin-top: 14px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; color: var(--accent-2); text-transform: uppercase; }
.pf-card .desc, .rs-card .desc { margin-top: 16px; font-size: 0.95rem; line-height: 1.7; color: var(--muted); }
.pf-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pf-card .desc { margin-bottom: 22px; }
.pf-actions { border-top: 1px dashed var(--hair-strong); }
.pf-go { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--accent); text-decoration: none; text-transform: uppercase; padding: 4px 0; }
.pf-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.pf-sign { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 7px 12px; border: 1px solid var(--hair-strong); }
.pf-sign:hover { border-color: var(--accent); color: var(--accent); }

.concept-card { background: var(--card); padding: 34px 28px; transition: background 0.3s; }
.concept-card:hover { background: linear-gradient(var(--card-hover), var(--card-hover)), var(--card); }
.concept-card .id { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase; }
.concept-card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.55rem; margin-top: 8px; color: var(--strong); }
.concept-card .slogan { margin-top: 8px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; color: var(--accent-2); text-transform: uppercase; }
.concept-card .desc { margin-top: 14px; font-size: 0.95rem; line-height: 1.7; color: var(--muted); }

.vt-card { background: var(--card); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: background 0.3s; min-height: 170px; }
a.vt-card:hover { background: linear-gradient(var(--card-hover), var(--card-hover)), var(--card); }
.vt-card.here { background: linear-gradient(var(--card-hover), var(--card-hover)), var(--card); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.vt-name { font-weight: 300; font-size: 1.6rem; color: var(--strong); }
.vt-desc { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.vt-url { margin-top: auto; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.contact { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 28px; border: 1px solid var(--hair-strong); background: var(--card); }
.contact p { max-width: 720px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.contact p a { color: var(--accent); text-underline-offset: 3px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-footer { position: relative; z-index: 6; border-top: 1px solid var(--hair); padding: 34px 0 40px; background: var(--bg); }
.site-footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 20px 32px; align-items: start; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.ft-brand { display: flex; flex-direction: column; gap: 10px; }
.ft-name { color: var(--text); letter-spacing: 0.26em; }
.ft-note { text-transform: none; letter-spacing: 0.02em; font-size: 0.72rem; line-height: 1.6; max-width: 380px; }
.ft-links, .ft-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ft-legal { justify-content: flex-end; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .ft-legal { justify-content: flex-start; }
}

/* ── small screens ────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .corner { width: 22px; height: 22px; }
  .hero { padding: 116px 0 56px; min-height: auto; }
  .tagline { letter-spacing: 0.3em; }
  .lead { font-size: 1rem; }
  section.body { padding: 88px 0; }
  .pf-card, .rs-card { padding: 30px 22px; }
  .contact { padding: 22px 20px; }
}
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .brand { gap: 8px; }
  .logo { width: 28px; height: 28px; }
  .wm-top { font-size: 0.92rem; }
  .menu > summary { padding: 8px 8px; gap: 6px; }
  .theme-switch button { padding: 8px 7px; letter-spacing: 0.1em; }
  .btn { padding: 14px 16px; letter-spacing: 0.18em; }
}

/* ── privacy / terms ──────────────────────────────────────────────────── */
.legal-top { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.legal-top .back { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.legal { position: relative; z-index: 5; padding: 24px 0 96px; }
.legal article { max-width: 760px; padding: 40px 36px; border: 1px solid var(--hair-strong); background: var(--card); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal .updated { margin-top: 12px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }
.legal h2 { margin-top: 34px; font-weight: 400; font-size: 1.25rem; color: var(--strong); }
.legal p, .legal li { margin-top: 12px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal code { font-family: var(--mono); font-size: 0.9em; color: var(--text); }
.legal .nav-foot { margin-top: 34px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; }
@media (max-width: 760px) { .legal article { padding: 28px 20px; } }

/* ── 404 page ─────────────────────────────────────────────────────────── */
.nf { min-height: 100vh; display: flex; align-items: center; padding: 140px 0 72px; }
.nf > .container { width: 100%; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.nf p { margin-top: 22px; max-width: 560px; color: var(--muted); line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .blink::after { animation: none; }
  #scene { transition: none; }
}
@media print {
  .stage, .corner, .hud, .topnav { display: none; }
  body { background: #fff; color: #000; }
}
