:root {
    --bg: #f2effe;
    --surface: #fdfcff;
    --ink: #302e35;
    --muted: #6b6870;
    --purple: #3d3942;
    --deep: #29262e;
    --pale: #f3f3f3;
    --line: #dedede;
    --card: #fff;
    --lavender: #ccc;
    --logo-purple: #6e46bb
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: inherit
}

button {
    font: inherit
}

.wrap {
    width: min(100% - 44px, 1080px);
    margin: auto
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(242, 239, 254, .9);
    backdrop-filter: blur(16px)
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px
}

.logo {
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.05em;
    font-size: 1.15rem
}

.logo b {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 7px;
    border-radius: 10px;
    background: var(--logo-purple);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0
}

nav {
    display: flex;
    align-items: center;
    gap: 6px
}

nav a {
    text-decoration: none;
    color: #4a4550;
    font-weight: 600;
    font-size: .87rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color .15s, background .15s, border-color .15s
}

nav a:hover,
nav a[aria-current="page"] {
    color: #4f2a91;
    background: #e9e1fa
}

nav a.demo {
    margin-left: 4px;
    color: #4f2a91;
    border: 1px solid #cdbdf0;
    background: #fff
}

nav a.demo:hover {
    color: #fff;
    border-color: #4f2a91;
    background: #4f2a91
}

main {
    overflow: hidden
}

.hero {
    padding: 80px 0 70px;
    text-align: center
}

.kicker {
    font-size: .74rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--purple);
    font-weight: 800
}

.hero h1,
h2 {
    font-family: "Fraunces", Georgia, serif;
    letter-spacing: -.02em
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -.035em;
    max-width: 760px;
    margin: 16px auto 18px;
    font-weight: 700
}

.hero h1 em {
    font-style: normal
}

.hero .sub {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6
}

/* Publication line */
.pub-line {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;
    max-width: 720px;
    margin: 22px auto 0;
    color: #5d5764;
    font-size: .86rem;
    line-height: 1.5
}

.pub-line svg {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: #4f2a91
}

.pub-line a {
    color: var(--ink);
    text-decoration-color: #b9a2e6;
    text-underline-offset: 3px
}

.pub-line a:hover {
    text-decoration-color: currentColor
}

.hero-actions,
.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 28px 0 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    border-radius: 9px;
    padding: 10px 18px;
    background: var(--purple);
    border: 1px solid var(--purple);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .15s, background .15s
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--deep)
}

.btn.alt {
    background: white;
    color: var(--deep);
    border-color: #aaa
}

.btn.alt:hover {
    background: var(--pale)
}

.story {
    padding: 28px 0 98px
}

.section-top {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 26px;
    align-items: start;
    margin-bottom: 28px
}

.section-num {
    color: #4f2a91;
    font-size: .74rem;
    letter-spacing: .16em;
    font-weight: 800;
    text-transform: uppercase;
    padding-top: 13px
}

.section-top h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.18;
    margin: 0 0 12px;
    font-weight: 600
}

.section-top p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem
}

.figure {
    margin: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: clamp(6px, 2vw, 22px) 0;
    box-shadow: none
}

.figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply
}

.figure figcaption {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 0;
    font-size: .86rem;
    color: var(--muted)
}

.cognitive {
    max-width: 905px;
    margin-left: auto;
    margin-right: auto
}

.cognitive img {
    width: min(100%, 800px);
    margin: auto
}

.compare img {
    width: min(100%, 940px);
    margin: auto
}

.insight {
    margin: 20px 0 0;
    border-left: 3px solid var(--purple);
    padding: 3px 0 3px 19px;
    color: #333;
    font-size: 1.02rem
}

.highlight {
    color: var(--deep);
    font-weight: 720
}

.tint {
    background: linear-gradient(135deg, #e7e1fc 0%, #f6f4ff 55%, #e5dffb 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.tint .wrap {
    padding-top: 88px;
    padding-bottom: 88px
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px
}

.step {
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, .81);
    padding: 25px;
    border-radius: 14px
}

.step .index {
    font-size: .79rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 24px
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.07rem;
    letter-spacing: -.025em
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: .93rem
}

.finding {
    padding: 84px 0
}

