:root {
    --color-navy: #0b1e34;
    --color-navy-deep: #071423;
    --color-gold: #c8a56a;
    --color-gold-soft: #e8d4aa;
    --color-beige: #f4ede3;
    --color-sand: #e7dccd;
    --color-white: #ffffff;
    --color-ink: #1f2b38;
    --color-muted: #5f6975;
    --color-border: rgba(11, 30, 52, 0.12);
    --shadow-soft: 0 22px 50px rgba(7, 20, 35, 0.12);
    --shadow-strong: 0 28px 80px rgba(7, 20, 35, 0.18);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --container: 1200px;
    --transition: 240ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(200, 165, 106, 0.18), transparent 30%),
        linear-gradient(180deg, #fbf8f2 0%, #ffffff 30%, #f7f1e8 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

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

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

.brand,
.hero-copy,
.hero-visual,
.about-panel,
.about-aside,
.info-card,
.service-media,
.service-content,
.team-card,
.why-item,
.impact-copy,
.impact-visual,
.contact-copy,
.contact-form,
.industry-pill {
    min-width: 0;
}

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

.section-alt {
    background: linear-gradient(180deg, rgba(244, 237, 227, 0.65), rgba(255, 255, 255, 0.9));
}

.section-shell {
    padding: clamp(3.75rem, 5vw, 5rem) 0 clamp(3.25rem, 4vw, 4rem);
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--color-gold);
}

#top,
#about,
#expertise,
#services,
#leadership,
#industries,
#contact {
    scroll-margin-top: 5.75rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(1.1rem, 2vw, 1.75rem);
}

.section-heading h2,
.hero h1,
.about-aside h3,
.service-content h3,
.team-card h3,
.impact-copy h2,
.why-item h3,
.site-footer h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2.7vw, 2.8rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(251, 248, 242, 0.92);
    border-bottom: 1px solid rgba(11, 30, 52, 0.08);
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.45rem 0;
}

.brand img {
    width: auto;
    height: clamp(44px, 5vw, 60px);
    max-width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.35rem;
}

.nav-menu a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
}

.nav-menu a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 1px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(11, 30, 52, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-navy);
    transition: transform var(--transition), opacity var(--transition);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-gold), #af8445);
    color: var(--color-navy-deep);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(175, 132, 69, 0.25);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(175, 132, 69, 0.33);
}

.button-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--color-white);
    box-shadow: none;
}

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

.button-sm {
    min-height: 44px;
    padding: 0.7rem 1.15rem;
}

.hero {
    position: relative;
    overflow: clip;
    background:
        linear-gradient(135deg, rgba(11, 30, 52, 0.98), rgba(15, 41, 67, 0.96)),
        radial-gradient(circle at top right, rgba(200, 165, 106, 0.25), transparent 30%);
    color: var(--color-white);
}

.hero::before,
.impact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 165, 106, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 165, 106, 0.08) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 100%);
    pointer-events: none;
}

.hero-grid,
.impact-grid,
.about-grid,
.contact-shell {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(1.5rem, 3vw, 3rem);
}

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

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4.4rem);
    max-width: 18ch;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-text {
    max-width: 680px;
    margin: 0.8rem 0 0;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.83);
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.15rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    color: var(--color-gold-soft);
}

.hero-note-line {
    width: 64px;
    height: 1px;
    background: currentColor;
}

.hero-visual {
    position: relative;
}

.hero-image-card {
    position: relative;
    isolation: isolate;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-strong);
}

.hero-image-card img {
    width: 100%;
    min-height: 400px;
    max-height: 520px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 10px);
}

.hero-badge {
    position: absolute;
    right: 1.35rem;
    bottom: 1.35rem;
    max-width: 250px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(7, 20, 35, 0.82);
}

.hero-badge span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
    color: var(--color-gold-soft);
}

.hero-badge strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.1rem;
}

.about-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.about-panel,
.about-aside,
.contact-form,
.why-item,
.service-block,
.team-card,
.industry-pill,
.info-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.about-panel,
.about-aside {
    padding: 1.25rem;
}

