/* KALYPSO site. Black, white and one grey (#dddedf), in a dark and a white theme. Geist. Hairlines.
   One strong first screen, then four short sections inside a framed column. */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #000;
  --panel: #0a0a0c;
  --panel-2: #121215;
  --panel-3: #19191d;
  --line: #1a1a1e;
  --line-2: #26262c;
  --line-3: #34343c;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #73737c;
  /* Black, white and one grey. */
  --accent: #dddedf;
  --accent-2: #ffffff;
  --accent-hi: #dddedf;
  --accent-ink: #dddedf;
  --accent-soft: rgba(221, 222, 223, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --col: 1120px;
  /* Line work (Kalypso, the layers) is drawn in this colour, as an rgb triplet. */
  --ink: 236 236 240;
  --accent-fg: #0a0a0c;
  --frame: #050506;
  --stage: #070708;
  --shadow: rgba(0, 0, 0, 0.9);
  /* The one place colour comes in: soft gradients, Vercel-style. */
  /* Gradients in white and greys; one pop of light pink, beside Kalypso. */
  --g1: #ffffff;
  --g2: #9a9aa3;
  --g3: #dddedf;
  --g4: #5e5e66;
  --pink: #ffb8d2;
  --glow: 0.28;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --panel: #fafafa;
  --panel-2: #f4f4f5;
  --panel-3: #ececef;
  --line: #ededf0;
  --line-2: #e2e2e7;
  --line-3: #cfcfd6;
  --text: #0a0a0b;
  --text-2: #52525b;
  --text-3: #6b6b75;
  --accent: #1a1a1a;
  --accent-2: #000000;
  --accent-hi: #1a1a1a;
  --accent-ink: #1a1a1a;
  --accent-soft: rgba(26, 26, 26, 0.06);
  --ink: 20 20 24;
  --accent-fg: #ffffff;
  --frame: #fbfbfc;
  --stage: #fafafa;
  --shadow: rgba(20, 20, 30, 0.16);
  --g1: #1a1a1d;
  --g2: #8b8b94;
  --g3: #3f3f46;
  --g4: #b4b4bb;
  --pink: #ff9cc1;
  --glow: 0.22;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-fg); }
