/* ==========================================================================
   Nirgrum Fulgur — "black lightning" design system
   Ink-black foundations, an electric violet→cyan charge, plenty of air.
   ========================================================================== */

@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("../fonts/sora-latin-wght.woff2") format("woff2");
}

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

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

:root {
    /* Ink */
    --ink-950: #06070b;
    --ink-900: #0b0d14;
    --ink-850: #10131d;
    --ink-800: #161a27;
    --ink-700: #232838;
    --ink-600: #3a4054;

    /* Neutrals */
    --slate-500: #5d6479;   /* muted text on light (5.9:1 on white) */
    --slate-400: #9aa0b4;   /* muted text on dark (7.4:1 on ink-900) */
    --slate-300: #c4c8d6;
    --line: #e4e5ec;
    --line-dark: rgba(255, 255, 255, 0.09);
    --paper: #f6f6f9;
    --white: #ffffff;

    /* Charge */
    --volt-300: #b3a6ff;
    --volt-400: #9582ff;
    --volt-500: #7560ff;
    --volt-600: #5b45e8;    /* accent text on light (6.5:1 on white) */
    --arc-400: #3fd8f5;
    --charge: linear-gradient(120deg, var(--volt-400) 0%, var(--arc-400) 100%);
    --charge-soft: linear-gradient(120deg, rgba(149, 130, 255, 0.16), rgba(63, 216, 245, 0.12));

    /* Venture accents */
    --emerald: #22c38e;
    --amber: #f5a524;
    --coral: #ff6b5a;
    --iris: #8e95f0;        /* Manage Your Means logo, lightened for text on ink (7:1) */

    /* Feedback */
    --error: #c53030;
    --error-bg: #fff1f1;

    /* Type */
    --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;

    /* Layout */
    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(11, 13, 20, 0.06), 0 1px 1px rgba(11, 13, 20, 0.04);
    --shadow: 0 10px 30px -12px rgba(11, 13, 20, 0.18), 0 2px 6px rgba(11, 13, 20, 0.05);
    --glow: 0 0 0 1px rgba(149, 130, 255, 0.35), 0 12px 40px -10px rgba(117, 96, 255, 0.45);
    --header-h: 72px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink-900);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.35rem, 4.2vw + 1rem, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem);
}

h3,
.h3-size {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: var(--volt-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ink-900);
}

:focus-visible {
    outline: 3px solid var(--volt-500);
    outline-offset: 3px;
    border-radius: 4px;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.1em 0.35em;
}

::selection {
    background: rgba(149, 130, 255, 0.3);
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

.muted {
    color: var(--slate-500);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    background: var(--white);
    color: var(--ink-900);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container.narrow,
.narrow {
    max-width: 780px;
}

.section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section--tint {
    background: var(--paper);
}

.section--dark {
    position: relative;
    background: var(--ink-900);
    color: var(--slate-300);
    isolation: isolate;
    overflow: hidden;
}

.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(117, 96, 255, 0.18), transparent 70%),
        radial-gradient(40% 40% at 0% 100%, rgba(63, 216, 245, 0.1), transparent 70%);
}

.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section-header {
    max-width: 720px;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-header--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: end;
    justify-content: space-between;
}

.section-header__lede {
    font-size: 1.15rem;
    color: var(--slate-500);
}

.section--dark .section-header__lede {
    color: var(--slate-400);
}

.split {
    display: grid;
    gap: 1.5rem 4rem;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 5fr 7fr;
    }
}

.grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--volt-600);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--charge);
}

.eyebrow--on-dark {
    color: var(--volt-300);
}

.lede {
    font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem);
    line-height: 1.6;
    max-width: 44rem;
}

.text-charge {
    background: var(--charge);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}