.finding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start
}

.finding p {
    color: var(--muted)
}

.stat {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    padding: 28px
}

.stat strong {
    font-family: "Fraunces", Georgia, serif;
    color: var(--purple);
    font-size: 3.3rem;
    font-weight: 500;
    line-height: 1
}

.stat span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: .91rem
}

.stat+.stat {
    margin-top: 12px
}

.force-panel {
    margin-top: 28px;
    border: 1px solid #dcd1e9;
    border-radius: 20px;
    background: var(--surface);
    overflow: hidden
}

.force-art {
    display: block;
    width: 100%;
    max-height: 310px;
    padding: 18px 20px 0
}

.force-panel figcaption {
    padding: 0 28px 21px;
    color: var(--muted);
    font-size: .86rem
}

.finding-foot {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 24px
}

.finding-foot p {
    flex: 1 1 460px;
    margin: 0
}

.trajectory {
    border-top: 1px solid var(--line);
    padding: 84px 0
}

.trajectory-plot {
    margin: 30px 0 0;
    padding: clamp(17px, 3vw, 32px);
    border: 1px solid #dcd1e9;
    border-radius: 20px;
    background: var(--surface)
}

.trajectory-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 22px;
    color: #4f4b55;
    font-size: .85rem
}

.trajectory-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.trajectory-legend i {
    width: 23px;
    height: 3px;
    border-radius: 3px;
    background: #254977
}

.trajectory-legend .synthetic {
    background: #674d91
}

.trajectory-marker {
    width: 15px;
    height: 15px;
    color: #4f4b55;
    flex: 0 0 auto
}

.trajectory-turns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    margin: 17px 0 3px;
    color: #514b58;
    font-size: .82rem
}

.trajectory-turns span {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.turn-gradient {
    display: inline-block;
    width: 92px;
    height: 8px;
    border-radius: 20px;
    background: linear-gradient(90deg, #d5c9e7, #594279)
}

.turn-gradient.real {
    background: linear-gradient(90deg, #cae6f5, #234b7d)
}

.trajectory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px
}

.trajectory-model {
    min-width: 0;
    margin: 0;
    padding: 12px 8px 8px;
    border: 1px solid #e5ddeb;
    border-radius: 13px;
    background: rgba(255, 255, 255, .65)
}

.trajectory-model h3 {
    margin: 0 0 1px;
    text-align: center;
    font-size: .92rem;
    font-weight: 660
}

.trajectory-model svg {
    display: block;
    width: 100%;
    height: auto
}

.trajectory-plot>figcaption {
    font-size: .81rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 15px
}

@media(max-width:900px) {
    .trajectory-grid {
        min-width: 900px
    }

    .trajectory-plot {
        overflow-x: auto
    }
}

@media(max-width:720px) {
    .force-panel {
        overflow-x: auto
    }

    .force-art {
        min-width: 560px;
        padding: 12px 6px 0
    }
}

.team {
    border-top: 1px solid var(--line);
    padding: 85px 0 105px
}

.team h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 600;
    margin: 8px 0 13px
}

.team p {
    color: var(--muted);
    max-width: 680px
}

.people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px
}

.person {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 19px;
    font-weight: 660;
    line-height: 1.4;
    min-height: 83px
}

footer {
    border-top: 1px solid var(--line);
    padding: 25px 0;
    color: var(--muted);
    font-size: .83rem
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

footer a {
    color: var(--deep);
    text-decoration: none
}

:focus-visible {
    outline: 3px solid #555;
    outline-offset: 3px
}

section {
    scroll-margin-top: 95px
}

@media(max-width:720px) {
    .wrap {
        width: min(100% - 34px, 1080px)
    }

    .bar {
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
        gap: 6px
    }

    nav {
        gap: 0
    }

    nav a {
        padding: 6px 8px;
        font-size: .8rem
    }

    .hero {
        padding: 59px 0 48px
    }

    .section-top {
        grid-template-columns: 1fr;
        gap: 4px
    }

    .section-top h2 {
        margin-top: 0
    }

    .story {
        padding-bottom: 68px
    }

    .steps,
    .finding-grid {
        grid-template-columns: 1fr
    }

    .people {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .tint .wrap,
    .finding,
    .team {
        padding-top: 65px;
        padding-bottom: 65px
    }
}

@media(max-width:380px) {
    .people {
        grid-template-columns: 1fr
    }

    nav a {
        font-size: .75rem;
        padding: 5px
    }
}

.citation {
    border-top: 1px solid var(--line);
    padding: 80px 0
}

.citation h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 7px 0 12px;
    font-weight: 600
}

.citation p {
    color: var(--muted);
    max-width: 680px
}

.cite-box {
    position: relative;
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 23px
}

.cite-box pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #262626;
    font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
}

