@font-face {
    font-family: "Poppins";
    src: url("/fonts/poppins-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("/fonts/poppins-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("/fonts/poppins-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Poppins";
    src: url("/fonts/poppins-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root,
.theme-dark {
    --bg: #090A0C;
    --surface: #111318;
    --elevated: #171A20;
    --text: #F5F7FA;
    --text-secondary: #9CA4B0;
    --accent: #3B82F6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(17, 19, 24, 0.72);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --hero-glow-a: rgba(59, 130, 246, 0.22);
    --hero-glow-b: rgba(148, 163, 184, 0.14);
    --overlay: rgba(9, 10, 12, 0.72);
    --logo-filter: none;
    --stitch-filter: brightness(0) invert(1);
    --nav-indicator: #3B82F6;
}

.theme-light {
    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --elevated: #FFFFFF;
    --text: #111318;
    --text-secondary: #606775;
    --accent: #2563EB;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.78);
    --shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
    --hero-glow-a: rgba(37, 99, 235, 0.16);
    --hero-glow-b: rgba(100, 116, 139, 0.12);
    --overlay: rgba(17, 19, 24, 0.62);
    --logo-filter: none;
    --stitch-filter: none;
    --nav-indicator: #2563EB;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

h1:focus,
h1:focus-visible {
    outline: none;
}

p {
    margin: 0;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.site-main {
    flex: 1;
    width: min(100% - clamp(1.25rem, 4vw, 3rem), 1600px);
    margin-inline: auto;
    padding-top: clamp(5.5rem, 10vh, 7rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
}

.site-main.home-main {
    width: 100%;
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
}

.section {
    width: min(100% - clamp(1.25rem, 4vw, 3rem), 1600px);
    margin-inline: auto;
    padding-block: clamp(3.5rem, 8vh, 6.5rem);
}

.section-header {
    max-width: 40rem;
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: clamp(0.75rem, 2vw, 1.25rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(calc(100% - 1.5rem), 1100px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: var(--shadow);
}

.navbar-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-brand img {
    height: 2.35rem;
    width: auto;
    transform: scale(1.55);
    transform-origin: center;
}

.navbar-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

.navbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 160ms ease;
}

.navbar-links a::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--nav-indicator);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    transform: scaleX(1);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.theme-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    position: relative;
    align-items: center;
    justify-content: center;
}

.nav-checkbox {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 1rem;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
    position: relative;
    pointer-events: none;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 767px) {
    .navbar {
        border-radius: 1.25rem;
        padding: 0.7rem 0.8rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-end .navbar-links {
        display: none;
    }

    .navbar:has(.nav-checkbox:checked) {
        display: flex;
        flex-wrap: wrap;
    }

    .navbar:has(.nav-checkbox:checked) .navbar-start,
    .navbar:has(.nav-checkbox:checked) .navbar-brand,
    .navbar:has(.nav-checkbox:checked) .navbar-end {
        flex: 0 0 auto;
    }

    .navbar:has(.nav-checkbox:checked) .navbar-start {
        order: 1;
        margin-right: auto;
    }

    .navbar:has(.nav-checkbox:checked) .navbar-brand {
        order: 2;
    }

    .navbar:has(.nav-checkbox:checked) .navbar-end {
        order: 3;
        margin-left: auto;
    }

    .navbar:has(.nav-checkbox:checked) .navbar-links {
        display: flex;
        order: 4;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-top: 0.35rem;
    }

    .navbar-links a {
        justify-content: flex-start;
        padding: 0.75rem 0.85rem;
    }

    .navbar-links a::after {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 90% 60% at 70% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
        radial-gradient(ellipse 70% 50% at 10% 80%, var(--hero-glow-b), transparent 55%),
        linear-gradient(165deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, #000) 55%, var(--bg) 100%);
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    will-change: transform;
}

.hero-orb-a {
    width: min(55vw, 520px);
    height: min(55vw, 520px);
    top: -8%;
    right: 8%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 70%);
    animation: orb-float-a 22s ease-in-out infinite alternate;
    opacity: 0.85;
}

.hero-orb-b {
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    bottom: 10%;
    left: -6%;
    background: radial-gradient(circle, var(--hero-glow-b) 0%, transparent 68%);
    animation: orb-float-b 26s ease-in-out infinite alternate;
    opacity: 0.7;
}

.hero-orb-c {
    width: min(36vw, 280px);
    height: min(36vw, 280px);
    top: 38%;
    left: 42%;
    background: radial-gradient(circle, rgba(226, 232, 240, 0.16) 0%, transparent 70%);
    animation: orb-float-c 18s ease-in-out infinite alternate;
    opacity: 0.55;
}

.hero-beam {
    position: absolute;
    inset: -20% -10%;
    background:
        conic-gradient(from 210deg at 72% 18%,
            transparent 0deg,
            color-mix(in srgb, var(--accent) 12%, transparent) 28deg,
            transparent 70deg,
            rgba(148, 163, 184, 0.08) 120deg,
            transparent 180deg);
    filter: blur(28px);
    animation: beam-sweep 36s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(700px) rotateX(62deg) translateY(-8%) scale(1.4);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
    opacity: 0.4;
    animation: grid-shift 48s linear infinite;
    pointer-events: none;
}

.theme-light .hero-grid {
    background-image:
        linear-gradient(rgba(17, 19, 24, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 19, 24, 0.05) 1px, transparent 1px);
}

.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, transparent 35%, color-mix(in srgb, var(--bg) 75%, transparent) 100%),
        linear-gradient(to top, var(--bg) 0%, transparent 28%);
}

.hero-content {
    width: min(100% - clamp(1.25rem, 4vw, 3rem), 1600px);
    margin: 0 auto;
    padding: clamp(7rem, 16vh, 10rem) 0 clamp(4rem, 10vh, 6.5rem);
}

.hero-logo {
    display: block;
    width: clamp(5.5rem, 12vw, 8.5rem);
    height: auto;
    margin-bottom: clamp(1.25rem, 3vh, 2rem);
    filter: drop-shadow(0 12px 40px rgba(59, 130, 246, 0.25));
    animation: logo-rise 1.1s ease-out both;
}

.hero-logo:focus,
.hero-content h1:focus {
    outline: none;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5.25rem);
    font-weight: 700;
    max-width: 14ch;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    animation: logo-rise 1.1s ease-out 0.08s both;
}

.hero-lead {
    max-width: 38rem;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text);
    margin-bottom: 0.85rem;
    animation: logo-rise 1.1s ease-out 0.14s both;
}

.hero-support {
    max-width: 36rem;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    margin-bottom: 2rem;
    animation: logo-rise 1.1s ease-out 0.2s both;
}

.hero-content .btn-row {
    animation: logo-rise 1.1s ease-out 0.26s both;
}

@keyframes orb-float-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6%, 10%, 0) scale(1.12); }
}

@keyframes orb-float-b {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(8%, -8%, 0) scale(1.15); }
}

