/* ============================================================
   KEITH'S LAB
   ============================================================ */

:root {
    --bg: #080b10;
    --bg-soft: #0d1118;
    --panel: #111722;
    --panel-light: #151d29;

    --text: #f4f7fb;
    --text-soft: #aeb9c8;
    --text-dim: #738094;

    --accent: #64d8ff;
    --accent-2: #8b7cff;
    --accent-soft: rgba(100, 216, 255, 0.12);

    --border: rgba(255,255,255,0.09);
    --border-bright: rgba(100,216,255,0.25);

    --max-width: 1180px;

    --radius: 18px;
    --radius-small: 10px;

    --font:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --mono:
        "JetBrains Mono",
        "SFMono-Regular",
        Consolas,
        monospace;
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(100,216,255,0.07),
            transparent 32rem
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(139,124,255,0.06),
            transparent 28rem
        ),
        var(--bg);

    color: var(--text);

    font-family: var(--font);
    line-height: 1.65;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}


/* ============================================================
   PAGE BACKGROUND
   ============================================================ */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.7),
            transparent 80%
        );
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: 72px;

    display: flex;
    align-items: center;
    gap: 28px;

    padding: 10px max(22px, calc((100vw - var(--max-width)) / 2));

    background: rgba(8,11,16,0.87);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-right: auto;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    border: 1px solid var(--border-bright);

    background:
        linear-gradient(
            135deg,
            rgba(100,216,255,0.16),
            rgba(139,124,255,0.12)
        );

    color: var(--accent);

    font-family: var(--mono);
    font-weight: 700;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    font-size: 0.95rem;
}

.brand-copy small {
    margin-top: 3px;

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.67rem;
}

.nav {
    display: flex;
    gap: 20px;

    color: var(--text-soft);

    font-family: var(--mono);
    font-size: 0.72rem;
}

.nav a {
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.nav a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;

    width: min(var(--max-width), calc(100% - 44px));

    margin: 0 auto;

    padding: 100px 0 120px;
}

.hero-copy {
    max-width: 950px;
}

.eyebrow,
.kicker {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
    content: "";

    width: 28px;
    height: 1px;

    background: var(--accent);
}

.hero h1 {
    margin: 0;

    max-width: 1000px;

    font-size: clamp(3rem, 7.2vw, 6.8rem);
    line-height: 0.98;

    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;

    margin-top: 12px;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            #a9b5ff 55%,
            var(--accent-2)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-lede {
    max-width: 670px;

    margin: 38px 0 0;

    color: var(--text-soft);

    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.7;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 48px;

    color: var(--text-soft);

    font-family: var(--mono);
    font-size: 0.8rem;
}

.hero-scroll::after {
    content: "↓";

    color: var(--accent);

    font-size: 1.1rem;

    animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* ============================================================
   GENERAL SECTION
   ============================================================ */

.section {
    width: min(var(--max-width), calc(100% - 44px));

    margin: 0 auto;
}

.projects {
    padding-bottom: 100px;
}


/* ============================================================
   PROJECT
   ============================================================ */

.project {
    position: relative;

    margin-bottom: 120px;
    padding-top: 20px;
}

.project + .project {
    padding-top: 100px;

    border-top: 1px solid var(--border);
}

.project-header {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: end;
    gap: 20px;

    margin-bottom: 28px;
}

.project-number {
    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.8rem;

    letter-spacing: 0.12em;
}

.project-heading h2 {
    margin: 0;

    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1;

    letter-spacing: -0.05em;
}

.project-origin {
    margin: 10px 0 0;

    color: var(--text-soft);

    font-size: 1.05rem;
}

.project-type {
    align-self: start;

    padding: 7px 10px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.65rem;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ============================================================
   PROJECT MEDIA
   ============================================================ */

.project-media {
    position: relative;

    min-height: 420px;

    display: grid;
    place-items: center;

    overflow: hidden;

    margin-bottom: 18px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(100,216,255,0.08),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            var(--panel-light),
            var(--panel)
        );

    box-shadow:
        0 30px 80px rgba(0,0,0,0.25);
}

.project-media img {
    width: 100%;
    height: auto;
}

.project-media-inner {
    width: 100%;
    padding: 30px;
}


/* ============================================================
   PROJECT ACTIONS
   ============================================================ */

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 16px 0 22px;
}

.demo-credentials {
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--text-soft);
    font-size: 0.75rem;
}

