@font-face {
    font-family: "CJ Space Grotesk";
    src: url("/assets/fonts/space-grotesk-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "CJ IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "CJ IBM Plex Mono";
    src: url("/assets/fonts/ibm-plex-mono-semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #050d1c;
    --bg-alt: #081427;
    --surface: rgba(14, 30, 54, .78);
    --surface-solid: #0e1e36;
    --surface-soft: rgba(255, 255, 255, .055);
    --ink: #f8fbff;
    --ink-strong: #ffffff;
    --muted: #aebbd0;
    --muted-strong: #d5ddeb;
    --line: rgba(210, 226, 249, .15);
    --line-strong: rgba(210, 226, 249, .28);
    --navy: #071832;
    --red: #ff4e48;
    --red-dark: #d7211b;
    --gold: #f2bd57;
    --cyan: #58d6ed;
    --blue: #6b9dff;
    --violet: #ae8aff;
    --green: #66d39b;
    --orange: #ff9b5c;
    --focus: #ffe08b;
    --shadow: 0 30px 80px rgba(0, 0, 0, .32);
    --shadow-small: 0 16px 44px rgba(0, 0, 0, .2);
    --radius: 28px;
    --radius-small: 18px;
    --max: 1180px;
    --sans: "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    --display: "CJ Space Grotesk", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    --mono: "CJ IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f0e8;
    --bg-alt: #fffaf2;
    --surface: rgba(255, 255, 255, .82);
    --surface-solid: #fffdf8;
    --surface-soft: rgba(7, 24, 50, .045);
    --ink: #142039;
    --ink-strong: #071832;
    --muted: #596579;
    --muted-strong: #344057;
    --line: rgba(7, 24, 50, .13);
    --line-strong: rgba(7, 24, 50, .25);
    --red: #d92520;
    --red-dark: #a9130f;
    --gold: #bb7506;
    --cyan: #087f9c;
    --blue: #315fc0;
    --violet: #6747bd;
    --green: #167a4b;
    --orange: #b75212;
    --focus: #8e4d00;
    --shadow: 0 28px 70px rgba(7, 24, 50, .13);
    --shadow-small: 0 14px 34px rgba(7, 24, 50, .1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% -12%, color-mix(in srgb, var(--red) 20%, transparent), transparent 37rem),
        radial-gradient(circle at -10% 32%, color-mix(in srgb, var(--cyan) 11%, transparent), transparent 34rem),
        var(--bg);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

.site-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .32;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 82%);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
p,
ul,
ol {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink-strong);
    font-family: var(--display);
    text-wrap: balance;
}

h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(3.25rem, 8.8vw, 7.5rem);
    font-weight: 820;
    letter-spacing: -.082em;
    line-height: .91;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 5.4vw, 4.7rem);
    font-weight: 780;
    letter-spacing: -.067em;
    line-height: .98;
}

h3 {
    margin-bottom: .75rem;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.12;
}

em {
    color: var(--red);
    font-style: normal;
}

::selection {
    color: #071832;
    background: var(--gold);
}

.shell {
    width: min(calc(100% - 2rem), var(--max));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: .75rem 1rem;
    border-radius: 999px;
    color: #071832;
    background: #fff;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.kicker {
    margin-bottom: .85rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: .76rem;
    font-weight: 760;
    letter-spacing: .14em;
    line-height: 1.35;
    text-transform: uppercase;
}

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

.section--tight {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section--panel {
    border-block: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-alt) 84%, transparent);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.section-heading h2,
.section-heading p:last-child {
    margin-bottom: 0;
}

.section-heading > p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading--centre {
    max-width: 900px;
    grid-template-columns: 1fr;
    margin-inline: auto;
    text-align: center;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .78rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 780;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: var(--red-dark);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--red) 25%, transparent);
}

.button--primary:hover {
    box-shadow: 0 20px 44px color-mix(in srgb, var(--red) 35%, transparent);
}

.button--quiet {
    color: var(--ink-strong);
    border-color: var(--line-strong);
    background: var(--surface-soft);
}

.button--quiet:hover {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 9%, var(--surface));
}

.button--light {
    color: #071832;
    background: #fff;
}

.button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink-strong);
    font-weight: 800;
    text-decoration: none;
}

.text-link span {
    color: var(--red);
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Navigation */
.site-header {
    position: relative;
    z-index: 50;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(20px) saturate(1.2);
}

.nav__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.brand__mark {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--red) 18%, var(--surface-solid)), var(--surface-solid));
    box-shadow: var(--shadow-small);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.12em;
}

