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

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

@font-face {
    font-family: "Instrument Serif";
    src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

:root {
    --ink: #0a0b1a;
    --ink-2: #111229;
    --navy: #1b1c39;
    --navy-2: #26284f;
    --yellow: #ffe557;
    --yellow-soft: rgba(255, 229, 87, .14);
    --lilac: #b9b5ff;
    --paper: #f5f3ec;
    --paper-2: #ebe8dd;
    --text-dark: #12132a;
    --muted-dark: #5b5d7a;
    --text-light: #f3f2fb;
    --muted-light: #a3a5c7;
    --line-dark: rgba(18, 19, 42, .12);
    --line-light: rgba(255, 255, 255, .1);
    --radius: 24px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --header-h: 76px;
}

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

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

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

main {
    overflow-x: clip;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

p {
    margin: 0;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

::selection {
    background: var(--yellow);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(1240px, 100% - 48px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s;
}

.skip-link:focus {
    top: 16px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 22px;
}

/* agenthouse is a lowercase brand */
.eyebrow-brand {
    text-transform: none;
    letter-spacing: .12em;
}

.section-light .eyebrow {
    color: var(--muted-dark);
}

.section-light .eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--text-dark);
}

.section-dark .eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--yellow);
}

/* ---------- Intro ---------- */
.intro {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: var(--ink);
    pointer-events: none;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s var(--ease-in-out) .15s;
}

.intro-mark {
    width: 92px;
    height: 92px;
    overflow: visible;
}

.intro-disc {
    fill: var(--yellow);
    transform-origin: 50% 50%;
    animation: introDisc .7s var(--ease) both;
}

.intro-sq,
.intro-poly {
    fill: var(--navy);
    animation: introShape .6s var(--ease) both;
}

.intro-sq {
    animation-delay: .35s;
}

.intro-poly {
    animation-delay: .25s;
}

@keyframes introDisc {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes introShape {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

html.is-loaded .intro {
    clip-path: inset(0 0 100% 0);
}

html:not(.js) .intro {
    display: none;
}

/* ---------- Scroll progress & cursor ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 1200;
    background: var(--yellow);
    transform-origin: 0 50%;
    transform: scaleX(var(--p, 0));
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 4000;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--yellow);
}

.cursor-ring {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1.5px solid rgba(255, 229, 87, .8);
}

html.has-cursor .cursor-dot,
html.has-cursor .cursor-ring {
    opacity: 1;
}

/* has-cursor is only set once the custom cursor is tracking the mouse, so the
   native pointer returns whenever it isn't (touch, reduced motion, no JS, mouse left the window). */
html.has-cursor,
html.has-cursor * {
    cursor: none !important;
}

html.has-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html.has-cursor textarea {
    cursor: text !important;
}

html.cursor-hover .cursor-ring {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(255, 229, 87, .9);
    border-color: transparent;
}

html.cursor-hover .cursor-dot {
    opacity: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s, box-shadow .4s;
}

.site-header.is-scrolled {
    background: rgba(10, 11, 26, .72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 1px 0 var(--line-light);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-right: auto;
}

.brand img {
    width: 40px;
    height: 40px;
    transition: transform .6s var(--ease);
}

.brand:hover img {
    transform: rotate(-90deg);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    position: relative;
    padding: 8px 14px;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted-light);
    transition: color .25s;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1.5px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text-light);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-nav .nav-cta {
    margin-left: 10px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
}

.site-nav .nav-cta::after {
    display: none;
}

.site-nav .nav-cta:hover {
    color: var(--ink);
    box-shadow: 0 0 0 6px var(--yellow-soft);
}

.nav-lang-slot {
    display: flex;
    align-items: center;
    min-width: 40px;
}

/* Language switcher (created by translations.js) */
.language-switcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1150;
}

.nav-lang-slot .language-switcher {
    position: relative;
    top: auto;
    right: auto;
}

.language-switcher-button {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    transition: background-color .25s, transform .25s var(--ease);
}

.language-switcher-button:hover {
    background: rgba(255, 229, 87, .18);
    transform: rotate(20deg);
}

.language-switcher-button img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.language-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    display: none;
    min-width: 130px;
    padding: 6px;
    border-radius: 14px;
    background: var(--ink-2);
    border: 1px solid var(--line-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.language-dropdown.show {
    display: block;
    animation: dropIn .25s var(--ease);
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.language-option {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--text-light);
    font: inherit;
    font-size: .92rem;
    text-align: left;
    cursor: pointer;
}

.language-option:hover {
    background: rgba(255, 229, 87, .14);
}

html[lang="de"] .language-option[data-lang="de"],
html[lang="en"] .language-option[data-lang="en"] {
    color: var(--yellow);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: var(--text-light);
    transition: transform .4s var(--ease);
}

.nav-toggle span:first-child {
    top: 18px;
}

.nav-toggle span:last-child {
    top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 32px;
    background: var(--ink);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    animation: mobileIn .6s var(--ease) forwards;
}

.mobile-nav a:nth-child(2) {
    animation-delay: .05s;
}

.mobile-nav a:nth-child(3) {
    animation-delay: .1s;
}

.mobile-nav a:nth-child(4) {
    animation-delay: .15s;
}

.mobile-nav a:nth-child(5) {
    animation-delay: .2s;
    color: var(--yellow);
}

@keyframes mobileIn {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .4s var(--ease);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--yellow);
    color: var(--ink);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    transform: translateY(101%);
    border-radius: inherit;
    transition: transform .45s var(--ease);
}

.btn-primary:hover::before {
    transform: none;
}

.btn-primary:hover {
    box-shadow: 0 18px 40px -12px rgba(255, 229, 87, .55);
}

.btn-ghost {
    color: var(--text-light);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25);
    background: transparent;
}