.demo-credentials code {
    font-family: var(--mono);
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border-radius: var(--radius-small);

    border: 1px solid var(--border);

    background: var(--panel);

    color: var(--text-soft);

    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 150ms ease,
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

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

    border-color: var(--border-bright);

    color: var(--text);
}

.button-primary {
    border-color: rgba(100,216,255,0.35);

    background: var(--accent-soft);

    color: var(--accent);
}


/* ============================================================
   PROJECT DETAIL TABS
   ============================================================ */

.project-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-bottom: 0;

    border-radius:
        var(--radius)
        var(--radius)
        0
        0;

    background: var(--bg-soft);
}

.project-tab {
    position: relative;

    min-height: 58px;

    padding: 12px 16px;

    border: 0;
    border-right: 1px solid var(--border);

    background: transparent;

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease;
}

.project-tab:last-child {
    border-right: 0;
}

.project-tab:hover {
    color: var(--text);

    background: rgba(255,255,255,0.025);
}

.project-tab.active {
    color: var(--accent);

    background: var(--accent-soft);
}

.project-tab.active::after {
    content: "";

    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;

    height: 2px;

    background: var(--accent);

    box-shadow:
        0 0 14px rgba(100,216,255,0.5);
}


/* ============================================================
   DETAIL PANEL
   ============================================================ */

.project-details {
    border: 1px solid var(--border);

    border-radius:
        0
        0
        var(--radius)
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(17,23,34,0.96),
            rgba(13,17,24,0.96)
        );
}

.project-detail {
    display: none;

    min-height: 230px;

    padding: clamp(26px, 5vw, 48px);
}

.project-detail.active {
    display: block;

    animation: detail-in 180ms ease;
}

@keyframes detail-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-detail h3 {
    margin: 0 0 20px;

    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.76rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-detail p {
    max-width: 850px;

    margin: 0 0 18px;

    color: var(--text-soft);

    font-size: 1rem;
}

.project-detail p:last-child {
    margin-bottom: 0;
}

.project-detail strong {
    color: var(--text);
}


/* ============================================================
   QUOTES / BIG IDEAS
   ============================================================ */

.project-detail blockquote {
    max-width: 820px;

    margin: 34px 0;
    padding: 5px 0 5px 25px;

    border-left: 2px solid var(--accent);

    color: var(--text);

    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.35;

    letter-spacing: -0.025em;
}

.project-question {
    margin-top: 32px !important;

    color: var(--text) !important;

    font-size: 1.15rem !important;
    font-weight: 600;
}


/* ============================================================
   TECHNOLOGY CHIPS
   ============================================================ */

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    max-width: 900px;
}

.tech-list span {
    padding: 9px 13px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: rgba(255,255,255,0.025);

    color: var(--text-soft);

    font-family: var(--mono);
    font-size: 0.7rem;
}

.tech-list span:hover {
    border-color: var(--border-bright);

    color: var(--accent);
}


/* ============================================================
   SONICBOOTH SPECIAL CONTENT
   ============================================================ */

.inclusiveness-first {
    margin: 32px 0;

    padding: 25px 28px;

    border: 1px solid var(--border-bright);

    border-radius: var(--radius-small);

    background:
        linear-gradient(
            135deg,
            rgba(100,216,255,0.08),
            rgba(139,124,255,0.06)
        );
}

.inclusiveness-first small {
    display: block;

    margin-bottom: 7px;

    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.67rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.inclusiveness-first strong {
    display: block;

    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.25;
}


/* ============================================================
   EXISTING SONICBOOTH DEMO
   ============================================================ */

.sonic-demo {
    width: min(900px, 100%);

    overflow: hidden;

    border: 1px solid var(--border-bright);

    border-radius: 14px;

    background: #080c13;

    box-shadow:
        0 25px 60px rgba(0,0,0,0.4);
}

.booth-header {
    display: flex;
    justify-content: space-between;

    padding: 11px 15px;

    border-bottom: 1px solid var(--border);

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.65rem;
}

.online {
    color: #77e6a1;
}

.booth-screen {
    padding: 24px;
}

.grandma-screen,
.experience-screen {
    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--panel);
}

