/* 1Vision365 site styles.
   Layout concept: calm light canvas, one dark "control room" band per page for the machine and agent story,
   real imagery (devices, crew portraits) doing the inviting. */
/*FONTS-START*/
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/*FONTS-END*/

:root {
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --surface-2: #E9EFF3;
  --ink: #0D1B2A;
  --muted: #4A5B6C;
  --line: #D8E0E7;
  --accent: #00656E;
  --accent-soft: #DDEFF0;
  --on-accent: #FFFFFF;
  --signal: #B26A00;
  --signal-soft: #FBEFD9;
  --deep: #0D1B2A;
  --deep-2: #14283B;
  --deep-ink: #E7EEF4;
  --deep-muted: #A3B5C5;
  --deep-line: rgba(255, 255, 255, 0.14);
  --deep-accent: #5CC8D0;
  --shadow: 0 24px 50px -28px rgba(5, 20, 35, 0.4);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09131C; --surface: #0F1D2A; --surface-2: #162B3C; --ink: #E7EEF4; --muted: #9AABBB; --line: #213445;
    --accent: #4CC6CD; --accent-soft: #11313A; --on-accent: #04201F; --signal: #F2A93B; --signal-soft: #34270F;
    --deep: #060E15; --deep-2: #0D1B28; --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09131C; --surface: #0F1D2A; --surface-2: #162B3C; --ink: #E7EEF4; --muted: #9AABBB; --line: #213445;
  --accent: #4CC6CD; --accent-soft: #11313A; --on-accent: #04201F; --signal: #F2A93B; --signal-soft: #34270F;
  --deep: #060E15; --deep-2: #0D1B28; --shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 6.2vw, 70px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.005em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.deep :focus-visible { outline-color: var(--deep-accent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 50; border-radius: 4px; }
.skip:focus { left: 12px; }

.wrap {
  max-width: 1160px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: 92px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.deep .eyebrow { color: var(--deep-accent); }
.lede { color: var(--muted); font-size: 19px; max-width: 60ch; }
.deep .lede { color: var(--deep-muted); }
.prose p + p { margin-top: 16px; }
.prose { color: var(--muted); max-width: 64ch; }
.mono { font-family: var(--font-mono); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 40; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px 6px; margin-left: 28px; flex: 1; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--muted);
  padding: 8px 12px; border-radius: 4px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 4px 4px 0 0; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; background: transparent;
  border: 1.5px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 12px 20px; border-radius: 4px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  font-family: var(--font-body); transition: background .15s, color .15s, filter .15s;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.small { padding: 9px 15px; font-size: 14.5px; }
.btn.on-deep { border-color: var(--deep-ink); color: var(--deep-ink); }
.btn.on-deep:hover { background: var(--deep-ink); color: var(--deep); }
.btn.primary.on-deep { background: var(--deep-accent); border-color: var(--deep-accent); color: #04201F; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero */
.hero { padding-block: 56px 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 32px; }
.facts { display: flex; gap: 10px 30px; flex-wrap: wrap; margin-top: 38px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 500; }
.shot { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--deep); min-width: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  font-family: var(--font-mono); font-size: 12px; background: rgba(6, 14, 21, 0.82); color: #E7EEF4; padding: 6px 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px);
}
.page-hero { padding-block: 64px 56px; }
.page-hero.has-art .hero-grid { align-items: center; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin-bottom: 18px; }

/* partner strip */
.partners { padding-block: 0 8px; }
.partners .wrap { display: flex; align-items: center; gap: 18px 34px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 30px; }
.partners .label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.logo-chip { background: #fff; border-radius: 6px; border: 1px solid var(--line); padding: 10px 18px; height: 54px; display: grid; place-items: center; }
.logo-chip img { height: 30px; width: auto; max-width: 140px; }
.plain-partner { font-weight: 600; color: var(--muted); font-size: 15px; }

/* section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: 44px; }
.section-head.single { grid-template-columns: minmax(0, 1fr); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
a.card { text-decoration: none; }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .media { aspect-ratio: 4 / 3; background: var(--deep); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.card .body p { color: var(--muted); font-size: 16px; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.tag {
  display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent);
}
.tag.soon { border-color: var(--signal); color: var(--signal); }
.tag.quiet { border-color: var(--line); color: var(--muted); }

/* deep band */
.deep { background: var(--deep); color: var(--deep-ink); }
.deep h2, .deep h3 { color: var(--deep-ink); }
.agent-teaser { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.agent-teaser ul { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 14px; }
.agent-teaser li { padding-left: 26px; position: relative; color: var(--deep-muted); }
.agent-teaser li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--deep-accent); }
.agent-teaser li b { color: var(--deep-ink); font-weight: 600; }
.portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.portraits figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--deep-line); }
.portraits img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.portraits figcaption {
  position: absolute; inset: auto 0 0 0; padding: 18px 8px 7px; font-family: var(--font-mono); font-size: 12px; text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff;
}

