:root {
    --ink: #101a2e;
    --muted: #62708a;
    --paper: #f6f5f1;
    --white: #fff;
    --blue: #2f63f5;
    --blue-dark: #2148bd;
    --orange: #ff744b;
    --green: #23a57f;
    --line: #dce1e9;
    --mono: "DM Mono", monospace;
    --sans: "Manrope", sans-serif
}

:root[data-theme="dark"] {
    --ink: #edf2ff;
    --muted: #aab6cc;
    --paper: #111827;
    --white: #1b2638;
    --line: #344158;
    --blue: #79a7ff;
    --blue-dark: #5d8ee8;
    --orange: #ff9272;
    --green: #4dd4a8;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6
}

.shell {
    width: min(1160px, calc(100% - 48px));
    margin: auto
}

.skip-link {
    position: absolute;
    left: -9999px
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 99;
    background: #fff;
    padding: .6rem 1rem;
    color: var(--ink)
}

.site-header {
    height: 84px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 500;
    text-decoration: none
}

.brand img {
    width: 33px;
    height: 33px;
    object-fit: contain
}

.nav-links {
    display: flex;
    gap: 27px;
    margin-left: auto
}

.nav-links a,
.nav-cta {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none
}

.nav-links a {
    position: relative
}

.nav-links a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width .2s
}

.nav-links a:hover:after,
.nav-links .active:after {
    width: 100%
}

.nav-cta {
    padding: 10px 14px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    transition: .2s
}

.nav-cta:hover {
    color: #fff;
    background: var(--ink)
}

.menu-toggle {
    display: none
}

.hero {
    padding: 82px 0 38px;
    background: var(--paper);
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    gap: 60px;
    align-items: center
}

.eyebrow,
.section-number,
.session-day,
.app-tag {
    font: 500 11px/1.3 var(--mono);
    letter-spacing: .09em
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    margin: 0 0 21px
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--blue)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: clamp(42px, 5.3vw, 72px);
    line-height: 1.04;
    letter-spacing: -.055em;
    margin-bottom: 23px;
    font-weight: 800
}

h1 em,
h2 em {
    font-family: Georgia, serif;
    font-weight: 400
}

h1 em {
    color: var(--blue)
}

.hero-text {
    font-size: 17px;
    max-width: 490px;
    color: var(--muted);
    margin-bottom: 30px
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 27px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    border-radius: 4px;
    padding: 14px 20px;
    font: 700 13px var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, background .2s
}

.button:hover {
    transform: translateY(-2px)
}

.button-primary {
    background: var(--blue);
    color: #fff
}

.button-primary:hover {
    background: var(--blue-dark)
}

.text-link {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none
}

.text-link i,
.card-link i {
    margin-left: 8px;
    transition: transform .2s
}

.text-link:hover i,
.card-link:hover i {
    transform: translateX(4px)
}

.hero-meta {
    display: flex;
    gap: 30px;
    margin-top: 63px
}

.hero-meta div {
    display: grid;
    gap: 2px
}

.hero-meta strong {
    font: 500 20px var(--mono)
}

.hero-meta span {
    color: var(--muted);
    font-size: 11px
}

.hero-visual {
    position: relative;
    min-height: 444px
}

.image-frame {
    position: absolute;
    right: 0;
    top: 0;
    width: 87%;
    height: 401px;
    background: var(--ink);
    padding: 13px
}

.image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(.82) contrast(1.08)
}

.frame-label {
    position: absolute;
    bottom: 25px;
    left: -32px;
    background: var(--white);
    padding: 10px 13px;
    color: var(--ink);
    font: 500 10px var(--mono);
    letter-spacing: .1em
}

.frame-label span {
    color: var(--blue);
    margin: 0 4px
}

.orbit-card {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--blue);
    color: #fff;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 238px;
    box-shadow: 9px 9px 0 var(--ink)
}

.orbit-card i {
    font-size: 25px
}

.orbit-card small {
    display: block;
    font: 400 9px var(--mono);
    letter-spacing: .1em;
    opacity: .8
}

.orbit-card strong {
    display: block;
    font-size: 12px
}

.pixel {
    position: absolute;
    background: var(--orange);
    width: 12px;
    height: 12px
}

.pixel-one {
    right: -20px;
    top: 53px
}

.pixel-two {
    left: 62px;
    top: 73px;
    background: var(--green)
}