.btn-ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--yellow);
    color: var(--yellow);
}

/* ---------- Reveal & split text ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--delay, 0s);
}

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

.split .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 .06em .12em 0;
    margin: 0 -.06em -.12em 0;
}

.split .wi {
    display: inline-block;
}

.js .split .wi {
    transform: translateY(115%) rotate(4deg);
    transform-origin: 0 100%;
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms));
}

.js .split.is-in .wi {
    transform: none;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--header-h) + 40px) 0 0;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 80% 10%, rgba(185, 181, 255, .12), transparent 70%),
        radial-gradient(50% 60% at 10% 90%, rgba(255, 229, 87, .08), transparent 70%),
        var(--ink);
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
    opacity: .35;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 160px;
    z-index: 1;
    background: linear-gradient(transparent, var(--ink));
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, 100% - 48px);
    margin: 0 auto;
    padding-bottom: clamp(130px, 18vh, 190px);
    pointer-events: none;
}

.hero-inner a,
.hero-inner button {
    pointer-events: auto;
}

.hero-eyebrow {
    color: var(--muted-light);
    letter-spacing: .14em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 0 rgba(255, 229, 87, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(255, 229, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 229, 87, 0);
    }
}

.hero-title {
    font-size: clamp(3.2rem, 10.5vw, 10.5rem);
    font-weight: 600;
    line-height: .9;
    letter-spacing: -0.055em;
    margin-bottom: 34px;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    --base: 250ms;
}

.hero-title em {
    color: var(--yellow);
    font-size: 1.08em;
    letter-spacing: -0.02em;
}

.hero-lead {
    max-width: 640px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--muted-light);
    margin-bottom: 38px;
    --delay: .55s;
    text-shadow: 0 2px 20px var(--ink);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    --delay: .7s;
}

.hero-foot {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 56px;
    width: min(1240px, 100% - 48px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: .85rem;
    color: var(--muted-light);
}

.dive-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-light);
    background: rgba(10, 11, 26, .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dive-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .7rem;
}

.dive-label::before {
    content: "";
    width: 2px;
    height: 14px;
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow);
}

.dive-value {
    display: inline-block;
    color: var(--yellow);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    transition: opacity .3s, transform .3s var(--ease);
}

.dive-value.is-swapping {
    opacity: 0;
    transform: translateY(8px);
}

.scroll-cue {
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    position: relative;
    flex: none;
}

.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--yellow);
    animation: scrollCue 1.8s var(--ease) infinite;
}

@keyframes scrollCue {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

.hero-hint {
    text-align: right;
    max-width: 260px;
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    z-index: 3;
    background: var(--yellow);
    color: var(--ink);
    padding: 22px 0;
    transform: rotate(-1.6deg) scale(1.03);
    margin: 1.8vw 0 -10px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex: none;
}

.marquee-group span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
    white-space: nowrap;
    padding: 0 26px;
}

.marquee-group i {
    width: 18px;
    height: 18px;
    flex: none;
    background:
        linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 5px no-repeat,
        linear-gradient(var(--ink), var(--ink)) 50% 0 / 5px 100% no-repeat;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Sections ---------- */
.section-dark {
    background: var(--ink);
    color: var(--text-light);
}

.section-light {
    background: var(--paper);
    color: var(--text-dark);
}

.section-head {
    max-width: 820px;
    margin-bottom: clamp(48px, 7vw, 80px);
}

