/* Thalasoma — company site */

:root {
  --bg: #060b16;
  --bg-2: #08101f;
  --panel: #0c1527;
  --panel-2: #101b31;
  --line: rgba(160, 185, 230, 0.12);
  --line-2: rgba(160, 185, 230, 0.22);
  --text: #e8eef9;
  --text-2: #b0bbd2;
  --text-3: #8592ad;
  --accent: #2f5bf0;
  --accent-hi: #6f93ff;
  --accent-glow: rgba(79, 124, 255, 0.35);
  --ok: #3dd6b5;
  --amend: #f5b84a;
  --bad: #ff8a80;

  --f-display: "Urbanist", "Hanken Grotesk", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent-hi);
  overflow-x: hidden;
}

::selection { background: rgba(79, 124, 255, 0.45); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2742; border-radius: 10px; border: 2px solid var(--bg); }
html { scrollbar-color: #1b2742 var(--bg); }

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

a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
s { text-decoration-thickness: 1.5px; }
.mono { font-family: var(--f-mono); font-size: 0.86em; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.35s var(--ease), transform 0.25s var(--ease);
}
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover { background: #3a66ff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn--ghost { background: rgba(160, 185, 230, 0.06); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(160, 185, 230, 0.12); border-color: rgba(160, 185, 230, 0.36); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(6, 11, 22, 0.86); backdrop-filter: saturate(140%) blur(14px); border-color: var(--line); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__mark { width: 32px; height: 32px; display: block; }
.brand__name { font: 600 1.2rem/1 var(--f-display); letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__links a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__end { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang__btn {
  border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px;
  font: 600 0.78rem/1 var(--f-body); color: var(--text-3);
}
.lang__btn[aria-pressed="true"] { background: rgba(160, 185, 230, 0.14); color: var(--text); }
.lang__btn:hover { color: var(--text); }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
.burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: 156px var(--gutter) 96px;
  overflow: hidden;
}
.hero__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 96%);
  background:
    linear-gradient(118deg, transparent 22%, rgba(79, 124, 255, 0.10) 34%, rgba(111, 147, 255, 0.30) 42%, rgba(79, 124, 255, 0.08) 50%, transparent 60%),
    radial-gradient(50% 35% at 50% 0%, rgba(47, 91, 240, 0.12), transparent 70%),
    radial-gradient(40% 30% at 85% 70%, rgba(61, 214, 181, 0.06), transparent 70%);
}

.hero__copy { max-width: 980px; margin: 0 auto; text-align: center; }
.hero__title {
  font: 300 clamp(2.6rem, 6.4vw, 5.5rem)/1.02 var(--f-display);
  letter-spacing: -0.035em;
}
.hero__sub { max-width: 80ch; margin: 28px auto 0; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Wall (bento of live fragments) ---------- */
.wall {
  position: relative;
  max-width: var(--max); margin: 80px auto 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "proto proto proto proto hist hist hist hist audit audit audit audit"
    "proto proto proto proto board board board board audit audit audit audit"
    "access access access access board board board board agent agent agent agent";
}
.wall__trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.wall__trace path { fill: none; stroke: var(--accent-hi); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.9; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

.frag {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease);
  min-width: 0;
}
.frag--protocol { grid-area: proto; }
.frag--history { grid-area: hist; }
.frag--audit { grid-area: audit; }
.frag--access { grid-area: access; }
.frag--board { grid-area: board; }
.frag--agent { grid-area: agent; }

.wall.is-tracing .frag:not(.is-on) { opacity: 0.38; filter: saturate(0.5); }
.wall.is-tracing .frag.is-on {
  border-color: rgba(111, 147, 255, 0.6);
  background: linear-gradient(180deg, #152447, var(--panel) 70%);
}

.frag__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.frag__title { font: 500 0.82rem/1.2 var(--f-body); color: var(--text-3); letter-spacing: 0.01em; }
.frag__name { font: 500 1.1rem/1.3 var(--f-display); margin-bottom: 14px; }
.frag__foot { margin-top: 14px; font-size: 0.82rem; color: var(--text-3); }

.tag {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font: 600 0.74rem/1 var(--f-body); padding: 5px 8px; border-radius: 6px;
  color: var(--text-2); background: rgba(160, 185, 230, 0.08); border: 1px solid var(--line);
}
.tag--ok { color: var(--ok); background: rgba(61, 214, 181, 0.08); border-color: rgba(61, 214, 181, 0.25); }
.tag--amend { color: var(--amend); background: rgba(245, 184, 74, 0.08); border-color: rgba(245, 184, 74, 0.28); }
.tag--soon { color: var(--accent-hi); background: rgba(79, 124, 255, 0.1); border-color: rgba(111, 147, 255, 0.3); }

.case-link {
  font: 500 0.75rem/1 var(--f-mono); color: var(--accent-hi);
  background: rgba(79, 124, 255, 0.1); border: 1px solid rgba(111, 147, 255, 0.32);
  border-radius: 6px; padding: 5px 8px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.case-link:hover, .wall.is-tracing .case-link { background: var(--accent); color: #fff; border-color: var(--accent); }

/* protocol */
.phases { position: relative; display: grid; gap: 4px; }
.phases::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.phase { position: relative; display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 0 8px 0 0; color: var(--text-3); font-size: 0.92rem; }
.phase__dot { position: relative; flex: none; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); }
.phase.is-done { color: var(--text-2); }
.phase.is-done .phase__dot { background: var(--ok); border-color: var(--ok); }
.phase.is-now { color: var(--text); font-weight: 600; }
.phase.is-now .phase__dot { border: 4px solid #1a2a55; background: var(--accent-hi); }
.phase.is-now .case-link { margin-left: auto; }

/* history */
.hist { display: grid; gap: 10px; }
.hist li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  padding: 12px; border-radius: var(--r-sm); background: rgba(6, 11, 22, 0.5); border: 1px solid var(--line);
}
.hist__val { color: var(--text); }
.hist__val s { color: var(--text-3); }
.hist__meta { grid-column: 1 / -1; font-size: 0.8rem; color: var(--text-3); }

/* audit feed */
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 0.74rem/1 var(--f-body); color: var(--ok); }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.feed { display: grid; gap: 2px; font-family: var(--f-mono); font-size: 0.76rem; line-height: 1.45; }
.feed li {
  display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 9px 6px;
  border-bottom: 1px solid var(--line); color: var(--text-2);
}
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--text-3); }
.feed b { font-weight: 500; color: var(--text); }
.feed .k-amend { color: var(--amend); }
.feed .k-sign { color: var(--ok); }
.feed .k-deny { color: var(--bad); }
.feed li.is-new { animation: feedIn 0.7s var(--ease); }
@keyframes feedIn { from { background: rgba(79, 124, 255, 0.16); } to { background: transparent; } }

/* access */
.perms { display: grid; gap: 8px; }
.perms li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.perm { font: 600 0.74rem/1 var(--f-body); padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.perm--yes { color: var(--ok); background: rgba(61, 214, 181, 0.08); }
.perm--no { color: var(--bad); background: rgba(255, 138, 128, 0.08); }

/* board */
.board { display: grid; gap: 8px; }
.board li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px;
  padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(6, 11, 22, 0.45);
  font-size: 0.9rem; color: var(--text-2);
}
.board li.is-hot { border-color: rgba(111, 147, 255, 0.35); color: var(--text); }
.board li.is-warn { border-color: rgba(245, 184, 74, 0.3); color: var(--amend); }
.board__chips { display: flex; gap: 6px; }
.board__chips i { width: 28px; height: 20px; border-radius: 5px; background: rgba(160, 185, 230, 0.1); border: 1px solid var(--line); }
.board li.is-warn .board__chips i { background: rgba(245, 184, 74, 0.14); border-color: rgba(245, 184, 74, 0.3); }
.case-link--chip { padding: 3px 6px; font-size: 0.7rem; }

/* agent */
.agent__line { font-size: 0.92rem; color: var(--text-2); }
.agent__line .mono { color: var(--text); }
.agent__ask {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 14px; padding: 12px; border-radius: var(--r-sm);
  border: 1px dashed rgba(111, 147, 255, 0.38); font-size: 0.86rem; color: var(--text-2);
}
.agent__btns { display: flex; gap: 6px; }
.mini { font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.mini--ok { background: var(--accent); border-color: var(--accent); color: #fff; }

.wall__note {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; font-size: 0.86rem; color: var(--text-3);
}

/* ---------- Sections ---------- */
main { position: relative; isolation: isolate; }
main::before {
  content: ""; position: absolute; inset: 100vh 0 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 8%, rgba(79, 124, 255, 0.07) 16%, transparent 26%),
    linear-gradient(118deg, transparent 0 55%, rgba(79, 124, 255, 0.06) 64%, transparent 74%),
    radial-gradient(40% 18% at 0% 52%, rgba(47, 91, 240, 0.10), transparent 70%),
    radial-gradient(40% 14% at 100% 88%, rgba(47, 91, 240, 0.10), transparent 70%);
}
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.sec__head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.h2 { font: 400 clamp(2rem, 4.2vw, 3.4rem)/1.08 var(--f-display); letter-spacing: -0.03em; }
.lede { margin-top: 20px; max-width: 64ch; color: var(--text-2); font-size: 1.08rem; }

/* anatomy */
.anatomy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.record { position: sticky; top: 112px; align-self: center; margin: 0; display: grid; gap: 10px; }
.record__layer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--text-3);
  transform: translateX(calc(var(--i, 0) * 10px));
  transition: transform 0.6s var(--ease), border-color 0.3s;
}
.record__layer .mono { color: var(--text); font-size: 0.86rem; }
.record__layer:nth-child(2) { --i: 1; }
.record__layer:nth-child(3) { --i: 2; }
.record__layer:nth-child(4) { --i: 3; }
.record__layer:nth-child(5) { --i: 4; }
.record:hover .record__layer { transform: none; }
.record__layer--value { background: linear-gradient(180deg, #16264a, #0f1b36); border-color: rgba(111, 147, 255, 0.4); }
.record__layer--value .mono { font-size: 1.1rem; }
.record__layer--prev { border-style: dashed; border-color: rgba(245, 184, 74, 0.35); }
.record__layer--prev .mono { color: var(--amend); }
.record figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--text-3); }

