@font-face { font-family: "Inter Display"; src: url(/fonts/InterDisplay-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/fonts/InterDisplay-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Shift Condensed"; src: url(/fonts/Archivo-Condensed.woff2) format("woff2"); font-weight: 800; font-display: block; }

:root {
  --paper: #fdfcf6;
  --ink: #101010;
  --cobalt: #0045fe;
  --muted: #5c5a53;
  --hair: rgba(16, 16, 16, 0.12);
  --pale: #d3dce7;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --io: cubic-bezier(0.65, 0, 0.35, 1);
  /* replaced by a real spring (CSS linear()) from app.js where supported */
  --spring: cubic-bezier(0.2, 1.3, 0.35, 1);
  --pad-x: clamp(20px, 2.6vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip; }
body {
  /* a definite height lets the robot line take exactly what the text leaves */
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  font: 500 16px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--cobalt); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- background */

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 24.5v7M24.5 28h7' stroke='%23101010' stroke-opacity='.11' stroke-width='1'/%3E%3C/svg%3E");
  background-position: center -8px;
}
.grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 23.5v9M23.5 28h9' stroke='%230045fe' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: inherit;
  -webkit-mask-image: radial-gradient(circle at var(--mx, -400px) var(--my, -400px), rgba(0, 0, 0, 0.75) 0, rgba(0, 0, 0, 0.35) 60px, transparent 180px);
  mask-image: radial-gradient(circle at var(--mx, -400px) var(--my, -400px), rgba(0, 0, 0, 0.75) 0, rgba(0, 0, 0, 0.35) 60px, transparent 180px);
}

.marks { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.mk { position: absolute; width: 20px; height: 20px; }
.mk::before, .mk::after { content: ""; position: absolute; background: var(--cobalt); }
.mk::before { width: 100%; height: 1.5px; }
.mk::after { width: 1.5px; height: 100%; }
.mk.tl { top: 16px; left: 16px; }
.mk.tr { top: 16px; right: 16px; }
.mk.tr::before { right: 0; } .mk.tr::after { right: 0; }
.mk.bl { bottom: 16px; left: 16px; }
.mk.bl::before { bottom: 0; } .mk.bl::after { bottom: 0; }
.mk.br { bottom: 16px; right: 16px; }
.mk.br::before { bottom: 0; right: 0; } .mk.br::after { bottom: 0; right: 0; }
.reg { position: absolute; left: 50%; width: 120px; height: 7px; margin-left: -60px; }
.reg::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--cobalt); opacity: 0.55; }
.reg::after { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; background: var(--cobalt); }
.reg.top { top: 22px; }

/* ---------------------------------------------------------------- header */

.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 3.4svh, 34px) calc(var(--pad-x) + 18px) 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.brand:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 6px; }
.logo { width: 33px; height: 34px; overflow: visible; }
.logo .jaw, .logo .core { transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--spring); }
.brand:hover .jaw-a { transform: translate(-7%, -7%); }
.brand:hover .jaw-b { transform: translate(7%, 7%); }
.brand:hover .core { transform: rotate(90deg) scale(0.86); }
.wordmark { height: 17px; width: auto; fill: var(--ink); overflow: hidden; }
.wordmark path { transform-box: fill-box; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px 8px 12px;
  border: 1.5px solid var(--hair);
  border-radius: 999px;
  background: rgba(253, 252, 246, 0.8);
  font: 600 13px/1 "Inter", sans-serif;
  letter-spacing: 0.01em;
}
.dot { position: relative; width: 7px; height: 7px; border-radius: 1.5px; background: var(--cobalt); }
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 3px;
  border: 1.5px solid var(--cobalt);
  animation: ping 2.4s var(--out) infinite;
}
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 11svh, 140px) var(--pad-x) 0;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(16px, 2.6svh, 26px);
  font: 600 12px/1 "Inter", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow .sep { width: 6px; height: 6px; border-radius: 1px; background: var(--cobalt); }
.eyebrow .m, h1 .w { display: inline-block; overflow: clip; overflow-clip-margin: 0; vertical-align: top; }
.eyebrow .m > span, h1 .w > span { display: inline-block; }
h1 .w { padding: 0.02em 0.02em 0.14em; margin: -0.02em -0.02em -0.14em; }

h1 {
  margin: 0 auto;
  max-width: 15em;
  font: 800 clamp(36px, min(6.1vw, 8.6svh), 88px) / 0.98 "Inter Display", "Inter", sans-serif;
  letter-spacing: -0.045em;
}
h1 .ln { display: block; }
h1 .accent { color: var(--cobalt); }