.experience-screen {
    margin-top: 16px;
}

.grandma-response {
    margin: 12px 0 20px;

    color: var(--text-soft);
}

.grandma-form label,
.experience-form label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.68rem;
}

.grandma-question-row,
.experience-subject-row {
    display: flex;
    gap: 8px;
}

.grandma-question-row input,
.experience-subject-row input {
    min-width: 0;
    flex: 1;

    padding: 12px 13px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: #090d13;

    color: var(--text);
}

.grandma-question-row input:focus,
.experience-subject-row input:focus {
    border-color: var(--accent);
}

.grandma-disclaimer,
.sonicml-note {
    color: var(--text-dim);

    font-size: 0.75rem;
}

.sonicml-window {
    max-height: 250px;

    overflow: auto;

    padding: 18px 20px;

    border-top: 1px solid var(--border);

    background: #05080d;

    color: #9de5ff;

    font-family: var(--mono);
    font-size: 0.7rem;

    white-space: pre-wrap;
}


/* ============================================================
   HANDFLOW VISUAL
   ============================================================ */

.handflow-visual {
    width: min(900px, 100%);

    padding: 30px;
}

.stream-label {
    margin-bottom: 12px;

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.65rem;

    letter-spacing: 0.1em;
}

.stream-row {
    display: grid;
    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: center;
    gap: 10px;
}

.stream-frame {
    padding: 16px 8px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--panel);
}

.stream-frame strong {
    display: block;

    font-family: var(--mono);
    font-size: 0.8rem;
}

.stream-frame.error {
    border-color: rgba(255,120,120,0.4);
}

.stream-frame.error strong {
    color: #ff9a9a;
}

.stream-arrow {
    color: var(--text-dim);
}

.handflow-filter {
    margin: 25px auto;

    width: fit-content;

    padding: 12px 22px;

    border: 1px solid var(--border-bright);

    border-radius: 999px;

    background: var(--accent-soft);

    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.72rem;
}


/* ============================================================
   NDML VISUAL
   ============================================================ */

.ndml-visual {
    width: min(900px, 100%);

    padding: 35px;
}

.sheet-stack {
    position: relative;

    width: min(560px, 80vw);
    height: 260px;

    margin: 20px auto 40px;

    perspective: 700px;
}

.sheet-layer {
    position: absolute;

    left: 10%;
    width: 80%;
    height: 125px;

    border: 1px solid rgba(100,216,255,0.3);

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 18px,
            rgba(100,216,255,0.08) 19px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 18px,
            rgba(100,216,255,0.08) 19px
        );

    transform: rotateX(63deg);
}

.sheet-layer:nth-child(1) {
    top: 0;
}

.sheet-layer:nth-child(2) {
    top: 28px;
}

.sheet-layer:nth-child(3) {
    top: 56px;
}

.sheet-layer:nth-child(4) {
    top: 84px;
}

.sheet-layer:nth-child(5) {
    top: 112px;
}

.ndml-caption {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

    max-width: 700px;

    margin: 0 auto;
}

.ndml-caption div {
    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--panel);
}

.ndml-caption span {
    display: block;

    margin-bottom: 6px;

    color: var(--accent);

    font-family: var(--mono);
    font-size: 0.65rem;
}

.ndml-caption strong {
    font-size: 1rem;
}


/* ============================================================
   SCREENSHOT PRESENTATION
   ============================================================ */

.screenshot-frame {
    width: min(1000px, 100%);

    margin: auto;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #070a0f;

    box-shadow:
        0 30px 70px rgba(0,0,0,0.35);
}

.screenshot-frame img {
    width: 100%;

    border-radius: 8px;
}


/* ============================================================
   LEARNING PANEL
   ============================================================ */

.learning-list {
    display: grid;
    gap: 15px;

    max-width: 900px;
}

.learning-item {
    padding: 17px 20px;

    border-left: 2px solid var(--border-bright);

    background: rgba(255,255,255,0.018);
}

.learning-item strong {
    display: block;

    margin-bottom: 5px;
}