/* release + news */
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 30px; min-width: 0; }
.panel h3 { margin-bottom: 4px; }
.release header { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.release .ver { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.02em; color: var(--accent); line-height: 1; }
.release time, .news-item time { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.release .sum { color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.release ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.release li { color: var(--muted); font-size: 16px; padding-left: 18px; position: relative; }
.release li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.release li strong { color: var(--ink); font-weight: 600; }
.release li a, .prose a, .link { color: var(--accent); text-underline-offset: 3px; }
.release code, .prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }
.panel-foot { margin-top: 22px; display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; }
.live-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.news-list { display: grid; gap: 0; }
.news-item { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.news-item:first-child { border-top: 0; padding-top: 4px; }
.news-item h3 { font-size: 18px; }
.news-item p { color: var(--muted); font-size: 16px; }
.news-item .tag { margin-top: 4px; }
.history details { border-top: 1px solid var(--line); padding-block: 16px; }
.history details:last-child { border-bottom: 1px solid var(--line); }
.history summary { cursor: pointer; display: flex; gap: 8px 20px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.history summary::-webkit-details-marker { display: none; }
.history summary::before { content: "+"; font-family: var(--font-mono); color: var(--accent); width: 14px; }
.history details[open] summary::before { content: "−"; }
.history .ver { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.history .sumline { color: var(--muted); font-size: 15px; flex: 1; min-width: 200px; }
.history .release { padding: 14px 0 4px 34px; }
.history .release header, .history .release .sum { display: none; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.principles div { padding: 24px 24px 8px 0; border-bottom: 0; }
.principles dt { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.principles dd { margin: 0; color: var(--muted); font-size: 16px; }

/* product pages */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; color: var(--muted); font-size: 16px; position: relative; }
.steps li::before { content: counter(s); font-family: var(--font-mono); font-size: 13px; color: var(--on-accent); background: var(--accent); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 12px; }
.steps li b { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }
.chain { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.chain .node { flex: 1 1 140px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.chain .node b { display: block; font-family: var(--font-display); font-size: 17px; }
.chain .node span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.chain .node.ours { border-color: var(--accent); background: var(--accent-soft); }
.chain .arrow { align-self: center; color: var(--muted); font-family: var(--font-mono); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.features h3 { margin-bottom: 8px; font-size: 20px; }
.features p { color: var(--muted); font-size: 16px; }
.spec { border-top: 1.5px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; }
.spec { margin: 0; }
.adapter { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.adapter + .adapter { margin-top: 20px; }
.adapter .art { background: var(--deep); min-height: 300px; position: relative; }
.adapter .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adapter .txt { padding: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adapter .txt p { color: var(--muted); }
.adapter .logo-chip { align-self: flex-start; }
.note-box { background: var(--accent-soft); border-radius: 10px; padding: 22px 24px; color: var(--ink); }

/* agentic page */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat b { font-family: var(--font-display); font-size: 44px; line-height: 1; display: block; color: var(--deep-accent); font-weight: 700; }
.stat span { color: var(--deep-muted); font-size: 15px; display: block; margin-top: 8px; }
.legend { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 24px; }
.badge { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; display: inline-block; }
.badge.agent { background: var(--accent); color: var(--on-accent); }
.badge.human { background: var(--signal); color: #fff; }
:root[data-theme="dark"] .badge.human { color: #1c1200; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.human { color: #1c1200; } }
.badge.script { background: var(--muted); color: var(--bg); }
.badge.customer { border: 1px solid var(--ink); color: var(--ink); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow li h3 { font-size: 18px; }
.flow li p { color: var(--muted); font-size: 15.5px; }
.flow .who { display: flex; align-items: center; gap: 10px; }
.flow .who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lanes { columns: 2; column-gap: 64px; }
.lane { break-inside: avoid; padding-block: 24px 22px; border-top: 1px solid var(--deep-line); }
.lane-name { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-accent); margin-bottom: 16px; }
.lane .agents { display: grid; gap: 22px; }
.crew-agent { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.crew-agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--deep-line); }
.crew-agent h3 { font-size: 20px; color: var(--deep-ink); }
.crew-agent .role { font-family: var(--font-mono); font-size: 12px; color: var(--deep-accent); display: block; margin: 2px 0 6px; }
.crew-agent p { color: var(--deep-muted); font-size: 15px; line-height: 1.5; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.rules h3 { font-size: 19px; margin-bottom: 6px; }
.rules p { color: var(--muted); font-size: 16px; }
.ship-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.ship-grid figure { margin: 0; border-radius: 12px; overflow: hidden; background: #05070a; border: 1px solid var(--deep-line); }
.ship-grid figcaption { padding: 12px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--deep-muted); }

/* about */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.avatar { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); border: 4px solid var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .initials { font-family: var(--font-display); font-weight: 700; font-size: 72px; color: var(--accent); }
.who { margin-top: 20px; }
.who b { display: block; font-family: var(--font-display); font-size: 24px; }
.who span { color: var(--muted); font-size: 15px; display: block; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }
.timeline p { color: var(--muted); }
.timeline b { color: var(--ink); font-weight: 600; }

/* contact + forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: start; }
form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
form label { font-weight: 600; font-size: 15px; }
form .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 4px; padding: 11px 13px;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 5px; accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #B3261E; }
:root[data-theme="dark"] .form-status.err { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.err { color: #FF8A80; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: grid; gap: 2px; }
.info-list .k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stack { display: grid; gap: 20px; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.newsletter form .row { grid-template-columns: 1fr 1.3fr; }

/* legal */
.legal { max-width: 78ch; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.legal td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal td:first-child { color: var(--ink); font-weight: 600; width: 210px; }

/* cta + footer */
.cta .wrap { display: flex; gap: 24px 56px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 20ch; }
.cta p { color: var(--deep-muted); max-width: 48ch; margin-top: 14px; }
.cta .mailline { font-family: var(--font-mono); font-size: 15px; color: var(--deep-muted); margin-top: 18px; }
footer.site-footer { padding-block: 56px 36px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-grid img { height: 40px; width: auto; margin-bottom: 14px; }
.foot-grid p, .foot-grid address { color: var(--muted); font-size: 15px; font-style: normal; line-height: 1.7; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; font-size: 15.5px; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

.notfound { text-align: left; padding-block: 120px; position: relative; overflow: hidden; }
.notfound > .wrap { position: relative; z-index: 1; }
.notfound .lede, .notfound .quip, .notfound h1 { text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 24px var(--bg), 0 0 3px var(--bg); }
.notfound .rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.28) 45%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.28) 45%, #000 100%); }
.notfound h1 { margin-bottom: 18px; }
.quip { font-family: var(--font-mono); font-size: 17px; color: var(--accent); margin: -8px 0 28px; min-height: 1.6em; max-width: 46em; }
.quip .prompt { opacity: .7; margin-right: 6px; }
.quip .caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .flow, .principles, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  section { padding-block: 64px; }
  .hero { padding-block: 32px 56px; }
  .page-hero { padding-block: 40px 40px; }
  .hero-grid, .section-head, .agent-teaser, .two-col, .about-grid, .contact-grid, .ship-grid, .newsletter { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section-head { gap: 16px; margin-bottom: 32px; }
  .adapter { grid-template-columns: minmax(0, 1fr); }
  .adapter .art { min-height: 0; aspect-ratio: 16 / 9; }
  .lanes { columns: 1; }
  .menu-btn { display: inline-grid; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .head-actions { margin-left: auto; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 0 16px; order: 5; }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0; }
  .about-grid .avatar { width: 160px; height: 160px; }
  .spec div { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cards, .cards.two, .cards.three, .steps, .flow, .principles, .features, .rules, .stat-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  form .row, .newsletter form .row { grid-template-columns: minmax(0, 1fr); }
  .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .head-actions .btn { padding: 9px 13px; font-size: 14.5px; }
  .brand img { height: 36px; }
  .panel { padding: 22px; }
}

.mini { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.mini li { padding-left: 16px; position: relative; }
.mini li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }

.deep .check { color: var(--deep-muted); }
.deep .form-status.ok { color: var(--deep-accent); }
.deep .form-status.err { color: #FF8A80; }
.deep input[type="text"], .deep input[type="email"] { background: #F3F6F8; color: #0D1B2A; border-color: transparent; }
#adapter-moxa .art img { object-position: 50% 18%; }
.desk { margin: 0; border-radius: 12px; overflow: hidden; background: #05070a; border: 1px solid var(--deep-line); }
.desk img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.page-hero .desk { max-width: 520px; justify-self: end; }
.crew-agent { display: block; }
.crew-agent h3 { margin-bottom: 6px; }
.logo-chip.ms img { height: 36px; max-width: 220px; }
.pano { margin: 36px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pano img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 1; object-fit: cover; }
.deep .pano { border-color: var(--deep-line); }
@media (max-width: 600px) { .pano img { aspect-ratio: 16 / 9; object-position: 50% 50%; } }

.code-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 920px; align-items: start; margin-top: 8px; }
.code { margin: 0; background: #08131f; border: 1px solid var(--deep-line); border-radius: 10px; overflow: hidden; min-width: 0; }
.code figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--deep-muted); border-bottom: 1px solid var(--deep-line); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: #D6E2EA; tab-size: 4; }
.code code { font-family: inherit; }
.t-kw { color: #5FD3DC; } .t-str { color: #F2B866; } .t-id { color: #A7C4F2; } .t-com { color: #7E93A3; font-style: italic; }
.copy-btn { font: inherit; font-size: 12px; color: var(--deep-ink); background: transparent; border: 1px solid var(--deep-line); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.copy-btn:hover { border-color: var(--deep-accent); color: var(--deep-accent); }
.code-note { margin-top: 20px; color: var(--deep-muted); max-width: 70ch; }
@media (max-width: 880px) { .code-grid { grid-template-columns: minmax(0, 1fr); } }

.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-foot .more { padding-top: 0; margin-top: 0; }
.card-foot .actions { margin: 0; }
img.tile { width: 84px; height: 84px; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
img.hero-tile { width: 88px; height: 88px; margin-bottom: 18px; display: block; box-shadow: var(--shadow); }
.ms-badge { display: inline-block; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }
.ms-badge img { height: 34px; width: auto; margin: 0; display: block; }
.info-list .ms-badge { margin-top: 0; padding: 6px 12px; }

.since { margin: 30px 0 14px; color: var(--muted); font-size: 16px; max-width: 52ch; border-left: 3px solid var(--accent); padding-left: 14px; }
.since b { color: var(--ink); font-weight: 600; }
.adapter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
