@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #e6edf7;
    --ink-soft: #b8c6dc;
    --sand: #0a101c;
    --sand-deep: #1a2438;
    --mint: #53d8c6;
    --teal: #2db7a5;
    --sunset: #ff8a57;
    --sunset-soft: #ffc9a8;
    --slate: #8ea0be;
    --card: #111a2b;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.26);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

body {
    font-family: var(--font-display);
    color: var(--ink);
    background: radial-gradient(circle at 8% 18%, #16223a 0%, #0d1628 35%, #0a101c 100%);
    line-height: 1.7;
}

.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.page::before,
.page::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 183, 165, 0.2) 0%, transparent 70%);
    z-index: 0;
    filter: blur(0px);
}

.page::before {
    top: -160px;
    right: -180px;
}

.page::after {
    bottom: -220px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 138, 87, 0.18) 0%, transparent 72%);
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 13, 24, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 198, 220, 0.14);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 10px;
    padding: 0;
    line-height: 0;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.logo-mark img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.logo-text {
    font-size: 1.05rem;
}

.logo-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.25s ease;
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

.nav-links a.is-active:not(.cta-button)::after {
    width: 100%;
}

.nav-links a.is-active {
    color: var(--teal);
}

.cta-button {
    background: linear-gradient(135deg, #21304d, #1a2841);
    color: var(--ink);
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0.2rem;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
    border-radius: 6px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    padding: 5.5rem 0 4.5rem;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 3vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.kicker {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--teal);
    margin-bottom: 0.8rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--mint));
    color: #041014;
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    border: 1px solid rgba(184, 198, 220, 0.28);
    color: var(--ink);
    background: rgba(17, 26, 43, 0.72);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tiny-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--slate);
}

.hero-card {
    background: var(--card);
    padding: 2.2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(184, 198, 220, 0.16);
}

.hero-snapshot {
    padding-top: 1.5rem;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.snapshot-grid > * {
    height: 100%;
}

.snapshot-grid .media-frame,
.snapshot-grid .hero-card {
    min-height: 280px;
}

.snapshot-grid .hero-card {
    padding: 1.6rem;
}

.snapshot-grid .media-frame img {
    min-height: 200px;
}

.hero-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.snapshot-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    font-size: 0.95rem;
}

.snapshot-list span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    display: block;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: rgba(8, 13, 24, 0.75);
    border-top: 1px solid rgba(184, 198, 220, 0.09);
    border-bottom: 1px solid rgba(184, 198, 220, 0.09);
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 2.6vw, 2.6rem);
}

.about-grid,
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
}

.card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(184, 198, 220, 0.15);
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--ink-soft);
}

.card p + p {
    margin-top: 0.8rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tag-list span {
    background: var(--sand-deep);
    color: var(--ink);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.pill {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
    color: var(--teal);
    margin-bottom: 0.7rem;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.checklist li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--ink-soft);
}

.checklist li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--sunset);
    font-size: 1.2rem;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.subtle {
    color: var(--slate);
    font-size: 0.9rem;
}

.contact {
    display: flex;
    justify-content: center;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
    max-width: 720px;
    width: 100%;
    background: #111a2b;
    color: var(--ink);
    padding: 2.8rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-card h2 {
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--ink-soft);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.contact-card .btn-ghost {
    border-color: rgba(184, 198, 220, 0.3);
    color: var(--ink);
    background: rgba(8, 13, 24, 0.45);
}

footer {
    padding: 3.5rem 0 2rem;
    background: #080d18;
    border-top: 1px solid rgba(184, 198, 220, 0.14);
}

.footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer h4 {
    margin-bottom: 0.6rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer a {
    color: var(--ink);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 2rem;
    color: var(--slate);
}

.media-frame {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(184, 198, 220, 0.15);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: grid;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 240px;
}

.media-frame figcaption {
    padding: 0.9rem 1.2rem 1.1rem;
    font-size: 0.85rem;
    color: var(--slate);
    background: rgba(184, 198, 220, 0.05);
}

.card-media {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(184, 198, 220, 0.15);
}

.card-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sports-section .card-media img {
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.sports-section .card-media {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: rgba(12, 21, 38, 0.85);
}

.builds-section .card-media img {
    height: 260px;
}

.card-media-logo {
    background: rgba(12, 21, 38, 0.85);
    display: grid;
    place-items: center;
}

.card-media-logo img {
    object-fit: contain !important;
    padding: 1.2rem;
}

.js-enabled .reveal,
.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.js-enabled .reveal.is-visible,
.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js-enabled .reveal,
    .js-enabled [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(8, 13, 24, 0.98);
        padding: 2rem 0;
        transition: left 0.3s ease;
        gap: 1.2rem;
        border-bottom: 1px solid rgba(184, 198, 220, 0.12);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 4rem;
    }
}

@media (max-width: 600px) {
    .logo-text {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .contact-card {
        padding: 2rem;
    }
}