.section-title {
    font-size: clamp(2.4rem, 5.6vw, 5rem);
    letter-spacing: -0.045em;
    line-height: .98;
    margin-bottom: 24px;
}

.section-title em,
.contact-title em {
    white-space: nowrap;
}

.section-dark .section-title em {
    color: var(--yellow);
}

.section-light .section-title em {
    background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%);
    padding: 0 .08em;
}

.section-lead {
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    max-width: 640px;
}

.section-light .section-lead {
    color: var(--muted-dark);
}

.section-dark .section-lead {
    color: var(--muted-light);
}

/* ---------- Manifesto ---------- */
.manifesto {
    padding: clamp(120px, 16vw, 200px) 0 clamp(90px, 12vw, 160px);
}

.manifesto-text {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.9vw, 3.5rem);
    line-height: 1.16;
    font-weight: 500;
    letter-spacing: -0.03em;
    max-width: 1100px;
    margin-bottom: clamp(80px, 12vw, 140px);
}

.scrub .sw {
    opacity: .14;
    transition: opacity .25s linear, color .25s linear;
}

.scrub .sw.on {
    opacity: 1;
}

.scrub .sw.key.on {
    color: var(--yellow);
}

html:not(.js) .scrub .sw {
    opacity: 1;
}

.tmodel {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.tmodel-visual {
    position: relative;
    aspect-ratio: 400 / 320;
    border-radius: var(--radius);
    background:
        radial-gradient(60% 60% at 50% 20%, rgba(255, 229, 87, .08), transparent 70%),
        var(--ink-2);
    border: 1px solid var(--line-light);
    padding: 6%;
}

.tmodel-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tmodel-svg path,
.tmodel-svg line {
    fill: none;
    stroke-linecap: round;
}

.t-bar {
    stroke: var(--text-light);
    stroke-width: 3;
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    transition: stroke-dashoffset 1.4s var(--ease);
}

.t-stem {
    stroke: url(#tgrad);
    stroke-width: 14;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    transition: stroke-dashoffset 1.4s var(--ease) 1s;
}

.t-nodes circle {
    fill: var(--ink-2);
    stroke: var(--text-light);
    stroke-width: 2.5;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    transition: transform .6s var(--ease);
}

.t-nodes circle:nth-child(1) {
    transition-delay: .2s;
}

.t-nodes circle:nth-child(2) {
    transition-delay: .35s;
}

.t-nodes circle:nth-child(3) {
    transition-delay: .5s;
}

.t-nodes circle:nth-child(4) {
    transition-delay: .65s;
}

.t-nodes circle:nth-child(5) {
    transition-delay: .8s;
}

.t-nodes circle:nth-child(6) {
    transition-delay: .95s;
}

.t-depth line {
    stroke: var(--yellow);
    stroke-width: 2;
    opacity: 0;
    transition: opacity .6s;
}

.t-depth line:nth-child(1) {
    transition-delay: 1.5s;
}

.t-depth line:nth-child(2) {
    transition-delay: 1.7s;
}

.t-depth line:nth-child(3) {
    transition-delay: 1.9s;
}

.t-depth line:nth-child(4) {
    transition-delay: 2.1s;
}

.t-core {
    fill: var(--yellow);
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    transition: transform .8s var(--ease) .9s;
}

.t-pulse {
    fill: #fff;
    opacity: 0;
}

.tmodel.is-in .t-bar,
.tmodel.is-in .t-stem {
    stroke-dashoffset: 0;
}

.tmodel.is-in .t-nodes circle,
.tmodel.is-in .t-core {
    transform: scale(1);
}

.tmodel.is-in .t-depth line {
    opacity: 1;
}

.t-network path {
    fill: none;
    stroke: var(--lilac);
    stroke-width: 1.2;
    stroke-dasharray: 3 6;
    opacity: 0;
    transition: opacity 1s 2.2s;
}

.t-network circle {
    fill: var(--lilac);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    transition: transform .6s var(--ease) 2.4s, opacity .6s 2.4s;
}

.tmodel.is-in .t-network path {
    opacity: .45;
    animation: tnet 14s linear 3.2s infinite;
}

.tmodel.is-in .t-network circle {
    opacity: .9;
    transform: scale(1);
    animation: ttwinkle 3.6s ease-in-out 3s infinite;
}

.tmodel.is-in .t-network circle:nth-of-type(2n) {
    animation-delay: 4.2s;
}

.tmodel.is-in .t-network circle:nth-of-type(3n) {
    animation-delay: 5.1s;
}

@keyframes tnet {
    to {
        stroke-dashoffset: -180;
    }
}

@keyframes ttwinkle {
    0%,
    100% {
        opacity: .9;
    }

    50% {
        opacity: .35;
    }
}

.tmodel.is-in .t-pulse {
    animation: tdive 2.6s var(--ease-in-out) 2.2s infinite;
}

@keyframes tdive {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(235px);
    }
}

.tmodel-pillars {
    display: grid;
    gap: 14px;
}

.pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 22px;
    padding: 26px 28px;
    border-radius: 20px;
    border: 1px solid var(--line-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, .04), transparent);
    transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}

