/* ==========================================================================
   digitalthreads.io · shared design system
   Loaded by every page in landing/ (deployed to public/site.css).
   Page-specific styles stay inline in each page and build on these tokens.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #070a10;
  --bg-raise: #0c111b;
  --panel: #101828;
  --line: rgba(148, 180, 220, .13);
  --line-strong: rgba(148, 180, 220, .3);
  --text: #eaf0f8;
  --muted: #94a3b8;
  --text-soft: #c4cfdd;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-ink: #062a26;
  --signal: #fbbf24;
  --signal-ink: #2a1a00;
  --signal-soft: rgba(251, 191, 36, .16);
  --grad: linear-gradient(92deg, #2dd4bf, #38bdf8);
  --radius: 16px;
  --max: 1160px;
  --header-bg: rgba(7, 10, 16, .76);
  --grid-line: rgba(148, 180, 220, .06);
  --dot: rgba(148, 180, 220, .2);
  --tag-bg: rgba(16, 24, 40, .5);
  --lvl-bg: #0b2530;
  --chip-text: #aebdd2;
  --chip-bg: rgba(148, 180, 220, .08);
  --chip-line: rgba(148, 180, 220, .12);
  --modal-bg1: #111a2b;
  --modal-bg2: #0c1220;
  --modal-line: rgba(148, 180, 220, .2);
  --dg-bg: rgba(7, 11, 18, .55);
  --dg-text: #8fa0b6;
  --dg-struct: #4b5c72;
  --dg-box-stroke: #5b7086;
  --dg-box-fill: #0f1725;
  --input-bg: rgba(7, 11, 18, .6);
  --err: #fca5a5;
  --label-stroke: rgba(7, 11, 18, .85);
  --map-dot: rgba(148, 180, 220, .3);
  --map-dot-dim: rgba(148, 180, 220, .15);
  --pin-hot: #7ff3e4;
  --card-shadow: 0 18px 44px rgba(3, 8, 16, .6);
  --glow-accent: rgba(45, 212, 191, .28);
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}
:root[data-resolved="light"] {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg-raise: #ffffff;
  --panel: #eef2f7;
  --line: rgba(15, 42, 80, .13);
  --line-strong: rgba(15, 42, 80, .3);
  --text: #0f1a2b;
  --muted: #55637a;
  --text-soft: #2e3d52;
  --accent: #0c8577;
  --accent-2: #0270ad;
  --signal: #b7791f;
  --signal-soft: rgba(183, 121, 31, .14);
  --header-bg: rgba(246, 248, 251, .8);
  --grid-line: rgba(15, 42, 80, .06);
  --dot: rgba(15, 42, 80, .2);
  --tag-bg: rgba(255, 255, 255, .7);
  --lvl-bg: #dcf0fb;
  --chip-text: #45566e;
  --chip-bg: rgba(30, 58, 95, .07);
  --chip-line: rgba(30, 58, 95, .14);
  --modal-bg1: #ffffff;
  --modal-bg2: #f2f6fb;
  --modal-line: rgba(15, 42, 80, .18);
  --dg-bg: rgba(240, 244, 249, .6);
  --dg-text: #5b6b80;
  --dg-struct: #8fa3b8;
  --dg-box-stroke: #7d90a6;
  --dg-box-fill: #ffffff;
  --input-bg: #ffffff;
  --err: #c02633;
  --label-stroke: rgba(255, 255, 255, .9);
  --map-dot: rgba(51, 75, 105, .35);
  --map-dot-dim: rgba(51, 75, 105, .16);
  --pin-hot: #0a6e63;
  --card-shadow: 0 18px 44px rgba(23, 42, 71, .12);
  --glow-accent: rgba(12, 133, 119, .22);
}
/* the dark gradient is too pale on paper, so gradient text uses the light accents */
:root[data-resolved="light"] h1 em,
:root[data-resolved="light"] .brand span em,
:root[data-resolved="light"] .grad-text {
  background-image: linear-gradient(92deg, #0c8577, #0270ad);
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(45, 212, 191, .3); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

/* ---------- blueprint surface: dotted grid used behind heroes and bands ---------- */
.blueprint {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
}

/* ---------- header ---------- */
header.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
header.site-head.is-scrolled { border-color: transparent; }
/* the thread: a progress line under the header that fills as you read */
.thread-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
  will-change: transform;
}
.thread-tip {
  position: absolute; bottom: -4px; left: calc(var(--p, 0) * 100%);
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft), 0 0 14px 2px rgba(251, 191, 36, .55);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
header.site-head.is-scrolled .thread-tip { opacity: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17.5px; letter-spacing: -.02em; font-family: var(--font-display); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--grad); display: grid; place-items: center; flex: none;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
  box-shadow: 0 4px 14px rgba(45, 212, 191, .25);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark svg { width: 18px; height: 18px; stroke: #06212e; }
.brand span em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links > a { position: relative; }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--grad); transition: right .25s ease;
}
.nav-links > a:not(.btn):hover::after { right: 0; }
.nav-links a:hover { color: var(--text); }
/* dropdowns */
.nav-drop { position: relative; }
.nav-drop > a { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.nav-drop > a .caret { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nav-drop:hover > a .caret, .nav-drop:focus-within > a .caret { transform: rotate(180deg); }
.nav-drop > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--grad); transition: right .25s ease; }
.nav-drop:hover > a::after, .nav-drop > a.active::after { right: 0; }
.nav-drop > a.active { color: var(--text); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%; margin-left: -160px; width: 320px;
  padding-top: 14px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nd-panel { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--card-shadow); }
