/* Self-hosted variable fonts (latin subset). Licenses: fonts/OFL-*.txt */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
}

:root {
    --bg: #070b14;
    --bg-raised: #0d1424;
    --bg-card: #111a2e;
    --line: rgba(148, 174, 220, 0.16);
    --text: #e8eef9;
    --text-dim: #a4b1c9;
    --accent: #2ee6c5;
    --accent-ink: #04231d;
    --amber: #ffb547;
    --radius: 16px;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gutter: clamp(20px, 5vw, 48px);
    --max: 1200px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
.section-head p { margin-top: 18px; color: var(--text-dim); font-size: 1.125rem; }

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font: inherit; font-weight: 600; font-size: 1rem;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(46, 230, 197, .55); }
.btn-primary:hover { background: #55f0d4; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(148, 174, 220, .4); background: rgba(255, 255, 255, .07); }

/* Work-in-progress notice */
.notice {
    background: rgba(255, 181, 71, .1);
    border-bottom: 1px solid rgba(255, 181, 71, .28);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.5;
    text-align: center;
    padding: 9px var(--gutter);
}
.notice strong { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.notice span { color: #e6cfa6; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 11, 20, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.125rem; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { font-weight: 500; color: var(--text-dim); font-size: .8em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; color: var(--text-dim); font-size: .9375rem; font-weight: 500; transition: color .15s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { padding: 10px 20px; font-size: .9375rem; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); color: var(--text);
    width: 44px; height: 44px; border-radius: 12px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; border-radius: 2px;
    transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 12vw, 160px) clamp(64px, 8vw, 110px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .55; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 500px at 15% 20%, rgba(46, 230, 197, .14), transparent 60%),
        linear-gradient(90deg, var(--bg) 8%, rgba(7, 11, 20, .78) 55%, rgba(7, 11, 20, .35) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 26px; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--text-dim); max-width: 640px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    margin-top: clamp(56px, 8vw, 96px);
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    backdrop-filter: blur(6px);
}
.stat { background: rgba(13, 20, 36, .82); padding: 26px 28px; }
.stat b { display: block; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.stat b span { color: var(--amber); }
.stat p { margin-top: 6px; font-size: .9375rem; color: var(--text-dim); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(46, 230, 197, .45); box-shadow: 0 24px 60px -24px rgba(46, 230, 197, .25); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-card) 0%, transparent 55%); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 8px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.card h3 { font-size: 1.5rem; font-weight: 700; }
.card p { margin-top: 12px; color: var(--text-dim); font-size: 1rem; }
.card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: .9375rem; color: var(--text-dim); }
.card li { display: flex; gap: 10px; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--accent); }

.also { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--text-dim); }
.also span.label { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; color: var(--text); background: rgba(255, 255, 255, .03); }

/* Team */
.team { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 18%, var(--bg-raised) 82%, var(--bg) 100%); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.team-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 11, 20, .7), transparent 45%); }
.years {
    position: absolute; left: 20px; bottom: 20px; z-index: 2;
    background: rgba(7, 11, 20, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px;
}
.years b { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--amber); line-height: 1; }
.years span { display: block; margin-top: 4px; font-size: .875rem; color: var(--text-dim); }

.team-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
.team-copy > p { margin-top: 20px; color: var(--text-dim); font-size: 1.125rem; }
.points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.points .ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(46, 230, 197, .1); border: 1px solid rgba(46, 230, 197, .28); color: var(--accent);
}
.points .ico svg { width: 22px; height: 22px; }
.points h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.points p { margin-top: 4px; font-size: .9875rem; color: var(--text-dim); line-height: 1.55; }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    display: inline-grid; place-items: center;
    font-family: var(--font-mono); font-weight: 700; font-size: .9375rem; color: var(--accent-ink);
    width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
    position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg);
}
.step::after { content: ""; position: absolute; top: 22px; left: 46px; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line)); }
.step:last-child::after { display: none; }
.step h3 { margin-top: 22px; font-size: 1.25rem; font-weight: 700; }
.step p { margin-top: 10px; color: var(--text-dim); font-size: 1rem; }

/* Colorado */
.colorado { position: relative; isolation: isolate; overflow: hidden; }
.colorado-bg { position: absolute; inset: 0; z-index: -2; }
.colorado-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.colorado::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(7, 11, 20, .94) 0%, rgba(7, 11, 20, .72) 50%, rgba(7, 11, 20, .35) 100%),
                linear-gradient(0deg, var(--bg), transparent 30%), linear-gradient(180deg, var(--bg), transparent 30%);
}
.colorado .section { padding-block: clamp(96px, 14vw, 180px); }
.colorado-copy { max-width: 620px; }
.colorado h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; }
.colorado p { margin-top: 20px; color: #c4cfe3; font-size: 1.1875rem; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 11, 20, .6); font-family: var(--font-mono); font-size: .875rem; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* Contact */
.cta {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(48px, 8vw, 96px) var(--gutter);
    border-radius: 28px; border: 1px solid var(--line);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(46, 230, 197, .16), transparent 70%),
        var(--bg-card);
}
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; max-width: 760px; margin-inline: auto; }
.cta p { margin: 20px auto 0; max-width: 620px; color: var(--text-dim); font-size: 1.125rem; }
.cta .hero-actions { justify-content: center; }
.cta .mail { margin-top: 26px; font-family: var(--font-mono); font-size: .9375rem; color: var(--text-dim); }
.cta .mail a { color: var(--accent); text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px; color: var(--text-dim); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { color: var(--text); }
.site-footer .fine { margin-top: 14px; font-size: .8125rem; max-width: 640px; line-height: 1.6; opacity: .85; }
.site-footer .fine a { text-underline-offset: 3px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Scroll reveal (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .split { grid-template-columns: 1fr; }
    .team-photo { aspect-ratio: 16 / 11; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
    .step:nth-child(2)::after { display: none; }
}

@media (max-width: 800px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(7, 11, 20, .97); border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 24px;
        display: none;
    }
    .nav.open { display: flex; }
    .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
    .nav .btn { margin-top: 20px; }
}

@media (max-width: 620px) {
    .stats { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .brand small { display: none; }
}

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