.copy {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #c8c8c8;
    border-radius: 7px;
    background: #fff;
    color: #171717;
    cursor: pointer
}

.copy:hover {
    background: #eaeaea
}

.cite-box pre {
    padding-right: 44px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.team {
    border-top: 1px solid var(--line)
}

.people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 16px;
    margin-top: 34px
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 5px 10px 6px;
    border: 0;
    background: transparent;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 400
}

.person:hover .avatar,
.person:focus-visible .avatar {
    transform: translateY(-3px);
    border-color: #a18cbf;
    background: #eee5f8
}

.avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #d8cde9;
    background: #f0e9fa;
    color: #554a63;
    font: 600 1.35rem "Fraunces", Georgia, serif;
    transition: transform .15s, background .15s, border-color .15s
}

.avatar img,
.response-initial img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0
}

.avatar img {
    object-position: center 25%
}

.avatar img.loaded,
.response-initial img.loaded {
    opacity: 1
}

.person--pranay .avatar img.loaded {
    transform: scale(1.16)
}

.person--andrea .avatar img {
    object-position: center 8%
}

.person-name {
    margin-top: 12px;
    font-weight: 700;
    line-height: 1.35
}

.university {
    margin-top: 5px;
    font-size: .88rem;
    color: #55515a
}

.department {
    max-width: 190px;
    font-size: .76rem;
    line-height: 1.35;
    color: var(--muted)
}

.current-affiliation {
    max-width: 190px;
    margin-top: 7px;
    font-size: .76rem;
    line-height: 1.35;
    color: var(--muted)
}

.foot {
    align-items: center
}

.socials {
    display: flex;
    align-items: center;
    gap: 16px
}

.socials a {
    display: inline-flex;
    align-items: center;
    color: #625e69;
    text-decoration: none
}

.socials a:hover {
    color: var(--ink)
}

@media(max-width:720px) {
    .people {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:380px) {
    .people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        row-gap: 14px
    }

    .person {
        padding: 5px 4px 6px
    }

    .avatar {
        width: 76px;
        height: 76px
    }
}

/* Page-native demonstrations: no screenshot assets or white image backgrounds. */
.response-demo {
    border: 1px solid #ded4eb;
    border-radius: 20px;
    padding: clamp(21px, 4vw, 42px);
    background: linear-gradient(145deg, rgba(255, 255, 255, .57), rgba(244, 238, 252, .65))
}

.demo-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap
}

.demo-overline {
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #605370
}

.demo-hint {
    font-size: .83rem;
    color: var(--muted)
}

.response-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 25px
}

.response-example {
    display: flex;
    flex-direction: column;
    border: 1px solid #ded6e6;
    border-radius: 14px;
    background: rgba(255, 255, 255, .66);
    padding: 24px
}

.response-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e4dce9;
    padding-bottom: 18px;
    margin-bottom: 18px
}

.response-initial {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border-radius: 11px;
    color: #41364d;
    background: #e6dff0;
    font: 700 1.05rem "Fraunces", Georgia, serif
}

.response-initial.ash {
    background: #e9e2ef
}

.response-header h3 {
    margin: 0;
    font-size: .96rem;
    line-height: 1.2
}

.response-header span:last-child {
    color: var(--muted);
    font-size: .8rem
}

.response-text {
    margin: 0 0 13px;
    color: #38333e;
    line-height: 1.68;
    font-size: 1rem
}

.response-text.small {
    color: #68616d;
    font-size: .92rem
}

.response-text mark {
    background: #eee3f8;
    color: inherit;
    border-radius: 3px;
    padding: 2px 3px
}