.link-arrow .icon {
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

.link-arrow--on-dark,
.site-footer .link-arrow {
    color: var(--volt-300);
}

.link-arrow--on-dark:hover,
.site-footer .link-arrow:hover {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.7rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
}

.btn--primary {
    background: var(--charge);
    color: var(--ink-950);
    box-shadow: 0 6px 20px -8px rgba(117, 96, 255, 0.7);
}

.btn--primary:hover {
    color: var(--ink-950);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px -8px rgba(117, 96, 255, 0.85);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

/* Ghost buttons on light sections */
.section:not(.section--dark) .btn--ghost,
.cta-band .btn--ghost,
.btn--ghost-dark {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-900);
}

.section:not(.section--dark) .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.btn--ghost-dark:hover {
    background: var(--paper);
    border-color: var(--slate-300);
    color: var(--ink-900);
}

.btn--sm {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn--lg {
    min-height: 52px;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-dark);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--white);
    text-decoration: none;
}

.brand:hover {
    color: var(--white);
}

.brand__mark {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(117, 96, 255, 0.55));
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand__name span {
    font-weight: 700;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 26px;
    height: 26px;
}

.nav-toggle__close,
.nav-open .nav-toggle__open {
    display: none;
}

.nav-open .nav-toggle__close {
    display: inline-flex;
}

.site-nav {
    display: none;
}

.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.site-nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav ul a {
    display: block;
    padding: 0.7rem 0;
    color: var(--slate-300);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
    color: var(--white);
}

@media (min-width: 880px) {
    .nav-toggle {
        display: none;
    }

    .site-nav,
    .nav-open .site-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
        position: static;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .site-nav ul {
        flex-direction: row;
        gap: 1.75rem;
    }

    .site-nav ul a {
        position: relative;
        padding: 0.4rem 0;
        font-size: 0.95rem;
    }

    .site-nav ul a[aria-current="page"]::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px;
        height: 2px;
        border-radius: 2px;
        background: var(--charge);
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink-900);
    color: var(--slate-300);
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(45% 55% at 78% 40%, rgba(117, 96, 255, 0.28), transparent 70%),
        radial-gradient(35% 40% at 92% 80%, rgba(63, 216, 245, 0.14), transparent 70%);
}

.hero h1,
.page-hero h1 {
    color: var(--white);
}

.hero__inner {
    display: grid;
    align-items: center;
    gap: 3rem;
    padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4.5rem, 10vw, 8rem);
}

@media (min-width: 960px) {
    .hero__inner {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.hero__copy .lede {
    color: var(--slate-300);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero__actions--center {
    justify-content: center;
}

.hero__points {
    display: grid;
    gap: 0.5rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    color: var(--slate-400);
}

.hero__points li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero__points .icon {
    color: var(--arc-400);
}

.hero__art {
    display: none;
    justify-self: center;
    width: min(100%, 380px);
}

@media (min-width: 960px) {
    .hero__art {
        display: block;
    }
}

.bolt {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 28px rgba(117, 96, 255, 0.5)) drop-shadow(0 0 70px rgba(63, 216, 245, 0.18));
}

.bolt__body {
    fill: var(--ink-950);
}

.bolt__edge {
    fill: none;
    stroke: url(#hero-edge);
    stroke-width: 0.9;
    stroke-linejoin: round;
}

.bolt__spark {
    fill: none;
    stroke: #fff;
    stroke-width: 1.1;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 7 93;
    stroke-dashoffset: 0;
    opacity: 0.9;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px var(--arc-400));
    animation: spark 5.5s linear infinite;
}

@keyframes spark {
    to {
        stroke-dashoffset: -100;
    }
}

/* Interior page hero */

.page-hero {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.page-hero h1 {
    max-width: 22ch;
    font-size: clamp(2.1rem, 3.4vw + 1rem, 3.5rem);
}

.page-hero .lede {
    color: var(--slate-300);
}

.page-hero--article h1 {
    max-width: none;
    font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem);
}

.page-hero--center {
    text-align: center;
}

.page-hero--center h1,
.page-hero--center .lede {
    margin-inline: auto;
}

.page-hero--center .icon-badge {
    margin: 0 auto 1.5rem;
}

.page-hero--tall {
    padding-block: clamp(5rem, 12vw, 9rem);
}

.error-code {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    background: var(--charge);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    color: var(--slate-400);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.back-link:hover {
    color: var(--white);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--slate-400);
    font-size: 0.95rem;
}

.chip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--slate-300);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.chip .icon {
    width: 1.05em;
    height: 1.05em;
    color: var(--volt-300);
}

.chip:hover {
    border-color: rgba(149, 130, 255, 0.6);
    background: rgba(149, 130, 255, 0.1);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Cards & features
   -------------------------------------------------------------------------- */

.stretched-link {
    color: inherit;
    text-decoration: none;
}

.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.stretched-link:hover {
    color: inherit;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.card:hover,
.card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(149, 130, 255, 0.5);
    box-shadow: var(--shadow);
}

.card p {
    color: var(--slate-500);
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--volt-600);
    font-size: 0.95rem;
    font-weight: 600;
}

.card__more .icon,
.venture-card__more .icon {
    transition: transform 0.2s var(--ease);
}

.card:hover .card__more .icon,
.venture-card:hover .venture-card__more .icon {
    transform: translateX(3px);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--ink-900);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(149, 130, 255, 0.45), 0 8px 20px -10px rgba(117, 96, 255, 0.8);
}

