:root {
    --bg-hero: #101713;
    --bg-deep: #14231d;
    --bg-page: #f5f2ea;
    --bg-muted: #e7eadf;
    --surface: #fffdf7;
    --surface-strong: #10201b;
    --ink: #111815;
    --ink-soft: #4d5a53;
    --ink-muted: #7a837d;
    --line: rgba(17, 24, 21, 0.14);
    --line-dark: rgba(255, 255, 255, 0.18);
    --teal: #2f9b83;
    --blue: #316caa;
    --amber: #c9832b;
    --clay: #b95745;
    --cream: #fff7e8;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(19, 28, 24, 0.15);
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Outfit", "Inter", system-ui, sans-serif;
    --container: 1180px;
    --header-height: 76px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: calc(var(--header-height) + 18px);
}

#home {
    scroll-margin-top: 0;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg-page);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    color: var(--white);
    background: var(--teal);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 180ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    color: var(--white);
    background: rgba(16, 23, 19, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(245, 242, 234, 0.9);
    border-bottom-color: var(--line);
    box-shadow: 0 16px 45px rgba(17, 24, 21, 0.08);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--bg-hero);
    background: linear-gradient(135deg, var(--cream), #b6eadc 52%, #f2b66a);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
}

.brand-text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
}

.site-header.is-scrolled .brand-text {
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 180ms var(--ease), background-color 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-links:not(.is-open) a {
    color: var(--ink-soft);
}

.site-header.is-scrolled .nav-links:not(.is-open) a:hover,
.site-header.is-scrolled .nav-links:not(.is-open) a:focus-visible,
.site-header.is-scrolled .nav-links:not(.is-open) a.is-active {
    color: var(--ink);
    background: rgba(17, 24, 21, 0.08);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.site-header.is-scrolled .menu-button {
    color: var(--ink);
    background: rgba(17, 24, 21, 0.06);
    border-color: rgba(17, 24, 21, 0.16);
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
    transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 88vh;
    min-height: 88svh;
    display: grid;
    align-items: center;
    padding: calc(var(--header-height) + 54px) 0 70px;
    color: var(--white);
    background: var(--bg-hero);
    overflow: hidden;
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(10, 16, 13, 0.95) 0%, rgba(10, 16, 13, 0.79) 34%, rgba(10, 16, 13, 0.32) 68%, rgba(10, 16, 13, 0.64) 100%),
        linear-gradient(180deg, rgba(16, 23, 19, 0.35) 0%, rgba(16, 23, 19, 0.08) 45%, rgba(16, 23, 19, 0.86) 100%);
}

.hero-layout {
    position: relative;
    z-index: 1;
}

.hero-copy {
    width: min(760px, 100%);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1,
.section-heading h2,
.section-intro h2,
.focus-panel h2,
.research-copy h2,
.contact-layout h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 760px;
    font-size: 4.05rem;
}

.hero-lede {
    max-width: 630px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #101713;
    background: linear-gradient(135deg, #fff0c7, #8de1cf 58%, #f0a85f);
    box-shadow: 0 18px 50px rgba(34, 137, 116, 0.28);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.hero-quote {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
}

.proof-strip {
    color: var(--white);
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof-item {
    min-height: 112px;
    padding: 24px 26px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-item:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-item strong {
    display: block;
    color: #c8f5e9;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.proof-item span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.section {
    padding: 112px 0;
}

.two-column {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 86px;
    align-items: start;
}

.section-intro {
    position: sticky;
    top: calc(var(--header-height) + 28px);
}

.section-intro h2,
.section-heading h2,
.focus-panel h2,
.research-copy h2,
.contact-layout h2 {
    color: var(--ink);
    font-size: 3.15rem;
}

.profile-copy {
    display: grid;
    gap: 20px;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.profile-copy p {
    margin: 0;
}

.focus-section {
    color: var(--white);
    background: var(--surface-strong);
}

.focus-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.focus-panel h2,
.research-section .research-copy h2,
.contact-layout h2 {
    color: var(--white);
}

.focus-list {
    display: grid;
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    overflow: hidden;
}

.focus-item {
    display: grid;
    grid-template-columns: 56px 0.75fr 1fr;
    gap: 24px;
    align-items: baseline;
    padding: 26px;
    background: #132820;
}

.focus-item span {
    color: #9de6d4;
    font-family: var(--font-display);
    font-weight: 800;
}

.focus-item h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.1rem;
}

.focus-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-heading p {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.expertise-card,
.course-card,
.research-point {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(17, 24, 21, 0.04);
}

.expertise-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.expertise-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 155, 131, 0.4);
    box-shadow: var(--shadow);
}

.card-index {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    background: var(--bg-deep);
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 800;
}

.expertise-card h3,
.course-card h3 {
    margin: 24px 0 12px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.28rem;
    line-height: 1.18;
}

.expertise-card p,
.course-card p,
.research-point p {
    margin: 0;
    color: var(--ink-soft);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.tag-row span,
.course-type {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    color: #194a3f;
    background: #dceee8;
    border: 1px solid rgba(47, 155, 131, 0.22);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
}

.tag-row span:nth-child(2n),
.course-card:nth-child(2n) .course-type {
    color: #613a12;
    background: #f8e2be;
    border-color: rgba(201, 131, 43, 0.24);
}

.tag-row span:nth-child(3n),
.course-card:nth-child(3n) .course-type {
    color: #4c2019;
    background: #f3d7cf;
    border-color: rgba(185, 87, 69, 0.24);
}

.research-section {
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(16, 23, 19, 0.92), rgba(20, 35, 29, 0.98)),
        url("assets/hero-systems-lab.png") center / cover;
}

.research-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.research-copy p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.08rem;
}

.text-link {
    display: inline-flex;
    margin-top: 28px;
    color: #bdf7e8;
    border-bottom: 1px solid currentColor;
    font-weight: 800;
}

.research-points {
    display: grid;
    gap: 14px;
}

.research-point {
    padding: 24px;
    color: var(--ink);
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(14px);
}

.research-point span {
    color: var(--clay);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.research-point strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.2;
}

.research-point p {
    margin-top: 10px;
}

.courses-section {
    background: var(--bg-muted);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.course-card {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 24px;
    align-items: start;
    min-height: 190px;
    padding: 26px;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.course-card h3 {
    margin-top: 14px;
}

.principles-section {
    padding: 104px 0;
    background: var(--surface);
}

.principles-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 86px;
}

.principles-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: principle;
    border-top: 1px solid var(--line);
}

.principles-list li {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    counter-increment: principle;
}

.principles-list li::before {
    content: counter(principle, decimal-leading-zero);
    color: var(--teal);
    font-family: var(--font-display);
    font-weight: 800;
}

.principles-list strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.14rem;
}

.principles-list span {
    color: var(--ink-soft);
}

.contact-section {
    padding: 88px 0;
    color: var(--white);
    background: #2a1d1a;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.contact-layout h2 {
    max-width: 760px;
    color: var(--white);
    font-size: 2.75rem;
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
}

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.7);
    background: #101713;
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.92rem;
}