.nd-label { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 4px 10px 8px; }
.nav-drop-menu a { display: block; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--text-soft); font-weight: 550; }
.nav-drop-menu a small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.nav-drop-menu a:hover { background: var(--chip-bg); color: var(--text); }
.nav-drop-menu a.active { color: var(--accent); }
.nav-drop-menu a.nd-all { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-top: 2px; }
.nav-drop > a[tabindex] { cursor: default; }
.nd-soon { display: block; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--muted); font-weight: 550; cursor: default; }
.nd-soon small { display: block; font-size: 12px; font-weight: 400; opacity: .75; margin-top: 1px; }
.nd-soon .soon { font-family: var(--font-mono); font-style: normal; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); border: 1px solid var(--signal-soft); background: var(--signal-soft); border-radius: 4px; padding: 1px 5px; margin-left: 7px; vertical-align: 2px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
:root[data-theme="light"] .theme-toggle .tt-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: block; }
:root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .tt-auto { display: block; }
#nav-toggle, .nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -.005em;
  background: var(--grad); color: var(--accent-ink);
  transition: transform .18s ease, box-shadow .25s ease, filter .18s ease;
  border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 20px -6px var(--glow-accent);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .5s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--glow-accent), 0 0 0 1px rgba(45, 212, 191, .2); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 8px 22px -8px var(--glow-accent); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; font-weight: 500; }
.btn-signal { background: var(--signal); color: var(--signal-ink); box-shadow: 0 6px 20px -6px rgba(251, 191, 36, .45); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(56, 189, 248, .14), transparent 62%),
    radial-gradient(700px 380px at 10% 110%, rgba(45, 212, 191, .11), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 85% 75% at 45% 20%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 45% 20%, black, transparent);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { background-position: 26px 26px; } }
.hero .wrap { position: relative; }
.hero .tag { margin-bottom: 18px; }
h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 700;
  max-width: 14.5em;
  text-wrap: balance;
}
h1 em, .grad-text { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede {
  margin: 24px 0 0; max-width: 640px;
  font-size: 18.5px; color: var(--muted); line-height: 1.6;
}
.hero p.lede a { color: var(--accent); border-bottom: 1px solid rgba(45, 212, 191, .35); }
.hero p.lede a:hover { border-bottom-color: var(--accent); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
/* pipeline chips: SENSE -> ESTIMATE -> CONTROL, drawn as a bus with stations */
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 40px; }
.hero-tags span {
  position: relative;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--text-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px; background: var(--tag-bg);
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero-tags span::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: var(--accent); opacity: .7;
}
.hero-tags span:hover { color: var(--accent); border-color: rgba(45, 212, 191, .5); transform: translateY(-2px); box-shadow: 0 8px 20px -10px var(--glow-accent); }
.hero-tags svg { width: 22px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .8; }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { margin-bottom: 52px; }
.sec-head h2 { max-width: 680px; }
.sec-head.wide h2 { max-width: 900px; }
h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.03em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h3 { letter-spacing: -.015em; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 17.5px; max-width: 640px; }
/* station tags: // LABEL ----- 01 */
.tag {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
  display: block; margin-bottom: 14px;
}
.sec-head .tag, .contact-cta .tag { display: flex; align-items: center; gap: 16px; }
.sec-head .tag::before, .contact-cta .tag::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .16);
}
.contact-cta .tag::before { display: none; }
.tag-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--line) 40%, transparent); min-width: 40px; }
.tag-num {
  font-size: 12px; flex: none; color: var(--signal);
  border: 1px solid var(--signal-soft); background: var(--signal-soft);
  border-radius: 6px; padding: 2px 7px; letter-spacing: .06em;
}
.sec-hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 12.5px; color: var(--accent); font-family: var(--font-mono); letter-spacing: .02em; }
.sec-hint svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reading rail (wide screens only) ---------- */
.rail {
  position: fixed; left: 28px; top: 50%;
  transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 0;
}
.rail::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px;
  background: var(--line-strong);
}
.rail a {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 6px 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.rail a i {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg); border: 1px solid var(--line-strong);
  font-style: normal; font-size: 9.5px; color: var(--muted);
  transition: border-color .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
}
.rail a b { font-weight: 500; opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.rail a:hover b, .rail:hover a b { opacity: 1; transform: none; }
.rail a.active i { border-color: var(--signal); color: var(--signal-ink); background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.rail a.rail-top { margin-bottom: 6px; }
.rail a.rail-top i svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rail a.rail-top:hover i { border-color: var(--accent); color: var(--accent); }
.rail a.active { color: var(--text); }
@media (min-width: 1600px) { .rail { display: flex; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cards (shared base; pages extend) ---------- */
.card {
  position: relative; overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left; color: inherit; font: inherit; width: 100%;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
/* blueprint corner marks: drawn on hover, like registration ticks on a drawing */
.card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: 4px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 12px 1.5px,
    linear-gradient(var(--accent), var(--accent)) top left / 1.5px 12px,
    linear-gradient(var(--accent), var(--accent)) top right / 12px 1.5px,
    linear-gradient(var(--accent), var(--accent)) top right / 1.5px 12px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 12px 1.5px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1.5px 12px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 12px 1.5px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1.5px 12px;
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.04); transition: opacity .3s ease, transform .3s ease;
  z-index: 1;
}
.card:hover::before, .card:focus-visible::before { opacity: .9; transform: none; }
.card:hover, .card:focus-visible {
  border-color: rgba(45, 212, 191, .4);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  outline: none;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .16), rgba(56, 189, 248, .08));
  border: 1px solid rgba(45, 212, 191, .28);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .25s ease;
}
.card:hover .icon { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.card .icon svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.015em; }
.card p { font-size: 14.5px; color: var(--muted); }
.chips, .card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span, .card .chips span {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--chip-text); background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  border-radius: 6px; padding: 3px 8px;
}