.response-text mark.assumption {
    background: #f9dfdf
}

.response-text mark.question {
    background: #e2f4e0
}

.response-list {
    margin: -5px 0 14px;
    padding-left: 25px;
    color: #38333e;
    line-height: 1.68
}

.response-list li {
    padding-left: 3px
}

.response-list mark {
    color: inherit;
    background: #e2f4e0;
    border-radius: 3px;
    padding: 2px 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone
}

.response-note {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e6deec;
    font-size: .86rem;
    color: #61566a;
    line-height: 1.45
}

.response-note span {
    font-size: 1.2rem;
    margin-right: 4px
}

.comparison-takeaway {
    margin-top: 21px;
    color: #534d59;
    font-size: .93rem;
    line-height: 1.55
}

.comparison-takeaway strong {
    color: var(--ink)
}

@media(max-width:720px) {
    .response-example {
        padding: 19px
    }
}

/* An annotated sentence, drawn directly in the page. */
.cognitive-figure {
    margin: 0;
    border: 1px solid #ded4eb;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface)
}

/* Sized in container units so text, labels and arrows scale together. */
.ccd-diagram {
    position: relative;
    container-type: inline-size;
    width: min(100%, 800px);
    margin: 0 auto;
    aspect-ratio: 1000 / 430;
    min-height: 290px;
    color: #38343e
}

.ccd-arrows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.ccd-arrows path {
    fill: none;
    stroke: #514b58;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ccd-quote {
    position: absolute;
    top: 29%;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font: 500 3.1cqw/1.42 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .055em
}

.ccd-quote .ccd-line {
    display: block;
    white-space: nowrap
}

.ccd-quote mark {
    color: inherit;
    background: #fcee4f;
    border-radius: .32em;
    padding: .04em .18em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 650
}

.ccd-label {
    position: absolute;
    z-index: 1;
    padding: 0 .25em;
    background: var(--surface);
    font-size: max(.8rem, 1.9cqw);
    font-weight: 700;
    line-height: 1.22;
    color: #3d9ae8
}

.ccd-label small {
    font-size: .9em;
    font-weight: 500
}

.ccd-thought {
    top: 4%;
    left: 31%
}

.ccd-shame {
    top: 4%;
    left: 71%
}

.ccd-quiet {
    top: 77%;
    left: 4%
}

.ccd-sadness {
    top: 83%;
    left: 49%
}

.ccd-smile {
    top: 77%;
    right: 4%
}

.cognitive-figure figcaption {
    display: flex;
    gap: 16px;
    padding: 16px clamp(25px, 4vw, 45px) 20px;
    border-top: 1px solid #dbcfeb;
    color: #69616e;
    font-size: .84rem;
    line-height: 1.5
}

.cognitive-figure figcaption span {
    flex: 0 0 auto;
    font-weight: 800;
    color: #53435f
}

.ccd-mobile {
    display: none
}

@media(max-width:600px) {
    .ccd-diagram {
        display: none
    }

    .ccd-mobile {
        display: block;
        position: relative;
        height: 440px;
        color: #38343e
    }

    .ccd-mobile .ccd-arrows {
        z-index: 0
    }

    .ccd-mobile blockquote {
        position: absolute;
        top: 27%;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: center;
        font: 500 clamp(.76rem, 3.6vw, .98rem)/1.6 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        letter-spacing: 0
    }

    .ccd-mobile .ccd-line {
        display: block;
        white-space: nowrap
    }

    .ccd-mobile mark {
        color: inherit;
        background: #fcee4f;
        border-radius: .25em;
        padding: .06em .14em;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        font-weight: 650
    }

    .ccd-mobile .ccd-label {
        font-size: .72rem
    }

    .ccd-mobile .ccd-thought {
        top: 3%;
        left: 31%
    }

    .ccd-mobile .ccd-shame {
        top: 3%;
        left: 74%
    }

    .ccd-mobile .ccd-quiet {
        top: 74%;
        left: 4%
    }

    .ccd-mobile .ccd-smile {
        top: 74%;
        right: 4%
    }

    .ccd-mobile .ccd-sadness {
        top: 85%;
        left: 44%
    }

    .cognitive-figure figcaption {
        display: block
    }

    .cognitive-figure figcaption span {
        display: block;
        margin-bottom: 4px
    }
}

