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

:root {
    --ink: #f8fafc;
    --muted: #a8b3c7;
    --soft: #d9e2f1;
    --paper: #07111f;
    --paper-elevated: #0b1627;
    --panel: #111c2e;
    --panel-hover: #162742;
    --line: #22344f;
    --line-strong: #315174;
    --accent: #2563eb;
    --accent-strong: #60a5fa;
    --accent-alt: #22c55e;
    --accent-alt-soft: rgba(34, 197, 94, 0.14);
    --deep: #020617;
    --shadow: rgba(2, 6, 23, 0.48);
    --blue-shadow: rgba(37, 99, 235, 0.26);
    --green-shadow: rgba(34, 197, 94, 0.2);
    --container: 1240px;
}

/* Base */

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

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

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(7, 17, 31, 0) 340px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px),
        var(--paper);
    color: var(--ink);
    font-family: "Archivo", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-alt);
    outline-offset: 4px;
}

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

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(calc(100% - 32px), var(--container));
    margin: 16px auto 0;
    padding: 12px 14px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.84);
    position: sticky;
    top: 16px;
    z-index: 10;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.28);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-mark {
    width: min(196px, 42vw);
    height: 49px;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.nav-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 6px;
    padding: 8px 12px;
}

.nav-links a,
.text-link,
.stacked-list a,
.contact-line {
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.text-link:hover,
.stacked-list a:hover,
.contact-line:hover {
    color: var(--ink);
}

.nav-links a:hover {
    background: rgba(96, 165, 250, 0.12);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent-strong), var(--accent));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 34px var(--blue-shadow);
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 18px 44px rgba(59, 130, 246, 0.32);
    transform: translateY(-1px);
}

.button-small {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.9rem;
}

.button-secondary {
    background: transparent;
    color: #ffffff;
    border-color: var(--line-strong);
    box-shadow: none;
}

.button-secondary:hover {
    background: rgba(37, 99, 235, 0.14);
    color: #ffffff;
}

.text-link {
    font-weight: 800;
    color: #ffffff;
}

/* Home page */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    width: min(calc(100% - 36px), var(--container));
    margin: 0 auto;
    padding: clamp(50px, 8vw, 92px) 0 clamp(36px, 6vw, 70px);
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", "Archivo", Arial, sans-serif;
    line-height: 1.02;
    letter-spacing: 0;
}

[id] {
    scroll-margin-top: 104px;
}

h1 {
    max-width: 900px;
    font-size: clamp(3rem, 6vw, 5.1rem);
}

h2 {
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}

h3 {
    font-size: 1.55rem;
}

.hero-text {
    max-width: 650px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 720px;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}

.hero-metrics div {
    min-height: 112px;
    padding: 18px;
    background: rgba(17, 28, 46, 0.7);
}

.hero-metrics strong,
.hero-metrics span {
    display: block;
}

.hero-metrics strong {
    color: var(--ink);
    font-family: "Space Grotesk", "Archivo", Arial, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1;
}

.hero-metrics span {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 10px;
    width: min(100%, 400px);
    justify-self: end;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 28px 80px var(--shadow);
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.38));
    pointer-events: none;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

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

.signal-strip span {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--panel);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.availability-card {
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 18px;
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: 8px;
    background: var(--accent-alt-soft);
}

.availability-card span {
    color: #86efac;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.availability-card strong {
    color: var(--ink);
    font-family: "Space Grotesk", "Archivo", Arial, sans-serif;
    font-size: 1.35rem;
}

/* Shared page sections */

.section {
    padding: clamp(48px, 8vw, 96px) max(calc((100vw - var(--container)) / 2), 18px);
    border-bottom: 1px solid var(--line);
}

.latest-work {
    display: grid;
    gap: 28px;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(37, 99, 235, 0.09) 44%, rgba(7, 17, 31, 0) 100%),
        var(--paper-elevated);
}

.latest-heading {
    margin-bottom: 0;
}

.latest-heading p:not(.eyebrow) {
    max-width: 720px;
}

.latest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 14px;
}

.latest-card {
    display: grid;
    align-content: space-between;
    min-height: 280px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 14, 26, 0.78);
    box-shadow: 0 20px 54px rgba(2, 6, 23, 0.22);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.latest-card:hover {
    border-color: var(--accent-strong);
    background: rgba(17, 24, 39, 0.96);
    box-shadow: 0 24px 64px rgba(96, 165, 250, 0.14);
    transform: translateY(-3px);
}

.latest-card-featured {
    border-color: rgba(20, 184, 166, 0.5);
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.08)),
        rgba(10, 14, 26, 0.82);
}

.latest-kicker,
.latest-url {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.latest-card-featured .latest-kicker,
.latest-card-featured .latest-url {
    color: #86efac;
}

.latest-card h3 {
    margin-top: 24px;
    font-size: 3rem;
}

.latest-card p {
    max-width: 680px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.08rem;
}

.latest-url {
    margin-top: 34px;
    text-transform: none;
}

.intro-grid,
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
    gap: clamp(24px, 6vw, 76px);
    align-items: start;
}

.intro-grid > p,
.split-section p,
.feature p,
.page-lede,
.contact-line,
.product-card p {
    color: var(--muted);
    font-size: 1.08rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--line);
}

