/* Powered by Polaris: the marketing site, on the platform's brand.
   Tokens, type and the control room's pieces (the sky, the frame, the
   rule) follow dashboard/app/globals.css in the ops repo, Oct 2026:
   graphite canvas, one ice-cyan accent, Syne for headings, Manrope for
   everything read, nothing under 12px. Everything that moves stops under
   prefers-reduced-motion. */

@font-face {
  font-family: "Syne";
  src: url("/fonts/syne-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/syne-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #0c0e12;
  --canvas: #0f1217;
  --lift: #151920;
  --lift-2: #1a1f28;
  --accent: #7fd8f3;
  --accent-dim: rgba(127, 216, 243, 0.7);
  --accent-soft: rgba(127, 216, 243, 0.12);
  --ink: #e7ebf1;
  --ink-dim: #b6becc;
  --ink-muted: #808a9c;
  --ink-faint: #5b6577;
  --rule: #222934;
  --rule-strong: #2c3543;
  --hud-rgb: 146 168 198;
  --hud: rgb(var(--hud-rgb));
  --ok: #4fd39a;
  --bad: #ff7a7a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-dim); outline-offset: 3px; }
h1, h2, h3, .wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }
em { font-style: normal; }
strong { font-weight: 600; color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---- The sky behind the whole page: the north star's glow, a faint display
   grid and two layers of stars drifting (moved by transform, so nothing
   repaints). The horizon's world sits over it and fades back into it. */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky::before {
  content: ""; position: absolute; left: 50%; top: -300px; width: 1200px; height: 680px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(127, 216, 243, 0.14), rgba(127, 216, 243, 0.04) 50%, transparent 74%);
  animation: sky-glow 11s ease-in-out infinite;
}
.sky-grid {
  position: absolute; inset: 0;
  background: linear-gradient(rgb(var(--hud-rgb) / 0.045) 1px, transparent 1px) 0 0 / 56px 56px,
              linear-gradient(90deg, rgb(var(--hud-rgb) / 0.045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 30%, transparent 90%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 30%, transparent 90%);
}
.sky-stars {
  position: absolute; inset: -360px 0 0 -360px; opacity: 0.9;
  background-image:
    radial-gradient(1.4px 1.4px at 24px 38px, rgba(231, 235, 241, 0.8), transparent 70%),
    radial-gradient(1.2px 1.2px at 138px 92px, rgba(231, 235, 241, 0.55), transparent 70%),
    radial-gradient(2px 2px at 260px 21px, rgba(127, 216, 243, 0.85), transparent 70%),
    radial-gradient(1.2px 1.2px at 312px 188px, rgba(231, 235, 241, 0.6), transparent 70%),
    radial-gradient(1.2px 1.2px at 76px 244px, rgba(231, 235, 241, 0.5), transparent 70%),
    radial-gradient(1.6px 1.6px at 201px 301px, rgba(231, 235, 241, 0.7), transparent 70%),
    radial-gradient(1px 1px at 330px 330px, rgba(231, 235, 241, 0.5), transparent 70%);
  background-size: 360px 360px; animation: sky-drift 160s linear infinite; will-change: transform;
}
.sky-stars.far { inset: -560px 0 0 -560px; opacity: 0.45; background-size: 560px 560px; animation: sky-drift-far 260s linear infinite; }
@keyframes sky-drift { to { transform: translate(360px, 360px); } }
@keyframes sky-drift-far { to { transform: translate(560px, 560px); } }
@keyframes sky-glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

main, .nav, footer { position: relative; z-index: 1; }

/* ---- The mark: a four-point star, a thin orbit and one satellite. */
.mark { display: block; width: 32px; height: 32px; }
.mark-orbit { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1; }
.mark-star { fill: var(--accent); }
.mark-core { fill: var(--canvas); }
.mark-sat { fill: var(--ink); transform-box: view-box; transform-origin: 16px 16px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.lockup .mark { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(127, 216, 243, 0.55)); }
.wordmark { font-size: 21px; line-height: 1; letter-spacing: -0.01em; }

/* ---- Navigation. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(15, 18, 23, 0.82); border-color: var(--rule); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.links a:not(.btn) { color: var(--ink-dim); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .links a:not(.btn) { display: none; } }

/* ---- Buttons and links. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14.5px/1 var(--font-body); padding: 14px 22px; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #0b1a20; }
.btn-primary:hover { background: #9be2f7; }
.btn-ghost { color: var(--ink); border-color: var(--rule-strong); background: transparent; }
.btn-ghost:hover { border-color: rgb(var(--hud-rgb) / 0.7); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.textlink { display: inline-block; color: var(--accent); font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* ---- Hero: the lockup over a horizon. */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 110px 0 34vh; }
.hero-inner { position: relative; z-index: 2; padding: 0 20px; width: 100%; }
.lockup-hero { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.2vw, 44px); text-align: left; }
.lockup-hero .mark { width: clamp(68px, 9.5vw, 118px); height: auto; flex: 0 0 auto; filter: drop-shadow(0 0 18px rgba(127, 216, 243, 0.5)); }
.lock-div { width: 1px; align-self: stretch; background: linear-gradient(to bottom, transparent 4%, rgba(127, 216, 243, 0.85) 50%, transparent 96%); }
.lock-text { display: flex; flex-direction: column; justify-content: center; }
.lock-text .powered { font: 600 clamp(13px, 1.3vw, 16px)/1 var(--font-body); color: var(--ink-muted); margin-bottom: clamp(8px, 1vw, 14px); }
.lock-text h1 { font-size: clamp(54px, 9.4vw, 112px); font-weight: 700; letter-spacing: -0.015em; line-height: 1; margin-left: -0.05em; }
.hero .lead { margin: 36px auto 0; max-width: 600px; }
.hero .lead strong { font-weight: 600; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
/* The horizon: the body of a world below, its limb lit, a flare at the crest. */
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 44vh; min-height: 260px; z-index: 1; pointer-events: none; overflow: hidden;
  background: linear-gradient(to bottom, transparent 0%, rgba(15, 18, 23, 0.55) 29%, transparent 30%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%); }
