/* omniarc — the landing page (index.html). One full screen per idea, snapped
   to as you scroll. Every animation is CSS, most of them driven by scroll
   position; a browser without scroll timelines shows each screen finished,
   and prefers-reduced-motion stops all of it. No script, no third-party
   requests: the two typefaces are served from fonts/ (SIL OFL 1.1, licences
   alongside). The other pages (joined, oops, busy, privacy) use style.css. */

@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #232a33; --night: #2b3442; --paper: #f6f3ea; --sand: #e9e4d6;
  --blue: #3a5a8c; --mustard: #f2d16b;
  --mono: "Space Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", ui-sans-serif, -apple-system, sans-serif;
  --pad: clamp(1.5rem, 7vw, 8rem);
}
@property --c { syntax: "<integer>"; inherits: true; initial-value: 52; }

* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: var(--sans); -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--paper); }

.screen {
  min-height: 100vh; min-height: 100dvh; scroll-snap-align: start;
  display: grid; align-items: center; gap: 4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 7rem var(--pad);
  position: relative; overflow: hidden;
}
@media (max-width: 900px) { .screen { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
/* On a phone most screens are taller than the viewport; proximity snapping
   never holds a reader away from the bottom half of one. The dots would sit
   on the text. */
@media (max-width: 900px) { html { scroll-snap-type: y proximity; } nav.dots { display: none; }
  .flow text:not(.rel-l) { display: none; } .flow .rel-l { font-size: 26px; transform: translateY(16px); }
  .how .term { overflow-x: auto; } .ln .cmd { flex-shrink: 0; } }

.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; margin: 0 0 1.4rem; opacity: .75; }
h2 { font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 1.6rem; }
p.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 34ch; margin: 0; opacity: .85; }
.hl { color: var(--blue); }

/* Chrome: a quiet wordmark top-left, one pill top-right, both always readable. */
.topbar { position: fixed; inset: 1.2rem 1.4rem auto; display: flex; justify-content: space-between; align-items: center; z-index: 10; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.wm { font-family: var(--mono); font-size: .9rem; background: var(--paper); color: var(--ink); padding: .35rem .7rem; border-radius: 99px; }
.wm b { font-weight: 700; }
a.wm { text-decoration: none; }
.topbar nav { display: flex; gap: .4rem; align-items: center; }
.topbar nav a:not(.cta) { font-family: var(--mono); font-size: .85rem; color: var(--ink); background: var(--paper); text-decoration: none; padding: .5rem .85rem; border-radius: 99px; }
.topbar nav a:not(.cta):hover { text-decoration: underline; }
.cta { font-family: var(--mono); font-size: .85rem; background: var(--ink); color: var(--paper); text-decoration: none; padding: .5rem .95rem; border-radius: 99px; transition: transform .2s; }
.cta:hover { transform: translateY(-2px); }
.dots { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); display: grid; gap: .55rem; z-index: 10; background: var(--paper); padding: .6rem .45rem; border-radius: 99px; }
.dots a { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ink); opacity: .25; display: block; transition: opacity .2s, transform .2s; }
.dots a:hover { opacity: .8; transform: scale(1.3); }

/* Text arrives as its screen does: scroll-driven, no script. */
@supports (animation-timeline: view()) {
  .rise > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(5vh); } }