.icon-badge .icon {
    width: 24px;
    height: 24px;
    color: var(--volt-300);
}

.icon-badge--quiet {
    background: var(--charge-soft);
    box-shadow: inset 0 0 0 1px rgba(117, 96, 255, 0.18);
}

.icon-badge--quiet .icon {
    color: var(--volt-600);
}

.icon-badge--lg {
    width: 60px;
    height: 60px;
    border-radius: 18px;
}

.icon-badge--lg .icon {
    width: 30px;
    height: 30px;
}

/* Service cards: icon beside text on wider screens */
@media (min-width: 640px) {
    .service-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1.25rem;
        align-content: start;
    }

    .service-card .icon-badge {
        grid-row: span 3;
        margin-bottom: 0;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card .card__more {
        grid-column: 2;
    }
}

.feature p {
    color: var(--slate-500);
    margin: 0;
}

/* Process steps */

.steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.step {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    border-top: 2px solid var(--line);
}

.step::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--charge);
}

.step__number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-300);
}

.step p {
    color: var(--slate-500);
    margin: 0;
}

/* Ventures */

.accent-violet { --accent: var(--volt-400); }
.accent-emerald { --accent: var(--emerald); }
.accent-amber { --accent: var(--amber); }
.accent-coral { --accent: var(--coral); }
.accent-iris { --accent: var(--iris); }

.venture-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line-dark);
    color: var(--slate-400);
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s;
}

.venture-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.venture-card:hover,
.venture-card:focus-within {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.venture-card h3 {
    color: var(--white);
    font-size: 1.35rem;
}

.venture-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.venture-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
}

.venture-card__icon .icon {
    width: 24px;
    height: 24px;
}

.venture-card__icon.venture-card__icon--logo,
.venture-hero__icon.venture-hero__icon--logo {
    background: none;
    box-shadow: none;
}

.venture-card__icon--logo img,
.venture-hero__icon--logo img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 16px rgba(105, 117, 221, 0.45));
}

.venture-card__tagline {
    color: var(--slate-300);
    font-weight: 500;
}

.venture-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Venture cards on light backgrounds */
.section:not(.section--dark) .venture-card {
    background: var(--ink-900);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status--live {
    background: rgba(34, 195, 142, 0.14);
    color: #1a9e72;
}

.status--building {
    background: rgba(149, 130, 255, 0.16);
    color: var(--volt-600);
}

.status--planned {
    background: rgba(154, 160, 180, 0.18);
    color: var(--slate-500);
}

.section--dark .status--live,
.venture-card .status--live,
.page-hero .status--live {
    color: #4fe0ad;
}

.section--dark .status--building,
.venture-card .status--building,
.page-hero .status--building {
    color: var(--volt-300);
}

.section--dark .status--planned,
.venture-card .status--planned,
.page-hero .status--planned {
    color: var(--slate-300);
}

.page-hero--venture::after {
    background:
        radial-gradient(45% 60% at 85% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
        radial-gradient(35% 40% at 5% 100%, rgba(117, 96, 255, 0.14), transparent 70%);
}

.venture-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

.venture-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
    color: var(--accent);
}

.venture-hero__icon .icon {
    width: 36px;
    height: 36px;
}

.venture-hero .eyebrow::before {
    background: var(--accent);
}

/* Live venture, featured large */

.venture-feature {
    position: relative;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    color: var(--slate-400);
    overflow: hidden;
}

.venture-feature + .venture-feature {
    margin-top: 1.25rem;
}

.venture-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

@media (min-width: 960px) {
    .venture-feature {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 3rem;
    }
}

.venture-feature h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.1rem);
    margin-bottom: 0.4rem;
}

