/*
 * ethralis – site styles.
 * Brand: deep navy for stability, steel blue for structure, teal for "safe / verified".
 * Teal and steel are used as fills; text and buttons use the darker shades for
 * at least 4.5:1 contrast. Light theme, with navy surfaces for hero and console.
 */

:root {
    color-scheme: light;
    --navy: #0a1a33;
    --navy-2: #10284d;
    --navy-3: #1a3a66;
    --steel: #9cc0e4;
    --steel-soft: #edf3fa;
    --steel-strong: #4a7fb5;
    --teal: #2dd4bf;
    --teal-bright: #5eead4;
    --teal-mid: #14a394;
    --teal-line: #99ddd3;
    --teal-soft: #e4f6f3;
    --teal-dark: #0b6b62;
    --accent: #1d4f86;
    --accent-dark: #0a1a33;
    --red-soft: hsl(352, 80%, 95%);
    --red-dark: hsl(352, 65%, 38%);
    --amber-soft: hsl(41, 90%, 90%);
    --amber-dark: hsl(36, 80%, 28%);
    --rose: hsl(352, 90%, 72%);

    --ink: #0a1a33;
    --text: #2b3a50;
    --muted: #5b6a80;
    --line: #d5deea;
    --line-soft: #e9eef5;
    --bg: #fff;
    --bg-tint: #f5f8fc;
    --gradient: linear-gradient(90deg, var(--steel-strong), var(--teal));

    --radius: 14px;
    --shadow: 0 1px 2px hsla(212, 30%, 20%, .06), 0 8px 24px hsla(212, 30%, 20%, .06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 66px; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--line-soft); padding: .1em .35em; border-radius: 5px; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* buttons, pills */
.btn {
    display: inline-flex; align-items: center; gap: .4em;
    background: var(--accent); color: #fff; border: 1px solid var(--accent);
    padding: .7em 1.2em; border-radius: 999px; font-weight: 600; font-size: .95rem;
    cursor: pointer; font-family: inherit; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--steel-soft); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.btn-teal:hover { background: var(--teal-bright); }
.btn-small { padding: .45em .95em; font-size: .85rem; }
.pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill-teal { background: var(--teal-soft); color: var(--teal-dark); }
.pill-blue { background: var(--steel-soft); color: var(--accent); }
.pill-grey { background: var(--line-soft); color: var(--muted); }

/* top bar */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: hsla(0, 0%, 100%, .88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.topbar::after { content: ""; display: block; height: 3px; background: var(--gradient); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6em; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand-mark img { height: 34px; display: block; }
.nav { display: flex; align-items: center; gap: 1.4em; }
.nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a.active { color: var(--accent); }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }


/* ===================== home ===================== */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 1em; }
.hl { background: linear-gradient(90deg, var(--accent), var(--teal-mid)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }
.btn-big { padding: 1em 2.1em; font-size: 1.1rem; }
.section { padding: 140px 0; position: relative; }
.big-h, .sandbox h2, .flexible h2, .proof h2, .final h2 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }

/* scroll progress in the header line: site.js sets --scroll, without JS the line stays full */
.topbar::after { transform-origin: 0 50%; transform: scaleX(var(--scroll, 1)); }

/* reveal on scroll (site.js adds .in) */
.js [data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* hero: full screen; the background drifts slower than the page, the text fades as you scroll on */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - 67px); min-height: calc(100svh - 67px); padding: 56px 0 110px; color: #c9d6e8; background: var(--navy); }
.hero-bg {
    position: absolute; inset: -25% 0; will-change: transform;
    background:
        radial-gradient(900px 480px at 85% 20%, rgba(45, 212, 191, .16), transparent 70%),
        radial-gradient(800px 500px at 0% 90%, rgba(74, 127, 181, .3), transparent 70%),
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; width: 100%; }
.hero-text { opacity: calc(1 - var(--p, 0) * 1.5); transform: translateY(calc(var(--p, 0) * -70px)); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.03; letter-spacing: -0.04em; }
.hero .eyebrow { color: var(--teal); }
.hero .hl { background: linear-gradient(90deg, var(--teal-bright), var(--steel)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #e2ebf6; font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 500; }
.hero .kicker { max-width: 26em; margin: 0 0 1.1em; color: var(--teal-bright); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.4; }
.hero-cta { display: flex; gap: .8em; flex-wrap: wrap; margin-top: 2em; }
.hero-visual { min-width: 0; will-change: transform; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; opacity: calc(1 - var(--p, 0) * 5); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* hero graphic (includes/flow.svg.php): every app has its own cell, the cells form a mesh */
.flow { width: 100%; height: auto; display: block; }
.flow text { font-family: var(--font); font-size: 13px; font-weight: 600; }
.flow-lines { fill: none; stroke: rgba(156, 192, 228, .24); stroke-width: 1.5; }
.pkt { fill: var(--teal); }
.flow-app rect { fill: #fff; }
.flow .flow-app text { fill: var(--ink); }
.flow-cell { fill: var(--navy-2); stroke: var(--teal); stroke-width: 1.5; }

/* how it works: the ideas scroll by, the picture stays pinned and changes */
.story { background: var(--navy); color: #c9d6e8; padding: 130px 0 60px; }
.story-head { text-align: center; }
.story .eyebrow { color: var(--teal); }
.story-head h2 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.story-steps { padding: 6vh 0 22vh; }
.idea { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.js .idea { opacity: .2; transform: translateX(-14px); transition: opacity .5s ease, transform .5s ease; }
.js .idea.active { opacity: 1; transform: none; }
.idea-n { font-size: clamp(4rem, 8vw, 6.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(45, 212, 191, .55); margin-bottom: .15em; }
.idea.active .idea-n { background: linear-gradient(180deg, var(--teal-bright), var(--steel-strong)); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.idea h3 { color: #fff; font-size: clamp(1.9rem, 3.3vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .35em; }
.idea p { margin: 0; max-width: 24em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; }
.idea .eyebrow { margin-bottom: .6em; }
.idea .points { display: grid; gap: .8em; max-width: 30em; margin: .4em 0 0; padding: 0; list-style: none; }
.idea p + .points { margin-top: 1.2em; }
.idea .points li { position: relative; padding-left: 2em; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.5; }
.idea .points li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a1a33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.idea .points strong { color: #fff; }
.story-visual { position: sticky; top: calc(67px + 5vh); height: calc(90vh - 67px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.story-stage { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; }
.story-stage::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, .2), transparent 65%); }
.idea-vis { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.9) translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.idea-vis.active { opacity: 1; transform: none; }
.idea-vis > svg { display: block; width: 100%; height: 100%; }
.story-dots { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.story-dots li { font-family: var(--mono); font-size: .78rem; padding: .3em .75em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); color: var(--steel); transition: background .3s, color .3s, border-color .3s; }
.story-dots li.active { background: var(--teal); border-color: var(--teal); color: var(--navy); font-weight: 700; }

/* idea 2: data policies, one set of rules for every integration */
.rv-spokes line { stroke: rgba(156, 192, 228, .25); stroke-width: 2; stroke-dasharray: 3 6; }
.rv-pulse { fill: none; stroke: var(--teal); stroke-width: 2; }
.rv-node circle { fill: var(--navy-2); stroke: var(--steel-strong); stroke-width: 2.5; }
.rv-node rect { fill: var(--steel); }
.rv-node.next circle { fill: none; stroke: var(--teal); stroke-dasharray: 5 4; }
.rv-node.next rect { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 3 2; }
.rv-label { font: 600 13px var(--font); fill: var(--teal-bright); }
.rv-core { fill: var(--navy-2); stroke: var(--teal); stroke-width: 2; }

/* idea 3: data shielding, a client record whose sensitive values are masked one after another */
.sv-card { fill: var(--navy-2); stroke: rgba(45, 212, 191, .35); stroke-width: 1.5; }
.sv-sep { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.vis .sv-head { font: 700 16px var(--font); fill: #fff; }
.vis .sv-label { font: 500 13px var(--mono); fill: var(--steel); }
.vis .sv-orig { font: 500 14px var(--mono); fill: #e2ebf6; animation: sv-orig 6s ease-in-out infinite both; animation-delay: var(--d); }
.sv-mask { opacity: 0; animation: sv-mask 6s ease-in-out infinite both; animation-delay: var(--d); }
.sv-pill { fill: rgba(45, 212, 191, .14); stroke: rgba(45, 212, 191, .6); stroke-width: 1; }
.vis .sv-masked { font: 600 14px var(--mono); fill: var(--teal-bright); }
@keyframes sv-orig { 0%, 22% { opacity: 1; transform: none; } 30%, 90% { opacity: 0; transform: translateX(-10px); } 97%, 100% { opacity: 1; transform: none; } }
@keyframes sv-mask { 0%, 26% { opacity: 0; transform: translateX(10px); } 34%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: none; } }

/* idea 5: Atlas as a map of the catalog; KI teams build in parallel and add tiles (site.js) */
.vis text { font-family: var(--font); }
.atlas-frame { fill: var(--navy-2); stroke: rgba(45, 212, 191, .35); stroke-width: 1.5; }
.vis .atlas-title { font-size: 20px; font-weight: 800; fill: #fff; letter-spacing: -0.02em; }
.vis .atlas-sub { font-size: 13px; font-weight: 600; fill: var(--steel); }
.atlas-wire { stroke: rgba(156, 192, 228, .25); stroke-width: 2; stroke-dasharray: 3 6; }
.atlas-tile rect { fill: none; stroke: rgba(156, 192, 228, .25); stroke-width: 1.5; stroke-dasharray: 3 4; transition: fill .4s, stroke .4s; }
.atlas-tile path { fill: none; stroke: var(--teal-bright); stroke-width: 2.5; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
.atlas-tile.on rect { fill: rgba(45, 212, 191, .16); stroke: var(--teal); stroke-dasharray: none; }
.atlas-tile.on path { opacity: 1; }
.atlas-tile.new rect { fill: rgba(94, 234, 212, .38); stroke: var(--teal-bright); }
.atlas-tile.new { transform-box: fill-box; transform-origin: center; animation: atlas-pop .6s ease-out; }
@keyframes atlas-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.atlas-ki .core { fill: var(--navy-2); stroke: var(--steel-strong); stroke-width: 2; transition: stroke .3s; }
.atlas-ki .spin { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 8; opacity: 0; transition: opacity .3s; transform-box: fill-box; transform-origin: center; animation: atlas-spin 2s linear infinite; }
.atlas-ki.busy .core { stroke: var(--teal); }
.atlas-ki.busy .spin { opacity: 1; }
@keyframes atlas-spin { to { transform: rotate(360deg); } }
.vis .atlas-ki text { font-size: 15px; font-weight: 800; fill: #fff; }
.atlas-pkt { fill: var(--teal-bright); }
.vis .atlas-count { font-size: 18px; font-weight: 600; fill: #e2ebf6; }
.vis .atlas-num { font-weight: 800; fill: var(--teal-bright); }

/* idea 1: a safe room for every integration, data points flowing between the rooms; the middle one fails,
   its flows stop (same 5 s cycle as the fault) while every other flow keeps running */
.room-link path { fill: none; stroke: rgba(156, 192, 228, .25); stroke-width: 2; }
.room-pkt { fill: var(--teal); }
.room-link.fault { animation: fault-link 5s ease-in-out infinite; }
@keyframes fault-link { 0%, 30%, 88%, 100% { opacity: 1; } 38%, 80% { opacity: .12; } }
.room-box { fill: var(--navy-2); stroke: rgba(45, 212, 191, .4); stroke-width: 2; }   /* opaque, so the data points disappear into the room */
.room-app rect { fill: none; stroke: var(--steel); stroke-width: 2; }
.room-app line { stroke: var(--steel); stroke-width: 2; stroke-linecap: round; }
.room-dot { fill: var(--teal); animation: room-blink 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes room-blink { 50% { opacity: .3; } }
.room.fault .room-box { animation: fault-box 5s ease-in-out infinite; }
.room.fault .room-dot { animation: fault-dot 5s ease-in-out infinite; }
.room.fault .room-app { transform-box: fill-box; transform-origin: center; animation: fault-shake 5s ease-in-out infinite; }
.room-guard { fill: none; stroke: var(--teal); stroke-width: 3; stroke-dasharray: 8 6; opacity: 0; transform-box: fill-box; transform-origin: center; animation: fault-guard 5s ease-in-out infinite; }
@keyframes fault-box { 0%, 30%, 88%, 100% { fill: var(--navy-2); stroke: rgba(45, 212, 191, .4); } 38%, 80% { fill: #372e50; stroke: var(--rose); } }
@keyframes fault-dot { 0%, 30%, 88%, 100% { fill: var(--teal); } 38%, 80% { fill: var(--rose); } }
@keyframes fault-shake { 0%, 36%, 54%, 100% { transform: none; } 39%, 45%, 51% { transform: translateX(-4px); } 42%, 48% { transform: translateX(4px); } }
@keyframes fault-guard { 0%, 32% { opacity: 0; transform: scale(1.18); } 42%, 80% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(1); } }

/* idea 4: proof on demand */
.pv-doc { fill: #fff; }
.pv-head { fill: var(--steel-soft); }
.pv-title { stroke: var(--steel-strong); stroke-width: 6; stroke-linecap: round; }
.pv-check { fill: var(--teal-soft); stroke: var(--teal-mid); stroke-width: 2; }
.pv-tick { fill: none; stroke: var(--teal-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: pv-tick 6s ease infinite both; animation-delay: var(--d); }
.pv-line { stroke: var(--line); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 140; stroke-dashoffset: 140; animation: pv-line 6s ease infinite both; animation-delay: var(--d); }
@keyframes pv-tick { 0% { stroke-dashoffset: 20; } 6%, 82% { stroke-dashoffset: 0; } 92%, 100% { stroke-dashoffset: 20; } }
@keyframes pv-line { 0% { stroke-dashoffset: 140; } 8%, 82% { stroke-dashoffset: 0; } 92%, 100% { stroke-dashoffset: 140; } }
.pv-stamp { transform-box: fill-box; transform-origin: center; animation: pv-stamp 6s ease infinite; }
.pv-stamp circle { fill: var(--teal); stroke: var(--teal-bright); stroke-width: 3; }
.pv-stamp .pv-stamp-in { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 3 3; }
.pv-stamp text { font: 800 14px var(--font); letter-spacing: .12em; fill: var(--navy); }
@keyframes pv-stamp { 0%, 40% { opacity: 0; transform: scale(1.7) rotate(-20deg); } 47% { opacity: 1; transform: scale(.94); } 52%, 86% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(1); } }


/* sandbox: systems and connectors drifting by */
.sandbox { background: var(--bg-tint); overflow: hidden; padding-bottom: 120px; }
.sandbox-head { text-align: center; }
.sandbox-head .lead { margin: 22px auto 0; }
.marquee { display: grid; gap: 14px; margin: 64px 0 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row ul { list-style: none; display: flex; gap: 14px; width: max-content; margin: 0; padding: 0; animation: marquee 42s linear infinite; }
.marquee-row.rev ul { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { padding: 18px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.marquee-row.rev li { background: var(--navy); border-color: var(--navy); color: #fff; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.sandbox-cta { text-align: center; }

/* no vendor lock-in: the blocks start locked in one box, the lock opens, box and lock fade and the blocks
   move apart, each standing on its own. --p runs 0 → 1 as the section scrolls in (site.js); the lock opens
   up to .3, the blocks spread from .25 on. Without JS and with reduced motion --p is 1: three free blocks */
.flexible { text-align: center; overflow: hidden; }
.blocks {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center;
    gap: calc(8px + max(0, var(--p, 1) * 1.333 - .333) * 40px); width: max-content; max-width: 100%; margin: 72px auto 30px; padding: 14px; border-radius: 36px;
    background: rgb(237 243 250 / calc(1 - max(0, var(--p, 1) * 1.333 - .333) * 1.6));
    box-shadow: 0 0 0 3px rgb(74 127 181 / calc(1 - max(0, var(--p, 1) * 1.333 - .333) * 1.6));
}
.blocks-lock { position: absolute; left: 50%; top: 0; display: grid; place-items: center; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 6px #fff; opacity: calc(1 - max(0, var(--p, 1) - .45) * 2.5); }
.blocks-lock::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-mid); opacity: min(1, calc(var(--p, 1) * 3.33)); }
.blocks-lock svg { position: relative; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.blocks-lock .shackle { transform-box: view-box; transform-origin: 16px 11px; transform: translateY(calc(min(1, calc(var(--p, 1) * 3.33)) * -3px)) rotate(calc(min(1, calc(var(--p, 1) * 3.33)) * 35deg)); }
.block { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(10, 26, 51, .1); opacity: calc(.6 + max(0, var(--p, 1) * 1.333 - .333) * .4); }
.block svg { box-sizing: content-box; width: 32px; height: 32px; padding: 14px; border-radius: 16px; background: var(--teal-soft); fill: none; stroke: var(--teal-mid); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.block strong { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.block span { color: var(--muted); line-height: 1.5; }
.blocks-note { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--ink); opacity: calc(var(--p, 1) * 1.4 - .4); }

/* experience: the integrations ametiq connect runs today, one card per customer (the counts count up) */
.proof { overflow: hidden; text-align: center; background: var(--navy); color: #c9d6e8; }
.proof-bg { position: absolute; inset: -30% 0; will-change: transform; background: radial-gradient(640px 420px at 15% 30%, rgba(45, 212, 191, .16), transparent 70%), radial-gradient(760px 520px at 88% 70%, rgba(74, 127, 181, .32), transparent 70%); }
.proof .wrap { position: relative; }
.proof .eyebrow { color: var(--teal); }
.proof h2 { color: #fff; }
.proof .lead { max-width: none; margin: 0 auto; color: #e2ebf6; }
.customers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 56px 0 0; padding: 0; list-style: none; text-align: left; }
.customers li { display: flex; flex-direction: column; gap: 4px; padding: 24px 20px 20px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.c-kind { color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.customers strong { margin-top: 2px; color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.c-full { min-height: 2.9em; color: #c9d6e8; font-size: .92rem; line-height: 1.45; }
.c-count { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--steel); font-size: .85rem; }
.c-count b { display: block; color: var(--teal-bright); font-size: 1.7rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* final call to action */
.final { text-align: center; padding: 160px 0; background: radial-gradient(820px 420px at 50% 100%, var(--teal-soft), transparent 70%), #fff; }
.final-mark { width: 76px; height: 76px; margin-bottom: 24px; }
.final .lead { margin: 20px auto 36px; font-size: 1.3rem; }
.final-contact strong { color: var(--ink); }
.final-contact a { font-weight: 600; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .85em 1em; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--bg-tint); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
table.simple td:first-child { color: var(--ink); font-weight: 500; }


/* footer */
.footer { border-top: 1px solid var(--line-soft); padding: 32px 0; background: var(--bg-tint); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.footer-logo { height: 36px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-meta .by { display: inline-flex; align-items: center; gap: .4em; }
.footer-meta .by img { height: 14px; opacity: .8; }

/* ===================== console ===================== */
.console-intro { padding: 48px 0 28px; background: radial-gradient(900px 300px at 90% 0%, var(--steel-soft), transparent 70%); }
.console-intro h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.console-frame { padding-bottom: 88px; }
.console { scroll-margin-top: 84px; display: grid; grid-template-columns: 240px 1fr; min-height: 640px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px hsla(212, 30%, 20%, .12); background: #fff; }
.console-side { background: var(--ink); color: hsl(212, 20%, 78%); display: flex; flex-direction: column; padding: 18px 12px; }
.console-env { font-size: .8rem; padding: .5em .8em 1.2em; display: flex; align-items: center; gap: .5em; }
.console-env strong { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, .25); }
.console-nav { display: grid; gap: 2px; flex: 1; align-content: start; }
.console-nav a { color: hsl(212, 20%, 80%); padding: .65em .8em; border-radius: 10px; font-size: .93rem; font-weight: 500; display: flex; gap: .6em; }
.console-nav a:hover { background: hsla(0, 0%, 100%, .06); text-decoration: none; }
.console-nav a.active { background: rgba(94, 160, 220, .16); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.console-user { display: flex; gap: .7em; align-items: center; padding: .8em; border-top: 1px solid hsla(0, 0%, 100%, .08); font-size: .85rem; }
.console-user strong { color: #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gradient); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .8rem; flex: none; }
.console-main { padding: 28px 32px; background: var(--bg-tint); min-width: 0; }
.panel { display: none; animation: fade .25s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.5rem; margin-bottom: .15em; }
.panel-head p { margin: 0; }
.panel-sub { margin: 28px 0 12px; font-size: 1rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi-val { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.kpi-lbl { font-size: .82rem; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.app-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.app-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--steel-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: .8rem; flex: none; }
.app-icon.ai { background: var(--teal-soft); color: var(--teal-dark); }
.app-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-body strong { color: var(--ink); }
.app-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.callout { margin-top: 20px; background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 12px; padding: 14px 18px; color: var(--teal-dark); font-size: .93rem; }
.callout strong { color: var(--ink); }

.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
input[type=search], select {
    font-family: inherit; font-size: .93rem; padding: .65em .9em; border: 1px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
input[type=search]:focus, select:focus { outline: 2px solid var(--steel-strong); outline-offset: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: inherit; font-size: .85rem; padding: .4em .9em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--steel-strong); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.op { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.op p { font-size: .9rem; margin: .5em 0 .8em; }
.op-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-name { background: none; padding: 0; font-weight: 600; font-size: .95rem; }
.op-app { margin-left: auto; }
.method { font-size: .68rem; font-weight: 800; padding: .2em .55em; border-radius: 6px; letter-spacing: .05em; }
.method.read { background: var(--steel-soft); color: var(--accent); }
.method.write { background: var(--amber-soft); color: var(--amber-dark); }
.fields { display: flex; flex-wrap: wrap; gap: 6px; }
.field { font-family: var(--mono); font-size: .75rem; padding: .2em .55em; border-radius: 6px; background: var(--line-soft); color: var(--text); }
.field.sensitive { background: var(--teal-soft); color: var(--teal-dark); }
.op-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.empty { padding: 24px; text-align: center; }

.legend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.matrix th, .matrix td { text-align: center; }
.matrix tbody th { text-align: left; color: var(--ink); font-weight: 600; background: #fff; }
.acc { font-family: var(--mono); font-weight: 700; font-size: .8rem; min-width: 44px; padding: .4em .6em; border-radius: 8px; border: 1px solid transparent; cursor: pointer; display: inline-block; }
.legend .acc { cursor: default; min-width: 0; padding: .15em .5em; }
.acc-RW { background: var(--teal-soft); color: var(--teal-dark); border-color: var(--teal-line); }
.acc-R { background: var(--steel-soft); color: var(--accent); border-color: var(--steel); }
.acc- { background: var(--line-soft); color: var(--muted); }
.acc.changed { outline: 2px dashed var(--amber-dark); outline-offset: 2px; }
.limits { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.limit { display: grid; grid-template-columns: 220px 1fr 90px; gap: 16px; align-items: center; }
.limit label { display: flex; flex-direction: column; }
.limit label strong { color: var(--ink); font-size: .93rem; }
.limit output { font-family: var(--mono); font-size: .85rem; text-align: right; color: var(--ink); }
input[type=range] { accent-color: var(--accent); width: 100%; }
.changes { position: sticky; bottom: 16px; margin-top: 20px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow); }
.changes .muted { color: hsl(212, 20%, 72%); }
.changes-actions { display: flex; gap: 8px; }
.changes .btn-ghost { color: #fff; border-color: hsla(0, 0%, 100%, .3); }
.changes .btn-ghost:hover { background: hsla(0, 0%, 100%, .1); }
.changes .btn { background: var(--teal); border-color: var(--teal); color: var(--ink); }

.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font-family: inherit; border: 0; background: none; padding: .4em .9em; border-radius: 999px; font-size: .85rem; cursor: pointer; color: var(--text); }
.seg button.active { background: var(--accent); color: #fff; }
.shield-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fields-table td { vertical-align: middle; }
.fields-table select { padding: .4em .6em; font-size: .85rem; }
.cls { font-size: .75rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.cls-client-identifier, .cls-government-id { background: var(--red-soft); color: var(--red-dark); }
.cls-personal, .cls-account { background: var(--amber-soft); color: var(--amber-dark); }
.cls-free-text { background: var(--steel-soft); color: var(--accent); }
.cls-business-data { background: var(--teal-soft); color: var(--teal-dark); }
.preview { background: var(--ink); border-radius: 12px; padding: 16px; position: sticky; top: 84px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; color: hsl(212, 20%, 78%); font-size: .85rem; margin-bottom: 10px; gap: 8px; }
.preview-head code { background: hsla(0, 0%, 100%, .1); color: #fff; }
.json { margin: 0; font-family: var(--mono); font-size: .82rem; line-height: 1.7; color: hsl(212, 20%, 85%); white-space: pre-wrap; word-break: break-word; }
.json .k { color: var(--steel); }
.json .v { color: #fff; }
.json .m { color: var(--teal); background: rgba(45, 212, 191, .14); border-radius: 4px; padding: 0 .2em; transition: background .3s; }
.json .x { color: hsl(339, 80%, 75%); text-decoration: line-through; }
.preview .muted { color: hsl(212, 15%, 65%); margin: 10px 0 0; }

.audit td { vertical-align: middle; white-space: nowrap; }
.audit td:last-child { white-space: normal; }
#audit-filter { margin-bottom: 14px; }
.door-tag { font-size: .7rem; font-weight: 800; padding: .2em .55em; border-radius: 6px; letter-spacing: .05em; }
.door-tag.mcp { background: var(--steel-soft); color: var(--accent); }
.door-tag.api { background: var(--teal-soft); color: var(--teal-dark); }
.res { font-size: .78rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; }
.res-allowed { background: var(--teal-soft); color: var(--teal-dark); }
.res-denied { background: var(--red-soft); color: var(--red-dark); }
.res-throttled { background: var(--amber-soft); color: var(--amber-dark); }

.chat { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-height: 320px; max-height: 560px; overflow-y: auto; margin-bottom: 14px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 14px; font-size: .93rem; }
.msg-who { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3em; opacity: .7; }
.msg.bot { background: var(--bg-tint); border: 1px solid var(--line-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.user .msg-who { color: var(--teal); opacity: 1; }
.msg .blocks { display: grid; gap: 8px; margin-top: 8px; }
.msg .blk { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.msg .blk b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: .2em; }
.msg .blk.pol b { color: var(--teal-dark); }
.msg .blk.deny { border-color: hsl(339, 70%, 85%); background: var(--red-soft); }
.msg .blk.deny b { color: var(--red-dark); }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 3px; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .25s; z-index: 100; font-size: .92rem; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }


/* responsive */
@media (max-width: 960px) {
    .customers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero { min-height: 0; padding: 64px 0 120px; }
    .hero-grid, .shield-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .story-visual { order: -1; z-index: 2; top: 67px; height: 44vh; padding: 12px 0; gap: 12px; background: var(--navy); }
    .story-stage { max-width: 32vh; }
    .story-steps { padding: 0 0 18vh; }
    .idea { min-height: 0; padding: 9vh 0; justify-content: flex-start; }   /* the text decides the height, so the active idea is the one being read */
    .js .idea { transform: translateY(18px); }
    .js .idea.active { transform: none; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .console { grid-template-columns: minmax(0, 1fr); }
    .console-side { padding: 10px; min-width: 0; }
    .console-nav { grid-auto-flow: column; overflow-x: auto; }
    .console-nav a { white-space: nowrap; }
    .console-user, .console-env { display: none; }
    .preview { position: static; }
}
@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .section { padding: 96px 0; }
    .nav { display: none; position: absolute; top: 67px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: .8em; border-bottom: 1px solid var(--line); }
    .nav.open { display: flex; }
    .nav-toggle { display: block; }
    .customers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blocks { grid-template-columns: minmax(0, 300px); width: auto; padding-top: 40px; }
    .marquee li { padding: 14px 20px; font-size: 1rem; }
    .footer-meta { align-items: flex-start; }
    .console-main { padding: 18px 14px; }
    .limit { grid-template-columns: 1fr 70px; }
    .limit label { grid-column: 1 / -1; }
}

/* reduced motion: no animation, no scroll effects, every state shown at rest */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-row ul { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 16px; }
    .marquee li[aria-hidden] { display: none; }
    .pv-tick, .pv-line { stroke-dashoffset: 0; }
    .room-guard, .sv-mask { opacity: 1; }
    .vis .sv-orig { opacity: 0; }
    .room.fault .room-box { fill: #372e50; stroke: var(--rose); }
    .room.fault .room-dot { fill: var(--rose); }
    .room-link.fault { opacity: .12; }
}

/* screens.php: console only, edge to edge, no animation (screenshot source) */
body.shot { background: var(--bg-tint); }
.shot .console-frame { padding: 0; }
.shot .console { border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
.shot *, .shot *::before, .shot *::after { animation: none !important; transition: none !important; }
.shot .toast { display: none; }