.footer-layout p {
    margin: 0;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3.65rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .focus-item {
        grid-template-columns: 48px 1fr;
    }

    .focus-item p {
        grid-column: 2;
    }
}

@media (max-height: 760px) and (min-width: 861px) {
    .hero {
        min-height: 78vh;
        min-height: 78svh;
        padding-top: calc(var(--header-height) + 36px);
        padding-bottom: 34px;
    }

    .hero h1 {
        font-size: 3.45rem;
    }

    .hero-lede {
        max-width: 590px;
        margin-top: 18px;
        font-size: 1.03rem;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-quote {
        display: none;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 68px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: var(--header-height) 14px auto;
        display: grid;
        gap: 4px;
        padding: 12px;
        background: rgba(16, 23, 19, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 8px;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: transform 180ms var(--ease), opacity 180ms var(--ease), visibility 180ms var(--ease);
    }

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

    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 86vh;
        min-height: 86svh;
        padding-top: calc(var(--header-height) + 42px);
        padding-bottom: 48px;
    }

    .hero-media img {
        object-position: 62% center;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(10, 16, 13, 0.95), rgba(10, 16, 13, 0.72)),
            linear-gradient(180deg, rgba(16, 23, 19, 0.24), rgba(16, 23, 19, 0.9));
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-lede {
        font-size: 1.05rem;
    }

    .proof-grid,
    .two-column,
    .focus-layout,
    .research-layout,
    .principles-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-item:nth-child(2n) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .section-intro {
        position: static;
    }

    .section {
        padding: 82px 0;
    }

    .section-intro h2,
    .section-heading h2,
    .focus-panel h2,
    .research-copy h2 {
        font-size: 2.42rem;
    }

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

    .course-card,
    .principles-list li {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .brand-text {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.38rem;
    }

    .hero-actions,
    .btn,
    .contact-actions,
    .contact-actions .btn {
        width: 100%;
    }

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

    .proof-item,
    .proof-item:last-child,
    .proof-item:nth-child(2n) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .focus-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 22px;
    }

    .focus-item p {
        grid-column: auto;
    }

    .expertise-card {
        min-height: 260px;
    }

    .contact-layout h2 {
        font-size: 2.1rem;
    }

    .footer-layout {
        display: grid;
    }
}
