@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Instrument+Serif:ital@0;1&display=swap");

:root {
    color-scheme: light;
    --bg: #f4f6fb;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --accent-glow: rgba(37, 99, 235, 0.35);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.85);
    --orb-1: rgba(37, 99, 235, 0.22);
    --orb-2: rgba(99, 102, 241, 0.16);
    --orb-3: rgba(14, 165, 233, 0.14);
    --dot: rgba(15, 23, 42, 0.06);
    --footer-bg: #0f172a;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 48px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 8px 32px rgba(37, 99, 235, 0.18);
    --nav-h: 72px;
    --max: 1120px;
    --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-display: "Instrument Serif", Georgia, serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070b14;
    --bg-elevated: #0f1629;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.12);
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --accent-glow: rgba(59, 130, 246, 0.4);
    --glass: rgba(15, 22, 41, 0.65);
    --glass-border: rgba(148, 163, 184, 0.1);
    --orb-1: rgba(59, 130, 246, 0.28);
    --orb-2: rgba(99, 102, 241, 0.22);
    --orb-3: rgba(14, 165, 233, 0.18);
    --dot: rgba(148, 163, 184, 0.08);
    --footer-bg: #030712;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 8px 40px rgba(59, 130, 246, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

::selection {
    background: var(--accent-soft);
    color: var(--text);
}

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

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

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: clip;
}

.bg-canvas {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.85;
    animation: float-orb 18s var(--ease-out) infinite alternate;
}

.bg-orb--1 {
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    top: -12%;
    right: -8%;
    background: var(--orb-1);
}

.bg-orb--2 {
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    top: 28%;
    left: -12%;
    background: var(--orb-2);
    animation-delay: -6s;
}

.bg-orb--3 {
    width: min(35vw, 320px);
    height: min(35vw, 320px);
    bottom: 8%;
    right: 18%;
    background: var(--orb-3);
    animation-delay: -12s;
}

@keyframes float-orb {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(24px, -32px) scale(1.08);
    }
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    isolation: isolate;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.nav-brand a {
    color: var(--text);
    text-decoration: none;
}

.nav-brand a:hover {
    color: var(--accent);
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: transform 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.site-nav.is-open .nav-toggle-bar {
    background: transparent;
}

.site-nav.is-open .nav-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle-bar::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.container {
    width: min(var(--max), 100% - 2.5rem);
    margin-inline: auto;
}

.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--tight {
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.hero {
    padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3.5rem);
    position: relative;
}

.hero-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(8px);
}

.hero-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.85rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--text);
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lede {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 38ch;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 420px;
}

.stat-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrap {
    position: relative;
    width: min(100%, 400px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    animation: pulse-ring 4s ease infinite;
}

.hero-ring--1 {
    inset: 0;
    animation-delay: 0s;
}

.hero-ring--2 {
    inset: 10%;
    animation-delay: 1.3s;
}

.hero-ring--3 {
    inset: 20%;
    animation-delay: 2.6s;
}

@keyframes pulse-ring {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

.hero-img-wrap::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    z-index: 0;
}

.hero-img {
    position: relative;
    z-index: 1;
    width: 72%;
    max-width: 280px;
    filter: drop-shadow(0 24px 48px var(--accent-glow));
}

.marquee-wrap {
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: blur(8px);
    padding: 0.85rem 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    animation: marquee 32s linear infinite;
}

.marquee-track span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-track span::before {
    content: "◆";
    margin-right: 2.5rem;
    color: var(--accent);
    font-size: 0.55rem;
    vertical-align: middle;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--accent);
    transform: translateY(-2px);
}

.panel,
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}

.panel:hover,
.glass-panel:hover {
    border-color: rgba(37, 99, 235, 0.2);
}

.panel h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    letter-spacing: -0.02em;
}

.panel p {
    margin: 0;
    color: var(--text-muted);
}

.two-col {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 880px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.three-col {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .three-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-groups {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .skill-groups {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-group h3 {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tag:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.page-hero {
    padding: clamp(2rem, 6vw, 3.5rem) 0 1rem;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    margin: 0 auto;
    max-width: 42ch;
    color: var(--text-muted);
}

.project-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}

.project-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-card--featured {
    grid-column: 1 / -1;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .project-card--featured {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        padding: 2rem 2.25rem;
    }
}

.project-card h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.project-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.project-card p {
    margin: 0;
    flex: 1;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.35rem;
}

.timeline {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid rgba(37, 99, 235, 0.25);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}

.timeline-card:hover {
    transform: translateX(4px);
    border-color: rgba(37, 99, 235, 0.25);
}

.timeline-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.timeline-role {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.timeline-dates {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.timeline-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.blog-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-3px);
}

.blog-card h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    letter-spacing: -0.02em;
}

.blog-card .meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-card p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.contact-panel {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.contact-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    margin: 0 0 0.75rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.site-footer {
    margin-top: auto;
    padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
    background: var(--footer-bg);
    color: rgba(248, 250, 252, 0.88);
    position: relative;
    z-index: 1;
}

.footer-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-title {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
    margin: 0;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.social-row a:hover {
    background: rgba(37, 99, 235, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.social-row svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.45);
}

.link {
    text-decoration: none;
}

.link-primary,
.link-secondary {
    display: inline-flex;
}

.danger {
    color: #b91c1c;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: var(--radius-sm);
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .nav-end {
        position: static;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--nav-h);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1.25rem 1rem;
        background: var(--glass);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        gap: 0;
        display: none;
    }

    .site-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links a {
        border-radius: var(--radius-sm);
        padding: 0.65rem 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card {
        padding: 0.65rem 0.5rem;
        text-align: center;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }
}
