/* Araminix: one stylesheet. Colours are tokens for both themes; the dark one follows the system unless chosen. */

@font-face {
    font-family: Inter;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card: #ffffff;
    --card-2: #f8fafc;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --accent: #0d9488;
    --accent-2: #6d5ce7;
    --accent-soft: #ccfbf1;
    --grad: linear-gradient(100deg, #0d9488 0%, #2563eb 50%, #7c3aed 100%);
    --glow-a: #5eead4;
    --glow-b: #a78bfa;
    --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px rgb(15 23 42 / 0.07);
    --shadow-lg: 0 24px 60px rgb(15 23 42 / 0.14);
    --radius: 18px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070b14;
    --bg-alt: #0b1120;
    --card: #0f1626;
    --card-2: #131c2f;
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --line: rgb(148 163 184 / 0.16);
    --accent: #5eead4;
    --accent-2: #a78bfa;
    --accent-soft: rgb(94 234 212 / 0.12);
    --grad: linear-gradient(100deg, #5eead4 0%, #60a5fa 50%, #a78bfa 100%);
    --glow-a: #14b8a6;
    --glow-b: #7c3aed;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 30px 80px rgb(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #070b14;
        --bg-alt: #0b1120;
        --card: #0f1626;
        --card-2: #131c2f;
        --ink: #e2e8f0;
        --muted: #94a3b8;
        --line: rgb(148 163 184 / 0.16);
        --accent: #5eead4;
        --accent-2: #a78bfa;
        --accent-soft: rgb(94 234 212 / 0.12);
        --grad: linear-gradient(100deg, #5eead4 0%, #60a5fa 50%, #a78bfa 100%);
        --glow-a: #14b8a6;
        --glow-b: #7c3aed;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px rgb(0 0 0 / 0.35);
        --shadow-lg: 0 30px 80px rgb(0 0 0 / 0.55);
    }
}

/* Only one of two pictures or icons shows, by theme (hidden, never re-shown, so each keeps its own display) */
:root[data-theme="light"] .only-dark,
:root[data-theme="dark"] .only-light { display: none !important; }
@media not (prefers-color-scheme: dark) { :root:not([data-theme="dark"]) .only-dark { display: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-light { display: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }
code { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.icon { flex: none; vertical-align: -0.18em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn.primary { border-color: transparent; background: var(--grad); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #06101d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #06101d; } }
.btn.big { height: 50px; padding: 0 22px; font-size: 16px; }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav:has(.mobile-nav:not([hidden])) { background: var(--bg); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a, .mobile-nav a { color: var(--muted); font-weight: 550; font-size: 15px; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.mobile-nav { display: none; gap: 4px; padding: 8px 20px 18px; border-top: 1px solid var(--line); }
.mobile-nav a { padding: 10px 4px; font-size: 17px; }
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-tools { margin-inline-start: auto; }
    .menu-btn { display: inline-grid; }
    .mobile-nav { display: grid; }
    .nav-tools .btn.small { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: 0.6;
    pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.04em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 600px; margin-top: 22px; color: var(--muted); font-size: 19px; }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 500px); justify-self: center; }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ring.dashed { stroke-dasharray: 4 10; }
.dot.a { fill: #2dd4bf; } .dot.b { fill: #60a5fa; } .dot.c { fill: #a78bfa; }
.spin { transform-origin: 260px 260px; animation: spin 40s linear infinite; }
.spin.fast { animation-duration: 24s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-logo { position: absolute; inset: 30%; width: 40%; height: 40%; filter: drop-shadow(0 18px 40px rgb(45 212 191 / 0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.orbit .chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.orbit .chip .icon { color: var(--accent); }
.c1 { top: 10%; left: 4%; } .c2 { top: 22%; right: 0; } .c3 { bottom: 18%; left: 0; } .c4 { bottom: 6%; right: 10%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 48px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.stats div { display: flex; flex-direction: column-reverse; padding: 22px 24px; background: var(--card); }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 900px) {
    .hero-in { grid-template-columns: minmax(0, 1fr); }
    .orbit { width: min(100%, 380px); }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2, .founder h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.section-head > p:last-child { margin-top: 16px; color: var(--muted); font-size: 18px; }
.sub-head { margin: 56px 0 20px; font-size: 22px; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.three { grid-template-columns: 1fr; } .section { padding: 72px 0; } }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 14px; font-weight: 550; }
.tag { padding: 2px 9px; border-radius: 7px; background: var(--card-2); color: var(--muted); font-size: 13px; }

/* ---------- Products ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 56px; padding: 40px 0 72px; }
.product + .product { border-top: 1px solid var(--line); padding-top: 72px; }
.product.flip .product-text { order: 2; }
.kind { margin-bottom: 8px; color: var(--accent); font-weight: 650; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.product h3 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; }
.product-tagline { margin: 12px 0 16px; font-size: 21px; font-weight: 600; line-height: 1.35; }
.product-text > p:not(.kind):not(.product-tagline) { color: var(--muted); }
.points { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); font-size: 16px; }
.points li .icon { margin-top: 3px; color: var(--accent); }
.points b { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-size: 14.5px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta b { color: var(--ink); }
@media (max-width: 960px) {
    .product { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .product.flip .product-text { order: 0; }
}

/* A web app's pictures (plantline, Gridlingo): the main view in front, another behind, the phone on top */
.shots { position: relative; aspect-ratio: 1.2; }
.frame { position: absolute; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); }
.frame img { display: block; width: 100%; }
.frame.back { top: 0; right: 0; width: 78%; opacity: 0.95; transform: rotate(2deg); }
.frame.front { left: 0; top: 22%; width: 82%; }
.frame.phone { right: 2%; bottom: 0; width: 24%; border-radius: 22px; border-width: 6px; border-color: #0b0f14; }
.frame::before { content: ""; display: block; height: 18px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 12px 9px, #f87171 3px, transparent 3.5px), radial-gradient(circle at 24px 9px, #fbbf24 3px, transparent 3.5px), radial-gradient(circle at 36px 9px, #34d399 3px, transparent 3.5px), var(--card-2); }
.frame.phone::before { display: none; }

/* The packages' illustrations */
.art-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-lg); }
.art { display: block; width: 100%; height: auto; font-family: Inter, system-ui, sans-serif; }
.art-box rect { fill: var(--card-2); stroke: var(--line); stroke-width: 1.5; }
.art-box.outer rect { fill: none; stroke: var(--accent); stroke-dasharray: 5 6; }
.art-box.worker rect { fill: var(--card); stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.art-box.agent rect { stroke: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.art-t { fill: var(--ink); font-size: 14px; font-weight: 700; }
.art-s { fill: var(--muted); font-size: 12px; }
.art-s.mid { text-anchor: middle; }
.art .wire { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 4; }
.art .live { fill: #34d399; }
.pipe { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.5; }
.lane { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 8; animation: flow 1.6s linear infinite; }
.lane.in { animation-direction: reverse; }
.lane.both { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.lane.a, .end.a { stroke: #2dd4bf; fill: #2dd4bf; }
.lane.b, .end.b { stroke: #60a5fa; fill: #60a5fa; }
.lane.c, .end.c { stroke: #a78bfa; fill: #a78bfa; }
.lane.d, .end.d { stroke: #f59e0b; fill: #f59e0b; }
.art-note rect { fill: var(--card-2); stroke: var(--line); }
/* gach's terminal: dark in both themes, as terminals are */
.terminal { overflow: hidden; border-radius: 14px; background: #0b1120; box-shadow: inset 0 0 0 1px rgb(148 163 184 / 0.18); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgb(148 163 184 / 0.16); color: #94a3b8; font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.terminal-bar i:nth-child(2) { background: #fbbf24; }
.terminal-bar i:nth-child(3) { background: #34d399; }
.terminal-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; color: #e2e8f0; font: 15px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.t-red { color: #f87171; } .t-yellow { color: #facc15; } .t-green { color: #4ade80; } .t-cyan { color: #22d3ee; } .t-blue { color: #60a5fa; } .t-magenta { color: #e879f9; } .t-orange { color: #ff7733; }
.t-b { font-weight: 700; } .t-i { font-style: italic; } .t-u { text-decoration: underline; text-underline-offset: 3px; }
.code { margin: 18px 0 0; padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: #0b1120; color: #cbd5e1; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code code { padding: 0; background: none; font: inherit; }
.code .k { color: #c084fc; } .code .f { color: #60a5fa; } .code .s { color: #5eead4; } .code .t { color: #fbbf24; } .code .n { color: #fb923c; } .code .c { color: #64748b; }
.stack-note { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; margin-top: 8px; padding: 24px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: var(--accent-soft); }
.stack-note .icon { margin-top: 2px; color: var(--accent); }
.stack-note p { margin: 0; color: var(--muted); }
.stack-note b { color: var(--ink); }

/* ---------- Capabilities ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.principles .icon { margin-top: 3px; color: var(--accent-2); }
.principles b { display: block; font-size: 16.5px; }
.principles span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Technology ---------- */
.stack { display: grid; gap: 4px; }
.stack-row { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.stack-row h4 { margin: 0; font-size: 17px; }
.stack-row .chips { margin: 0; }
@media (max-width: 700px) { .stack-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Open source ---------- */
.grid.repos { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .grid.repos { grid-template-columns: 1fr; } }
.repo { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.repo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.repo-cover img { display: block; width: 100%; aspect-ratio: 640 / 336; object-fit: cover; }
.repo-body { flex: 1; padding: 20px 22px 6px; }
.repo-body .kind { margin-bottom: 6px; font-size: 12px; }
.repo h4 { margin: 0; font-size: 18px; }
.repo h4 a { text-decoration: none; }
.repo h4 a:hover { color: var(--accent); }
.repo-path { margin: 6px 0 10px; color: var(--muted); font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.repo-body > p:not(.repo-path) { color: var(--muted); font-size: 15px; }
.repo .chips { margin-top: 12px; gap: 6px; }
.repo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 22px 18px; color: var(--muted); font-size: 14px; }
.repo-foot span, .repo-foot a { display: inline-flex; align-items: center; gap: 6px; }
.repo-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.repo-foot b { color: var(--ink); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.ts { background: #3178c6; } .dot.js { background: #f1e05a; } .dot.go { background: #00add8; } .dot.cs { background: #9b4dca; } .dot.py { background: #3572a5; }
.more { margin-top: 28px; }
.more a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 650; text-decoration: none; }

/* ---------- Writing ---------- */
.article { display: grid; grid-template-columns: 46px 1fr 24px; gap: 20px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: border-color 0.2s; }
.article:hover { border-color: var(--accent); }
.article h3 { margin-bottom: 10px; font-size: 22px; }
.article p:last-child { margin: 0; color: var(--muted); }
.article > .icon { color: var(--muted); }
@media (max-width: 600px) {
    .article { grid-template-columns: 46px minmax(0, 1fr) 24px; gap: 16px; padding: 22px; }
    .article > div { grid-column: 1 / -1; grid-row: 2; }
    .article > .icon { grid-column: 3; grid-row: 1; }
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.portrait { padding: 6px; border-radius: 50%; background: var(--grad); box-shadow: var(--shadow-lg); }
.portrait img { display: block; border-radius: 50%; border: 6px solid var(--bg-alt); }
.role { margin: 10px 0 20px; color: var(--accent); font-weight: 650; }
.founder > div > p:not(.role):not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 17.5px; }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 24px 0 16px; padding: 0; list-style: none; }
.accounts a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 600; font-size: 15px; text-decoration: none; }
.accounts a:hover { border-color: var(--accent); }
.accounts a > span { display: grid; min-width: 0; }
.accounts b { overflow-wrap: anywhere; }
.accounts small { color: var(--muted); font-weight: 500; font-size: 13px; }
.founder .sub-head { margin: 40px 0 16px; font-size: 20px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 28px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.numbers div { display: flex; flex-direction: column-reverse; padding: 16px 18px; background: var(--card); }
.numbers dt { color: var(--muted); font-size: 13.5px; }
.numbers dd { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.highlights { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.highlights li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 16px; }
.highlights .icon { margin-top: 2px; color: var(--accent-2); }
.founder .article { margin-bottom: 8px; }
.founder .article h4 { margin: 0 0 8px; font-size: 19px; }
@media (max-width: 620px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; gap: 28px; } .portrait { width: 200px; } }

/* ---------- Contact and footer ---------- */
.contact { position: relative; overflow: hidden; padding: 64px 48px; border-radius: 28px; background: var(--grad); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.contact h2 { max-width: 780px; margin: 0 auto 16px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.contact p { max-width: 620px; margin: 0 auto; opacity: 0.9; font-size: 18px; }
.contact .actions { justify-content: center; }
.contact .btn { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: none; }
.contact .btn.primary { background: #fff; color: #0f172a; }
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer p { flex: 1; min-width: 260px; margin: 0; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
/* Only with scripts running, so nothing stays hidden without them */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .spin, .orbit-logo, .lane { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Not found ---------- */
.notfound { display: grid; justify-items: center; text-align: center; padding-top: 6vh; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); }
.notfound .actions { justify-content: center; }