.i { width: 16px; height: 16px; flex: none; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.spacer { flex: 1; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--text); color: var(--bg); border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

/* The frame: two hairlines down the page at the column's edges. */
.rails { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rails::before { left: calc(50% - var(--col) / 2); }
.rails::after { right: calc(50% - var(--col) / 2); }
main, .nav, .footer { position: relative; z-index: 1; }
main > section { max-width: var(--col); margin: 0 auto; padding: 0 48px; }
main > section + section { border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-3); background: var(--panel-2); color: var(--text); font: 500 15px var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.sm { height: 34px; padding: 0 16px; font-size: 13.5px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--col); margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.08em; font-size: 14px; }
.nav-link { color: var(--text-2); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.nav-link:hover, .nav-link.on { color: var(--text); }
.stars { font: 12px var(--mono); color: var(--text-2); padding: 1px 7px; border: 1px solid var(--line-3); border-radius: 999px; }
[data-stars][hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { display: grid !important; grid-template-columns: auto minmax(0, 1.1fr); gap: 48px; align-items: center; padding-top: 96px !important; padding-bottom: 88px !important; min-height: min(86dvh, 780px); }
.hero-copy { min-width: 0; }
h1 span { white-space: nowrap; }
h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.08; letter-spacing: -0.05em; font-weight: 640; margin: 0 0 24px; padding-bottom: 6px; }
h1 em { font-style: italic; color: var(--accent-hi); padding-right: 0.05em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 27em; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.gh-line { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.gh-line:hover { color: var(--text); }
.gh-line .i:last-child { width: 13px; height: 13px; }
/* Kalypso, drawn in code: characters on a canvas (main.js). */
.portrait { order: -1; margin: 0; width: clamp(300px, 36vw, 500px); user-select: none; }
.portrait canvas { display: block; width: 100%; touch-action: pan-y; }

/* Tide lines: our own sea, drawn as thin contours either side of the headline. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
  .stage { animation: rise 1.2s var(--ease) 0.3s both; }
}
@keyframes mark-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- The live window ---------- */
main > .stage { padding: 0 24px 72px; border-top: 0; }
.win {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); height: 500px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--stage); box-shadow: 0 60px 140px -60px var(--shadow);
}
.win-side { display: flex; flex-direction: column; padding: 14px 10px; border-right: 1px solid var(--line); }
.ws-ns { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.ws-ns b { display: block; font-weight: 500; font-size: 13px; line-height: 1.2; }
.ws-ns span { font-size: 11.5px; color: var(--text-3); }
.ws-nav { display: grid; gap: 2px; }
.ws-nav button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none;
  color: var(--text-2); font: 13px var(--font); text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.ws-nav button:hover { color: var(--text); background: var(--panel-2); }
.ws-nav button.on { color: var(--text); background: var(--panel-3); }
.ws-nav .i { width: 15px; height: 15px; color: var(--text-3); }
.ws-nav button.on .i { color: var(--accent-hi); }
.ws-nav em { margin-left: auto; font: normal 11px var(--mono); color: var(--text-3); }
.ws-hint { margin: auto 6px 4px; font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.win-main { position: relative; min-width: 0; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease); }
.panel.on { opacity: 1; visibility: visible; }
.win-top { display: flex; align-items: center; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-3); flex: none; }
.win-top .crumb i { font-style: normal; margin: 0 6px; }
.win-top .crumb b { color: var(--text); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; }
.status span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); }
.status.done span { background: var(--text); }
.win-body { padding: 18px 22px 0; display: flex; flex-direction: column; min-height: 0; flex: 1; text-align: left; }
.task { font-size: 13.5px; color: var(--text-2); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.task span { font: 500 11px var(--mono); color: var(--text-3); margin-right: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.log { list-style: none; margin: 0; padding: 4px 0 18px; overflow: hidden; flex: 1; min-height: 0; font: 12.5px/1.6 var(--mono); color: var(--text-2); display: flex; flex-direction: column; justify-content: flex-end; }
.log li { padding: 2px 0; overflow-wrap: anywhere; flex: none; }
.log li.new { animation: line-in 0.35s var(--ease) both; }
.log .k-status { color: var(--text-3); font-style: italic; }
.log .k-text { font: 14px/1.5 var(--font); color: var(--text); margin: 6px 0; }
.log .k-tool::before { content: "› "; color: var(--accent-hi); }
.log .k-tool b { color: var(--text); font-weight: 500; margin-right: 8px; }
.log .k-output { color: var(--text-3); padding-left: 14px; }
.log .k-policy { color: var(--text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.log .k-policy b { color: var(--accent-ink); font-weight: 500; }
.log .k-result { color: var(--text); font-weight: 500; margin-top: 6px; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } }
.rows { list-style: none; margin: 0; padding: 8px 18px; text-align: left; }
.rows li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 0; font-size: 13.5px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows b { font-weight: 500; }
.rows span { color: var(--text-2); }
.rows em { font-style: normal; font: 12px var(--mono); color: var(--text-3); }
.meters { display: grid; gap: 22px; padding: 24px 22px 8px; text-align: left; }
.meters p { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 13.5px; color: var(--text-2); }
.meters b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.meters small { color: var(--text-3); font-weight: 400; }
.meter { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent-hi); transition: width 0.6s var(--ease); }
.meter.warn span { background: var(--text); }
.note { margin: auto 22px 20px; padding-top: 16px; font-size: 13px; color: var(--text-3); text-align: left; }

.logos { list-style: none; margin: 48px 0 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; }
.logos svg { width: 22px; height: 22px; fill: var(--text-3); transition: fill 0.2s; }
.logos li:hover svg { fill: var(--text); }

/* ---------- Sections ---------- */
.label { margin: 0 0 18px; font: 500 12px var(--mono); color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 14px; }
.sub { color: var(--text-2); font-size: 17px; margin: 0 0 36px; }

.three { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 !important; }
.three article { padding: 72px 40px 80px; }
.three article + article { border-left: 1px solid var(--line); }
.three h2 { font-size: 26px; letter-spacing: -0.025em; margin-bottom: 12px; }
.three p:not(.label) { margin: 0; color: var(--text-2); font-size: 15.5px; }

.get, .faq { padding-top: 88px !important; padding-bottom: 96px !important; }
.oses { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.oses li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; transition: background 0.2s; }
.oses li + li { border-top: 1px solid var(--line); }
.oses li:hover { background: var(--panel); }
.oses li .i { width: 22px; height: 22px; color: var(--text-2); }
.oses li div { flex: 1; min-width: 0; }
.oses b { display: block; font-weight: 600; }
.oses span { font-size: 13.5px; color: var(--text-3); }
.oses a { font: 500 13px var(--mono); color: var(--text-2); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line-3); border-radius: 999px; transition: all 0.2s; }
.oses a:hover { color: var(--text); border-color: var(--text-3); }
.oses li.mine { background: var(--panel); }
.oses li.mine a:not(.alt) { background: var(--text); color: var(--bg); border-color: var(--text); }
.oses li.mine b::after { content: "Your system"; margin-left: 10px; font: 500 11px var(--mono); color: var(--accent-ink); }
.fine { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.fine a { text-decoration: none; color: var(--text-2); }
.fine a:hover { color: var(--text); }

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 22px/1 var(--font); color: var(--text-3); transition: transform 0.3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: -4px 0 22px; color: var(--text-2); }

.footer { max-width: var(--col); margin: 0 auto; padding: 28px 48px 44px; display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .brand { color: var(--text-2); font-size: 12.5px; }

/* Sections ease in once (only when the script runs). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------- Narrow ---------- */
@media (max-width: 1180px) { .rails { display: none; } }
@media (max-width: 860px) {
  .win { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 540px; }
  .win-side { flex-direction: row; align-items: center; gap: 8px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .ws-ns, .ws-hint { display: none; }
  .ws-nav { display: flex; }
  .ws-nav button { white-space: nowrap; width: auto; }
  .ws-nav em { display: none; }
  .three { grid-template-columns: 1fr; }
  .three article { padding: 48px 16px; }
  .three article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  main > section, .footer, .nav-inner { padding-left: 16px !important; padding-right: 16px !important; }
  main > .stage { padding: 0 12px 56px !important; }
  .nav-link.gh span:not(.stars) { display: none; }
  .nav-link[href="#layers"] { display: none; }
  h1 { font-size: 32px; }
  .lede { font-size: 17px; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows li span { display: none; }
  .oses li { flex-wrap: wrap; }
  .oses li div { flex-basis: calc(100% - 40px); }
  .get, .faq { padding-top: 64px !important; padding-bottom: 72px !important; }
}

/* ---------- Layers ---------- */
main > .layers { padding-top: 96px; padding-bottom: 104px; }
.layers .sub { margin: 0 0 40px; }
/* ---------- The layers: a stack of mesh plates the call rises through ---------- */
.isle { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; border: 1px solid var(--line-2); border-radius: 16px; background: var(--frame); overflow: hidden; }
.stack-map { display: block; width: 100%; max-width: 1000px; height: auto; padding: 24px 16px 0; font-family: var(--mono); }
.stack-map .wire { fill: none; stroke: rgb(var(--ink) / 0.4); stroke-width: 1; }
.stack-map .ghost-path { fill: none; stroke: none; }
.stack-map .ghost { fill: none; stroke: rgb(var(--ink) / 0.14); stroke-width: 1; stroke-dasharray: 2 5; }
.stack-map .plate { cursor: pointer; outline: none; transition: transform 0.45s var(--ease), opacity 0.35s; }
.stack-map .face { fill: var(--frame); fill-opacity: 0.94; }
.stack-map .slab { fill: var(--frame); }
.stack-map .side { fill: none; stroke: rgb(var(--ink) / 0.5); stroke-width: 1; stroke-linejoin: round; }
.stack-map .mesh { fill: none; stroke: rgb(var(--ink) / 0.24); stroke-width: 0.8; transition: stroke 0.3s; }
.stack-map .rim { fill: none; stroke: rgb(var(--ink) / 0.7); stroke-width: 1.1; stroke-linejoin: round; transition: stroke 0.3s; }
.stack-map .node { fill: rgb(var(--ink) / 0.8); }
.stack-map .pierce { fill: rgb(var(--ink)); }
.stack-map .leader { fill: none; stroke: rgb(var(--ink) / 0.3); stroke-width: 1; stroke-dasharray: 2 4; }
.stack-map .p-num { font-size: 12px; letter-spacing: 0.14em; fill: var(--text-3); }
.stack-map .p-label { font-size: 13px; letter-spacing: 0.2em; fill: var(--text); }
.stack-map .p-sub { font: 400 14px var(--font); fill: var(--text-2); }
.stack-map .agent { fill: rgb(var(--ink)); }
.stack-map .agent-ring { fill: none; stroke: rgb(var(--ink) / 0.5); }
.stack-map .a-label { font-size: 12px; letter-spacing: 0.2em; fill: var(--text-2); }
.stack-map .model { fill: rgb(var(--ink)); }
.stack-map .m-label { font: 500 15px var(--font); fill: var(--text); }
.stack-map .stop path { stroke: #e5484d; stroke-width: 2; stroke-linecap: round; }
.stack-map .ask { fill: none; stroke: rgb(var(--ink)); stroke-width: 1.2; }
.stack-map .tag rect { fill: var(--frame); stroke: rgb(var(--ink) / 0.2); }
.stack-map .tag text { font-size: 11px; fill: var(--text-2); }
.stack-map .packet { fill: rgb(var(--ink)); }
.stack-map .packet.bad { fill: #e5484d; }
.stack-map :is(.wire, .ghost, .stop, .ask, .tag, .packet, .agent, .agent-ring, .model, .m-label, .a-label) { pointer-events: none; }
/* One layer picked: it lifts out of the stack and the others step back. */
.isle[data-on] .plate { opacity: 0.4; }
.isle[data-on="sandbox"] [data-layer="sandbox"], .isle[data-on="policies"] [data-layer="policies"],
.isle[data-on="vault"] [data-layer="vault"], .isle[data-on="gateway"] [data-layer="gateway"] { opacity: 1; transform: translateY(-14px); }
.isle[data-on="sandbox"] [data-layer="sandbox"] .mesh, .isle[data-on="policies"] [data-layer="policies"] .mesh,
.isle[data-on="vault"] [data-layer="vault"] .mesh, .isle[data-on="gateway"] [data-layer="gateway"] .mesh { stroke: rgb(var(--ink) / 0.55); }
.isle[data-on="sandbox"] [data-layer="sandbox"] .rim, .isle[data-on="policies"] [data-layer="policies"] .rim,
.isle[data-on="vault"] [data-layer="vault"] .rim, .isle[data-on="gateway"] [data-layer="gateway"] .rim { stroke: rgb(var(--ink)); }
.stack-map .plate:focus-visible .rim { stroke: rgb(var(--ink)); }
@media (prefers-reduced-motion: no-preference) {
  .stack-map .ask { animation: ask 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes ask { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stack-map .packet { display: none; } .stack-map .plate { transition: none; } }
.isle-note { margin: 0; padding: 4px 24px 26px; min-height: 1.6em; text-align: center; font-size: 15px; color: var(--text-3); transition: color 0.3s; }
.isle-note.on { color: var(--text); }
@media (max-width: 640px) {
  .stack-map { padding: 12px 2px 0; }
  .stack-map .p-sub, .stack-map .tag { display: none; }
  .stack-map .p-label { font-size: 20px; letter-spacing: 0.1em; }
  .stack-map .p-num { font-size: 18px; }
  .stack-map .m-label { font-size: 22px; }
  .stack-map .a-label { font-size: 18px; }
}

/* ---------- In the app: tabs over real screens ---------- */
.show { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; margin-top: 96px; align-items: start; }
.show-side { position: relative; min-height: 220px; padding-top: 64px; }
.show-copy { position: absolute; inset: 64px 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.show-copy.on { opacity: 1; transform: none; pointer-events: auto; }
.show-copy h3 { margin: 0 0 14px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.show-copy p { margin: 0; color: var(--text-2); font-size: 16.5px; line-height: 1.55; }
.show-tabs { position: relative; display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.show-tabs::-webkit-scrollbar { display: none; }
.show-tabs button {
  position: relative; flex: 1 0 auto; padding: 18px 18px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: none;
  font: 500 15px var(--mono); letter-spacing: 0.12em; color: var(--text-3); text-align: left; cursor: pointer; transition: color 0.25s, border-color 0.25s;
}
.show-tabs button:hover { color: var(--text-2); }
.show-tabs button[aria-selected="true"] { color: var(--text); border-color: var(--line-2); }
/* The bar on the chosen tab fills while it's shown, then the next tab takes over. */
.show-tabs .bar { position: absolute; left: 14px; right: 14px; top: 0; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; opacity: 0; transition: opacity 0.25s; }
.show-tabs button[aria-selected="true"] .bar { opacity: 1; }
.show-tabs .bar::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(var(--p, 1)); }
/* The screen is absorbed into the page: its right and bottom edges fade into the background,
   and it runs a little past the column, like a window you're looking into. */
.show-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); outline: none;
  width: calc(100% + 72px);
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 78%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%); mask-composite: intersect; }
@media (prefers-reduced-motion: no-preference) {
  .show-frame { transform: translateY(18px); opacity: 0.6; transition: transform 1s var(--ease), opacity 1s var(--ease); }
  .show.in .show-frame { transform: none; opacity: 1; }
}
.show-shot .lt { display: none; }
[data-theme="light"] .show-shot .dk { display: none; }
[data-theme="light"] .show-shot .lt { display: block; }
@media (max-width: 1240px) { .show-frame { width: 100%; } }
.show-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; }
.show-shot.on { opacity: 1; pointer-events: auto; }
.show-shot picture, .show-shot img { display: block; width: 100%; height: 100%; border-radius: 13px; overflow: hidden; }
.show-shot img { object-fit: cover; object-position: top left; }
/* The callout: a pin on the thing that matters, and a label beside it. */
.show-shot .pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid var(--bg); background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.show-shot .callout {
  position: absolute; transform: translate(28px, calc(-100% - 25px)); padding: 9px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-fg);
  font: 500 15px var(--font); white-space: nowrap; box-shadow: 0 12px 30px -12px var(--shadow);
}
/* The leader runs from the pin up to the bubble's near corner. */
.show-shot .leader { position: absolute; width: 38px; height: 1.5px; background: var(--accent); transform-origin: 0 50%; transform: rotate(-40deg); }
.show-shot[data-tab="policies"] .callout, .show-shot[data-tab="sandboxes"] .callout { transform: translate(calc(-100% - 28px), calc(-100% - 25px)); }
.show-shot[data-tab="policies"] .leader, .show-shot[data-tab="sandboxes"] .leader { transform: rotate(-140deg); }
/* Near the top edge: the label hangs below the pin instead. */
.show-shot[data-tab="agents"] .callout { transform: translate(28px, 25px); }
.show-shot[data-tab="agents"] .leader { transform: rotate(40deg); }
@media (prefers-reduced-motion: no-preference) {
  .show-shot.on .pin { animation: pin-in 0.6s var(--ease) 0.25s both; }
  .show-shot.on .callout, .show-shot.on .leader { animation: callout-in 0.6s var(--ease) 0.35s both; }
}
@keyframes pin-in { from { transform: scale(0.4); opacity: 0; } }
@keyframes callout-in { from { opacity: 0; margin-top: 8px; } }
@media (max-width: 1080px) {
  .show { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 64px; }
  .show-side { min-height: 150px; padding-top: 0; }
  .show-copy { inset: 0 0 auto 0; }
}
@media (max-width: 640px) {
  .show-tabs button { padding: 12px 12px 9px; font-size: 12px; }
  .show-shot .callout { font-size: 12px; padding: 6px 10px; white-space: normal; width: max-content; max-width: 46vw; }
}

@media (max-width: 1080px) {

}
@media (max-width: 640px) {
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-top: 64px !important; }
  .portrait { order: 0; width: min(400px, 86vw); justify-self: center; }
}

/* Theme toggle in the nav. */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text-2); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.theme-btn:hover { color: var(--text); border-color: var(--line-3); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
[data-theme="light"] img[src^="assets/mark"] { filter: invert(1); }

/* ---------- Vercel-style framing ---------- */
/* Where a section line meets the column's edges, a small cross marks the corner of the frame. */
main > section { position: relative; }
main > section + section::before, main > section + section::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(var(--line-3), var(--line-3)) center / 1px 100% no-repeat, linear-gradient(var(--line-3), var(--line-3)) center / 100% 1px no-repeat;
}
main > section + section::before { left: -6px; }
main > section + section::after { right: -6px; }
@media (max-width: 1180px) { main > section + section::before, main > section + section::after { display: none; } }

/* Hero: the two pill buttons side by side, the secondary one outlined. */
.cta .btn:not(.primary) { background: transparent; border-color: var(--line-3); }
.cta .btn:not(.primary):hover { background: var(--panel-2); }
.cta .btn .stars { margin-left: 2px; }

/* Works with: the logos in a framed row of cells. */
.logos-title { margin: 56px 0 14px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.logos { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 0 !important; margin: 0 !important; padding: 0 !important;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { display: grid; place-items: center; height: 76px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.2s; }
.logos li:hover { background: var(--panel); }

/* Ask: the master agent, beside the real screen. */
main > .ask { padding-top: 104px; padding-bottom: 0; overflow: hidden; }
.ask-copy { max-width: 760px; }
.ask-copy h2 { max-width: 16em; }
.ask .sub { margin-bottom: 28px; }
.ask-points { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; }
.ask-points li { padding-left: 16px; border-left: 1px solid var(--line-3); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.ask-points b { color: var(--text); font-weight: 500; }
.ask-shot { margin: 0 0 -1px; width: 100%; border-bottom: 0; border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--panel);
  box-shadow: 0 50px 120px -60px var(--shadow);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.ask-shot img { width: 100%; height: auto; }
.ask-shot .lt { display: none; }
[data-theme="light"] .ask-shot .dk { display: none; }
[data-theme="light"] .ask-shot .lt { display: block; }
@media (max-width: 860px) { main > .ask { padding-top: 72px; } .ask-points { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; } }

/* The three guarantees: an icon over each, in the framed grid. */
.g-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); }
.g-icon .i { width: 18px; height: 18px; }

/* Footer: the brand, then three columns of links. */
.footer { display: grid !important; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; padding-top: 56px !important; padding-bottom: 72px !important; }
.foot-brand p { margin: 14px 0 0; max-width: 24em; color: var(--text-3); font-size: 14px; }
.foot-col { display: grid; gap: 10px; font-size: 14px; }
.foot-col b { color: var(--text); font-weight: 500; margin-bottom: 4px; }
.foot-col a { color: var(--text-3); }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 640px) { .nav-link[href="#ask"], .nav-link[href="#faq"] { display: none; } .nav-inner { gap: 14px; } }

/* ---------- Colour: soft glows behind key moments ---------- */
.hero, main > .ask, main > .get { isolation: isolate; }
.hero::after, main > .ask::after, main > .get::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: var(--glow);
}
/* Behind Kalypso: a quiet aurora. */
.hero { position: relative; }
.hero::after { left: -8%; top: 2%; width: 66%; height: 94%;
  background: radial-gradient(40% 38% at 36% 40%, var(--g1), transparent 70%), radial-gradient(34% 32% at 44% 72%, var(--g2), transparent 72%),
    radial-gradient(26% 24% at 64% 28%, var(--g3), transparent 72%); }
/* The pop: one soft light-pink glow just beside her face. */
.portrait { position: relative; }
.portrait::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -20%; top: 4%; width: 140%; height: 92%;
  background: radial-gradient(closest-side, var(--pink), transparent); opacity: 0.4; filter: blur(30px); }
@media (prefers-reduced-motion: no-preference) { .portrait::before { animation: pop 7s ease-in-out infinite alternate; } }
@keyframes pop { from { opacity: 0.3; transform: scale(0.96); } to { opacity: 0.46; transform: scale(1.03); } }
@media (prefers-reduced-motion: no-preference) { .hero::after { animation: aurora 18s ease-in-out infinite alternate; } }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -2%) scale(1.05); } 100% { transform: translate(-2%, 3%) scale(0.98); } }
/* Above the Ask screen: light spilling from the product. */
main > .ask::after { left: 10%; right: 10%; bottom: 0; height: 60%;
  background: radial-gradient(50% 60% at 30% 100%, var(--g2), transparent 70%), radial-gradient(45% 55% at 70% 100%, var(--g4), transparent 70%); }