/* ---------------------------------------------------------------- form */

.wait { margin: clamp(28px, 5svh, 48px) auto 0; width: min(500px, 100%); }
.field {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.35s var(--out);
}
.field:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 5px rgba(0, 69, 254, 0.12); }
.field input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 17px/1 "Inter", sans-serif;
  letter-spacing: -0.005em;
}
.field input::placeholder { color: #a19e94; }
.field .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 20px 0 22px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font: 600 16px/1 "Inter", sans-serif;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--spring);
}
.field button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--out);
}
.field button:hover::before, .field button:focus-visible::before { transform: scaleX(1); }
.field button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.field button:active { transform: scale(0.97); }
.arrow { width: 16px; height: 16px; transition: transform 0.45s var(--spring); }
.field button:hover .arrow { transform: translateX(3px); }
.busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.busy i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--paper); animation: tile 0.9s var(--io) infinite; }
.busy i:nth-child(2) { animation-delay: 0.12s; }
.busy i:nth-child(3) { animation-delay: 0.24s; }
@keyframes tile { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.wait.sending .label, .wait.sending .arrow { opacity: 0; }
.wait.sending .busy { opacity: 1; }
.wait.sending button::before { transform: scaleX(1); }

.done {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 66px;
  font: 700 22px/1 "Inter Display", sans-serif;
  letter-spacing: -0.02em;
}
.done svg { width: 28px; height: 28px; }
.wait.ok .field { display: none; }
.wait.ok .done { display: flex; animation: pop 0.7s var(--spring) both; }
.wait.ok .done svg { animation: spin-in 0.8s var(--spring) both; }
@keyframes pop { from { transform: translateY(14px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin-in { from { transform: rotate(-90deg) scale(0.2); } to { transform: none; } }
.wait.err .field { animation: shake 0.45s var(--io); border-color: var(--ink); }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

.note { margin: 12px 0 0; color: var(--muted); font-size: 13px; transition: color 0.2s; }
.wait.err .note { color: var(--ink); font-weight: 600; }
.wait.ok .note { color: var(--cobalt); font-weight: 600; }

/* ---------------------------------------------------------------- stage */

.stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(170px, 30svh, 260px);
  padding: clamp(12px, 2.4svh, 32px) var(--pad-x) clamp(16px, 2.6svh, 28px);
}
.line {
  display: block;
  width: 100%;
  max-width: min(1720px, 92vw);
  height: 100%;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.line .ground { stroke: var(--cobalt); stroke-width: 2; vector-effect: non-scaling-stroke; }
.line .rig { --acc: rgb(206, 203, 193); }
.line .rig .a { fill: var(--acc); }
.line .rig .as { stroke: var(--acc); }
.line .label { font: 600 23px "Inter", sans-serif; letter-spacing: 4px; fill: var(--ink); text-anchor: middle; transition: fill 0.25s; }
.line .label tspan { fill: var(--cobalt); }
.line .role { font: 500 21px "Inter", sans-serif; fill: var(--muted); text-anchor: middle; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.45s var(--out); }
.line .slot.on .label { fill: var(--cobalt); }
.line .slot.on .role { opacity: 1; transform: none; }
.line .hit { fill: transparent; cursor: pointer; }

.line .backdrop { font: 800 100px "Shift Condensed", "Arial Narrow", sans-serif; fill: var(--pale); }

/* ---------------------------------------------------------------- cursor */

.cur { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
html.cursor-on .cur { opacity: 1; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 1.5px; background: var(--cobalt); transition: opacity 0.2s, width 0.3s var(--spring), height 0.3s var(--spring), margin 0.3s var(--spring); }
.cur-c { width: 9px; height: 9px; border: 0 solid var(--ink); transition: border-color 0.2s, opacity 0.25s; }
.cur-c.c0 { border-top-width: 2px; border-left-width: 2px; }
.cur-c.c1 { border-top-width: 2px; border-right-width: 2px; }
.cur-c.c2 { border-bottom-width: 2px; border-left-width: 2px; }
.cur-c.c3 { border-bottom-width: 2px; border-right-width: 2px; }
html.cursor-on.framing .cur-c { border-color: var(--cobalt); }
html.cursor-on.framing .cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
html.cursor-on.texting .cur-dot { opacity: 0; }
html.cursor-on.pressing .cur-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-on, html.cursor-on a, html.cursor-on button, html.cursor-on .hit { cursor: none; }
  html.cursor-on input { cursor: text; }
}

/* ---------------------------------------------------------------- intro */

.js .mk::before, .js .mk::after, .js .reg::before { transform: scale(0); }
.js .reg::after { transform: scale(0) rotate(45deg); }
.go .mk::before { transform-origin: left; animation: grow 0.9s var(--out) 0.05s both; }
.go .mk.tr::before, .go .mk.br::before { transform-origin: right; }
.go .mk::after { transform-origin: top; animation: grow 0.9s var(--out) 0.12s both; }
.go .mk.bl::after, .go .mk.br::after { transform-origin: bottom; }
.go .reg::before { animation: grow 1.1s var(--out) 0.2s both; }
.go .reg::after { animation: pop-sq 0.8s var(--spring) 0.15s both; }
@keyframes grow { from { transform: scale(0); } to { transform: none; } }
@keyframes pop-sq { from { transform: scale(0) rotate(45deg); } to { transform: none; } }

.js .jaw-a { transform: translate(-34%, -34%); opacity: 0; }
.js .jaw-b { transform: translate(34%, 34%); opacity: 0; }
.js .core { transform: scale(0) rotate(-90deg); }
.go .jaw-a, .go .jaw-b { animation: snap 0.9s var(--spring) 0.1s both; }
.go .core { animation: core-in 0.9s var(--spring) 0.42s both; }
@keyframes snap { to { transform: none; opacity: 1; } }
@keyframes core-in { to { transform: none; } }
.go.settled .jaw, .go.settled .core { animation: none; opacity: 1; }
.go.settled .jaw-a, .go.settled .jaw-b { transform: none; }
.go.settled .core { transform: none; }
.go.settled .brand:hover .jaw-a { transform: translate(-7%, -7%); }
.go.settled .brand:hover .jaw-b { transform: translate(7%, 7%); }
.go.settled .brand:hover .core { transform: rotate(90deg) scale(0.86); }

.js .wordmark path { transform: translateY(105%); }
.go .wordmark path { animation: up 0.95s var(--spring) both; animation-delay: calc(0.2s + var(--i, 0) * 0.05s); }
.js .chip { opacity: 0; transform: translateY(-8px); }
.go .chip { animation: fade-up 0.8s var(--out) 0.35s both; }

.js .eyebrow .m > span, .js h1 .w > span { transform: translateY(110%); }
.go .eyebrow .m > span { animation: up 0.9s var(--out) both; animation-delay: calc(0.3s + var(--i, 0) * 0.08s); }
.js .eyebrow .sep { transform: scale(0); }
.go .eyebrow .sep { animation: pop-sq 0.7s var(--spring) 0.42s both; }
.go h1 .w > span { animation: up 1s var(--spring) both; animation-delay: calc(0.42s + var(--i, 0) * 0.055s); }
.js .wait { opacity: 0; transform: translateY(16px); }
.go .wait { animation: fade-up 1s var(--out) 0.95s both; }
@keyframes up { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 720px) {
  .reg, .mk { display: none; }
  .bar { padding: 14px 20px 0; }
  .logo { width: 28px; height: 29px; }
  .wordmark { height: 14px; }
  .chip { padding: 7px 12px 7px 10px; font-size: 12px; }
  .hero { padding: clamp(22px, 9svh, 80px) 20px 0; }
  .eyebrow { gap: 10px; font-size: 10.5px; letter-spacing: 0.14em; }
  h1 { font-size: clamp(31px, 9.4vw, 44px); line-height: 1.02; }
  .wait { margin-top: 26px; }
  .field { flex-direction: column; padding: 0; border: 0; gap: 10px; background: none; }
  .field:focus-within { box-shadow: none; }
  .field input { flex: none; height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
  .field input:focus { border-color: var(--cobalt); }
  .field button { justify-content: center; height: 52px; border-radius: 14px; }
  .eyebrow .sep, .eyebrow .m + .sep + .m { display: none; }
  .stage { min-height: 210px; padding: 18px 10px 14px; }
}


@media (prefers-reduced-motion: reduce) {
  .js *, .js *::before, .js *::after { animation: none !important; transition: none !important; }
  .js .mk::before, .js .mk::after, .js .reg::before, .js .reg::after,
  .js .jaw-a, .js .jaw-b, .js .core, .js .wordmark path, .js .chip,
  .js .eyebrow .m > span, .js .eyebrow .sep, .js h1 .w > span, .js .wait {
    transform: none; opacity: 1;
  }
  .dot::after { display: none; }
}