/* ---------- contact cta ---------- */
.contact-cta {
  position: relative; text-align: center; overflow: hidden;
  padding: 100px 0 108px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(640px 320px at 50% 100%, rgba(45, 212, 191, .12), transparent 70%),
    var(--bg-raise);
}
.contact-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent);
  opacity: .8;
}
.contact-cta .wrap { position: relative; }
.contact-cta .tag { justify-content: center; }
.contact-cta .tag .tag-rule { display: none; }
.contact-cta h2 { margin: 0 auto; max-width: 18em; font-size: clamp(32px, 4.4vw, 52px); }
.contact-cta p { color: var(--muted); margin: 18px auto 34px; max-width: 540px; font-size: 17px; }
.contact-cta .email { margin-top: 26px; font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.contact-cta .email a { color: var(--accent); }
.contact-cta .email a:hover { text-decoration: underline; }
/* the thread converging on the CTA */
.cta-thread { position: absolute; left: 50%; top: 0; width: 2px; height: 72px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--accent)); opacity: .7; }
.cta-thread::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }

/* ---------- footer ---------- */
footer.site-foot { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.foot-path { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--accent); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-path svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.foot-col b { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.foot-col a { display: block; font-size: 14.5px; color: var(--text-soft); padding: 5px 0; transition: color .2s ease, transform .2s ease; }
.foot-col a:hover { color: var(--accent); transform: translateX(3px); }
.foot-col a .soon { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); background: var(--signal-soft); border-radius: 4px; padding: 1px 5px; margin-left: 7px; vertical-align: 2px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-bottom a:hover { color: var(--text); }
.foot-bottom .mono { font-size: 11.5px; letter-spacing: .06em; }

/* ---------- modal close (shared by both modal systems) ---------- */
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(148, 180, 220, .08); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 0;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
  z-index: 2;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none !important; }
  .btn::after { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive: nav + type ---------- */
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 68px 0; }
  .hero { padding: 64px 0 60px; }
  .contact-cta { padding: 76px 0 84px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-raise); border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    box-shadow: var(--card-shadow);
  }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 10px; padding: 12px 20px; justify-content: center; }
  .nav-drop { width: 100%; }
  .nav-drop > a::after { display: none; }
  .nav-drop > a .caret { display: none; }
  .nav-drop-menu { position: static; margin: 0; width: 100%; padding: 0; opacity: 1; visibility: visible; transform: none; }
  .nd-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 0 4px 14px; border-left: 1px solid var(--line); margin-left: 2px; }
  .nd-label { padding: 2px 0 4px; }
  .nav-drop-menu a { padding: 9px 0; border-radius: 0; }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-burger {
    display: grid; place-items: center; width: 40px; height: 40px;
    cursor: pointer; border: 1px solid var(--line); border-radius: 10px;
  }
  .nav-burger svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; }
}