.rules { display: grid; }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules h3 { font: 500 1.2rem/1.3 var(--f-display); margin-bottom: 6px; }
.rules p { color: var(--text-2); max-width: 58ch; }
.ico { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: rgba(79, 124, 255, 0.1); border: 1px solid rgba(111, 147, 255, 0.25); stroke: var(--accent-hi); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* product */
.sec--product { max-width: none; padding-left: 0; padding-right: 0; }
.product {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px);
  position: relative;
}

.product__intro { position: sticky; top: 112px; align-self: start; }
.product__intro .btn { margin-top: 32px; }

.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.cap { padding: 24px 0; border-top: 1px solid var(--line); }
.cap--wide { grid-column: 1 / -1; padding: 28px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel) 60%); }
.cap h3 { font: 500 1.15rem/1.3 var(--f-display); margin-bottom: 8px; }
.cap p { color: var(--text-2); font-size: 0.95rem; }
.cap--wide h3 { font-size: 1.45rem; }
.cap--row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 24px; align-items: baseline; }
.cap--row h3 { margin: 0; }
.product .h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }

.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 26px; }
.flow__node {
  padding: 10px 14px; border-radius: 10px; font-size: 0.86rem; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text-3); background: var(--bg);
}
.flow__node.is-done { color: var(--ok); border-color: rgba(61, 214, 181, 0.35); }
.flow__node.is-now { color: #fff; background: var(--accent); border-color: var(--accent); }
.flow__edge { width: 28px; height: 1px; background: var(--line-2); }
.flow__edge--dash { background: none; border-top: 1px dashed var(--line-2); }

/* agents roadmap */
.road { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); position: relative; }
.road__step { position: relative; padding: 32px 40px 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.road__step::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-hi);
}
.road__step--first::before { background: var(--accent-hi); }
.road__step--byo::before { border-color: var(--ok); }
.road h3 { font: 500 1.35rem/1.25 var(--f-display); }
.road p { color: var(--text-2); font-size: 0.95rem; }

