/* NEXSPACE HUB website
   Surfaces alternate between deep-space dark sections and light sections tinted from Electric Blue, so the
   approved logo sits natively on light areas (header, footer). One soft radius scale, brand colours only.
   Boldness lives in two places: the live pixel-field hero and the vivid gradient closing band. */

:root {
  /* Brand colours (NEXSPACE Visual Identity Guidelines 2026) */
  --midnight: #030E2D;
  --navy: #011A59;
  --blue: #055AEE;
  --cyan: #16B3FE;
  --indigo: #5837FC;
  --violet: #9E36FC;

  /* Derived from the brand colours */
  --blue-hi: #2F78F5;
  --mist: #F3F7FF;   /* 5% Electric Blue on white */
  --sky: #E5EEFF;    /* 10% Electric Blue on white */
  --grad: linear-gradient(135deg, #055AEE 0%, #5837FC 100%);
  --grad-vivid: linear-gradient(120deg, #055AEE 0%, #5837FC 55%, #9E36FC 100%);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout and shape */
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --pad: clamp(56px, 8vw, 112px);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --r-sheet: clamp(28px, 4vw, 56px);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Surface themes: tokens change, components do not ---------- */

:root, .t-dark, .t-navy {
  color-scheme: dark;
  --bg: #030E2D;
  --panel: #071A4D;
  --panel-hi: #0B2465;
  --line: #16306F;
  --line-strong: #2B4A9C;
  --fg: #EEF3FF;
  --fg-2: #B8C5E8;
  --fg-3: #8D9DCB;
  --accent: #16B3FE;
  --accent-hi: #6FD0FF;
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --shadow: none;
  --danger: #FF8A9B;
  --ok: #5BE3A8;
  --grid: rgba(22, 179, 254, 0.08);
  --glow: 0 0 28px rgba(22, 179, 254, 0.35);
}
.t-navy { --bg: #041240; }

.t-light, .t-sky {
  color-scheme: light;
  --bg: var(--mist);
  --panel: #FFFFFF;
  --panel-hi: #F8FBFF;
  --line: #D9E4F8;
  --line-strong: #B7C9EC;
  --fg: #030E2D;
  --fg-2: #2B3B6B;
  --fg-3: #566590;
  --accent: #055AEE;
  --accent-hi: #0647BF;
  --ghost-bg: rgba(3, 14, 45, 0.03);
  --shadow: 0 1px 2px rgba(3, 14, 45, 0.05), 0 20px 40px -20px rgba(5, 90, 238, 0.30);
  --danger: #C0264A;
  --ok: #0B7F57;
}
.t-sky { --bg: var(--sky); }

.t-vivid {
  color-scheme: dark;
  --fg: #FFFFFF;
  --fg-2: rgba(255, 255, 255, 0.92);
  --fg-3: rgba(255, 255, 255, 0.8);
  --accent: #FFFFFF;
  --accent-hi: #FFFFFF;
  --line: rgba(255, 255, 255, 0.28);
  --line-strong: rgba(255, 255, 255, 0.5);
  --ghost-bg: rgba(255, 255, 255, 0.12);
}

.t-dark, .t-navy, .t-light, .t-sky { background: var(--bg); color: var(--fg); }
.t-vivid { background: var(--grad-vivid); color: var(--fg); }

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--mist); }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* Paints the phone status-bar area in the header colour */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: #FFFFFF;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hi); }

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

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue); color: #fff; font-weight: 600;
  padding: 0.6rem 1rem; border-radius: var(--r-sm); text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.stack { display: flex; flex-direction: column; gap: var(--gap, 1rem); }

/* A rounded sheet that rises over the section above it */
.sheet {
  position: relative;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  margin-top: calc(var(--r-sheet) * -1);
  padding-block: var(--pad);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #FFFFFF;
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; flex: none; align-items: center; border-radius: var(--r-sm); }
.brand img { display: block; height: 46px; width: auto; }
.brand .logo-mark { display: none; height: 38px; }
@media (max-width: 559px) { .brand img { height: 34px; } }
@media (max-width: 379px) {
  .brand .logo-full { display: none; }
  .brand .logo-mark { display: block; }
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: 0.6rem 0.85rem;
  color: var(--fg-2); font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 3px; background: var(--blue); border-radius: var(--r-pill);
}

.menu-btn {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.menu-btn:hover { border-color: var(--blue); }

@media (max-width: 859px) {
  .bar { gap: 0.5rem; }
  .bar .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: #FFFFFF; border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 24px 40px -24px rgba(3, 14, 45, 0.35);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); }
  .nav a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 2.5rem; bottom: 0.4rem; }
}

/* ---------- Buttons (soft pills) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.75rem 1.9rem;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r-pill);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}
.btn > span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(5, 90, 238, 0.7); }
.btn-primary:hover { background: linear-gradient(135deg, #2F78F5 0%, #6D4DFF 100%); color: #fff; box-shadow: 0 14px 30px -10px rgba(5, 90, 238, 0.75); transform: translateY(-1px); }
.btn-ghost { background: var(--ghost-bg); color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--fg); background: rgba(5, 90, 238, 0.08); border-color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0.55rem 1.3rem; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.t-vivid .btn-primary { background: #FFFFFF; color: #3D22D6; box-shadow: 0 14px 30px -12px rgba(3, 14, 45, 0.55); }
.t-vivid .btn-primary:hover { background: #FFFFFF; color: var(--blue); }
.t-vivid .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.t-vivid .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.2); border-color: #fff; }

/* ---------- Shared type and bits ---------- */

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--fg-2); max-width: 60ch; }
.muted { color: var(--fg-3); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }

.px { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--c, var(--cyan)); border-radius: 2px; }

.chip {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: var(--chip, var(--grad)); box-shadow: 0 12px 24px -12px rgba(5, 90, 238, 0.7);
}
.chip svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.sm { width: 40px; height: 40px; border-radius: 13px; }
.chip.sm svg { width: 20px; height: 20px; }

.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.4rem; color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 88px); align-items: start;
}
.split > * { min-width: 0; }
@media (min-width: 860px) { .split > .sticky { position: sticky; top: 112px; } }
@media (max-width: 859px) { .split { grid-template-columns: minmax(0, 1fr); } }

.sec-head { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
/* Short one-sentence intros: let them use the full width so they sit on one line when there is room */
.sec-head.one-line { max-width: none; }
.sec-head.one-line .lead { max-width: none; }

/* ---------- Hero: live pixel field ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: calc(clamp(48px, 6vw, 88px) + var(--r-sheet) * 0.4);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 95% at 72% 28%, #000 15%, transparent 72%);
  mask-image: radial-gradient(120% 95% at 72% 28%, #000 15%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; top: -10%; right: -6%; bottom: -10%; width: 66%; z-index: -3;
  background:
    radial-gradient(52% 50% at 55% 45%, rgba(5, 90, 238, 0.42), transparent 72%),
    radial-gradient(40% 42% at 78% 62%, rgba(88, 55, 252, 0.34), transparent 72%),
    radial-gradient(32% 32% at 34% 22%, rgba(22, 179, 254, 0.18), transparent 72%);
}
.pixfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-grid > * { min-width: 0; }
.descriptor { display: flex; align-items: center; gap: 0.6rem; color: var(--fg-2); font-weight: 500; font-size: 1rem; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.03;
  max-width: 13ch;
}
.hero .lead { max-width: 52ch; }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero::after { top: auto; right: -20%; bottom: -8%; width: 140%; height: 56%; }
}

/* Hub diagram: HTML nodes over an SVG of spokes, so labels stay readable at phone width */
.hub { position: relative; width: 100%; max-width: 560px; aspect-ratio: 520 / 480; margin-inline: auto; }
.hub > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub .ring { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; animation: ring-run 30s linear infinite; }
@keyframes ring-run { to { stroke-dashoffset: -90; } }
.hub .dot { animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.75; } }
.hub .spoke { stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke 0.15s; }
.hub .pk { fill: var(--cyan); }
.hub .pk.alt { fill: var(--violet); }
.hub .dot, .hub .pk { rx: 2.5px; }
.hub .node, .hub .core {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--fg); white-space: nowrap;
}
.hub .node {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 1.05rem 0.4rem 0.45rem; font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.hub .ni { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); }
.hub .ni svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hub .node:hover, .hub .node:focus-visible { border-color: var(--cyan); box-shadow: var(--glow); background: var(--panel-hi); color: var(--fg); }
.hub .core {
  padding: 0.85rem 1.25rem; text-align: center; font-weight: 700; line-height: 1.25; font-size: 1rem;
  background: var(--navy); border-color: var(--cyan); border-radius: var(--r-md); box-shadow: var(--glow);
  animation: core-pulse 4.5s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(22, 179, 254, 0.28); }
  50% { box-shadow: 0 0 40px rgba(22, 179, 254, 0.55); }
}
.hub:has(.n1:hover) .s1, .hub:has(.n1:focus-visible) .s1,
.hub:has(.n2:hover) .s2, .hub:has(.n2:focus-visible) .s2,
.hub:has(.n3:hover) .s3, .hub:has(.n3:focus-visible) .s3,
.hub:has(.n4:hover) .s4, .hub:has(.n4:focus-visible) .s4,
.hub:has(.n5:hover) .s5, .hub:has(.n5:focus-visible) .s5 { stroke: var(--cyan); }
@media (max-width: 560px) {
  .hub .node { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
  .hub .ni { display: none; }
  .hub .core { padding: 0.6rem 0.7rem; font-size: 0.9rem; }
}

/* ---------- Home sections ---------- */

.chain { position: relative; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.chain::before { content: ""; position: absolute; left: 19.5px; top: 20px; bottom: 20px; width: 1px; background: var(--line-strong); }
.chain li { position: relative; padding-left: 4rem; min-height: 40px; }
.chain .chip { position: absolute; left: 0; top: 0; box-shadow: 0 0 0 6px var(--bg), 0 12px 24px -12px rgba(5, 90, 238, 0.7); }
.chain h3 { margin-bottom: 0.25rem; padding-top: 0.4rem; }
.chain p { color: var(--fg-2); max-width: 54ch; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  padding: 0.7rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.tile:hover { background: var(--panel-hi); border-color: var(--line-strong); transform: translateY(-3px); }
.tile:focus-within { border-color: var(--accent); }
.tile .art { border-radius: var(--r-md); box-shadow: none; }
.tile-body { display: flex; flex: 1; flex-direction: column; gap: 0.75rem; padding: 0.35rem 0.8rem 0.8rem; }
.tile h3 { display: flex; align-items: center; gap: 0.7rem; }
@media (min-width: 1020px) { .tile h3 { min-height: 2.6em; } }
.tile p { color: var(--fg-2); font-size: 1rem; line-height: 1.55; }
.tile .more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.tile .more .ico { width: 16px; height: 16px; transition: transform 0.2s; }
.tile:hover .more .ico { transform: translateX(3px); }
.tile .more::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tile .more:focus-visible { outline-offset: -3px; }
@media (max-width: 1019px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.sector {
  display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.sector h3 { display: flex; align-items: center; gap: 0.85rem; font-size: 1.3rem; }
.sector > p { color: var(--fg-2); }
@media (max-width: 759px) { .sectors { grid-template-columns: minmax(0, 1fr); } }
.note { margin-top: clamp(28px, 4vw, 44px); max-width: none; color: var(--fg-3); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step { position: relative; display: flex; flex-direction: column; gap: 0.6rem; border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.step::before { content: ""; position: absolute; left: 0; top: -2px; width: 56px; height: 3px; background: var(--cyan); border-radius: var(--r-pill); }
.step .n {
  font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #16B3FE 0%, #2F78F5 55%, #9E36FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--fg-2); }
@media (max-width: 759px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Closing band: the one vivid moment */
.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 120% at 100% 100%, #000, transparent 70%);
  mask-image: radial-gradient(70% 120% at 100% 100%, #000, transparent 70%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -22rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 179, 254, 0.45), transparent);
}
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta .stack { max-width: 40rem; }
@media (max-width: 859px) { .cta .btn.cta-wa { display: none; } }
.aside .aside-wa { align-self: flex-start; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) calc(clamp(40px, 5vw, 72px) + var(--r-sheet) * 0.4);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(90% 120% at 85% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(90% 120% at 85% 0%, #000 10%, transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; top: 0; right: -6%; bottom: 0; width: 56%; z-index: -3;
  background:
    radial-gradient(60% 62% at 60% 38%, rgba(5, 90, 238, 0.32), transparent 72%),
    radial-gradient(40% 40% at 78% 58%, rgba(88, 55, 252, 0.22), transparent 72%);
}
.page-hero .stack { --gap: 1.25rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; max-width: 18ch; }

.fact { display: flex; align-items: center; gap: 0.6rem; color: var(--fg-2); font-weight: 500; }

.concept { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 1.75rem; }
.concept > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.35rem; }
.concept h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; }
.concept p { color: var(--fg-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 559px) { .concept { grid-template-columns: minmax(0, 1fr); } }

/* Services: illustration and detail, alternating sides */
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 80px); align-items: center;
  padding-block: clamp(28px, 4vw, 56px); scroll-margin-top: 96px;
}
.service > * { min-width: 0; }
.service:nth-of-type(even) .art { order: 2; }
.art {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  background: linear-gradient(150deg, #0B2465 0%, #030E2D 72%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(3, 14, 45, 0.55);
}
.art svg { display: block; width: 100%; height: 100%; max-width: none; }
.service-body { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.service-body h2, h2.with-chip { display: flex; align-items: center; gap: 0.9rem; }
.service-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h2.with-chip { align-items: flex-start; flex-direction: column; }
.services-sheet { padding-block: clamp(40px, 6vw, 80px); }
.sheet[id] { scroll-margin-top: 72px; }
.service-body > p { color: var(--fg-2); }
.service-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); width: 100%; margin-block: 0.5rem; }
.service-lists h3 { font-size: 1rem; color: var(--fg); margin-bottom: 0.8rem; }
@media (max-width: 859px) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .service:nth-of-type(even) .art { order: 0; }
}
@media (max-width: 559px) { .service-lists { grid-template-columns: minmax(0, 1fr); } }

.art .pulse { animation: pulse 3.2s ease-in-out infinite; }
.art .pulse.p2 { animation-delay: 0.5s; }
.art .pulse.p3 { animation-delay: 1s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.art .playhead { animation: scrub 9s ease-in-out infinite alternate; }
@keyframes scrub { from { transform: translateX(0); } to { transform: translateX(290px); } }

.measure { display: flex; flex-direction: column; gap: 1.25rem; }
.measure > div { display: grid; grid-template-columns: auto minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 0.5rem 1.25rem; border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.measure p { color: var(--fg-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 559px) { .measure > div { grid-template-columns: auto minmax(0, 1fr); } .measure p { grid-column: 1 / -1; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 859px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 559px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--fg-3); }
.input {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.input::placeholder { color: var(--fg-3); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-repeat: no-repeat; background-position: right 1rem center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23055AEE' stroke-width='2'/%3E%3C/svg%3E");
}
.err { color: var(--danger); font-size: 0.9rem; }
.hint { color: var(--fg-3); font-size: 0.92rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }

.notice { padding: 1rem 1.15rem; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--r-sm); line-height: 1.5; }
.notice strong { display: block; margin-bottom: 0.2rem; }
.notice.info { border-color: var(--blue-hi); }
.notice.error { border-color: var(--danger); }
.notice.ok { border-color: var(--ok); }
.notice.draft { border-color: var(--violet); }

.aside {
  background: linear-gradient(160deg, #0B2465 0%, #030E2D 85%); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: 0 30px 60px -30px rgba(3, 14, 45, 0.6);
}
.channels { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.channels li { display: flex; flex-direction: column; gap: 0.1rem; overflow-wrap: anywhere; }
.channels .k { font-size: 0.92rem; color: var(--fg-3); }
.channels .v { color: var(--fg); }
.channels .v a { color: var(--accent); }
.channels .tbc { color: var(--fg-3); font-style: italic; }
.channels li.social { flex-direction: row; flex-wrap: wrap; column-gap: 1.1rem; row-gap: 0; }
.channels li.social .k { flex: 0 0 100%; margin-bottom: 0.15rem; }
.channels li.social .v a { display: inline-block; padding-block: 0.25rem; }

/* ---------- Privacy / long text ---------- */

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.25rem; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.prose .tbc { color: var(--fg); background: rgba(158, 54, 252, 0.16); padding: 0.05em 0.3em; border-radius: 6px; }

.nf-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.nf-links a { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { padding-block: clamp(40px, 5vw, 56px) 1.25rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr) minmax(0, 1.1fr) minmax(0, 1.45fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.site-footer { font-size: 0.9375rem; line-height: 1.55; }
.foot-grid > * { min-width: 0; }
.foot-brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.foot-brand img { display: block; width: clamp(160px, 16vw, 210px); height: auto; }
.foot-col h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.85rem; }
.foot-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.foot-col a { color: var(--fg-2); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-col .channels { gap: 0.85rem; }
.foot-col .channels .k { font-size: 0.8125rem; }
.foot-col .channels .v a { color: var(--accent); text-decoration: none; }
.foot-col .channels .v a:hover { text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; margin-top: clamp(28px, 3.5vw, 40px); padding-top: 1.1rem; border-top: 1px solid var(--line-strong); color: var(--fg-3); font-size: 0.85rem; }
.legal a { color: var(--fg-3); }
.legal a:hover { color: var(--accent); }
@media (max-width: 959px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .foot-col ul:not(.channels) a { display: inline-block; padding-block: 0.3rem; }
}

/* ---------- Mobile action bar ---------- */

.dock { display: none; }
@media (max-width: 859px) {
  .dock {
    display: flex; gap: 0.75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 0.7rem var(--gutter-r) calc(0.7rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(255, 255, 255, 0.985); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: 0 -12px 30px -18px rgba(3, 14, 45, 0.35);
  }
  .dock .btn { flex: 1; min-width: 0; }
  .site-footer.has-dock { padding-bottom: calc(1.5rem + 84px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