.pillar:hover {
    border-color: rgba(255, 229, 87, .45);
    transform: translateX(6px);
}

.pillar:nth-child(2) {
    --delay: .12s;
}

.pillar:nth-child(3) {
    --delay: .24s;
}

.pillar:nth-child(4) {
    --delay: .36s;
}

.pillar-num {
    grid-row: span 2;
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--yellow);
    padding-top: 6px;
}

.pillar h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.pillar p {
    color: var(--muted-light);
    font-size: .98rem;
}

/* ---------- Stats ---------- */
.stats {
    padding: clamp(70px, 9vw, 110px) 0 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-dark);
}

.stat {
    padding: 34px 26px 10px 0;
    border-right: 1px solid var(--line-dark);
    padding-left: 26px;
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    border-right: 0;
}

.stat:nth-child(2) {
    --delay: .1s;
}

.stat:nth-child(3) {
    --delay: .2s;
}

.stat:nth-child(4) {
    --delay: .3s;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    max-width: 220px;
    font-size: .95rem;
    color: var(--muted-dark);
}

/* ---------- Disciplines ---------- */
.disciplines {
    padding: clamp(100px, 12vw, 160px) 0 clamp(100px, 12vw, 160px);
}

.disc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.disc-card {
    --accent: #ffe557;
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line-dark);
    overflow: hidden;
    isolation: isolate;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
    cursor: pointer;
}

.disc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}

.disc-card:hover,
.disc-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px rgba(18, 19, 42, .35);
    border-color: color-mix(in srgb, var(--accent) 70%, var(--text-dark));
}

.disc-card:hover::before,
.disc-card:focus-visible::before {
    opacity: 1;
}

.disc-card:nth-child(3n+2) {
    --delay: .1s;
}

.disc-card:nth-child(3n) {
    --delay: .2s;
}

.disc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.disc-num {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted-dark);
}

.disc-gauge {
    position: relative;
    width: 4px;
    height: 44px;
    border-radius: 4px;
    background: var(--line-dark);
    overflow: hidden;
}

.disc-gauge i {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(var(--d) * 100%);
    background: var(--text-dark);
    transform: scaleY(.25);
    transform-origin: top;
    transition: transform .8s var(--ease);
}

.disc-card:hover .disc-gauge i,
.disc-card:focus-visible .disc-gauge i {
    transform: scaleY(1);
}

.disc-card h3 {
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.disc-card>p {
    color: var(--muted-dark);
    font-size: .98rem;
    margin-bottom: 22px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
    background: var(--paper);
    border: 1px solid var(--line-dark);
}

.disc-open {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-family: var(--font-display);
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.disc-open svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .5s var(--ease), background-color .3s, color .3s;
}

.disc-card:hover .disc-open svg {
    transform: translateY(4px);
    background: var(--text-dark);
    color: #fff;
    stroke: #fff;
}

.disc-card-feature {
    background: var(--navy);
    color: var(--text-light);
    border-color: transparent;
}

.disc-card-feature>p,
.disc-card-feature .disc-num {
    color: var(--muted-light);
}

.disc-card-feature .chips li {
    background: rgba(255, 255, 255, .06);
    border-color: var(--line-light);
}

.disc-card-feature .disc-gauge {
    background: var(--line-light);
}

.disc-card-feature .disc-gauge i {
    background: var(--yellow);
}

.disc-card-feature h3 {
    color: var(--yellow);
}

.disc-card-feature:hover .disc-open svg {
    background: var(--yellow);
    stroke: var(--ink);
    border-color: var(--yellow);
}

/* ---------- Deep panel ---------- */
.deep-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(600px, 100vw);
    height: 100%;
    max-height: none;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--ink);
    color: var(--text-light);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.deep-panel[open] {
    animation: panelIn .6s var(--ease);
}

.deep-panel.is-closing {
    animation: panelOut .4s var(--ease-in-out) forwards;
}