/* markets */
.markets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.market {
  position: relative; padding: 26px 24px; min-height: 200px; border-radius: var(--r-lg);
  border: 1px dashed var(--line-2); display: flex; flex-direction: column;
}
.market h3 { font: 400 2rem/1.1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text-2); }
.market p { flex: 1; }
.market p { color: var(--text-3); font-size: 0.92rem; }
.market__state { margin-top: 16px; font: 600 0.78rem/1 var(--f-body); color: var(--text-3); }
.market--live { border-style: solid; border-color: rgba(111, 147, 255, 0.45); background: radial-gradient(90% 90% at 100% 0%, rgba(47, 91, 240, 0.25), transparent 65%), var(--panel); }
.market--live h3 { color: var(--text); }
.market--live p { color: var(--text-2); }
.market--live .market__state { color: var(--ok); }

/* contact */
.sec--contact { padding-bottom: clamp(96px, 12vw, 160px); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__intro .btn { margin-top: 32px; }
.form {
  display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
}
.hp { position: absolute; left: -9999px; }
.form__intent { display: flex; gap: 6px; padding: 4px; margin: 0; border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--text-3); transition: background-color 0.2s, color 0.2s; }
.seg input:checked + span { background: rgba(79, 124, 255, 0.18); color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 0.86rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  font: 400 1rem/1.4 var(--f-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(160, 185, 230, 0.36); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.form__end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__msg { font-size: 0.9rem; color: var(--text-2); }
.form__msg.is-error { color: var(--bad); }
.form__msg.is-ok { color: var(--ok); }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--text-3); font-size: 0.88rem; }
.foot__inner .brand { margin-right: auto; }