.about-panel p,
.about-aside p,
.contact-copy p,
.service-content p,
.info-card p,
.why-item p,
.footer-copy {
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.card-grid {
    display: grid;
    gap: 1.15rem;
}

.expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.info-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: scaleX(0.25);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(200, 165, 106, 0.4);
    box-shadow: 0 24px 50px rgba(7, 20, 35, 0.14);
}

.info-card:hover::after,
.info-card:focus-within::after {
    opacity: 1;
    transform: scaleX(1);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 165, 106, 0.18), rgba(11, 30, 52, 0.08));
    color: var(--color-gold);
    font-size: 1.35rem;
    font-weight: 800;
}

.info-card h3,
.service-content h3,
.team-card h3,
.why-item h3,
.about-aside h3 {
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.services-stack {
    display: grid;
    gap: 1rem;
}

.service-block {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
}

.service-block-reverse {
    grid-template-columns: 1.08fr 0.92fr;
}

.service-block-reverse .service-media {
    order: 2;
}

.service-block-reverse .service-content {
    order: 1;
}

.service-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 1.15rem;
}

.service-content ul {
    padding-left: 1.2rem;
    margin: 0.75rem 0 1rem;
    color: var(--color-ink);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-card {
    padding: 0.8rem 0.8rem 1rem;
    text-align: center;
}

.team-card img {
    width: 100%;
    aspect-ratio: 4 / 3.8;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 1rem;
    border-radius: calc(var(--radius-md) - 8px);
}

.team-card h3 {
    margin-top: 0.35rem;
}

.team-role {
    margin: 0.5rem 0 0;
    color: var(--color-muted);
    font-weight: 600;
}

.industry-grid,
.why-grid {
    display: grid;
    gap: 0.9rem;
}

.industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.industry-pill {
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: var(--color-navy);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 237, 227, 0.85));
}

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

.why-item {
    padding: 1.15rem;
}

.impact-section {
    position: relative;
    overflow: clip;
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
    background: linear-gradient(135deg, var(--color-navy), #102946);
    color: var(--color-white);
}

.impact-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.impact-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.impact-visual img {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-strong);
}

.contact-shell {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1rem;
}

.contact-form {
    padding: 1.15rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(11, 30, 52, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-ink);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(200, 165, 106, 0.8);
    box-shadow: 0 0 0 4px rgba(200, 165, 106, 0.16);
}

.contact-details a {
    color: var(--color-navy);
    text-decoration: underline;
    text-decoration-color: rgba(200, 165, 106, 0.55);
}