.deep-panel::backdrop {
    background: rgba(10, 11, 26, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@keyframes panelIn {
    from {
        transform: translateX(100%);
    }
}

@keyframes panelOut {
    to {
        transform: translateX(100%);
    }
}

.deep-panel-inner {
    position: relative;
    padding: 64px clamp(26px, 5vw, 56px) 56px;
    min-height: 100%;
    border-left: 4px solid var(--accent, var(--yellow));
}

.deep-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-light);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: transform .4s var(--ease), background-color .3s;
}

.deep-close svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.deep-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, .08);
}

.deep-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    margin-bottom: 34px;
}

.deep-body h4 {
    font-size: 1.15rem;
    color: var(--accent, var(--yellow));
    margin: 28px 0 8px;
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.deep-body h4::before {
    content: counter(deep, decimal-leading-zero);
    counter-increment: deep;
    font-size: .75rem;
    color: var(--muted-light);
}

.deep-body {
    counter-reset: deep;
    margin-bottom: 44px;
}

.deep-body p {
    color: var(--muted-light);
}

.deep-body>* {
    animation: deepItem .6s var(--ease) both;
}

@keyframes deepItem {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
}

/* ---------- agenthouse ---------- */
.agenthouse {
    position: relative;
    padding: clamp(110px, 14vw, 180px) 0;
    overflow: hidden;
}

.agent-glow {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 181, 255, .18), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}

.agent-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.agent-copy .section-title em {
    color: var(--lilac);
}

.agent-hosting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px 14px;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--muted-light);
}

.agent-hosting::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow);
}

.agent-points {
    display: grid;
    gap: 2px;
    margin: 34px 0 34px;
}

.agent-kicker {
    display: block;
    font-family: var(--font-display);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lilac);
    margin-bottom: 6px;
}

.agent-point {
    padding: 18px 0 18px 22px;
    border-left: 2px solid var(--line-light);
    transition: border-color .3s;
}

.agent-point:hover {
    border-color: var(--lilac);
}

.agent-point:nth-child(2) {
    --delay: .1s;
}

.agent-point:nth-child(3) {
    --delay: .2s;
}

.agent-point h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.agent-point p {
    color: var(--muted-light);
    font-size: .96rem;
}

.agent-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0;
    margin: 0 0 40px;
    list-style: none;
    counter-reset: none;
}

.agent-steps li {
    position: relative;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-light);
    font-size: .85rem;
    line-height: 1.3;
}

.agent-steps li::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    background: var(--lilac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .8s var(--ease);
}

.agent-steps.is-in li::after {
    transform: scaleX(1);
}

.agent-steps li:nth-child(2)::after {
    transition-delay: .25s;
}

.agent-steps li:nth-child(3)::after {
    transition-delay: .5s;
}

.agent-steps li:nth-child(4)::after {
    transition-delay: .75s;
}

.agent-steps span {
    display: block;
    font-family: var(--font-display);
    color: var(--lilac);
    font-size: .75rem;
    margin-bottom: 4px;
}

.agent-steps strong {
    font-weight: 500;
}

.agent-visual {
    display: grid;
    gap: 26px;
    justify-items: center;
}

.orbit {
    --size: min(520px, 84vw);
    --r: calc(var(--size) * .4);
    position: relative;
    width: var(--size);
    height: var(--size);
}

.orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(185, 181, 255, .28);
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 36%;
    height: 36%;
    border-style: solid;
    border-color: rgba(255, 229, 87, .25);
    animation: ringPulse 4s var(--ease-in-out) infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
}

.ring-3 {
    width: 100%;
    height: 100%;
    border-color: rgba(255, 255, 255, .06);
}

@keyframes ringPulse {
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        border-color: rgba(255, 229, 87, .5);
    }
}

.orbit-spin {
    position: absolute;
    inset: 0;
    animation: spin 60s linear infinite;
}

.orbit:hover .orbit-spin,
.orbit:hover .agent-node span {
    animation-play-state: paused;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spoke {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--r);
    height: 1px;
    transform-origin: 0 50%;
    transform: rotate(var(--a));
    background: linear-gradient(90deg, rgba(255, 229, 87, .5), rgba(185, 181, 255, .25));
}

.spoke::after {
    content: "";
    position: absolute;
    top: -2.5px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 12px var(--yellow);
    animation: spokePulse 3s var(--ease-in-out) infinite;
    animation-delay: calc(var(--a) / 60deg * .5s);
}

.spoke:nth-child(even)::after {
    animation-direction: reverse;
    background: var(--lilac);
    box-shadow: 0 0 12px var(--lilac);
}