.brand__mark::before,
.brand__mark::after {
    content: "";
    position: absolute;
    background: var(--red);
}

.brand__mark::before {
    width: 100%;
    height: 2px;
    top: 7px;
}

.brand__mark::after {
    width: 2px;
    height: 100%;
    left: 50%;
    opacity: .4;
}

.brand__mark span:first-child {
    color: var(--red);
}

.brand__mark span:last-child {
    color: var(--blue);
}

.brand__text strong,
.brand__text small {
    display: block;
}

.brand__text strong {
    font-size: .94rem;
    letter-spacing: -.025em;
}

.brand__text small {
    margin-top: .05rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .61rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.nav__menu,
.nav__links,
.nav__tools {
    display: flex;
    align-items: center;
}

.nav__menu {
    gap: 1rem;
}

.nav__links {
    gap: .12rem;
}

.nav__links a {
    padding: .55rem .7rem;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: .88rem;
    font-weight: 720;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
    color: var(--ink-strong);
    background: var(--surface-soft);
}

.nav__links a[aria-current="page"] {
    box-shadow: inset 0 0 0 1px var(--line);
}

.nav__tools {
    gap: .5rem;
    padding-left: .9rem;
    border-left: 1px solid var(--line);
}

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--ink-strong);
    background: var(--surface-soft);
    cursor: pointer;
    font-family: var(--mono);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: color-mix(in srgb, var(--surface) 90%, var(--red) 10%);
}

.tool-key {
    font-size: .66rem;
}

.theme-icon--moon {
    display: none;
}

html[data-theme="light"] .theme-icon--sun {
    display: none;
}

html[data-theme="light"] .theme-icon--moon {
    display: inline;
}

.nav__toggle {
    display: none;
}

.nav__toggle-lines,
.nav__toggle-lines::before,
.nav__toggle-lines::after {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav__toggle-lines {
    position: relative;
}

.nav__toggle-lines::before,
.nav__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav__toggle-lines::before { transform: translateY(-6px); }
.nav__toggle-lines::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after { transform: rotate(90deg); }

/* Home hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -15rem;
    bottom: -18rem;
    border: 1px solid color-mix(in srgb, var(--red) 42%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem color-mix(in srgb, var(--red) 2%, transparent), 0 0 0 10rem color-mix(in srgb, var(--cyan) 2%, transparent);
    pointer-events: none;
}

.hero__inner {
    min-height: calc(100svh - 82px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .85fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 6rem);
    padding-block: clamp(4rem, 8vw, 7rem);
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.hero__lead {
    max-width: 720px;
    color: var(--muted-strong);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.status-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.8rem;
    padding: .45rem .72rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: var(--surface-soft);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .04em;
}

.status-chip span,
.status-chip i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 12%, transparent), 0 0 18px var(--green);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
    margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
    padding: 0;
    list-style: none;
}

.hero__facts li {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.hero__facts strong,
.hero__facts span {
    display: block;
}

.hero__facts strong {
    color: var(--ink-strong);
    font-family: var(--mono);
    font-size: .86rem;
}

.hero__facts span {
    margin-top: .25rem;
    color: var(--muted);
    font-size: .78rem;
}

.hero-console {
    position: relative;
    z-index: 2;
    min-height: 590px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cyan) 9%, transparent), transparent 48%),
        color-mix(in srgb, var(--surface-solid) 90%, transparent);
    box-shadow: var(--shadow);
}

.hero-console::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image: linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
    background-size: 100% 4px;
}

.hero-console__bar,
.hero-console__prompt,
.hero-console__metrics {
    position: relative;
    z-index: 3;
}

.hero-console__bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .65rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.system-state {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.system-state i,
.system-state > span:first-child {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
}

.orbit {
    position: relative;
    min-height: 385px;
    display: grid;
    place-items: center;
}

.orbit__ring {
    position: absolute;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.orbit__ring--one {
    width: 280px;
    height: 280px;
    transform: rotate(-13deg) skewX(6deg);
}

.orbit__ring--two {
    width: 360px;
    height: 180px;
    transform: rotate(18deg);
}

.orbit__ring::before,
.orbit__ring::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.orbit__ring::before { top: 11%; left: 18%; }
.orbit__ring::after { bottom: 14%; right: 14%; background: var(--red); box-shadow: 0 0 16px var(--red); }

.orbit__core {
    width: 156px;
    height: 156px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 44% 56% 51% 49% / 52% 41% 59% 48%;
    color: var(--ink-strong);
    background: linear-gradient(145deg, color-mix(in srgb, var(--red) 25%, var(--surface-solid)), color-mix(in srgb, var(--blue) 12%, var(--surface-solid)));
    box-shadow: 0 0 80px color-mix(in srgb, var(--red) 20%, transparent), inset 0 0 40px rgba(255, 255, 255, .04);
    animation: breathe 6s ease-in-out infinite;
}

.orbit__core b {
    font-family: Georgia, serif;
    font-size: 3.6rem;
    letter-spacing: -.14em;
    line-height: .9;
}

.orbit__core small {
    margin-top: .6rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .15em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.orbit__node {
    position: absolute;
    z-index: 2;
    padding: .38rem .55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: var(--surface-solid);
    font-family: var(--mono);
    font-size: .57rem;
    font-weight: 760;
    letter-spacing: .12em;
}

.orbit__node--work { top: 17%; left: 10%; color: var(--cyan); }
.orbit__node--build { top: 22%; right: 9%; color: var(--gold); }
.orbit__node--serve { bottom: 11%; left: 20%; color: var(--green); }

.hero-console__prompt {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: .9rem 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .72rem;
}

.prompt {
    margin-right: .55rem;
    color: var(--green);
}

.cursor {
    width: 7px;
    height: 1.1em;
    display: inline-block;
    margin-left: .15rem;
    background: var(--red);
    animation: blink 1s steps(1) infinite;
}

.hero-console__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    padding: .9rem 1rem 1rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .57rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-console__metrics span {
    display: grid;
    gap: .4rem;
}

.hero-console__metrics i {
    position: relative;
    height: 3px;
    display: block;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line);
}

.hero-console__metrics i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--metric);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--cyan));
}

@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(-1deg); }
    50% { transform: scale(1.035) rotate(1deg); }
}

@keyframes blink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

/* Cards and home sections */
.now-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.now-card {
    min-height: 275px;
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(12px);
    transition: transform 220ms var(--ease), border-color 220ms ease;
}

.now-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
}