.ask-shot { position: relative; }
/* Behind the download: a low horizon. */
main > .get::after { left: 0; right: 0; top: 0; height: 70%;
  background: radial-gradient(40% 50% at 30% 0%, var(--g1), transparent 70%), radial-gradient(40% 50% at 70% 0%, var(--g3), transparent 70%); opacity: calc(var(--glow) * 0.8); }
/* The headline of the Ask section carries the gradient. */
.ask-copy h2 b { font-weight: inherit; background: linear-gradient(90deg, var(--g1), var(--g2) 40%, var(--g3) 75%, var(--g4)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer: links, then KALYPSO written on a pecten ---------- */
.site-foot { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line); }
.site-foot .footer { border-top: 0; }
.foot-cta { margin-top: 18px; }
.foot-sign { position: relative; max-width: var(--col); margin: 8px auto 0; padding: 0 24px; height: clamp(170px, 26vw, 330px); }
/* The pecten: a scallop shell's ribs fanning from a hinge, in the gradient, rising behind the name. */
.pecten { position: absolute; left: 50%; bottom: -2px; height: 112%; width: auto; max-width: 100%; transform: translateX(-50%); opacity: 0.8; }
.pecten .p-ribs { stroke-width: 1; }
.pecten .p-arcs { stroke-width: 0.8; stroke-dasharray: 2 6; opacity: 0.8; }
.pecten .p-rim { stroke-width: 1.4; }
.pecten .p-ears { stroke-width: 1; opacity: 0.8; }
/* The wordmark: outlined letters, a gradient sweeping slowly through them, fading into the floor. */
.wordmark { position: absolute; left: 24px; right: 24px; bottom: -0.6%; width: calc(100% - 48px); height: auto; overflow: visible; }
.wordmark text { font: 700 230px/1 var(--font); letter-spacing: -0.04em; fill: none; }
.wm-base { stroke: var(--line-3); stroke-width: 1.2; fill: color-mix(in srgb, var(--bg) 70%, transparent) !important; }
.wm-glow { stroke-width: 1.6; }
.foot-base { position: relative; display: flex; justify-content: space-between; gap: 16px; max-width: var(--col); margin: 0 auto; padding: 18px 48px 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); background: var(--bg); }
@media (max-width: 640px) { .foot-base { flex-direction: column; padding-left: 16px; padding-right: 16px; } .pecten { width: 120%; } }
@media (prefers-reduced-motion: reduce) { .wm-sweep { display: none; } }