@keyframes orb-float-c {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-10%, 6%, 0); }
}

@keyframes beam-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes grid-shift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 64px 32px, 64px 32px; }
}

@keyframes logo-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-orb,
    .hero-beam,
    .hero-grid,
    .hero-logo,
    .hero-content h1,
    .hero-lead,
    .hero-support,
    .hero-content .btn-row,
    .btn,
    .navbar-links a::after,
    .gallery-item img,
    .partner-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- What we do ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.service-card {
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.975rem;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Approach ---------- */
.approach {
    border-block: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}

.approach-copy {
    max-width: 48rem;
}

.approach-copy p {
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 1.35rem;
}

.approach-copy p:last-child {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ---------- Partners ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 9.5rem;
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    background: var(--surface);
    text-align: center;
    overflow: visible;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.partner-card:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    transform: translateY(-2px);
}

.partner-card img {
    max-height: 5.5rem;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.partner-card.has-dark-logo img {
    filter: var(--stitch-filter);
}

.theme-light .partner-card.invert-on-light img {
    filter: invert(1);
}

.partner-card .logo-for-dark {
    display: none;
}

.theme-dark .partner-card .logo-for-light {
    display: none;
}

.theme-dark .partner-card .logo-for-dark {
    display: block;
}

.theme-light .partner-card .logo-for-light {
    display: block;
}

.theme-light .partner-card .logo-for-dark {
    display: none;
}

.partner-card.is-text .partner-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.partner-card.is-link {
    cursor: pointer;
}

/* ---------- Gallery ---------- */
.gallery {
    columns: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 1.15rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 320ms ease;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, var(--overlay), transparent 55%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay strong {
    font-size: 1rem;
    font-weight: 600;
}

.gallery-item-overlay span {
    color: color-mix(in srgb, var(--text) 80%, transparent);
    font-size: 0.85rem;
}

.gallery-preview-cta {
    margin-top: 2rem;
}

.gallery-expand-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.gallery-item-more {
    display: none !important;
}

.gallery-expand:has(.gallery-expand-toggle:checked) .gallery-item-more {
    display: block !important;
}

.show-more-label {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.show-more-label .label-less {
    display: none;
}

.gallery-expand:has(.gallery-expand-toggle:checked) .show-more-label .label-more {
    display: none;
}

.gallery-expand:has(.gallery-expand-toggle:checked) .show-more-label .label-less {
    display: inline;
}

@media (max-width: 1199px) {
    .gallery { columns: 2; }
}

@media (max-width: 767px) {
    .gallery { columns: 1; }
}

@media (min-width: 1920px) {
    .gallery { columns: 3; }
}

/* ---------- Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-intro h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.contact-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 28rem;
}

.contact-direct {
    margin-top: 1rem;
}

.contact-direct a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.contact-form {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: var(--surface);
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-field .optional {
    color: var(--text-secondary);
    font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: var(--bg);
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
    min-height: 9rem;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.validation-message {
    color: #ef4444;
    font-size: 0.8125rem;
}

.contact-success {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: var(--surface);
}

.contact-success h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Privacy ---------- */
.prose {
    max-width: 46rem;
}

.prose h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: 1rem;
}

.prose .lede {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.prose h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.prose ul {
    padding-left: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    width: min(100% - clamp(1.25rem, 4vw, 3rem), 1600px);
    margin: 0 auto;
    padding: clamp(2rem, 4vh, 3rem) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand {
    max-width: 24rem;
}

.footer-brand strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* ---------- Shared ---------- */
.page-hero {
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: var(--text-secondary);
    max-width: 36rem;
    font-size: 1.05rem;
}

#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