.scroll-cue {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 48px auto 0;
    color: var(--muted);
    font: 500 10px var(--mono);
    letter-spacing: .08em;
    text-decoration: none
}

.scroll-cue span {
    height: 27px;
    width: 1px;
    background: var(--ink)
}

.section {
    padding: 116px 0
}

.about {
    background: var(--white)
}

.about-grid {
    display: grid;
    grid-template-columns: .24fr .96fr .7fr;
    gap: 54px
}

.section-number {
    color: var(--blue);
    padding-top: 9px;
    margin: 0
}

.about-main h2,
.section-intro h2,
.apps h2,
.contact h2 {
    font-size: clamp(31px, 3.6vw, 49px);
    line-height: 1.1;
    letter-spacing: -.045em;
    margin-bottom: 23px
}

.about-main h2 em,
.apps h2 em,
.contact h2 em {
    color: var(--blue)
}

.about-main>p {
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 24px
}

.values {
    border-left: 1px solid var(--line);
    padding-left: 32px
}

.values>div+div {
    border-top: 1px solid var(--line);
    margin-top: 19px;
    padding-top: 19px
}

.values i {
    color: var(--blue);
    font-size: 17px
}

.values h3 {
    font-size: 14px;
    margin: 6px 0 3px
}

.values p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.sessions {
    background: var(--ink);
    color: #fff
}

.section-intro {
    display: grid;
    grid-template-columns: .4fr 1fr;
    gap: 54px;
    margin-bottom: 48px
}

.sessions .section-number {
    color: #8faafe
}

.section-intro h2 {
    margin-bottom: 11px
}

.section-intro p:not(.section-number) {
    color: #b3bdce;
    max-width: 430px
}

.session-list {
    border-top: 1px solid #39445a
}

.session-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr 30px;
    gap: 22px;
    padding: 27px 12px;
    border-bottom: 1px solid #39445a;
    align-items: center;
    transition: background .25s, padding .25s
}

.session-card:hover {
    background: #1a2740;
    padding-left: 23px
}

.session-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #264bca;
    color: #fff;
    font-size: 19px
}

.session-icon.orange {
    background: #bf563a
}

.session-icon.green {
    background: #187b60
}

.session-day {
    color: #9eacc3;
    margin-bottom: 4px
}

.session-card h3 {
    font-size: 20px;
    margin: 0 0 4px
}

.session-card p:not(.session-day) {
    font-size: 13px;
    color: #b3bdce;
    margin: 0
}

.session-arrow {
    color: #8faafe
}

.apps {
    background: #182338
}

.apps-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 42px
}

.apps-heading h2 {
    margin: 8px 0 0
}

.apps-heading>p {
    font-size: 14px;
    color: var(--muted);
    max-width: 320px;
    margin: 0
}

.app-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px
}

.app-card {
    min-height: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .22s, box-shadow .22s
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 0 rgba(16, 26, 46, .12)
}

.app-featured {
    background: var(--blue);
    color: #fff
}

.app-card>i,
.app-featured>div>i {
    font-size: 30px
}

.app-featured>div:first-child {
    display: flex;
    justify-content: space-between
}

.app-tag {
    display: block;
    color: var(--blue);
    margin-bottom: 17px
}

.app-featured .app-tag {
    color: #c9d6ff
}

.app-card h3 {
    font-size: 17px;
    line-height: 1.2;
    margin: 0 0 9px
}

.app-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 22px;
    max-width: 240px
}

.app-featured p {
    color: #dbe4ff
}

.card-link {
    font-size: 12px;
    font-weight: 800
}

.stories {
    background: var(--paper)
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.story-card {
    min-height: 210px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line)
}

.story-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px
}

.story-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--blue);
    color: #fff;
    font-size: 15px
}

.story-card .app-tag {
    margin: 0
}

.story-card h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 8px
}

.story-card p {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 18px
}

.story-link {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font: 700 12px var(--sans);
    cursor: pointer
}

.story-link i {
    margin-left: 7px;
    transition: transform .2s
}

.story-link:hover i {
    transform: translateX(4px)
}

.story-modal[hidden] {
    display: none
}

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 24px
}

.story-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 26, 46, .72);
    backdrop-filter: blur(4px)
}

.story-dialog {
    position: relative;
    width: min(100%, 620px);
    min-height: 330px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3)
}

.mac-controls {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px
}

.mac-control,
.mac-close {
    width: 13px;
    height: 13px;
    border-radius: 50%
}