.learning-item p {
    margin: 0;

    font-size: 0.9rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    width: min(var(--max-width), calc(100% - 44px));

    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin: 0 auto;

    padding: 35px 0 50px;

    border-top: 1px solid var(--border);

    color: var(--text-dim);

    font-family: var(--mono);
    font-size: 0.68rem;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .site-header {
        min-height: 64px;

        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-copy small {
        display: none;
    }

    .nav {
        overflow-x: auto;

        max-width: 55vw;

        gap: 15px;

        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        min-height: auto;

        padding-top: 100px;
        padding-bottom: 100px;
    }

    .project-header {
        grid-template-columns: 50px 1fr;
    }

    .project-type {
        grid-column: 2;

        width: fit-content;
    }

    .project-media {
        min-height: 300px;
    }

}


@media (max-width: 650px) {

    .section,
    .hero,
    .site-footer {
        width: min(100% - 28px, var(--max-width));
    }

    .site-header {
        gap: 12px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;

        font-size: 0.8rem;
    }

    .brand-copy strong {
        font-size: 0.8rem;
    }

    .nav {
        display: none;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .hero-lede {
        margin-top: 28px;
    }

    .project {
        margin-bottom: 85px;
    }

    .project + .project {
        padding-top: 70px;
    }

    .project-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-number {
        margin-bottom: 4px;
    }

    .project-type {
        grid-column: auto;
    }

    .project-media {
        min-height: 230px;

        border-radius: 12px;
    }

    .project-media-inner {
        padding: 14px;
    }

    .project-tabs {
        grid-template-columns: 1fr 1fr;

        border-radius: 12px 12px 0 0;
    }

    .project-tab {
        min-height: 52px;

        border-bottom: 1px solid var(--border);
    }

    .project-tab:nth-child(2) {
        border-right: 0;
    }

    .project-tab:nth-child(3),
    .project-tab:nth-child(4) {
        border-bottom: 0;
    }

    .project-detail {
        min-height: 260px;

        padding: 24px 20px;
    }

    .project-detail blockquote {
        margin: 27px 0;

        padding-left: 18px;

        font-size: 1.3rem;
    }

    .grandma-question-row,
    .experience-subject-row {
        flex-direction: column;
    }

    .stream-row {
        gap: 4px;
    }

    .stream-frame {
        padding: 10px 3px;
    }

    .stream-frame strong {
        font-size: 0.6rem;
    }

    .stream-arrow {
        font-size: 0.65rem;
    }

    .ndml-caption {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-footer {
        flex-direction: column;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* ============================================================
   NEW PROJECT VISUALS
   KnowMy.biz / Jobhunt / GroupBoard / ASL
   ============================================================ */


/* ------------------------------------------------------------
   Shared little toolbar used by KnowMy + Jobhunt
   ------------------------------------------------------------ */

.demo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 0.8rem 1rem;

    border-bottom: 1px solid var(--border);

    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text-soft);
}

.demo-toolbar .online {
    white-space: nowrap;
}



/* ============================================================
   ASL TRANSFORMER
   ============================================================ */

.asl-visual {
    min-height: 360px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2rem;

    padding: 2.5rem 2rem;
}


.asl-hand {
    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 4rem;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.06),
            transparent 70%
        );
}


.asl-flow {
    width: 100%;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 0.75rem;
}


.asl-flow > div {
    min-width: 115px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 0.35rem;

    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 8px;

    text-align: center;
}


.asl-flow small {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;

    color: var(--text-soft);
}


.asl-flow strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}


.asl-flow > span {
    display: flex;
    align-items: center;

    font-family: "JetBrains Mono", monospace;

    color: var(--text-soft);
}


.asl-result {
    font-family: "JetBrains Mono", monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


.asl-result span {
    margin: 0 0.75rem;

    font-size: 0.75rem;
    font-weight: 400;

    color: var(--text-soft);
}



/* ============================================================
   KNOWMY.BIZ
   ============================================================ */

.knowmy-demo {
    width: min(880px, 100%);
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.18);
}


.interview-thread {
    display: flex;
    flex-direction: column;

    gap: 1rem;

    padding: 1.5rem;
}


