:root {
    --ink: #0B1220;
    --ink-2: #131C31;
    --text: #0F172A;
    --muted: #556070;
    --line: #E3E8EF;
    --bg: #FFFFFF;
    --bg-soft: #F5F7FA;
    --accent: #58D5D3;
    --accent-strong: #0E7C7B;
    --accent-soft: #E7F8F8;
    --on-accent: #06201F;
    --on-dark: #E8EDF5;
    --on-dark-muted: #A7B2C5;
    --danger: #C62828;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 1px rgba(11, 18, 32, 0.04);
    --shadow-md: 0 12px 32px -12px rgba(11, 18, 32, 0.18);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
    --font-heading: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: inherit;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 0.5rem; }
h1:focus { outline: none; }

p { margin: 0 0 1rem; }
a { color: var(--accent-strong); }

section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* Side padding matches the widest row gutter (g-5) so rows never extend past the screen edge. */
.container-xl { --bs-gutter-x: 3rem; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }

.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin: 0 0 1rem;
}

.eyebrow-light { color: var(--accent); }

.section-head {
    max-width: 46rem;
    margin: 0 0 3.5rem;
}

.section-head p:last-child {
    color: var(--muted);
    font-size: 1.125rem;
    margin: 0;
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.005em;
    border-radius: 999px;
    border-width: 1.5px;
    padding: 0.7rem 1.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9375rem; }

.btn-primary,
.btn-primary:visited {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:first-child:active {
    background: #7FE2E0;
    border-color: #7FE2E0;
    color: var(--on-accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(88, 213, 211, 0.7);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn:focus-visible,
.form-control:focus,
.nav-toggle:focus-visible + .nav-burger,
a:focus-visible {
    outline: 3px solid rgba(88, 213, 211, 0.55);
    outline-offset: 2px;
    box-shadow: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 92px;
    flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; }
.site-logo { height: 68px; width: auto; display: block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a:not(.btn) {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover {
    background: var(--bg-soft);
    color: var(--accent-strong);
}

.nav-cta { margin-left: 0.75rem; }

.nav-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767.98px) {
    .nav-burger { display: flex; }
    .header-inner { min-height: 72px; }
    .site-logo { height: 54px; }
    html { scroll-padding-top: 88px; }

    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.5rem 0 1.25rem;
    }

    .nav-toggle:checked ~ .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: 0.8rem 0.75rem; font-size: 1.05rem; }
    .nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--on-dark);
    background:
        radial-gradient(60rem 36rem at 85% -10%, rgba(88, 213, 211, 0.22), transparent 60%),
        radial-gradient(48rem 30rem at -10% 110%, rgba(64, 112, 255, 0.20), transparent 60%),
        var(--ink);
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4.5rem, 9vw, 7.5rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
    pointer-events: none;
}

.hero .container-xl { position: relative; }
.hero h1 { color: #fff; }

.hero .lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 400;
    color: var(--on-dark-muted);
    max-width: 34rem;
    margin: 0 0 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.75rem;
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

.hero-points li {
    position: relative;
    padding-left: 1.5rem;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.7rem;
    height: 0.38rem;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* Hero product mock */
.mock-wrap {
    position: relative;
    max-width: 34rem;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.mock {
    background: linear-gradient(180deg, #1A2540 0%, #131C31 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-bar > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.mock-url {
    margin-left: 0.75rem;
    flex: 1;
    font-size: 0.75rem;
    color: var(--on-dark-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
}

.mock-body {
    display: grid;
    grid-template-columns: 52px 1fr;
    min-height: 300px;
}

.mock-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-side i {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.10);
}

.mock-side i.on { background: var(--accent); }

.mock-main {
    padding: 1.1rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.mock-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
}

.tile small {
    display: block;
    font-size: 0.6875rem;
    color: var(--on-dark-muted);
    margin-bottom: 0.15rem;
}

.tile b {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 96px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
}

.mock-chart span {
    flex: 1;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, var(--accent), rgba(88, 213, 211, 0.25));
}

.mock-chart span:nth-child(1) { height: 38%; }
.mock-chart span:nth-child(2) { height: 52%; }
.mock-chart span:nth-child(3) { height: 45%; }
.mock-chart span:nth-child(4) { height: 64%; }
.mock-chart span:nth-child(5) { height: 58%; }
.mock-chart span:nth-child(6) { height: 78%; }
.mock-chart span:nth-child(7) { height: 92%; }

.mock-rows { display: grid; gap: 0.5rem; }

.mock-rows div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.mock-rows i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.mock-rows i.wait { background: #F5B942; }

.mock-rows span {
    flex: 1;
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.13);
}

.mock-rows em {
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(88, 213, 211, 0.13);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
}

.mock-rows em.wait {
    color: #F5B942;
    background: rgba(245, 185, 66, 0.14);
}

.chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.chip-a { top: 0; right: -0.75rem; animation: float 7s ease-in-out infinite; }
.chip-b { bottom: 0.25rem; left: -0.75rem; animation: float 8s ease-in-out -3s infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width: 575.98px) {
    .chip-a { right: 0; }
    .chip-b { left: 0; }
    .mock-body { min-height: 0; }
}

/* Problems */
.problems { background: var(--bg); }

.problem {
    height: 100%;
    padding-top: 1.25rem;
    border-top: 2px solid var(--line);
    transition: border-color 0.2s ease;
}

.problem:hover { border-top-color: var(--accent); }

.problem .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-strong);
    margin-bottom: 0.75rem;
}

.problem p {
    color: var(--muted);
    font-size: 0.975rem;
    margin: 0;
}

/* Services */
.services { background: var(--bg-soft); }

.card-service {
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(88, 213, 211, 0.45);
}

.card-service .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    margin-bottom: 1.25rem;
}

.card-service svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-service p {
    color: var(--muted);
    font-size: 0.975rem;
    margin: 0;
}

/* Process */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.steps li {
    position: relative;
    padding-top: 0.25rem;
}

.steps li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 56px;
    right: -2rem;
    height: 2px;
    background: var(--line);
}