/* ---------- What you can hand off: photos in an asymmetric grid ---------- */
main > .uses { padding-top: 104px; padding-bottom: 104px; }
.uses-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.use { grid-column: span 2; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.use.wide { grid-column: span 3; }
.use-img { position: relative; flex: 1; min-height: 240px; overflow: hidden; background: var(--panel-2); }
.use-img canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The photo drifts a little against the scroll (main.js sets --py from 0 to 1). */
.use-img img { width: 100%; height: 118%; object-fit: cover; transform: translateY(calc(var(--py, 0.5) * -15%)); filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.use-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--g1), var(--g2) 40%, var(--g3) 75%, var(--g4)); mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.6s var(--ease); }
.use:hover .use-img::after { opacity: 0.55; }
.use-copy { padding: 22px 24px 26px; }
.use-copy h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; font-weight: 600; }
.use-copy p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) { .uses-grid { grid-template-columns: 1fr; } .use, .use.wide { grid-column: auto; } }

/* ---------- Scroll: things arrive, each in its own way ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Headlines come into focus. */
  .js main h2 { opacity: 0; filter: blur(10px); transform: translateY(12px); transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease); }
  .js main h2.in { opacity: 1; filter: none; transform: none; }
  /* The Ask screen is set down: tilted back in 3D, then flat as it comes up the page (--tilt from main.js). */
  .ask { perspective: 1400px; }
  .js .ask-shot { transform: rotateX(calc(var(--tilt, 0) * 22deg)) scale(calc(1 - var(--tilt, 0) * 0.06)); transform-origin: 50% 100%; will-change: transform; }
  /* Cells and cards arrive one after another. */
  .js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .stagger.in > * { opacity: 1; transform: none; }
  /* The footer: the pecten fans open from its hinge, then the letters rise. */
  .js .pecten { transform: translateX(-50%) scaleY(calc(0.15 + var(--open, 0) * 0.85)) scaleX(calc(0.55 + var(--open, 0) * 0.45)); transform-origin: 50% 100%; }
  .js .wordmark text { transform: translateY(calc((1 - var(--open, 0)) * 60px)); opacity: calc(0.2 + var(--open, 0) * 0.8); }
}
.use-img { background: var(--bg); }
.use-img::after { display: none; }
.uses-credit { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); }
.ask-shot video { display: block; width: 100%; height: auto; }