/* Why this matters */
.why {
    padding: 20px 0 90px
}

.why-grid {
    display: flex;
    align-items: stretch;
    gap: 32px
}

.why-card {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #ded4eb;
    border-radius: 20px;
    background: var(--surface);
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center
}

.why .neq {
    color: var(--logo-purple)
}

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

.why-source {
    margin-top: 18px;
    font-size: .76rem;
    line-height: 1.5;
    color: #7a7480
}

.why-source a {
    color: inherit
}

/* The card stretches to the chart's height, so both edges line up. */
.why figure {
    flex: none;
    width: 170px;
    margin: 0
}

.why figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff
}

@media(max-width:720px) {
    .why-grid {
        flex-direction: column;
        gap: 20px
    }

    .why figure {
        width: 180px
    }
}

/* Current models: two phone screens side by side */
.phones-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

/* Shared rows keep both windows, and both notes, the same height. */
.phones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    column-gap: clamp(24px, 6vw, 72px);
    row-gap: 18px
}

.phone-col {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    margin: 0
}

@media(max-width:720px) {
    .phones {
        grid-template-columns: minmax(0, 420px);
        row-gap: 14px
    }

    .phone-col+.phone-col {
        margin-top: 20px
    }
}

.phone {
    border: 1px solid #ded4eb;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px -20px rgba(47, 30, 90, .35);
    display: flex
}

.phone-screen {
    display: flex;
    flex: 1;
    flex-direction: column
}

.phone-app {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #eee9f2;
    background: #fdfcff
}

.phone-app h3 {
    margin: 0;
    font-size: .9rem;
    line-height: 1.2
}

.phone-app span:last-child {
    color: var(--muted);
    font-size: .74rem
}

.phone-app .response-initial {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px
}

.chat {
    flex: 1;
    padding: 16px 14px 22px;
    background: #faf9fc
}

.bubble {
    margin: 0 0 12px;
    padding: 10px 13px;
    border-radius: 18px;
    font-size: .84rem;
    line-height: 1.55
}

.bubble.bot {
    max-width: 94%;
    border-bottom-left-radius: 5px;
    background: #fff;
    border: 1px solid #ebe5f1
}

.bubble .response-text {
    margin: 0 0 9px;
    font-size: .84rem;
    line-height: 1.55
}

.bubble .response-text:last-child {
    margin-bottom: 0
}

.bubble .response-list {
    margin: -3px 0 9px;
    padding-left: 18px;
    line-height: 1.55
}

.bubble .response-list:last-child {
    margin-bottom: 0
}

.phone-col .response-note {
    align-self: start;
    margin-top: 0;
    border-top: 0;
    padding: 0 6px;
    text-align: center
}

/* Approach: framework diagram, redrawn as SVG */
.fwd {
    margin: 0;
    padding: clamp(14px, 2.4vw, 26px);
    border: 1px solid #ded4eb;
    border-radius: 20px;
    background: #fff
}

.fwd svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: "Inter", system-ui, sans-serif
}

.fwd-line path {
    fill: none;
    stroke: #2f2b35;
    stroke-width: 1.6;
    stroke-linejoin: round
}

.fwd-line.thin path {
    stroke: #4d4754;
    stroke-width: 1.1
}

.fwd-t {
    font-size: 13.5px;
    fill: #2f2b35
}

.fwd .b {
    font-weight: 650
}

.fwd-rh {
    font-size: 12.5px
}

.fwd-s {
    font-size: 11px;
    fill: #5b5563
}

.fwd-q {
    font-size: 13.5px;
    fill: #1f5fb0
}

.fwd-m {
    font-size: 12.5px;
    fill: #3b2a5c
}

.fwd-or {
    font-size: 13px;
    font-style: italic;
    fill: #8a7fa0
}

.fwd-principles {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 14px;
    font: 12px/1.2 "Inter", system-ui, sans-serif;
    color: #3b2a5c
}

.fwd-ptitle {
    margin-bottom: 1px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6e46bb
}

