/* Copyright (c) 2026 Infortel Sp. z o.o. - Marek Zacharewicz */

@font-face { font-family: "Bricolage"; src: url("../assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("../assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter"; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "JB Mono"; src: url("../assets/fonts/jbmono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "JB Mono"; src: url("../assets/fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F; }

:root {
  --primary: #1A97C8;
  --accent: #1daae2;
  --dark: #0e5d80;
  --gold: #b8a670;
  --gold-hi: #d4af37;
  --navy: #0a0e27;
  --navy-2: #0e1230;
  --night: #060818;
  --ink: #111111;
  --paper: #fafaf7;
  --text: #e9eef6;
  --muted: #8f9ab3;
  --line: rgba(255,255,255,.09);
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --ok: #34d399;
  --warn: #f5b942;
  --err: #f26d6d;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --display: "Bricolage", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.is-light { background: var(--paper); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -.025em; line-height: 1.04; margin: 0; }
.h-hero { font-size: clamp(2.3rem, 5.2vw, 4.7rem); font-weight: 600; letter-spacing: -.035em; }
.h-sec { font-size: clamp(2rem, 4.6vw, 4rem); }
.h-card { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.3rem); color: var(--muted); max-width: 46rem; line-height: 1.55; }
body.is-light .lead { color: #4b5568; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.gold { color: var(--gold); }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, #7fd3f5 40%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  overflow: hidden; isolation: isolate; cursor: pointer; border: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 40px -10px rgba(26,151,200,.7); }
.btn-primary::after { background: var(--dark); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-ghost::after { background: #fff; }
.btn-ghost:hover { color: var(--ink); }
body.is-light .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
body.is-light .btn-ghost::after { background: var(--ink); }
body.is-light .btn-ghost:hover { color: #fff; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--night);
  display: grid; place-items: center;
}
.preloader svg { width: 92px; height: 92px; }
.preloader .pl-bar { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(0); }
.no-js .preloader, .reduced .preloader { display: none; }

/* ---------- cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%; display: none; }
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); mix-blend-mode: difference; }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(29,170,226,.55); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, border-color .3s; }
.cursor-ring.is-hover { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(29,170,226,.1); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor, .has-cursor .cursor-ring { display: block; }
}

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--primary), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .5s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { background: rgba(6,8,24,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
body.is-light .nav.is-scrolled { background: rgba(250,250,247,.8); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; }
.brand .logo-bar { fill: currentColor; }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: block; padding: .5rem .8rem; font-size: .92rem; color: var(--muted); transition: color .3s; }
body.is-light .nav-links a { color: #555e70; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
body.is-light .nav-links a:hover, body.is-light .nav-links a.is-active { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .7rem 1.2rem; font-size: .9rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--night);
  display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 36px); transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -.03em; padding: .2rem 0; color: var(--text); display: flex; gap: 1rem; align-items: baseline; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu a small { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu .mm-contact { margin-top: 2rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, #10204a 0%, var(--navy) 45%, var(--night) 100%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-glow.g1 { width: 520px; height: 520px; background: rgba(26,151,200,.28); top: -140px; right: -120px; }
.hero-glow.g2 { width: 380px; height: 380px; background: rgba(184,166,112,.16); bottom: -120px; left: -80px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin: 1.4rem 0 1.5rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.pillars { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.8rem; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: #cdd6e6; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }

.term {
  position: relative; border-radius: 18px; background: rgba(8,12,32,.82); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(29,170,226,.08), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; transform-style: preserve-3d;
}
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3150; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: .6rem; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.term pre { margin: 0; padding: 1.2rem 1.3rem 1.4rem; font-family: var(--mono); font-size: clamp(.74rem, .9vw, .86rem); line-height: 1.75; color: #c9d4e6; min-height: 21.5em; white-space: pre-wrap; word-break: break-word; }
.term .c-key { color: #7fd3f5; } .term .c-str { color: #e5d29a; } .term .c-com { color: #5c6886; } .term .c-ok { color: var(--ok); } .term .c-kw { color: #c792ea; } .term .c-num { color: #f78c6c; }
.caret { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.float-chip { position: absolute; z-index: 3; padding: .55rem .85rem; border-radius: 12px; background: rgba(14,18,48,.9); border: 1px solid rgba(255,255,255,.12); font-family: var(--mono); font-size: .75rem; color: #dbe5f5; box-shadow: 0 20px 40px -15px rgba(0,0,0,.7); display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.float-chip b { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .float-chip { display: none; } }
.fc1 { top: -18px; right: 8%; } .fc2 { bottom: 18%; left: -36px; } .fc3 { bottom: -18px; right: 14%; }
.hero-visual { position: relative; perspective: 1200px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.scroll-hint i { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .fc2 { left: -6px; } .fc1 { right: 4px; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding: 1.3rem 0; overflow: hidden; background: var(--night); }
.marquee + .marquee { border-top: 0; }
.mq-track { display: flex; width: max-content; gap: 3rem; animation: mq 48s linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.9rem); font-weight: 500; color: #b4bfd3; white-space: nowrap; letter-spacing: -.02em; }
.mq-item img { width: 26px; height: 26px; filter: invert(1) brightness(.85); opacity: .9; }
.mq-item::after { content: "✦"; color: var(--gold); font-size: .7em; margin-left: 2.2rem; }
.marquee.rev .mq-item { color: transparent; -webkit-text-stroke: 1px rgba(180,191,211,.55); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-head h2 { margin-top: 1rem; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.light { color: var(--ink); }
.light .eyebrow { color: var(--dark); }

/* ---------- pillars bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  padding: clamp(1.5rem, 2.6vw, 2.4rem); overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease);
  --mx: 50%; --my: 50%;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx) var(--my), rgba(29,170,226,.13), transparent 40%); opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(29,170,226,.35); }
.pcard { grid-column: span 4; display: flex; flex-direction: column; min-height: 440px; }
.pcard .num { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.pcard .ic { width: 64px; height: 64px; margin: 1.6rem 0 auto; }
.pcard h3 { margin: 2rem 0 .8rem; }
.pcard p { color: var(--muted); margin: 0 0 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-family: var(--mono); font-size: .7rem; padding: .3rem .6rem; border-radius: 8px; background: var(--surface-2); color: #b9c4d8; border: 1px solid var(--line); }
.pcard .more { margin-top: 1.4rem; display: inline-flex; gap: .5rem; align-items: center; color: var(--accent); font-weight: 600; font-size: .92rem; }
.pcard .more span { transition: transform .35s var(--ease); }
.pcard:hover .more span { transform: translateX(5px); }
@media (max-width: 980px) { .pcard { grid-column: span 12; min-height: 0; } .pcard .ic { margin-bottom: 0; } }

/* ---------- flagship case ---------- */
.flag { background: linear-gradient(180deg, var(--night) 0%, #081030 50%, var(--night) 100%); }
.case-label { display: inline-flex; gap: .5rem; align-items: center; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); padding: .35rem .7rem; border: 1px solid rgba(184,166,112,.35); border-radius: 999px; }
.flag-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.flag-sticky { position: sticky; top: 110px; }
.flag-sticky h2 { margin: 1.2rem 0 1.2rem; }
.flag-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 2rem; }
.stat { padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.stat > span { font-size: .82rem; color: var(--muted); line-height: 1.4; display: block; margin-top: .3rem; }
.diagram { border-radius: var(--radius); background: rgba(255,255,255,.02); border: 1px solid var(--line); padding: clamp(.8rem, 2vw, 1.6rem); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.dg-node rect { fill: #0d1434; stroke: rgba(29,170,226,.45); stroke-width: 1.2; }
.dg-node.core rect { fill: #0f2149; stroke: var(--accent); stroke-width: 1.6; }
.dg-node.src rect { fill: #1a1a2c; stroke: var(--gold); }
.dg-node text { fill: #e6edf8; font-family: var(--sans); font-size: 21px; font-weight: 600; }
.dg-node text.sub { fill: #8f9ab3; font-size: 15px; font-weight: 500; font-family: var(--mono); }
.dg-line { fill: none; stroke: rgba(29,170,226,.5); stroke-width: 1.6; }
.dg-flow { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 4 14; stroke-linecap: round; animation: flow 1.2s linear infinite; opacity: 0; }
.diagram.is-live .dg-flow { opacity: .9; transition: opacity .8s; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.diagram .dg-mobile { display: none; }
.modules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.mod { padding: 1.3rem 1.3rem 1.4rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, background-color .4s, transform .5s var(--ease); }
.mod.is-on { border-color: rgba(29,170,226,.5); background: rgba(29,170,226,.06); }
.mod h4 { font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: .45rem; display: flex; align-items: center; gap: .55rem; }
.mod h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
.mod p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.mod.wide { grid-column: span 2; }
.note { font-size: .82rem; color: var(--muted); margin-top: 1.2rem; display: flex; gap: .6rem; }
.note::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-family: var(--mono); font-size: .68rem; margin-top: .1rem; }
@media (max-width: 980px) {
  .flag-grid { grid-template-columns: 1fr; }
  .flag-sticky { position: static; }
}
@media (max-width: 640px) {
  .dg-desktop { display: none; }
  .diagram .dg-mobile { display: flex; }
  .modules { grid-template-columns: 1fr; }
  .mod.wide { grid-column: auto; }
}
/* mobile vertical flow */
.vflow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.vnode { position: relative; padding: .9rem 1rem; border-radius: 14px; background: #0d1434; border: 1px solid rgba(29,170,226,.45); text-align: center; }
.vnode b { display: block; font-size: 1rem; }
.vnode span { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.vnode.src { border-color: var(--gold); background: #1a1a2c; }
.vnode.core { border-color: var(--accent); background: #0f2149; }
.vlink { height: 34px; width: 2px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 12px); background-size: 2px 12px; animation: vflow 0.8s linear infinite; }
@keyframes vflow { to { background-position: 0 12px; } }
.vmods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vmods span { padding: .6rem .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .78rem; text-align: center; }

/* ---------- product cases ---------- */
.cases { display: grid; gap: clamp(60px, 9vw, 120px); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.case.flip .case-vis { order: -1; }
.case h3 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin: 1rem 0 1rem; }
.case p { color: var(--muted); }
.case ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .75rem; }
.case li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; color: #cbd4e4; font-size: .96rem; }
.case li::before { content: ""; width: 14px; height: 14px; margin-top: .3rem; border-radius: 4px; border: 1.5px solid var(--accent); background: linear-gradient(135deg, rgba(29,170,226,.35), transparent); }
.case .tags { margin-top: 1.6rem; }
.case-link { display: inline-flex; margin-top: 1.6rem; gap: .5rem; align-items: center; color: var(--accent); font-weight: 600; }
.case-vis { position: relative; }
.vis-card { border-radius: var(--radius); background: linear-gradient(160deg, #0f1638, #090d24); border: 1px solid var(--line); padding: clamp(1rem, 2.4vw, 1.8rem); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); overflow: hidden; }
.vis-cap { font-family: var(--mono); font-size: .68rem; color: #5f6a88; letter-spacing: .1em; text-transform: uppercase; margin-top: .9rem; text-align: right; }
@media (max-width: 980px) { .case { grid-template-columns: 1fr; } .case.flip .case-vis { order: 0; } }

/* nis2 mock */
.n2-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.n2-top b { font-family: var(--display); font-size: 1.05rem; }
.n2-top span { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.n2-body { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 1.2rem; align-items: center; }
.gauge { position: relative; width: 170px; }
.gauge svg { width: 100%; }
.gauge .g-val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding-top: 18px; }
.gauge .g-val b { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.gauge .g-val small { display: block; font-family: var(--mono); font-size: .62rem; color: var(--muted); letter-spacing: .1em; margin-top: .3rem; }
.srcs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.srcs span { font-family: var(--mono); font-size: .68rem; padding: .28rem .55rem; border-radius: 7px; background: rgba(29,170,226,.1); color: #9fdcf5; border: 1px solid rgba(29,170,226,.25); }
.logs { font-family: var(--mono); font-size: .7rem; line-height: 1.9; color: #aab5ca; height: 7.6em; overflow: hidden; position: relative; mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent); }
.logs .lt { animation: logs 14s linear infinite; }
@keyframes logs { to { transform: translateY(-50%); } }
.lv-ok { color: var(--ok); } .lv-w { color: var(--warn); } .lv-e { color: var(--err); }
.privacy { margin-top: 1rem; display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: rgba(184,166,112,.08); border: 1px solid rgba(184,166,112,.25); font-size: .8rem; color: #e1d6b3; }
.privacy svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 520px) { .n2-body { grid-template-columns: 1fr; justify-items: center; } .n2-right { width: 100%; } }

/* map mock */
.map-svg { width: 100%; height: auto; border-radius: 14px; }
.map-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .9rem; font-size: .75rem; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.print-sheet { position: absolute; right: -14px; bottom: -26px; width: 42%; background: #f7f6f1; color: #222; border-radius: 10px; padding: .7rem; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transform: rotate(4deg); font-size: .62rem; }
.print-sheet b { display: block; font-size: .72rem; margin-bottom: .35rem; }
.print-sheet .ps-row { height: 6px; border-radius: 3px; background: #dcdad2; margin-bottom: 4px; }
.print-sheet .ps-map { height: 54px; border-radius: 5px; background: linear-gradient(135deg, #cfe3c4, #b9d4ad); margin-bottom: 6px; position: relative; overflow: hidden; }
.print-sheet .ps-map::after { content: ""; position: absolute; left: 20%; top: 30%; width: 30%; height: 22%; background: #1A97C8; border-radius: 2px; }
@media (max-width: 520px) { .print-sheet { display: none; } }

/* api mock */
.code { font-family: var(--mono); font-size: clamp(.72rem, .9vw, .82rem); line-height: 1.75; color: #c9d4e6; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; overflow-x: auto; margin: 0; }
.code .k { color: #7fd3f5; } .code .s { color: #e5d29a; } .code .c { color: #5c6886; } .code .kw { color: #c792ea; }
.bench { margin-top: 1.2rem; display: grid; gap: .7rem; }
.bench-row { display: grid; grid-template-columns: 9.5rem minmax(0,1fr) 4.2rem; gap: .8rem; align-items: center; font-size: .8rem; color: #c3cde0; }
.bench-bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bench-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dark), var(--accent)); transform-origin: left; }
.bench-bar.them i { background: linear-gradient(90deg, #4a5372, #7a84a3); }
.bench-row b { font-family: var(--mono); text-align: right; font-weight: 500; }
.bench-cap { font-size: .76rem; color: var(--muted); line-height: 1.5; margin-top: .4rem; }
@media (max-width: 520px) { .bench-row { grid-template-columns: 1fr 3.6rem; } .bench-row .bl { grid-column: 1 / -1; } }

/* ---------- AI ---------- */
.ai { overflow: hidden; background: radial-gradient(80% 60% at 50% 0%, #0d1d46 0%, var(--night) 70%); }
.ai-orb { position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; left: 50%; top: 10%; transform: translateX(-50%); border-radius: 50%; background: conic-gradient(from 0deg, rgba(26,151,200,.0), rgba(26,151,200,.22), rgba(184,166,112,.18), rgba(26,151,200,0)); filter: blur(70px); animation: spin 22s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; position: relative; }
.ai-card h3 { margin: 1rem 0 .7rem; }
.ai-card p { color: var(--muted); margin: 0 0 1.2rem; }
.ai-kv { display: grid; gap: .55rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ai-kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.ai-kv li span:first-child { color: var(--muted); }
.ai-kv li span:last-child { text-align: right; color: #e2e9f5; }
.badge { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; }
.badge.cloud { background: rgba(29,170,226,.12); color: #8fd8f7; }
.badge.local { background: rgba(184,166,112,.14); color: #e3d4a2; }
.pipeline { margin-top: 18px; grid-column: 1 / -1; }
.pipe-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 1.4rem; }
.pipe-line { position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: var(--line); }
.pipe-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; transform: scaleX(0); }
.pipe-token { position: absolute; top: 20px; left: 12.5%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(29,170,226,.3), 0 0 24px var(--accent); opacity: 0; }
.pstep { position: relative; text-align: center; padding: 0 .4rem; }
.pstep .pdot { width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #0d1434; border: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: .85rem; color: var(--muted); transition: all .4s var(--ease); position: relative; z-index: 1; }
.pstep.is-on .pdot { background: var(--primary); border-color: var(--accent); color: #fff; box-shadow: 0 0 30px rgba(29,170,226,.6); }
.pstep b { display: block; font-size: .95rem; margin-bottom: .3rem; }
.pstep span { font-size: .8rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 860px) {
  .ai-grid { grid-template-columns: 1fr; }
  .pipe-steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .pipe-line, .pipe-token { display: none; }
  .pstep { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; text-align: left; align-items: center; }
  .pstep .pdot { margin: 0; grid-row: span 2; }
  .pstep b, .pstep span { grid-column: 2; }
  .pstep b { align-self: end; margin: 0; }
  .pstep span { align-self: start; }
}

/* ---------- networks (light) ---------- */
.nets { background: var(--paper); color: var(--ink); }
.nets .lead { color: #4b5568; }
.net-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.topo { border-radius: var(--radius); background: #fff; border: 1px solid #e6e4dc; padding: clamp(.6rem, 2vw, 1.4rem); box-shadow: 0 40px 80px -50px rgba(14,93,128,.45); }
.topo svg { width: 100%; height: auto; overflow: visible; }
.tp-line { fill: none; stroke: #c9d6df; stroke-width: 2; }
.tp-node rect { fill: #fff; stroke: #0e5d80; stroke-width: 1.5; }
.tp-node.core rect { fill: #0e5d80; }
.tp-node.core text { fill: #fff; }
.tp-node text { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: #142233; }
.tp-node text.sub { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: #6b7889; }
.tp-node.core text.sub { fill: #a9d8ec; }
.tp-pkt { fill: var(--primary); }
.tp-pkt.g { fill: var(--gold-hi); }
.tp-wave { fill: none; stroke: var(--gold-hi); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 0% 50%; animation: wave 2.4s ease-out infinite; }
.tp-wave.w2 { animation-delay: .8s; } .tp-wave.w3 { animation-delay: 1.6s; }
@keyframes wave { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.net-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.net-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid #e3e1d8; }
.net-list li:last-child { border-bottom: 1px solid #e3e1d8; }
.net-list .ni { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef6fa; color: var(--dark); }
.net-list .ni svg { width: 22px; height: 22px; }
.net-list b { display: block; font-size: 1.02rem; margin-bottom: .15rem; }
.net-list span { color: #566174; font-size: .92rem; }
.measure { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.mcard { padding: 1.4rem; border-radius: 18px; background: #fff; border: 1px solid #e6e4dc; }
.mcard b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1; color: var(--dark); }
.mcard b small { font-size: .45em; letter-spacing: 0; color: #6b7889; margin-left: .2rem; }
.mcard > span { display: block; margin-top: .6rem; font-size: .86rem; color: #566174; line-height: 1.45; }
@media (max-width: 980px) { .net-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .measure { grid-template-columns: 1fr; } }

/* ---------- PBX ---------- */
.pbx { background: linear-gradient(180deg, #0b0f26, var(--night)); overflow: hidden; }
.pbx-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pbx-dev { position: relative; border-radius: 28px; padding: clamp(1.2rem, 3vw, 2rem); background: linear-gradient(160deg, #161b38, #0a0d22); border: 1px solid rgba(184,166,112,.25); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.scope { position: relative; border-radius: 14px; background: #04130f; border: 1px solid rgba(52,211,153,.25); overflow: hidden; height: 150px; }
.scope canvas { width: 100%; height: 100%; }
.scope::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(52,211,153,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(52,211,153,.09) 1px, transparent 1px); background-size: 25px 25px; pointer-events: none; }
.lcd { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: #0d1a14; border: 1px solid rgba(52,211,153,.2); font-family: var(--mono); color: #7ff0bd; font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .12em; }
.lcd small { font-size: .65rem; letter-spacing: .1em; color: #3f8f6b; }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 1rem; }
.key { aspect-ratio: 2 / 1.15; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #232a4d, #171c38); border: 1px solid rgba(255,255,255,.08); font-family: var(--display); font-size: 1.25rem; color: #d9e1f0; box-shadow: 0 4px 0 #0b0e22; transition: transform .12s, box-shadow .12s, background .2s, color .2s; user-select: none; }
.key.is-press { transform: translateY(3px); box-shadow: 0 1px 0 #0b0e22; background: linear-gradient(180deg, #c9b57a, #a8955d); color: #1a1508; }
.pbx-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.pbx-list li { padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pbx-list b { display: block; margin-bottom: .2rem; }
.pbx-list span { color: var(--muted); font-size: .93rem; }
.person-line { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.person-line .who { font-size: .92rem; color: var(--muted); }
.person-line .who b { color: var(--text); display: block; font-size: 1rem; }
@media (max-width: 980px) { .pbx-grid { grid-template-columns: 1fr; } .pbx-dev { max-width: 480px; } }

/* ---------- about (light) ---------- */
.about { background: var(--paper); color: var(--ink); overflow: hidden; }
.about .lead { color: #4b5568; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.person { position: relative; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); background: #fff; border: 1px solid #e6e4dc; overflow: hidden; }
.person .p-ic { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); margin-bottom: 1.4rem; }
.person .p-ic svg { width: 40px; height: 40px; }
.person h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.person .role { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dark); margin: .5rem 0 1rem; display: block; }
.person p { color: #4b5568; margin: 0; }
.polonez { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: .9rem 1rem; border-radius: 14px; background: #faf6ea; border: 1px solid #ece2c2; font-size: .88rem; color: #6d5d2c; }
.blinker { display: flex; gap: 6px; flex: none; }
.blinker svg { width: 22px; height: 22px; fill: #f0a020; filter: drop-shadow(0 0 6px rgba(240,160,32,.8)); animation: tick .66s steps(1) infinite; }
@keyframes tick { 50% { opacity: .12; filter: none; } }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

.tl-pin { position: relative; margin-top: clamp(3rem, 7vw, 6rem); }
.tl-track { display: flex; gap: 18px; width: max-content; padding-right: var(--gutter); }
.tl-card { width: min(380px, 78vw); flex: none; border-radius: var(--radius); padding: 1.8rem; background: #fff; border: 1px solid #e6e4dc; position: relative; min-height: 300px; display: flex; flex-direction: column; }
.tl-card .tl-n { font-family: var(--display); font-size: 4rem; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px #c9c4b2; }
.tl-card .tl-when { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dark); margin: 1.2rem 0 .5rem; }
.tl-card h4 { font-size: 1.45rem; margin-bottom: .6rem; }
.tl-card p { margin: 0; color: #4b5568; font-size: .93rem; }
.tl-card.now { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl-card.now p { color: #a9b3c9; }
.tl-card.now .tl-when { color: var(--accent); }
.tl-card.now .tl-n { -webkit-text-stroke-color: rgba(255,255,255,.35); }
.tl-scroller { overflow: visible; }
.tl-bar { height: 2px; background: #e3e1d8; margin-top: 2rem; position: relative; max-width: var(--maxw); }
.tl-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary), var(--gold)); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .tl-track { flex-direction: column; width: auto; padding-right: 0; }
  .tl-card { width: auto; min-height: 0; }
  .tl-bar { display: none; }
}

/* ---------- contact ---------- */
.contact { background: radial-gradient(90% 70% at 50% 100%, #0f2149 0%, var(--night) 70%); overflow: hidden; }
.ct-title { font-size: clamp(2.6rem, 8vw, 7rem); letter-spacing: -.045em; font-weight: 600; line-height: .98; }
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ct-card { display: flex; flex-direction: column; gap: .3rem; }
.ct-card.ct-books .ct-for { color: var(--gold-hi); }
.ct-card .ct-for { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ct-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: .6rem 0 .3rem; }
.ct-card .ct-scope { color: var(--muted); font-size: .93rem; margin-bottom: 1.2rem; }
.ct-phone { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .6rem; transition: color .3s; width: fit-content; }
.ct-phone:hover { color: var(--accent); }
.ct-mail { color: #c5cfe0; width: fit-content; position: relative; }
.ct-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(.0); transform-origin: left; transition: transform .4s var(--ease); }
.ct-mail:hover::after { transform: scaleX(1); }
.ct-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.ct-meta div { padding: 1.3rem 1.4rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; color: #c5cfe0; }
.ct-meta small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
@media (max-width: 860px) { .ct-grid, .ct-meta { grid-template-columns: 1fr; } }

.nav-links li:has(.nav-mail) { margin-left: .4rem; padding-left: .4rem; border-left: 1px solid var(--line); }

/* ---------- footer ---------- */
.footer { position: relative; padding: clamp(5rem, 11vw, 9rem) 0 2rem; border-top: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 120%, #0f2149 0%, var(--night) 70%); overflow: hidden; isolation: isolate; }
.footer .wrap { position: relative; z-index: 1; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 23.5vw; letter-spacing: -.065em; line-height: .78; color: rgba(255,255,255,.028); -webkit-text-stroke: 1px rgba(255,255,255,.07); white-space: nowrap; user-select: none; display: flex; justify-content: center; position: absolute; inset: 0; align-items: center; z-index: 0; pointer-events: none; }
.wordmark span { display: inline-block; }
.wordmark .wm-dot { color: var(--primary); opacity: .25; -webkit-text-stroke: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem; font-size: .95rem; color: #c5cfe0; line-height: 1.8; }
.foot-cols small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.foot-cols .foot-name { color: var(--text); font-weight: 600; }
.foot-cols a:hover { color: var(--accent); }
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.foot-row a:hover { color: var(--text); }
@media (max-width: 640px) {
  .foot-cols { grid-template-columns: 1fr; gap: 2rem; }
  .wordmark { font-size: 34vw; inset: auto; top: 48%; left: 74%; transform: translate(-50%, -50%) rotate(-90deg); }
}

/* ---------- reveal defaults ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.reduced [data-reveal], .no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.dg-node.mod-n rect { transition: fill .4s, stroke .4s; }
.dg-node.mod-n.is-on rect { fill: #13285a; stroke: var(--gold-hi); stroke-width: 1.8; }

/* topology: stacked variant for phones */
.topo-m { display: none; flex-direction: column; gap: 0; }
.topo-m .vnode { background: #fff; border-color: #0e5d80; color: #142233; }
.topo-m .vnode span { color: #6b7889; }
.topo-m .vnode.core { background: #0e5d80; color: #fff; }
.topo-m .vnode.core span { color: #a9d8ec; }
.topo-m .vlink { background: repeating-linear-gradient(180deg, var(--primary) 0 5px, transparent 5px 12px); background-size: 2px 12px; }
.topo-m .vmods span { background: #f4f8fa; border-color: #d5e3ea; color: #142233; font-weight: 600; }
.topo-m .vmods span:last-child { grid-column: span 2; }
.topo-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; align-items: center; }
.tchip { font-size: .8rem; font-weight: 600; text-align: center; padding: .55rem .3rem; border-radius: 10px; border: 1px dashed #0e5d80; color: #142233; line-height: 1.25; }
.tchip small { font-family: var(--mono); font-weight: 500; font-size: .66rem; color: #6b7889; }
.tchip.g { border-color: var(--gold-hi); }
@media (max-width: 640px) {
  .topo-m { display: flex; }
  #topo { display: none; }
}
