:root {
    --background: #f5f3ed;
    --surface: #ffffff;
    --surface-muted: #ebe8df;
    --text: #171a19;
    --muted: #5c6560;
    --border: #cfd4d0;
    --accent: #28584e;
    --accent-dark: #173b34;
    --accent-soft: #dce9e4;
    --max-width: 1180px;
    --narrow-width: 790px;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(22, 25, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--accent-dark);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--accent);
}

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin-inline: auto;
}

.container.narrow {
    max-width: var(--narrow-width);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(207, 212, 208, 0.8);
    background: rgba(245, 243, 237, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-dark);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.hero {
    padding: 7rem 0 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
    gap: 4rem;
    align-items: center;
}

.eyebrow,
.card-label,
.card-number {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 900px;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 8vw, 6.4rem);
}

.page-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.hero-copy,
.lead,
.large-copy {
    color: var(--muted);
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border: 1px solid var(--accent-dark);
    border-radius: 999px;
    font-weight: 750;
    text-decoration: none;
}

.button.primary {
    background: var(--accent-dark);
    color: #ffffff;
}

.button.secondary {
    color: var(--accent-dark);
}

.principle-card,
.service-card,
.notice {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.principle-card,
.service-card {
    padding: 1.6rem;
}

.principle-card blockquote {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 650;
    line-height: 1.35;
}

.section,
.page-hero {
    padding: 5rem 0;
}

.page-hero,
.section-muted {
    background: var(--surface-muted);
}

.page-hero {
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 2.5rem;
}

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

.service-card p {
    color: var(--muted);
}

.prose > * + * {
    margin-top: 1.4rem;
}

.prose h2 {
    margin-top: 3.5rem;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.notice {
    margin-top: 2rem;
    padding: 1.2rem 1.3rem;
    background: var(--accent-soft);
    box-shadow: none;
}

.flow {
    overflow-x: auto;
    padding: 1.3rem;
    border-radius: 14px;
    background: #171c1a;
    color: #eef5f2;
    line-height: 1.6;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-inner p {
    margin: 0;
}

.footer-inner nav {
    display: flex;
    gap: 1rem;
}

@media (max-width: 820px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-inner {
        padding: 1rem 0;
    }

    .hero {
        padding-top: 4.5rem;
    }

    .hero-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .site-nav {
        gap: 0.8rem 1rem;
    }

    .site-nav a {
        font-size: 0.86rem;
    }

    .section,
    .page-hero {
        padding: 3.5rem 0;
    }
}