@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
    --bg: #07090c;
    --bg-raised: #0a0f14;
    --text: #dde6ee;
    --text-bright: #f2f6f9;
    --text-dim: #8fa0af;
    --text-faint: #5c6b78;
    --accent: #3ddc97;
    --accent-soft: #8beec4;
    --hairline: rgba(221, 230, 238, 0.12);
    --sans: 'Space Grotesk', Arial, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    max-width: 1600px;
    margin: 0 auto;
}

@media (min-width: 1601px) {
    body {
        border-left: 1px solid var(--hairline);
        border-right: 1px solid var(--hairline);
    }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

.accent { color: var(--accent); }

.label, .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--accent);
}

/* nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px clamp(20px, 4.5vw, 64px);
    border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .wordmark {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text);
}
.nav nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav nav a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 12px 0;
}
.nav nav a:hover, .nav nav a.accent { color: var(--accent); }

/* hero */
.hero {
    display: flex;
    align-items: flex-end;
    gap: 72px;
    padding: clamp(56px, 8vw, 104px) clamp(20px, 4.5vw, 64px) clamp(56px, 7vw, 96px);
}
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
}
h1 {
    font-size: clamp(52px, 8.5vw, 96px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 500;
    color: var(--text-bright);
}
.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 620px;
}
.cta {
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    padding: 15px 24px;
    margin-top: 8px;
}
.cta:hover { background: rgba(61, 220, 151, 0.08); }
.hero-chart { flex: 0 0 auto; }
.hero-chart svg { display: block; max-width: 100%; height: auto; }

/* pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.pillar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 52px clamp(24px, 3vw, 44px);
}
.pillar + .pillar { border-left: 1px solid var(--hairline); }
.pillar .index { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.pillar h2 { font-size: 21px; font-weight: 500; color: var(--text-bright); }
.pillar p { font-size: 15px; line-height: 1.85; color: var(--text-dim); }

/* firm */
.firm {
    display: flex;
    gap: 72px;
    padding: clamp(64px, 8vw, 104px) clamp(20px, 4.5vw, 64px);
}
.firm .label { width: 200px; flex: 0 0 auto; }
.firm p {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.4;
    max-width: 940px;
}

/* contact */
.contact {
    background: var(--bg-raised);
    border-top: 1px solid var(--hairline);
    padding: clamp(64px, 7.5vw, 96px) clamp(20px, 4.5vw, 64px);
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.contact .email {
    font-family: var(--mono);
    font-size: clamp(22px, 3.4vw, 44px);
    font-weight: 500;
    color: var(--text-bright);
    overflow-wrap: anywhere;
}
.contact .email:hover { color: var(--accent); }
.contact-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    max-width: 980px;
    margin-top: 8px;
}
.contact-lines p { font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.contact-lines strong { color: var(--text); font-weight: 500; }

/* footer */
footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(20px, 4.5vw, 64px);
    border-top: 1px solid var(--hairline);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-faint);
}

/* code glitter */
.glitter {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.glitter span {
    position: absolute;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    opacity: 0;
    animation-name: glitter;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
.glitter span.dim { color: var(--text-dim); }
@keyframes glitter {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.22; }
}
header.nav, main, footer { position: relative; z-index: 1; }

/* hero chart reveal */
.hero-chart svg { overflow: visible; }
.chart-path {
    stroke-dasharray: 750;
    stroke-dashoffset: 750;
    animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}
@keyframes draw {
    to { stroke-dashoffset: 0; }
}
.chart-dot {
    opacity: 0;
    animation: dotin 0.4s ease-out 1.9s forwards;
}
@keyframes dotin {
    to { opacity: 1; }
}
.chart-ping {
    opacity: 0;
    animation: ping 2.8s ease-out 2.3s infinite;
}
@keyframes ping {
    0% { r: 4; opacity: 0.5; }
    70% { r: 15; opacity: 0; }
    100% { r: 15; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .glitter { display: none; }
    .chart-path { animation: none; stroke-dashoffset: 0; }
    .chart-dot { animation: none; opacity: 1; }
    .chart-ping { display: none; }
}

/* responsive */
@media (max-width: 1100px) {
    .hero { gap: 48px; }
    .hero-chart svg { width: 340px; }
}
@media (max-width: 880px) {
    .hero { flex-direction: column; align-items: stretch; }
    .hero-chart { align-self: center; }
    .pillars { grid-template-columns: 1fr; }
    .pillar + .pillar { border-left: none; border-top: 1px solid var(--hairline); }
    .firm { flex-direction: column; gap: 28px; }
    .firm .label { width: auto; }
    .contact-lines { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
    .nav { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hero-chart { display: none; }
    footer { flex-wrap: wrap; }
}