/* The glows never widen the page. */
.hero { overflow-x: clip; }

/* ---------- The tab showcase: smoother changes ---------- */
@media (prefers-reduced-motion: no-preference) {
  .show-shot { transform: scale(1.025); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease), filter 0.7s var(--ease); }
  .show-shot.on { transform: none; filter: none; }
  .show-copy h3, .show-copy p { transform: translateY(14px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
  .show-copy p { transition-delay: 0.08s; }
  .show-copy.on h3, .show-copy.on p { transform: none; opacity: 1; }
  .show-copy { transition: opacity 0.5s var(--ease); transform: none; }
}
/* The active tab's bar fills as its time runs; it starts empty on every tab. */
.show-tabs .bar::after { transform: scaleX(var(--p, 0)); }
.show-tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--text) 3%, transparent); }

/* ---------- Behind Kalypso: the pecten, no glows ---------- */
.hero::after, .portrait::before { display: none !important; }
.portrait { position: relative; isolation: isolate; }
.portrait .pecten { position: absolute; z-index: -1; left: 50%; bottom: 6%; width: 122%; height: auto; max-width: none; transform: translateX(-50%); opacity: 0.45; }
.portrait canvas { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .portrait .pecten { animation: pecten-in 1.8s var(--ease) 0.4s both; transform-origin: 50% 100%; }
}
@keyframes pecten-in { from { opacity: 0; transform: translateX(-50%) scale(0.6, 0.2); } }
.foot-sign { display: none; }