.mac-close {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #ff5f57;
    color: #641b18;
    font: 700 12px/1 var(--sans);
    cursor: pointer
}

.mac-close:hover {
    color: #fff
}

.mac-yellow { background: #febc2e; }
.mac-green { background: #28c840; }

.story-dialog-content {
    padding: 80px 60px 55px
}

.story-dialog-content h2 {
    max-width: 470px;
    margin: 10px 0 20px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08
}

.story-dialog-copy {
    max-width: 500px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8
}

.story-dialog-author {
    margin: 25px 0 0;
    color: var(--blue);
    font: 500 12px var(--mono)
}

.leaders {
    background: var(--white)
}

.founder-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 25px;
    align-items: center;
    max-width: 720px;
    margin-bottom: 50px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--line)
}

.founder-card h3 {
    margin: 8px 0 4px;
    font-size: 22px
}

.founder-card p:not(.section-number):not(.leader-role) {
    max-width: 520px;
    color: var(--muted);
    font-size: 13px;
    margin: 12px 0 0
}

.leader-tabs {
    max-width: 1000px
}

.tab-list {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px
}

.leader-tab {
    position: relative;
    padding: 0 0 13px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: 700 13px var(--sans);
    cursor: pointer
}

.leader-tab:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .2s
}

.leader-tab.is-active {
    color: var(--ink)
}

.leader-tab.is-active:after {
    transform: scaleX(1)
}

.leader-panel[hidden] {
    display: none
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.leader-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 15px;
    align-items: start;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line)
}

.leader-photo {
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: var(--ink);
    border-radius: 50%
}

.founder-photo {
    width: 120px;
    height: 120px
}

.leader-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover
}

.leader-info h3 {
    margin: 0 0 3px;
    font-size: 16px;
    line-height: 1.2
}

.leader-role,
.leader-years {
    margin: 0;
    font-size: 11px
}

.leader-role {
    color: var(--blue);
    font-weight: 700
}

.leader-years {
    color: var(--muted);
    font-family: var(--mono)
}

.leader-info p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px
}

.leader-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px
}

.leader-filter-row label {
    margin: 0;
    font-size: 11px
}

.leader-filter-row select {
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: 12px var(--sans)
}

.contact {
    background: var(--white)
}

.contact-grid {
    display: grid;
    grid-template-columns: .82fr 1fr;
    gap: 100px
}

.contact-copy>p:not(.section-number) {
    max-width: 390px;
    color: var(--muted)
}

.socials {
    display: flex;
    gap: 9px;
    margin-top: 30px
}

.socials a {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    transition: .2s
}

.socials a:hover {
    background: var(--ink);
    color: #fff
}

.contact-form {
    padding: 31px;
    background: var(--paper);
    border: 1px solid var(--line)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

label {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800
}

input,
textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bfc7d3;
    background: transparent;
    padding: 8px 0;
    color: var(--ink);
    font: 14px var(--sans);
    outline: none;
    resize: vertical
}

input:focus,
textarea:focus {
    border-color: var(--blue)
}

.contact-form .button {
    width: 100%
}

.form-status {
    font-size: 13px;
    margin: 12px 0 0;
    color: var(--green);
    min-height: 20px
}

footer {
    background: var(--ink);
    color: #b3bdce
}