@keyframes spokePulse {
    0% {
        left: 18%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 6px);
        opacity: 0;
    }
}

.agent-node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--a)) translateX(var(--r));
}

.agent-node span {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(17, 18, 41, .92);
    border: 1px solid rgba(185, 181, 255, .35);
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-light);
    translate: -50% -50%;
    rotate: calc(-1 * var(--a));
    animation: spinBack 60s linear infinite;
    transition: border-color .3s, background-color .3s;
}

.agent-node span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lilac);
    box-shadow: 0 0 10px var(--lilac);
}

.agent-node-product span {
    border-color: rgba(255, 229, 87, .55);
    color: var(--yellow);
}

.agent-node-product span::before {
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow);
}

.agent-node span:hover {
    border-color: var(--yellow);
    background: var(--navy);
}

@keyframes spinBack {
    to {
        transform: rotate(-360deg);
    }
}

.orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30%;
    height: 30%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: radial-gradient(circle at 35% 30%, #fff3a8, var(--yellow) 45%, #e8c93a);
    color: var(--ink);
    box-shadow: 0 0 0 10px rgba(255, 229, 87, .08), 0 0 80px rgba(255, 229, 87, .35);
}

.core-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(.95rem, 1.6vw, 1.2rem);
    letter-spacing: -0.02em;
}

.core-sub {
    max-width: 8.5em;
    margin: 2px auto 0;
    font-size: clamp(.62rem, 1vw, .75rem);
    line-height: 1.25;
    opacity: .75;
}

.agent-log {
    width: min(520px, 100%);
    border-radius: 16px;
    background: #07081a;
    border: 1px solid var(--line-light);
    font-family: var(--font-mono);
    font-size: .8rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}

.log-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-light);
    color: var(--muted-light);
    font-size: .72rem;
}

.log-head i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
}

.log-head i:first-child {
    background: #ff6b6b;
}

.log-head i:nth-child(2) {
    background: var(--yellow);
}

.log-head i:nth-child(3) {
    background: #6bff95;
}

.log-head span {
    margin-left: 8px;
}

.log-lines {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    min-height: 150px;
    color: #cfd0ec;
}

.log-lines li {
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-lines li::before {
    content: "▸ ";
    color: var(--yellow);
}

.js .log-lines li.is-pending {
    visibility: hidden;
}

.log-lines li.is-typing::after {
    content: "▍";
    color: var(--yellow);
    animation: blink .8s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ---------- Projects ---------- */
.projects {
    padding: clamp(110px, 14vw, 180px) 0;
}

.proj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.proj-filter {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    background: transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s;
}

.proj-filter:hover {
    border-color: var(--text-dark);
}

.proj-filter.active {
    background: var(--text-dark);
    color: var(--paper);
    border-color: var(--text-dark);
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.proj-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line-dark);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
    will-change: transform;
}

.proj-card.is-hidden {
    display: none;
}

.proj-card:hover {
    box-shadow: 0 40px 70px -35px rgba(18, 19, 42, .45);
}

.proj-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--navy);
}

.proj-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 11, 26, .35));
}

.proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.2s var(--ease), filter .6s;
    filter: saturate(.85);
}

.proj-card:hover .proj-media img {
    transform: scale(1.12);
    filter: saturate(1.1);
}

.proj-tags {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proj-tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 11, 26, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .72rem;
    font-weight: 500;
}

.proj-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 26px 26px;
    flex: 1;
}

.proj-body h3 {
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.proj-body p {
    font-size: .94rem;
    color: var(--muted-dark);
}

.proj-body a {
    color: var(--text-dark);
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.proj-dive {
    margin-top: auto !important;
    padding-top: 14px;
    border-top: 1px dashed var(--line-dark);
    font-size: .82rem !important;
}

.proj-dive span {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
}

.proj-dive b {
    color: var(--text-dark);
    font-weight: 600;
}

/* ---------- Process ---------- */
.process {
    padding: clamp(110px, 14vw, 180px) 0;
    overflow: hidden;
}

.process-track {
    position: relative;
}

.process-line {
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    width: 100%;
    height: 120px;
    overflow: visible;
}

.process-line path {
    fill: none;
    stroke: var(--yellow);
    stroke-width: 2;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--p, 0));
}

.process-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 130px;
}

.step {
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line-light);
    transition: background-color .3s, border-color .3s;
}

.step:hover {
    background: rgba(255, 229, 87, .06);
    border-color: rgba(255, 229, 87, .35);
}

.step:nth-child(2) {
    --delay: .1s;
}

.step:nth-child(3) {
    --delay: .2s;
}

