:root {
    --ink: #0b1f33;
    --ink-soft: #16324f;

    --paper: #f7fafc;
    --paper-muted: #dde7f0;

    --line: rgba(11, 31, 51, 0.15);
    --line-dark: rgba(255,255,255,.18);

    --accent: #2477c9;
    --accent-light: #59b7e8;
    --accent-dark: #18578f;

    --navy: #081a2e;
    --navy-light: #16324f;

    --amber: #e8a33a;

    --shadow-soft: 0 16px 40px rgba(8,26,46,.08);
    --shadow-card: 0 12px 30px rgba(8,26,46,.12);

    --max-width: 1380px;
    --header-height: 92px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    color: white;
    border-bottom: 1px solid transparent;
    transition:
        background 250ms ease,
        color 250ms ease,
        height 250ms ease,
        border-color 250ms ease,
        box-shadow 250ms ease;
}

.site-header.scrolled {
    height: 74px;
    background: rgba(8, 26, 46, 0.9);
    color: white;
    backdrop-filter: blur(18px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(8, 26, 46, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.11em;
}

.brand-mark {
    position: relative;
    display: block;
    width: 31px;
    height: 31px;
    transform: rotate(45deg);
    border: 1px solid currentColor;
}

.brand-mark span {
    position: absolute;
    display: block;
    background: currentColor;
}

.brand-mark span:first-child {
    top: 50%;
    left: 6px;
    width: 17px;
    height: 1px;
}

.brand-mark span:last-child {
    top: 6px;
    left: 50%;
    width: 1px;
    height: 17px;
}

.brand-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.05;
}

.brand-name small {
    display: block;
    margin-top: 5px;
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.27em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.86rem;
}

.site-nav a {
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(8, 26, 46, 0.16);
    transition:
        background 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: center;
    overflow: hidden;
    padding: 150px 8vw 80px;
    background:
        radial-gradient(circle at 76% 38%, rgba(189, 111, 60, 0.27), transparent 28%),
        linear-gradient(135deg, #0c0f0d 0%, #192019 54%, #111512 100%);
    color: white;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(7,16,28,.82) 0%,
            rgba(7,16,28,.58) 35%,
            rgba(7,16,28,.35) 60%,
            rgba(7,16,28,.15) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8,18,34,.15) 0%,
            rgba(8,18,34,.55) 100%
        ),
        url("/static/images/okc-hero.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-horizon {
    position: absolute;
    right: -10%;
    bottom: -43%;
    width: 75vw;
    height: 75vw;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.hero-horizon::before,
.hero-horizon::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
}

.hero-horizon::before {
    inset: 9%;
}

.hero-horizon::after {
    inset: 20%;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-orbit-one {
    top: 17%;
    right: 12%;
    width: 310px;
    height: 310px;
}

.hero-orbit-two {
    top: 24%;
    right: 19%;
    width: 140px;
    height: 140px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(960px, 87%);
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 1000px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(4.2rem, 8vw, 8.8rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

.hero h1 span {
    display: block;
    color: rgba(255, 255, 255, 0.48);
}

.hero-copy {
    max-width: 610px;
    margin: 38px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-top: 42px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition:
        transform 200ms ease,
        background 200ms ease,
        color 200ms ease;
}

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

.button-primary {
    background: var(--accent);
    color: white;
}

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

.button-light {
    background: var(--paper);
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    font-size: 0.88rem;
}

.text-link span {
    transition: transform 200ms ease;
}

.text-link:hover span {
    transform: translate(4px, 4px);
}

.hero-status {
    position: absolute;
    right: 5vw;
    bottom: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(219, 155, 110, 0.12);
}

.scroll-marker {
    position: absolute;
    bottom: 34px;
    left: 4vw;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.63rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: rotate(-90deg);
    transform-origin: left center;
}

.scroll-marker i {
    display: block;
    width: 44px;
    height: 1px;
    background: currentColor;
}

.hero-statement {
    margin: 22px 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 300;
    letter-spacing: .02em;
}

.hero-status-divider {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    display: inline-block;
}

.hero-status {
    gap: 16px;
    font-weight: 600;
}

.hero h1 {
    font-weight: 700;
}

.hero h1 span {
    color: white;
}

.hero-copy {
    line-height: 1.8;
}

.section {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 130px 6vw;
}

.intro {
    display: grid;
    grid-template-columns: 0.7fr 2.3fr;
    gap: 7vw;
}

.section-label {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-label span {
    color: var(--accent);
}

.section-label p {
    margin: 0;
}

.large-copy {
    max-width: 980px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.3rem, 4.4vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.large-copy strong {
    color: var(--accent);
    font-weight: 500;
}

.supporting-copy {
    max-width: 620px;
    margin: 48px 0 0 auto;
    color: #60655f;
    font-size: 1.05rem;
}

.capabilities {
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 8vw;
    align-items: end;
    margin-bottom: 70px;
}

.section-heading h2,
.trust-heading h2,
.feature-copy h2 {
    max-width: 800px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.6rem, 5vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1;
}

.section-heading > p {
    margin: 0;
    color: #656a64;
}

.service-grid {
    border-top: 1px solid var(--line);
}

.service-card {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 35px;
    min-height: 250px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 34px 20px;
    transition:
        background 250ms ease,
        padding 250ms ease;
}

.service-card:hover {
    padding-right: 32px;
    padding-left: 32px;
    background: rgba(255, 255, 255, 0.42);
}

.service-number,
.trust-item > span {
    color: var(--accent);
    font-size: 0.72rem;
}

.service-kicker {
    margin: 0 0 3px;
    color: #7a7e78;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.service-card h3 {
    margin: 0 0 14px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.service-card p:last-child {
    max-width: 620px;
    margin: 0;
    color: #60655f;
}

.service-arrow {
    font-size: 1.5rem;
    transition: transform 200ms ease;
}

.service-card:hover .service-arrow {
    transform: translate(5px, -5px);
}

.feature-section {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 8vw;
    align-items: center;
    max-width: none;
    background: var(--ink);
    color: white;
}

.visual-frame {
    position: relative;
    display: grid;
    min-height: 630px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    background:
        linear-gradient(rgba(12, 18, 14, 0.38), rgba(12, 18, 14, 0.78)),
        radial-gradient(circle at center, #5a685c 0%, #202822 50%, #101311 100%);
}

.visual-frame::before {
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    content: "";
}

.visual-frame > p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.73rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.visual-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.visual-crosshair span:first-child,
.visual-crosshair span:last-child {
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    content: "";
}

.visual-crosshair span:first-child {
    top: 50%;
    left: -25px;
    width: 160px;
    height: 1px;
}

.visual-crosshair span:last-child {
    top: -25px;
    left: 50%;
    width: 1px;
    height: 160px;
}

.visual-data {
    position: absolute;
    z-index: 2;
    font-size: 0.61rem;
    letter-spacing: 0.13em;
}

.visual-data span,
.visual-data strong {
    display: block;
}

.visual-data span {
    color: rgba(255, 255, 255, 0.42);
}

.visual-data strong {
    margin-top: 4px;
    font-weight: 500;
}

.visual-data-top {
    top: 50px;
    left: 50px;
}

.visual-data-bottom {
    right: 50px;
    bottom: 50px;
    text-align: right;
}

.feature-copy p:not(.eyebrow) {
    max-width: 530px;
    margin: 34px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

.trust-heading {
    margin-bottom: 70px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.trust-item {
    min-height: 280px;
    border-right: 1px solid var(--line);
    padding: 35px 42px 20px 0;
}

.trust-item:not(:first-child) {
    padding-left: 42px;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item h3 {
    margin: 65px 0 15px;
    font-family: "Manrope", sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.trust-item p {
    max-width: 330px;
    margin: 0;
    color: #686c67;
}

.closing-cta {
    display: grid;
    min-height: 75vh;
    place-items: center;
    align-content: center;
    padding: 100px 6vw;
    background:
        radial-gradient(circle at 50% 140%, rgba(189, 111, 60, 0.5), transparent 35%),
        #161a17;
    color: white;
    text-align: center;
}

.closing-cta h2 {
    max-width: 1100px;
    margin: 0 0 45px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.closing-cta h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.38);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 65px 6vw;
    background: #0e100f;
    color: white;
}

.footer-brand {
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.site-footer p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    text-align: right;
}

.simple-page {
    min-height: 82vh;
    padding: 190px 8vw 100px;
}

.simple-page h1 {
    max-width: 1000px;
    margin: 0 0 28px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3.2rem, 7vw, 7rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.simple-page > p:not(.eyebrow) {
    max-width: 700px;
    color: #626762;
    font-size: 1.12rem;
}

.simple-page .button {
    margin-top: 28px;
}

.contact-form {
    display: grid;
    max-width: 750px;
    gap: 24px;
    margin-top: 55px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #555a55;
    font-size: 0.8rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    padding: 14px 2px;
    background: transparent;
    color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-bottom-color: var(--accent);
}

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

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

@media (max-width: 850px) {
    :root {
        --header-height: 76px;
    }

    .site-header {
        padding: 0 22px;
    }

    .menu-toggle {
        position: relative;
        z-index: 1001;
        display: block;
        width: 42px;
        height: 42px;
        border: 0;
        background: transparent;
        color: currentColor;
    }

    .menu-toggle span {
        position: absolute;
        left: 8px;
        width: 26px;
        height: 1px;
        background: currentColor;
        transition: transform 200ms ease;
    }

    .menu-toggle span:first-child {
        top: 17px;
    }

    .menu-toggle span:last-child {
        top: 24px;
    }

    .menu-open .menu-toggle span:first-child {
        top: 21px;
        transform: rotate(45deg);
    }

    .menu-open .menu-toggle span:last-child {
        top: 21px;
        transform: rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 28px;
        padding: 80px 8vw;
        background: var(--ink);
        color: white;
        font-family: "Manrope", sans-serif;
        font-size: 2rem;
        transform: translateX(100%);
        transition: transform 280ms ease;
    }

    .menu-open .site-nav {
        transform: translateX(0);
    }

    .nav-cta {
        margin-top: 15px;
        font-family: "DM Sans", sans-serif;
        font-size: 0.9rem;
    }

    .hero {
        padding-right: 25px;
        padding-left: 25px;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(3.4rem, 16vw, 5.7rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .hero-status {
        display: none;
    }

    .scroll-marker {
        display: none;
    }

    .section {
        padding: 90px 24px;
    }

    .intro,
    .section-heading,
    .feature-section {
        grid-template-columns: 1fr;
    }

    .section-label {
        margin-bottom: 30px;
    }

    .supporting-copy {
        margin-left: 0;
    }

    .section-heading {
        gap: 30px;
    }

    .service-card {
        grid-template-columns: 45px 1fr;
        gap: 20px;
        padding: 32px 0;
    }

    .service-arrow {
        display: none;
    }

    .visual-frame {
        min-height: 450px;
    }

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

    .trust-item,
    .trust-item:not(:first-child) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 30px 0 35px;
    }

    .trust-item h3 {
        margin-top: 28px;
    }

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

    .footer-meta {
        text-align: left;
    }

    .simple-page {
        padding: 150px 24px 80px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

/* =========================================================
   SERVICES PAGE
   ========================================================= */

.page-hero {
    position: relative;
    display: flex;
    min-height: 82vh;
    align-items: flex-end;
    overflow: hidden;
    padding: 190px 8vw 90px;
    background:
        radial-gradient(circle at 78% 30%, rgba(189, 111, 60, 0.25), transparent 27%),
        linear-gradient(140deg, #0c0f0d 0%, #1a211b 58%, #111512 100%);
    color: white;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image:
        linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
    background-size: 88px 88px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent);
}

.page-hero::after {
    position: absolute;
    right: -12vw;
    bottom: -33vw;
    width: 68vw;
    height: 68vw;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1050px;
}

.page-hero h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(4rem, 8vw, 8.5rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

.page-hero h1 span {
    display: block;
    color: rgba(255, 255, 255, 0.42);
}

.page-hero-copy {
    max-width: 650px;
    margin: 38px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.page-hero-index {
    position: absolute;
    right: 5vw;
    bottom: 90px;
    z-index: 2;
    text-align: right;
}

.page-hero-index span {
    color: var(--accent-light);
    font-size: 0.75rem;
}

.page-hero-index p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.67rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.service-detail {
    max-width: none;
}

.service-detail-inner {
    padding-right: 0;
    padding-left: 0;
}

.service-detail-heading {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 34px;
    align-items: start;
    width: min(var(--max-width), 100%);
    margin: 0 auto 65px;
}

.service-detail-number {
    padding-top: 10px;
    color: var(--accent);
    font-size: 0.73rem;
}

.service-detail-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.service-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 7vw;
    align-items: center;
    width: min(var(--max-width), 100%);
    margin: 0 auto;
}

.service-detail-content-reverse {
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
}

.service-detail-visual {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.visual-media {
    background:
        linear-gradient(rgba(16, 22, 17, 0.15), rgba(16, 22, 17, 0.65)),
        radial-gradient(circle at 70% 20%, #a48365, transparent 25%),
        linear-gradient(145deg, #667667 0%, #2b392f 52%, #151a17 100%);
}

.visual-media::before {
    position: absolute;
    right: -8%;
    bottom: -16%;
    width: 65%;
    height: 65%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    content: "";
}

.visual-inspection {
    background:
        linear-gradient(150deg, rgba(15, 18, 16, 0.1), rgba(15, 18, 16, 0.72)),
        repeating-linear-gradient(
            135deg,
            #536057 0,
            #536057 18px,
            #465248 18px,
            #465248 36px
        );
}

.visual-mapping {
    background:
        radial-gradient(circle at 75% 18%, rgba(205, 160, 110, 0.38), transparent 24%),
        linear-gradient(135deg, #657263 0%, #3d4c40 48%, #1c241e 100%);
}

.visual-search {
    background:
        radial-gradient(circle at center, rgba(164, 185, 164, 0.2), transparent 27%),
        linear-gradient(145deg, #536254, #1e2921 60%, #111512);
}

.service-visual-label {
    position: absolute;
    right: 35px;
    bottom: 35px;
    z-index: 3;
    color: white;
    text-align: right;
}

.service-visual-label span,
.service-visual-label strong {
    display: block;
}

.service-visual-label span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
}

.service-visual-label strong {
    margin-top: 5px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.inspection-target {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 155px;
    height: 155px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.inspection-target span {
    position: absolute;
    background: rgba(255, 255, 255, 0.48);
}

.inspection-target span:first-child {
    top: 50%;
    left: -45px;
    width: 245px;
    height: 1px;
}

.inspection-target span:last-child {
    top: -45px;
    left: 50%;
    width: 1px;
    height: 245px;
}

.map-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 55px 55px;
    transform: perspective(700px) rotateX(58deg) scale(1.45);
    transform-origin: center bottom;
}

.search-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 330px;
    height: 330px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.search-sweep::before,
.search-sweep::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    content: "";
}

.search-sweep::before {
    inset: 21%;
}

.search-sweep::after {
    inset: 42%;
}

.service-detail-copy {
    max-width: 590px;
}

.service-lead {
    margin: 0 0 30px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.7rem, 2.7vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.16;
}

.service-detail-copy > p:not(.service-lead, .service-note) {
    color: #60655f;
}

.service-list {
    margin: 35px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.service-list li {
    position: relative;
    border-bottom: 1px solid var(--line);
    padding: 15px 0 15px 25px;
    font-size: 0.9rem;
}

.service-list li::before {
    position: absolute;
    top: 22px;
    left: 1px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    content: "";
}

.service-note {
    border-left: 2px solid var(--accent);
    margin: 30px 0 0;
    padding-left: 18px;
    color: #747973;
    font-size: 0.78rem;
}

.service-detail-dark {
    background: var(--ink);
    color: white;
}

.service-detail-dark .service-detail-copy > p:not(.service-lead, .service-note) {
    color: rgba(255, 255, 255, 0.58);
}

.service-detail-dark .service-list {
    border-color: var(--line-dark);
}

.service-detail-dark .service-list li {
    border-color: var(--line-dark);
}

.service-detail-dark .service-note {
    color: rgba(255, 255, 255, 0.45);
}

.process-section {
    border-top: 1px solid var(--line);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.process-step {
    min-height: 300px;
    border-right: 1px solid var(--line);
    padding: 32px 35px 30px 0;
}

.process-step:not(:first-child) {
    padding-left: 35px;
}

.process-step:last-child {
    border-right: 0;
}

.process-step > span {
    color: var(--accent);
    font-size: 0.72rem;
}

.process-step h3 {
    margin: 75px 0 15px;
    font-family: "Manrope", sans-serif;
    font-size: 1.55rem;
}

.process-step p {
    margin: 0;
    color: #666b65;
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    .page-hero {
        min-height: 78vh;
        padding: 150px 24px 70px;
    }

    .page-hero h1 {
        font-size: clamp(3.3rem, 15vw, 5.4rem);
    }

    .page-hero-index {
        display: none;
    }

    .service-detail-heading {
        grid-template-columns: 40px 1fr;
        gap: 15px;
        margin-bottom: 42px;
    }

    .service-detail-content,
    .service-detail-content-reverse {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .service-detail-content-reverse .service-detail-copy {
        order: 2;
    }

    .service-detail-content-reverse .service-detail-visual {
        order: 1;
    }

    .service-detail-visual {
        min-height: 430px;
    }

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

    .process-step,
    .process-step:not(:first-child) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 28px 0 34px;
    }

    .process-step h3 {
        margin-top: 30px;
    }
}

/* =========================================================
   PORTFOLIO PAGE
   ========================================================= */

.portfolio-hero {
    background:
        radial-gradient(circle at 80% 30%, rgba(94, 122, 102, 0.4), transparent 30%),
        radial-gradient(circle at 55% 115%, rgba(189, 111, 60, 0.28), transparent 34%),
        linear-gradient(140deg, #0b0e0c 0%, #172019 58%, #101411 100%);
}

.portfolio-intro {
    display: grid;
    grid-template-columns: 0.7fr 2.3fr;
    gap: 7vw;
}

.project-card {
    width: 100%;
}

.project-visual {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    color: white;
}

.project-visual-lake {
    background:
        radial-gradient(circle at 75% 18%, rgba(224, 166, 111, 0.6), transparent 22%),
        linear-gradient(
            to bottom,
            #87978d 0%,
            #667b6d 35%,
            #344f42 52%,
            #14251d 74%,
            #0d1410 100%
        );
}

.project-visual-lake::before {
    position: absolute;
    right: -5%;
    bottom: 17%;
    left: -5%;
    height: 31%;
    background:
        radial-gradient(ellipse at 12% 100%, #17291f 0 38%, transparent 39%),
        radial-gradient(ellipse at 36% 100%, #243c2e 0 44%, transparent 45%),
        radial-gradient(ellipse at 61% 100%, #1a3226 0 39%, transparent 40%),
        radial-gradient(ellipse at 84% 100%, #263f30 0 46%, transparent 47%);
    content: "";
    filter: blur(2px);
}

.project-visual-lake::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 27%;
    background:
        linear-gradient(
            to bottom,
            rgba(55, 90, 75, 0.8),
            rgba(11, 27, 20, 0.98)
        );
    content: "";
}

.project-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(8, 12, 9, 0.1),
            transparent 38%,
            rgba(8, 12, 9, 0.65)
        );
}

.project-visual-top {
    position: absolute;
    z-index: 3;
    top: 35px;
    right: 38px;
    left: 38px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
}

.project-coordinate {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 38px;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.61rem;
    letter-spacing: 0.14em;
    transform: translateY(-50%);
}

.project-visual-title {
    position: absolute;
    z-index: 3;
    right: 40px;
    bottom: 38px;
    left: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.project-visual-title span {
    color: var(--accent-light);
    font-size: 0.72rem;
}

.project-visual-title strong {
    max-width: 520px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
    text-align: right;
}

.project-information {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8vw;
    padding-top: 55px;
}

.project-type {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-information h2,
.project-row-copy h2,
.upload-note-copy h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 3.8vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.07;
}

.project-summary > p,
.project-row-copy > p:not(.project-type),
.upload-note-copy > p:not(.eyebrow) {
    margin: 0;
    color: #626762;
}

.project-details {
    margin: 35px 0;
}

.project-details div {
    display: grid;
    grid-template-columns: 120px 1fr;
    border-top: 1px solid var(--line);
    padding: 13px 0;
}

.project-details div:last-child {
    border-bottom: 1px solid var(--line);
}

.project-details dt {
    color: #858a84;
    font-size: 0.72rem;
}

.project-details dd {
    margin: 0;
    font-size: 0.84rem;
}

.project-list {
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 5vw;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 90px 0;
}

.project-row-reverse {
    grid-template-columns: 60px minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.project-row-reverse .project-row-copy {
    order: 2;
}

.project-row-reverse .project-row-visual {
    order: 3;
}

.project-row-number {
    align-self: start;
    padding-top: 7px;
    color: var(--accent);
    font-size: 0.7rem;
}

.project-row-visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.project-visual-property {
    background:
        radial-gradient(circle at 75% 25%, rgba(215, 170, 124, 0.34), transparent 25%),
        linear-gradient(
            135deg,
            #81907e 0%,
            #506451 35%,
            #26392b 60%,
            #131b15 100%
        );
}

.project-visual-property::before {
    position: absolute;
    z-index: 1;
    right: 16%;
    bottom: 20%;
    width: 52%;
    height: 34%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background:
        linear-gradient(
            150deg,
            rgba(239, 231, 213, 0.68),
            rgba(94, 108, 94, 0.62)
        );
    content: "";
    transform: skewY(-4deg);
}

.project-visual-property::after {
    position: absolute;
    z-index: 1;
    right: 12%;
    bottom: 50%;
    width: 60%;
    height: 18%;
    background: rgba(39, 54, 41, 0.9);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    content: "";
}

.project-visual-construction {
    background:
        radial-gradient(circle at 70% 20%, rgba(214, 153, 93, 0.45), transparent 25%),
        linear-gradient(140deg, #8e8b78 0%, #62695d 42%, #303b33 70%, #171d19 100%);
}

.construction-lines {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(700px) rotateX(55deg) scale(1.5);
    transform-origin: center bottom;
}

.project-visual-search {
    background:
        radial-gradient(circle at center, rgba(182, 203, 180, 0.22), transparent 24%),
        linear-gradient(135deg, #4f6754 0%, #293b2e 45%, #121a14 100%);
}

.search-pattern {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
}

.search-pattern span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.search-pattern span:nth-child(2) {
    inset: 25%;
}

.search-pattern span:nth-child(3) {
    inset: 44%;
    background: rgba(219, 155, 110, 0.4);
    border-color: var(--accent-light);
}

.project-tag {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 28px;
    color: white;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-row-copy {
    max-width: 560px;
}

.project-row-copy h2 {
    margin-bottom: 28px;
}

.portfolio-philosophy {
    background: var(--ink);
    color: white;
}

.portfolio-philosophy-inner {
    padding-top: 125px;
    padding-bottom: 125px;
}

.philosophy-heading {
    margin-bottom: 75px;
}

.philosophy-heading h2 {
    max-width: 940px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.philosophy-heading h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.35);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-dark);
}

.philosophy-item {
    min-height: 300px;
    border-right: 1px solid var(--line-dark);
    padding: 35px 40px 20px 0;
}

.philosophy-item:not(:first-child) {
    padding-left: 40px;
}

.philosophy-item:last-child {
    border-right: 0;
}

.philosophy-item > span {
    color: var(--accent-light);
    font-size: 0.7rem;
}

.philosophy-item h3 {
    margin: 68px 0 15px;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
}

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

.portfolio-upload-note {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8vw;
    align-items: center;
}

.upload-note-visual {
    display: grid;
    min-height: 480px;
    place-content: center;
    background:
        linear-gradient(135deg, #39473d, #131a15);
    color: white;
    text-align: center;
}

.upload-note-visual span,
.upload-note-visual strong {
    display: block;
}

.upload-note-visual span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.67rem;
    letter-spacing: 0.22em;
}

.upload-note-visual strong {
    margin-top: 8px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.upload-note-copy h2 {
    margin-bottom: 30px;
}

@media (max-width: 850px) {
    .portfolio-intro {
        grid-template-columns: 1fr;
    }

    .project-visual {
        min-height: 60vh;
    }

    .project-visual-top {
        right: 22px;
        left: 22px;
    }

    .project-coordinate {
        display: none;
    }

    .project-visual-title {
        right: 22px;
        bottom: 25px;
        left: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .project-visual-title strong {
        text-align: left;
    }

    .project-information {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .project-row,
    .project-row-reverse {
        grid-template-columns: 34px 1fr;
        gap: 18px;
        padding: 65px 0;
    }

    .project-row-visual,
    .project-row-reverse .project-row-visual {
        grid-column: 2;
        order: initial;
        min-height: 390px;
    }

    .project-row-copy,
    .project-row-reverse .project-row-copy {
        grid-column: 2;
        order: initial;
    }

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

    .philosophy-item,
    .philosophy-item:not(:first-child) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
        padding: 30px 0 35px;
    }

    .philosophy-item h3 {
        margin-top: 28px;
    }

    .portfolio-upload-note {
        grid-template-columns: 1fr;
    }

    .upload-note-visual {
        min-height: 380px;
    }
}

/* =========================================================
   COMPANY / ABOUT PAGE
   ========================================================= */

.about-hero {
    background:
        radial-gradient(circle at 72% 28%, rgba(188, 121, 75, 0.3), transparent 26%),
        radial-gradient(circle at 35% 110%, rgba(91, 120, 99, 0.35), transparent 34%),
        linear-gradient(140deg, #0c0f0d 0%, #1a221c 58%, #101411 100%);
}

.about-intro {
    display: grid;
    grid-template-columns: 0.7fr 2.3fr;
    gap: 7vw;
}

.about-intro-copy {
    max-width: 1050px;
}

.about-intro-support {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5vw;
    max-width: 850px;
    margin-top: 50px;
    margin-left: auto;
}

.about-intro-support p {
    margin: 0;
    color: #626762;
}

.founder-section {
    overflow: hidden;
    background: var(--ink);
    color: white;
}

.founder-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
    gap: 8vw;
    align-items: center;
}

.founder-portrait-frame {
    position: relative;
    display: grid;
    min-height: 680px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--line-dark);
    background:
        radial-gradient(circle at 50% 35%, rgba(181, 135, 96, 0.25), transparent 24%),
        linear-gradient(145deg, #4b5c4e 0%, #29362d 42%, #111612 100%);
}

.founder-portrait-frame::before {
    position: absolute;
    width: 65%;
    height: 65%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}

.founder-portrait-frame::after {
    position: absolute;
    width: 42%;
    height: 58%;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.02)
        );
    border-radius: 48% 48% 10% 10%;
    content: "";
}

.founder-initials {
    position: relative;
    z-index: 2;
    font-family: "Manrope", sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 500;
    letter-spacing: -0.08em;
}

.founder-portrait-label {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 3;
    text-align: right;
}

.founder-portrait-label span,
.founder-portrait-label strong {
    display: block;
}

.founder-portrait-label span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.58rem;
    letter-spacing: 0.17em;
}

.founder-portrait-label strong {
    margin-top: 5px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.founder-copy h2 {
    margin: 0 0 42px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 5.8vw, 6.4rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.97;
}

.founder-copy h2 span {
    display: block;
    color: rgba(255, 255, 255, 0.33);
}

.founder-story {
    display: grid;
    gap: 20px;
    max-width: 690px;
}

.founder-story p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
}

.founder-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 55px;
    border-top: 1px solid var(--line-dark);
}

.founder-facts div {
    border-right: 1px solid var(--line-dark);
    padding: 23px 24px 5px 0;
}

.founder-facts div:not(:first-child) {
    padding-left: 24px;
}

.founder-facts div:last-child {
    border-right: 0;
}

.founder-facts span,
.founder-facts strong {
    display: block;
}

.founder-facts span {
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.founder-facts strong {
    margin-top: 8px;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 75px;
    border-top: 1px solid var(--line);
}

.value-card {
    position: relative;
    min-height: 390px;
    border-right: 1px solid var(--line);
    padding: 30px 34px 35px 0;
}

.value-card:not(:first-child) {
    padding-left: 34px;
}

.value-card:last-child {
    border-right: 0;
}

.value-number {
    color: var(--accent);
    font-size: 0.7rem;
}

.value-icon {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 62px 0 48px;
    border: 1px solid #9aa099;
    border-radius: 50%;
}

.value-icon::before,
.value-icon::after,
.value-icon span {
    position: absolute;
    content: "";
}

.value-icon::before {
    top: 50%;
    left: -18px;
    width: 112px;
    height: 1px;
    background: #9aa099;
}

.value-icon::after {
    top: -18px;
    left: 50%;
    width: 1px;
    height: 112px;
    background: #9aa099;
}

.value-icon span {
    inset: 27px;
    background: var(--accent);
    border-radius: 50%;
}

.value-icon-safety {
    border-radius: 8px 8px 50% 50%;
}

.value-icon-safety::before {
    transform: rotate(45deg);
}

.value-icon-safety::after {
    transform: rotate(45deg);
}

.value-icon-detail span {
    inset: 19px;
    border: 1px solid var(--accent);
    background: transparent;
}

.value-icon-trust {
    border-radius: 50% 50% 8px 8px;
    transform: rotate(45deg);
}

.value-icon-trust span {
    transform: rotate(-45deg);
}

.value-card h3 {
    margin: 0 0 16px;
    font-family: "Manrope", sans-serif;
    font-size: 1.45rem;
}

.value-card p {
    margin: 0;
    color: #676c66;
    font-size: 0.9rem;
}

.mission-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #26342a, #101511);
    color: white;
}

.mission-background {
    position: absolute;
    inset: 0;
}

.mission-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mission-ring-one {
    top: 50%;
    right: 8%;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
}

.mission-ring-two {
    top: 50%;
    right: 17%;
    width: 260px;
    height: 260px;
    transform: translateY(-50%);
}

.mission-line {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.mission-content {
    position: relative;
    z-index: 2;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-content blockquote {
    max-width: 1100px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 6.7vw, 7.4rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.standards-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 9vw;
}

.standards-heading h2 {
    max-width: 620px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.standards-list {
    border-top: 1px solid var(--line);
}

.standard-row {
    display: grid;
    grid-template-columns: 40px 190px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding: 27px 0;
}

.standard-row > span {
    color: var(--accent);
    font-size: 0.68rem;
}

.standard-row h3 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
}

.standard-row p {
    margin: 0;
    color: #676c66;
    font-size: 0.85rem;
}

.company-location {
    background: #ecece7;
}

.location-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 8vw;
    align-items: center;
}

.location-map {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background:
        radial-gradient(circle at 45% 48%, rgba(189, 111, 60, 0.16), transparent 22%),
        linear-gradient(140deg, #526254, #1c2920);
}

.location-map-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 54px 54px;
}

.location-marker {
    position: absolute;
    top: 47%;
    left: 47%;
    color: white;
    transform: translate(-50%, -50%);
    text-align: center;
}

.location-marker span {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 15px;
    border: 1px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.location-marker span::after {
    display: block;
    width: 8px;
    height: 8px;
    margin: 12px auto;
    background: var(--accent-light);
    border-radius: 50%;
    content: "";
}

.location-marker strong {
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.17em;
}

.location-coordinates {
    position: absolute;
    right: 25px;
    bottom: 25px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-align: right;
}

.location-copy h2 {
    margin: 0 0 30px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.8rem, 4.7vw, 5.3rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.location-copy > p:not(.eyebrow) {
    margin-bottom: 35px;
    color: #626762;
}

@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-intro-support {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-left: 0;
    }

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

    .founder-portrait-frame {
        min-height: 520px;
    }

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

    .value-card:nth-child(2) {
        border-right: 0;
    }

    .value-card:nth-child(3),
    .value-card:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .standards-section,
    .location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .founder-portrait-frame {
        min-height: 430px;
    }

    .founder-facts {
        grid-template-columns: 1fr;
    }

    .founder-facts div,
    .founder-facts div:not(:first-child) {
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
        padding: 18px 0;
    }

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

    .value-card,
    .value-card:not(:first-child) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 28px 0 38px;
    }

    .value-icon {
        margin: 38px 0;
    }

    .standard-row {
        grid-template-columns: 30px 1fr;
    }

    .standard-row p {
        grid-column: 2;
    }

    .location-map {
        min-height: 420px;
    }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-hero {
    background:
        radial-gradient(circle at 78% 27%, rgba(193, 126, 78, 0.3), transparent 27%),
        radial-gradient(circle at 40% 115%, rgba(86, 120, 97, 0.38), transparent 35%),
        linear-gradient(140deg, #0b0e0c 0%, #19221b 58%, #101411 100%);
}

.contact-main {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 8vw;
    align-items: start;
}

.contact-intro {
    position: sticky;
    top: 130px;
}

.contact-intro h2,
.contact-area-copy h2,
.contact-faq-heading h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.8rem, 4.8vw, 5.3rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.contact-intro > p:not(.eyebrow) {
    max-width: 560px;
    margin: 32px 0 0;
    color: #626762;
}

.contact-details {
    margin-top: 55px;
    border-top: 1px solid var(--line);
}

.contact-details div {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.contact-details span,
.contact-details strong {
    display: block;
}

.contact-details span {
    margin-bottom: 6px;
    color: #898e88;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-details strong {
    font-size: 0.86rem;
    font-weight: 500;
}

.contact-form-wrap {
    border: 1px solid var(--line);
    background: #f4f4f0;
    padding: clamp(28px, 5vw, 65px);
}

.contact-form {
    display: grid;
    gap: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-field {
    display: grid;
    gap: 10px;
}

.form-field label,
.project-selector legend {
    color: #4f544f;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bfc2bb;
    border-radius: 0;
    outline: none;
    background: transparent;
    padding: 13px 0;
    color: var(--ink);
    font: inherit;
    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

.form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9b9f99;
}

.project-selector {
    margin: 5px 0 0;
    border: 0;
    padding: 0;
}

.project-selector legend {
    margin-bottom: 17px;
}

.project-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.project-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.project-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.project-option > span {
    display: block;
    min-height: 105px;
    border: 1px solid #cbcec7;
    padding: 22px;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.project-option:hover > span {
    border-color: #8f958e;
    transform: translateY(-2px);
}

.project-option input:checked + span {
    border-color: var(--accent);
    background: rgba(189, 111, 60, 0.08);
}

.project-option strong,
.project-option small {
    display: block;
}

.project-option strong {
    margin-bottom: 7px;
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.project-option small {
    color: #777c76;
    font-size: 0.72rem;
    line-height: 1.45;
}

.form-bottom {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.form-bottom p {
    max-width: 390px;
    margin: 0;
    color: #858a84;
    font-size: 0.7rem;
}

.contact-process {
    background: var(--ink);
    color: white;
}

.contact-process-inner {
    padding-top: 120px;
    padding-bottom: 120px;
}

.contact-process .section-heading > p {
    color: rgba(255, 255, 255, 0.46);
}

.contact-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 75px;
    border-top: 1px solid var(--line-dark);
}

.contact-process-step {
    min-height: 300px;
    border-right: 1px solid var(--line-dark);
    padding: 30px 35px 25px 0;
}

.contact-process-step:not(:first-child) {
    padding-left: 35px;
}

.contact-process-step:last-child {
    border-right: 0;
}

.contact-process-step > span {
    color: var(--accent-light);
    font-size: 0.7rem;
}

.contact-process-step h3 {
    margin: 75px 0 16px;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
}

.contact-process-step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.88rem;
}

.contact-map-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8vw;
    align-items: center;
}

.contact-map {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background:
        radial-gradient(circle at 48% 48%, rgba(203, 135, 83, 0.22), transparent 18%),
        linear-gradient(140deg, #516354, #18241c);
}

.contact-map-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 55px 55px;
}

.contact-map-ring {
    position: absolute;
    top: 48%;
    left: 48%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.contact-map-ring-one {
    width: 360px;
    height: 360px;
}

.contact-map-ring-two {
    width: 180px;
    height: 180px;
}

.contact-map-marker {
    position: absolute;
    top: 48%;
    left: 48%;
    color: white;
    text-align: center;
    transform: translate(-50%, -50%);
}

.contact-map-marker span {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 14px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow:
        0 0 0 8px rgba(205, 139, 90, 0.16),
        0 0 0 18px rgba(205, 139, 90, 0.08);
}

.contact-map-marker strong {
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.contact-map-label {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: white;
    text-align: right;
}

.contact-map-label span,
.contact-map-label strong {
    display: block;
}

.contact-map-label span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
}

.contact-map-label strong {
    margin-top: 5px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.contact-area-copy > p:not(.eyebrow) {
    margin: 30px 0 38px;
    color: #626762;
}

.area-list {
    border-top: 1px solid var(--line);
}

.area-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.area-list span {
    color: var(--accent);
    font-size: 0.67rem;
}

.area-list p {
    margin: 0;
    font-size: 0.87rem;
}

.contact-faq {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 9vw;
    border-top: 1px solid var(--line);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
    transition: transform 180ms ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-item p {
    max-width: 670px;
    margin: 0;
    padding: 0 45px 25px 0;
    color: #666b65;
}

@media (max-width: 950px) {
    .contact-main,
    .contact-map-section,
    .contact-faq {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        position: static;
    }

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

    .contact-process-step:nth-child(2) {
        border-right: 0;
    }

    .contact-process-step:nth-child(3),
    .contact-process-step:nth-child(4) {
        border-top: 1px solid var(--line-dark);
    }
}

@media (max-width: 650px) {
    .form-row,
    .project-options {
        grid-template-columns: 1fr;
    }

    .form-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-process-grid {
        grid-template-columns: 1fr;
    }

    .contact-process-step,
    .contact-process-step:not(:first-child) {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
        padding: 28px 0 34px;
    }

    .contact-process-step h3 {
        margin-top: 30px;
    }

    .contact-map {
        min-height: 430px;
    }

    .contact-map-ring-one {
        width: 280px;
        height: 280px;
    }

    .contact-map-ring-two {
        width: 140px;
        height: 140px;
    }
}

/* =========================================================
   CONTACT FORM MESSAGES
   ========================================================= */

.form-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.form-message {
    border: 1px solid;
    padding: 16px 18px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.form-message-success {
    border-color: rgba(64, 115, 76, 0.42);
    background: rgba(64, 115, 76, 0.09);
    color: #315c3b;
}

.form-message-error {
    border-color: rgba(157, 66, 53, 0.4);
    background: rgba(157, 66, 53, 0.08);
    color: #7e362d;
}

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 110px;
}

.dashboard-card {
    display: block;
    min-height: 220px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );
    text-decoration: none;
    color: inherit;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.025)
        );
}

.dashboard-card h2 {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.dashboard-card p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.7;
}

@media (max-width: 760px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        width: min(100% - 30px, 680px);
        padding: 48px 0 80px;
    }

    .dashboard-card {
        min-height: 180px;
        padding: 28px;
    }
}

/* CRM inquiry status badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-new {
    background: #e5e7eb;
    color: #1f2937;
}

.status-contacted {
    background: #dbeafe;
    color: #1e40af;
}

.status-quote_sent {
    background: #fef3c7;
    color: #92400e;
}

.status-scheduled {
    background: #ede9fe;
    color: #5b21b6;
}

.status-in_progress {
    background: #ffedd5;
    color: #9a3412;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-archived {
    background: #374151;
    color: #ffffff;
}

/* CRM admin dashboard */
.admin-dashboard-section {
    padding: 64px 0 96px;
}

.admin-dashboard-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.dashboard-summary-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-summary-header h2 {
    margin: 8px 0 0;
}

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

.crm-stat-card {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.crm-stat-total {
    background: rgba(255, 255, 255, 0.08);
}

.crm-stat-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.crm-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.recent-inquiries-section {
    margin-top: 64px;
}

.recent-inquiry-list {
    display: grid;
    gap: 12px;
}

.recent-inquiry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.recent-inquiry-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.recent-inquiry-main,
.recent-inquiry-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.recent-inquiry-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.recent-inquiry-main span,
.recent-inquiry-meta > span:last-child {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.dashboard-tools-grid {
    margin-top: 64px;
}

@media (max-width: 900px) {
    .crm-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-summary-header,
    .recent-inquiry-card,
    .recent-inquiry-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-stat-grid {
        grid-template-columns: 1fr;
    }

    .recent-inquiry-meta {
        gap: 8px;
    }
}

/* CRM inquiry filters */
.inquiry-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.inquiry-filter-field {
    display: grid;
    gap: 8px;
}

.inquiry-filter-field label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
}

.inquiry-filter-field input,
.inquiry-filter-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    color: #ffffff;
    font: inherit;
}

.inquiry-filter-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.inquiry-filter-field input:focus,
.inquiry-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.45);
    outline: 2px solid rgba(255, 255, 255, 0.12);
    outline-offset: 2px;
}

.inquiry-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inquiry-result-count {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

@media (max-width: 820px) {
    .inquiry-filter-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .inquiry-filter-actions {
        flex-wrap: wrap;
    }
}

/* CRM customer forms */
.customer-form input,
.customer-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    color: #ffffff;
    font: inherit;
}

.customer-form input {
    min-height: 46px;
}

.customer-form textarea {
    resize: vertical;
    min-height: 150px;
}

.customer-form input:focus,
.customer-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.45);
    outline: 2px solid rgba(255, 255, 255, 0.12);
    outline-offset: 2px;
}

.customer-form .inquiry-status-controls {
    margin-top: 24px;
}

/* Mission Control dashboard */

.crm-stat-card[href] {
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.crm-stat-card[href]:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.crm-stat-card[href]:focus-visible,
.dashboard-card[href]:focus-visible,
.recent-inquiry-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.admin-dashboard-container > .dashboard-summary-header:not(:first-child) {
    margin-top: 3rem;
}

.recent-inquiries-section {
    margin-top: 3rem;
}

.dashboard-tools-grid {
    margin-top: 1.25rem;
}

.dashboard-card {
    min-height: 150px;
}

@media (max-width: 700px) {
    .dashboard-summary-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-summary-header .button {
        width: 100%;
        text-align: center;
    }
}


/* Light detail cards used on admin record pages */
.detail-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #172033;
}

.detail-card p {
    color: #4b5563;
}

.detail-card strong,
.detail-card h2 {
    color: #172033;
}

.detail-card:hover {
    transform: none;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.18);
}

/* Light Mission Control cards on the admin dashboard */
.admin-dashboard-container .crm-stat-card,
.admin-dashboard-container .recent-inquiry-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #172033;
}

.admin-dashboard-container .crm-stat-total {
    background: #f8fafc;
}

.admin-dashboard-container .crm-stat-label,
.admin-dashboard-container .recent-inquiry-main span,
.admin-dashboard-container .recent-inquiry-meta > span:last-child {
    color: #4b5563;
}

.admin-dashboard-container .crm-stat-card:hover,
.admin-dashboard-container .recent-inquiry-card:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.22);
}

/* ===========================
   MEDIA LIBRARY
   =========================== */

.media-library-section {
    display: grid;
    gap: 24px;
}

.media-library-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.media-library-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
}

.media-library-search input[type="search"] {
    min-width: 0;
    flex: 1;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    font: inherit;
}

.media-library-search input[type="search"]:focus {
    border-color: #172033;
    outline: 3px solid rgba(23, 32, 51, 0.12);
}

.media-search-summary {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 0.9rem;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.media-library-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #172033;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.media-library-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.media-library-card:focus-visible {
    outline: 3px solid #172033;
    outline-offset: 4px;
}

.media-library-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
}

.media-library-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-library-card:hover .media-library-preview img {
    transform: scale(1.035);
}

.media-library-file-type {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

.media-library-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.media-library-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.media-library-title {
    margin: 0;
    color: #172033;
    font-size: 1rem;
    line-height: 1.35;
}

.media-library-filename {
    overflow: hidden;
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 0.78rem;
}

.media-library-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.media-library-date {
    color: #64748b;
    font-size: 0.78rem;
}

@media (max-width: 620px) {
    .media-library-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-library-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact form bot honeypot */
.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 620px) {
    .media-library-search {
        align-items: stretch;
        flex-direction: column;
    }

    .media-library-search .btn {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================
   Carlisle Admin Design System — Developer Console
   ========================================================== */

.console-page {
    min-height: 100vh;
    padding: clamp(3rem, 6vw, 6rem) 1.25rem;
    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(70, 123, 158, 0.13),
            transparent 34rem
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(108, 132, 149, 0.08),
            transparent 28rem
        ),
        #0b1015;
}

.console-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.console-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
    padding: clamp(2rem, 4vw, 3.25rem);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(28, 43, 54, 0.96),
            rgba(13, 20, 27, 0.96)
        );
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.console-hero::after {
    content: "";
    position: absolute;
    width: 22rem;
    height: 22rem;
    top: -12rem;
    right: -7rem;
    border-radius: 50%;
    background: rgba(85, 145, 181, 0.11);
    filter: blur(5px);
    pointer-events: none;
}

.console-hero-copy {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.console-eyebrow,
.console-panel-kicker,
.console-stat-label {
    display: block;
    color: #8da7b9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.console-hero h1 {
    margin: 0.65rem 0 0.8rem;
    color: #f7f9fb;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.console-hero p {
    max-width: 650px;
    margin: 0;
    color: #aab7c0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
}

.console-health-pill,
.console-panel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    color: #dce8df;
    font-size: 0.84rem;
    font-weight: 700;
}

.console-health-pill {
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(111, 198, 139, 0.24);
    border-radius: 999px;
    background: rgba(81, 147, 102, 0.1);
}

.console-health-dot,
.console-panel-status span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #69d18a;
    box-shadow: 0 0 0 5px rgba(105, 209, 138, 0.1);
}

.console-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.console-stat-card,
.console-panel {
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(19, 27, 34, 0.88);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
}

.console-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 132px;
    padding: 1.35rem;
    border-radius: 20px;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.console-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(133, 174, 199, 0.22);
    background: rgba(23, 33, 41, 0.95);
}

.console-stat-icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    place-items: center;
    border: 1px solid rgba(143, 179, 201, 0.18);
    border-radius: 14px;
    color: #9fc1d5;
    background: rgba(106, 153, 181, 0.09);
    font-size: 1.15rem;
}

.console-stat-card strong {
    display: block;
    margin: 0.25rem 0;
    color: #f4f7f8;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.console-stat-card small {
    color: #7f909c;
    font-size: 0.78rem;
}

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

.console-panel {
    min-height: 270px;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: 22px;
}

.console-panel-wide {
    grid-column: 1 / -1;
}

.console-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.console-panel-header h2 {
    margin: 0.35rem 0 0;
    color: #f3f6f8;
    font-size: 1.4rem;
    letter-spacing: -0.025em;
}

.console-panel-status {
    color: #8fd4a5;
    font-size: 0.78rem;
}

.console-metric-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    padding-top: 1.25rem;
}

.console-metric {
    min-height: 105px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.console-metric span {
    display: block;
    margin-bottom: 1.4rem;
    color: #82929d;
    font-size: 0.78rem;
}

.console-metric strong {
    color: #dfe6ea;
    font-size: 0.92rem;
}

.console-placeholder {
    display: grid;
    min-height: 175px;
    padding: 1.5rem;
    place-items: center;
    align-content: center;
    text-align: center;
}

.console-placeholder-icon {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.9rem;
    place-items: center;
    border: 1px solid rgba(140, 176, 198, 0.16);
    border-radius: 16px;
    color: #91b3c7;
    background: rgba(104, 152, 180, 0.07);
    font-size: 1.25rem;
}

.console-placeholder p {
    max-width: 280px;
    margin: 0;
    color: #82929d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.console-diagnostics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.5rem;
}

.console-diagnostics h3 {
    margin: 0 0 0.5rem;
    color: #eaf0f3;
    font-size: 1.1rem;
}

.console-diagnostics p {
    max-width: 660px;
    margin: 0;
    color: #8797a2;
    line-height: 1.65;
}

.console-primary-button {
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(151, 191, 214, 0.25);
    border-radius: 12px;
    color: #eaf4f9;
    background:
        linear-gradient(
            135deg,
            rgba(69, 120, 151, 0.9),
            rgba(46, 87, 112, 0.9)
        );
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .console-overview-grid,
    .console-metric-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .console-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .console-page {
        padding: 1.25rem 0.85rem 3rem;
    }

    .console-hero {
        padding: 1.55rem;
        border-radius: 22px;
    }

    .console-overview-grid,
    .console-main-grid,
    .console-metric-list {
        grid-template-columns: 1fr;
    }

    .console-panel-wide {
        grid-column: auto;
    }

    .console-diagnostics {
        align-items: stretch;
        flex-direction: column;
    }

    .console-primary-button {
        width: 100%;
    }
}


/* ==========================================================
   Carlisle Admin Design System — Shared Application Shell
   ========================================================== */

body.admin-interface {
    min-width: 320px;
    color: #e8edf0;
    background: #0b1015;
}

.admin-interface main {
    min-height: calc(100vh - 138px);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(10, 15, 20, 0.92);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.admin-topbar-inner {
    display: flex;
    width: min(1440px, 100%);
    min-height: 58px;
    margin: 0 auto;
    align-items: center;
    gap: 1.5rem;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    color: #f2f6f8;
    text-decoration: none;
}

.admin-brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    position: relative;
    border: 1px solid rgba(148, 188, 211, 0.2);
    border-radius: 12px;
    background: rgba(94, 142, 171, 0.1);
}

.admin-brand-mark span {
    position: absolute;
    width: 1.15rem;
    height: 2px;
    background: #9fc2d6;
    transform: rotate(-28deg);
}

.admin-brand-mark span:last-child {
    transform: rotate(28deg);
}

.admin-brand-copy {
    display: grid;
    gap: 0.08rem;
}

.admin-brand-copy strong {
    font-family: "Manrope", sans-serif;
    font-size: 0.87rem;
    letter-spacing: 0.015em;
}

.admin-brand-copy small {
    color: #7f929e;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-primary-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-primary-nav::-webkit-scrollbar {
    display: none;
}

.admin-primary-nav a {
    padding: 0.7rem 0.82rem;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #8999a4;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.admin-primary-nav a:hover {
    color: #e9f0f3;
    background: rgba(255, 255, 255, 0.04);
}

.admin-primary-nav a[aria-current="page"] {
    border-color: rgba(137, 180, 205, 0.18);
    color: #eaf3f7;
    background: rgba(97, 148, 179, 0.12);
}

.admin-view-site {
    margin-left: auto;
    padding: 0.7rem 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #adbac2;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.admin-view-site:hover {
    border-color: rgba(151, 192, 216, 0.2);
    color: #f0f5f7;
    background: rgba(255, 255, 255, 0.04);
}

.admin-workspace {
    min-height: calc(100vh - 138px);
}

.admin-footer {
    display: flex;
    width: min(1440px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.4rem 0 1.8rem;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    color: #64737d;
    font-size: 0.72rem;
}

@media (max-width: 1100px) {
    .admin-topbar-inner {
        flex-wrap: wrap;
        gap: 0.7rem 1rem;
    }

    .admin-primary-nav {
        width: 100%;
        order: 3;
        padding-bottom: 0.1rem;
    }

    .admin-view-site {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .admin-topbar {
        padding: 0.7rem 0.85rem;
    }

    .admin-brand-copy strong {
        font-size: 0.78rem;
    }

    .admin-view-site {
        padding: 0.62rem 0.7rem;
        font-size: 0.7rem;
    }

    .admin-footer {
        width: calc(100% - 1.7rem);
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   Carlisle Mission Control — Application Shell
   ========================================================== */

:root {
    --mc-sidebar-width: 260px;
    --mc-toolbar-height: 78px;

    --mc-bg: #080d12;
    --mc-surface: #0e151c;
    --mc-surface-raised: #131c24;
    --mc-border: rgba(255, 255, 255, 0.075);

    --mc-text: #edf2f5;
    --mc-text-muted: #82939f;
    --mc-accent: #8fb8cf;
    --mc-success: #68d189;
}

body.admin-interface {
    min-width: 320px;
    margin: 0;
    color: var(--mc-text);
    background: var(--mc-bg);
}

body.admin-interface > main {
    min-height: 100vh;
}

.mc-app {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(66, 112, 141, 0.07),
            transparent 36rem
        ),
        var(--mc-bg);
}

.mc-sidebar {
    display: flex;
    width: var(--mc-sidebar-width);
    height: 100vh;
    padding: 1.15rem;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 300;
    flex-direction: column;
    border-right: 1px solid var(--mc-border);
    background:
        linear-gradient(
            180deg,
            rgba(16, 24, 31, 0.99),
            rgba(9, 14, 19, 0.99)
        );
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
}

.mc-sidebar-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--mc-text);
    text-decoration: none;
}

.mc-brand-mark {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    position: relative;
    place-items: center;
    flex: 0 0 2.65rem;
    border: 1px solid rgba(145, 188, 213, 0.2);
    border-radius: 13px;
    background: rgba(92, 144, 174, 0.09);
}

.mc-brand-mark span {
    width: 1.2rem;
    height: 2px;
    position: absolute;
    background: #9bc2d8;
    transform: rotate(-28deg);
}

.mc-brand-mark span:last-child {
    transform: rotate(28deg);
}

.mc-brand-copy {
    display: grid;
    gap: 0.12rem;
}

.mc-brand-copy strong {
    font-size: 0.86rem;
    letter-spacing: -0.01em;
}

.mc-brand-copy small {
    color: var(--mc-text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mc-sidebar-close {
    display: none;
    border: 0;
    color: #9aabb5;
    background: transparent;
    font: inherit;
    font-size: 1.7rem;
    cursor: pointer;
}

.mc-navigation {
    display: grid;
    gap: 0.25rem;
    margin-top: 2rem;
}

.mc-nav-label {
    display: block;
    margin: 0 0 0.45rem 0.75rem;
    color: #637681;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mc-nav-label-spaced {
    margin-top: 1.4rem;
}

.mc-navigation a {
    display: flex;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    position: relative;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #8a9ba6;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.mc-navigation a:hover {
    color: #e9f0f3;
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(2px);
}

.mc-navigation a[aria-current="page"] {
    border-color: rgba(130, 179, 208, 0.16);
    color: #eef5f8;
    background:
        linear-gradient(
            90deg,
            rgba(85, 139, 171, 0.15),
            rgba(85, 139, 171, 0.055)
        );
}

.mc-navigation a[aria-current="page"]::before {
    content: "";
    width: 3px;
    position: absolute;
    inset: 8px auto 8px -1px;
    border-radius: 999px;
    background: #8dbbd4;
    box-shadow: 0 0 14px rgba(141, 187, 212, 0.45);
}

.mc-nav-icon {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    color: #87a9bc;
    font-size: 1rem;
}

.mc-sidebar-actions {
    display: grid;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.mc-sidebar-actions a {
    display: flex;
    padding: 0.55rem 0.65rem;
    align-items: center;
    gap: 0.65rem;
    border-radius: 9px;
    color: #84959f;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

.mc-sidebar-actions a:hover {
    color: #e6eef2;
    background: rgba(255, 255, 255, 0.035);
}

.mc-system-card {
    margin-top: 1.3rem;
    padding: 0.9rem;
    border: 1px solid rgba(104, 209, 137, 0.13);
    border-radius: 14px;
    background: rgba(73, 134, 92, 0.055);
}

.mc-system-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.mc-system-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 0.55rem;
    border-radius: 50%;
    background: var(--mc-success);
    box-shadow:
        0 0 0 5px rgba(104, 209, 137, 0.08),
        0 0 14px rgba(104, 209, 137, 0.22);
}

.mc-system-status div {
    display: grid;
    gap: 0.12rem;
}

.mc-system-status strong {
    color: #dce9e0;
    font-size: 0.75rem;
}

.mc-system-status small {
    color: #70827a;
    font-size: 0.64rem;
}

.mc-system-card > a {
    display: inline-block;
    margin-top: 0.75rem;
    color: #86a995;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-main {
    min-height: 100vh;
    margin-left: var(--mc-sidebar-width);
}

.mc-toolbar {
    display: flex;
    min-height: var(--mc-toolbar-height);
    padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
    position: sticky;
    top: 0;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--mc-border);
    background: rgba(8, 13, 18, 0.86);
    backdrop-filter: blur(20px);
}

.mc-toolbar-left,
.mc-toolbar-actions {
    display: flex;
    align-items: center;
}

.mc-toolbar-left {
    gap: 1rem;
}

.mc-toolbar-actions {
    gap: 0.65rem;
}

.mc-toolbar-title {
    display: grid;
    gap: 0.1rem;
}

.mc-toolbar-title span {
    color: #667984;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mc-toolbar-title strong {
    color: #e7edf0;
    font-size: 0.89rem;
}

.mc-menu-button {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0.7rem;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.mc-menu-button span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 3px 0;
    background: #9aabb5;
}

.mc-toolbar-search {
    display: flex;
    min-width: 230px;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--mc-border);
    border-radius: 11px;
    color: #748792;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.75rem;
    opacity: 1;
}

.mc-toolbar-search kbd {
    margin-left: auto;
    padding: 0.18rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    color: #60717c;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.61rem;
}

.mc-icon-button,
.mc-view-site {
    display: grid;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--mc-border);
    border-radius: 11px;
    color: #8b9ba5;
    background: rgba(255, 255, 255, 0.025);
}

.mc-icon-button {
    width: 42px;
    font: inherit;
    opacity: 1;
}

.mc-view-site {
    padding: 0.65rem 0.85rem;
    color: #a4b3bc;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-view-site:hover {
    border-color: rgba(144, 185, 209, 0.18);
    color: #edf4f7;
    background: rgba(255, 255, 255, 0.045);
}

.mc-content {
    min-height: calc(100vh - var(--mc-toolbar-height) - 58px);
}

.mc-footer {
    display: flex;
    margin: 0 clamp(1rem, 3vw, 2.5rem);
    padding: 1.25rem 0 1.5rem;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #576873;
    font-size: 0.67rem;
}

.mc-sidebar-overlay {
    display: none;
}

@media (max-width: 1000px) {
    .mc-sidebar {
        transform: translateX(-102%);
        transition: transform 220ms ease;
    }

    .mc-sidebar.is-open {
        transform: translateX(0);
    }

    .mc-sidebar-close,
    .mc-menu-button {
        display: block;
    }

    .mc-main {
        margin-left: 0;
    }

    .mc-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 250;
        visibility: hidden;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        backdrop-filter: blur(4px);
        transition:
            opacity 200ms ease,
            visibility 200ms ease;
    }

    .mc-sidebar-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }

    body.mc-navigation-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    .mc-toolbar {
        min-height: 68px;
        padding: 0.7rem 0.85rem;
    }

    .mc-toolbar-search {
        display: none;
    }

    .mc-toolbar-title span {
        display: none;
    }

    .mc-view-site {
        padding-inline: 0.65rem;
    }

    .mc-footer {
        margin-inline: 0.85rem;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   Carlisle Mission Control — Application Shell
   ========================================================== */

:root {
    --mc-sidebar-width: 260px;
    --mc-toolbar-height: 78px;

    --mc-bg: #080d12;
    --mc-surface: #0e151c;
    --mc-surface-raised: #131c24;
    --mc-border: rgba(255, 255, 255, 0.075);

    --mc-text: #edf2f5;
    --mc-text-muted: #82939f;
    --mc-accent: #8fb8cf;
    --mc-success: #68d189;
}

body.admin-interface {
    min-width: 320px;
    margin: 0;
    color: var(--mc-text);
    background: var(--mc-bg);
}

body.admin-interface > main {
    min-height: 100vh;
}

.mc-app {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(66, 112, 141, 0.07),
            transparent 36rem
        ),
        var(--mc-bg);
}

.mc-sidebar {
    display: flex;
    width: var(--mc-sidebar-width);
    height: 100vh;
    padding: 1.15rem;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 300;
    flex-direction: column;
    border-right: 1px solid var(--mc-border);
    background:
        linear-gradient(
            180deg,
            rgba(16, 24, 31, 0.99),
            rgba(9, 14, 19, 0.99)
        );
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
}

.mc-sidebar-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--mc-text);
    text-decoration: none;
}

.mc-brand-mark {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    position: relative;
    place-items: center;
    flex: 0 0 2.65rem;
    border: 1px solid rgba(145, 188, 213, 0.2);
    border-radius: 13px;
    background: rgba(92, 144, 174, 0.09);
}

.mc-brand-mark span {
    width: 1.2rem;
    height: 2px;
    position: absolute;
    background: #9bc2d8;
    transform: rotate(-28deg);
}

.mc-brand-mark span:last-child {
    transform: rotate(28deg);
}

.mc-brand-copy {
    display: grid;
    gap: 0.12rem;
}

.mc-brand-copy strong {
    font-size: 0.86rem;
    letter-spacing: -0.01em;
}

.mc-brand-copy small {
    color: var(--mc-text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mc-sidebar-close {
    display: none;
    border: 0;
    color: #9aabb5;
    background: transparent;
    font: inherit;
    font-size: 1.7rem;
    cursor: pointer;
}

.mc-navigation {
    display: grid;
    gap: 0.25rem;
    margin-top: 2rem;
}

.mc-nav-label {
    display: block;
    margin: 0 0 0.45rem 0.75rem;
    color: #637681;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mc-nav-label-spaced {
    margin-top: 1.4rem;
}

.mc-navigation a {
    display: flex;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    position: relative;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #8a9ba6;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.mc-navigation a:hover {
    color: #e9f0f3;
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(2px);
}

.mc-navigation a[aria-current="page"] {
    border-color: rgba(130, 179, 208, 0.16);
    color: #eef5f8;
    background:
        linear-gradient(
            90deg,
            rgba(85, 139, 171, 0.15),
            rgba(85, 139, 171, 0.055)
        );
}

.mc-navigation a[aria-current="page"]::before {
    content: "";
    width: 3px;
    position: absolute;
    inset: 8px auto 8px -1px;
    border-radius: 999px;
    background: #8dbbd4;
    box-shadow: 0 0 14px rgba(141, 187, 212, 0.45);
}

.mc-nav-icon {
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
    color: #87a9bc;
    font-size: 1rem;
}

.mc-sidebar-actions {
    display: grid;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.mc-sidebar-actions a {
    display: flex;
    padding: 0.55rem 0.65rem;
    align-items: center;
    gap: 0.65rem;
    border-radius: 9px;
    color: #84959f;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}

.mc-sidebar-actions a:hover {
    color: #e6eef2;
    background: rgba(255, 255, 255, 0.035);
}

.mc-system-card {
    margin-top: 1.3rem;
    padding: 0.9rem;
    border: 1px solid rgba(104, 209, 137, 0.13);
    border-radius: 14px;
    background: rgba(73, 134, 92, 0.055);
}

.mc-system-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.mc-system-dot {
    width: 0.55rem;
    height: 0.55rem;
    flex: 0 0 0.55rem;
    border-radius: 50%;
    background: var(--mc-success);
    box-shadow:
        0 0 0 5px rgba(104, 209, 137, 0.08),
        0 0 14px rgba(104, 209, 137, 0.22);
}

.mc-system-status div {
    display: grid;
    gap: 0.12rem;
}

.mc-system-status strong {
    color: #dce9e0;
    font-size: 0.75rem;
}

.mc-system-status small {
    color: #70827a;
    font-size: 0.64rem;
}

.mc-system-card > a {
    display: inline-block;
    margin-top: 0.75rem;
    color: #86a995;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-main {
    min-height: 100vh;
    margin-left: var(--mc-sidebar-width);
}

.mc-toolbar {
    display: flex;
    min-height: var(--mc-toolbar-height);
    padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
    position: sticky;
    top: 0;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--mc-border);
    background: rgba(8, 13, 18, 0.86);
    backdrop-filter: blur(20px);
}

.mc-toolbar-left,
.mc-toolbar-actions {
    display: flex;
    align-items: center;
}

.mc-toolbar-left {
    gap: 1rem;
}

.mc-toolbar-actions {
    gap: 0.65rem;
}

.mc-toolbar-title {
    display: grid;
    gap: 0.1rem;
}

.mc-toolbar-title span {
    color: #667984;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mc-toolbar-title strong {
    color: #e7edf0;
    font-size: 0.89rem;
}

.mc-menu-button {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    padding: 0.7rem;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.mc-menu-button span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 3px 0;
    background: #9aabb5;
}

.mc-toolbar-search {
    display: flex;
    min-width: 230px;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--mc-border);
    border-radius: 11px;
    color: #748792;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.75rem;
    opacity: 1;
}

.mc-toolbar-search kbd {
    margin-left: auto;
    padding: 0.18rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    color: #60717c;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.61rem;
}

.mc-icon-button,
.mc-view-site {
    display: grid;
    min-height: 42px;
    place-items: center;
    border: 1px solid var(--mc-border);
    border-radius: 11px;
    color: #8b9ba5;
    background: rgba(255, 255, 255, 0.025);
}

.mc-icon-button {
    width: 42px;
    font: inherit;
    opacity: 1;
}

.mc-view-site {
    padding: 0.65rem 0.85rem;
    color: #a4b3bc;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-view-site:hover {
    border-color: rgba(144, 185, 209, 0.18);
    color: #edf4f7;
    background: rgba(255, 255, 255, 0.045);
}

.mc-content {
    min-height: calc(100vh - var(--mc-toolbar-height) - 58px);
}

.mc-footer {
    display: flex;
    margin: 0 clamp(1rem, 3vw, 2.5rem);
    padding: 1.25rem 0 1.5rem;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #576873;
    font-size: 0.67rem;
}

.mc-sidebar-overlay {
    display: none;
}

@media (max-width: 1000px) {
    .mc-sidebar {
        transform: translateX(-102%);
        transition: transform 220ms ease;
    }

    .mc-sidebar.is-open {
        transform: translateX(0);
    }

    .mc-sidebar-close,
    .mc-menu-button {
        display: block;
    }

    .mc-main {
        margin-left: 0;
    }

    .mc-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 250;
        visibility: hidden;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        backdrop-filter: blur(4px);
        transition:
            opacity 200ms ease,
            visibility 200ms ease;
    }

    .mc-sidebar-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }

    body.mc-navigation-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    .mc-toolbar {
        min-height: 68px;
        padding: 0.7rem 0.85rem;
    }

    .mc-toolbar-search {
        display: none;
    }

    .mc-toolbar-title span {
        display: none;
    }

    .mc-view-site {
        padding-inline: 0.65rem;
    }

    .mc-footer {
        margin-inline: 0.85rem;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   Carlisle Mission Control — Dashboard
   ========================================================== */

.mc-dashboard-page {
    min-height: 100%;
    padding: clamp(1.25rem, 3vw, 2.75rem);
}

.mc-dashboard-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.mc-dashboard-hero {
    display: flex;
    min-height: 240px;
    padding: clamp(1.8rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(104, 163, 196, 0.14),
            transparent 22rem
        ),
        linear-gradient(
            135deg,
            rgba(29, 44, 55, 0.97),
            rgba(12, 19, 25, 0.98)
        );
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mc-dashboard-hero::after {
    content: "";
    width: 22rem;
    height: 22rem;
    position: absolute;
    top: -13rem;
    right: -7rem;
    border: 1px solid rgba(151, 192, 215, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 3rem rgba(151, 192, 215, 0.025),
        0 0 0 7rem rgba(151, 192, 215, 0.018);
    pointer-events: none;
}

.mc-dashboard-hero-copy {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.mc-dashboard-eyebrow,
.mc-dashboard-panel-kicker,
.mc-dashboard-stat-label {
    display: block;
    color: #89a5b6;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mc-dashboard-hero h1 {
    margin: 0.65rem 0 0.8rem;
    color: #f7f9fa;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.mc-dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: #a4b3bc;
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    line-height: 1.7;
}

.mc-dashboard-health {
    display: flex;
    padding: 0.85rem 1rem;
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(103, 209, 137, 0.18);
    border-radius: 14px;
    background: rgba(71, 137, 91, 0.08);
}

.mc-dashboard-health-dot {
    width: 0.6rem;
    height: 0.6rem;
    flex: 0 0 0.6rem;
    border-radius: 50%;
    background: #68d189;
    box-shadow:
        0 0 0 5px rgba(104, 209, 137, 0.08),
        0 0 16px rgba(104, 209, 137, 0.27);
}

.mc-dashboard-health div {
    display: grid;
    gap: 0.12rem;
}

.mc-dashboard-health strong {
    color: #dce9e0;
    font-size: 0.78rem;
}

.mc-dashboard-health small {
    color: #72857a;
    font-size: 0.66rem;
}

.mc-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.mc-dashboard-stat,
.mc-dashboard-panel {
    border: 1px solid rgba(255, 255, 255, 0.075);
    background: rgba(18, 27, 34, 0.9);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(15px);
}

.mc-dashboard-stat {
    display: block;
    min-height: 205px;
    padding: 1.35rem;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.mc-dashboard-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(137, 180, 205, 0.2);
    background: rgba(22, 33, 41, 0.97);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mc-dashboard-stat-attention {
    border-color: rgba(218, 174, 94, 0.16);
    background:
        linear-gradient(
            145deg,
            rgba(83, 62, 29, 0.13),
            rgba(18, 27, 34, 0.93)
        );
}

.mc-dashboard-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.mc-dashboard-stat-icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(140, 183, 207, 0.15);
    border-radius: 12px;
    color: #90b4c8;
    background: rgba(98, 150, 180, 0.075);
}

.mc-dashboard-stat-link {
    color: #637984;
    font-size: 0.65rem;
    font-weight: 700;
}

.mc-dashboard-stat-value {
    display: block;
    margin: 0.55rem 0 0.2rem;
    color: #f3f7f8;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.mc-dashboard-stat-word {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.mc-dashboard-stat small {
    color: #73858f;
    font-size: 0.72rem;
}

.mc-dashboard-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mc-dashboard-panel {
    padding: clamp(1.25rem, 2.5vw, 1.8rem);
    border-radius: 22px;
}

.mc-dashboard-panel + .mc-dashboard-panel {
    margin-top: 1rem;
}

.mc-dashboard-primary-grid .mc-dashboard-panel + .mc-dashboard-panel {
    margin-top: 0;
}

.mc-dashboard-panel-header {
    display: flex;
    min-height: 52px;
    padding-bottom: 1.2rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-dashboard-panel-header h2 {
    margin: 0.35rem 0 0;
    color: #f1f5f7;
    font-size: 1.35rem;
    letter-spacing: -0.028em;
}

.mc-dashboard-panel-header > a,
.mc-dashboard-panel-meta {
    color: #7e9aac;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-dashboard-panel-header > a:hover {
    color: #b7d0df;
}

.mc-dashboard-activity-list {
    display: grid;
}

.mc-dashboard-activity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem 0;
    align-items: center;
    gap: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.052);
    color: inherit;
    text-decoration: none;
    transition:
        padding 170ms ease,
        background 170ms ease;
}

.mc-dashboard-activity:last-child {
    border-bottom: 0;
}

.mc-dashboard-activity:hover {
    margin-inline: -0.65rem;
    padding-inline: 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.mc-dashboard-activity-marker,
.mc-dashboard-action-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    flex: 0 0 2.35rem;
    border: 1px solid rgba(139, 181, 205, 0.13);
    border-radius: 11px;
    color: #8db0c4;
    background: rgba(95, 145, 174, 0.065);
}

.mc-dashboard-activity-copy {
    min-width: 0;
}

.mc-dashboard-activity-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mc-dashboard-activity-title strong {
    min-width: 0;
    overflow: hidden;
    color: #e9eef1;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-dashboard-activity-copy p {
    margin: 0.3rem 0;
    overflow: hidden;
    color: #82949f;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-dashboard-activity-copy small {
    color: #586b76;
    font-size: 0.65rem;
}

.mc-dashboard-row-arrow {
    color: #566d79;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.mc-dashboard-activity:hover .mc-dashboard-row-arrow,
.mc-dashboard-customer:hover .mc-dashboard-row-arrow {
    color: #a2c2d3;
    transform: translateX(3px);
}

.mc-dashboard-action-list {
    display: grid;
    gap: 0.65rem;
    padding-top: 1rem;
}

.mc-dashboard-action-list > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 67px;
    padding: 0.75rem;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.mc-dashboard-action-list > a:hover {
    transform: translateX(3px);
    border-color: rgba(138, 180, 205, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.mc-dashboard-action-list div {
    display: grid;
    gap: 0.18rem;
}

.mc-dashboard-action-list strong {
    color: #e2e9ec;
    font-size: 0.79rem;
}

.mc-dashboard-action-list small {
    color: #687b86;
    font-size: 0.65rem;
}

.mc-dashboard-action-list > a > span:last-child {
    color: #58707d;
}

.mc-dashboard-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
}

.mc-dashboard-pipeline-card {
    display: flex;
    min-height: 112px;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 15px;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.mc-dashboard-pipeline-card:hover {
    transform: translateY(-2px);
    border-color: rgba(135, 178, 202, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.mc-dashboard-pipeline-card > div {
    display: grid;
    align-items: start;
    gap: 1rem;
}

.mc-dashboard-pipeline-card strong {
    color: #eef3f5;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mc-dashboard-pipeline-arrow {
    color: #546d7a;
}

.mc-dashboard-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding-top: 1rem;
}

.mc-dashboard-customer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 88px;
    padding: 0.85rem;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 15px;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.mc-dashboard-customer:hover {
    transform: translateY(-2px);
    border-color: rgba(137, 180, 205, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.mc-dashboard-customer-avatar {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid rgba(143, 183, 207, 0.15);
    border-radius: 50%;
    color: #a4c1d1;
    background: rgba(94, 144, 174, 0.075);
    font-size: 0.86rem;
    font-weight: 700;
}

.mc-dashboard-customer > div {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.mc-dashboard-customer strong,
.mc-dashboard-customer span,
.mc-dashboard-customer small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-dashboard-customer strong {
    color: #e4ebee;
    font-size: 0.79rem;
}

.mc-dashboard-customer div > span {
    color: #7d8f9a;
    font-size: 0.7rem;
}

.mc-dashboard-customer small {
    color: #596c77;
    font-size: 0.63rem;
}

.mc-dashboard-empty {
    display: grid;
    min-height: 240px;
    padding: 2rem;
    place-items: center;
    align-content: center;
    text-align: center;
}

.mc-dashboard-empty > span {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.8rem;
    place-items: center;
    border: 1px solid rgba(140, 181, 204, 0.13);
    border-radius: 14px;
    color: #7899ab;
    background: rgba(97, 146, 175, 0.055);
}

.mc-dashboard-empty h3 {
    margin: 0;
    color: #dce4e8;
    font-size: 0.95rem;
}

.mc-dashboard-empty p {
    margin: 0.45rem 0 0;
    color: #71838e;
    font-size: 0.76rem;
}

@media (max-width: 1100px) {
    .mc-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mc-dashboard-primary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mc-dashboard-page {
        padding: 0.85rem;
    }

    .mc-dashboard-hero {
        min-height: auto;
        padding: 1.55rem;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 21px;
    }

    .mc-dashboard-stats,
    .mc-dashboard-customer-grid {
        grid-template-columns: 1fr;
    }

    .mc-dashboard-stat {
        min-height: 175px;
    }

    .mc-dashboard-panel {
        border-radius: 18px;
    }

    .mc-dashboard-activity-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}


/* ==========================================================
   Carlisle Mission Control — Inquiry Danger Zone
   ========================================================== */

.danger-card {
    margin-top: 1rem;
    border-color: rgba(214, 74, 74, 0.28);
    background:
        linear-gradient(
            145deg,
            rgba(120, 35, 35, 0.12),
            rgba(18, 27, 34, 0.94)
        );
}

.danger-card h2 {
    color: #f0c8c8;
}

.danger-card p {
    color: #a98a8a;
}

.button-danger {
    border: 1px solid rgba(225, 81, 81, 0.5);
    color: #fff1f1;
    background: rgba(174, 49, 49, 0.82);
}

.button-danger:hover {
    border-color: rgba(237, 99, 99, 0.75);
    background: rgba(198, 57, 57, 0.96);
}


/* ==========================================================
   Carlisle Mission Control — Confirmation Modal
   ========================================================== */

.mc-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.mc-confirm-modal[hidden] {
    display: none;
}

.mc-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 12, 0.78);
    backdrop-filter: blur(10px);
}

.mc-confirm-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 32rem);
    padding: 2rem;
    border: 1px solid rgba(225, 81, 81, 0.32);
    border-radius: 1.25rem;
    background:
        linear-gradient(
            145deg,
            rgba(86, 26, 26, 0.26),
            rgba(14, 23, 30, 0.98)
        );
    box-shadow:
        0 2rem 5rem rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mc-confirm-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    color: #c98f8f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mc-confirm-panel h2 {
    margin: 0;
    color: #fff0f0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.mc-confirm-panel p {
    margin: 1rem 0 0;
    color: #bba2a2;
    line-height: 1.65;
}

.mc-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

body.mc-modal-open {
    overflow: hidden;
}

@media (max-width: 540px) {
    .mc-confirm-panel {
        padding: 1.5rem;
    }

    .mc-confirm-actions {
        flex-direction: column-reverse;
    }

    .mc-confirm-actions .button {
        width: 100%;
    }
}


/* ==========================================================
   Carlisle Mission Control — Bulk Inquiry Management
   ========================================================== */

.inquiry-bulk-form {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.inquiry-bulk-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.inquiry-bulk-summary {
    display: grid;
    gap: 4px;
}

.inquiry-bulk-summary strong {
    color: #ffffff;
}

.inquiry-bulk-summary span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

.inquiry-bulk-controls {
    display: flex;
    align-items: end;
    gap: 12px;
}

.inquiry-bulk-controls label {
    align-self: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
}

.inquiry-bulk-controls select {
    min-width: 180px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    color: #ffffff;
    font: inherit;
}

.inquiry-bulk-controls select:focus {
    border-color: rgba(255, 255, 255, 0.45);
    outline: 2px solid rgba(255, 255, 255, 0.12);
    outline-offset: 2px;
}

.inquiry-bulk-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.inquiry-checkbox-column {
    width: 52px;
    text-align: center;
}

.inquiry-checkbox-column input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #ffffff;
}

@media (max-width: 820px) {
    .inquiry-bulk-toolbar,
    .inquiry-bulk-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .inquiry-bulk-controls select,
    .inquiry-bulk-controls .button {
        width: 100%;
    }

    .inquiry-bulk-controls label {
        align-self: flex-start;
    }
}


/* ==========================================================
   Carlisle Mission Control — Inquiries Workspace
   ========================================================== */

.mc-inquiries-page {
    min-height: 100%;
    padding: clamp(1rem, 2vw, 1.75rem);
}

.mc-inquiries-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.mc-inquiries-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(104, 163, 196, 0.1),
            transparent 15rem
        ),
        linear-gradient(
            135deg,
            rgba(27, 41, 51, 0.96),
            rgba(13, 21, 27, 0.97)
        );
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mc-inquiries-eyebrow {
    display: block;
    color: #89a5b6;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mc-inquiries-header h1 {
    margin: 0.35rem 0 0.4rem;
    color: #f7f9fa;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.mc-inquiries-header p {
    max-width: 650px;
    margin: 0;
    color: #9baab3;
    font-size: 0.93rem;
    line-height: 1.55;
}

.mc-inquiries-summary {
    display: grid;
    min-width: 120px;
    padding: 0.9rem 1rem;
    flex-shrink: 0;
    gap: 0.1rem;
    border: 1px solid rgba(137, 180, 205, 0.14);
    border-radius: 14px;
    background: rgba(98, 150, 180, 0.07);
    text-align: center;
}

.mc-inquiries-summary strong {
    color: #eef5f8;
    font-size: 1.65rem;
    line-height: 1;
}

.mc-inquiries-summary span {
    color: #778d99;
    font-size: 0.7rem;
}

.mc-inquiries-page .admin-table-section {
    padding: 0;
}

.mc-inquiries-page .inquiry-filter-form,
.mc-inquiries-page .inquiry-result-count,
.mc-inquiries-page .inquiry-bulk-form {
    width: 100%;
}

.mc-inquiries-page .inquiry-filter-form {
    margin-bottom: 0.8rem;
}

.mc-inquiries-page .inquiry-result-count {
    margin-bottom: 0.8rem;
}

@media (max-width: 720px) {
    .mc-inquiries-page {
        padding: 0.85rem;
    }

    .mc-inquiries-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.2rem;
        border-radius: 18px;
    }

    .mc-inquiries-summary {
        width: 100%;
        text-align: left;
    }
}


/* ==========================================================
   Carlisle Mission Control — Record Forms
   ========================================================== */

.mc-record-page {
    min-height: 100%;
    padding: clamp(1rem, 2vw, 1.75rem);
}

.mc-record-shell {
    width: min(980px, 100%);
    margin: 0 auto;
}

.mc-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(104, 163, 196, 0.1),
            transparent 15rem
        ),
        linear-gradient(
            135deg,
            rgba(27, 41, 51, 0.96),
            rgba(13, 21, 27, 0.97)
        );
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mc-record-eyebrow {
    display: block;
    color: #89a5b6;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mc-record-header h1 {
    margin: 0.35rem 0 0.4rem;
    color: #f7f9fa;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.mc-record-header p {
    max-width: 620px;
    margin: 0;
    color: #9baab3;
    font-size: 0.93rem;
    line-height: 1.55;
}

.mc-record-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background: rgba(18, 27, 34, 0.9);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(15px);
}

.mc-record-form .inquiry-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.mc-record-form .detail-label {
    display: block;
    color: #aebbc3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mc-record-form input,
.mc-record-form textarea {
    margin-top: 0.5rem;
    border-color: rgba(139, 172, 190, 0.16);
    border-radius: 12px;
    background: rgba(7, 13, 18, 0.72);
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.mc-record-form input:hover,
.mc-record-form textarea:hover {
    border-color: rgba(139, 172, 190, 0.28);
}

.mc-record-form input:focus,
.mc-record-form textarea:focus {
    border-color: rgba(137, 180, 205, 0.5);
    outline: none;
    background: rgba(9, 17, 23, 0.92);
    box-shadow: 0 0 0 3px rgba(98, 150, 180, 0.1);
}

.mc-record-form .inquiry-message {
    margin-top: 1.2rem;
}

.mc-record-form textarea {
    min-height: 130px;
}

.mc-record-form .inquiry-status-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 720px) {
    .mc-record-page {
        padding: 0.85rem;
    }

    .mc-record-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.2rem;
        border-radius: 18px;
    }

    .mc-record-header .button {
        width: 100%;
        text-align: center;
    }

    .mc-record-form {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .mc-record-form .inquiry-detail-grid {
        grid-template-columns: 1fr;
    }

    .mc-record-form .inquiry-status-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-record-form .inquiry-status-controls .button {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================
   Carlisle Mission Control — Customer Profile
   ========================================================== */

.mc-customer-profile,
.mc-customer-activity {
    margin-top: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background: rgba(18, 27, 34, 0.9);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(15px);
}

.mc-customer-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mc-customer-avatar {
    display: grid;
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 4.25rem;
    place-items: center;
    border: 1px solid rgba(137, 180, 205, 0.2);
    border-radius: 18px;
    color: #dfeaf0;
    background:
        linear-gradient(
            145deg,
            rgba(98, 150, 180, 0.22),
            rgba(26, 41, 51, 0.9)
        );
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 30px rgba(0, 0, 0, 0.22);
}

.mc-customer-identity h2 {
    margin: 0.35rem 0 0.2rem;
    color: #f5f8fa;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.mc-customer-identity p {
    margin: 0;
    color: #8799a4;
}

.mc-customer-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.mc-customer-contact-card {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(137, 180, 205, 0.1);
    border-radius: 16px;
    background: rgba(8, 15, 20, 0.46);
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.mc-customer-contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(137, 180, 205, 0.2);
    background: rgba(10, 18, 24, 0.68);
}

.mc-customer-contact-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    border: 1px solid rgba(137, 180, 205, 0.16);
    border-radius: 11px;
    color: #9ab8c8;
    background: rgba(98, 150, 180, 0.08);
    font-size: 0.9rem;
    font-weight: 800;
}

.mc-customer-contact-card .detail-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #80939e;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mc-customer-contact-card p,
.mc-customer-contact-card a {
    margin: 0;
    color: #e4edf1;
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mc-customer-contact-card a {
    text-decoration: none;
}

.mc-customer-contact-card a:hover {
    color: #ffffff;
}

.mc-customer-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.mc-customer-meta .detail-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #778a95;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mc-customer-meta p {
    margin: 0;
    color: #aebbc3;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.mc-customer-notes {
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(61, 82, 94, 0.08),
            rgba(9, 16, 21, 0.55)
        );
}

.mc-record-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mc-record-section-header h2 {
    margin: 0.35rem 0 0;
    color: #f3f7f9;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.mc-customer-notes > p {
    margin: 0;
    color: #aebbc3;
    line-height: 1.65;
}

.mc-customer-empty-copy {
    color: #71838e;
    font-style: italic;
}

.mc-customer-activity .admin-table-wrapper,
.mc-customer-activity .admin-table-wrap {
    margin-top: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.mc-customer-activity > p {
    margin: 0;
    padding: 1rem;
    border: 1px dashed rgba(137, 180, 205, 0.13);
    border-radius: 14px;
    color: #71838e;
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 720px) {
    .mc-customer-contact-grid,
    .mc-customer-meta {
        grid-template-columns: 1fr;
    }

    .mc-customer-profile,
    .mc-customer-activity {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .mc-customer-identity {
        align-items: flex-start;
    }
}


/* Customer profile image controls */

.mc-customer-avatar {
    overflow: hidden;
}

.mc-customer-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mc-customer-identity-copy {
    min-width: 0;
    flex: 1;
}

.mc-customer-image-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mc-customer-image-controls .button {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .mc-customer-identity {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .mc-customer-image-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-customer-image-controls .button {
        width: 100%;
        text-align: center;
    }
}


/* Customer profile direct-upload controls */

.mc-customer-image-actions {
    width: min(390px, 100%);
    margin-left: auto;
}

.mc-customer-image-upload label {
    display: block;
    margin-bottom: 0.45rem;
    color: #80939e;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mc-customer-image-controls input[type="file"] {
    min-width: 0;
    flex: 1;
    padding: 0.55rem;
    border: 1px solid rgba(137, 180, 205, 0.16);
    border-radius: 11px;
    color: #aebbc3;
    background: rgba(7, 13, 18, 0.78);
}

.mc-customer-image-controls input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    padding: 0.48rem 0.7rem;
    border: 1px solid rgba(137, 180, 205, 0.16);
    border-radius: 8px;
    color: #dfe9ee;
    background: rgba(98, 150, 180, 0.12);
    cursor: pointer;
}

.mc-customer-image-controls input[type="file"]::file-selector-button:hover {
    background: rgba(98, 150, 180, 0.2);
}

.mc-customer-image-remove {
    margin-top: 0.65rem;
    width: 100%;
}

@media (max-width: 900px) {
    .mc-customer-image-actions {
        width: 100%;
        margin-left: 5.25rem;
    }
}

@media (max-width: 720px) {
    .mc-customer-image-actions {
        margin-left: 0;
    }
}



/* Customer account contacts */

.mc-customer-contacts {
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(36, 58, 70, 0.12),
            rgba(8, 14, 19, 0.72)
        );
}

.mc-customer-contacts .button[disabled] {
    cursor: not-allowed;
    opacity: 0.48;
}

.mc-account-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mc-account-contact-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(137, 180, 205, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.mc-account-contact-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mc-account-contact-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    flex: 0 0 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(137, 180, 205, 0.18);
    border-radius: 15px;
    color: #dfe9ee;
    background:
        linear-gradient(
            145deg,
            rgba(102, 154, 183, 0.22),
            rgba(23, 40, 50, 0.68)
        );
    font-size: 1.2rem;
    font-weight: 700;
}

.mc-account-contact-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.mc-account-contact-identity {
    min-width: 0;
    flex: 1;
}

.mc-account-contact-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mc-account-contact-name-row h3 {
    margin: 0;
    color: #f3f7f9;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.mc-account-contact-identity > p {
    margin: 0.25rem 0 0;
    color: #82949f;
    font-size: 0.79rem;
}

.mc-primary-contact-badge {
    padding: 0.22rem 0.44rem;
    border: 1px solid rgba(121, 185, 157, 0.2);
    border-radius: 999px;
    color: #9fd4ba;
    background: rgba(73, 139, 111, 0.12);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mc-account-contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.mc-account-contact-details > div {
    min-width: 0;
    padding: 0.7rem;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.14);
}

.mc-account-contact-details span {
    display: block;
    margin-bottom: 0.25rem;
    color: #6f838f;
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mc-account-contact-details a,
.mc-account-contact-details p {
    margin: 0;
    color: #b9c6cd;
    font-size: 0.78rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mc-account-contact-details a {
    text-decoration: none;
}

.mc-account-contact-details a:hover {
    color: #ffffff;
}

.mc-account-contact-notes {
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #8799a3;
    font-size: 0.78rem;
    line-height: 1.55;
}

.mc-account-contacts-empty {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px dashed rgba(137, 180, 205, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.018);
}

.mc-account-contacts-empty > span {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: #86a2b2;
    background: rgba(98, 150, 180, 0.1);
}

.mc-account-contacts-empty h3 {
    margin: 0;
    color: #dce6eb;
    font-size: 0.92rem;
}

.mc-account-contacts-empty p {
    margin: 0.25rem 0 0;
    color: #71838e;
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .mc-account-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .mc-customer-contacts {
        padding: 1rem;
    }

    .mc-account-contact-details {
        grid-template-columns: 1fr;
    }

    .mc-account-contacts-empty {
        align-items: flex-start;
    }
}



/* Customer contact form */

.mc-contact-primary-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.9rem;
    border: 1px solid rgba(137, 180, 205, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.mc-contact-primary-option input {
    width: 17px;
    height: 17px;
    margin-top: 0.12rem;
    accent-color: #76a9c5;
}

.mc-contact-primary-option span {
    display: grid;
    gap: 0.2rem;
}

.mc-contact-primary-option strong {
    color: #dce6eb;
    font-size: 0.84rem;
}

.mc-contact-primary-option small {
    color: #71838e;
    font-size: 0.74rem;
    line-height: 1.45;
}



/* Customer contact photo uploads */

.mc-contact-photo-upload {
    margin-top: 0.9rem;
}

.mc-contact-photo-upload > label {
    display: block;
    margin-bottom: 0.4rem;
    color: #718793;
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mc-contact-photo-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mc-contact-photo-controls input[type="file"] {
    min-width: 0;
    flex: 1;
    padding: 0.42rem;
    border: 1px solid rgba(137, 180, 205, 0.12);
    border-radius: 10px;
    color: #91a2ac;
    background: rgba(5, 10, 14, 0.58);
    font-size: 0.7rem;
}

.mc-contact-photo-controls input[type="file"]::file-selector-button {
    margin-right: 0.5rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(137, 180, 205, 0.14);
    border-radius: 7px;
    color: #d5e1e7;
    background: rgba(98, 150, 180, 0.11);
    cursor: pointer;
}

.mc-contact-photo-controls .button {
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .mc-contact-photo-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-contact-photo-controls .button {
        width: 100%;
        text-align: center;
    }
}



/* Customer contact edit control */

.mc-contact-edit-link {
    flex: 0 0 auto;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(137, 180, 205, 0.12);
    border-radius: 8px;
    color: #8fa5b1;
    background: rgba(98, 150, 180, 0.07);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.mc-contact-edit-link:hover {
    border-color: rgba(137, 180, 205, 0.24);
    color: #e2edf2;
    background: rgba(98, 150, 180, 0.13);
}



/* Customer contact photo removal */

.mc-contact-photo-remove {
    margin-top: 0.5rem;
    text-align: right;
}

.mc-contact-photo-remove-button {
    padding: 0;
    border: 0;
    color: #8b9ca5;
    background: transparent;
    font: inherit;
    font-size: 0.67rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(139, 156, 165, 0.35);
    text-underline-offset: 0.2rem;
}

.mc-contact-photo-remove-button:hover {
    color: #d8e3e8;
    text-decoration-color: currentColor;
}



/* Customer contact deletion */

.mc-contact-delete-form {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    text-align: right;
}

.mc-contact-delete-button {
    padding: 0;
    border: 0;
    color: #a67979;
    background: transparent;
    font: inherit;
    font-size: 0.67rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(166, 121, 121, 0.35);
    text-underline-offset: 0.2rem;
}

.mc-contact-delete-button:hover {
    color: #e3a1a1;
    text-decoration-color: currentColor;
}



/* Inquiry business-name presentation */

.mc-inquiry-business-name {
    display: block;
    margin-top: 0.24rem;
    color: #80939e;
    font-size: 0.72rem;
    line-height: 1.35;
}

.mc-inquiry-detail-business {
    margin: 0.45rem 0 0;
    color: #91a5b0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}



/* Inquiry-to-customer conversion */

.mc-inquiry-conversion-form {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.mc-inquiry-conversion-form small {
    max-width: 34rem;
    color: #81939d;
    font-size: 0.72rem;
    line-height: 1.45;
}

@media (max-width: 680px) {
    .mc-inquiry-conversion-form {
        align-items: stretch;
        flex-direction: column;
    }
}



/* Customer account identity */

.mc-customer-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.mc-customer-title-row h1 {
    margin: 0;
}

.mc-account-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(137, 180, 205, 0.16);
    border-radius: 999px;
    color: #9aadb7;
    background: rgba(72, 110, 132, 0.1);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.mc-account-type-business {
    border-color: rgba(102, 173, 202, 0.25);
    color: #a8d0e1;
    background: rgba(65, 136, 166, 0.14);
}

.mc-account-type-individual {
    border-color: rgba(156, 165, 174, 0.16);
    color: #aeb9bf;
    background: rgba(114, 126, 135, 0.1);
}



/* Customer record header actions */

.mc-record-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

@media (max-width: 620px) {
    .mc-record-header-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .mc-record-header-actions .button {
        width: 100%;
        text-align: center;
    }
}



/* Customer account deletion */

.mc-customer-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.25rem;
}

.mc-customer-danger-zone > div {
    max-width: 48rem;
}

.mc-customer-danger-zone h2 {
    margin: 0.35rem 0 0.55rem;
}

.mc-customer-danger-zone p {
    margin: 0;
    color: #9ba8af;
    line-height: 1.55;
}

.mc-customer-danger-zone form {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .mc-customer-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-customer-danger-zone .button {
        width: 100%;
        text-align: center;
    }
}


/* Carlisle Airworks live system-status alerts */

.mc-system-card,
.mc-dashboard-health,
.console-health-pill,
.console-panel-status,
.console-metric {
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.mc-system-card--warning,
.mc-dashboard-health--warning,
.console-health-pill--warning {
    border-color: rgba(244, 184, 74, 0.48);
    background: rgba(175, 116, 26, 0.16);
    box-shadow:
        0 0 0 1px rgba(244, 184, 74, 0.08),
        0 0 24px rgba(244, 184, 74, 0.16);
    animation: mc-system-warning-pulse 1.8s ease-in-out infinite;
}

.mc-system-dot--warning,
.mc-dashboard-health-dot--warning,
.console-health-dot--warning,
.console-panel-status--warning > span {
    background: #f4b84a;
    box-shadow:
        0 0 0 5px rgba(244, 184, 74, 0.14),
        0 0 18px rgba(244, 184, 74, 0.5);
    animation: mc-system-warning-dot 1.15s ease-in-out infinite;
}

.mc-system-card--critical,
.mc-dashboard-health--critical,
.console-health-pill--critical {
    border-color: rgba(255, 82, 82, 0.72);
    background: rgba(142, 27, 31, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 82, 82, 0.16),
        0 0 34px rgba(255, 55, 65, 0.3);
    animation: mc-system-critical-flash 0.8s ease-in-out infinite;
}

.mc-system-dot--critical,
.mc-dashboard-health-dot--critical,
.console-health-dot--critical,
.console-panel-status--critical > span {
    background: #ff5252;
    box-shadow:
        0 0 0 6px rgba(255, 82, 82, 0.18),
        0 0 24px rgba(255, 55, 65, 0.78);
    animation: mc-system-critical-dot 0.55s ease-in-out infinite;
}

.console-panel-status--warning,
.console-metric--warning strong {
    color: #f4c56a;
}

.console-panel-status--critical,
.console-metric--critical strong {
    color: #ff7474;
}

.console-metric--warning {
    border-left: 3px solid rgba(244, 184, 74, 0.75);
    background: rgba(175, 116, 26, 0.08);
}

.console-metric--critical {
    border-left: 3px solid rgba(255, 82, 82, 0.85);
    background: rgba(142, 27, 31, 0.12);
    animation: mc-system-critical-row 1s ease-in-out infinite;
}

@keyframes mc-system-warning-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(244, 184, 74, 0.08),
            0 0 16px rgba(244, 184, 74, 0.1);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(244, 184, 74, 0.18),
            0 0 32px rgba(244, 184, 74, 0.3);
    }
}

@keyframes mc-system-warning-dot {
    0%,
    100% {
        opacity: 0.58;
        transform: scale(0.88);
    }

    50% {
        opacity: 1;
        transform: scale(1.22);
    }
}

@keyframes mc-system-critical-flash {
    0%,
    100% {
        border-color: rgba(255, 82, 82, 0.46);
        background: rgba(142, 27, 31, 0.16);
        box-shadow:
            0 0 0 1px rgba(255, 82, 82, 0.1),
            0 0 22px rgba(255, 55, 65, 0.18);
    }

    50% {
        border-color: rgba(255, 118, 118, 0.95);
        background: rgba(180, 31, 38, 0.34);
        box-shadow:
            0 0 0 3px rgba(255, 82, 82, 0.2),
            0 0 48px rgba(255, 55, 65, 0.58);
    }
}

@keyframes mc-system-critical-dot {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.82);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

@keyframes mc-system-critical-row {
    0%,
    100% {
        background: rgba(142, 27, 31, 0.08);
    }

    50% {
        background: rgba(180, 31, 38, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mc-system-card--warning,
    .mc-dashboard-health--warning,
    .console-health-pill--warning,
    .mc-system-dot--warning,
    .mc-dashboard-health-dot--warning,
    .console-health-dot--warning,
    .console-panel-status--warning > span,
    .mc-system-card--critical,
    .mc-dashboard-health--critical,
    .console-health-pill--critical,
    .mc-system-dot--critical,
    .mc-dashboard-health-dot--critical,
    .console-health-dot--critical,
    .console-panel-status--critical > span,
    .console-metric--critical {
        animation: none;
    }
}
.contact-success {
    display: grid;
    min-height: 560px;
    align-content: center;
    gap: 24px;
}

.contact-success-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(86, 120, 97, 0.45);
    border-radius: 50%;
    background: rgba(86, 120, 97, 0.1);
    color: #567861;
    font-size: 1.7rem;
}

.contact-success h2 {
    max-width: 720px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.4rem, 4vw, 4.7rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.contact-success > p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #626762;
    line-height: 1.75;
}

.contact-success-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-success-details div {
    padding: 22px 0;
}

.contact-success-details div + div {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.contact-success-details span,
.contact-success-details strong {
    display: block;
}

.contact-success-details span {
    margin-bottom: 7px;
    color: #898e88;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-success-details strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

@media (max-width: 650px) {
    .contact-success {
        min-height: 470px;
    }

    .contact-success-details {
        grid-template-columns: 1fr;
    }

    .contact-success-details div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-left: 0;
    }

    .contact-success-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-success-actions .button {
        justify-content: center;
        width: 100%;
    }
}