.interview-message {
    position: relative;

    width: min(75%, 620px);

    padding: 1rem 1.1rem;

    border: 1px solid var(--border);
    border-radius: 10px;
}


.interview-message.ai {
    align-self: flex-start;

    border-top-left-radius: 3px;

    background: rgba(255, 255, 255, 0.035);
}


.interview-message.user {
    align-self: flex-end;

    border-top-right-radius: 3px;

    background: rgba(255, 255, 255, 0.07);
}


.interview-message .speaker {
    display: block;

    margin-bottom: 0.45rem;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;

    color: var(--text-soft);
}


.interview-message p {
    margin: 0;

    line-height: 1.55;
}


.knowledge-capture {
    margin-top: 0.75rem;
    padding: 1.25rem;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.2);
}


.knowledge-capture > small {
    display: block;

    margin-bottom: 1rem;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;

    color: var(--text-soft);
}


.knowledge-capture > div {
    display: grid;
    grid-template-columns: 150px 1fr;

    gap: 1rem;

    padding: 0.7rem 0;

    border-top: 1px solid var(--border);
}


.knowledge-capture strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;

    color: var(--text-soft);
}


.knowledge-capture span {
    line-height: 1.45;
}



/* ============================================================
   JOBHUNT
   ============================================================ */

.jobhunt-demo {
    width: min(900px, 100%);
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.18);
}


.agent-run {
    padding: 0 1.5rem 1.5rem;
}


.agent-step {
    position: relative;

    display: grid;
    grid-template-columns: 120px 1fr auto;

    gap: 1.25rem;

    padding: 1.35rem 0;

    border-bottom: 1px solid var(--border);
}


/*
   Little vertical execution line.
*/

.agent-step::before {
    content: "";

    position: absolute;

    left: 51px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: var(--border);

    opacity: 0.7;
}


.agent-step:first-child::before {
    top: 50%;
}


.agent-step-name {
    position: relative;
    z-index: 1;

    align-self: start;

    width: 104px;

    padding: 0.45rem 0.55rem;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--bg);

    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.07em;

    text-align: center;
}


.agent-step strong {
    display: block;

    margin-bottom: 0.35rem;
}


.agent-step p {
    margin: 0;

    color: var(--text-soft);

    line-height: 1.5;
}


.agent-results {
    display: flex;
    flex-direction: column;

    gap: 0.35rem;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
}


.agent-cost {
    align-self: start;

    padding: 0.35rem 0.55rem;

    border: 1px solid var(--border);
    border-radius: 6px;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;

    color: var(--text-soft);
}


.agent-total {
    display: grid;
    grid-template-columns: 1fr auto;

    gap: 0.5rem 1.5rem;

    margin-top: 1.5rem;
    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 8px;

    font-family: "JetBrains Mono", monospace;
}


.agent-total span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;

    color: var(--text-soft);
}


.agent-total strong {
    text-align: right;
}



/* ============================================================
   GROUPBOARD API DEMO
   ============================================================ */

.api-demo {
    width: min(980px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.18);
}



/* ------------------------------------------------------------
   Code editor
   ------------------------------------------------------------ */

.code-editor {
    min-width: 0;

    border-right: 1px solid var(--border);

    background: rgba(0, 0, 0, 0.22);
}


.editor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.8rem 1rem;

    border-bottom: 1px solid var(--border);

    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;

    color: var(--text-soft);
}


.editor-top i {
    font-style: normal;
    opacity: 0.65;
}


.code-editor pre {
    margin: 0;
    padding: 2rem 1.5rem;

    overflow-x: auto;
}


.code-editor code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.8;

    white-space: pre;
}


/*
   Keep syntax highlighting intentionally subtle.
   The rest of the site is restrained, so this shouldn't
   suddenly look like a neon VS Code theme.
*/

.code-editor .kw,
.code-editor .fn,
.code-editor .str,
.code-editor .bool {
    font-weight: 600;
}



/* ------------------------------------------------------------
   Notification side
   ------------------------------------------------------------ */

.notification-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 1.25rem;

    padding: 2rem;
}


.preview-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--text-soft);
}


.phone-notification {
    display: grid;
    grid-template-columns: auto 1fr;

    gap: 0.9rem;

    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.06);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18);
}