.step:nth-child(4) {
    --delay: .3s;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 22px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--muted-light);
    font-size: .95rem;
}

.formats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
}

.formats span {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-light);
    font-size: .9rem;
}

.formats .formats-label {
    border: 0;
    padding-left: 0;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem;
}

/* ---------- Ecosystem ---------- */
.ecosystem {
    padding: clamp(110px, 14vw, 180px) 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
}

.eco-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 32px 30px;
    background: var(--paper);
    text-decoration: none;
    isolation: isolate;
    overflow: hidden;
}

.eco-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--yellow);
    transform: translateY(101%);
    transition: transform .6s var(--ease);
}

.eco-card:hover::before {
    transform: none;
}

.eco-card:nth-child(3n+2) {
    --delay: .08s;
}

.eco-card:nth-child(3n) {
    --delay: .16s;
}

.eco-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

.eco-text {
    color: var(--muted-dark);
    font-size: .95rem;
    max-width: 300px;
    transition: color .3s;
}

.eco-card:hover .eco-text {
    color: var(--text-dark);
}

.eco-arrow {
    position: absolute;
    right: 26px;
    top: 26px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    font-size: 1.1rem;
    transition: transform .5s var(--ease), background-color .3s, color .3s;
}

.eco-card:hover .eco-arrow {
    transform: rotate(45deg);
    background: var(--text-dark);
    color: var(--yellow);
}

.founder {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: start;
    margin-top: 28px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--text-light);
    overflow: hidden;
    isolation: isolate;
}

.founder::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 229, 87, .16), transparent 65%);
    z-index: -1;
    transition: transform 1.2s var(--ease);
}

.founder:hover::after {
    transform: translate(-40px, 30px) scale(1.1);
}

.founder-mark {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--navy-2);
    box-shadow: 0 0 0 3px var(--yellow), 0 0 0 10px rgba(255, 229, 87, .12);
}

.founder-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.founder:hover .founder-mark img {
    transform: scale(1.06);
}

.founder-kicker {
    font-family: var(--font-display);
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lilac);
    margin-bottom: 6px;
}

.founder-name {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    letter-spacing: -0.035em;
    margin-bottom: 4px;
}

.founder-role {
    font-family: var(--font-display);
    color: var(--yellow);
    font-size: .98rem;
    margin-bottom: 16px;
}

.founder-role-part {
    white-space: nowrap;
}

.founder-text {
    color: var(--muted-light);
    max-width: 62ch;
    margin-bottom: 22px;
}

.founder-ao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.founder-ao-label {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-light);
}

.founder-ao-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.founder-ao-lines li {
    padding: 6px 12px;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--muted-light);
    transition: border-color .3s, color .3s;
}

.founder:hover .founder-ao-lines li {
    border-color: rgba(185, 181, 255, .4);
    color: var(--text-light);
}

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-light);
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .3s, color .3s, border-color .3s;
}

.founder-link span {
    transition: transform .4s var(--ease);
}

.founder-link:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
}

.founder-link:hover span {
    transform: rotate(45deg);
}

/* stretch a lone trailing card so the grid has no empty cell */
.eco-card:last-child:nth-child(3n+2) {
    grid-column: span 2;
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    padding: clamp(110px, 14vw, 180px) 0 clamp(90px, 10vw, 130px);
    background:
        radial-gradient(45% 38% at 0% 62%, rgba(255, 229, 87, .1), transparent 70%),
        var(--ink);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.contact-title {
    font-size: clamp(2.8rem, 7.5vw, 7rem);
    letter-spacing: -0.055em;
    line-height: .92;
    margin-bottom: 28px;
}

.contact-title em {
    color: var(--yellow);
}

.contact-meta {
    margin-top: 40px;
    color: var(--muted-light);
    font-size: .95rem;
    --delay: .15s;
}

.contact-meta strong {
    color: var(--text-light);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid var(--line-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    --delay: .1s;
}

.field {
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    padding: 24px 16px 10px;
    border-radius: 14px;
    border: 1px solid var(--line-light);
    background: rgba(10, 11, 26, .6);
    color: var(--text-light);
    font: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color .3s, box-shadow .3s;
}

.field textarea {
    min-height: 150px;
}

.field label {
    position: absolute;
    left: 17px;
    top: 17px;
    color: var(--muted-light);
    font-size: 1rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform .3s var(--ease), color .3s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px var(--yellow-soft);
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label {
    transform: translateY(-10px) scale(.75);
    color: var(--yellow);
}

.privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .85rem;
    color: var(--muted-light);
}

.privacy-row input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color .25s, border-color .25s;
}

.privacy-row input::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg) scale(0);
    margin-top: -2px;
    transition: transform .25s var(--ease);
}