.footer-inner {
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-inner .brand {
    color: #fff
}

.footer-inner p,
.footer-inner>a {
    font-size: 11px;
    margin: 0
}

.footer-inner>a {
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.footer-inner p span {
    color: #68758d;
    margin: 0 5px
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

.form-status { min-height: 1.4em; margin-top: 12px; font-size: 14px; }
.form-status.success { color: #16a34a; }
.form-status.error   { color: #dc2626; }
.contact-form button:disabled { cursor: wait; opacity: .7; }

:root[data-theme="dark"] .app-card:not(.app-featured) {
    border-color: var(--line);
    color: #edf2ff;
}

:root[data-theme="dark"] .app-card p {
    color: #b8c4d9;
}

:root[data-theme="dark"] .story-card {
    color: #edf2ff;
    border-color: var(--line);
}

:root[data-theme="dark"] .story-card p,
:root[data-theme="dark"] .story-dialog-copy {
    color: #b8c4d9;
}

:root[data-theme="dark"] .leader-card {
    color: #edf2ff;
    border-color: var(--line);
}

:root[data-theme="dark"] .leader-info p:last-child,
:root[data-theme="dark"] .founder-card p:not(.section-number):not(.leader-role) {
    color: #b8c4d9;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
    border-color: #536078;
}

:root[data-theme="dark"] .contact-form {
    background: #182338;
}

:root[data-theme="dark"] .form-status.success { color: #4ade80; }
:root[data-theme="dark"] .form-status.error { color: #ff7d8b; }

.update-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 17px;
    background: var(--deep, #101a2e);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    font-size: 12px
}

.update-notice button {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    color: #fff;
    font: 700 11px var(--sans);
    cursor: pointer
}

@media(max-width:800px) {
    .site-header {
        height: 70px
    }

    .nav {
        gap: 16px
    }

    .nav-cta {
        display: none
    }

    .menu-toggle {
        display: block;
        position: relative;
        margin-left: auto;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: var(--white);
        color: var(--ink);
        min-width: 64px;
        min-height: 38px;
        cursor: pointer
    }

    .menu-toggle span {
        display: block;
        position: absolute;
        width: 22px;
        height: 2px;
        left: 8px;
        background: var(--ink)
    }

    .menu-toggle span:nth-child(1) { top: 10px; }
    .menu-toggle span:nth-child(2) { top: 17px; }
    .menu-toggle span:nth-child(3) { top: 24px; }

    .menu-toggle b {
        display: block;
        margin-left: 25px;
        color: var(--ink);
        font: 700 10px/20px var(--sans);
        letter-spacing: .04em;
        text-transform: uppercase
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 69px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 12px 24px rgba(16, 26, 46, .12);
        border-bottom: 1px solid var(--line);
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px
    }

    .nav-links.open {
        display: flex
    }

    .hero {
        padding-top: 55px
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .hero-visual {
        min-height: 360px;
        order: -1
    }

    .image-frame {
        width: 90%;
        height: 328px
    }

    .about-grid {
        gap: 25px
    }

    .values {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 25px 0 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 17px
    }

    .values>div+div {
        border-top: 0;
        margin: 0;
        padding: 0
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .app-grid {
        grid-template-columns: 1fr 1fr
    }

    .story-grid {
        grid-template-columns: 1fr 1fr
    }

    .leader-grid {
        grid-template-columns: 1fr 1fr
    }

    .app-featured {
        grid-column: span 2
    }

    .contact-grid {
        gap: 45px
    }

    .section {
        padding: 78px 0
    }
}

@media(max-width:520px) {
    .shell {
        width: min(100% - 32px, 1160px)
    }

    h1 {
        font-size: 43px
    }

    .hero-meta {
        gap: 18px;
        margin-top: 43px
    }

    .hero-meta strong {
        font-size: 17px
    }

    .hero-meta span {
        font-size: 9px
    }

    .hero-visual {
        min-height: 300px
    }

    .image-frame {
        height: 274px;
        width: 94%
    }

    .frame-label {
        left: -4px;
        bottom: 13px
    }

    .orbit-card {
        padding: 12px;
        width: 205px
    }

    .section {
        padding: 62px 0
    }

    .values {
        grid-template-columns: 1fr
    }

    .values>div+div {
        border-top: 1px solid var(--line);
        padding-top: 16px
    }

    .session-card {
        grid-template-columns: 52px 1fr 20px;
        gap: 13px;
        padding: 22px 3px
    }

    .apps-heading {
        display: block
    }

    .apps-heading>p {
        margin-top: 15px
    }

    .app-grid,
    .story-grid,
    .form-row {
        grid-template-columns: 1fr
    }

    .app-featured {
        grid-column: auto
    }

    .app-card {
        min-height: 245px
    }

    .story-dialog-content {
        padding: 72px 25px 35px
    }

    .leader-grid {
        grid-template-columns: 1fr
    }

    .founder-card {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 22px 0;
        min-height: 0;
        flex-wrap: wrap;
        gap: 14px
    }

    .footer-inner p {
        order: 3;
        width: 100%
    }
}

:root[data-theme="dark"] .nav-cta:hover,
:root[data-theme="dark"] .image-frame,
:root[data-theme="dark"] .sessions,
:root[data-theme="dark"] footer,
:root[data-theme="dark"] .socials a:hover {
    background: #0b1220;
}

:root[data-theme="dark"] .orbit-card {
    box-shadow: 9px 9px 0 #0b1220;
}

:root[data-theme="dark"] .scroll-cue span {
    background: #0b1220;
}