/* ==========================================================================
   EMMa Operations — pre-launch site
   Plain CSS. No framework, no build step.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/Inter-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/Inter-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../assets/fonts/Inter-800.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand */
    --navy: #170D71;
    --navy-800: #241A8C;
    --navy-600: #4438B8;
    --navy-200: #C9C4EE;
    --navy-050: #EFEDFA;

    /* Neutrals */
    --ink: #12121A;
    --slate: #5B5B6B;
    --line: #E3E3EA;
    --line-warm: #D6D6DE;
    --surface: #F7F7FA;
    --white: #FFFFFF;

    /* Reserved: only where EMMa itself speaks */
    --signal: #00B3A4;
    --signal-text: #0E7A72;

    --content-width: 1180px;

    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--navy-600);
    text-decoration: none;
}

a:hover {
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--navy-600);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: clamp(64px, 8vw, 120px) 0;
}

.section--tint {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 12px 18px;
    z-index: 100;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.display {
    font-size: clamp(42px, 6.4vw, 80px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: var(--navy);
    margin: 0 0 28px;
    text-wrap: balance;
}

.page-title {
    font-size: clamp(38px, 5.4vw, 66px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.03;
    color: var(--navy);
    margin: 0;
    max-width: 22ch;
    text-wrap: balance;
}

.h2 {
    font-size: clamp(30px, 4.2vw, 50px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: var(--navy);
    margin: 0 0 44px;
    text-wrap: balance;
}

.h3 {
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--navy);
    margin: 0 0 8px;
}

.h4 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 18px;
}

.lead {
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink);
    margin: 0 0 20px;
    max-width: 34ch;
}

.body-text {
    color: var(--slate);
    margin: 0;
    text-wrap: pretty;
}

.body-text + .body-text {
    margin-top: 18px;
}

.measure {
    max-width: 48ch;
}

.measure-wide {
    max-width: 60ch;
}

.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.18em;
    color: var(--slate);
    margin: 0;
    text-transform: uppercase;
}

.tnum {
    font-variant-numeric: tabular-nums;
}

/* Section eyebrow: hairline + number + name */

.eyebrow {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-bottom: 44px;
}

.section--tint .eyebrow {
    border-top-color: var(--line-warm);
}

.eyebrow span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.16em;
    color: var(--slate);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-header__logo {
    margin-right: auto;
}

.site-header__logo img {
    height: 30px;
    width: auto;
}

.nav {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    display: block;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

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

.nav a[aria-current="page"] {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.date-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.16em;
    color: var(--navy);
    border: 1px solid var(--navy-200);
    border-radius: 2px;
    padding: 8px 10px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 3px;
    padding: 13px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.btn:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}

.btn--ghost {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy-200);
}

.btn--ghost:hover {
    background: var(--navy-050);
    border-color: var(--navy-200);
    color: var(--navy);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
}

.hero .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: clamp(48px, 6vw, 88px);
    align-items: center;
}

.hero__eyebrow {
    margin-bottom: 28px;
}

.diagram-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: clamp(20px, 3vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-panel svg {
    width: 100%;
    max-width: 420px;
}

/* --------------------------------------------------------------------------
   Launch strip
   -------------------------------------------------------------------------- */

.launch-strip {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.launch-strip .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.launch-strip__date {
    margin-right: auto;
}

.launch-date {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--navy);
    margin: 10px 0 0;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Department grid (section 01)
   -------------------------------------------------------------------------- */

.cell-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 20px 26px;
}

.cell__label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    color: var(--navy);
    margin: 0 0 14px;
}

.cell__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--slate);
    margin: 0;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.questions {
    border-left: 2px solid var(--navy);
    padding-left: 24px;
}

.questions p {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--navy);
    margin: 0;
}

.questions p + p {
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Flow table (section 02)
   -------------------------------------------------------------------------- */

.table {
    border-top: 1px solid var(--navy-200);
}

.table__head,
.table__row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
}

.table__head {
    gap: 12px 28px;
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--navy-200);
}

.table__head span {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.14em;
    color: var(--slate);
}

.table__row {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.col-n {
    flex: 0 0 26px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
    color: #9A97B8;
    font-variant-numeric: tabular-nums;
}

.col-stage {
    flex: 1 1 170px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.col-carries {
    flex: 2 1 260px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
}

.col-lives {
    flex: 1 1 210px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate);
}

.table__head .col-stage,
.table__head .col-carries,
.table__head .col-lives,
.table__head .col-n {
    font-weight: 500;
    color: var(--slate);
}

/* --------------------------------------------------------------------------
   Step grid (section 03)
   -------------------------------------------------------------------------- */

.step-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--navy);
    border-left: 1px solid var(--line);
}

.step {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 24px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step__n {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #9A97B8;
    font-variant-numeric: tabular-nums;
}

.step__name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--navy);
}

.step__body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--slate);
}

/* --------------------------------------------------------------------------
   EMM / EMMa (section 04)
   -------------------------------------------------------------------------- */

.pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(36px, 5vw, 80px);
}

.pair__kicker {
    margin-bottom: 18px;
}

.pair__sub {
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    margin: 0 0 18px;
}