.privacy-row input:checked {
    background: var(--yellow);
    border-color: var(--yellow);
}

.privacy-row input:checked::after {
    transform: rotate(-45deg) scale(1);
}

.privacy-row a {
    color: var(--yellow);
}

[data-humanproof-container] {
    min-height: 0;
}

.submit-button {
    justify-self: start;
}

/* ---------- Legal ---------- */
.legal {
    padding: 0 0 60px;
}

.legal .container {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line-light);
    padding-top: 40px;
}

.legal-block {
    border-radius: 16px;
    border: 1px solid var(--line-light);
    background: rgba(255, 255, 255, .02);
}

.legal-block summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-family: var(--font-display);
    font-weight: 500;
    cursor: pointer;
}

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

.legal-block summary::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: var(--yellow);
    transition: transform .4s var(--ease);
}

.legal-block[open] summary::after {
    transform: rotate(45deg);
}

.legal-block>div {
    padding: 4px 22px 28px;
    max-width: 880px;
    color: var(--muted-light);
    font-size: .92rem;
}

.legal-block h2 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin: 10px 0 16px;
}

.legal-block h3 {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 26px 0 8px;
}

.legal-block h4 {
    font-size: .95rem;
    color: var(--text-light);
    margin: 0 0 4px;
}

.legal-block p {
    margin-bottom: 10px;
}

.legal-block ul {
    padding-left: 20px;
}

.legal-block .service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.legal-block .service-list li {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line-light);
}

.legal-block a {
    color: var(--yellow);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--ink);
    border-top: 1px solid var(--line-light);
    padding: 56px 0 0;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px 60px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-claim {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.footer-claim em {
    color: var(--yellow);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    justify-content: flex-end;
    max-width: 560px;
}

.footer-links a {
    color: var(--muted-light);
    text-decoration: none;
    font-size: .92rem;
    transition: color .25s;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-copy {
    grid-column: 1 / -1;
    color: var(--muted-light);
    font-size: .85rem;
}

.footer-giant {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(8rem, 34vw, 30rem);
    letter-spacing: -0.08em;
    line-height: .9;
    padding-bottom: .04em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 229, 87, .22);
    margin-top: 30px;
    transform: translateY(var(--fy, 20%));
    user-select: none;
}

/* ---------- Form popup (scripts.js) ---------- */
.form-popup {
    font-family: var(--font-body);
    z-index: 3500 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .disc-grid,
    .proj-grid,
    .eco-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eco-card:last-child:nth-child(3n+2) {
        grid-column: auto;
    }

    .eco-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .founder {
        grid-template-columns: auto 1fr;
    }

    .founder-link {
        grid-column: 2;
        justify-self: start;
    }

    .tmodel,
    .agent-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .agent-visual {
        order: -1;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(3) {
        padding-left: 0;
    }

    .stat:nth-child(n+3) {
        border-top: 1px solid var(--line-dark);
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 66px;
    }

    body {
        font-size: 1rem;
    }

    .container,
    .hero-inner,
    .hero-foot {
        width: calc(100% - 36px);
    }

    .disc-grid,
    .proj-grid,
    .eco-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .eco-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .founder {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 22px;
    }

    .founder-mark {
        width: 72px;
        height: 72px;
    }

    .founder-role-part {
        display: block;
    }

    .founder-role-sep {
        display: none;
    }

    .founder-link {
        grid-column: auto;
    }
    .disc-card {
        min-height: 0;
    }

    .hero-hint {
        display: none;
    }

    .hero-foot {
        bottom: 48px;
    }

    .proj-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -18px;
        padding: 0 18px 4px;
        scrollbar-width: none;
    }

    .proj-filters::-webkit-scrollbar {
        display: none;
    }

    .proj-filter {
        flex: none;
    }

    .dive-ticker {
        max-width: calc(100% - 50px);
    }

    .dive-label {
        display: none;
    }

    .agent-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    .process-steps {
        padding-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .agent-node span {
        font-size: .7rem;
        padding: 6px 10px 6px 8px;
    }

    .stat {
        padding-right: 12px;
    }
}

@media (pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .marquee-track {
        animation: none;
    }

    .orbit-spin,
    .agent-node span {
        animation: none;
    }

    .intro {
        display: none;
    }

    .js .reveal,
    .js .split .wi {
        opacity: 1;
        transform: none;
    }

    .scrub .sw {
        opacity: 1;
    }
}
