:root {
    --background: #f4f3ee;
    --surface: #ebe9e1;
    --surface-dark: #171914;
    --text: #181a16;
    --muted: #686b61;
    --border: rgba(24, 26, 22, 0.16);
    --accent: #515f3b;
    --accent-light: #dbe2cb;
    --white: #fafaf7;

    --page-width: 1240px;
    --page-padding: clamp(1.25rem, 4vw, 4rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
            radial-gradient(
                    circle at 75% 15%,
                    rgba(158, 173, 128, 0.16),
                    transparent 28rem
            ),
            var(--background);
    color: var(--text);
    font-family:
            Inter,
            ui-sans-serif,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.site-header {
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.site-nav a,
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
            color 160ms ease,
            opacity 160ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
    color: var(--text);
}

.hero {
    min-height: min(760px, calc(100vh - 6rem));
    padding: clamp(5rem, 10vw, 9rem) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

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

.hero h1 {
    max-width: 750px;
    margin: 0;
    font-size: clamp(3.6rem, 8vw, 7.8rem);
    font-weight: 650;
    letter-spacing: -0.075em;
    line-height: 0.88;
}

.hero-description {
    max-width: 590px;
    margin: 2.25rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
}

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

.button {
    min-height: 3.2rem;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition:
            transform 160ms ease,
            background-color 160ms ease,
            border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--surface-dark);
    color: var(--white);
}

.button-primary:hover {
    background: #292c24;
}

.button-secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.3);
}

.button-secondary:hover {
    border-color: rgba(24, 26, 22, 0.35);
    background: rgba(255, 255, 255, 0.65);
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.signal-card {
    position: relative;
    width: min(100%, 470px);
    min-height: 500px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0.4rem;
    background: var(--surface-dark);
    color: var(--white);
    box-shadow:
            0 35px 80px rgba(26, 31, 20, 0.16),
            0 3px 12px rgba(26, 31, 20, 0.12);
}

.signal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.signal-card::after {
    content: "";
    position: absolute;
    width: 22rem;
    height: 22rem;
    right: -10rem;
    top: -10rem;
    border: 1px solid rgba(219, 226, 203, 0.3);
    border-radius: 50%;
    box-shadow:
            0 0 0 3rem rgba(219, 226, 203, 0.035),
            0 0 0 7rem rgba(219, 226, 203, 0.025);
}

.signal-card-header,
.signal-lines,
.signal-metrics {
    position: relative;
    z-index: 1;
}

.signal-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(250, 250, 247, 0.58);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #a8c17f;
    box-shadow: 0 0 0 4px rgba(168, 193, 127, 0.12);
}

.signal-lines {
    display: grid;
    gap: 0.8rem;
}

.signal-lines span {
    width: var(--width);
    height: 0.35rem;
    display: block;
    border-radius: 999px;
    background:
            linear-gradient(
                    90deg,
                    var(--accent-light),
                    rgba(219, 226, 203, 0.18)
            );
}

.signal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-metrics div {
    min-width: 0;
}

.metric-value,
.metric-label {
    display: block;
}

.metric-value {
    margin-bottom: 0.35rem;
    color: var(--accent-light);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
}

.metric-label {
    overflow-wrap: anywhere;
    color: rgba(250, 250, 247, 0.6);
    font-size: 0.7rem;
}

.principles {
    padding: clamp(6rem, 12vw, 10rem) 0;
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 700px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2,
.contact-panel h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    font-weight: 620;
    letter-spacing: -0.06em;
    line-height: 1;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.principle {
    padding: 2rem clamp(1rem, 3vw, 2.5rem) 1rem 0;
}

.principle + .principle {
    padding-left: clamp(1rem, 3vw, 2.5rem);
    border-left: 1px solid var(--border);
}

.principle-number {
    color: var(--accent);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
}

.principle h3 {
    margin: 3rem 0 1rem;
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.principle p {
    max-width: 340px;
    margin: 0;
    color: var(--muted);
}

.contact-panel {
    margin-bottom: clamp(5rem, 10vw, 8rem);
    padding: clamp(2rem, 6vw, 4.5rem);
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: clamp(2rem, 8vw, 8rem);
    background: var(--accent-light);
}

.contact-copy {
    align-self: end;
}

.contact-copy p {
    margin: 0 0 2rem;
    color: #4f5744;
    font-size: 1.05rem;
}

.contact-copy a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 750;
    text-underline-offset: 0.3rem;
}

.site-footer {
    min-height: 7rem;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

    .hero-visual {
        justify-content: stretch;
    }

    .signal-card {
        width: 100%;
        max-width: none;
        min-height: 400px;
    }

    .principle-grid {
        grid-template-columns: 1fr;
    }

    .principle {
        padding: 2rem 0;
    }

    .principle + .principle {
        padding-left: 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .principle h3 {
        margin-top: 1.5rem;
    }

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

@media (max-width: 600px) {
    .site-header {
        min-height: 5rem;
    }

    .brand img {
        width: 1.7rem;
        height: 1.7rem;
    }

    .site-nav a:first-child {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 4.5rem 0 6rem;
    }

    .hero h1 {
        font-size: clamp(3.25rem, 16vw, 5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .signal-card {
        min-height: 350px;
    }

    .signal-metrics {
        grid-template-columns: 1fr;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}