.venture-feature__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
}

.venture-feature__media {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px -20px rgba(0, 0, 0, 0.7);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.venture-feature__media:hover,
.venture-feature__media:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px var(--accent), 0 28px 60px -20px rgba(0, 0, 0, 0.75);
}

.venture-feature__media span {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(11, 13, 20, 0.88);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--slate-300);
    font-size: 0.85rem;
    font-weight: 600;
}

.platform-list .icon {
    width: 1em;
    height: 1em;
    color: var(--accent);
}

.platforms {
    margin: 1rem 0 0;
    color: var(--slate-400);
    font-size: 0.95rem;
    font-weight: 500;
}

.venture-grid {
    margin-top: 1.25rem;
}

.venture-grid__heading {
    margin: 3rem 0 0;
    color: var(--white);
}

.venture-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.venture-card__footer .venture-card__more {
    margin-top: 0;
    padding-top: 0;
}

.venture-card__visit {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.venture-card__visit:hover {
    color: var(--accent);
}

.venture-card__visit .icon {
    width: 1em;
    height: 1em;
}

/* Architecture diagrams */

.architecture {
    margin: 0;
}

.architecture__preview {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.architecture__preview:hover,
.architecture__preview:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(149, 130, 255, 0.6);
    box-shadow: 0 20px 50px -18px rgba(11, 13, 20, 0.35);
}

.architecture__preview img {
    width: 100%;
}

.architecture__hint {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: var(--ink-900);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 20px -8px rgba(11, 13, 20, 0.6);
}

.architecture__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Posts */

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.post-card:hover,
.post-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(149, 130, 255, 0.5);
    box-shadow: var(--shadow);
}

.post-card h3 {
    font-size: 1.25rem;
}

.post-card p {
    color: var(--slate-500);
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    color: var(--slate-500);
    font-size: 0.875rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    position: relative;
    z-index: 2;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--charge-soft);
    color: var(--volt-600);
    font-size: 0.78rem;
    font-weight: 600;
}

.tags--quiet li {
    background: var(--paper);
    color: var(--ink-700);
    border: 1px solid var(--line);
}

.article-tags {
    margin-top: 3rem;
}

.empty {
    color: var(--slate-500);
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Services detail
   -------------------------------------------------------------------------- */

.service-detail__grid {
    display: grid;
    gap: 2.5rem 4rem;
}

@media (min-width: 960px) {
    .service-detail__grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        align-items: start;
    }
}

.service-detail__summary {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-800);
}

.service-detail p {
    color: var(--slate-500);
}

.service-detail .btn {
    margin-top: 0.75rem;
}

.service-detail__lists {
    display: grid;
    gap: 1.25rem;
}

.panel {
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.panel h2,
.panel h3 {
    font-size: 1.1rem;
}

.panel--quiet {
    background: transparent;
    box-shadow: none;
}

.section--tint .panel--quiet {
    border-color: #dcdde6;
}

.panel--dark {
    background: var(--ink-900);
    border-color: var(--ink-700);
    color: var(--slate-400);
}

.panel--dark h2,
.panel--dark h3 {
    color: var(--white);
}

.checklist,
.bullets {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    gap: 0.7rem;
    line-height: 1.5;
}

.checklist .icon {
    margin-top: 0.1em;
    color: var(--volt-500);
}

.bullets li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--slate-500);
    line-height: 1.5;
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--charge);
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Articles & prose
   -------------------------------------------------------------------------- */

