@import url("https://fonts.googleapis.com/css2?family=GFS+Didot&family=Inter:wght@300;400;500;600;700&display=swap");

/* ============================================================
   AEC PAGE — OSIRIS
   ============================================================ */

/* ============================================================
   01. DESIGN BASE
   ============================================================ */
:root {
    --aec-bg: #020617;
    --aec-panel: #061020;
    --aec-panel-soft: #081526;
    --aec-text: #ffffff;
    --aec-muted: #d7dee9;
    --aec-cyan: #22d3ee;
    --aec-blue: #3b82f6;
    --aec-border: rgba(148, 163, 184, 0.20);
    --aec-max: 1440px;
    --aec-gutter: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--aec-bg);
    color: var(--aec-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

::selection {
    background: rgba(34, 211, 238, 0.30);
    color: #ffffff;
}

/* ============================================================
   02. ACCESSIBILITY / WCAG 2.1 AA
   ============================================================ */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ffffff;
    color: #020617;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transform: translateY(-170%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--aec-cyan) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 2px #020617 !important;
}

[aria-current="page"] {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ============================================================
   03. PAGE SHELL / SHARED TYPOGRAPHY
   ============================================================ */
.aec-page {
    overflow: clip;
    background: var(--aec-bg);
    color: var(--aec-text);
}

.aec-container {
    width: 100%;
    max-width: var(--aec-max);
    margin-inline: auto;
    padding-inline: var(--aec-gutter);
}

.aec-section {
    padding-block: 80px;
}

.aec-page h1,
.aec-page h2,
.aec-page h3 {
    margin: 0;
    font-family: "GFS Didot", Georgia, serif;
    font-weight: 400;
    letter-spacing: 0;
}

.aec-page h2 {
    color: #ffffff;
    font-size: clamp(42px, 4vw, 58px);
    line-height: 1.06;
}

.aec-page h2 em,
.aec-page h2 span {
    color: var(--aec-cyan);
    font-style: normal;
}

.aec-page p {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.72;
}

.aec-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--aec-cyan);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.aec-accent-line,
.aec-hero-line {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--aec-cyan), var(--aec-blue), transparent);
}

/* ============================================================
   04. HERO
   ============================================================ */
.aec-hero {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 96px;
    background:
        linear-gradient(
            90deg,
            rgba(2, 6, 23, .96) 0%,
            rgba(2, 6, 23, .90) 38%,
            rgba(2, 6, 23, .56) 66%,
            rgba(2, 6, 23, .20) 100%
        ),
        var(--aec_background_1) right center / cover no-repeat;
}

.aec-hero-content {
    position: relative;
    z-index: 2;
}

.aec-hero h1 {
    max-width: 1000px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(58px, 6vw, 88px);
    line-height: .98;
}

.aec-hero h1 span {
    color: var(--aec-cyan);
}

.aec-hero-subtitle {
    margin-bottom: 22px !important;
    color: #ffffff;
    font-size: clamp(20px, 1.8vw, 26px) !important;
    font-weight: 600;
    line-height: 1.4 !important;
}

.aec-hero-line {
    margin: 0 0 28px;
}

.aec-hero-lead {
    max-width: 820px;
    margin-bottom: 12px !important;
    color: #ffffff;
    font-size: 18px !important;
    line-height: 1.68 !important;
}

.aec-hero-lead:last-of-type {
    margin-bottom: 0 !important;
}

.aec-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .09;
    background-image:
        linear-gradient(rgba(34, 211, 238, .15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, .15) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
}

/* ============================================================
   05. AEC CHALLENGES
   ============================================================ */
.aec-challenges {
    border-top: 1px solid var(--aec-border);
    border-bottom: 1px solid var(--aec-border);
    background: var(--aec-panel);
}

.aec-challenge-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 72px;
    align-items: start;
}

.aec-section-heading h2 {
    max-width: 620px;
}

.aec-challenge-list {
    padding-left: 28px;
    border-left: 2px solid var(--aec-cyan);
}

.aec-challenge-list p {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.72;
}

.aec-challenge-list p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   06. AEC PROMISE
   ============================================================ */
.aec-promise {
    text-align: center;
    background:
        radial-gradient(circle at 50% 10%, rgba(34, 211, 238, .08), transparent 52%),
        var(--aec-bg);
}

.aec-promise-inner {
    max-width: 1060px;
}

.aec-promise h2 {
    margin-bottom: 26px;
}

.aec-promise p {
    max-width: 900px;
    margin: 0 auto 18px;
    color: #e7eef7;
}

.aec-promise .aec-promise-close {
    margin-bottom: 0;
    color: #ffffff;
    font-weight: 700;
}

/* ============================================================
   07. SOLUTIONS / HOW WE HELP
   ============================================================ */
.aec-solutions {
    background: var(--aec-panel);
}

.aec-solutions-intro {
    margin-bottom: 40px;
}

.aec-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.aec-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--aec-border);
    border-radius: 10px;
    background: linear-gradient(145deg, #0a1a2c, #06101e);
    transition: border-color .25s ease, transform .25s ease;
}

.aec-card:hover {
    border-color: rgba(34, 211, 238, .50);
    transform: translateY(-2px);
}

.aec-card-number {
    margin-bottom: 14px;
    color: var(--aec-cyan);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .12em;
}

.aec-card h3 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(30px, 2.5vw, 38px);
    line-height: 1.12;
}

.aec-card p {
    margin-bottom: 13px;
    color: #ffffff;
}

