@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #11151c;
    --bg-raise: #171d27;
    --bg-card: #1c232f;
    --line: #2a323f;
    --line-soft: #232a36;
    --gold: #c9a227;
    --gold-soft: #e8cf8f;
    --red: #a8362c;
    --red-soft: #c1574b;
    --cream: #f3efe6;
    --text: #ecedf0;
    --text-dim: #93a0b4;
    --text-faint: #5d6a80;

    --display: 'Fraunces', serif;
    --sans: 'IBM Plex Sans', -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', monospace;

    --container: 1180px;
    --edge: 6vw;
}

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

html {

    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===================== UTILITIES ===================== */
.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--edge);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 1.4rem;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cream);
}

.lede {
    color: var(--text-dim);
    max-width: 46ch;
    font-size: 1.02rem;
}

.btn {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.95em 1.6em;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: #1a1306;
    border-color: var(--gold);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===================== NAV ===================== */
header.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 21, 28, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 74px;
    gap: 2.4rem;
    /* more breathing room between brand / links / right-group */
    padding: 0 0.6rem;
}

.brand {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.8rem;
    align-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--cream);
    letter-spacing: 0.01em;
}

.brand .mark {
    width: 40px;
    height: 40px;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.brand-text {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
}

.brand-name {
    line-height: 1;
}

.brand-sub {
    grid-column: 1 / -1;
    /* span beneath both columns */
    grid-row: 2 / 3;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: var(--text-faint);
    font-weight: 700;
}

/* center the main links and prevent wrapping */
nav.links {
    justify-content: center;
}

nav.links a {
    white-space: nowrap;
    font-weight: 700;
}

/* right-side group containing CTAs and socials */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

.nav-right .nav-cta {
    margin-left: 0;
}

/* ensure the toggle sits at the end of the right-group */
.menu-toggle {
    order: 3;
}

nav.links a {
    font-family: var(--mono);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color .18s ease, transform .12s ease;
    position: relative;
    padding: 0.6rem 0.9rem;
    /* balanced horizontal + vertical padding */
    border-radius: 4px;
}

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

nav.links a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.08);
    color: var(--gold);
}

/* group spacing: ensure even gaps that look professional */
.nav-inner {
    gap: 2.6rem;
}

.nav-right {
    gap: 1.2rem;
}

@media (max-width: 920px) {
    nav.links a {
        padding: 0.7rem 1rem;
    }
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--cream);
    display: block;
}

/* social icons placed in the header nav (visible on collapsed menus) */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0;
    /* avoid pushing into neighbouring blocks */
    order: 3;
}

/* mobile copy inside the menu: hidden by default on large screens */
.nav-socials--mobile {
    display: none;
}

/* ensure the CTAs group stays to the right on large screens */
.nav-cta {
    order: 2;
    margin-left: 0.6rem;
}

.nav-socials .social {
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease, transform .12s ease;
}

.nav-socials .social svg {
    width: 24px;
    height: 24px;
    display: block;
}

.nav-socials .social:hover {
    color: var(--gold);
    transform: translateY(-2px) scale(1.03);
    background: rgba(201, 162, 39, 0.12);
}

/* ===================== HEADER TYPOGRAPHY SIZES ===================== */
/* Explicit sizes for header elements so they remain consistent */
.brand-name {
    font-size: 1.2rem;
    /* primary brand label */
}

.brand-sub {
    font-size: 0.78rem;
    /* adjusted earlier, keep consistent here */
}

nav.links a {
    font-size: 0.9rem;
    /* primary nav link size */
}

.nav-cta .btn {
    font-size: 0.85rem;
    /* CTA buttons in header */
}

.nav-socials .social svg {
    width: 28px;
    height: 28px;
}

/* Responsive reductions on smaller screens */
@media (max-width: 920px) {
    .brand-name {
        font-size: 1rem;
    }

    .brand-sub {
        font-size: 0.72rem;
    }

    nav.links a {
        font-size: 0.86rem;
    }

    .nav-cta .btn {
        font-size: 0.82rem;
    }

    .nav-socials .social svg {
        width: 24px;
        height: 24px;
    }
}

/* mobile-specific: hide desktop socials and style mobile copy inside nav.links */
@media (max-width: 920px) {
    .nav-socials {
        display: none;
    }

    /* when the mobile menu opens, show the mobile socials full-width below links */
    nav.links.open .nav-socials--mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--line);
    }

    /* show the menu toggle on small screens */
    .menu-toggle {
        display: flex;
    }
}

/* very small screens: hide the Request Survey primary button to save space */
@media (max-width: 420px) {
    .nav-cta .btn-primary {
        display: none;
    }
}

/* ===================== HERO ===================== */
.hero {
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
    position: relative;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    line-height: 1.12;
    margin-bottom: 1.4rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 500;
}

.hero .lede {
    margin-bottom: 0.6rem;
}

.hero .slogan {
    font-family: var(--display);
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
    margin: 1.6rem 0 2.2rem;
}

.hero .cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* signature sweep diagram */
.sweep-wrap {
    position: relative;
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.sweep-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sweep-rotor {
    transform-origin: 250px 250px;
    animation: rotateSweep 9s linear infinite;
}

@keyframes rotateSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sweep-post-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    fill: var(--text-dim);
}

.sweep-dot {
    fill: var(--gold);
}

.sweep-pulse {
    animation: pulseDot 3s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* stat strip */
.stat-strip {
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-raise);
}