/* ── 0 · Intro ───────────────────────────────────────────── */
.intro { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 0; }
.intro svg { width: min(58vw, 46vh, 30rem); height: auto; overflow: visible; }
/* backwards, not both: once drawn, the dash pattern goes away, or the ring keeps a hairline seam. */
.intro .draw { animation: draw-in 1.4s cubic-bezier(.6,0,.2,1) backwards; }
.intro .draw.ring { animation-duration: 1.8s; }
.intro .draw.t2 { animation-delay: .5s; } .intro .draw.t3 { animation-delay: .8s; }
.intro .node { animation: pop .4s cubic-bezier(.3,1.6,.5,1) both; transform-box: fill-box; transform-origin: center; }
.intro .node:nth-of-type(1) { animation-delay: 1.2s; } .intro .node:nth-of-type(2) { animation-delay: 1.35s; }
.intro .node:nth-of-type(3) { animation-delay: 1.5s; }  .intro .node:nth-of-type(4) { animation-delay: 1.65s; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes draw-in { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } }
.intro .name { font-weight: 400; font-family: var(--mono); font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -.06em; margin: 1.2rem 0 0; animation: fade .8s 1.4s both; }
.intro .name b { font-weight: 700; }
@keyframes fade { from { opacity: 0; transform: translateY(.6rem); } }
.intro .tag { font-family: var(--mono); font-size: clamp(1rem, 1.8vw, 1.35rem); margin: .8rem 0 0; display: inline-flex; }
.intro .tag span { display: inline-block; overflow: hidden; white-space: nowrap; width: 21ch; animation: type 1.3s steps(21) 2s both; }
.intro .tag::after { content: ""; width: .6ch; margin-left: .15ch; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes type { from { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.scrollhint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .75rem; opacity: .6; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, .4rem); } }
@supports (animation-timeline: scroll()) {
  .intro .stack { animation: away linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes away { to { transform: scale(.88) translateY(-6vh); opacity: 0; } }
}

/* ── 1 · How it works ────────────────────────────────────── */
.how { background: var(--blue); color: var(--paper); view-timeline: --how; }
.how .hl { color: var(--mustard); }
.term { background: var(--night); border-radius: 12px; padding: 1.4rem 1.5rem 1.6rem; font-family: var(--mono); font-size: clamp(.72rem, .95vw, .88rem); line-height: 1.9; color: #d9dde4; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); overflow: hidden; }
.term .bar { display: flex; gap: .4rem; margin-bottom: 1rem; }
.term .bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #4a5568; }
.ln { display: flex; white-space: nowrap; }
.ln .p { color: var(--mustard); margin-right: 1ch; }
.ln .cmd { display: inline-block; overflow: hidden; width: calc(var(--n) * 1ch); }
.out { opacity: .55; }
.out .ok { color: #9fd3a4; }
.out .t { color: var(--mustard); opacity: 1; }
@supports (animation-timeline: view()) {
  .ln .cmd { animation: type linear both; animation-timing-function: steps(var(--n)); animation-timeline: --how; }
  .out { animation: show linear both; animation-timeline: --how; }
  .l1 .cmd { animation-range: entry 35% entry 60%; } .o1 { animation-range: entry 60% entry 64%; }
  .l2 .cmd { animation-range: entry 64% entry 75%; } .o2 { animation-range: entry 75% entry 79%; }
  .l3 .cmd { animation-range: entry 79% entry 86%; } .o3 { animation-range: entry 86% entry 90%; }
}
@keyframes show { from { opacity: 0; } }

/* ── 2 · Cloning speed ───────────────────────────────────── */
.speed { background: var(--night); color: var(--paper); view-timeline: --speed; grid-template-columns: minmax(0, 1fr); gap: 0; align-content: center; }
.speed .top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
@media (max-width: 900px) { .speed .top { grid-template-columns: minmax(0, 1fr); } }
.num { font-family: var(--mono); font-weight: 700; font-size: clamp(5rem, 15vw, 13rem); line-height: .85; letter-spacing: -.08em; margin: 0; color: var(--mustard); counter-reset: c var(--c); }
.num::before { content: "0." counter(c, decimal-leading-zero); }
.num small { font-size: .25em; letter-spacing: 0; color: var(--paper); margin-left: .2em; }
@supports (animation-timeline: view()) {
  .num { animation: count linear both; animation-timeline: --speed; animation-range: entry 30% entry 90%; }
}
@keyframes count { from { --c: 0; } }
.stats { display: flex; flex-wrap: wrap; gap: 0 2.5rem; margin-top: 1.4rem; }
.stats div { font-size: .95rem; opacity: .85; }
.stats b { display: block; font-family: var(--mono); font-size: 1.5rem; letter-spacing: -.04em; color: var(--paper); }

/* The flow: production keeps shipping; previews branch off, and most of
   them merge, get killed, or just sleep for free. */
.flow { width: 100%; height: auto; margin-top: 3rem; overflow: visible; }
.flow text { font-family: var(--mono); font-size: 12px; fill: rgba(246,243,234,.7); }
.flow .trunk { stroke: url(#prod); stroke-width: 4; stroke-linecap: round; }
.flow .rel { fill: var(--mustard); }
.flow .rel-l { fill: var(--mustard); font-weight: 700; }
.flow .br { fill: none; stroke: rgba(246,243,234,.75); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.flow .merged { stroke: #9fd3a4; }
.flow .killed { stroke: #e08a7a; }
.flow .asleep { stroke: rgba(246,243,234,.5); opacity: .45; }
.flow .x { stroke: #e08a7a; stroke-width: 2.5; stroke-linecap: round; }
.flow .zz { fill: rgba(246,243,234,.55); animation: zz 2.8s ease-in-out infinite; }
.flow .zz:nth-of-type(2) { animation-delay: .5s; }
@keyframes zz { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.legend { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 1.4rem; font-family: var(--mono); font-size: .78rem; opacity: .75; }
.legend i { display: inline-block; width: 1.4rem; height: 2px; vertical-align: middle; margin-right: .5rem; }
@supports (animation-timeline: view()) {
  .flow .br, .flow .trunk { animation: draw linear both; animation-timeline: --speed; }
  .flow .trunk { stroke-dasharray: 1; animation-range: entry 20% entry 90%; }
  .flow .b1 { animation-range: entry 30% entry 50%; } .flow .b2 { animation-range: entry 38% entry 58%; }
  .flow .b3 { animation-range: entry 48% entry 68%; } .flow .b4 { animation-range: entry 55% entry 78%; }
  .flow .b5 { animation-range: entry 65% entry 85%; } .flow .b6 { animation-range: entry 75% entry 88%; }
  .flow .after { animation: show linear both; animation-timeline: --speed; }
  .flow .a1 { animation-range: entry 50% entry 53%; } .flow .a2 { animation-range: entry 58% entry 61%; }
  .flow .a3 { animation-range: entry 68% entry 71%; } .flow .a4 { animation-range: entry 78% entry 81%; }
  .flow .a5 { animation-range: entry 85% entry 88%; } .flow .a6 { animation-range: entry 88% entry 91%; }
  .flow .b4 { animation-name: draw-sleep; }
}
@keyframes draw-sleep { 0% { stroke-dashoffset: 1; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .35; } }

/* ── 3 · Why Europe ──────────────────────────────────────── */
.europe { background: var(--paper); }
.flag { position: relative; width: min(100%, 26rem); aspect-ratio: 1; justify-self: center; container-type: inline-size; }
.flag .ring { position: absolute; inset: 0; border: 1.5px solid var(--blue); border-radius: 50%; animation: spin 90s linear infinite; }
.flag .star { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--blue);
              transform: rotate(calc(var(--i) * 30deg)) translateY(-36cqw); }
.flag .star::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mustard); opacity: 0; animation: twinkle 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes twinkle { 0%, 30%, 100% { opacity: 0; transform: scale(1); } 10% { opacity: 1; transform: scale(1.5); } }
@keyframes spin { to { transform: rotate(360deg); } }
.flag .core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: .8rem; line-height: 1.7; opacity: .7; }
@media (max-width: 900px) { .flag { width: 18rem; } }

/* ── 4 · Your machines ───────────────────────────────────── */
.byo { background: var(--sand); }
.rack { display: grid; gap: .6rem; width: min(100%, 31rem); justify-self: center; }
.scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; opacity: .55; margin: 0 .2rem .2rem; }
.unit { border-radius: 10px; background: var(--paper); font-family: var(--mono); font-size: .88rem; transition: background .25s, color .25s, transform .25s; }
.unit summary, .unit .sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem 1rem; padding: 1rem 1.2rem; }
.unit summary::-webkit-details-marker { display: none; }
.unit:not([open]):hover { transform: translateX(4px); }
.unit[open] { background: var(--blue); color: var(--paper); }
.unit .when { font-size: .68rem; opacity: .75; }
.unit .ctl { grid-column: 2 / 4; display: flex; gap: 3px; align-items: center; font-size: .66rem; opacity: .75; }
.unit .ctl i { width: 1.1rem; height: 4px; border-radius: 2px; background: currentColor; opacity: .2; }
.unit .ctl i.f { opacity: 1; background: var(--blue); }
.unit[open] .ctl i.f { background: var(--mustard); }
.unit .ctl span { margin-left: .5rem; }
.unit .body { padding: 0 1.2rem 1.2rem 3.4rem; font-family: var(--sans); font-size: .95rem; line-height: 1.55; }
.unit .body p { margin: 0 0 .6rem; }
.unit .body ul { margin: 0; padding-left: 1.1rem; opacity: .85; font-size: .88rem; }
.unit::details-content { height: 0; overflow: clip; transition: height .35s ease, content-visibility .35s allow-discrete; }
.unit[open]::details-content { height: auto; }
:root { interpolate-size: allow-keywords; }
.unit .leds { display: flex; gap: .3rem; }
.unit .leds i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .25; }
.unit .leds i:nth-child(1) { background: #6fbf73; opacity: 1; animation: led 2.6s steps(1) infinite; }
.unit .leds i:nth-child(2) { animation: led 1.3s steps(1) infinite .4s; }
.unit:nth-of-type(3) .leds i:nth-child(2) { animation-duration: .7s; }
.unit:nth-of-type(4) .leds i:nth-child(2) { animation-duration: 3.1s; }
@keyframes led { 50% { opacity: .9; } }
.unit.us { background: transparent; border: 1.5px dashed rgba(35,42,51,.3); color: rgba(35,42,51,.72); }
.unit.us summary { cursor: default; }
.unit.us .leds i:nth-child(1) { background: #c9a227; }
.unit.us .ctl i.f { background: rgba(35,42,51,.5); }
.unit.us:hover { transform: none; }
.hint { font-family: var(--mono); font-size: .72rem; opacity: .65; margin: .4rem .2rem 0; }
.soon { display: inline-block; font-family: var(--mono); font-size: .72rem; border: 1px solid currentColor; border-radius: 99px; padding: .15rem .6rem; margin-left: .6rem; opacity: .6; vertical-align: middle; letter-spacing: 0; }

/* ── 5 · Join ────────────────────────────────────────────── */
.join { background: var(--paper); grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 0; }
.join h2 { max-width: 15ch; }
.join .mark { background-repeat: no-repeat; background-size: 100% 100%; background-image: linear-gradient(transparent 58%, var(--mustard) 58%, var(--mustard) 92%, transparent 92%); padding: 0 .1em; white-space: nowrap; }
@supports (animation-timeline: view()) {
  .join .mark { background-repeat: no-repeat; animation: marker linear both; animation-timeline: view(); animation-range: entry 50% entry 100%; }
}
@keyframes marker { from { background-size: 0% 100%; } }
.join form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }
.join input { font-family: var(--mono); font-size: 1rem; padding: 1rem 1.2rem; border-radius: 8px; border: 1.5px solid var(--ink); min-width: min(22rem, 80vw); background: #fff; color: var(--ink); caret-color: var(--blue); transition: box-shadow .2s; }
.join input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.join button { font-family: var(--mono); font-size: 1rem; font-weight: 700; padding: 1rem 1.5rem; border-radius: 8px; border: 0; background: var(--blue); color: var(--paper); cursor: pointer; transition: transform .2s, background .2s; }
.join button:hover { transform: translateY(-2px); background: var(--ink); }
.join .fine { font-size: .85rem; opacity: .75; margin-top: 2.2rem; }
.join .fine a { color: inherit; }
.join .status { font-family: var(--mono); font-size: .75rem; opacity: .65; margin-top: .6rem; }

/* Read by screen readers, not shown. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The honeypot: off-screen rather than display:none, which some bots know to skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.speed .note { font-size: .8rem; opacity: .65; margin: 1.6rem 0 0; max-width: 70ch; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
