:root {
    --bg: #f6f6f2;
    --surface: #ffffff;
    --ink: #1f2a37;
    --muted: #5a6573;
    --accent: #82c5c2;
    --accent-dark: #4d9f9c;
    --line: rgba(31, 42, 55, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 6px 18px rgba(31, 42, 55, 0.08);
    --shadow-lg: 0 18px 45px rgba(31, 42, 55, 0.12);
    --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

.site-header {
    background: transparent;
    padding: 1.75rem 0;
}

.frame {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.brand-word {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.site-header .frame {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-list a {
    font-size: 0.95rem;
    color: var(--muted);
    padding-bottom: 0.25rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--ink);
}

.nav-list a.is-active {
    color: var(--ink);
}

.nav-list a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: transparent;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-main {
    flex: 1;
    padding-bottom: 4rem;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hero-split {
    padding: 3rem 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
}

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

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

.hero-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(31, 42, 55, 0.1));
    margin-left: 3.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 2px;
}

.btn.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn.btn-ghost:hover,
.btn.btn-ghost:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.pillars {
    padding: 2.75rem 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    text-align: center;
}

.card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.welcome {
    padding: 2.75rem 0;
}

.welcome-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    text-align: center;
}

.welcome-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.quote {
    padding: 3.5rem 0 0;
}

.quote p {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 540px;
    color: var(--muted);
}

.page-intro {
    padding: 3rem 0 4rem;
}

.page-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.page-intro-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-intro-text h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

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

.page-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(31, 42, 55, 0.1));
    margin-left: 3.2rem;
}

.stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.stack-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.stack-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.callout {
    margin: 2.5rem 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.callout .btn {
    width: fit-content;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0 0;
}

.profile-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    background: rgba(130, 197, 194, 0.2);
    color: var(--accent-dark);
}

.profile-photo-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--line);
    margin-bottom: 1.25rem;
}

.profile-text h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.profile-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.profile-links a {
    color: var(--accent-dark);
}

.join-content {
    padding: 1.5rem 0 3rem;
    display: flex;
    justify-content: center;
}

.join-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.join-card h2 {
    margin-bottom: 0.5rem;
}

.join-card ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    text-align: left;
    color: var(--muted);
}

.join-card li {
    padding-left: 1.5rem;
    position: relative;
}

.join-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 2rem;
    padding: 1.5rem 0 3rem;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    display: grid;
    gap: 1rem;
}

.contact-card ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--muted);
    display: grid;
    gap: 0.5rem;
}

.contact-card li {
    line-height: 1.5;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-link {
    font-weight: 600;
    color: var(--accent-dark);
}

.contact-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font: inherit;
    color: var(--ink);
    background: #fcfcfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(130, 197, 194, 0.3);
}

.form-message {
    min-height: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.form-message.success {
    color: var(--accent-dark);
}

.form-message.error {
    color: #dc2626;
}

.error {
    padding: 4rem 0;
}

.error-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    display: grid;
    gap: 1rem;
    max-width: 520px;
}

.site-footer {
    margin-top: auto;
    padding: 3rem 0 1.5rem;
    background: #f0f1ef;
    border-top: 1px solid var(--line);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
}

.footer-main {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-main p {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--ink);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-bottom p {
    margin: 0;
}

.stack-card a,
.callout a,
.profile-links a,
.contact-card a,
.text-link {
    text-decoration: none;
}

.stack-card a:hover,
.callout a:hover,
.profile-links a:hover,
.contact-card a:hover,
.text-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-header {
        padding-top: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 1.5rem 1.5rem 1.75rem;
        box-shadow: var(--shadow-sm);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-header .frame {
        position: relative;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2rem 0 3rem;
        display: flex;
        flex-direction: column;
    }

    .hero-text .eyebrow {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text {
        order: 3;
        display: contents;
    }

    .hero-text h1 {
        order: 3;
    }

    .hero-text .lead {
        order: 4;
    }

    .hero-actions {
        order: 5;
    }

    .hero-logo {
        max-width: 320px;
        margin-left: 0;
    }

    .page-intro-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        display: flex;
        flex-direction: column;
    }

    .page-intro-text .eyebrow {
        order: 1;
    }

    .page-intro-visual {
        order: 2;
    }

    .page-intro-text {
        order: 3;
        display: contents;
    }

    .page-intro-text h1 {
        order: 3;
    }

    .page-intro-text .lead {
        order: 4;
    }

    .page-logo {
        max-width: 320px;
        margin-left: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .profile-photo-img {
        width: 140px;
        height: 140px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .frame {
        padding: 0 1.1rem;
    }

    .hero-split {
        padding-top: 1.75rem;
    }

    .page-intro {
        padding-top: 1.75rem;
    }

    .hero-logo {
        max-width: 280px;
    }

    .page-logo {
        max-width: 280px;
    }

    .quote p {
        font-size: 1rem;
    }
}

