:root {
    --ink: #1c1612;
    --ink-soft: #5a4730;
    --paper: #fbf8f4;
    --paper-deep: #f0ebe3;
    --accent: #b26435;
    --accent-deep: #8c4a24;
    --accent-soft: #d4a07a;
    --line: rgba(28, 22, 18, 0.12);
    --white: #ffffff;
    --max: 72rem;
    --nav-h: 4.5rem;
    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(251, 248, 244, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.brand-mark img {
    width: 10.5rem;
    height: auto;
}

.site-nav {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 1.35rem;
}

.site-nav a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-toggle {
    margin-left: auto;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    background: currentColor;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
}

.nav-toggle span::before {
    top: -5px;
}

.nav-toggle span::after {
    top: 5px;
}

.site-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-nav.is-open a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero {
    position: relative;
    min-height: min(88vh, 44rem);
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero--compact {
    min-height: min(52vh, 26rem);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.02);
    animation: hero-zoom 18s ease-out forwards;
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(14, 10, 8, 0.78) 0%, rgba(14, 10, 8, 0.45) 48%, rgba(14, 10, 8, 0.28) 100%),
        linear-gradient(180deg, rgba(14, 10, 8, 0.15) 0%, rgba(14, 10, 8, 0.72) 100%);
}

.hero__inner {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 5rem 0 4rem;
}

.hero__brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.4rem);
    font-weight: 600;
    line-height: 0.95;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(1.2rem);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 500;
    color: #f3d2b4;
    max-width: 22ch;
    margin-bottom: 0.85rem;
    opacity: 0;
    transform: translateY(1rem);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.hero__support {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(1rem);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(1rem);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tint {
    background: var(--paper-deep);
}

.section__inner {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
}

.section__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.section__title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    color: var(--ink);
    max-width: 18ch;
    margin-bottom: 1rem;
}

.section__lead {
    max-width: 40rem;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: minmax(12rem, 0.9fr) 1.4fr;
        gap: 3.5rem;
        align-items: start;
    }
}

.principle-list,
.system-list,
.science-list,
.program-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.75rem;
}

.principle-list li,
.system-list li,
.science-list li {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.principle-list strong,
.system-list strong,
.science-list strong,
.program-list h2 {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 0.45rem;
}

.principle-list p,
.system-list p,
.science-list p,
.program-list p {
    color: var(--ink-soft);
}

.program-list {
    gap: 0;
}

.program-list li {
    display: grid;
    gap: 0.75rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
}

.program-list li:last-child {
    border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
    .program-list li {
        grid-template-columns: 18rem 1fr;
        gap: 2rem;
        align-items: baseline;
        padding: 2rem 0;
    }
}

.science-list {
    counter-reset: science;
}

.science-list li {
    position: relative;
    padding-left: 3.5rem;
}

.science-list li::before {
    counter-increment: science;
    content: counter(science, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1.45rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

.science-list .how {
    margin-top: 0.55rem;
    color: var(--ink);
    font-weight: 600;
}

.contact-block {
    max-width: 34rem;
}

.contact-block a {
    color: var(--accent-deep);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-family: var(--font-display);
    font-weight: 600;
    border-bottom: 2px solid var(--accent-soft);
}

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

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.75rem 0 2.25rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.site-footer__inner {
    width: min(var(--max), calc(100% - 2.5rem));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-zoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.02);
    }
}

@media (min-width: 880px) {
    .site-nav {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .header-cta {
        display: inline-flex;
    }
}

.header-cta {
    display: none;
    margin-left: 0.5rem;
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hero__brand,
    .hero__headline,
    .hero__support,
    .hero__actions {
        opacity: 1;
        transform: none;
    }
}
