/* Anchialus — site styles. One file, no framework, no third-party fonts. */
:root {
  --bg: #000;
  --bg-2: #0b0c0e;
  --surface: #101114;
  --line: #22252a;
  --line-2: #2e3238;
  --text: #e9ebee;
  --text-2: #b4b9c0;
  --muted: #858b94;
  --silver: #c9cdd3;
  --accent: #79c6d8;          /* sonar cyan, used sparingly */
  --accent-dim: rgba(121, 198, 216, .14);
  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; color: var(--text-2); }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 15px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; color: var(--text-2); font-size: .95rem; letter-spacing: .02em;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle svg { margin: 0 auto; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: rgba(5, 5, 6, .97); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .brand img.word { height: 13px; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 0 22px; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--muted); background: var(--surface); }
.btn.primary { background: var(--text); color: #0a0b0c; border-color: var(--text); }
.btn.primary:hover { background: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 0 0 80px; overflow: hidden; }
.hero-art {
  width: min(720px, 100%); margin: 0 auto 8px;
  aspect-ratio: 2 / 1;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 58%, transparent 100%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { max-width: 20ch; margin: 0 auto; }
.hero .lede { max-width: 640px; margin: 22px auto 32px; font-size: clamp(1.04rem, 1.6vw, 1.2rem); }
.hero .btns { justify-content: center; }

.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 680px; margin-top: 20px; font-size: clamp(1.04rem, 1.6vw, 1.2rem); }

.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font: 600 .74rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}

/* ---------- sections ---------- */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { margin-top: 16px; font-size: 1.06rem; }

.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.c2, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .98rem; }
.card .icon { width: 36px; height: 36px; margin-bottom: 18px; color: var(--accent); }
.card .num { font: 600 .78rem/1 var(--mono); color: var(--muted); letter-spacing: .1em; margin-bottom: 16px; }

/* split: text + aside */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* list with ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--accent);
}
.ticks strong { color: var(--text); font-weight: 600; }

/* status strip */
.status {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; box-shadow: 0 0 0 6px var(--accent-dim); }
.status p:last-child { margin-bottom: 0; }

/* steps (discover → adapt) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { list-style: none; padding: 24px 20px; border-right: 1px solid var(--line); background: var(--surface); }
.steps li:last-child { border-right: 0; }
.steps .k { font: 600 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; display: block; }
.steps h3 { font-size: 1rem; margin-bottom: 8px; }
.steps p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
}

/* stack diagram */
.stack { display: grid; gap: 10px; }
.stack .layer {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 14px 18px; background: var(--surface);
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.stack .layer span { color: var(--muted); font-size: .86rem; text-align: right; }
.stack .layer b { font-weight: 600; }
.stack .layer.cadmc { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-dim), transparent 80%); }
.stack .link { text-align: center; font: 500 .74rem/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
@media (max-width: 520px) { .stack .layer { flex-direction: column; gap: 2px; } .stack .layer span { text-align: left; } }

/* decide diagram */
.decide { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 460px; margin: 0 auto; }
.decide .box { border: 1px solid var(--line-2); border-radius: 8px; padding: 18px; background: var(--surface); }
.decide .box.rule { border-color: var(--accent); }
.decide .box small { display: block; font: 600 .7rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; }
.decide .box.rule small { color: var(--accent); }
.decide .box p { margin: 0; font-size: .94rem; }
.decide .arr { justify-self: center; color: var(--muted); transform: rotate(90deg); line-height: 1; }


/* tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: .9rem; color: var(--text-2); }

/* founder */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.founder .portrait {
  aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 40%, #1a1c20, #08090a);
  display: grid; place-items: center;
}
.founder .portrait img { width: 52%; opacity: .85; }
.founder .role { color: var(--accent); font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin: 6px 0 18px; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; gap: 24px; } .founder .portrait { width: 140px; } }

/* cta band */
.cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201,205,211,.07), transparent 70%); }
.cta h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta p { max-width: 560px; margin: 0 auto 30px; }
.cta .btns { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot .brand img.mark { width: 26px; height: 26px; }
.foot .brand img.word { height: 11px; }
.fine { margin-top: 24px; font-size: .82rem; color: var(--muted); }

/* reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* small utilities (no inline styles, so the CSP can forbid them) */
.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
.hi { color: var(--text); font-weight: 600; }
.eyebrow.tight { margin-bottom: 8px; }
.mark-404 { margin: 0 auto 24px; }

/* ---------- display font: Michroma (SIL OFL 1.1, self-hosted; licence in assets/fonts/OFL.txt) ----------
   Wide, squared letterforms that echo the logo wordmark. One weight (400), so headings are never faux-bolded. */
@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/michroma-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root { --display: "Michroma", var(--font); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1.28; }
h1 { font-size: clamp(1.6rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.hero h1 { max-width: 24ch; }
.page-hero h1 { max-width: 24ch; }
.cta h2 { max-width: 26ch; }
.eyebrow, .nav-links a, .btn, .founder .role, .steps .k, .card .num, .decide .box small, .status .eyebrow {
  font-family: var(--display); font-weight: 400;
}
.eyebrow { font-size: .66rem; letter-spacing: .2em; }
.nav-links a { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.btn { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.card .num, .steps .k, .decide .box small { font-size: .64rem; letter-spacing: .14em; }
.founder .role { font-size: .7rem; }
@media (max-width: 720px) { .nav-links a { font-size: .86rem; } }

/* home teaser */
.teaser { text-align: center; max-width: 820px; }
.teaser h2 { margin-bottom: 14px; }
.teaser p { font-size: 1.08rem; margin: 0 auto 26px; max-width: 560px; }
.chips.markets { justify-content: center; }
.split.top { align-items: start; }
.teaser p { margin-bottom: 10px; }
.teaser .triad { font-family: var(--display); font-size: clamp(.8rem, 1.6vw, .98rem); letter-spacing: .04em; line-height: 1.8; color: var(--text); margin: 18px auto 28px; max-width: none; }