.fwd-principles i {
    display: inline-block;
    min-width: 24px;
    margin-right: 7px;
    padding: 2px 0;
    border-radius: 5px;
    background: #6e46bb;
    color: #fff;
    font: 700 9.5px/1.2 "Inter", system-ui, sans-serif;
    text-align: center
}

.fwd-query {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font: 13.5px/1.45 "Inter", system-ui, sans-serif;
    color: #1f5fb0
}

/* Labels sit on the branch line; the white backing hides the line behind the text. */
.fwd-tool {
    display: inline-flex;
    padding: 0 6px;
    background: #fff;
    align-items: center;
    gap: 6px;
    height: 100%;
    font: 13px/1 "Inter", system-ui, sans-serif;
    color: #2f2b35;
    white-space: nowrap
}

.fwd-tool img {
    width: 20px;
    height: 20px;
    flex: none
}

.fwd-neo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1b3a6b
}

.fwd-neo img {
    width: 24px;
    height: 24px
}

.fwd-ccd {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 500 12.5px/1.8 "Inter", system-ui, sans-serif;
    text-align: center;
    margin: 0;
    color: #2f2b35
}

.fwd-ccd p {
    margin: 0
}

.fwd-ccd mark {
    background: #fcee4f;
    color: inherit;
    border-radius: 4px;
    padding: 1px 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone
}

.fwd-nli {
    display: grid;
    grid-auto-rows: min-content;
    align-content: center;
    gap: 6px;
    height: 100%;
    padding-right: 2px;
    font: 10px/1.35 "Inter", system-ui, sans-serif;
    color: #3d3844
}

.fwd-nli>div {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 68px 1fr;
    align-content: center;
    column-gap: 6px;
    row-gap: 1px;
    padding: 6px 8px;
    border-radius: 7px;
    border: 1px solid
}

.fwd-nli b {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 10px
}

.fwd-nli span {
    grid-column: 2;
    white-space: nowrap
}

.fwd-nli .e {
    background: #e3f4df;
    border-color: #a9d8a0
}

.fwd-nli .n {
    background: #fdf0cf;
    border-color: #ecd08b
}

.fwd-nli .c {
    background: #fbe1e1;
    border-color: #eeb0b0
}

.fwd-resp {
    font: 12px/1.5 "Inter", system-ui, sans-serif;
    color: #2f2b35
}

@media(max-width:900px) {
    .fwd-scroll {
        overflow-x: auto
    }

    .fwd svg {
        min-width: 900px
    }
}

/* Protocol Leverage Force: diagram + results table side by side */
.force-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    margin-top: 28px
}

.force-grid .force-panel {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.f-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #dcd1e9;
    border-radius: 20px;
    background: var(--surface);
    overflow: hidden
}

.f-table-head {
    padding: 20px 22px 14px
}

.f-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--logo-purple)
}

.f-table-head h3 {
    margin: 6px 0 0;
    font: 600 1.15rem/1.3 "Fraunces", Georgia, serif;
    color: var(--ink)
}

.f-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    font-variant-numeric: tabular-nums
}

.f-table th,
.f-table td {
    padding: 12px 22px;
    text-align: right;
    white-space: nowrap
}

.f-table th:first-child {
    text-align: left
}

.f-table thead th {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b6572;
    border-top: 1px solid #ece6f3;
    border-bottom: 1px solid #ece6f3;
    background: #f8f5fd
}

.f-table thead th.eps {
    text-transform: none;
    font-size: .85rem
}

.f-table tbody tr+tr th,
.f-table tbody tr+tr td {
    border-top: 1px solid #f0ebf5
}

.f-table tbody th {
    font-weight: 650;
    color: var(--ink)
}

.f-table td {
    color: #4a4550
}

.f-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px
}

/* Bar length = mean F relative to the largest value (1.341% = 70px). */
.f-bar i {
    display: block;
    flex: none;
    height: 8px;
    border-radius: 4px;
    background: #b9a2e6
}

.f-takeaway {
    margin: auto 0 0;
    padding: 14px 22px;
    border-top: 1px solid #ece6f3;
    font-size: .88rem;
    line-height: 1.55;
    color: #3d3844
}

.f-takeaway b {
    color: var(--logo-purple)
}

