/* ============================================================
   ERAYA INTELLIGENCE SYSTEM
   GOVERNANCE
   ============================================================ */

:root {
    --navy: #071a3d;
    --navy-deep: #05142f;
    --navy-soft: #102d61;

    --ink: #0a1424;
    --grey: #707b88;
    --light-grey: #9aa4af;

    --paper: #f5f3ed;
    --paper-soft: #faf9f5;
    --white: #ffffff;

    --line: #cbd0d3;
    --line-dark: #263b5b;

    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--paper);
    color: var(--ink);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* ============================================================
   SYSTEM BAR
   ============================================================ */

.system-bar {
    min-height: 30px;

    padding:
        0
        max(28px, calc((100% - 1240px) / 2));

    background: var(--navy);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.system-bar .slash {
    margin: 0 10px;
    color: #7f91ae;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    min-height: 88px;

    padding:
        0
        max(28px, calc((100% - 1240px) / 2));

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    background: rgba(245, 243, 237, 0.98);

    position: relative;
    z-index: 20;
}

.brand {
    width: 112px;

    display: flex;
    align-items: center;
}

.brand img {
    width: 112px;
    height: auto;

    object-fit: contain;

    filter: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;

    font-size: 10px;
    font-weight: 700;

    color: var(--ink);

    padding: 34px 0 31px;

    white-space: nowrap;
}

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 18px;

    height: 2px;

    background: transparent;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    background: var(--navy);
}


/* ============================================================
   COMMON
   ============================================================ */

.section-light {
    background: var(--paper);
}

.section-navy {
    background: var(--navy);
    color: var(--white);
}

.eyebrow {
    color: var(--navy);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #9cb3d4;
}

.section-label {
    margin-top: 52px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--navy);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    max-width: var(--max-width);

    margin: 0 auto;

    min-height: 650px;

    padding:
        78px 0
        86px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(450px, .95fr);

    gap: 70px;

    align-items: center;
}

.hero-left {
    padding-right: 20px;
}

.hero h1 {
    margin: 24px 0 0;

    max-width: 690px;

    font-size: clamp(62px, 7.2vw, 108px);

    line-height: .88;

    letter-spacing: -6px;

    font-weight: 800;
}

.hero h1 span {
    display: block;

    color: #7d8791;
}

.hero-description {
    max-width: 650px;

    margin: 42px 0 0;

    color: #40536d;

    font-size: 16px;
    line-height: 1.8;
}


/* ============================================================
   ARCHITECTURE FRAME
   ============================================================ */

.architecture-frame {
    width: 100%;
    min-height: 530px;

    border: 1px solid #b9c2c8;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(7, 26, 61, .055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(7, 26, 61, .055) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}

.frame-header {
    height: 48px;

    padding: 0 16px;

    border-bottom: 1px solid #b9c2c8;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #53677f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.6px;
}

.governance-diagram {
    position: absolute;

    inset: 48px 0 0;

    min-height: 480px;
}

.diagram-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid #b8c3cd;

    border-radius: 50%;
}

.ring-one {
    width: 310px;
    height: 310px;
}

.ring-two {
    width: 420px;
    height: 420px;

    border-style: dashed;

    opacity: .65;
}

.governance-node {
    width: 100px;
    height: 100px;

    border: 1px solid #aebbc7;

    background: rgba(250, 249, 245, .92);

    border-radius: 50%;

    position: absolute;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    z-index: 3;
}

.governance-node small {
    color: #708096;

    font-size: 7px;

    letter-spacing: 1.4px;

    margin-bottom: 7px;
}

.governance-node strong {
    color: var(--navy);

    font-size: 9px;

    letter-spacing: 1.2px;
}

.node-top {
    top: 18px;
    left: 50%;

    transform: translateX(-50%);
}

.node-right {
    right: 30px;
    top: 50%;

    transform: translateY(-50%);
}

.node-bottom {
    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);
}

.node-left {
    left: 30px;
    top: 50%;

    transform: translateY(-50%);
}

.governance-core {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background: var(--navy);

    color: white;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    box-shadow:
        0 0 0 12px rgba(7, 26, 61, .035),
        0 0 0 24px rgba(7, 26, 61, .025);
}