.stat-strip .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2.2rem var(--edge);
}

.stat {
    text-align: left;
    padding-right: 2rem;
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
}

.stat:first-child {
    border-left: none;
    padding-left: 0;
}

.stat .num {
    font-family: var(--display);
    font-size: 2.1rem;
    color: var(--gold-soft);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat .label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ===================== SECTIONS GENERAL ===================== */
section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.section-head {
    max-width: 640px;
    margin-bottom: 3.2rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

/* ===================== ABOUT ===================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
}

.about-copy p {
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    max-width: 54ch;
}

.about-copy p strong {
    color: var(--cream);
    font-weight: 600;
}

.mvv {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mvv-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.6rem 1.8rem;
}

.mvv-card .tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
    display: block;
}

.mvv-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.values-list {
    margin-top: 3rem;
    border-top: 1px solid var(--line-soft);
}

.values-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.values-list li {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    gap: 0.9rem;
}

.values-list li:nth-child(odd) {
    border-right: 1px solid var(--line-soft);
    padding-right: 1.5rem;
}

.values-list li:nth-child(even) {
    padding-left: 1.5rem;
}

.values-list li::before {
    content: "§";
    color: var(--gold);
    flex: 0 0 auto;
}

/* ===================== SERVICES ===================== */
.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    margin-bottom: 4.5rem;
}

.core-card {
    background: var(--bg);
    padding: 2.2rem 2rem;
    transition: background .25s ease;
}

.core-card:hover {
    background: var(--bg-raise);
}

.core-card .num {
    font-family: var(--mono);
    color: var(--text-faint);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.4rem;
    display: block;
}

.core-card h3 {
    font-size: 1.18rem;
    margin-bottom: 0.7rem;
    color: var(--cream);
}

.core-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.sectors-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
    gap: 2.6rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.sectors-head h3 {
    font-size: 1.3rem;
    color: var(--cream);
}

.sectors-head .note {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-faint);

    .brand {
        flex: 0 0 auto;
    }

    letter-spacing: 0.08em;
}

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

    .nav-cta {
        order: 2;
    }

    gap: 0.7rem;
    margin-bottom: 4.5rem;
}

.sector-chip {
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1rem 1.1rem;
    font-size: 0.86rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sector-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex: 0 0 auto;
}

.ops-cycle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ops-step {
    border-left: 1px solid var(--line);
    padding-left: 1.3rem;
}

.ops-step .code {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
    display: block;
}

.ops-step h4 {
    font-family: var(--display);
    font-weight: 600;
    color: var(--cream);
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.ops-step p {
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ===================== CONTACT ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-info dl {
    display: grid;
    gap: 1.8rem;
}

.contact-info dt {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.contact-info dd {
    color: var(--cream);
    font-size: 1.02rem;
}

.contact-info dd span {
    display: block;
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-top: 0.2rem;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 2.4rem;
}

.form-card .eyebrow {
    margin-bottom: 1.6rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

input,
select,
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
    padding: 0.75em 0.9em;
    font-family: var(--sans);
    font-size: 0.92rem;
    outline: none;
    transition: border-color .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

.form-card button {
    margin-top: 1.6rem;
    width: 100%;
    justify-content: center;
    cursor: pointer;
}

/* ===================== FOOTER ===================== */
footer {
    padding: 3.5rem 0 2.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand .slogan {
    font-family: var(--display);
    font-style: italic;
    color: var(--gold);
    font-size: 1.05rem;
    margin-top: 0.6rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

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

.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--text-faint);
    letter-spacing: 0.06em;
}

.footer-bottom .values {
    color: var(--text-dim);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
    nav.links {
        display: none;
    }

    /* hide socials on small screens until the menu is opened */
    .nav-socials {
        display: none;
    }

    .nav-socials.open {
        display: flex;
        position: absolute;
        top: 74px;
        right: var(--edge);
        gap: 0.6rem;
        padding: 0.5rem 0.6rem;
        background: var(--bg-raise);
        border-bottom: 1px solid var(--line-soft);
        z-index: 49;
    }

    nav.links.open {
        display: flex;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-raise);
        border-bottom: 1px solid var(--line-soft);
        padding: 0.5rem var(--edge) 1.2rem;
    }

    nav.links.open a {
        padding: 0.7rem 0;
        text-align: center;
    }

    .nav-cta .btn-ghost {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* mobile socials: stretch full-width beneath the nav links */
    nav.links.open .nav-socials--mobile {
        display: flex;
        justify-content: space-around;
        width: 100%;
        margin-top: 0.6rem;
        padding: 0.8rem 0;
        border-top: 1px solid var(--line-soft);
        background: transparent;
    }

    nav.links.open .nav-socials--mobile .social {
        margin: 0;
        width: 56px;
        height: 56px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.02);
    }

    nav.links.open .nav-socials--mobile .social svg {
        width: 28px;
        height: 28px;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
        gap: 2.5rem;
    }

    .sweep-wrap {
        order: -1;
        max-width: 320px;
    }

    .stat-strip .wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem 0;
    }

    .stat:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values-list ul {
        grid-template-columns: 1fr;
    }

    .values-list li:nth-child(odd) {
        border-right: none;
        padding-right: 0;
    }

    .values-list li:nth-child(even) {
        padding-left: 0;
    }

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

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

    .ops-cycle {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

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

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 560px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }

    .ops-cycle {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {

    .sweep-rotor,
    .sweep-pulse {
        animation: none;
    }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}