/* =========================================================
   ERAYA INTELLIGENCE
   ARCHITECTURE PAGE
========================================================= */

:root {

    --paper: #f3f1eb;
    --paper-light: #faf9f5;
    --paper-dark: #e7e5de;

    --ink: #0d1724;
    --muted: #65717d;
    --soft: #89939c;

    --navy: #081b3a;
    --navy-light: #102b58;
    --blue: #17386f;

    --white: #f8f9f8;

    --line: #c9cbc8;
    --dark-line: rgba(255,255,255,.16);

    --max: 1320px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--paper);

    color: var(--ink);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;

    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


::selection {
    background: var(--navy);
    color: white;
}


/* =========================================================
   READING PROGRESS
========================================================= */

.reading-progress {

    position: fixed;

    z-index: 5000;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: #91a8c8;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(243,241,235,.98);

    border-bottom: 1px solid var(--line);
}


.system-bar {

    min-height: 28px;

    padding: 0 4.8vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--navy);

    color: #d7dfeb;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .16em;
}


.system-location {

    color: #aebbd0;
}


.system-location span {

    margin: 0 10px;

    color: #60738f;
}


.navigation {

    height: 88px;

    padding: 0 4.8vw;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {

    width: 190px;

    height: 70px;

    display: flex;

    align-items: center;
}


.brand img {

    width: 175px;

    height: 64px;

    max-width: 175px;

    max-height: 64px;

    object-fit: contain;

    object-position: left center;
}


.main-nav {

    height: 100%;

    display: flex;

    align-items: center;

    gap: 28px;
}


.main-nav a {

    position: relative;

    height: 100%;

    display: flex;

    align-items: center;

    color: #1a2735;

    font-size: 10px;

    font-weight: 700;
}


.main-nav a::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 20px;

    height: 2px;

    background: var(--navy);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .2s ease;
}


.main-nav a:hover::after,
.main-nav a.active::after {

    transform: scaleX(1);
}


.mobile-menu {

    display: none;

    width: 42px;

    height: 42px;

    background: transparent;

    cursor: pointer;
}


.mobile-menu span {

    display: block;

    width: 23px;

    height: 2px;

    margin: 5px auto;

    background: var(--ink);
}


/* =========================================================
   GLOBAL
========================================================= */

.container {

    width: min(var(--max), 90vw);

    margin: 0 auto;
}


.section {

    padding: 110px 0;
}


.section-code {

    margin-bottom: 45px;

    color: var(--blue);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .19em;
}


.light-code {

    color: #9fb4d0;
}


.two-column {

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 80px;

    align-items: start;
}


.body-copy {

    color: #56636f;

    font-size: 13px;

    line-height: 1.9;
}


.body-copy p {

    margin: 0 0 24px;
}


h1,
h2,
h3 {

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 800;

    letter-spacing: -.07em;

    line-height: .94;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    padding: 78px 0 95px;

    background: var(--paper);
}


.hero-grid {

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(500px,.9fr);

    gap: 70px;

    align-items: center;
}


.classification {

    margin-bottom: 22px;

    color: var(--blue);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .18em;
}


.hero h1 {

    max-width: 800px;

    font-size: clamp(68px,7vw,110px);
}


.hero h1 span {

    display: block;

    color: #77818b;
}


.hero-lead {

    max-width: 650px;

    margin: 38px 0 0;

    color: #4f5c68;

    font-size: 16px;

    line-height: 1.85;
}