.app-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    font-family: "JetBrains Mono", monospace;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.06);
}


.phone-notification strong {
    display: block;

    margin-bottom: 0.3rem;
}


.phone-notification p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;
    line-height: 1.45;
}



/* ============================================================
   A little polish for all four demo types
   ============================================================ */

.knowmy-demo,
.jobhunt-demo,
.api-demo,
.asl-visual {
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.16);
}


.knowmy-demo,
.jobhunt-demo,
.api-demo {
    transition:
        border-color 160ms ease,
        transform 160ms ease;
}


@media (hover: hover) {

    .knowmy-demo:hover,
    .jobhunt-demo:hover,
    .api-demo:hover {
        transform: translateY(-2px);
    }

}



/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    /*
       ASL becomes two rows rather than trying to squeeze the
       entire pipeline horizontally.
    */

    .asl-flow {
        flex-wrap: wrap;
    }


    .asl-flow > span {
        display: none;
    }


    .asl-flow > div {
        flex: 1 1 145px;
    }



    /*
       GroupBoard stacks code above the generated notification.
    */

    .api-demo {
        grid-template-columns: 1fr;
    }


    .code-editor {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }


    .notification-preview {
        min-height: 220px;
    }

}



/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    /* ---------------- ASL ---------------- */

    .asl-visual {
        padding: 1.5rem 1rem;
    }


    .asl-hand {
        width: 86px;
        height: 86px;

        font-size: 3rem;
    }


    .asl-flow {
        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 0.6rem;
    }


    .asl-flow > div {
        min-width: 0;
    }


    .asl-flow > div:last-of-type {
        grid-column: 1 / -1;
    }



    /* ---------------- KnowMy ---------------- */

    .interview-thread {
        padding: 1rem;
    }


    .interview-message {
        width: 88%;
    }


    .knowledge-capture > div {
        grid-template-columns: 1fr;

        gap: 0.3rem;
    }



    /* ---------------- Jobhunt ---------------- */

    .agent-run {
        padding: 0 1rem 1rem;
    }


    .agent-step {
        grid-template-columns: 1fr;

        gap: 0.75rem;

        padding: 1.1rem 0;
    }


    .agent-step::before {
        display: none;
    }


    .agent-step-name {
        width: fit-content;
    }


    .agent-cost {
        justify-self: start;
    }



    /* ---------------- GroupBoard ---------------- */

    .code-editor pre {
        padding: 1.25rem 1rem;
    }


    .code-editor code {
        font-size: 0.72rem;
    }


    .notification-preview {
        padding: 1.25rem;
    }


    .phone-notification {
        padding: 0.85rem;
    }

}

/* ============================================================
   EGOR PLACEHOLDER
   ============================================================ */

.egor-placeholder {
    width: min(900px, 100%);
    min-height: 420px;

    margin: 0 auto;
    padding: 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 2rem;

    border: 1px solid var(--border);
    border-radius: 12px;

    background:
        radial-gradient(
            circle at 25% 50%,
            rgba(255,255,255,0.05),
            transparent 35%
        ),
        rgba(0,0,0,0.18);
}


.egor-placeholder-icon {
    flex: 0 0 auto;

    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 22px;

    font-family: "JetBrains Mono", monospace;
    font-size: 2.6rem;
    font-weight: 700;
}


.egor-placeholder-copy {
    max-width: 520px;
}


.egor-placeholder-copy small {
    display: block;

    margin-bottom: 0.7rem;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.67rem;
    letter-spacing: 0.1em;

    color: var(--text-soft);
}


.egor-placeholder-copy strong {
    display: block;

    margin-bottom: 0.8rem;

    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.1;
}


.egor-placeholder-copy p {
    margin: 0 0 1.25rem;

    color: var(--text-soft);
    line-height: 1.6;
}


.egor-placeholder-copy span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;

    color: var(--text-soft);
}


@media (max-width: 640px) {

    .egor-placeholder {
        min-height: 360px;

        padding: 2rem 1.25rem;

        flex-direction: column;

        text-align: center;
    }


    .egor-placeholder-icon {
        width: 76px;
        height: 76px;

        border-radius: 17px;

        font-size: 2rem;
    }

}