.f-note {
    margin: 0;
    padding: 14px 22px 18px;
    border-top: 1px solid #ece6f3;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted)
}

@media(max-width:900px) {
    .force-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:520px) {

    .f-table th,
    .f-table td {
        padding: 10px 12px
    }
}

/* Valence–arousal: one-time drawing animation + results */
.trajectory-plot.animate .tseg {
    stroke-dasharray: 1;
    stroke-dashoffset: 1
}

.trajectory-plot.animate .tend {
    opacity: 0
}

.trajectory-plot.play .tseg {
    animation: t-draw var(--dur) linear var(--d) forwards
}

.trajectory-plot.play .tend {
    animation: t-fade .4s ease var(--d) forwards
}

@keyframes t-draw {
    to {
        stroke-dashoffset: 0
    }
}

@keyframes t-fade {
    to {
        opacity: 1
    }
}

.va-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px
}

.va-card {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 16px 20px;
    border: 1px solid #dcd1e9;
    border-radius: 14px;
    background: var(--surface)
}

.va-card p {
    margin: 0;
    color: #4a4550;
    font-size: .93rem;
    line-height: 1.55
}

.va-tag {
    flex: none;
    font-weight: 700;
    font-size: .85rem;
    color: var(--logo-purple);
    white-space: nowrap
}

.va-takeaway {
    margin: 16px 0 0;
    color: #3d3844;
    font-size: .98rem
}

.va-takeaway b {
    color: var(--logo-purple)
}

@media(max-width:720px) {
    .va-results {
        grid-template-columns: 1fr
    }

    .va-card {
        flex-direction: column;
        gap: 4px
    }
}

/* Team page */
.team-page {
    padding: 72px 0 100px
}


/* Before & after: baseline vs. CBT Lens, one model at a time */
.ba {
    margin-top: 22px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #dcd1e9;
    border-radius: 20px;
    background: var(--surface)
}

.ba-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px 24px;
    flex-wrap: wrap
}

.ba-head h3 {
    margin: 6px 0 0;
    font: 600 1.15rem/1.3 "Fraunces", Georgia, serif;
    color: var(--ink)
}

.ba-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #efe8fb
}

.ba-tabs button {
    border: 0;
    border-radius: 999px;
    padding: 7px 18px;
    background: none;
    color: #5d5070;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s
}

.ba-tabs button[aria-selected="true"] {
    background: #fff;
    color: #4f2a91;
    box-shadow: 0 2px 8px -3px rgba(76, 45, 140, .35)
}

.ba-query {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0 0
}

.ba-user {
    display: grid;
    place-items: end center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(160deg, #cdb8f2, #7a4fc4);
    color: #f5f0ff
}

.ba-user svg {
    width: 30px;
    height: 30px;
    margin-bottom: -4px
}

.ba-msg {
    flex: 1;
    min-width: 0
}

.ba-meta {
    margin: 2px 0 6px;
    font-size: .78rem;
    color: var(--muted)
}

.ba-meta b {
    color: var(--ink)
}

.ba-query p {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid #ddd0f5;
    border-radius: 4px 16px 16px 16px;
    background: #fff;
    box-shadow: 0 8px 22px -20px rgba(76, 45, 140, .6);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink)
}

.ba .response-text mark.same {
    background: #fbeccf
}


/* Chat windows reuse the "Current models" styles (.phones / .phone / .bubble). */
.ba .phones {
    margin-top: 22px
}

.ba .response-initial {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
    font: 700 .95rem "Inter", system-ui, sans-serif
}

.ba .response-initial.guided {
    background: #6e46bb;
    color: #fff
}

.ba .response-note b {
    color: #4f2a91
}

/* Strategy chosen by CBT Lens, shown in the guided window header */
.ba .phone-app h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px
}

.ba .phone-app h3 .strategy {
    padding: 3px 10px;
    border: 1px solid #ddd0f5;
    border-radius: 999px;
    background: #f4effd;
    color: #4f2a91;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .01em
}

.ba .phone-app h3 .strategy i {
    margin-right: 6px;
    padding-right: 6px;
    border-right: 1px solid #ddd0f5;
    font-style: normal;
    font-weight: 500;
    color: #8a7fa0
}