.horizon::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 220vw; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #1a2432 0%, #141a23 6%, #0f1217 18%);
  box-shadow: 0 -1px 0 rgba(200, 236, 248, 0.7), 0 -22px 64px rgba(127, 216, 243, 0.22), 0 -110px 240px rgba(127, 216, 243, 0.08);
}
.horizon::after {
  content: ""; position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%);
  width: min(62vw, 760px); height: 18vh; filter: blur(3px);
  background: radial-gradient(ellipse at center, rgba(240, 250, 255, 0.9) 0%, rgba(127, 216, 243, 0.45) 14%, rgba(127, 216, 243, 0.1) 40%, transparent 68%);
  animation: flare 4.6s ease-in-out infinite;
}
@keyframes flare { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-muted); font: 600 12px/1 var(--font-body); }
.scroll-hint i { display: block; width: 1px; height: 38px; background: linear-gradient(to bottom, var(--accent), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.motion .hero-inner > * { animation: rise 0.8s var(--ease) both; }
.motion .hero-inner > :nth-child(2) { animation-delay: 0.25s; }
.motion .hero-inner > :nth-child(3) { animation-delay: 0.4s; }
.motion .horizon { animation: horizon-rise 1.3s var(--ease) 0.15s both; }
.motion .scroll-hint { animation: rise 1s var(--ease) 1.2s both; }
@keyframes horizon-rise { from { opacity: 0; transform: translateY(120px); } to { opacity: 1; transform: none; } }
.settled .hero-inner > *, .settled .horizon, .settled .scroll-hint { animation: none; opacity: 1; transform: none; }
@media (max-width: 560px) {
  .lockup-hero { flex-direction: column; gap: 18px; text-align: center; }
  .lockup-hero .mark { width: 72px; }
  .lock-div { display: none; }
  .lock-text h1 { font-size: clamp(56px, 18vw, 76px); }
  .hero { padding: 100px 0 40vh; }
  .ctas { flex-direction: column; align-items: center; }
  .ctas .btn { width: min(100%, 320px); }
  .hero .lead { margin-top: 28px; }
}

/* ---- The statements: pinned while the page scrolls through them, or
   simply stacked without the script or under reduced motion. */
#principle { position: relative; padding: 40px 0; }
.pin { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px; padding: 40px 0; }
.statement { text-align: center; max-width: 1000px; padding: 0 6vw; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(28px, 4.6vw, 56px); color: var(--ink); }
.statement .g { color: var(--accent); }
.statement small { display: block; margin-top: 20px; font: 400 clamp(15px, 1.5vw, 18px)/1.6 var(--font-body); color: var(--ink-dim); letter-spacing: 0; }
.progress { display: none; }
.motion #principle { height: 340vh; padding: 0; }
.motion .pin { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; }
.motion .statement { position: absolute; opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.motion .statement.on { opacity: 1; transform: none; }
.motion .statement.past { opacity: 0; transform: translateY(-34px); }
.motion .progress { display: flex; gap: 8px; position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.progress i { width: 22px; height: 2px; background: var(--rule-strong); transition: background-color 0.4s; }
.progress i.on { background: var(--accent); }

/* ---- Sections. */
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 600 13px/1 var(--font-body); color: var(--ink-muted); }
.eyebrow::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, rgb(var(--hud-rgb) / 0.5), transparent); }
h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.lead { color: var(--ink-dim); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; max-width: 620px; margin-top: 22px; }
.lead a { color: var(--accent); }

/* ---- The platform. */
.platform-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.three { list-style: none; margin-top: 36px; border-top: 1px solid var(--rule); }
.three li { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.three .word { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; color: var(--ink); }
.three p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 560px) { .three li { grid-template-columns: 1fr; gap: 6px; } }
.sysmap { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.sysmap .halo { fill: url(#halo-fill); }
.sysmap .sat { fill: var(--ink); filter: drop-shadow(0 0 4px rgba(231, 235, 241, 0.8)); }
.sysmap .sat-ring { transform-box: view-box; transform-origin: 260px 220px; animation: sat-ring 36s linear infinite; }
@keyframes sat-ring { to { transform: rotate(360deg); } }
.sysmap .node { fill: var(--lift); stroke: rgb(var(--hud-rgb) / 0.55); stroke-width: 1; }
.sysmap .node-pip { fill: var(--hud); }
.sysmap text { font: 500 13px var(--font-body); fill: var(--ink-dim); }
.sysmap .orbit { fill: none; stroke: rgb(var(--hud-rgb) / 0.18); stroke-width: 1; }
.sysmap .spoke { stroke: rgb(var(--hud-rgb) / 0.22); stroke-width: 1; }
.sysmap .flow { stroke: var(--accent); stroke-opacity: 0.6; stroke-width: 1.2; stroke-dasharray: 3 16; animation: map-flow 1.8s linear infinite; }
.sysmap .centre { filter: drop-shadow(0 0 12px rgba(127, 216, 243, 0.5)); }
.sysmap .centre .mark-orbit { stroke-opacity: 0.5; }
@keyframes map-flow { to { stroke-dashoffset: -19; } }
@media (max-width: 880px) { .platform-grid { grid-template-columns: 1fr; } .sysmap { max-width: 420px; } }

/* ---- How it works. */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 52px; }
.step .num { font: 800 clamp(44px, 5vw, 64px)/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgb(var(--hud-rgb) / 0.6); }
.step h3 { margin: 18px 0 10px; font-size: 21px; }
.step p { color: var(--ink-dim); font-size: 15px; line-height: 1.65; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---- On the platform: services and projects. */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr 1fr; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--rule); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.switch::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px;
  background: linear-gradient(180deg, #212a36, #171d26); border: 1px solid var(--rule-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease);
}
.switch[data-on="services"]::before { transform: translateX(100%); }
.switch[data-on="businesses"]::before { transform: translateX(200%); }
.key {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 14px/1 var(--font-body); color: var(--ink-muted); background: transparent; border: 0; border-radius: 999px;
  padding: 11px 18px; cursor: pointer; white-space: nowrap; transition: color 0.2s;
}
.key::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); transition: background-color 0.2s, box-shadow 0.2s; }
.key:hover { color: var(--ink-dim); }
.key.is-on { color: var(--ink); }
.key.is-on::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-dim); }
.panel[hidden] { display: none; }
.panel .lead { margin-top: 26px; }
.panel:not([hidden]) + .panel:not([hidden]) { margin-top: 56px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.project {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 24px;
  color: inherit; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -26px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}
.project::before { content: ""; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg, transparent, rgba(127, 216, 243, 0.75), transparent); opacity: 0; transition: opacity 0.3s ease; }
.project.service::before { opacity: 1; }
@media (hover: hover) {
  .project:hover { transform: translateY(-3px); border-color: var(--rule-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 44px -24px rgba(0, 0, 0, 0.85); }
  .project:hover::before { opacity: 1; }
  .project:hover .arrow { transform: translateX(3px); }
}
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.project .h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; font-size: 22px; color: var(--ink); }
.project p { color: var(--ink-dim); font-size: 15.5px; line-height: 1.6; flex: 1; }
.pills { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--font-body); color: var(--ink-muted); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.pill-live { color: var(--ink-dim); }
.pill-service { color: var(--accent); border-color: rgba(127, 216, 243, 0.4); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px rgba(79, 211, 154, 0.7); }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--rule-faint, #1b2129); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 600 12px/1 var(--font-body); color: var(--ink-muted); border: 1px solid var(--rule); border-radius: 4px; padding: 6px 8px; }
.project .visit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.project .arrow { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
@media (max-width: 800px) { .projects { grid-template-columns: 1fr; } }

/* ---- Work with us. */
.cta { text-align: center; }
.cta .mark { width: 56px; height: 56px; margin: 0 auto 32px; filter: drop-shadow(0 0 14px rgba(127, 216, 243, 0.5)); }
.cta .lead { margin: 24px auto 0; text-align: center; }
.cform { max-width: 640px; margin: 44px auto 0; text-align: left; padding: 30px 28px 28px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-dim); }
.field label span { font-weight: 500; color: var(--ink-muted); }
.field input, .field textarea {
  background: var(--canvas); border: 1px solid var(--rule-strong); border-radius: 6px; color: var(--ink);
  font: 400 15px/1.4 var(--font-body); padding: 11px 13px; outline: none; min-width: 0; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-soft); }
