/*
 * Local fonts
 *
 * Inter and DM Mono are served directly by Kairon.
 * No external font provider is required.
 */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter/Inter-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter/Inter-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter/Inter-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/dm-mono/DMMono-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/dm-mono/DMMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "DM Mono";
    src: url("../fonts/dm-mono/DMMono-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

Work divisions

.work-division {
    width: 100%;
    margin-top: 55px;
    padding-top: 30px;
    border-top: 1px solid rgba(17,17,17,.35);
}

.work-division h2 {
    margin: 20px 0 20px;
    font-size: clamp(32px, 3.5vw, 50px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 500;
}

.work-division .systems-intro {
    max-width: 760px;
    margin: 0;
}

.division-work {
    margin-top: 70px;
}

.division-intro {
    max-width: 700px;
    margin: 18px 0 32px;
    font-size: 17px;
    line-height: 1.6;
}


/* Global design variables */
:root {
    --paper:#f1f0eb;
    --ink:#111;
    --muted:#74726b;
    --line:#c9c6bd;
    --max:1400px
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font:16px/1.55 Inter,Arial,sans-serif
}

a {
    color:inherit;
    text-decoration:none
}

header,main,/* Footer */
footer {
    max-width:var(--max);
    margin:auto
}

header {
    height:86px;
    padding:0 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid rgba(17,17,17,.18);
    position:relative;
    z-index:20
}

/* Header / navigation */
.brand {
    display:flex;
    align-items:center;
    gap:13px;
    font-size:12px;
    font-weight:600;
    letter-spacing:.15em
}

.brand-symbol {
    display: block;
    width: 42px;
    height: auto;
    flex: 0 0 auto;
}

nav {
    display:flex;
    align-items:center;
    gap:30px;
    height:100%
}

nav>a,.nav-systems,.eyebrow {
    font:11px "DM Mono";
    letter-spacing:.1em;
    text-transform:uppercase
}

nav>a,.nav-systems {
    color:var(--muted);
    position:relative;
    display:flex;
    align-items:center;
    height:100%
}

nav>a:hover,.nav-systems:hover,nav .active {
    color:#111
}

nav>a.active:after,.nav-systems.active:after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:20px;
    height:1px;
    background:#111
}

.nav-dropdown {
    height:100%;
    display:flex;
    align-items:center;
    position:relative
}

.chev {
    font-size:13px;
    margin-left:5px;
    transform:translateY(-1px)
}

.dropdown-menu {
    position:absolute;
    top:68px;
    left:-18px;
    width:190px;
    padding:8px;
    background:#111;
    color:#f1f0eb;
    opacity:0;
    visibility:hidden;
    transform:translateY(-5px);
    transition:.16s
}

.nav-dropdown:hover .dropdown-menu,.nav-dropdown:focus-within .dropdown-menu {
    opacity:1;
    visibility:visible;
    transform:none
}

.dropdown-menu a {
    display:flex;
    justify-content:space-between;
    padding:13px 12px;
    font:10px "DM Mono";
    letter-spacing:.08em
}

.dropdown-menu a:hover {
    background:#262626
}

.eyebrow {
    font-size:11px
}

/* Main page sections */
.simple-cream,.systems-cream {
    min-height:650px;
    padding:100px 40px 90px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
    overflow:hidden
}

.simple-cream:before,
.systems-cream:before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    background:var(--page-gradient)
}

.simple-cream:after,
.systems-cream:after {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:var(--accent-gradient);
    mix-blend-mode:multiply;
    opacity:.56
}

