/*
 * Aegis ORIENT — Unified Exposure Intelligence
 * Marketing site. Cedrus Strategic LLC.
 * Structural conventions inherited from cedrus/aegis sites; ORIENT palette.
 */

@charset "utf-8";

/* ============ TOKENS ============ */
:root {
    /* Palette — black field, off-white type, orange signature, blue action */
    --bg:           #080a0f;   /* near-black, faintly cool */
    --bg-2:         #0b0e15;   /* raised panel base */
    --surface:      rgba(255,255,255,0.022);
    --surface-2:    rgba(255,255,255,0.04);
    --hairline:     rgba(255,255,255,0.08);
    --hairline-2:   rgba(255,255,255,0.14);

    --text:         #e8eaed;   /* off-white, won't vibrate on black */
    --text-muted:   #9aa3af;
    --text-dim:     #616b7a;

    --orange:       #E8772E;   /* exact ring orange — the signature */
    --orange-soft:  rgba(232,119,46,0.14);
    --orange-line:  rgba(232,119,46,0.34);

    --blue:         #2f9fe0;   /* action / interactive */
    --blue-bright:  #43b0ee;
    --blue-soft:    rgba(47,159,224,0.14);
    --blue-line:    rgba(47,159,224,0.34);

    --teal:         #46e0d0;   /* star-fort wireframe accent, used sparingly */

    /* Type */
    --font-display: 'Sora', 'Inter', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1200px;
    --pad: 40px;
    --section-y: 120px;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient background — faint orange glow upper-right, blue lower-left, mostly black */
.bg-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 50% at 85% 8%, rgba(232,119,46,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 10% 95%, rgba(47,159,224,0.05) 0%, transparent 55%),
        linear-gradient(180deg, #080a0f 0%, #0a0d13 55%, #080a0f 100%);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ============ TYPE SCALE ============ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
.display-xl { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.01em; }
.eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
}
.eyebrow.blue { color: var(--blue); }

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(8,10,15,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
header.scrolled {
    padding: 13px 0;
    background: rgba(8,10,15,0.95);
    border-bottom-color: var(--hairline);
}
nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; text-decoration: none; transition: opacity 0.25s ease; }
.logo:hover { opacity: 0.82; }
.logo img { height: 51px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 9px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 7px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.nav-cta {
    background: var(--blue-soft);
    color: var(--blue-bright);
    border: 1px solid var(--blue-line);
}
.nav-links a.nav-cta:hover { background: rgba(47,159,224,0.22); color: #fff; }

/* Mobile nav */
.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; padding: 8px; gap: 5px; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-muted); transition: all 0.3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(8,10,15,0.98);
    backdrop-filter: blur(18px);
    padding: 18px var(--pad);
    display: none;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--hairline);
    z-index: 99;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    font-size: 0.95rem;
}
.mobile-nav a.nav-cta { color: var(--blue-bright); background: var(--blue-soft); }

/* ============ BUTTONS ============ */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    font-family: var(--font-body);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--blue);
    color: #04121c;
    border: 1px solid var(--blue);
}
.btn-primary:hover { background: var(--blue-bright); border-color: var(--blue-bright); transform: translateY(-2px); }
.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--hairline-2);
}
.btn-secondary:hover { color: var(--text); border-color: var(--orange-line); transform: translateY(-2px); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 110px;
    overflow: hidden;
}
.hero::before {
    /* faint ambient orange glow behind the synth, upper-right */
    content: '';
    position: absolute;
    right: 4%; top: 42%;
    width: 620px; height: 620px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(232,119,46,0.10) 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.hero-inner { max-width: 640px; }
.hero-inner .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; color: var(--text); }
.hero h1 .accent { color: var(--orange); }
.hero-lede {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 38px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-synth { display: flex; align-items: center; justify-content: center; }
.hero-synth canvas {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* ============ SECTION SCAFFOLD ============ */
section { position: relative; }
.section { padding: var(--section-y) 0; }
.section.alt { background: rgba(0,0,0,0.28); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); color: var(--text); margin-bottom: 18px; }
.section-head p { font-size: 1.1rem; color: var(--text-muted); }

/* Topper hairline accent (the deck's colored-bar-over-card motif) */
.topper { height: 3px; width: 48px; background: var(--orange); border-radius: 2px; margin-bottom: 20px; }
.topper.blue { background: var(--blue); }
.topper.center { margin-left: auto; margin-right: auto; }

/* ============ THE QUESTION (board ask) ============ */
.question {
    padding: var(--section-y) 0;
    text-align: center;
}
.question .quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    max-width: 900px;
    margin: 0 auto 28px;
}
.question .quote .hl { color: var(--orange); }
.question .attrib { color: var(--text-dim); font-size: 0.95rem; letter-spacing: 0.04em; }
.question .rule {
    width: 60px; height: 2px; background: var(--orange-line);
    margin: 0 auto 34px;
}