.cform .btn { width: 100%; padding: 15px 20px; }
.status { margin-top: 12px; min-height: 20px; font-size: 14px; color: var(--ink-muted); text-align: center; }
.status.err { color: var(--bad); }
.status a { color: var(--accent); }
.cf-done { display: none; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 6px; }
.cf-done .mark { width: 56px; height: 56px; margin-bottom: 18px; filter: drop-shadow(0 0 10px rgba(127, 216, 243, 0.5)); }
.cf-done h3 { font-size: 24px; margin-bottom: 8px; }
.cf-done p { color: var(--ink-dim); font-size: 15px; max-width: 360px; }
.cform.sent .cf-body { display: none; }
.cform.sent .cf-done { display: flex; }
.note { margin-top: 22px; color: var(--ink-muted); font-size: 14px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

/* A frame with two cut corners, its cuts lit: the control room's panel,
   used here for the form alone, in the accent, which on the platform
   means "yours to do". */
.hud-frame {
  --cut: 14px; --line: rgba(127, 216, 243, 0.45); --lit: rgba(127, 216, 243, 0.95);
  position: relative; isolation: isolate;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  background: linear-gradient(180deg, rgba(24, 30, 40, 0.82), rgba(15, 19, 26, 0.6));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hud-frame::before, .hud-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hud-frame::before {
  background:
    linear-gradient(var(--line), var(--line)) right top / calc(100% - var(--cut)) 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right top / 1px calc(100% - var(--cut)) no-repeat,
    linear-gradient(var(--line), var(--line)) left bottom / calc(100% - var(--cut)) 1px no-repeat,
    linear-gradient(var(--line), var(--line)) left bottom / 1px calc(100% - var(--cut)) no-repeat,
    linear-gradient(to bottom right, transparent calc(50% - 0.3px), var(--lit) calc(50% - 0.3px), var(--lit) calc(50% + 1.2px), transparent calc(50% + 1.2px)) left top / var(--cut) var(--cut) no-repeat,
    linear-gradient(to bottom right, transparent calc(50% - 1.2px), var(--lit) calc(50% - 1.2px), var(--lit) calc(50% + 0.3px), transparent calc(50% + 0.3px)) right bottom / var(--cut) var(--cut) no-repeat;
}
.hud-frame::after {
  background:
    linear-gradient(var(--lit), var(--lit)) var(--cut) 0 / 46px 2px no-repeat,
    linear-gradient(var(--lit), var(--lit)) 0 var(--cut) / 2px 22px no-repeat,
    linear-gradient(var(--lit), var(--lit)) calc(100% - var(--cut)) 100% / 46px 2px no-repeat,
    linear-gradient(var(--lit), var(--lit)) 100% calc(100% - var(--cut)) / 2px 22px no-repeat,
    linear-gradient(var(--lit), var(--lit)) right top / 10px 1px no-repeat, linear-gradient(var(--lit), var(--lit)) right top / 1px 10px no-repeat,
    linear-gradient(var(--lit), var(--lit)) left bottom / 10px 1px no-repeat, linear-gradient(var(--lit), var(--lit)) left bottom / 1px 10px no-repeat;
  opacity: 0.75;
}
.hud-scan { position: absolute; top: 0; left: 18px; right: 0; height: 1px; pointer-events: none; z-index: 1; display: none;
  background: linear-gradient(90deg, transparent, rgba(231, 235, 241, 0.75) 50%, transparent) 0 0 / 30% 100% no-repeat;
  animation: hud-scan 5.5s ease-in-out infinite; }
.cform.sending .hud-scan { display: block; }
@keyframes hud-scan { 0% { background-position: -40% 0; } 60%, 100% { background-position: 140% 0; } }

/* ---- Footer. */
footer { border-top: 1px solid var(--rule); padding: 44px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.foot-links a:hover { color: var(--ink); }
.foot-links a.quiet { color: var(--ink-faint); }
.copy { width: 100%; margin-top: 18px; color: var(--ink-faint); font-size: 13px; }

/* ---- A document page (privacy). */
.doc { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 96px 24px 100px; }
.doc .back { display: inline-block; margin-bottom: 36px; color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.doc .back::before { content: "\2190\00a0"; }
.doc .back:hover { color: var(--ink); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.doc .updated { color: var(--ink-muted); font-size: 13px; margin-bottom: 36px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p { color: var(--ink-dim); line-height: 1.7; font-size: 15.5px; margin-bottom: 14px; }

/* ---- Movement: things rise as the page reaches them. Nothing is hidden
   without the script, and nothing moves under reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mark-settle { 0% { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(127, 216, 243, 0.8)); } 100% { transform: scale(1); } }
@keyframes mark-orbit { to { transform: rotate(360deg); } }
.motion [data-reveal] { opacity: 0; }
.motion [data-reveal].is-in { opacity: 1; animation: rise 0.8s var(--ease) both; }
.motion .projects > :nth-child(2).is-in, .motion .steps > :nth-child(2).is-in { animation-delay: 0.1s; }
.motion .projects > :nth-child(3).is-in, .motion .steps > :nth-child(3).is-in { animation-delay: 0.2s; }
.motion .projects > :nth-child(4).is-in { animation-delay: 0.3s; }
.motion .projects > :nth-child(5).is-in { animation-delay: 0.4s; }
.motion .projects > :nth-child(6).is-in { animation-delay: 0.5s; }
.mark-done { transform-box: fill-box; transform-origin: center; animation: mark-settle 0.9s ease-out both; }
.cform.sending .mark-sat { animation: mark-orbit 2.4s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::before, .sky-stars, .horizon::after, .sysmap .sat-ring, .switch::before, .scroll-hint i, .hud-scan, .sysmap .flow, .mark-done, .mark-sat, .hero-inner > *, .horizon, .scroll-hint { animation: none !important; }
  .btn, .nav { transition: none; }
}