.steps li:last-child::before { display: none; }

.step-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.steps p {
    color: var(--muted);
    font-size: 0.975rem;
    margin: 0;
}

@media (max-width: 991.98px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li::before { display: none; }
}

@media (max-width: 575.98px) {
    .steps { grid-template-columns: 1fr; }
}

/* Pledge */
.pledge {
    color: var(--on-dark);
    background:
        radial-gradient(44rem 28rem at 100% 0%, rgba(88, 213, 211, 0.16), transparent 60%),
        var(--ink);
}

.pledge h2 { color: #fff; }
.pledge p:not(.eyebrow) { color: var(--on-dark-muted); max-width: 40rem; }

.pledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.pledge-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
}

.pledge-list strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
}

.pledge-list div span {
    color: var(--on-dark-muted);
    font-size: 0.95rem;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Contact */
.contact { background: var(--bg-soft); }

.contact-lead {
    color: var(--muted);
    font-size: 1.125rem;
    max-width: 28rem;
}

.contact-points {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.contact-points li {
    position: relative;
    padding-left: 1.75rem;
}

.contact-points li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.5em;
    width: 0.75rem;
    height: 0.4rem;
    border-left: 2px solid var(--accent-strong);
    border-bottom: 2px solid var(--accent-strong);
    transform: rotate(-45deg);
}

.contact-details {
    display: grid;
    gap: 1rem;
    margin: 2.25rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    font-style: normal;
}

.contact-details div {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.2rem;
}

.contact-details a {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.contact-details a:hover { color: var(--accent-strong); }

.form-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
}

.form-control {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s ease;
}

.form-control::placeholder { color: #8A94A6; }
.form-control:focus { border-color: var(--accent-strong); }
textarea.form-control { resize: vertical; min-height: 9rem; }

.form-control.invalid { border-color: var(--danger); }

.validation-message {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.send-error {
    color: var(--danger);
    font-weight: 500;
}

/* Contact form sending state */
.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.5rem;
}

.btn-busy {
    display: none;
    align-items: center;
    gap: 0.6rem;
}

.spinner {
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    border: 2.5px solid rgba(6, 32, 31, 0.25);
    border-top-color: var(--on-accent);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

form.is-sending .btn-label { display: none; }
form.is-sending .btn-busy { display: inline-flex; }

form.is-sending .btn-send,
form.is-sending .btn-send:disabled {
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    cursor: progress;
    transform: none;
    box-shadow: none;
}

form.is-sending .form-control,
form.is-sending .form-label {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.thanks {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    background: var(--accent-soft);
    border: 1px solid rgba(88, 213, 211, 0.6);
    border-radius: var(--radius-sm);
    scroll-margin-top: 130px;
}

.thanks strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.thanks div span {
    color: var(--muted);
    font-size: 0.975rem;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* About page */
.about-hero {
    position: relative;
    color: var(--on-dark);
    background:
        radial-gradient(52rem 30rem at 90% -20%, rgba(88, 213, 211, 0.20), transparent 60%),
        var(--ink);
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.about-hero h1 {
    color: #fff;
    max-width: 18ch;
}

.about-hero .lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 400;
    color: var(--on-dark-muted);
    max-width: 44rem;
    margin: 0;
}

.founder-photo {
    aspect-ratio: 4 / 5;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    background: linear-gradient(160deg, var(--ink-2), var(--ink));
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.founder-initials {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.founder-card {
    display: flex;
    flex-direction: column;
    margin-top: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.founder-card strong {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

.founder-card span { color: var(--muted); }

.founder-bio p {
    font-size: 1.125rem;
    color: #2B3545;
    max-width: 44rem;
}

.founder-bio p:first-child {
    font-size: 1.3rem;
    color: var(--text);
}

.founder-facts {
    list-style: none;
    padding: 2rem 0 0;
    margin: 2rem 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 44rem;
}

.founder-facts strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent-strong);
    margin-bottom: 0.4rem;
}

.founder-facts span {
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .founder-facts { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 767.98px) {
    .founder-photo { max-width: 22rem; }
}

.principles { background: var(--bg-soft); }

.principle {
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem;
    box-shadow: var(--shadow-sm);
}

.principle .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-strong);
    margin-bottom: 0.75rem;
}

.principle p {
    color: var(--muted);
    font-size: 0.975rem;
    margin: 0;
}

.about-cta {
    text-align: center;
    color: var(--on-dark);
    background:
        radial-gradient(40rem 24rem at 50% 120%, rgba(88, 213, 211, 0.18), transparent 60%),
        var(--ink);
}

.about-cta h2 { color: #fff; }

.about-cta p {
    color: var(--on-dark-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Error and not-found pages */
.page-message {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-message h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }

.page-message p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--on-dark-muted);
    padding: 2.5rem 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-brand strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    font-style: normal;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover { color: var(--accent); }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-nav a {
    color: var(--on-dark-muted);
    text-decoration: none;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
    flex-basis: 100%;
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Blazor error bar */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    /* A progress indicator is essential feedback, so it keeps moving. */
    .spinner { animation: spin 0.7s linear infinite !important; }
}