.statement {
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
    margin: 56px 0 0;
    padding-top: 36px;
    border-top: 1px solid var(--line-warm);
    max-width: 40ch;
    text-wrap: balance;
}

.footnote {
    font-size: 15px;
    line-height: 1.6;
    color: var(--slate);
    margin: 28px 0 0;
    max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Guidance (section 05)
   -------------------------------------------------------------------------- */

.guidance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
}

.speaks {
    border: 1px solid var(--line);
    padding: clamp(24px, 3vw, 40px);
    background: var(--white);
}

.speaks__tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.speaks__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--signal);
}

.speaks__tag span {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.16em;
    color: var(--signal-text);
}

.speaks__q {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 24px;
}

.speaks__note {
    font-size: 15px;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Closing band (navy)
   -------------------------------------------------------------------------- */

.band {
    background: var(--navy);
    color: #fff;
    padding: clamp(72px, 9vw, 132px) 0;
}

.band__mark {
    width: 72px;
    height: 72px;
    margin-bottom: 36px;
}

.band__title {
    font-size: clamp(34px, 5.4vw, 68px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    color: #fff;
    margin: 0 0 40px;
    max-width: 18ch;
    text-wrap: balance;
}

.band__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    align-items: flex-end;
    padding-top: 36px;
    border-top: 1px solid #3A2F9A;
}

.band__dates {
    margin-right: auto;
}

.band .mono {
    color: var(--navy-200);
}

.band__date {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    margin: 12px 0 16px;
    font-variant-numeric: tabular-nums;
}

.band__domain {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.06em;
    color: var(--navy-200);
    margin: 0;
}

.band .btn {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
    padding: 14px 22px;
}

.band .btn:hover {
    background: var(--navy-050);
    border-color: var(--navy-050);
}

.band .btn--ghost {
    background: transparent;
    color: #fff;
    border-color: var(--navy-600);
}

.band .btn--ghost:hover {
    background: var(--navy-800);
    border-color: var(--navy-600);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-head {
    padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
    border-bottom: 1px solid var(--line);
}

.page-head .mono {
    margin-bottom: 24px;
}

.page-body {
    padding: clamp(56px, 7vw, 96px) 0;
}

.page-body .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
}

.prose {
    max-width: 60ch;
}

.prose h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 18px;
}

.prose h2 + p {
    margin-top: 0;
}

.prose p {
    color: var(--slate);
    margin: 0 0 18px;
    text-wrap: pretty;
}

.prose .spacer {
    margin-bottom: 48px;
}

.aside {
    border-top: 1px solid var(--navy);
    padding-top: 20px;
}

.aside__label {
    margin-bottom: 20px;
}

.aside__name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 4px;
}

.aside__role {
    font-size: 15px;
    color: var(--slate);
    margin: 0 0 40px;
}

.aside__note {
    font-size: 15px;
    line-height: 1.6;
    color: var(--slate);
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* Contact rows */

.defs {
    border-top: 1px solid var(--navy);
    margin: 0;
}

.defs__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.defs__key {
    flex: 0 0 110px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.14em;
    color: var(--slate);
    margin: 0;
}

.defs__val {
    flex: 1 1 200px;
    font-size: 17px;
    margin: 0;
    color: var(--ink);
}

.defs__val--strong {
    font-weight: 700;
}

/* Privacy */

.legal {
    max-width: 70ch;
}

.legal > p:first-child {
    margin-bottom: 44px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.legal p {
    color: var(--slate);
    margin: 0 0 16px;
}

.legal p.last {
    margin-bottom: 44px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
    background: var(--white);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
}

.site-footer img {
    height: 26px;
    width: auto;
    margin-bottom: 18px;
}

.site-footer .mono {
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
}

.site-footer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--slate);
    margin: 0;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.site-footer ul a {
    color: var(--ink);
}

.site-footer ul a:hover {
    color: var(--navy);
}

.site-footer__legal {
    font-size: 13px;
    color: var(--slate);
    margin: 44px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Narrow viewports

   The two gridded diagrams use explicit column counts that divide their item
   count evenly (5 departments, 6 steps), so a row is never left half-empty.
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .step-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    /* Departments become a hairline list rather than five thin columns */
    .cell-grid {
        grid-template-columns: 1fr;
        border-left: 0;
    }

    .cell {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 24px;
        padding: 16px 0;
        border-right: 0;
    }

    .cell__label {
        flex: 0 0 120px;
        margin: 0;
        line-height: 1.5;
    }

    .cell__text {
        flex: 1 1 220px;
    }
}

@media (max-width: 899px) {
    .site-footer__cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }

    body {
        font-size: 16px;
    }

    .site-header .wrap {
        gap: 16px 24px;
    }

    .site-header__logo {
        margin-right: auto;
    }

    .nav {
        gap: 20px;
        order: 3;
        width: 100%;
        border-top: 1px solid var(--line);
        padding-top: 14px;
    }

    .date-chip {
        order: 2;
    }

    .col-n {
        flex: 0 0 100%;
    }
}

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

    .site-footer__cols {
        grid-template-columns: 1fr;
    }
}

@media print {
    .site-header,
    .site-footer,
    .btn-row {
        display: none;
    }
}
