:where(body, button, input, select, textarea) {
    letter-spacing: 0.012em;
    font-kerning: normal;
}

:where(h1, h2, h3, h4, h5, h6, .font-display) {
    letter-spacing: 0.022em;
}
body {
    background-color: #FFFFFF;
    color: #212529;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.logo-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-canvas {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 42%, rgba(233, 79, 28, 0.19), transparent 46%),
        radial-gradient(circle at 18% 85%, rgba(233, 79, 28, 0.07), transparent 40%),
        linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        #212529;
    background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px, 100% 100%;
}

.hero-bg-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-schematic-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(233, 79, 28, 0.16), transparent 62%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        #1B1F24;
    background-size: 100% 100%, 28px 28px, 28px 28px, 100% 100%;
}

@keyframes traceFlow {
    from {
        stroke-dashoffset: 160;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.22);
        opacity: 0.25;
    }
}

@keyframes cubeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-7px);
    }
}

.hero-trace-flow {
    stroke-dasharray: 10 10;
    animation: traceFlow 9s linear infinite;
}

.hero-trace-fast {
    stroke-dasharray: 8 12;
    animation: traceFlow 6s linear infinite;
}

.hero-node-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: nodePulse 3.2s ease-in-out infinite;
}

.hero-cube-float {
    animation: cubeFloat 6.5s ease-in-out infinite;
}

.hero-cube-float-delayed {
    animation: cubeFloat 7.5s ease-in-out 1.8s infinite;
}

.arch-grid-subtle {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.blueprint-grid-light {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] .faq-plus {
    transform: rotate(45deg);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0ms);
}

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

.nav-item {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background-color: #E94F1C;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item:hover::after,
.nav-item.is-active::after {
    transform: scaleX(1);
}

.surface-card {
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s ease;
}

.surface-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.10);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .surface-card,
    .nav-item::after,
    .hero-trace-flow,
    .hero-trace-fast,
    .hero-node-pulse,
    .hero-cube-float,
    .hero-cube-float-delayed {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

html[data-a11y="on"] .reveal,
html[data-a11y="on"] .surface-card,
html[data-a11y="on"] .hero-trace-flow,
html[data-a11y="on"] .hero-trace-fast,
html[data-a11y="on"] .hero-node-pulse,
html[data-a11y="on"] .hero-cube-float,
html[data-a11y="on"] .hero-cube-float-delayed {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

html[data-a11y="on"][data-a11y-decor="hide"] .hero-bg-art,
html[data-a11y="on"][data-a11y-decor="hide"] .hero-schematic-panel {
    display: none !important;
}
