:root {
    --blue: #4a7cfc;
    --blue-dark: #3460d8;
    --black: #1a1a1a;
    --text: #2b2b2b;
    --muted: #6b6b6b;
    --border: #e6e6e6;
    --container: 1280px;
    --serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
    --sans: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.05;
    color: var(--black);
    margin: 0;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

p { margin: 0 0 1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--black);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo img { width: 38px; height: 38px; }
.logo-text {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--black);
}
.logo-text span { display: block; }

.nav-main {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1;
    justify-content: flex-end;
}
.nav-main > a {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    padding: 6px 0;
    position: relative;
}
.nav-main > a:hover {
    color: var(--blue);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--black);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.btn:hover {
    background: var(--black);
    color: #fff;
    transform: translateY(-1px);
}
.btn-light {
    border-color: #fff;
    color: #fff;
}
.btn-light:hover {
    background: #fff;
    color: var(--blue);
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
}

.section {
    padding: clamp(80px, 10vw, 160px) 0;
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 520px);
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}
.hero-layout.reverse { grid-template-columns: minmax(0, 520px) 1fr; }
.hero-layout.reverse .hero-text { order: 2; }

.hero-text h2 { margin-bottom: .3em; }
.hero-text p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 2em;
    color: var(--text);
}
.hero-text .btn { margin-top: .5em; }

.hero-media img {
    width: 100%;
    height: auto;
}

.section-dark {
    background: var(--blue);
    color: #fff;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.95); }

.section-dark--card {
    background: #fff;
}
.section-dark--card .card-wrap {
    background: var(--blue);
    color: #fff;
    border-radius: 0;
    padding: clamp(50px, 7vw, 100px) clamp(32px, 6vw, 90px);
    display: grid;
    grid-template-columns: 1fr minmax(0, 480px);
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
}
.section-dark--card .card-wrap h2,
.section-dark--card .card-wrap h3 { color: #fff; }
.section-dark--card .card-wrap p { color: rgba(255,255,255,.95); }

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 700px;
}
.pledger {
    display: block;
    text-align: center;
}
.pledger-photo {
    aspect-ratio: 3 / 4;
    background: #f0f0f0;
    overflow: hidden;
    margin-bottom: 10px;
}
.pledger-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}
.pledger-name {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--black);
    font-style: italic;
}

.tabs {
    display: flex;
    gap: 28px;
    justify-content: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.tab {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: #bfbfbf;
    background: transparent;
    border: 0;
    padding: 4px 2px;
    cursor: pointer;
    position: relative;
}
.tab.active {
    color: var(--black);
}
.tab.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -11px;
    height: 2px;
    background: var(--black);
}

.counter-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    position: relative;
}
.counter-bg {
    position: absolute;
    right: 6%;
    top: 0; bottom: 0;
    width: 180px;
    background: var(--blue);
}
.counter-ring {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 14px solid var(--black);
    border-top-color: rgba(26,26,26,.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: transparent;
}
.counter-ring .big {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 7rem);
    color: #fff;
    line-height: 1;
}
.counter-ring .label {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: #fff;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.field { display: block; margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color .2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--blue);
}
.field textarea { min-height: 140px; resize: vertical; }

.site-footer {
    padding: 80px 0 40px;
    text-align: center;
}
.site-footer .logo-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}
.site-footer .logo-circle img { width: 52px; height: 52px; }
.footer-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 30px;
}
.footer-links a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--black);
    border-bottom: 1px solid var(--black);
    padding-bottom: 3px;
}
.footer-links a:hover { color: var(--blue); border-color: var(--blue); }
.footer-text {
    font-size: 13px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.scroll-hint {
    margin-top: 60px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.careers-page .section { padding: 80px 0; }
.careers-page h1 { margin-bottom: 40px; }
.job {
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
    max-width: 860px;
}
.job h3 { font-family: var(--serif); margin-bottom: 18px; }
.job p { line-height: 1.7; }
.job h4 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--black);
    margin: 30px 0 12px;
}
.job ul { padding-left: 1.3em; }
.job li { margin-bottom: 6px; }

@media (max-width: 980px) {
    .nav-main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--black); }
    .nav-main.open { display: flex; }
    .nav-main > a { width: 100%; font-size: 15px; }
    .nav-main .btn { width: 100%; text-align: center; }
    .nav-toggle { display: block; }

    .hero-layout,
    .hero-layout.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-layout.reverse .hero-text { order: 0; }
    .hero-media { max-width: 420px; margin: 0 auto; }

    .section-dark--card .card-wrap {
        grid-template-columns: 1fr;
    }

    .community-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }

    .form-row { grid-template-columns: 1fr; }

    .counter-wrap { min-height: 320px; }
    .counter-ring { width: 280px; height: 280px; border-width: 10px; }
    .counter-bg { width: 100px; right: 8%; }

    .footer-links { gap: 28px; }
}

@media (max-width: 560px) {
    .container { padding: 0 20px; }
    .community-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .section { padding: 60px 0; }
    .site-header { padding: 14px 0; }
    .logo img { width: 30px; height: 30px; }
}