/* ============ ELEPHANT (five witnesses) ============ */
.elephant-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.elephant-figure {
    position: relative;
    border-radius: var(--radius);
    padding: 30px;
}
.elephant-figure::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 65% at 50% 55%, rgba(47,159,224,0.10) 0%, rgba(232,119,46,0.05) 45%, transparent 72%);
    border-radius: 50%;
    z-index: 0;
}
.elephant-figure img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 70px rgba(0,0,0,0.7)); }
.witness-list { display: flex; flex-direction: column; gap: 14px; }
.witness {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-left-width: 2px;
    border-radius: 0 10px 10px 0;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.witness:hover { background: var(--surface-2); border-left-color: var(--orange); }
.witness .who { font-family: var(--font-display); font-weight: 600; color: var(--text); min-width: 116px; font-size: 0.95rem; }
.witness .part { color: var(--text-muted); font-size: 0.92rem; }
.witness .part em { color: var(--orange); font-style: normal; }

/* WSL proof callout */
.wsl {
    margin-top: 40px;
    padding: 28px 30px;
    background: var(--surface);
    border: 1px solid var(--orange-line);
    border-radius: var(--radius);
}
.wsl h4 { font-size: 1.05rem; color: var(--orange); margin-bottom: 12px; letter-spacing: 0.02em; }
.wsl p { color: var(--text-muted); font-size: 0.96rem; }
.wsl p + p { margin-top: 10px; }
.wsl .resolve { color: var(--text); }
.wsl .resolve strong { color: var(--blue-bright); font-weight: 600; }

/* ============ SYNTHESIS (what ORIENT does) ============ */
.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.card {
    padding: 38px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--orange-line); background: var(--surface-2); transform: translateY(-3px); }
.card .num { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 14px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card p .hl { color: var(--orange); font-weight: 500; }

/* ============ HEADLINE CAPABILITY ============ */
.capability { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cap-query {
    background: var(--bg-2);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius);
    padding: 32px 34px;
    position: relative;
    overflow: hidden;
}
.cap-query::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--orange), var(--blue));
}
.cap-query .label { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.cap-query .q {
    font-family: var(--font-display);
    font-size: 1.32rem;
    line-height: 1.45;
    color: var(--text);
    font-weight: 500;
}
.cap-query .q .exp { color: var(--orange); }
.cap-query .q .vuln { color: var(--blue-bright); }
.cap-query .q .data { color: var(--teal); }
.cap-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); color: var(--text); margin-bottom: 20px; }
.cap-text p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 16px; }
.cap-text p strong { color: var(--text); font-weight: 600; }
.cap-text .takeaway { color: var(--orange); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-top: 8px; }

/* ============ NO-EGRESS BAND ============ */
.egress { text-align: center; }
.egress .tags { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.egress .tag {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text);
    padding: 11px 22px;
    border: 1px solid var(--hairline-2);
    border-radius: 100px;
    background: var(--surface);
}
.egress .tag span { color: var(--blue-bright); }

/* ============ CORRELATION (axes + sources) ============ */
.axes {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.axis {
    flex: 1 1 0;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 22px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-top: 2px solid var(--orange);
    border-radius: 0 0 10px 10px;
    transition: background 0.25s ease, transform 0.25s ease;
}
.axis:hover { background: var(--surface-2); transform: translateY(-3px); }
.axis-k { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.axis-v { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
.axis-x {
    display: flex; align-items: center;
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 600;
    color: var(--orange);
    opacity: 0.7;
    flex: 0 0 auto;
}
.axes-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 780px;
    margin: 0 auto 64px;
}
.axes-note .hl { color: var(--text); font-weight: 500; }

.speaks {
    background: var(--bg-2);
    border: 1px solid var(--hairline-2);
    border-radius: 16px;
    padding: 44px 44px 40px;
    margin-bottom: 40px;
}
.speaks-head { max-width: 680px; margin-bottom: 30px; }
.speaks-head h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 12px; }
.speaks-head p { color: var(--text-muted); font-size: 0.98rem; }
.source-field { display: flex; flex-wrap: wrap; gap: 12px; }
.src {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--hairline-2);
    border-radius: 100px;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.src:hover { border-color: var(--orange-line); }
.src.more { color: var(--orange); border-color: var(--orange-line); background: var(--orange-soft); }

.coverage-note { text-align: center; margin: 0 auto; color: var(--text-muted); font-size: 1rem; max-width: 760px; }
.coverage-note .hl { color: var(--orange); }

/* ============ PARTNERS STRIP (on index) ============ */
.partners-strip { text-align: center; }
.partners-strip .inner {
    max-width: 760px; margin: 0 auto;
    padding: 56px 48px;
    background: var(--surface);
    border: 1px solid var(--hairline-2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.partners-strip .inner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(232,119,46,0.08), transparent 70%);
    pointer-events: none;
}
.partners-strip h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--text); margin-bottom: 16px; position: relative; }
.partners-strip p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 30px; position: relative; }