.now-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
}

.now-card__top i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px currentColor;
}

.now-card--build .now-card__top i { background: var(--gold); }
.now-card--serve .now-card__top i { background: var(--green); }

.now-card h3 {
    margin-top: 2rem;
}

.now-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .93rem;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mode-card {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, color-mix(in srgb, var(--surface-solid) 95%, transparent), var(--surface));
    box-shadow: var(--shadow-small);
}

.mode-card::before {
    content: "";
    position: absolute;
    width: 14rem;
    height: 14rem;
    right: -7rem;
    top: -7rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .2;
    box-shadow: 0 0 0 2.5rem color-mix(in srgb, currentColor 4%, transparent), 0 0 0 5rem color-mix(in srgb, currentColor 3%, transparent);
}

.mode-card--work { color: var(--cyan); }
.mode-card--build { color: var(--gold); }
.mode-card--serve { color: var(--green); }

.mode-card__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: auto;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 760;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mode-card h3 {
    max-width: 300px;
    margin-top: 4rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.mode-card p {
    color: var(--muted);
}

.mode-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink-strong);
    font-weight: 800;
    text-decoration: none;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: start;
}

.split-heading__sticky {
    position: sticky;
    top: 120px;
}

.split-heading__sticky p:not(.kicker) {
    color: var(--muted);
}

.compact-timeline {
    border-top: 1px solid var(--line);
}

.compact-timeline__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: .2rem 1.25rem;
    padding-block: 1.6rem;
    border-bottom: 1px solid var(--line);
}

.compact-timeline__item > p:first-child {
    grid-row: span 3;
    color: var(--red);
    font-family: var(--mono);
    font-size: .7rem;
}

.compact-timeline__item h3,
.compact-timeline__item p {
    margin-bottom: 0;
}

.compact-timeline__item span,
.compact-timeline__item > p:last-child {
    color: var(--muted);
}

.compact-timeline__item span {
    font-family: var(--mono);
    font-size: .72rem;
}

.compact-timeline__item > p:last-child {
    margin-top: .5rem;
    font-size: .92rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.principle {
    min-height: 280px;
    padding: 1.35rem;
    border-left: 1px solid var(--line);
}

.principle > span {
    display: block;
    margin-bottom: 4rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: .68rem;
}

.principle p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .92rem;
}

.venture-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    margin-bottom: 1.25rem;
}

.venture-chip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .8rem;
    min-height: 84px;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    text-decoration: none;
    transition: transform 180ms var(--ease), border-color 180ms ease;
}

.venture-chip:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.venture-chip > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #071832;
    background: var(--red);
    font-family: var(--mono);
    font-size: .65rem;
    font-weight: 900;
}