.architecture-meta {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    max-width: 650px;

    margin-top: 48px;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


.architecture-meta div {

    min-height: 100px;

    padding: 18px 15px;

    border-right: 1px solid var(--line);
}


.architecture-meta div:last-child {

    border-right: 0;
}


.architecture-meta small {

    display: block;

    margin-bottom: 18px;

    color: var(--soft);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .15em;
}


.architecture-meta strong {

    font-size: 11px;

    letter-spacing: .08em;
}


/* =========================================================
   HERO ARCHITECTURE MAP
========================================================= */

.hero-architecture {

    border: 1px solid #b9bdbb;

    background: #f7f6f1;
}


.graphic-header,
.graphic-footer {

    min-height: 38px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #697580;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .15em;
}


.graphic-footer {

    justify-content: center;

    gap: 10px;

    border-top: 1px solid var(--line);
}


.graphic-footer i {

    color: #9ca5aa;
}


.architecture-map {

    position: relative;

    height: 520px;

    overflow: hidden;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


.map-grid {

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(#e1e2df 1px, transparent 1px),
        linear-gradient(90deg,#e1e2df 1px,transparent 1px);

    background-size: 40px 40px;
}


.map-layer {

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    width: 62%;

    height: 58px;

    border: 1px solid #bcc3c3;

    background: rgba(250,249,245,.72);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 2;
}


.map-layer span {

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .16em;

    color: #68747d;
}


.layer-top {

    top: 7%;
}


.layer-state {

    top: 19%;

    width: 52%;
}


.layer-context {

    top: 31%;

    width: 43%;
}


.layer-decision {

    bottom: 21%;

    width: 43%;
}


.layer-feedback {

    bottom: 8%;

    width: 52%;
}


.map-core {

    position: absolute;

    z-index: 5;

    left: 50%;

    top: 50%;

    transform: translate(-50%,-50%);

    width: 180px;

    height: 180px;

    border-radius: 50%;

    background: var(--navy);

    border: 1px solid #9aaec9;

    color: white;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.map-core small {

    color: #aabbd0;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .15em;
}


.map-core strong {

    margin-top: 10px;

    font-size: 22px;

    letter-spacing: -.02em;
}


.map-core em {

    margin-top: 4px;

    color: #9badc5;

    font-size: 6px;

    font-style: normal;

    letter-spacing: .14em;
}


.map-axis {

    position: absolute;

    background: #b7c0c3;

    z-index: 1;
}


.axis-one {

    width: 1px;

    height: 90%;

    left: 50%;

    top: 5%;
}


.axis-two {

    height: 1px;

    width: 90%;

    left: 5%;

    top: 50%;
}


/* =========================================================
   PRINCIPLE
========================================================= */

.light {

    background: var(--paper-light);
}


.two-column h2 {

    font-size: clamp(50px,5vw,74px);
}


.two-column h2 span {

    display: block;

    color: #7a858f;
}


.principle-grid {

    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(4,1fr);

    border-top: 1px solid var(--line);

    border-left: 1px solid var(--line);
}


.principle-grid > div {

    min-height: 190px;

    padding: 25px;

    border-right: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


.principle-grid span {

    color: #818b94;

    font-size: 8px;
}


.principle-grid strong {

    display: block;

    margin-top: 42px;

    font-size: 9px;

    letter-spacing: .11em;
}


.principle-grid p {

    margin: 12px 0 0;

    color: #65717b;

    font-size: 10px;

    line-height: 1.7;
}


/* =========================================================
   NAVY SECTIONS
========================================================= */

.navy {

    background: var(--navy);

    color: white;
}


.dark-heading h2 span {

    color: #7d91af;
}


.dark-heading > p {

    margin: 0;

    color: #c1cedd;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   PIPELINE
========================================================= */

.pipeline {

    margin-top: 70px;

    border: 1px solid var(--dark-line);
}


.pipeline-stage {

    min-height: 88px;

    padding: 0 25px;

    display: grid;

    grid-template-columns: 60px 1fr 1.2fr;

    align-items: center;

    border-bottom: 1px solid var(--dark-line);
}


.pipeline-stage:last-child {

    border-bottom: 0;
}


.stage-number {

    color: #8195b0;

    font-size: 8px;
}


.stage-name {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;
}


.stage-detail {

    color: #9eafc4;

    font-size: 10px;
}


.pipeline-stage.focus {

    background: #17386e;
}


.pipeline-arrow {

    height: 27px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-bottom: 1px solid var(--dark-line);

    color: #8195b0;
}


.runtime-statement {

    margin-top: 45px;

    padding-top: 22px;

    border-top: 1px solid var(--dark-line);

    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 20px;
}


.runtime-statement span {

    color: #8297b1;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .14em;
}


.runtime-statement strong {

    color: #d3dce7;

    font-size: 9px;

    letter-spacing: .1em;
}


/* =========================================================
   DOMAIN ARCHITECTURE
========================================================= */

.domain-architecture {

    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(3,1fr);

    border-top: 1px solid var(--line);

    border-left: 1px solid var(--line);
}


.domain-column {

    min-height: 460px;

    padding: 27px;

    display: flex;

    flex-direction: column;

    border-right: 1px solid var(--line);

    border-bottom: 1px solid var(--line);

    transition:
        background .2s ease,
        transform .2s ease;
}


.domain-column:hover {

    background: #e6e4dd;

}


.domain-column.land {

    background: #ebe9e2;
}


.domain-column.planet {

    background: #f7f6f1;
}


.domain-header {

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.domain-header span {

    color: #818b93;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .15em;
}


.domain-header strong {

    font-size: 8px;

    letter-spacing: .12em;
}


.domain-system {

    margin-top: 80px;

    font-size: 31px;

    font-weight: 800;

    letter-spacing: -.05em;
}


.domain-state {

    margin-top: 55px;

    padding-top: 17px;

    border-top: 1px solid var(--line);
}


.domain-state small {

    display: block;

    color: #818b93;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .14em;
}


.domain-state strong {

    display: block;

    margin-top: 8px;

    color: var(--blue);

    font-size: 10px;

    letter-spacing: .1em;
}


.domain-capabilities {

    margin-top: 30px;

    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}


.domain-capabilities span {

    padding: 6px 7px;

    border: 1px solid #bdc2c2;

    color: #5e6973;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .1em;
}


.domain-enter {

    margin-top: auto;

    padding-top: 30px;

    color: var(--blue);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .09em;
}


/* =========================================================
   LAYERS
========================================================= */

.layers-section {

    background: var(--paper);
}


.layers-map {

    margin-top: 70px;

    border-top: 1px solid var(--line);

    border-left: 1px solid var(--line);
}


.layer-row {

    min-height: 100px;

    padding: 0 25px;

    display: grid;

    grid-template-columns: 190px 1fr 1.2fr;

    align-items: center;

    border-right: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


.layer-id {

    color: #7d878f;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .08em;
}


.layer-row strong {

    font-size: 10px;

    letter-spacing: .1em;
}


.layer-row p {

    margin: 0;

    color: #66727c;

    font-size: 10px;

    line-height: 1.65;
}


.layer-row.highlight {

    background: var(--navy);

    color: white;
}


.layer-row.highlight .layer-id,
.layer-row.highlight p {

    color: #a9b9ce;
}


/* =========================================================
   CROSS DOMAIN COMPUTING
========================================================= */

.cross-domain-section {

    background: var(--blue);

    color: white;
}


.cross-computing {

    margin-top: 70px;

    min-height: 430px;

    display: grid;

    grid-template-columns:
        1fr
        1.2fr
        1fr;

    grid-template-rows:
        1fr
        1fr;

    gap: 1px;

    background: rgba(255,255,255,.17);

    border: 1px solid rgba(255,255,255,.17);
}


.cross-source,
.cross-operation {

    background: var(--blue);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 25px;
}


.cross-source:nth-child(1) {

    grid-column: 1;

    grid-row: 1 / 3;
}


.cross-source:nth-child(3) {

    grid-column: 3;

    grid-row: 1;
}


.cross-source:nth-child(4) {

    grid-column: 3;

    grid-row: 2;
}


.cross-operation {

    grid-column: 2;

    grid-row: 1 / 3;

    background: #0b2550;
}


.cross-source small {

    color: #aebed2;

    font-size: 7px;

    letter-spacing: .14em;
}


.cross-source strong {

    margin-top: 10px;

    font-size: 25px;

    letter-spacing: -.03em;
}


.cross-source span {

    margin-top: 5px;

    color: #9fb0c7;

    font-size: 6px;

    letter-spacing: .12em;
}


.cross-operation span {

    color: #9fb2ca;

    font-size: 7px;

    letter-spacing: .14em;
}


.cross-operation strong {

    margin-top: 12px;

    font-size: 20px;

    letter-spacing: -.02em;
}


.cross-operation small {

    margin-top: 8px;

    color: #899eb9;

    font-size: 6px;

    letter-spacing: .12em;
}


.cross-statement {

    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.2);

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 12px;

    color: #d0dbea;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .14em;
}


.cross-statement span {

    color: #8197b4;
}


/* =========================================================
   GOVERNANCE
========================================================= */

.governance-grid {

    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(3,1fr);

    border-top: 1px solid var(--dark-line);

    border-left: 1px solid var(--dark-line);
}


.governance-grid > div {

    min-height: 175px;

    padding: 27px;

    border-right: 1px solid var(--dark-line);

    border-bottom: 1px solid var(--dark-line);
}


.governance-grid span {

    display: block;

    color: #8297b1;

    font-size: 8px;

    letter-spacing: .1em;
}


.governance-grid strong {

    display: block;

    margin-top: 40px;

    font-size: 9px;

    letter-spacing: .12em;
}


.governance-grid p {

    margin: 13px 0 0;

    color: #94a5ba;

    font-size: 10px;

    line-height: 1.65;
}


/* =========================================================
   FINAL
========================================================= */

.architecture-final {

    padding: 145px 0;

    background: var(--paper);

    text-align: center;
}


.final-code {

    color: var(--blue);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .2em;
}


.architecture-final h2 {

    margin: 30px 0 0;

    font-size: clamp(55px,7vw,100px);

    line-height: .9;

    letter-spacing: -.075em;
}


.architecture-final h2 span {

    display: block;

    color: #7c868f;
}


.architecture-final > .container > p {

    margin-top: 30px;

    color: #68737d;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .17em;
}


.final-links {

    margin-top: 45px;

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}


.final-links a {

    padding: 11px 16px;

    border: 1px solid #bfc3c2;

    color: var(--blue);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .1em;

    transition:
        background .2s ease,
        color .2s ease;
}


.final-links a:hover {

    background: var(--navy);

    color: white;

    border-color: var(--navy);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    background: #06162f;

    color: #cbd4df;
}


.footer-grid {

    padding-top: 70px;

    padding-bottom: 65px;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 55px;
}


.footer-identity strong {

    display: block;

    color: white;

    font-size: 25px;

    letter-spacing: -.03em;
}


.footer-identity small {

    display: block;

    margin-top: 2px;

    color: #7e91aa;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .18em;
}


.footer-identity p {

    max-width: 360px;

    margin-top: 20px;

    color: #8495aa;

    font-size: 10px;

    line-height: 1.7;
}


.footer-column {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-column label {

    margin-bottom: 10px;

    color: #71849e;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .15em;
}


.footer-column a,
.footer-column span {

    color: #c4ceda;

    font-size: 10px;
}


.footer-column a:hover {

    color: white;
}


.footer-bottom {

    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top: 1px solid rgba(255,255,255,.13);

    color: #6f8198;

    font-size: 8px;

    letter-spacing: .1em;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .hero-grid,
    .two-column {

        grid-template-columns: 1fr;

        gap: 50px;
    }


    .principle-grid {

        grid-template-columns: repeat(2,1fr);
    }


    .domain-architecture {

        grid-template-columns: 1fr;
    }


    .domain-column {

        min-height: 400px;
    }


    .layer-row {

        grid-template-columns: 150px 1fr;

        gap: 10px;
    }


    .layer-row p {

        grid-column: 2;
    }


    .governance-grid {

        grid-template-columns: repeat(2,1fr);
    }


    .footer-grid {

        grid-template-columns: 1.5fr 1fr 1fr;
    }


    .footer-identity {

        grid-column: 1 / -1;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .system-bar {

        padding: 0 18px;

        font-size: 7px;
    }


    .system-location {

        display: none;
    }


    .navigation {

        height: 76px;

        padding: 0 18px;
    }


    .brand {

        width: 145px;

        height: 60px;
    }


    .brand img {

        width: 140px;

        height: 56px;

        max-width: 140px;

        max-height: 56px;
    }


    .mobile-menu {

        display: block;
    }


    .main-nav {

        display: none;

        position: absolute;

        left: 0;
        right: 0;

        top: 104px;

        height: auto;

        padding: 10px 18px 18px;

        background: var(--paper);

        border-bottom: 1px solid var(--line);

        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }


    .main-nav.open {

        display: flex;
    }


    .main-nav a {

        height: 44px;

        border-bottom: 1px solid var(--line);
    }


    .container {

        width: 92vw;
    }


    .section {

        padding: 75px 0;
    }


    .hero {

        padding: 55px 0 70px;
    }


    .hero h1 {

        font-size: 57px;
    }


    .architecture-meta {

        grid-template-columns: 1fr;
    }


    .architecture-meta div {

        border-right: 0;

        border-bottom: 1px solid var(--line);
    }


    .architecture-meta div:last-child {

        border-bottom: 0;
    }


    .architecture-map {

        height: 400px;
    }


    .map-layer {

        width: 78%;
    }


    .map-core {

        width: 135px;

        height: 135px;
    }


    .principle-grid {

        grid-template-columns: 1fr;
    }


    .pipeline-stage {

        grid-template-columns: 45px 1fr;

        min-height: 95px;
    }


    .stage-detail {

        grid-column: 2;
    }


    .runtime-statement {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .domain-column {

        min-height: 400px;
    }


    .layer-row {

        grid-template-columns: 1fr;

        gap: 8px;

        padding: 22px;
    }


    .layer-row p {

        grid-column: auto;
    }


    .cross-computing {

        min-height: 520px;

        grid-template-columns: 1fr;

        grid-template-rows:
            1fr
            1fr
            1fr;
    }


    .cross-source:nth-child(1),
    .cross-source:nth-child(3),
    .cross-source:nth-child(4),
    .cross-operation {

        grid-column: auto;

        grid-row: auto;
    }


    .cross-source:nth-child(1) {

        order: 1;
    }


    .cross-operation {

        order: 2;
    }


    .cross-source:nth-child(3) {

        order: 3;
    }


    .cross-source:nth-child(4) {

        order: 4;
    }


    .governance-grid {

        grid-template-columns: 1fr;
    }


    .footer-grid {

        grid-template-columns: 1fr 1fr;
    }


    .footer-identity {

        grid-column: 1 / -1;
    }


    .footer-bottom {

        min-height: auto;

        padding: 18px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;
    }


    * {

        transition: none !important;
    }

}