.feature {
    min-height: 100px;
    padding: clamp(28px, 5vw, 54px);
    background: var(--panel);
}

.feature:hover {
    background: var(--panel-hover);
}

.feature-number {
    display: inline-block;
    margin-bottom: 70px;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 800;
}

.feature p {
    margin-top: 16px;
}

/* Product family */

.product-family {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(34, 197, 94, 0.06) 52%, rgba(7, 17, 31, 0) 100%),
        var(--paper);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.08rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.product-grid:has(.product-card:only-child) {
    grid-template-columns: minmax(0, 620px);
}

.product-card {
    display: grid;
    gap: 20px;
    min-height: 260px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 20px 54px rgba(2, 6, 23, 0.22);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    border-color: var(--accent-strong);
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.18);
    transform: translateY(-3px);
}

.product-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
}

.product-card p {
    margin-top: auto;
}

/* Link lists */

.stacked-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.stacked-list a {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.stacked-list a:hover {
    background: var(--panel-hover);
    color: #ffffff;
    padding-left: 14px;
}

/* Interior pages */

.page-hero {
    width: min(calc(100% - 36px), var(--container));
    margin: 0 auto;
    padding: clamp(56px, 9vw, 112px) 0 clamp(42px, 7vw, 76px);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 1060px;
    font-size: clamp(3rem, 7vw, 5.4rem);
}

.page-lede {
    max-width: 760px;
    margin-top: 22px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 16px;
    padding: clamp(34px, 6vw, 72px) max(calc((100vw - var(--container)) / 2), 18px);
    border-bottom: 1px solid var(--line);
    background: var(--paper-elevated);
}

.work-item {
    display: grid;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 24px;
    min-height: 260px;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.76);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.work-item:hover {
    background: var(--panel);
    border-color: var(--accent-strong);
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.16);
    transform: translateY(-3px);
}

.work-item h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.work-meta {
    color: var(--accent-strong);
    font-weight: 800;
    text-align: left;
}

.work-logo {
    width: min(100%, 360px);
    margin-top: 18px;
}

.about-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
    gap: clamp(26px, 6vw, 84px);
    padding: clamp(42px, 8vw, 92px) max(calc((100vw - var(--container)) / 2), 18px);
    border-bottom: 1px solid var(--line);
}

.copy-stack {
    display: grid;
    gap: 18px;
    color: var(--muted);
}

.contact-list {
    display: grid;
    gap: 16px;
}

.contact-line {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(17, 28, 46, 0.55);
}

/* Footer */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px max(calc((100vw - var(--container)) / 2), 18px);
    border-top: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
}

.footer-logo {
    width: 150px;
    height: 38px;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.site-footer small {
    color: var(--muted);
    font-weight: 700;
}

/* Links page */

.links-page {
    min-height: calc(100vh - 89px);
    display: grid;
    place-items: center;
    padding: clamp(30px, 6vw, 72px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(150deg, rgba(37, 99, 235, 0.14), rgba(34, 197, 94, 0.05) 54%, rgba(7, 17, 31, 0) 100%),
        var(--paper);
}

.links-shell {
    width: min(100%, 720px);
}

.links-profile {
    text-align: center;
}

.links-profile h1 {
    margin-inline: auto;
    font-size: 3.8rem;
}

.links-profile .page-lede {
    margin-inline: auto;
}

.links-logo {
    width: min(100%, 300px);
    height: 160px;
    margin: 0 auto 22px;
    object-fit: contain;
    object-position: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.linktree-list {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.linktree-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 78px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.linktree-item:hover {
    border-color: var(--accent-strong);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
    transform: translateY(-2px);
}

.linktree-featured {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(17, 28, 46, 1));
    color: #ffffff;
    border-color: var(--accent);
}

.linktree-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.16);
    color: #ffffff;
    border: 1px solid var(--line);
    font-size: 0.86rem;
    font-weight: 800;
}

.linktree-item strong,
.linktree-item small {
    display: block;
}

.linktree-item strong {
    font-size: 1.04rem;
    line-height: 1.2;
}

.linktree-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.linktree-item.linktree-featured small {
    color: rgba(255, 255, 255, 0.78);
}

/* Responsive */

@media (max-width: 980px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
        top: 8px;
        width: min(calc(100% - 20px), var(--container));
        margin-top: 8px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .hero,
    .latest-work,
    .latest-grid,
    .intro-grid,
    .split-section,
    .about-layout,
    .contact-layout,
    .work-item {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    h3 {
        font-size: 1.45rem;
    }

    .latest-card h3 {
        font-size: 2.35rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .links-profile h1 {
        font-size: 3.4rem;
    }

    .hero-panel {
        width: 100%;
        justify-self: stretch;
    }

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

    .feature {
        min-height: auto;
    }

    .feature-number {
        margin-bottom: 34px;
    }

    .work-meta {
        text-align: left;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-mark {
        width: min(174px, 56vw);
        height: 44px;
    }

    .button-small {
        width: 100%;
    }

    h3 {
        font-size: 1.25rem;
    }

    .latest-card h3 {
        font-size: 2rem;
    }

    .links-profile h1 {
        font-size: 2.5rem;
    }

    .stacked-list a {
        font-size: 1.1rem;
    }

    .signal-strip {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