.article-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 960px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 4.5rem;
        align-items: start;
    }
}

.prose {
    max-width: 70ch;
    font-size: 1.075rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    margin-top: 2.2em;
    font-size: 1.6rem;
}

.prose h3 {
    margin-top: 1.8em;
}

.prose ul,
.prose ol {
    padding-left: 1.3rem;
    margin: 0 0 1.2em;
}

.prose li {
    margin-bottom: 0.45em;
}

.prose li::marker {
    color: var(--volt-500);
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.25em;
    border-left: 3px solid var(--volt-400);
    color: var(--slate-500);
}

.prose strong {
    color: var(--ink-900);
}

.prose--on-dark,
.prose--on-dark strong {
    color: var(--slate-300);
}

.prose--on-dark strong {
    color: var(--white);
}

.fact-sheet {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 0.75rem;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.fact-sheet dl {
    display: grid;
    gap: 1.25rem;
    margin: 0 0 0.75rem;
}

.fact-sheet dt {
    margin-bottom: 0.35rem;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fact-sheet dd {
    margin: 0;
    font-weight: 500;
}

.fact-sheet .btn {
    padding-inline: 1rem;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.founder {
    display: grid;
    gap: 2.5rem 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .founder {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    }
}

.founder__photo img,
.founder__placeholder {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 6 / 7;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.founder__placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(117, 96, 255, 0.35), transparent 70%),
        var(--ink-900);
}

.founder__title {
    color: var(--slate-500);
    font-weight: 500;
}

.credentials {
    display: grid;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.credentials li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.credentials .icon {
    color: var(--volt-500);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    gap: 3rem;
}

@media (min-width: 960px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 4rem;
        align-items: start;
    }
}

.contact-form > h2 {
    margin-bottom: 1.5rem;
}

.contact-aside {
    display: grid;
    gap: 1.25rem;
}

.field-row {
    display: grid;
    gap: 0 1.25rem;
}

@media (min-width: 640px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.field label {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #cfd1dc;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink-900);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    resize: vertical;
    min-height: 160px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--slate-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--volt-500);
    box-shadow: 0 0 0 4px rgba(117, 96, 255, 0.18);
}

.field .input-validation-error {
    border-color: var(--error);
}

.field__error {
    margin-top: 0.35rem;
    color: var(--error);
    font-size: 0.9rem;
}

.field__error:empty {
    display: none;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    margin-top: 1rem;
    color: var(--slate-500);
    font-size: 0.9rem;
}

.alert {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.alert p:last-child,
.alert ul:last-child {
    margin-bottom: 0;
}

.alert--error {
    border-color: #f3c4c4;
    background: var(--error-bg);
    color: #8a1f1f;
}

.alert--error ul {
    margin: 0;
    padding-left: 1.2rem;
}

.validation-summary-valid {
    display: none;
}

.contact-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    overflow-wrap: anywhere;
}

.contact-list .icon {
    color: var(--volt-500);
}

.mini-steps {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--slate-500);
}

.mini-steps li::marker {
    color: var(--volt-500);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.cta-band__inner {
    position: relative;
    display: grid;
    gap: 1.75rem;
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cta-band__inner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--charge);
}

@media (min-width: 900px) {
    .cta-band__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3rem;
    }
}

.cta-band h2 {
    font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem);
}

.cta-band p {
    margin: 0;
    color: var(--slate-500);
    max-width: 42rem;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    padding-block: 4rem 2rem;
    background: var(--ink-950);
    color: var(--slate-400);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 720px) {
    .site-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    }
}

.site-footer__brand p {
    max-width: 22rem;
    margin-top: 1.25rem;
}

.site-footer__heading {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:not(.brand):not(.link-arrow) {
    color: var(--slate-400);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer a:not(.brand):not(.link-arrow):hover {
    color: var(--white);
}

.site-footer .muted {
    color: #7c8297;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
    padding-top: 1.75rem;
    font-size: 0.85rem;
    color: #858ba0;
}

.site-footer__legal p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .bolt__spark {
        display: none;
    }
}
