/* Immanex | Psalm 90:17
May the Lord establish the work of our hands. */
:root {
    --red: #A61E22;
    --red-bright: #D92D34;
    --gold: #D4AF37;
    --gold-soft: #F4D675;
    --bg: #F8F5ED;
    --surface: #FFFFFF;
    --ink: #111111;
    --muted: #5A5448;
    --line: rgba(17,17,17,.14);
    --header: rgba(248,245,237,.94);
    --shadow: 0 18px 56px rgba(17,17,17,.13);
    --container: 1100px;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    transform: translateY(-180%);
    background: var(--gold);
    color: #111;
    padding: .6rem .9rem;
    border-radius: 999px;
    z-index: 9999;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand img {
    width: clamp(150px,18vw,230px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.nav-links a {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
    padding: .58rem .72rem;
    border-radius: 999px;
    transition: .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background: var(--surface);
}

.theme-link {
    border: 1px solid var(--line);
    color: var(--gold)!important;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

/* HOME MAIN BACKGROUND */
.home-main {
    min-height: calc(100vh - 72px);
    background-image: url("../img/iStock-2236039521.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* HOME HERO */
.home-hero {
    min-height: clamp(560px,72vh,780px);
    padding: clamp(3rem,8vw,6rem) 0;
    display: flex;
    align-items: center;
}

.home-grid {
    display: grid;
    grid-template-columns: minmax(280px,650px);
    justify-content: start;
    align-items: center;
    gap: clamp(1.5rem,5vw,4rem);
}

/* SEE-THROUGH HERO TEXT BOX */
.hero-text-box {
    background: rgba(17,17,17,.54);
    color: white;
    padding: clamp(1.5rem,4vw,3.25rem);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,.36);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-text-box .eyebrow {
    color: var(--gold-soft);
}

.hero-text-box h2 {
    color: white;
    font-size: clamp(2.6rem,7vw,5.8rem);
    line-height: .92;
    letter-spacing: -.065em;
    margin: 0 0 1rem;
    text-shadow: 0 4px 24px rgba(0,0,0,.45);
}

.hero-text-box .lead {
    color: rgba(255,255,255,.92);
    font-size: clamp(1.05rem,2vw,1.25rem);
    max-width: 780px;
    margin-bottom: 0;
}

.home-hero .logo-panel {
    display: none;
}

.about-grid,
.bio-header,
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: clamp(1.5rem,5vw,4rem);
}

.logo-panel,
.card,
.value-card,
.team-card,
.contact-form {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.logo-panel {
    padding: clamp(1rem,3vw,2rem);
}

.logo-panel img,
.about-grid img,
.bio-header img {
    border-radius: calc(var(--radius) - 8px);
}

.about-grid img,
.bio-header img {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 .8rem;
    color: var(--red-bright);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .18em;
}

[data-theme="black"] .eyebrow {
    color: var(--gold-soft);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.6rem,7vw,5.8rem);
    line-height: .92;
    letter-spacing: -.065em;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.45rem,3vw,2.5rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.05rem,2vw,1.25rem);
    max-width: 780px;
}

.section {
    padding: clamp(3rem,7vw,5.5rem) 0;
}

.short-section {
    padding-top: 0;
}

.statement-grid,
.content-grid,
.bio-content,
.project-grid,
.value-grid,
.team-list {
    display: grid;
    gap: 1rem;
}

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

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

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

.card,
.value-card,
.team-card,
.contact-form {
    padding: clamp(1.25rem,3vw,2rem);
}

.card p,
.value-card p,
.team-card p {
    color: var(--muted);
}

.page-hero {
    padding: clamp(3rem,7vw,5.5rem) 0 clamp(1.5rem,4vw,3rem);
}

.team-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.4rem;
    align-items: center;
}

.team-card img {
    border-radius: 18px;
    width: 100%;
}

.text-link,
.contact-list a {
    color: var(--red-bright);
    font-weight: 950;
}

[data-theme="black"] .text-link,
[data-theme="black"] .contact-list a {
    color: var(--gold-soft);
}

.contact-list {
    display: grid;
    gap: .6rem;
    margin-top: 1rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: .45rem;
    color: var(--muted);
    font-weight: 850;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    padding: .9rem 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .84rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 950;
}

.button.primary {
    color: white;
    background: linear-gradient(135deg,var(--red),#751316 52%,var(--gold));
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.25rem 0;
}

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

.footer-brand img {
    width: 180px;
}

.footer-inner p {
    margin: 0;
}

@media (max-width:1000px) {
    .value-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:820px) {
    .nav-toggle {
        display: block;
    }

    .nav-panel {
        position: fixed;
        top: 82px;
        left: 16px;
        right: 16px;
        display: block;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
        box-shadow: var(--shadow);
        padding: .8rem;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        pointer-events: none;
        transition: .18s ease;
    }

    .nav-panel.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        display: grid;
        gap: .25rem;
    }

    .home-main {
        background-position: center center;
    }

    .home-hero {
        min-height: 620px;
    }

    .home-grid,
    .about-grid,
    .bio-header,
    .contact-grid,
    .statement-grid,
    .content-grid,
    .bio-content,
    .project-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .logo-panel {
        order: -1;
    }

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

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

@media (max-width:520px) {
    .container {
        width: min(100% - 24px,var(--container));
    }

    h1 {
        font-size: clamp(2.65rem,15vw,4.4rem);
    }

    .hero-text-box h2 {
        font-size: clamp(2.5rem,14vw,4.2rem);
    }

    .logo-panel,
    .card,
    .value-card,
    .team-card,
    .contact-form {
        border-radius: 18px;
    }

    .hero-text-box {
        padding: 1.35rem;
    }
}