/* ============ CONTACT ============ */
.contact { text-align: center; }
.contact-card {
    max-width: 560px; margin: 30px auto 0;
    display: inline-flex; align-items: center; gap: 18px;
    padding: 26px 34px;
    background: var(--surface);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius);
    text-align: left;
}
.contact-card .ic { width: 42px; height: 42px; color: var(--blue); flex: none; }
.contact-card .ic svg { width: 100%; height: 100%; }
.contact-card .lbl { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-display); }
.contact-card a { color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.contact-card a:hover { color: var(--blue-bright); }

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--hairline);
    padding: 56px 0 40px;
    background: rgba(0,0,0,0.3);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-inner img { height: 30px; width: auto; opacity: 0.85; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-legal { width: 100%; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-dim); font-size: 0.84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal .tm { max-width: 620px; }

/* ============ PARTNERS PAGE ============ */
.page-hero {
    padding: 180px var(--pad) 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero .ring-bg {
    position: absolute; right: -10%; top: -20%;
    width: min(50vw, 560px); opacity: 0.5; pointer-events: none; z-index: 0;
    filter: drop-shadow(0 0 50px rgba(232,119,46,0.15));
}
.page-hero .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero .eyebrow { display: block; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); color: var(--text); margin-bottom: 22px; }
.page-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

.partner-body { padding: 40px 0 var(--section-y); }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.partner-grid .card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.partner-grid .card p { font-size: 0.94rem; }
.partner-cta {
    text-align: center;
    max-width: 720px; margin: 0 auto;
    padding: 56px 48px;
    background: var(--surface);
    border: 1px solid var(--hairline-2);
    border-radius: 16px;
    position: relative; overflow: hidden;
}
.partner-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(232,119,46,0.08), transparent 70%);
    pointer-events: none;
}
.partner-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); color: var(--text); margin-bottom: 16px; position: relative; }
.partner-cta p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto 14px; position: relative; }
.partner-cta .rep { color: var(--orange); font-family: var(--font-display); font-weight: 500; position: relative; margin-bottom: 28px; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    :root { --section-y: 88px; --pad: 24px; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero { padding-top: 120px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 8px; }
    .hero-synth { order: 2; margin-top: 8px; }
    .hero-synth canvas { max-width: 380px; }
    .hero::before { right: 50%; transform: translate(50%,-50%); top: 70%; }
    .elephant-wrap, .capability { grid-template-columns: 1fr; gap: 40px; }
    .capability .cap-query { order: 2; }
    .split, .partner-grid { grid-template-columns: 1fr; }
    .axes { flex-direction: column; align-items: stretch; }
    .axis { border-top: 2px solid var(--orange); border-radius: 0 0 10px 10px; }
    .axis-x { justify-content: center; padding: 2px 0; }
    .speaks { padding: 32px 26px; }
    .witness .who { min-width: 96px; }
}

@media (max-width: 560px) {
    .hero { padding-top: 130px; }
    .contact-card { flex-direction: column; text-align: center; align-items: center; }
    .footer-legal { flex-direction: column; }
}

/* ============ A11Y ============ */
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============ PARTNERS PAGE — hero animation + partner logo ============ */
/* Centered canvas hero (overrides the decorative .ring-bg placement so the
   synthesis animation reads as a deliberate visual on the partners page). */
.page-hero .ring-bg#hero-anim,
.page-hero .ring-bg.is-canvas {
    position: relative;
    right: auto; top: auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 40px;
    opacity: 1;
    display: flex; align-items: center; justify-content: center;
}
.page-hero .ring-bg.is-canvas canvas {
    width: 100%;
    max-width: 440px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* Arctiq partner logo inside the CTA block */
.partner-cta .partner-logo {
    display: inline-flex; align-items: center; justify-content: center;
    margin: 8px auto 28px; position: relative;
}
.partner-cta .partner-logo img {
    height: 40px; width: auto; max-width: 260px;
    opacity: 0.95; transition: opacity 0.2s ease;
}
.partner-cta .partner-logo:hover img { opacity: 1; }
.partner-cta .eyebrow { display: block; margin-bottom: 10px; position: relative; }