.venture-chip--gold > span { background: var(--gold); }
.venture-chip--blue > span { background: var(--blue); }
.venture-chip--cyan > span { background: var(--cyan); }
.venture-chip strong { font-size: .83rem; line-height: 1.2; }
.venture-chip i { color: var(--muted); font-style: normal; }

.final-cta {
    color: #fff;
    background:
        radial-gradient(circle at 84% 20%, rgba(88, 214, 237, .22), transparent 25rem),
        radial-gradient(circle at 15% 100%, rgba(242, 189, 87, .16), transparent 30rem),
        linear-gradient(135deg, #071832, #29122d 65%, #731e28);
}

.final-cta__inner {
    max-width: 950px;
    text-align: center;
}

.final-cta h2 {
    color: #fff;
}

.final-cta p:not(.kicker) {
    max-width: 720px;
    margin-inline: auto;
    color: rgba(255, 255, 255, .75);
    font-size: 1.08rem;
}

.final-cta .button-row {
    justify-content: center;
}

/* Interior page hero */
.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 36rem;
    height: 36rem;
    top: -22rem;
    right: -8rem;
    border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem color-mix(in srgb, var(--cyan) 3%, transparent), 0 0 0 8rem color-mix(in srgb, var(--red) 3%, transparent);
}

.page-hero__inner {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    align-items: end;
    gap: clamp(2rem, 8vw, 7rem);
    padding-block: clamp(5rem, 10vw, 8rem);
}

.page-hero__copy {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 950px;
    font-size: clamp(3.3rem, 8vw, 7rem);
}

.page-hero__lead {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted-strong);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.page-hero__panel {
    position: relative;
    z-index: 2;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    font-family: var(--mono);
    font-size: .7rem;
}

.mini-terminal__bar {
    display: flex;
    gap: .35rem;
    margin-bottom: 1rem;
}

.mini-terminal__bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}

.mini-terminal__bar span:nth-child(2) { background: var(--gold); }
.mini-terminal__bar span:nth-child(3) { background: var(--green); }
.page-hero__panel p { margin-bottom: .5rem; }
.page-hero__panel .terminal-output { margin-bottom: 0; color: var(--muted); }

.intro-band__grid,
.faith-intro__grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 8vw, 7rem);
    align-items: start;
}

.prose {
    color: var(--muted-strong);
    font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: var(--cyan);
    font-weight: 750;
}

/* Story timeline */
.timeline {
    position: relative;
    max-width: 1040px;
    margin-inline: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 1px;
    background: linear-gradient(var(--red), var(--cyan), var(--gold));
}

