:root {
    --background: #f7f4ee;
    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.78);
    --text: #1f1f1f;
    --muted: #6f6a61;
    --soft: #9b9488;
    --border: #ddd5c7;
    --border-strong: #cfc4b3;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.85),
            transparent 32rem
        ),
        var(--background);
    color: var(--text);
}

a {
    color: inherit;
}

.page {
    width: min(1180px, 100%);
    min-height: calc(100vh - 4rem);
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(3rem, 5vw, 4.25rem);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.brand {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.social-link {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.social-link svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.5);
}

.hero {
    margin: 0 auto clamp(3.5rem, 5vw, 4.5rem);
    text-align: center;
}

h1 {
    max-width: none;
    margin: 0 auto;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.35;
    color: var(--text);
    text-wrap: balance;
}

.directions {
    margin-bottom: 1rem;
}

.directions-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.directions-heading h2 {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.directions-line {
    height: 1px;
    background: var(--border);
}

.verticals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.vertical-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.vertical-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
}

.vertical-header {
    min-height: 14rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border);
}

.vertical-card h3 {
    margin: 0 0 0.8rem;
    text-align: center;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
}

.vertical-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.experiments {
    padding: 0 clamp(1.5rem, 3vw, 2rem);
}

.experiment {
    padding: 1.65rem 0 1.8rem;
}

.experiment + .experiment {
    border-top: 1px solid var(--border);
}

.experiment-label,
.experiment-name,
.experiment-status,
.experiment-links {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.experiment-label {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft);
}

.experiment h4 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
}

.experiment-name {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.experiment-description {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.experiment-status {
    margin: 1rem 0 0;
    font-size: 0.78rem;
    color: var(--soft);
}

.experiment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    margin-top: 1.1rem;
    font-size: 0.82rem;
}

.experiment-links a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--border-strong);
}

.experiment-links a:hover,
.experiment-links a:focus-visible {
    text-decoration-color: currentColor;
}

.footer {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer a {
    text-decoration: none;
}

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

/* Legal page */
.legal-page {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 2rem;
}

.legal-card {
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
}

.back-link,
.eyebrow,
.legal-footer {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.back-link {
    margin: 0 0 2rem;
}

.back-link a {
    text-decoration: none;
}

.eyebrow {
    margin: 0 0 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.legal-card h1 {
    margin: 0 0 1rem;
}

.legal-card h2 {
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.legal-card p,
.legal-card li {
    line-height: 1.65;
    color: var(--muted);
}

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

.legal-footer {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--soft);
}

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

    .vertical-header {
        min-height: auto;
    }

    .vertical-number {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .page,
    .legal-page {
        padding: 1.25rem;
    }

    .header {
        margin-bottom: 2.75rem;
    }

    .hero {
        margin-bottom: 3.25rem;
    }

    h1 {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        line-height: 1.4;
    }

    .directions-heading {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .directions-line {
        display: none;
    }
}

/* Stronger tablet/mobile separation for the three exploration fields */
@media (max-width: 940px) {
    .verticals {
        gap: 1.4rem;
    }

    .vertical-card {
        border-color: var(--border-strong);
        background: rgba(255, 255, 255, 0.84);
        box-shadow: 0 10px 28px rgba(31, 31, 31, 0.055);
    }

    .vertical-header {
        padding: 1.7rem 1.6rem 1.5rem;
        border-bottom-color: var(--border-strong);
        background: rgba(255, 255, 255, 0.46);
        text-align: center;
    }

    .vertical-card h3 {
        margin-bottom: 0.9rem;
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        font-weight: 400;
        letter-spacing: -0.035em;
    }

    .vertical-description {
        max-width: 34rem;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .directions-heading {
        margin-bottom: 1rem;
    }

    .directions-heading h2 {
        font-size: 0.74rem;
        letter-spacing: 0.12em;
    }

    .vertical-card {
        border-width: 1px;
        border-radius: 24px;
    }

    .experiments {
        padding: 0 1.5rem;
    }
}