.governance-core small {
    color: #9cb1cf;

    font-size: 7px;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.governance-core strong {
    font-size: 15px;

    letter-spacing: .5px;
}

.governance-core span {
    margin-top: 10px;

    color: #8095b4;

    font-size: 7px;

    letter-spacing: 1.4px;
}


/* ============================================================
   PRINCIPLE
   ============================================================ */

.principle {
    max-width: var(--max-width);

    margin: 0 auto;

    padding:
        120px 0
        130px;

    border-top: 1px solid var(--line);

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 100px;
}

.principle h2 {
    margin: 28px 0 0;

    max-width: 760px;

    font-size: clamp(48px, 5.5vw, 82px);

    line-height: .94;

    letter-spacing: -4px;

    font-weight: 800;
}

.principle h2 span {
    color: #7c8792;
}

.principle-copy {
    padding-top: 42px;
}

.principle-copy p {
    margin: 0 0 30px;

    color: #40536d;

    font-size: 14px;
    line-height: 1.9;
}


/* ============================================================
   SECTION INTRO
   ============================================================ */

.section-intro {
    max-width: var(--max-width);

    margin: 0 auto;

    padding-bottom: 68px;

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 100px;
}

.section-intro h2 {
    grid-column: 1;

    margin: 25px 0 0;

    font-size: clamp(48px, 5vw, 76px);

    line-height: .95;

    letter-spacing: -4px;
}

.section-intro h2 span {
    color: #7d8791;
}

.section-intro p {
    grid-column: 2;

    grid-row: 1 / span 2;

    align-self: end;

    color: #40536d;

    font-size: 14px;
    line-height: 1.85;

    margin: 0;
}


/* ============================================================
   GOVERNANCE LAYERS
   ============================================================ */

.governance-layers {
    padding:
        120px
        max(28px, calc((100% - 1240px) / 2))
        130px;

    border-top: 1px solid var(--line);
}

.governance-grid {
    max-width: var(--max-width);

    margin: 0 auto;

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);

    display: grid;

    grid-template-columns: repeat(2, 1fr);
}

.governance-card {
    min-height: 330px;

    padding: 32px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    position: relative;
}

.card-number {
    color: #7c8b9c;

    font-size: 9px;

    letter-spacing: 1.5px;

    margin-bottom: 78px;
}

.governance-card h3 {
    margin: 0 0 18px;

    font-size: 25px;

    letter-spacing: -1px;
}

.governance-card p {
    max-width: 500px;

    margin: 0;

    color: #4b5d73;

    font-size: 13px;

    line-height: 1.75;
}

.card-meta {
    position: absolute;

    bottom: 28px;
    left: 32px;

    color: #718197;

    font-size: 8px;

    letter-spacing: 1.3px;
}


/* ============================================================
   TRUST
   ============================================================ */

.trust-section {
    padding:
        120px
        max(28px, calc((100% - 1240px) / 2))
        130px;
}

.trust-header {
    max-width: var(--max-width);

    margin: 0 auto 72px;

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 100px;
}

.trust-header h2 {
    margin: 26px 0 0;

    font-size: clamp(52px, 5.5vw, 82px);

    line-height: .92;

    letter-spacing: -4px;
}

.trust-header h2 span {
    color: #8497b3;
}

.trust-header p {
    align-self: end;

    margin: 0;

    color: #b6c4d7;

    font-size: 14px;

    line-height: 1.85;
}

.trust-grid {
    max-width: var(--max-width);

    margin: 0 auto;

    border-top: 1px solid var(--line-dark);

    display: grid;

    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    min-height: 310px;

    padding: 30px 28px;

    border-right: 1px solid var(--line-dark);
}

.trust-item:first-child {
    border-left: 1px solid var(--line-dark);
}

.trust-number {
    display: block;

    color: #7e96b7;

    font-size: 8px;

    letter-spacing: 1.5px;

    margin-bottom: 100px;
}

.trust-item h3 {
    margin: 0 0 18px;

    font-size: 20px;

    letter-spacing: -.5px;
}

.trust-item p {
    margin: 0;

    color: #aebed2;

    font-size: 12px;

    line-height: 1.75;
}


/* ============================================================
   LIFECYCLE
   ============================================================ */

.lifecycle {
    padding:
        120px
        max(28px, calc((100% - 1240px) / 2))
        130px;

    border-bottom: 1px solid var(--line);
}

.lifecycle .section-intro {
    padding-bottom: 80px;
}