.timeline__item {
    position: relative;
    margin-bottom: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.timeline__item summary {
    display: grid;
    grid-template-columns: 64px 120px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 1rem;
    min-height: 94px;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.timeline__item summary::-webkit-details-marker { display: none; }

.timeline__index {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    color: var(--red);
    background: var(--surface-solid);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 800;
}

.timeline__period {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .69rem;
}

.timeline__title strong,
.timeline__title small {
    display: block;
}

.timeline__title strong {
    color: var(--ink-strong);
    font-size: 1.05rem;
}

.timeline__title small {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .82rem;
}

.timeline__toggle {
    position: relative;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.timeline__toggle::before,
.timeline__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1px;
    background: var(--ink-strong);
    transform: translate(-50%, -50%);
}

.timeline__toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 180ms ease; }
.timeline__item[open] .timeline__toggle::after { transform: translate(-50%, -50%) rotate(0); }

.timeline__body {
    padding: 0 1.25rem 1.35rem 200px;
}

.timeline__chapter {
    margin-bottom: .55rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.timeline__summary {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: 1.05rem;
}

.timeline__body ul {
    display: grid;
    gap: .45rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.timeline__body li::marker { color: var(--red); }

.story-thread {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 8vw, 7rem);
    align-items: center;
}

.story-thread__graphic {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.story-thread__graphic::before,
.story-thread__graphic::after,
.story-thread__graphic i {
    content: "";
    position: absolute;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.story-thread__graphic::before { width: 320px; height: 320px; }
.story-thread__graphic::after { width: 230px; height: 230px; border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.story-thread__graphic i { width: 120px; height: 120px; border-color: color-mix(in srgb, var(--cyan) 55%, transparent); }

.story-thread__graphic span {
    position: absolute;
    z-index: 2;
    padding: .35rem .55rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-solid);
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .1em;
}

.story-thread__graphic span:nth-child(1) { top: 16%; left: 12%; color: var(--cyan); }
.story-thread__graphic span:nth-child(2) { top: 22%; right: 8%; color: var(--gold); }
.story-thread__graphic span:nth-child(3) { bottom: 18%; left: 14%; color: var(--red); }
.story-thread__graphic span:nth-child(4) { bottom: 12%; right: 18%; color: var(--green); }
.story-thread__copy p:not(.kicker) { color: var(--muted); }

.next-route__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.next-route__inner .kicker { grid-column: 1 / -1; margin-bottom: -1rem; }
.next-route__inner h2 { max-width: 850px; margin-bottom: 0; }

/* Work */
.role-feature {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(145deg, color-mix(in srgb, var(--cyan) 7%, var(--surface)), var(--surface));
    box-shadow: var(--shadow);
}

.role-feature__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 2rem;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
}

.role-feature__meta .status-chip { margin-bottom: auto; }
.role-feature__meta p { margin: 2rem 0 .6rem; }
.role-feature__meta a { color: var(--cyan); text-decoration: none; }
.role-feature__copy h2 em { color: var(--cyan); }
.role-feature__lead { max-width: 820px; color: var(--muted-strong); font-size: 1.12rem; }

.role-feature__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.role-feature__grid p {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.role-feature__grid strong,
.role-feature__grid span {
    display: block;
}

.role-feature__grid strong { margin-bottom: .45rem; color: var(--ink-strong); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.role-feature__grid span { color: var(--muted); font-size: .88rem; }

.filter-bar {
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.filter-bar button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .8rem;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 750;
}

.filter-bar button span {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    font-family: var(--mono);
    font-size: .58rem;
}

.filter-bar button[aria-pressed="true"] {
    color: #fff;
    background: var(--red-dark);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.capability-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.capability-card[hidden],
.interest-card[hidden] {
    display: none;
}

.capability-card__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: auto;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .65rem;
}

.capability-card__top i { color: var(--cyan); font-style: normal; text-transform: uppercase; }
.capability-card--build .capability-card__top i { color: var(--gold); }
.capability-card--serve .capability-card__top i { color: var(--green); }
.capability-card h3 { margin-top: 2.5rem; }
.capability-card > p { color: var(--muted); }

.capability-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: auto 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.capability-card li {
    padding: .3rem .5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .56rem;
}

.work-system,
.before-contact {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 8vw, 7rem);
    align-items: start;
}

.work-system__copy p:not(.kicker) { color: var(--muted); }
.work-system__steps, .check-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.work-system__steps li, .check-list li { display: grid; grid-template-columns: 60px 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.work-system__steps > li > span, .check-list > li > span { color: var(--red); font-family: var(--mono); font-size: .68rem; }
.work-system__steps strong, .check-list strong { color: var(--ink-strong); }
.work-system__steps p, .check-list p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.case-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--red) 5%, var(--surface)));
}

.case-card > span { margin-bottom: auto; color: var(--red); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.case-card h3 { margin-top: 4rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.case-card p { margin-bottom: 0; color: var(--muted); }

/* Ventures */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.venture-card {
    --venture: var(--red);
    min-height: 410px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    background:
        radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--venture) 16%, transparent), transparent 17rem),
        var(--surface);
    box-shadow: var(--shadow-small);
    text-decoration: none;
    transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.venture-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--venture) 50%, var(--line)); box-shadow: var(--shadow); }
.venture-card--gold { --venture: var(--gold); }
.venture-card--blue { --venture: var(--blue); }
.venture-card--cyan { --venture: var(--cyan); }
.venture-card--violet { --venture: var(--violet); }
.venture-card--green { --venture: var(--green); }
.venture-card--orange { --venture: var(--orange); }

.venture-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; color: var(--muted); font-family: var(--mono); font-size: .65rem; }
.venture-card__mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--venture) 60%, var(--line)); border-radius: 18px; color: var(--venture); background: color-mix(in srgb, var(--venture) 10%, var(--surface-solid)); font-weight: 900; }
.venture-card__category { margin: 3rem 0 .5rem; color: var(--venture); font-family: var(--mono); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.venture-card h3 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.venture-card > p:not(.venture-card__category) { max-width: 580px; color: var(--muted); }
.venture-card__action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-strong); font-weight: 800; }
.venture-card__action i { color: var(--venture); font-style: normal; font-size: 1.3rem; }