.aec-card p:last-of-type {
    margin-bottom: 0;
}

.aec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.aec-tags span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(34, 211, 238, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.aec-tags span::before {
    content: "•";
    color: var(--aec-cyan);
    font-weight: 800;
}

/* ============================================================
   08. WHY OSIRIS
   ============================================================ */
.aec-why {
    background:
        radial-gradient(circle at 10% 15%, rgba(59, 130, 246, .07), transparent 38%),
        var(--aec-bg);
}

.aec-why-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 72px;
    align-items: start;
}

.aec-why .aec-accent-line {
    margin-top: 26px;
}

.aec-why-copy p {
    margin-bottom: 18px;
    color: #ffffff;
}

.aec-why-copy p:last-child {
    margin-bottom: 0;
}

.aec-why-callout-wrap {
    margin-top: 34px;
}

.aec-why-callout {
    max-width: 1120px;
    margin-left: auto;
    padding: 26px 28px;
    border-left: 3px solid var(--aec-cyan);
    border-radius: 0 8px 8px 0;
    background: linear-gradient(110deg, rgba(34, 211, 238, .08), rgba(59, 130, 246, .03));
}

.aec-why-callout p {
    margin-bottom: 14px;
    color: #ffffff;
}

.aec-why-callout p:last-child {
    margin-bottom: 0;
}


@media (min-width: 2400px) {
   section.aec-hero.stacked-mobile-hero {
       background-size: auto 100%;
        background-position: calc(51% + 50px) center;
        min-height: unset;
    }
}

/* ============================================================
   09. TABLET — 1024px AND BELOW
   ============================================================ */
@media (max-width: 1024px) {
    :root {
        --aec-gutter: 24px;
    }

    .aec-section {
        padding-block: 68px;
    }

    .aec-hero {
        min-height: 620px;
        padding: 136px 0 78px;
        background-position: 68% center;
    }

    .aec-hero h1 {
        max-width: 820px;
        font-size: clamp(54px, 7.2vw, 76px);
    }

    .aec-challenge-layout,
    .aec-why-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .aec-solutions-grid {
        gap: 16px;
    }

    .aec-card {
        padding: 26px;
    }
}

/* ============================================================
   10. MOBILE — 767px AND BELOW
   ============================================================ */
@media (max-width: 767px) {
    :root {
        --aec-gutter: 20px;
    }

    .aec-section {
        padding-block: 54px;
    }

    .aec-page h2 {
        font-size: clamp(34px, 9vw, 42px);
        line-height: 1.08;
    }

    .aec-eyebrow {
        margin-bottom: 13px;
        font-size: 12px;
        letter-spacing: .12em;
    }

    /* Hero keeps one outer gutter only; no duplicate child padding. */
    .aec-hero {
        min-height: 560px;
        align-items: center;
        padding: 118px 0 58px;
        background-position: 70% center;
    }

    .aec-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(
            90deg,
            rgba(2, 6, 23, .96) 0%,
            rgba(2, 6, 23, .86) 54%,
            rgba(2, 6, 23, .50) 100%
        );
        pointer-events: none;
    }

    .aec-hero h1 {
        max-width: 100%;
        margin-bottom: 15px;
        font-size: clamp(44px, 12vw, 58px);
        line-height: .98;
    }

    .aec-hero-subtitle {
        margin-bottom: 18px !important;
        font-size: 18px !important;
    }

    .aec-hero-line {
        margin-bottom: 22px;
    }

    .aec-hero-lead,
    .aec-challenge-list p,
    .aec-promise p,
    .aec-card p,
    .aec-why-copy p,
    .aec-why-callout p {
        font-size: 16px !important;
        line-height: 1.66 !important;
    }

    .aec-challenge-list {
        padding-left: 18px;
    }

    .aec-solutions-intro {
        margin-bottom: 30px;
    }

    .aec-solutions-grid {
        grid-template-columns: 1fr;
    }

    .aec-card {
        padding: 22px;
    }

    .aec-card h3 {
        font-size: 30px;
    }

    .aec-tags {
        gap: 7px;
        padding-top: 18px;
    }

    .aec-tags span {
        min-height: 36px;
        padding: 7px 12px;
        white-space: normal;
        font-size: 13px;
    }

    .aec-why-callout-wrap {
        margin-top: 28px;
    }

    .aec-why-callout {
        padding: 22px 20px;
    }
}

/* ============================================================
   11. SMALL MOBILE — 500px AND BELOW
   Matches the current Osiris site breakpoint convention.
   ============================================================ */
@media (max-width: 500px) {
    :root {
        --aec-gutter: 16px;
    }

    .aec-section {
        padding-block: 48px;
    }

    .aec-hero {
        min-height: 520px;
        padding: 104px 0 48px;
        background-position: 72% center;
    }

    .aec-hero h1 {
        font-size: clamp(39px, 11.5vw, 50px);
    }

    .aec-hero-lead {
        font-size: 15.5px !important;
    }

    .aec-card {
        padding: 20px;
    }

    .aec-tags span {
        width: fit-content;
        max-width: 100%;
    }
}

/* ============================================================
   12. VERY SMALL / HIGH ZOOM REFLOW — 360px AND BELOW
   ============================================================ */
@media (max-width: 360px) {
    .aec-hero h1 {
        font-size: 37px;
    }

    .aec-page h2 {
        font-size: 32px;
    }

    .aec-card h3 {
        font-size: 28px;
    }
}

/* ============================================================
   13. MOTION ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