.form-status {
    min-height: 1.5rem;
    margin: 0.5rem 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.button:disabled {
    cursor: wait;
    opacity: 0.8;
    transform: none;
    box-shadow: 0 12px 24px rgba(175, 132, 69, 0.2);
}

.site-footer {
    padding: 2.5rem 0 1rem;
    color: var(--color-white);
    background: linear-gradient(180deg, #09182a 0%, #07111d 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
    gap: 0.9rem;
}

@media (min-width: 1440px) {
    .container {
        width: min(calc(100% - 4rem), 1320px);
    }

    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .hero-image-card img {
        min-height: 440px;
        max-height: 560px;
    }
}

.footer-logo {
    width: 156px;
    margin-bottom: 1rem;
}

.site-footer h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-gold-soft);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(200, 165, 106, 0.4);
    border-radius: 50%;
    background: rgba(11, 30, 52, 0.92);
    color: var(--color-gold-soft);
    box-shadow: 0 16px 36px rgba(7, 20, 35, 0.24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top span {
    font-size: 1.3rem;
    line-height: 1;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: rgba(16, 41, 70, 0.98);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .impact-grid,
    .about-grid,
    .contact-shell,
    .service-block,
    .service-block-reverse {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .section-heading,
    .impact-copy {
        max-width: 100%;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .service-block-reverse .service-media,
    .service-block-reverse .service-content {
        order: initial;
    }

    .expertise-grid,
    .team-grid,
    .industry-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-image-card img {
        min-height: 340px;
        max-height: 430px;
    }
}

@media (max-width: 980px) {
    .section {
        padding: 2.9rem 0;
    }

    .section-shell {
        padding: 4rem 0 3.4rem;
    }

    .expertise-grid,
    .industry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-content,
    .about-panel,
    .about-aside,
    .contact-form,
    .why-item,
    .info-card {
        padding: 1.05rem;
    }
}

@media (max-width: 820px) {
    .section,
    .section-shell {
        padding: 2.5rem 0;
    }

    #top,
    #about,
    #expertise,
    #services,
    #leadership,
    #industries,
    #contact {
        scroll-margin-top: 5rem;
    }

    .navbar {
        gap: 1rem;
        padding: 0.4rem 0;
    }

    .brand img {
        width: min(150px, 44vw);
        height: auto;
    }

    .nav-toggle {
        display: inline-block;
        z-index: 1001;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0.25rem;
        padding: 1rem;
        border: 1px solid rgba(11, 30, 52, 0.1);
        border-radius: 22px;
        background: rgba(251, 248, 242, 0.98);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    }

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

    .nav-menu a {
        padding: 0.8rem 0.6rem;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    .hero-image-card {
        padding: 0.65rem;
    }

    .hero-image-card img {
        min-height: 260px;
        max-height: 320px;
    }

    .service-media img {
        min-height: 200px;
    }

    .nav-menu a:not(.button)::after {
        display: none;
    }

    .button-sm {
        width: 100%;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .site-header {
        backdrop-filter: blur(12px);
    }

    .brand img {
        width: min(136px, 46vw);
        height: auto;
    }

    .hero h1 {
        display: block;
        width: 100%;
        font-size: clamp(1.45rem, 6vw, 2rem);
        max-width: 100%;
        text-wrap: initial;
        white-space: normal;
        line-height: 1.02;
    }

    .section-heading h2,
    .impact-copy h2 {
        display: block;
        width: 100%;
        font-size: clamp(1.35rem, 5.8vw, 1.9rem);
        max-width: 100%;
        white-space: normal;
        line-height: 1.08;
    }

    .expertise-grid,
    .team-grid,
    .industry-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-badge {
        position: static;
        margin-top: 1rem;
        right: 1.25rem;
        left: 1.25rem;
        max-width: none;
    }

    .hero-note {
        flex-wrap: wrap;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .hero-text,
    .about-panel p,
    .about-aside p,
    .service-content p,
    .contact-copy p {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: 0.92rem;
        white-space: normal;
    }

    .hero-image-card img {
        min-height: 190px;
        max-height: 240px;
    }

    .hero-copy,
    .section-heading,
    .about-panel,
    .about-aside,
    .service-content,
    .contact-copy,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .service-content,
    .about-panel,
    .about-aside,
    .contact-form,
    .why-item,
    .info-card,
    .team-card {
        padding: 1.25rem;
    }

    .service-media img,
    .impact-visual img {
        min-height: 170px;
    }

    .team-card img {
        aspect-ratio: 4 / 3.5;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.9rem;
    }
}

@media (max-width: 420px) {
    .section,
    .section-shell {
        padding: 2.2rem 0;
    }

    #top,
    #about,
    #expertise,
    #services,
    #leadership,
    #industries,
    #contact {
        scroll-margin-top: 4.5rem;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.16rem;
    }

    .hero h1 {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .hero-note-line {
        width: 42px;
    }

    .button,
    .button-sm {
        min-height: 48px;
        padding-inline: 1.1rem;
    }

    .nav-toggle {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .back-to-top {
        right: 0.9rem;
        bottom: 0.9rem;
        width: 46px;
        height: 46px;
    }

    .hero-image-card,
    .service-block,
    .about-panel,
    .about-aside,
    .contact-form,
    .why-item,
    .team-card,
    .info-card,
    .industry-pill {
        border-radius: 18px;
    }
}