/* Page-specific sunrise gradients */
.home-page {
    --page-gradient:radial-gradient(ellipse 90% 70% at 10% 100%,rgba(255,208,101,.42),transparent 63%),linear-gradient(145deg,#f4f1e8 22%,#f2dcc2 64%,#e8c7aa 100%);
    --accent-gradient:radial-gradient(ellipse 70% 48% at 4% 100%,rgba(255,226,84,.25),transparent 70%)
}

.about-page {
    --page-gradient:radial-gradient(ellipse 90% 70% at 36% 100%,rgba(236,145,112,.40),transparent 63%),linear-gradient(145deg,#f4f1e8 18%,#f0d4bf 62%,#dcae9d 100%);
    --accent-gradient:radial-gradient(ellipse 70% 50% at 30% 100%,rgba(210,70,62,.15),transparent 70%)
}

.systems-page {
    --page-gradient:radial-gradient(ellipse 90% 70% at 62% 100%,rgba(238,155,87,.38),transparent 63%),linear-gradient(145deg,#f4f1e8 18%,#efd8c1 62%,#dfb18e 100%);
    --accent-gradient:radial-gradient(ellipse 70% 50% at 60% 100%,rgba(240,130,35,.25),transparent 70%)
}

.contact-page {
    --page-gradient:radial-gradient(ellipse 90% 70% at 90% 100%,rgba(174,129,176,.36),transparent 63%),linear-gradient(145deg,#f4f1e8 18%,#ead7d1 62%,#c7adb9 100%);
    --accent-gradient:radial-gradient(ellipse 72% 52% at 96% 100%,rgba(116,73,150,.27),transparent 70%)
}

.demo-page {
    --page-gradient:radial-gradient(ellipse 90% 70% at 76% 100%,rgba(139,176,125,.34),transparent 63%),linear-gradient(145deg,#f4f1e8 18%,#e5dcc8 62%,#bac9ae 100%);
    --accent-gradient:radial-gradient(ellipse 72% 50% at 76% 100%,rgba(72,139,77,.24),transparent 70%)
}

.simple-cream h1,.systems-cream h1 {
    margin:24px 0 30px;
    font-size:clamp(80px,12vw,170px);
    line-height:.8;
    letter-spacing:-.075em;
    font-weight:500
}

.simple-cream>p {
    max-width:620px;
    font-size:clamp(20px,2vw,29px)
}

.simple-black {
    min-height:220px;
    background:#111;
    color:#f1f0eb;
    padding:60px 40px;
    display:flex;
    justify-content:space-between;
    align-items:end
}

.simple-black p {
    font-size:18px;
    margin:0
}

/* Systems page */
.system-selection {
    margin-top:65px;
    border-top:1px solid;
    border-bottom:1px solid;
    padding:28px 0;
    display:grid;
    grid-template-columns:90px 1fr auto;
    align-items:center;
    transition:padding .2s
}

.system-selection:hover {
    padding-left:12px;
    padding-right:12px
}

.system-no {
    font:11px "DM Mono";
    color:var(--muted)
}

.system-name {
    font-size:clamp(42px,6vw,82px);
    letter-spacing:-.055em
}

.system-arrow {
    font-size:30px
}

/* Demo page */
/* Extend the Demo sunrise behind the title, terminal surroundings,
   and lower Demo content. The terminal itself stays opaque black. */
.demo-page main {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.demo-page main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--page-gradient);
}

.demo-page main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent-gradient);
    mix-blend-mode: multiply;
    opacity: .56;
}

.demo-title {
    min-height:390px;
    padding:85px 40px 45px;
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:50px;
    position:relative;
    overflow:hidden
}

.demo-title h1 {
    margin:20px 0 0;
    font-size:clamp(65px,10vw,135px);
    line-height:.85;
    letter-spacing:-.07em;
    font-weight:500
}

.meta {
    text-align:right;
    color:var(--muted);
    font:10px/1.9 "DM Mono";
    letter-spacing:.08em
}

.shell {
    margin:15px 40px 80px;
    background:#0c0c0c;
    color:#f1f0eb;
    border:1px solid;
    box-shadow:0 35px 80px #0002
}

.bar {
    padding:14px 17px;
    border-bottom:1px solid #444;
    display:flex;
    justify-content:space-between;
    color:#aaa;
    font:10px "DM Mono"
}

.terminal {
    min-height:500px;
    padding:30px;
    font:14px/1.8 "DM Mono"
}

.terminal i {
    font-style:normal;
    animation:b 1s steps(1) infinite
}

@keyframes b {
    50% {
        opacity:0
    }

}

.demo-bottom {
    padding:0 40px 95px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px
}

.demo-bottom p {
    font-size:17px;
    color:#444
}

footer {
    border-top:1px solid var(--line);
    padding:30px 40px 42px;
    display:flex;
    justify-content:space-between;
    color:var(--muted);
    font:10px "DM Mono";
    letter-spacing:.08em;
    text-transform:uppercase
}

/* Mobile layout */
@media(max-width:800px) {
    header {
        height:auto;
        padding:22px 20px
    }

    .brand span {
        display:none
    }

    nav {
        gap:14px
    }

    .nav-dropdown {
        height:auto
    }

    .nav-systems {
        height:auto
    }

    .dropdown-menu {
        top:25px;
        left:auto;
        right:0
    }

    .simple-cream,.systems-cream {
        min-height:590px;
        padding:75px 20px
    }

    .simple-cream h1,.systems-cream h1 {
        font-size:clamp(65px,20vw,105px)
    }

    .simple-black {
        padding:45px 20px
    }

    .demo-title {
        min-height:350px;
        padding:65px 20px 35px;
        display:block
    }

    .meta {
        text-align:left;
        margin-top:25px
    }

    .shell {
        margin:10px 20px 55px
    }

    .terminal {
        min-height:420px;
        padding:20px
    }

    .demo-bottom {
        padding:0 20px 70px;
        grid-template-columns:1fr;
        gap:35px
    }

    footer {
        padding:25px 20px;
        gap:18px;
        flex-wrap:wrap
    }

}


/* Semantic content tuning */

/* Home */
.home-hero h1 {
    font-size: clamp(62px, 8.5vw, 124px);
    line-height: .88;
    max-width: 1120px;
}

.home-hero .mission {
    max-width: 780px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.4;
}

.home-close p {
    font-size: clamp(18px, 2vw, 25px);
}

/* About */
.about-content {
    justify-content: flex-start;
    padding-top: 95px;
    padding-bottom: 110px;
}

.about-content h1 {
    font-size: clamp(68px, 9vw, 132px);
    margin-bottom: 55px;
}

.about-intro {
    max-width: 820px;
    display: grid;
    gap: 12px;
    font-size: clamp(19px, 1.8vw, 25px);
    line-height: 1.45;
}

.about-intro p {
    margin: 0;
}

.about-principles {
    width: 100%;
    margin-top: 85px;
    padding-top: 28px;
    border-top: 1px solid rgba(17,17,17,.35);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.about-principles article {
    min-width: 0;
}

.principle-no {
    font: 10px "DM Mono";
    color: var(--muted);
    letter-spacing: .1em;
}

.about-principles h2 {
    margin: 18px 0 18px;
    font-size: clamp(32px, 3.2vw, 48px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 500;
}

.about-principles p {
    max-width: 380px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.about-boundary {
    max-width: 850px;
    margin-top: 95px;
    padding-top: 28px;
    border-top: 1px solid rgba(17,17,17,.35);
}

.about-boundary p {
    margin: 16px 0 0;
    font-size: clamp(18px, 1.6vw, 22px);
}

.about-close p {
    max-width: 780px;
    font-size: clamp(18px, 2vw, 24px);
}

/* Systems */
.systems-cream h1 {
    font-size: clamp(62px, 8vw, 118px);
    line-height: .88;
}

.systems-intro {
    max-width: 700px;
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 27px);
}

.systems-sub {
    max-width: 800px;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

/* Demo */
.demo-question {
    padding: 0 40px 45px;
    display: grid;
    grid-template-columns: 180px minmax(0, 850px);
    gap: 35px;
    align-items: start;
}

.demo-question p {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.demo-bottom p + p {
    margin-top: 20px;
}

/* Contact */
.contact-content h1 {
    font-size: clamp(68px, 9vw, 132px);
}

.contact-content > p {
    max-width: 760px;
    font-size: clamp(20px, 2vw, 28px);
}

.contact-close p {
    font-size: 18px;
}

/* Semantic content mobile tuning */
@media(max-width:800px) {
    .home-hero h1,
    .about-content h1,
    .systems-cream h1,
    .contact-content h1 {
        font-size: clamp(54px, 16vw, 86px);
    }

    .about-principles {
        grid-template-columns: 1fr;
        gap: 42px;
        margin-top: 60px;
    }

    .about-principles p {
        max-width: 600px;
    }

    .about-boundary {
        margin-top: 65px;
    }

    .demo-question {
        padding: 0 20px 35px;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* Semantic revision v2 */

/* Global heading reduction and spacing */
.simple-cream h1,
.systems-cream h1 {
    font-size: clamp(58px, 7.2vw, 112px);
    line-height: .92;
    letter-spacing: -.06em;
}

.demo-title h1 {
    font-size: clamp(54px, 8vw, 112px);
    line-height: .92;
    letter-spacing: -.055em;
}

/* Standard black close used across non-demo pages */
.standard-close {
    min-height: 190px;
    align-items: center;
    gap: 40px;
}

.close-brand,
.close-mission {
    font: 11px "DM Mono";
    letter-spacing: .1em;
    text-transform: uppercase;
}

.close-mission {
    text-align: right;
}

/* Home */
.home-hero h1 {
    max-width: 1250px;
    white-space: nowrap;
    font-size: clamp(52px, 6.8vw, 104px);
}

.home-hero .mission {
    max-width: 800px;
    margin-bottom: 0;
}

.supporting-statement {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: clamp(17px, 1.6vw, 21px) !important;
}

/* About */
.about-content h1 {
    white-space: nowrap;
    font-size: clamp(58px, 7.5vw, 112px);
    line-height: .95;
}

.about-intro {
    max-width: 900px;
}

.about-principles h2 {
    font-size: clamp(27px, 2.5vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.positive-change {
    margin-top: 28px !important;
    font-weight: 600;
}

/* Systems */
.systems-cream {
    justify-content: flex-start;
    padding-top: 95px;
}

.systems-cream h1 {
    margin-bottom: 30px;
}

.systems-intro {
    margin-bottom: 55px;
}

.systems-list {
    width: 100%;
}

.system-selection {
    margin-top: 0;
}

.system-name {
    font-size: clamp(28px, 3.5vw, 48px);
    letter-spacing: -.045em;
}

.system-description {
    padding: 16px 90px 30px;
    max-width: 820px;
    font-size: 16px;
    color: #44423d;
}

.system-planned {
    color: var(--muted);
    cursor: default;
}

.system-planned:hover {
    padding-left: 0;
    padding-right: 0;
}

.system-status {
    font: 10px "DM Mono";
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Contact */
.contact-content h1 {
    white-space: nowrap;
    font-size: clamp(58px, 7.5vw, 112px);
    line-height: .95;
}

/* Demo */
.demo-title h1 {
    white-space: nowrap;
}

/* Footer now carries only fixed legal identity */
footer {
    justify-content: space-between;
}

/* Mobile overrides for revised single-line headings */
@media(max-width:800px) {
    .home-hero h1,
    .about-content h1,
    .contact-content h1,
    .demo-title h1 {
        white-space: normal;
        font-size: clamp(48px, 14vw, 76px);
    }

    .systems-cream h1 {
        font-size: clamp(48px, 14vw, 76px);
    }

    .standard-close {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .close-mission {
        text-align: left;
    }

    .system-description {
        padding-left: 0;
        padding-right: 0;
    }
}


/* Website completion pass */

/* Keyboard accessibility */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    font: 11px "DM Mono";
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.shell a:focus-visible,
.simple-black a:focus-visible {
    outline-color: var(--paper);
}

/* Allow keyboard focus to reveal the Work dropdown. */
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Footer legal navigation */
.footer-links {
    display: inline-flex;
    gap: 22px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--ink);
}

/* Legal pages */
.legal-page {
    --page-gradient:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(190,190,180,.20), transparent 63%),
        linear-gradient(145deg, #f4f1e8 18%, #eee9df 62%, #ddd8cf 100%);
    --accent-gradient:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(120,120,110,.10), transparent 70%);
}

.legal-hero,
.not-found {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 95px 40px 70px;
}

.legal-hero::before,
.not-found::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--page-gradient, linear-gradient(145deg,#f4f1e8,#e8e3da));
}

.legal-hero::after,
.not-found::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent-gradient, none);
    mix-blend-mode: multiply;
    opacity: .56;
}

.legal-hero h1,
.not-found h1 {
    margin: 24px 0 22px;
    font-size: clamp(58px, 7vw, 104px);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 500;
}

.legal-updated {
    color: var(--muted);
    font: 11px "DM Mono";
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-content {
    max-width: 880px;
    padding: 80px 40px 110px;
}

.legal-content h2 {
    margin: 50px 0 14px;
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 500;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 18px;
    color: #373631;
    font-size: 16px;
    line-height: 1.7;
}

.legal-note {
    margin-top: 55px !important;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted) !important;
    font-size: 13px !important;
}

/* 404 */
.not-found-page {
    --page-gradient:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(190,190,180,.20), transparent 63%),
        linear-gradient(145deg,#f4f1e8 18%,#eee9df 62%,#ddd8cf 100%);
}

.not-found {
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.not-found p {
    margin: 0 0 28px;
    font-size: 19px;
}

.not-found-link {
    width: fit-content;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    font: 11px "DM Mono";
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Small-screen completion pass */
@media(max-width:800px) {
    .footer-links {
        order: 3;
        width: 100%;
    }

    .legal-hero,
    .not-found {
        padding: 70px 20px 55px;
    }

    .legal-content {
        padding: 60px 20px 80px;
    }

    .legal-hero h1,
    .not-found h1 {
        font-size: clamp(50px, 15vw, 78px);
    }
}


/* Integrated numb_cged terminal */
.shell {
    overflow: hidden;
}

.demo-session {
    color: #d7d7d2;
}

.terminal {
    min-height: 500px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    min-height: 430px;
    max-height: 62vh;
    padding: 28px 30px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    scrollbar-color: #555 #0c0c0c;
}

.terminal-entry {
    margin: 0 0 20px;
    color: #f1f0eb;
    font: 14px/1.65 "DM Mono", monospace;
}

.system-entry {
    color: #d6d5cf;
}

.command-entry {
    margin-bottom: 9px;
    color: #fff;
}

.pending-entry {
    color: #777;
    font-size: 12px;
}

.terminal-form {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 14px 20px;
    border-top: 1px solid #444;
    background: #0c0c0c;
}

.terminal-prompt {
    margin-right: 11px;
    color: #aaa;
    font: 14px "DM Mono", monospace;
}

.terminal-form input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0;
    background: transparent;
    color: #f1f0eb;
    caret-color: #f1f0eb;
    font: 14px "DM Mono", monospace;
}

.terminal-form input:focus-visible {
    outline: none;
}

.terminal-form.is-busy {
    opacity: .72;
}

.terminal-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -5px 0 24px;
}

.terminal-downloads a {
    display: inline-block;
    border: 1px solid #777;
    padding: 9px 11px;
    color: #f1f0eb;
    font: 10px "DM Mono", monospace;
    letter-spacing: .05em;
    text-decoration: none;
}

.terminal-downloads a:hover,
.terminal-downloads a:focus-visible {
    background: #f1f0eb;
    color: #111;
    outline: none;
}

@media(max-width:800px) {
    .terminal-output {
        min-height: 350px;
        max-height: 68vh;
        padding: 20px;
    }

    .terminal-form {
        padding: 14px 16px;
    }

    .demo-session {
        display: none;
    }
}