.lifecycle-flow {
    max-width: var(--max-width);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr auto
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: stretch;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.flow-step {
    min-height: 150px;

    padding: 18px 14px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background: transparent;

    transition: .2s ease;
}

.flow-step span {
    color: #7c8b9b;

    font-size: 8px;
}

.flow-step strong {
    color: var(--navy);

    font-size: 8px;

    letter-spacing: 1px;
}

.flow-step small {
    color: #66778d;

    font-size: 8px;

    line-height: 1.5;
}

.flow-step.active {
    background: var(--navy);
}

.flow-step.active span,
.flow-step.active strong,
.flow-step.active small {
    color: white;
}

.flow-arrow {
    min-width: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #84909d;

    font-size: 14px;
}


/* ============================================================
   CROSS DOMAIN
   ============================================================ */

.cross-domain {
    padding:
        120px
        max(28px, calc((100% - 1240px) / 2))
        130px;
}

.domain-governance {
    max-width: var(--max-width);

    margin: 0 auto;

    border-top: 1px solid var(--line);
}

.domain-row {
    min-height: 190px;

    padding: 28px 18px;

    display: grid;

    grid-template-columns:
        70px
        250px
        1fr
        120px;

    gap: 30px;

    align-items: center;

    border-bottom: 1px solid var(--line);

    transition:
        background .2s ease,
        padding .2s ease;
}

.domain-row:hover {
    background: #eceae4;

    padding-left: 26px;
}

.domain-index {
    color: #7d8a98;

    font-size: 9px;

    letter-spacing: 1.5px;
}

.domain-name small {
    display: block;

    margin-bottom: 13px;

    color: #758499;

    font-size: 8px;

    letter-spacing: 1.6px;
}

.domain-name strong {
    display: block;

    color: var(--navy);

    font-size: 30px;

    letter-spacing: -1.5px;
}

.domain-description {
    max-width: 620px;

    color: #40536d;

    font-size: 12px;

    line-height: 1.8;
}

.domain-link {
    color: var(--navy);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-align: right;
}


/* ============================================================
   PRINCIPLES DARK
   ============================================================ */

.principles-dark {
    padding:
        120px
        max(28px, calc((100% - 1240px) / 2))
        120px;
}

.principles-heading {
    max-width: var(--max-width);

    margin: 0 auto 75px;
}

.principles-heading h2 {
    max-width: 850px;

    margin: 25px 0 0;

    font-size: clamp(50px, 5.5vw, 82px);

    line-height: .94;

    letter-spacing: -4px;
}

.principles-heading h2 span {
    color: #8296b5;
}

.principles-list {
    max-width: var(--max-width);

    margin: 0 auto;

    border-top: 1px solid var(--line-dark);
}

.principle-row {
    min-height: 110px;

    display: grid;

    grid-template-columns: 60px 280px 1fr;

    gap: 25px;

    align-items: center;

    border-bottom: 1px solid var(--line-dark);
}

.principle-row > span {
    color: #7288a7;

    font-size: 8px;

    letter-spacing: 1.4px;
}

.principle-row strong {
    font-size: 14px;
}

.principle-row p {
    max-width: 600px;

    margin: 0;

    color: #aebed3;

    font-size: 11px;

    line-height: 1.7;
}


/* ============================================================
   CLOSING
   ============================================================ */

.closing {
    max-width: var(--max-width);

    margin: 0 auto;

    padding:
        110px 0
        115px;
}

.closing-rule {
    width: 100%;

    height: 1px;

    background: var(--line);

    margin-bottom: 34px;
}

.closing h2 {
    max-width: 950px;

    margin: 25px 0 0;

    font-size: clamp(45px, 5vw, 76px);

    line-height: .95;

    letter-spacing: -3.5px;
}

.closing h2 span {
    color: #7d8791;
}

.closing-meta {
    margin-top: 46px;

    color: #6e7d8f;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.7px;
}

.closing-meta span {
    margin: 0 10px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--navy);

    color: white;

    padding:
        64px
        max(28px, calc((100% - 1240px) / 2))
        26px;

    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        1fr;

    gap: 50px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-mark {
    color: white;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: -.7px;

    margin-bottom: 20px;
}

.footer-mark span {
    display: block;

    margin-top: 4px;

    color: #8296b5;

    font-size: 7px;

    letter-spacing: 2px;
}

.footer-brand p {
    max-width: 290px;

    color: #9caec8;

    font-size: 11px;

    line-height: 1.7;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-column span {
    color: #7386a4;

    font-size: 8px;

    letter-spacing: 1.8px;

    font-weight: 800;

    margin-bottom: 9px;
}

.footer-column a {
    color: #d4dce8;

    font-size: 10px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    grid-column: 1 / -1;

    border-top: 1px solid #253653;

    padding-top: 18px;

    margin-top: 25px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    color: #7587a2;

    font-size: 8px;

    letter-spacing: .5px;
}

.footer-bottom span:nth-child(2) {
    text-align: center;
}

.footer-bottom a {
    color: #9caec8;

    text-align: right;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

    .main-nav {
        gap: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        max-width: 700px;
    }

    .principle,
    .section-intro,
    .trust-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-intro p {
        grid-column: 1;
        grid-row: auto;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(3) {
        border-left: 1px solid var(--line-dark);
    }

    .lifecycle-flow {
        grid-template-columns: repeat(4, 1fr);
    }

    .flow-arrow {
        display: none;
    }

    .domain-row {
        grid-template-columns:
            60px
            210px
            1fr;
    }

    .domain-link {
        display: none;
    }

    .principle-row {
        grid-template-columns:
            50px
            230px
            1fr;
    }

}


@media (max-width: 760px) {

    .system-bar {
        padding: 0 20px;

        font-size: 7px;
    }

    .system-bar > div:last-child {
        display: none;
    }

    .site-header {
        min-height: 76px;

        padding: 0 20px;
    }

    .brand,
    .brand img {
        width: 92px;
    }

    .main-nav {
        gap: 12px;

        overflow-x: auto;
    }

    .main-nav a {
        font-size: 8px;

        padding: 28px 0 25px;
    }

    .main-nav a:nth-child(1),
    .main-nav a:nth-child(2),
    .main-nav a:nth-child(3) {
        display: none;
    }

    .hero {
        padding:
            65px 20px
            80px;

        min-height: auto;

        gap: 55px;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 78px);

        letter-spacing: -4px;
    }

    .section-label {
        margin-top: 40px;
    }

    .hero-description {
        font-size: 13px;
    }

    .architecture-frame {
        min-height: 430px;
    }

    .ring-one {
        width: 230px;
        height: 230px;
    }

    .ring-two {
        width: 310px;
        height: 310px;
    }

    .governance-core {
        width: 135px;
        height: 135px;
    }

    .governance-node {
        width: 76px;
        height: 76px;
    }

    .node-left {
        left: 12px;
    }

    .node-right {
        right: 12px;
    }

    .principle,
    .governance-layers,
    .trust-section,
    .lifecycle,
    .cross-domain,
    .principles-dark,
    .closing {
        padding-left: 20px;
        padding-right: 20px;
    }

    .principle {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    .principle h2,
    .section-intro h2,
    .trust-header h2,
    .principles-heading h2,
    .closing h2 {
        letter-spacing: -2.5px;
    }

    .governance-grid {
        grid-template-columns: 1fr;
    }

    .governance-card {
        min-height: 300px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-item,
    .trust-item:nth-child(3) {
        border-left: 1px solid var(--line-dark);
        border-bottom: 1px solid var(--line-dark);
    }

    .lifecycle-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-step {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .domain-row {
        grid-template-columns: 42px 1fr;

        gap: 16px;

        padding: 26px 8px;
    }

    .domain-description {
        grid-column: 2;
    }

    .domain-link {
        display: none;
    }

    .principle-row {
        grid-template-columns: 35px 1fr;

        gap: 15px;

        padding: 22px 0;
    }

    .principle-row p {
        grid-column: 2;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;

        padding:
            55px 20px
            25px;

        gap: 40px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;

        padding-right: 0;
    }

    .footer-bottom {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .footer-bottom span:nth-child(2),
    .footer-bottom a {
        text-align: left;
    }

}


@media (max-width: 480px) {

    .main-nav a:nth-child(4) {
        display: none;
    }

    .hero h1 {
        font-size: 50px;
    }

    .architecture-frame {
        min-height: 370px;
    }

    .governance-node {
        width: 68px;
        height: 68px;
    }

    .governance-node strong {
        font-size: 7px;
    }

    .governance-core {
        width: 118px;
        height: 118px;
    }

    .governance-core strong {
        font-size: 12px;
    }

    .ring-one {
        width: 190px;
        height: 190px;
    }

    .ring-two {
        width: 260px;
        height: 260px;
    }

    .node-left {
        left: 4px;
    }

    .node-right {
        right: 4px;
    }

    .lifecycle-flow {
        grid-template-columns: 1fr;
    }

}
/* ============================================================
   SUBTLE SYSTEM REVEAL
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity .55s ease,
        transform .55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}