:root {
    --ink: #10231d;
    --forest: #0b2d25;
    --forest-light: #163f35;
    --sage: #a7bd9f;
    --cream: #f3f0e6;
    --paper: #faf8f1;
    --gold: #d8b879;
    --white: #ffffff;
    --line: rgba(16, 35, 29, 0.16);
    --font-display: "Libre Caslon Display", Georgia, serif;
    --font-sans: "DM Sans", Arial, sans-serif;
    --page-pad: clamp(1.25rem, 4vw, 5rem);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.skip-link {
    background: var(--cream);
    color: var(--ink);
    left: 1rem;
    padding: 0.85rem 1.1rem;
    position: fixed;
    top: -5rem;
    transition: top 180ms ease;
    z-index: 2000;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    color: var(--white);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(0);
    transition: background-color 300ms ease, color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
    z-index: 1000;
}

.site-header.scrolled {
    background: rgba(250, 248, 241, 0.9);
    box-shadow: 0 1px 0 rgba(16, 35, 29, 0.1);
    color: var(--ink);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.scroll-progress {
    background: rgba(255, 255, 255, 0.16);
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.scroll-progress span {
    background: var(--gold);
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
}

.nav-shell {
    align-items: center;
    display: flex;
    height: clamp(5rem, 7vw, 6.5rem);
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 var(--page-pad);
    position: relative;
    transition: height 300ms ease;
    z-index: 2;
}

.scrolled .nav-shell {
    height: 4.75rem;
}

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

.brand-mark {
    filter: brightness(0) invert(1);
    height: 3.2rem;
    object-fit: contain;
    transition: filter 300ms ease, height 300ms ease;
    width: 3.6rem;
}

.scrolled .brand-mark,
.site-header.menu-active .brand-mark {
    filter: brightness(0) saturate(100%);
}

.scrolled .brand-mark {
    height: 2.75rem;
}

.brand-name {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-name strong {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.desktop-nav {
    align-items: center;
    display: flex;
    gap: clamp(1.25rem, 2.2vw, 2.5rem);
}

.desktop-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.55rem 0;
    position: relative;
}

.desktop-nav a::after {
    background: currentColor;
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease;
    width: 100%;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 1.2rem;
    padding: 0.75rem 1rem 0.75rem 1.2rem;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.scrolled .nav-cta {
    border-color: rgba(16, 35, 29, 0.35);
}

.nav-cta:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.scrolled .nav-cta:hover {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
}

.menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    height: 3rem;
    position: relative;
    width: 3rem;
    z-index: 2;
}

.menu-toggle > span:not(.sr-only) {
    background: currentColor;
    height: 1px;
    left: 0.55rem;
    position: absolute;
    transition: transform 250ms ease, top 250ms ease;
    width: 1.9rem;
}

.menu-toggle > span:nth-child(2) { top: 1.15rem; }
.menu-toggle > span:nth-child(3) { top: 1.8rem; }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { top: 1.48rem; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { top: 1.48rem; transform: rotate(-45deg); }

.mobile-menu {
    background: var(--cream);
    color: var(--ink);
    height: 100dvh;
    inset: 0 0 auto;
    opacity: 0;
    padding: 7.5rem var(--page-pad) 2rem;
    pointer-events: none;
    position: fixed;
    transform: translateY(-1.5rem);
    transition: opacity 250ms ease, transform 350ms cubic-bezier(.2,.8,.2,1);
    visibility: hidden;
    z-index: 1;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 auto;
    max-width: 44rem;
}

.menu-label,
.section-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.menu-label {
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.mobile-menu-inner > a:not(.mobile-contact) {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 7vw, 2.65rem);
    justify-content: space-between;
    padding: 0.7rem 0;
}

.mobile-menu-inner > a span {
    font-family: var(--font-sans);
    font-size: 0.62rem;
}

.mobile-contact {
    align-items: center;
    background: var(--forest);
    border-radius: 999px;
    color: var(--white);
    display: flex;
    font-size: 0.85rem;
    justify-content: center;
    margin-top: auto;
    padding: 1rem 1.4rem;
}

.hero {
    background-image: url("../img/bg.jpg");
    background-position: center;
    background-size: cover;
    color: var(--white);
    display: flex;
    min-height: 100svh;
    overflow: hidden;
    padding: clamp(8rem, 15vh, 12rem) var(--page-pad) 3rem;
    position: relative;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(3, 22, 17, 0.86) 0%, rgba(3, 22, 17, 0.54) 48%, rgba(3, 22, 17, 0.16) 100%),
        linear-gradient(0deg, rgba(3, 22, 17, 0.65) 0%, transparent 42%);
    inset: 0;
    position: absolute;
}

.hero-content {
    align-self: center;
    margin-inline: auto;
    max-width: 75rem;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.eyebrow {
    align-items: center;
    display: flex;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 0.85rem;
    letter-spacing: 0.16em;
    margin-bottom: 1.75rem;
    justify-content: center;
    text-transform: uppercase;
}

.eyebrow span {
    background: var(--gold);
    border-radius: 50%;
    height: 3px;
    width: 3px;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-lead h2 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.035em;
}

.hero h1 {
    font-size: clamp(1.65rem, 6.3vw, 6.5rem);
    line-height: 1;
    max-width: none;
    white-space: nowrap;
}

.hero h1 em,
.section-heading h2 em,
.about-copy h2 em,
.contact-lead h2 em {
    color: var(--gold);
    font-weight: 400;
}

.hero-copy {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.7;
    margin: 2rem auto;
    max-width: 36rem;
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 2rem;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.2rem 0.85rem 1.45rem;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

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

.button-primary {
    background: var(--cream);
    color: var(--ink);
}

.button-primary:hover {
    background: var(--gold);
}

.hero-footer {
    align-items: flex-end;
    bottom: 2.2rem;
    display: flex;
    font-size: 0.67rem;
    justify-content: flex-end;
    left: var(--page-pad);
    letter-spacing: 0.13em;
    position: absolute;
    right: var(--page-pad);
    text-transform: uppercase;
    z-index: 1;
}

.hero-footer a {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.scroll-arrow {
    flex: 0 0 auto;
    height: 1.5rem;
    width: 1.5rem;
}

.reveal {
    animation: rise-in 750ms cubic-bezier(.2,.8,.2,1) both;
}

.hero h1.reveal { animation-delay: 100ms; }
.hero-copy.reveal { animation-delay: 180ms; }
.hero-actions.reveal { animation-delay: 260ms; }

@keyframes rise-in {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

.explore-section {
    padding: clamp(1.25rem, 3vw, 2.5rem) var(--page-pad) clamp(5rem, 10vw, 10rem);
}

.section-heading {
    align-items: end;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.5fr);
    margin: 0 auto clamp(3rem, 6vw, 5.5rem);
    max-width: 1480px;
}

.section-kicker {
    color: #63746e;
    margin-bottom: 1.4rem;
}

.section-heading h2,
.about-copy h2,
.contact-lead h2 {
    font-size: clamp(2.8rem, 5.5vw, 6rem);
    line-height: 1;
}

.section-heading h2 em,
.contact-lead h2 em {
    color: #6f8668;
}

.section-intro,
.contact-lead > p:not(.section-kicker) {
    color: #53625d;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 30rem;
}

.card-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.75rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1480px;
}

.feature-card {
    aspect-ratio: 16 / 10;
    border-radius: clamp(1rem, 2vw, 1.8rem);
    color: var(--white);
    overflow: hidden;
    position: relative;
    grid-column: auto;
}

.feature-card-wide {
    aspect-ratio: 16 / 10;
    grid-column: auto;
}

.feature-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.2,.8,.2,1);
    width: 100%;
}

.feature-card:hover img {
    transform: scale(1.045);
}

.card-overlay {
    background: linear-gradient(180deg, rgba(5, 24, 18, 0.08), rgba(5, 24, 18, 0.84));
    inset: 0;
    position: absolute;
}

.card-number {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    left: clamp(1.25rem, 3vw, 2.25rem);
    position: absolute;
    top: clamp(1.25rem, 3vw, 2.25rem);
}

.card-copy {
    bottom: clamp(1.25rem, 3vw, 2.25rem);
    left: clamp(1.25rem, 3vw, 2.25rem);
    max-width: calc(100% - 7rem);
    position: absolute;
    transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}

.card-copy p {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}

.card-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
}

.feature-card:hover .card-copy,
.feature-card:focus-visible .card-copy {
    transform: translateY(-0.35rem);
}

.card-arrow {
    align-items: center;
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 50%;
    bottom: clamp(1.25rem, 3vw, 2.25rem);
    display: flex;
    height: 3rem;
    justify-content: center;
    position: absolute;
    right: clamp(1.25rem, 3vw, 2.25rem);
    transition: background 200ms ease, color 200ms ease, transform 250ms ease;
    width: 3rem;
}

.feature-card:hover .card-arrow {
    background: var(--cream);
    color: var(--ink);
    transform: rotate(45deg);
}

.about-section {
    align-items: center;
    background: var(--forest);
    color: var(--white);
    display: grid;
    gap: clamp(3rem, 8vw, 9rem);
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    min-height: 42rem;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
}

.about-orbit {
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: grid;
    margin: 0 auto;
    max-width: 31rem;
    place-items: center;
    position: relative;
    width: 100%;
}

.about-orbit::before,
.about-orbit::after {
    border: 1px solid rgba(216,184,121,0.34);
    border-radius: 50%;
    content: "";
    inset: 12%;
    position: absolute;
}

.about-orbit::after {
    inset: 30%;
}

.orbit-ring {
    animation: orbit 18s linear infinite;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 50%;
    height: 58%;
    position: absolute;
    transform: rotate(52deg);
    width: 96%;
}

.orbit-ring::after {
    background: var(--gold);
    border-radius: 50%;
    content: "";
    height: 0.65rem;
    left: 8%;
    position: absolute;
    top: 17%;
    width: 0.65rem;
}

@keyframes orbit {
    to { transform: rotate(412deg); }
}

.orbit-mark {
    color: var(--cream);
    font-family: Georgia, serif;
    font-size: clamp(5rem, 13vw, 9rem);
    line-height: 1;
}

.section-kicker.light {
    color: var(--sage);
}

.about-copy {
    max-width: 46rem;
}

.about-copy h2 em {
    color: var(--gold);
}

.about-copy > p:not(.section-kicker) {
    color: rgba(255,255,255,0.73);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.8;
    margin: 2rem 0 0;
    max-width: 39rem;
}

.contact-section {
    display: flex;
    justify-content: center;
    padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
    text-align: center;
}

.email-contact {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 68rem;
    width: 100%;
}

.email-contact h2 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}

.email-contact h2 em {
    color: #6f8668;
    font-weight: 400;
}

.email-contact > p:not(.section-kicker) {
    color: #53625d;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.8rem auto 2.25rem;
    max-width: 38rem;
}

.email-address {
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.5vw, 4.25rem);
    margin-bottom: 0.8rem;
    overflow-wrap: anywhere;
    padding-bottom: 0.35rem;
    transition: border-color 180ms ease, color 180ms ease;
}

.email-address:hover {
    border-color: var(--forest);
    color: #587052;
}

.email-copy-status {
    color: #71807b;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    min-height: 1.2rem;
    text-transform: uppercase;
}

.button-dark {
    align-self: flex-start;
    background: var(--forest);
    color: var(--white);
    cursor: pointer;
}

.email-contact .button-dark {
    align-self: center;
}

.button-dark:hover {
    background: var(--forest-light);
}

.site-footer {
    background: #071d18;
    color: var(--white);
    padding: clamp(4rem, 7vw, 6rem) var(--page-pad) 1.5rem;
}

.footer-top {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1.15fr 0.85fr 1fr;
    margin: 0 auto 5rem;
    max-width: 1480px;
}

.footer-brand .brand-mark {
    filter: brightness(0) invert(1);
}

.footer-top > p {
    color: var(--sage);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.footer-nav {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

.footer-nav > div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav span {
    color: rgba(255,255,255,0.45);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: grid;
    font-size: 0.68rem;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    letter-spacing: 0.04em;
    margin: 0 auto;
    max-width: 1480px;
    padding-top: 1.5rem;
}

.back-to-top {
    justify-self: end;
}

@media (max-width: 1050px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: block; }
    .nav-cta { margin-left: auto; margin-right: 0.75rem; }
    .site-header.menu-active { color: var(--ink); }
    .site-header.menu-active .brand-mark { filter: brightness(0) saturate(100%); }
}

@media (max-width: 900px) {
    .card-grid { grid-template-columns: 1fr; }
    .feature-card,
    .feature-card-wide {
        aspect-ratio: 16 / 10;
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root { --page-pad: 1.25rem; }
    .nav-cta { display: none; }
    .hero { padding-bottom: 2rem; }
    .hero-shade {
        background:
            linear-gradient(90deg, rgba(3,22,17,0.82), rgba(3,22,17,0.4)),
            linear-gradient(0deg, rgba(3,22,17,0.72), transparent 55%);
    }
    .feature-card,
    .feature-card-wide { aspect-ratio: 4 / 3; }
    .about-section { grid-template-columns: 1fr; }
    .about-orbit { max-width: 23rem; }
    .about-copy { max-width: 37rem; }
    .footer-top { grid-template-columns: 1fr; margin-bottom: 3rem; }
    .footer-bottom { grid-template-columns: 1fr auto; }
    .back-to-top { grid-column: 2; justify-self: end; }
}

@media (max-width: 520px) {
    .brand-name { display: none; }
    .brand-mark { height: 2.8rem; width: 3.1rem; }
    .eyebrow { gap: 0.5rem; letter-spacing: 0.1em; }
    .hero-copy { font-size: 0.95rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .section-heading h2,
    .about-copy h2,
    .email-contact h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
    .explore-section { padding-bottom: 5rem; padding-top: 1.25rem; }
    .feature-card,
    .feature-card-wide { aspect-ratio: 0.9; }
    .card-copy { max-width: calc(100% - 5rem); }
    .card-copy h3 { font-size: 2.8rem; }
    .card-arrow { height: 2.6rem; width: 2.6rem; }
    .about-section { min-height: auto; }
    .footer-nav { gap: 1rem; }
    .footer-bottom { align-items: start; gap: 1.5rem 0.75rem; }
}

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