/* ---------- The chat orb, above the Ask headline ---------- */

/* ---------- Hand off: an even 2 x 2 grid ---------- */
.uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.use, .use.wide { grid-column: auto !important; }
.use-img { flex: none !important; aspect-ratio: 16 / 9; min-height: 0 !important; }
.use-copy { flex: 1; }
@media (max-width: 860px) { .uses-grid { grid-template-columns: 1fr !important; } }

/* ---------- The pecten across the whole first section ---------- */
.hero-pecten { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-pecten .pecten { position: absolute; left: 50%; bottom: -1px; width: 118%; max-width: none; height: auto; transform: translateX(-50%); opacity: 0.24; }
.hero { position: relative; isolation: isolate; }
@media (prefers-reduced-motion: no-preference) {
  .hero-pecten .pecten { animation: fan-open 2s var(--ease) 0.3s both; transform-origin: 50% 100%; }
}
@keyframes fan-open { from { opacity: 0; transform: translateX(-50%) scale(0.5, 0.15); } }
[data-theme="light"] .hero-pecten .pecten { opacity: 0.3; }

/* ---------- No leftover glows ---------- */
main > .ask::after, main > .get::after { display: none !important; }

/* ---------- Tabs: scrolling moves through them ---------- */
.show-pin { position: relative; height: calc(5 * 62vh + 560px); margin-top: 96px; }
.show-pin > .show { position: sticky; top: 88px; margin-top: 0; }
.show-mark { position: absolute; left: 0; width: 1px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .show-pin { height: auto; } .show-pin > .show { position: static; } }
@media (max-width: 1080px) { .show-pin { height: calc(5 * 55vh + 640px); } }

/* ---------- The window, like today's app ---------- */
.ws-group { display: block; padding: 12px 9px 4px; font-size: 11px; color: var(--text-3); }
.ws-group:first-child { padding-top: 0; }
.ask-who { display: inline-flex; align-items: center; gap: 7px; }
.ask-who img { opacity: 0.75; }
.ask-who b { color: var(--text); font-weight: 600; }
.panel[data-panel="ask"] { display: flex; flex-direction: column; }
.ad { position: relative; flex: 1; min-height: 0; }
.ad-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.ad-start.gone { opacity: 0; transform: translateY(-14px) scale(0.96); pointer-events: none; }
.ad-start p { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.demo-orb { display: block; color: var(--text); }
.ad-log { list-style: none; margin: 0; padding: 18px 26px 12px; height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 13.5px; line-height: 1.55; text-align: left; }
.ad-log li { flex: none; }
.ad-log li.new { animation: line-in 0.4s var(--ease) both; }
.ad-user { align-self: flex-end; max-width: 80%; padding: 7px 12px; border-radius: 12px 12px 4px 12px; background: var(--panel-3); }
.ad-text b { font-weight: 600; }
.ad-tool { font: 12px/1.5 var(--mono); color: var(--text-3); padding-left: 10px; border-left: 1px solid var(--line-2); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-tool i { font-style: normal; color: var(--text); margin-right: 8px; }
.ad-tool b { font-weight: 400; color: var(--text-2); }
.ad-done { font-size: 12px; color: var(--text-3); }
.ad-box { display: flex; align-items: center; gap: 2px; margin: 0 22px 18px; min-height: 46px; padding: 10px 10px 10px 14px; border: 1px solid var(--line-3); border-radius: 12px; font-size: 13.5px; text-align: left; }
#ad-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#ad-text:empty::before { content: "Message kalypso"; color: var(--text-3); }
.ad-caret { width: 1px; height: 16px; background: var(--text); flex: none; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ad-send { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--panel-3); color: var(--text-2); font-size: 13px; }

/* ---------- Hand off: four separate cards ---------- */
.uses-grid { gap: 16px !important; border: 0 !important; }
.use { border: 1px solid var(--line-2) !important; border-radius: 14px; background: var(--panel); transition: border-color 0.25s var(--ease), transform 0.3s var(--ease); }
.use:hover { border-color: var(--line-3) !important; transform: translateY(-2px); }

/* ---------- A bigger pecten ---------- */
.hero-pecten .pecten { width: 165% !important; bottom: -8% !important; }

/* ---------- Layers: on a field of dots, no box ---------- */
.isle { border: 0 !important; background: none !important; border-radius: 0 !important; overflow: visible !important; position: relative; }
.isle::before { content: ""; position: absolute; inset: -40px -24px -10px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgb(var(--ink) / 0.16) 1px, transparent 1.6px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 60% 62% at 50% 52%, #000 30%, transparent 78%); }
.layers { isolation: isolate; }
.stack-map .face, .stack-map .slab { fill: var(--bg) !important; }

main > .layers { overflow-x: clip; }

/* ---------- Layers: the stack assembles, a pulse rises through it, depth follows the cursor ---------- */
/* --gap (scroll), --mx/--my (cursor, -1..1) and --d (0 sandbox ... 3 gateway) come from main.js. */
.stack-map .plate { transform: translate(calc(var(--mx, 0) * (3 - var(--d, 0)) * 7px), calc(var(--gap, 0px) + var(--my, 0) * (3 - var(--d, 0)) * 4px + var(--lift, 0px))) !important;
  transition: transform 0.6s var(--ease), opacity 0.35s !important; }
.isle[data-on="sandbox"] [data-layer="sandbox"], .isle[data-on="policies"] [data-layer="policies"],
.isle[data-on="vault"] [data-layer="vault"], .isle[data-on="gateway"] [data-layer="gateway"] { --lift: -16px; }
.stack-map .leader, .stack-map .p-num, .stack-map .p-label, .stack-map .p-sub { opacity: var(--labels, 1); transition: opacity 0.6s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .stack-map .plate .mesh { animation: layer-pulse 3.6s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 0.32s); }
  .stack-map .plate .rim { animation: layer-rim 3.6s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 0.32s); }
  .stack-map .plate .node { animation: layer-node 3.6s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 0.32s); }
}
@keyframes layer-pulse { 0%, 100% { stroke: rgb(var(--ink) / 0.22); } 9% { stroke: rgb(var(--ink) / 0.7); } 26% { stroke: rgb(var(--ink) / 0.22); } }
@keyframes layer-rim { 0%, 100% { stroke: rgb(var(--ink) / 0.6); stroke-width: 1.1; } 9% { stroke: rgb(var(--ink)); stroke-width: 1.8; } 26% { stroke: rgb(var(--ink) / 0.6); stroke-width: 1.1; } }
@keyframes layer-node { 0%, 100% { opacity: 0.7; } 9% { opacity: 1; } 26% { opacity: 0.7; } }

/* ---------- Open page: no frame, no table lines; sections separated by space ---------- */
:root, :root[data-theme="light"] { --col: 1280px; }
.rails { display: none !important; }
main > section + section { border-top: 0 !important; }
main > section + section::before, main > section + section::after { display: none !important; }
main > section { padding-left: 40px; padding-right: 40px; }
.site-foot, .site-foot .footer, .foot-base { border-top: 0 !important; }
.foot-base { color: var(--text-3); }
/* Logos: a plain row, spaced out across the page. */
.logos { display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 28px 40px !important; border: 0 !important; padding: 0 8px !important; }
.logos li { height: auto; border: 0 !important; background: none !important; }
.logos li:hover { background: none !important; }
.logos svg { width: 24px; height: 24px; }
/* Guarantees: open columns. */
.three { gap: 56px; padding: 96px 40px !important; }
.three article { padding: 0 !important; border: 0 !important; }
/* The window and the tour sit a little wider than the text. */
main > .stage { padding-left: 40px !important; padding-right: 40px !important; }
.nav-inner, .footer, .foot-base { max-width: var(--col) !important; }
.nav-inner { padding-left: 40px; padding-right: 40px; }
@media (max-width: 860px) { .three { gap: 40px; padding: 64px 16px !important; } }
@media (max-width: 640px) { main > section, main > .stage { padding-left: 16px !important; padding-right: 16px !important; } }
/* The pecten spans the whole screen, edge to edge. */
.hero { overflow: visible !important; }
.hero-pecten { left: calc(50% - 50vw) !important; right: calc(50% - 50vw) !important; overflow: hidden; }
.hero-pecten .pecten { width: min(150vw, 2100px) !important; opacity: 0.2 !important; }
[data-theme="light"] .hero-pecten .pecten { opacity: 0.26 !important; }
/* Downloads: three separate cards, not a list. */
.oses { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
.oses li { flex-direction: column; align-items: flex-start !important; gap: 14px !important; padding: 24px !important; border: 1px solid var(--line-2) !important; border-radius: 14px; background: var(--panel); }
.oses li + li { border-top: 1px solid var(--line-2) !important; }
.oses li .i { width: 26px !important; height: 26px !important; }
.oses li div { flex: none !important; }
.oses li.mine { border-color: var(--line-3) !important; }
.oses li.mine b::after { display: block; margin: 4px 0 0; }
.oses li a { margin-top: auto; }
@media (max-width: 860px) { .oses { grid-template-columns: 1fr; } }
.oses li { display: grid !important; grid-template-columns: repeat(3, max-content); grid-template-rows: auto auto 1fr; column-gap: 8px !important; row-gap: 14px !important; min-height: 210px; }
.oses li > .i, .oses li > div { grid-column: 1 / -1; }
.oses li > a { align-self: end; margin-top: 0 !important; }
.oses li.mine b::after { display: inline; margin: 0 0 0 10px; }
.foot-base a { color: var(--text-2); text-decoration: none; }
.foot-base a:hover { color: var(--text); }