.connected-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.connected-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: start; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); text-decoration: none; }
.connected-card > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface-solid)); font-family: var(--mono); font-size: .65rem; font-weight: 900; }
.connected-card div > p:first-child { margin-bottom: .35rem; color: var(--gold); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.connected-card h3 { margin-bottom: .4rem; }
.connected-card div > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.connected-card > i { color: var(--gold); font-style: normal; }

.venture-manifesto { color: #fff; background: linear-gradient(125deg, #071832, #251229 65%, #6f2028); }
.venture-manifesto__inner { display: grid; grid-template-columns: 160px 1fr auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.venture-manifesto__mark { width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .28); border-radius: 46% 54% 54% 46% / 48% 42% 58% 52%; color: #fff; background: rgba(255, 255, 255, .06); font-family: Georgia, serif; font-size: 2.2rem; }
.venture-manifesto h2 { max-width: 780px; color: #fff; }
.venture-manifesto p:not(.kicker) { margin-bottom: 0; color: rgba(255, 255, 255, .72); }

/* Faith and interests */
.faith-intro__statement { padding-left: 1.5rem; border-left: 3px solid var(--gold); }

.church-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.church-card { min-height: 350px; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.church-card > span { display: block; margin: 2rem 0 .7rem; color: var(--gold); font-family: var(--mono); font-size: .65rem; }
.church-card p { margin-bottom: 0; color: var(--muted); }
.church-card__icon { position: relative; width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 24px; background: color-mix(in srgb, var(--gold) 8%, var(--surface-solid)); }
.church-card__icon::before, .church-card__icon::after, .church-card__icon span, .church-card__icon i { content: ""; position: absolute; display: block; }
.church-card__icon--signal::before { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.church-card__icon--signal::after { width: 42px; height: 42px; border: 2px solid var(--gold); border-block-color: transparent; border-radius: 50%; }
.church-card__icon--signal span { width: 62px; height: 62px; border: 1px solid var(--gold); border-block-color: transparent; border-radius: 50%; opacity: .5; }
.church-card__icon--pan::before { width: 42px; height: 32px; bottom: 17px; left: 12px; border: 2px solid var(--gold); border-radius: 5px 5px 18px 18px; }
.church-card__icon--pan::after { width: 26px; height: 3px; right: 3px; top: 28px; border-radius: 99px; background: var(--gold); transform: rotate(-12deg); }
.church-card__icon--plate::before { width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%; }
.church-card__icon--plate::after { width: 25px; height: 25px; border: 1px solid var(--gold); border-radius: 50%; opacity: .7; }

.creation-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.creation-grid__intro { position: sticky; top: 120px; }
.creation-grid__intro > p:not(.kicker) { color: var(--muted); }
.event-ticket { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 2rem 0 1rem; padding: 1.2rem; border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); border-radius: var(--radius-small); overflow: hidden; background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.event-ticket::after { content: ""; position: absolute; width: 32px; height: 32px; right: -17px; top: 50%; border: 1px dashed var(--gold); border-radius: 50%; background: var(--bg); transform: translateY(-50%); }
.event-ticket > span { grid-row: span 2; align-self: center; color: var(--gold); font-family: var(--mono); font-size: 1.15rem; font-weight: 900; }
.event-ticket strong { color: var(--ink-strong); font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; }
.event-ticket small { color: var(--muted); line-height: 1.35; }

.service-timeline { border-top: 1px solid var(--line); }
.service-timeline__item { display: grid; grid-template-columns: 50px 150px 1fr; gap: .5rem 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.service-timeline__item > span { grid-row: span 3; color: var(--red); font-family: var(--mono); font-size: .68rem; }
.service-timeline__item > p:nth-child(2) { grid-row: span 3; color: var(--gold); font-family: var(--mono); font-size: .68rem; }
.service-timeline__item h3 { margin-bottom: .35rem; }
.service-timeline__item > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.interest-card { min-height: 235px; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); }
.interest-card__status { width: fit-content; display: block; margin-bottom: 2.3rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.interest-card__status--story { color: var(--gold); }
.interest-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

/* Contact and 404 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-card { min-height: 390px; display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-small); text-decoration: none; transition: transform 200ms var(--ease), border-color 200ms ease; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--red); }
.contact-card__top { display: flex; justify-content: space-between; margin-bottom: auto; color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.contact-card__top i { color: var(--red); font-style: normal; font-size: 1.2rem; }
.contact-card .kicker { margin-top: 3rem; }
.contact-card > p:not(.kicker) { color: var(--muted); }
.contact-card__action { display: flex; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-strong); font-weight: 800; }
.contact-card__action i { color: var(--red); font-style: normal; }

.location-band { border-top: 1px solid var(--line); }
.location-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.location-band__inner h2 { margin-bottom: .5rem; }
.location-band__inner p:last-child { margin-bottom: 0; color: var(--muted); }
.location-band__coordinates { position: relative; min-width: 280px; min-height: 140px; display: grid; place-items: center; align-content: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--cyan); font-family: var(--mono); font-size: .72rem; }
.location-band__coordinates span { position: relative; z-index: 2; }
.location-band__coordinates i, .location-band__coordinates::before, .location-band__coordinates::after { content: ""; position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; }
.location-band__coordinates i { width: 40px; height: 40px; border-color: var(--red); }
.location-band__coordinates::before { width: 90px; height: 90px; }
.location-band__coordinates::after { width: 170px; height: 170px; }

.not-found { min-height: calc(100svh - 82px); display: grid; place-items: center; padding-block: 5rem; }
.not-found__inner { max-width: 900px; text-align: center; }
.not-found__code { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; color: var(--muted); font-family: var(--mono); font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 900; }
.not-found__code i { width: clamp(90px, 16vw, 150px); height: clamp(90px, 16vw, 150px); display: grid; place-items: center; border: 1px solid var(--red); border-radius: 46% 54% 52% 48% / 48% 43% 57% 52%; color: var(--red); font-family: Georgia, serif; font-size: clamp(1.4rem, 4vw, 3rem); font-style: normal; }
.not-found h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
.not-found__inner > p:not(.kicker) { max-width: 690px; margin-inline: auto; color: var(--muted); }
.not-found .button-row { justify-content: center; }

/* Command palette */
.command {
    width: min(calc(100% - 2rem), 680px);
    max-height: min(84svh, 760px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--surface-solid);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}

.command::backdrop { background: rgba(2, 7, 15, .75); backdrop-filter: blur(8px); }
.command__panel { padding: 1.2rem; }
.command__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.command__header h2 { margin-bottom: 0; font-size: 1.5rem; letter-spacing: -.035em; }
.command__search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; margin-bottom: .8rem; padding: .75rem .85rem; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-soft); }
.command__search input { min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.command__search input::placeholder { color: var(--muted); }
.command__search kbd { padding: .2rem .4rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font-family: var(--mono); font-size: .55rem; }
.command__results { max-height: 430px; display: grid; gap: .3rem; overflow-y: auto; }
.command__results a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .7rem; padding: .75rem; border-radius: 12px; color: var(--muted-strong); text-decoration: none; }
.command__results a:hover, .command__results a:focus-visible { color: var(--ink-strong); background: var(--surface-soft); }
.command__index { color: var(--red); font-family: var(--mono); font-size: .62rem; }
.command__empty { margin: 1rem 0 0; color: var(--muted); text-align: center; }

/* Footer */
.footer { padding-block: 4rem 2rem; border-top: 1px solid var(--line); background: #040a15; color: #fff; }
html[data-theme="light"] .footer { background: #071832; }
.footer__lead { display: grid; grid-template-columns: 1fr minmax(280px, .65fr); gap: 2rem; align-items: start; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand--footer { color: #fff; }
.brand--footer .brand__text small { color: rgba(255, 255, 255, .55); }
.footer__lead > p { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .62); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; padding-block: 2rem; }
.footer__nav a { color: rgba(255, 255, 255, .78); font-size: .88rem; font-weight: 700; text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: rgba(255, 255, 255, .48); font-family: var(--mono); font-size: .62rem; }
.footer__base p { margin: 0; }

/* Progressive enhancement */
html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

html.reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
    .nav__links a { padding-inline: .5rem; font-size: .82rem; }
    .now-grid { grid-template-columns: repeat(2, 1fr); }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
    .venture-strip { grid-template-columns: repeat(2, 1fr); }
    .capability-grid, .interest-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { grid-template-columns: 1fr minmax(360px, .78fr); gap: 2rem; }
    .hero-console { min-height: 540px; }
}

@media (max-width: 920px) {
    .nav__toggle { display: inline-flex; margin-left: auto; }
    .nav__menu { position: absolute; top: calc(100% + .7rem); left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--surface-solid); box-shadow: var(--shadow); }
    .nav__menu.is-open { display: flex; }
    .nav__links { flex-direction: column; align-items: stretch; }
    .nav__links a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: .65rem .8rem; }
    .nav__tools { justify-content: center; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .hero__inner, .page-hero__inner { min-height: auto; grid-template-columns: 1fr; align-items: center; }
    .hero-console { width: min(100%, 620px); margin-inline: auto; }
    .page-hero__panel { max-width: 520px; }
    .section-heading, .intro-band__grid, .faith-intro__grid, .story-thread, .work-system, .before-contact, .creation-grid { grid-template-columns: 1fr; }
    .mode-grid, .case-grid, .church-grid, .contact-grid { grid-template-columns: 1fr; }
    .mode-card { min-height: 330px; }
    .split-heading { grid-template-columns: 1fr; }
    .split-heading__sticky, .creation-grid__intro { position: static; }
    .role-feature { grid-template-columns: 1fr; }
    .role-feature__meta { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0 0 1.3rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .role-feature__meta .status-chip { grid-column: 1 / -1; margin-bottom: .4rem; }
    .role-feature__meta p { margin: 0; }
    .venture-manifesto__inner { grid-template-columns: 120px 1fr; }
    .venture-manifesto__mark { width: 110px; height: 110px; }
    .venture-manifesto .button { grid-column: 2; width: fit-content; }

    html.no-js .nav__inner { flex-wrap: wrap; padding-block: .65rem; }
    html.no-js .nav__toggle { display: none; }
    html.no-js .nav__menu { position: static; width: 100%; display: flex; order: 3; margin-top: .55rem; padding: .6rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
    html.no-js .nav__links { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
    html.no-js .nav__tools { display: none; }
    html.no-js .filter-bar { display: none; }
}

@media (max-width: 720px) {
    h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
    h2 { font-size: clamp(2.25rem, 11vw, 3.6rem); }
    .brand__text small { display: none; }
    .nav__inner { min-height: 72px; }
    .hero__inner { min-height: auto; padding-block: 3.5rem; }
    .hero__facts { grid-template-columns: 1fr; }
    .hero-console { min-height: 480px; }
    .orbit { min-height: 320px; transform: scale(.86); }
    .hero-console__metrics { grid-template-columns: 1fr; }
    .now-grid, .principles-grid, .venture-strip, .capability-grid, .ventures-grid, .connected-grid, .interest-grid { grid-template-columns: 1fr; }
    .principle { min-height: auto; padding-block: 1.5rem; }
    .principle > span { margin-bottom: 2rem; }
    .compact-timeline__item { grid-template-columns: 1fr; }
    .compact-timeline__item > p:first-child { grid-row: auto; }
    .page-hero__inner { min-height: 530px; padding-block: 4rem; }
    .timeline::before { display: none; }
    .timeline__item summary { grid-template-columns: 44px 1fr 32px; gap: .75rem; }
    .timeline__index { width: 38px; height: 38px; }
    .timeline__period { grid-column: 2; grid-row: 1; }
    .timeline__title { grid-column: 2; grid-row: 2; }
    .timeline__toggle { grid-column: 3; grid-row: 1 / span 2; }
    .timeline__body { padding: 0 1rem 1.2rem 1rem; }
    .story-thread__graphic { min-height: 340px; }
    .role-feature__grid { grid-template-columns: 1fr; }
    .filter-bar { width: 100%; border-radius: 18px; }
    .filter-bar button { flex: 1 1 calc(50% - .5rem); justify-content: center; }
    .work-system__steps li, .check-list li { grid-template-columns: 42px 1fr; }
    .service-timeline__item { grid-template-columns: 40px 1fr; }
    .service-timeline__item > span { grid-row: span 4; }
    .service-timeline__item > p:nth-child(2) { grid-row: auto; }
    .service-timeline__item h3, .service-timeline__item > p:last-child { grid-column: 2; }
    .venture-manifesto__inner { grid-template-columns: 1fr; text-align: center; }
    .venture-manifesto__mark { margin-inline: auto; }
    .venture-manifesto .button { grid-column: auto; width: fit-content; margin-inline: auto; }
    .next-route__inner { grid-template-columns: 1fr; align-items: start; }
    .next-route__inner .kicker { margin-bottom: -.5rem; }
    .location-band__inner { flex-direction: column; align-items: stretch; }
    .location-band__coordinates { min-width: 0; }
    .footer__lead { grid-template-columns: 1fr; }
    .footer__base { flex-direction: column; }
}

@media (max-width: 430px) {
    .shell { width: min(calc(100% - 1.25rem), var(--max)); }
    .brand__text strong { font-size: .82rem; }
    .brand__mark { width: 44px; height: 44px; }
    .nav__menu { left: .625rem; right: .625rem; }
    .button-row .button { width: 100%; }
    .hero-console { border-radius: 22px; }
    .orbit { transform: scale(.75); margin-inline: -2rem; }
    .page-hero__panel { display: none; }
    .filter-bar button { flex-basis: 100%; }
    .venture-card, .contact-card { min-height: 360px; }
    html.no-js .nav__links { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    html.reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
    .nav__tools, .nav__toggle, .command, .site-grid { display: none !important; }
    body { color: #111; background: #fff; }
    .nav { position: static; background: #fff; }
    .section, .page-hero__inner { padding-block: 2rem; }
    a { color: #111; text-decoration: underline; }
}