/* ---------- Entrance: one orchestrated moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__light { animation: sweep 1.8s var(--ease) both; }
  .js .hero__copy > * { animation: rise 1s var(--ease) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .frag { animation: assemble 1.1s var(--ease) both; animation-delay: calc(0.25s + var(--d, 0) * 0.07s); }
  .js .frag--protocol { --d: 0; } .js .frag--history { --d: 1; } .js .frag--audit { --d: 2; }
  .js .frag--board { --d: 3; } .js .frag--access { --d: 4; } .js .frag--agent { --d: 5; }
}
@keyframes sweep { from { opacity: 0; transform: translateX(-12%); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes assemble { from { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .wall__trace path { animation: none; }
}
.still .hero__light, .still .hero__copy > *, .still .frag { animation: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "proto hist" "proto audit" "board audit" "access agent";
  }
  .road { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .road__step--first { grid-column: 1 / -1; }
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(6, 11, 22, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__end { margin-left: auto; }
  .nav__end .btn { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .anatomy, .product, .contact { grid-template-columns: 1fr; }
  .record, .product__intro { position: static; }
}
@media (max-width: 640px) {
  .cap--row { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; padding-bottom: 72px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .wall { grid-template-columns: 1fr; grid-template-areas: "proto" "hist" "audit" "board" "access" "agent"; margin-top: 56px; }
  .caps, .road, .markets, .form__row { grid-template-columns: 1fr; }
  .road { border-top: 0; }
  .road__step { padding: 24px 0 8px 24px; border-left: 1px solid var(--line); }
  .road__step::before { top: 28px; left: -6px; }
  .flow { flex-direction: column; align-items: flex-start; }
  .flow__edge, .flow__edge--dash { width: 1px; height: 14px; margin-left: 18px; border-top: 0; }
  .flow__edge--dash { background: none; border-left: 1px dashed var(--line-2); }
  .record__layer { transform: none; flex-direction: column; align-items: flex-start; gap: 4px; }
  .market { min-height: 150px; }
  .form__intent { width: 100%; }
  .seg { flex: 1; text-align: center; }
}
