:root {
    --paper: #f5f0e8;
    --ink: #272623;
    --purple: #c79aef;
    --yellow: #e8ef79;
    --white: #fffdf8;
    --line: #27262330
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans',sans-serif;
    font-size: 16px
}

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

button,input {
    font: inherit
}

button,a {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer;
    color: inherit
}

button:focus-visible,a:focus-visible,input:focus-visible {
    outline: 3px solid #8d53c6;
    outline-offset: 5px
}

header {
    max-width: 1440px;
    margin: auto;
    padding: 28px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.logo {
    font-family: 'Space Grotesk',sans-serif;
    font-size: 34px;
    letter-spacing: -2px;
    font-weight: 700;
    display: flex;
    align-items: center
}

.logo span {
    font-weight: 400
}

.logo i {
    font-style: normal;
    font-size: 32px;
    margin-left: 8px
}

nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 600
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px
}

#theme {
    background: none;
    border: 0;
    font-size: 27px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: 17px 25px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s,box-shadow .2s
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 3px 4px 0 #a875d0
}

.button.small {
    padding: 12px 19px;
    font-size: 14px
}

.hero {
    padding: 55px 5% 0;
    text-align: center;
    overflow: hidden
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px
}

.asterisk {
    display: inline-block;
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle
}

h1,h2 {
    font-family: 'Space Grotesk',sans-serif;
    font-weight: 600;
    letter-spacing: -5px;
    line-height: 1.02;
    margin: 22px 0
}

h1 {
    font-size: clamp(58px,7.5vw,108px)
}

em {
    font-family: Georgia,serif;
    font-weight: 400;
    letter-spacing: -.065em
}

h1 em {
    position: relative
}

h1 em:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    transform: rotate(-2deg);
    z-index: -1
}

.intro {
    font-size: 18px;
    line-height: 1.55;
    margin: 26px auto
}

.hero-cta {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center
}

.text-link {
    font-weight: 600;
    font-size: 15px
}

.text-link span {
    margin-left: 10px
}

.hero-scene {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    height: 430px
}

.hero-scene img {
    width: 740px;
    height: 430px;
    object-fit: contain;
    max-width: 100%;
    mix-blend-mode: multiply
}

.floating {
    position: absolute;
    text-align: left;
    display: flex;
    gap: 11px;
    background: var(--white);
    border: 1.5px solid var(--ink);
    padding: 16px;
    border-radius: 13px;
    box-shadow: 4px 5px 0 var(--ink);
    max-width: 310px;
    animation: bob 6s ease-in-out infinite
}

.floating small {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700
}

.floating p {
    font-size: 14px;
    margin: 6px 0 0
}

.question {
    left: 1%;
    top: 85px;
    transform: rotate(-5deg)
}

.answer {
    right: 0;
    bottom: 65px;
    transform: rotate(4deg);
    animation-delay: -3s
}

.bubble-avatar {
    background: var(--yellow);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.spark {
    font-size: 27px
}

.handnote {
    position: absolute;
    right: 3%;
    top: 50px;
    font-family: Georgia,serif;
    font-style: italic;
    font-size: 20px;
    transform: rotate(10deg)
}

.hero-bottom {
    max-width: 1300px;
    margin: auto;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: .3px
}

.chapter,.work,.human,.insights {
    padding: 42px 7% 75px
}

.lilac {
    background: var(--purple);
    border-radius: 65px 65px 0 0;
    margin-top: 24px
}

.chapter-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 1.4px;
    font-weight: 700;
    gap: 25px
}

.knowledge {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12%;
    align-items: center;
    max-width: 1200px;
    margin: 75px auto
}

h2 {
    font-size: clamp(48px,5vw,76px);
    letter-spacing: -3.5px
}

.knowledge p,.work-copy>p,.human p,.insight-heading>p {
    font-size: 18px;
    line-height: 1.65;
    max-width: 390px
}

.knowledge-paper {
    background: var(--paper);
    border: 2px solid var(--ink);
    padding: 25px 28px;
    transform: rotate(3deg);
    box-shadow: 9px 9px 0 #272623
}

.paper-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ink)
}

.paper-heading span {
    font-size: 36px
}

.knowledge-line {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 25px 0;
    font-size: 19px
}

.knowledge-line b {
    font-size: 12px
}

.knowledge-line span:last-child {
    margin-left: auto
}

.paper-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
    margin-top: 25px
}

.seal {
    border: 2px solid;
    border-radius: 50%;
    font: italic 35px Georgia;
    padding: 3px 12px;
    transform: rotate(-15deg)
}

.big-line {
    text-align: center;
    font-family: 'Space Grotesk',sans-serif;
    font-size: clamp(35px,5.7vw,84px);
    letter-spacing: -3px;
    padding: 25px 0
}

.big-line span {
    font-family: Georgia,serif;
    font-style: italic
}

.work {
    padding-top: 45px;
    padding-bottom: 110px
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9%;
    max-width: 1200px;
    margin: 65px auto 0
}

.demo-tag {
    border: 1px solid;
    border-radius: 20px;
    padding: 5px 10px
}

.scenario-list {
    margin-top: 35px
}

.scenario-list button {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    text-align: left;
    padding: 20px 10px;
    font-size: 16px;
    gap: 18px
}

.scenario-list button span {
    font-size: 12px
}

.scenario-list button b {
    margin-left: auto;
    font-size: 20px
}

.scenario-list button.active {
    background: var(--yellow);
    border-radius: 5px
}

.demo-stage {
    background: #dfd5eb;
    border-radius: 48% 48% 15px 15px;
    padding: 48px 35px 25px;
    align-self: center
}

.stage-note {
    font: italic 17px Georgia;
    display: block;
    text-align: center;
    margin-bottom: 20px
}

.chat {
    background: var(--white);
    border: 1.5px solid #272623;
    color: #272623;
    border-radius: 17px;
    box-shadow: 6px 7px 0 #272623;
    overflow: hidden
}

.chat-header {
    padding: 20px;
    background: #eeebdf;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #27262325
}

.chat-header small {
    display: block;
    font-size: 12px;
    margin-top: 3px
}

.chat-icon {
    background: #c79aef;
    padding: 6px 10px;
    font-size: 26px;
    border-radius: 12px
}

.chat-menu {
    margin-left: auto;
    font-size: 25px
}

#chat-body {
    height: 310px;
    padding: 22px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.chat-bubble {
    font-size: 14px;
    line-height: 1.55;
    max-width: 90%;
    background: #f1eee8;
    border-radius: 12px;
    padding: 13px 15px
}

.chat-bubble.user {
    align-self: flex-end;
    background: #e8ef79
}

.chat-bubble.assistant {
    align-self: flex-start
}

.chat-bubble small {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 5px
}

.product-detail {
    margin-top: 12px;
    border-top: 1px solid #27262330;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.product-detail b {
    font-size: 13px
}

#chat-form {
    margin: 0 16px 10px;
    border: 1px solid #27262340;
    border-radius: 30px;
    display: flex;
    padding: 6px
}

#message {
    width: 100%;
    min-width: 0;
    border: 0;
    background: none;
    padding: 9px;
    font-size: 13px;
    outline: none
}

#chat-form button {
    border: 0;
    border-radius: 50%;
    background: #272623;
    color: white;
    width: 35px;
    flex-shrink: 0
}

.chat-foot {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding: 0 8px 13px
}

.result {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    margin: 17px 0 0
}

.result>span {
    font-size: 28px
}

.human {
    background: var(--yellow);
    border-radius: 55px 55px 0 0
}

.human-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12%;
    max-width: 1200px;
    margin: 70px auto 20px;
    align-items: center
}

.handoff {
    transform: rotate(-3deg)
}

.handoff-msg {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border: 1.5px solid var(--ink);
    border-radius: 15px;
    box-shadow: 4px 5px 0 var(--ink)
}

.handoff-msg p {
    font-size: 15px;
    margin: 0;
    line-height: 1.7
}

.mini {
    background: var(--purple);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.person {
    margin-left: 25px
}

.person .mini {
    background: var(--yellow)
}

.handoff-divider {
    margin: 30px 0;
    padding-left: 25px;
    font-size: 12px
}

.handoff>small {
    display: block;
    text-align: right;
    margin: 20px 0;
    font-size: 12px
}

.underlined {
    display: inline-block;
    border-bottom: 2px solid;
    font: italic 20px Georgia;
    padding-bottom: 8px
}

.insights {
    padding-top: 45px
}

.insight-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 70px auto 45px
}

.ledger {
    max-width: 1200px;
    margin: auto;
    border: 1.5px solid var(--ink);
    background: var(--white);
    transform: rotate(-1deg);
    box-shadow: 6px 6px 0 var(--purple)
}

.ledger-top {
    display: flex;
    justify-content: space-between;
    background: var(--purple);
    padding: 20px 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px
}

.ledger-row {
    display: grid;
    grid-template-columns: 1fr .8fr 1.2fr;
    gap: 25px;
    padding: 28px 25px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    align-items: center
}

.ledger-row>span:first-child {
    font-family: Georgia,serif;
    font-style: italic;
    font-size: 22px
}

.ledger-row>b {
    font-weight: 500
}

.ledger-foot {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    font-size: 14px
}

.closing {
    text-align: center;
    padding: 90px 5% 110px;
    position: relative
}

.closing h2 {
    font-size: clamp(62px,8vw,115px);
    letter-spacing: -6px;
    margin: 30px 0
}

.closing p {
    font-size: 20px
}

.closing .button {
    margin-top: 10px
}

.closing-note {
    display: block;
    font: italic 18px Georgia;
    margin-top: 25px;
    transform: rotate(-7deg)
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    border-top: 1px solid var(--line);
    gap: 20px
}

footer p,footer>a:last-child {
    font-size: 13px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0)
}

body.dark {
    --paper: #26242b;
    --ink: #f3eee4;
    --white: #343039;
    --line: #f3eee430
}

body.dark .lilac,body.dark .human {
    color: #272623
}

body.dark .knowledge-paper,body.dark .handoff-msg {
    --paper: #f5f0e8;
    --white: #fffdf8;
    --ink: #272623;
    --line: #27262330;
    color: #272623
}

body.dark .hero-scene img {
    mix-blend-mode: normal;
    border-radius: 55%
}

body.dark .demo-stage {
    color: #272623
}

body.dark .ledger-top {
    color: #272623
}

body.dark .bubble-avatar {
    color: #272623
}

body.dark .scenario-list button.active {
    color: #272623
}

@keyframes bob {
    50% {
        translate: 0 -9px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none!important;
        scroll-behavior: auto!important;
        transition: none!important
    }
}

@media(min-width: 1500px) {
    main {
        max-width:1600px;
        margin: auto
    }
}

@media(max-width: 900px) {
    nav {
        display:none
    }

    .hero {
        padding-top: 35px
    }

    h1 {
        letter-spacing: -3px
    }

    .hero-scene {
        height: 370px
    }

    .hero-scene img {
        height: 370px
    }

    .floating {
        max-width: 245px
    }

    .question {
        left: 0;
        top: 50px
    }

    .answer {
        bottom: 30px
    }

    .handnote {
        display: none
    }

    .knowledge,.work-grid,.human-grid {
        gap: 6%
    }

    .demo-stage {
        padding: 35px 18px 20px
    }

    .knowledge-paper {
        padding: 20px
    }

    .knowledge-line {
        font-size: 16px
    }

    .insight-heading {
        display: block
    }

    .insight-heading>p {
        max-width: 600px
    }

    .chapter,.work,.human,.insights {
        padding-left: 5%;
        padding-right: 5%
    }

    h2 {
        letter-spacing: -2.5px
    }
}

@media(max-width: 650px) {
    header {
        padding:20px 5%;
        gap: 12px
    }

    .logo {
        font-size: 28px
    }

    .logo i {
        font-size: 25px
    }

    .nav-actions {
        gap: 10px
    }

    .button.small {
        font-size: 12px;
        padding: 11px 14px;
        gap: 15px
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 1px
    }

    .hero {
        padding-top: 26px
    }

    h1 {
        font-size: 55px;
        letter-spacing: -3px;
        line-height: 1.06
    }

    .intro {
        font-size: 16px
    }

    .hero-cta {
        gap: 20px
    }

    .button {
        padding: 15px 18px;
        font-size: 14px;
        gap: 18px
    }

    .hero-scene {
        height: 340px;
        margin-top: 20px
    }

    .hero-scene img {
        height: 300px;
        width: 100%;
        object-fit: cover
    }

    .floating {
        padding: 10px;
        gap: 8px;
        max-width: 230px;
        border-radius: 10px
    }

    .floating small {
        font-size: 8px
    }

    .floating p {
        font-size: 12px
    }

    .question {
        top: 15px;
        left: 0
    }

    .answer {
        bottom: 20px;
        right: 0
    }

    .hero-bottom {
        font-size: 10px;
        gap: 15px
    }

    .hero-bottom>span:nth-child(2) {
        display: none
    }

    .lilac {
        border-radius: 35px 35px 0 0
    }

    .chapter-top {
        font-size: 9px;
        letter-spacing: .7px
    }

    .chapter-top>span:last-child {
        max-width: 130px;
        text-align: right
    }

    .knowledge,.work-grid,.human-grid {
        grid-template-columns: 1fr;
        margin-top: 45px;
        gap: 40px
    }

    .knowledge {
        margin-bottom: 30px
    }

    h2 {
        font-size: 52px
    }

    .knowledge p,.work-copy>p,.human p,.insight-heading>p {
        font-size: 16px
    }

    .knowledge-paper {
        margin: 12px 8px
    }

    .big-line {
        font-size: 39px;
        letter-spacing: -2px
    }

    .chapter,.work,.human,.insights {
        padding-bottom: 55px
    }

    .demo-stage {
        padding: 35px 22px 20px
    }

    .work-grid {
        margin-top: 30px
    }

    .human {
        border-radius: 35px 35px 0 0
    }

    .human-grid>div:last-child {
        grid-row: 1
    }

    .handoff {
        margin: 10px 8px
    }

    .handoff-msg p {
        font-size: 14px
    }

    .insight-heading {
        margin-top: 40px
    }

    .ledger-top {
        padding: 16px;
        font-size: 10px;
        gap: 10px
    }

    .ledger-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 20px 16px
    }

    .ledger-row>span:first-child {
        font-size: 20px
    }

    .ledger-row>span:last-child {
        grid-column: 1/-1;
        font-size: 12px
    }

    .ledger-row b {
        font-size: 11px
    }

    .ledger-foot {
        font-size: 12px;
        padding: 16px
    }

    .closing {
        padding: 55px 5% 65px
    }

    .closing h2 {
        font-size: 63px;
        letter-spacing: -3px
    }

    footer {
        flex-wrap: wrap
    }

    footer p {
        order: 3;
        width: 100%;
        margin: 0
    }

    footer>a:last-child {
        font-size: 12px
    }
}

/* New chapters extend the shop's existing paper, ink and lilac language. */
.rescue-section {
    padding: 45px 7% 0;
    background: #e8d5f3;
    border-radius: 60px 60px 0 0;
    color: #272623;
    --ink: #272623;
    --paper: #f5f0e8;
    --line: #27262330
}

.rescue-heading {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10%;
    max-width: 1200px;
    margin: 55px auto 40px;
    align-items: center
}

.rescue-heading p {
    max-width: 440px;
    font-size: 18px;
    line-height: 1.65
}

.handwritten {
    font: italic 27px/1.3 Georgia;
    display: block;
    transform: rotate(7deg)
}

.rescue-caption {
    padding-left: 35px
}

.rescue-caption p {
    font-size: 15px;
    max-width: 260px;
    margin-top: 35px
}

.rescue-theatre {
    max-width: 1200px;
    margin: auto;
    background: #f5f0e8;
    border: 1.5px solid #272623;
    border-radius: 17px;
    box-shadow: 7px 8px 0 #272623;
    overflow: hidden
}

.theatre-top {
    padding: 19px 25px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #27262330;
    font-size: 11px;
    letter-spacing: 1px;
    gap: 15px
}

.rescue-floor {
    height: 340px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(transparent 91%,#272623 91%,#272623 91.5%,transparent 91.5%)
}

.opportunity {
    position: absolute;
    left: 8%;
    top: 45px;
    width: 180px;
    min-height: 205px;
    border: 1.5px solid #272623;
    border-radius: 5px;
    background: #e8ef79;
    box-shadow: 4px 5px 0 #272623;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transform: rotate(-7deg);
    transition: transform 1s cubic-bezier(.2,.85,.25,1.18),opacity .8s
}

.ticket-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    font-weight: 700
}

.opportunity strong {
    font: 600 55px 'Space Grotesk',sans-serif;
    letter-spacing: -3px
}

.opportunity>span:not(.ticket-label) {
    font-size: 14px
}

.opportunity small {
    font-size: 12px;
    border-top: 1px dashed #27262360;
    padding-top: 10px
}

.rescue-actor {
    position: absolute;
    left: 43%;
    bottom: 35px;
    display: grid;
    justify-items: center;
    transition: transform .8s cubic-bezier(.17,.9,.3,1.25)
}

.mascot-portrait {
    display: block;
    width: 120px;
    height: 120px;
    border: 2px solid #272623;
    border-radius: 45% 45% 48% 48%;
    overflow: hidden;
    background: #f5f0e8;
    box-shadow: 3px 4px 0 #272623
}

.mascot-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 51% 44%;
    transform: scale(2.3);
    transform-origin: 51% 44%
}

.actor-label {
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px
}

.intervention {
    position: absolute;
    width: 300px;
    max-width: 35%;
    right: 5%;
    top: 55px;
    border: 1.5px solid #272623;
    border-radius: 16px 16px 16px 2px;
    background: #fffdf8;
    padding: 22px;
    box-shadow: 4px 5px 0 #c79aef;
    transform: rotate(3deg)
}

.intervention small {
    font-size: 10px;
    letter-spacing: 1px
}

.intervention p {
    font-size: 19px;
    line-height: 1.45;
    margin: 10px 0 0
}

.outcome-stamp {
    position: absolute;
    left: 28%;
    top: 55px;
    font-size: 20px;
    font-weight: 700;
    border: 3px solid #436032;
    color: #436032;
    border-radius: 50%;
    padding: 20px;
    transform: scale(0) rotate(-25deg);
    transition: transform .5s cubic-bezier(.16,1.5,.45,1);
    background: #f5f0e8
}

.rescue-theatre[data-step="1"] .opportunity {
    transform: translateX(-92%) rotate(-24deg);
    opacity: .4
}

.rescue-theatre[data-step="1"] .rescue-actor {
    transform: rotate(-9deg) translateX(-15px)
}

.rescue-theatre[data-step="2"] .opportunity {
    transform: translateX(25%) rotate(10deg)
}

.rescue-theatre[data-step="2"] .rescue-actor {
    transform: translateX(-25%) rotate(-12deg) scale(1.06,.94)
}

.rescue-theatre[data-step="3"] .opportunity {
    transform: translateX(15%) rotate(-3deg)
}

.rescue-theatre[data-step="3"] .rescue-actor {
    transform: rotate(7deg)
}

.rescue-theatre[data-step="4"] .opportunity {
    transform: rotate(0);
    background: #dbe4c5
}

.rescue-theatre[data-step="4"] .outcome-stamp {
    transform: scale(1) rotate(-15deg)
}

.rescue-theatre[data-step="4"] .rescue-actor {
    animation: character-settle .75s both
}

.rescue-explanation {
    border-top: 1px solid #27262330;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.rescue-explanation small {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700
}

.rescue-explanation p {
    font-size: 17px;
    margin: 10px 0
}

.revenue-slip {
    border-left: 1px dashed #27262360;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px
}

.revenue-slip strong {
    font: 500 40px 'Space Grotesk',sans-serif
}

.revenue-slip>span {
    font-size: 11px
}

.story-controls {
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

.play-controls {
    display: flex;
    gap: 12px;
    align-items: center
}

.round-button {
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--ink);
    background: transparent;
    border-radius: 50%;
    font-size: 25px
}

.story-steps {
    display: flex;
    gap: 10px
}

.story-steps button {
    width: 36px;
    height: 36px;
    border: 1px solid #272623;
    border-radius: 50%;
    background: transparent;
    color: #272623;
    font-size: 13px
}

.story-steps button[aria-pressed="true"] {
    background: #272623;
    color: #f5f0e8;
    transform: rotate(-8deg) scale(1.12)
}

.story-disclaimer {
    max-width: 1200px;
    margin: 20px auto 0;
    font-size: 12px;
    line-height: 1.6;
    opacity: .8
}

.story-bridge {
    max-width: 1200px;
    margin: 45px auto 0;
    display: flex;
    align-items: center;
    gap: 18px;
    border-top: 1px solid #27262340;
    padding: 25px 0 35px;
    font-size: 14px
}

.story-bridge b {
    margin-left: auto;
    white-space: nowrap
}

.insight-machine {
    max-width: 1200px;
    margin: 45px auto;
    display: grid;
    grid-template-columns: 1fr .7fr 1fr;
    gap: 30px;
    align-items: center
}

.machine-label {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px
}

.conversation-stream button {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    border-radius: 12px 12px 12px 2px;
    box-shadow: 3px 3px 0 var(--line);
    font: italic 18px Georgia;
    text-align: left;
    transition: transform .55s cubic-bezier(.2,1.3,.3,1),background .2s;
    margin-bottom: 14px;
    transform: rotate(-2deg)
}

.conversation-stream button:nth-child(odd) {
    transform: rotate(2deg)
}

.conversation-stream button small {
    display: block;
    font: 11px 'DM Sans',sans-serif;
    margin-top: 8px
}

.conversation-stream button[aria-pressed="true"] {
    background: var(--yellow);
    color: #272623;
    transform: translateX(12px) rotate(0)
}

.conversation-stream button.recorded small:after {
    content: ' · Noted ✓'
}

.intelligence {
    text-align: center;
    position: relative
}

.intelligence .mascot-portrait {
    margin: 25px auto;
    width: 145px;
    height: 145px
}

.intelligence-name {
    font: italic 19px/1.5 Georgia;
    display: block
}

.data-pulse {
    position: absolute;
    top: 48%;
    right: 0;
    font-size: 30px;
    opacity: 0
}

.intelligence.processing .mascot-portrait {
    animation: character-settle .8s
}

.intelligence.processing .data-pulse {
    animation: carry-insight .85s forwards
}

.insight-note {
    background: #e8ef79;
    color: #272623;
    border: 1.5px solid #272623;
    padding: 25px;
    box-shadow: 6px 7px 0 #272623;
    transform: rotate(3deg);
    min-height: 310px;
    align-self: center
}

.insight-note>small {
    font-size: 11px;
    letter-spacing: 1px
}

.insight-note h3 {
    font: 500 30px/1.15 'Space Grotesk',sans-serif;
    letter-spacing: -1px;
    margin: 15px 0
}

.insight-note p {
    font-size: 15px;
    line-height: 1.6
}

.insight-note>div {
    border-top: 1px dashed #27262370;
    margin-top: 22px;
    padding-top: 18px;
    font-size: 13px;
    line-height: 1.5
}

.insight-note.noted {
    animation: note-land .6s both
}

.sample-label {
    font-size: 12px
}

.live-ledger {
    margin-top: 45px
}

.notebook-summary {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-bottom: 1px solid var(--line);
    padding: 25px;
    gap: 20px
}

.notebook-summary>div {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.notebook-summary strong {
    font: 500 44px 'Space Grotesk',sans-serif;
    letter-spacing: -2px
}

.notebook-summary span {
    font-size: 12px
}

.topic-chart {
    padding: 25px;
    border-bottom: 1px solid var(--line)
}

.topic-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px
}

.topic-heading b {
    font-size: 16px
}

.topic-heading>span {
    font-size: 12px
}

.topic-row {
    display: grid;
    grid-template-columns: 230px 1fr 20px;
    align-items: center;
    gap: 20px;
    margin: 18px 0;
    font-size: 14px
}

.bar-track {
    height: 14px;
    background: var(--line);
    border-radius: 5px;
    overflow: hidden
}

.bar-track span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--purple);
    transform-origin: left;
    transition: width .8s cubic-bezier(.2,.9,.3,1)
}

.topic-row:nth-child(3) .bar-track span {
    background: #b0c4ab
}

.topic-row:nth-child(4) .bar-track span {
    background: #dfca7a
}

.topic-row:nth-child(5) .bar-track span {
    background: #ca9b75
}

.rescue-record {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 25px;
    border-bottom: 1px solid var(--line)
}

.rescue-record[hidden] {
    display: none
}

.rescue-record>span {
    font-size: 30px
}

.rescue-record b {
    font-size: 14px
}

.rescue-record p,.rescue-record a {
    font-size: 12px
}

.rescue-record a {
    margin-left: auto
}

.button:active,.round-button:active {
    transform: translateY(2px) scale(.96);
    box-shadow: none
}

.button {
    transition: transform .35s cubic-bezier(.2,1.5,.3,1),box-shadow .2s
}

.chat-bubble {
    animation: message-land .4s cubic-bezier(.2,1.3,.3,1)
}

.tilt-surface {
    transition: rotate .35s ease-out;
    rotate: var(--tilt,0deg)
}

@keyframes character-settle {
    0% {
        transform: scale(.91,1.08) rotate(-8deg)
    }

    35% {
        transform: scale(1.1,.91) rotate(7deg)
    }

    65% {
        transform: scale(.98,1.04) rotate(-3deg)
    }

    100% {
        transform: scale(1) rotate(0)
    }
}

@keyframes carry-insight {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(.5)
    }

    30% {
        opacity: 1
    }

    100% {
        opacity: 0;
        transform: translateX(50px) rotate(90deg) scale(1.2)
    }
}

@keyframes note-land {
    0% {
        transform: rotate(-4deg) scale(.95)
    }

    65% {
        transform: rotate(5deg) scale(1.015)
    }

    100% {
        transform: rotate(3deg) scale(1)
    }
}

@keyframes message-land {
    0% {
        transform: scale(.92) rotate(-2deg)
    }

    100% {
        transform: scale(1) rotate(0)
    }
}

@media(max-width: 900px) {
    .rescue-section {
        padding-left:5%;
        padding-right: 5%
    }

    .rescue-floor {
        height: 370px
    }

    .opportunity {
        left: 5%;
        width: 155px
    }

    .rescue-actor {
        left: 37%;
        bottom: 25px
    }

    .intervention {
        right: 4%;
        max-width: 36%;
        padding: 18px
    }

    .intervention p {
        font-size: 17px
    }

    .outcome-stamp {
        left: 22%;
        font-size: 16px;
        padding: 16px
    }

    .insight-machine {
        grid-template-columns: 1fr 1fr;
        gap: 25px
    }

    .intelligence {
        grid-column: 2;
        grid-row: 1
    }

    .insight-note {
        grid-column: 1/-1;
        min-height: 0
    }

    .topic-row {
        grid-template-columns: 200px 1fr 20px
    }
}

@media(max-width: 650px) {
    .rescue-section {
        border-radius:35px 35px 0 0;
        padding-top: 35px
    }

    .rescue-heading {
        grid-template-columns: 1fr;
        margin-top: 35px;
        gap: 10px
    }

    .rescue-caption {
        padding: 0
    }

    .handwritten {
        font-size: 21px;
        transform: rotate(-3deg)
    }

    .rescue-caption p {
        max-width: 100%;
        font-size: 14px;
        margin-top: 15px
    }

    .rescue-heading p {
        font-size: 16px
    }

    .theatre-top {
        padding: 15px;
        font-size: 9px
    }

    .rescue-floor {
        height: 380px
    }

    .opportunity {
        top: 30px;
        left: 6%;
        width: 130px;
        min-height: 175px;
        padding: 13px;
        gap: 8px
    }

    .opportunity strong {
        font-size: 42px
    }

    .opportunity>span:not(.ticket-label) {
        font-size: 12px
    }

    .opportunity small {
        font-size: 11px
    }

    .ticket-label {
        font-size: 9px
    }

    .rescue-actor {
        left: 17%;
        bottom: 23px
    }

    .rescue-actor .mascot-portrait {
        width: 85px;
        height: 85px
    }

    .intervention {
        top: 70px;
        right: 5%;
        width: 47%;
        max-width: 47%;
        padding: 14px
    }

    .intervention p {
        font-size: 15px
    }

    .outcome-stamp {
        top: 250px;
        left: auto;
        right: 9%;
        font-size: 15px;
        padding: 15px
    }

    .rescue-explanation {
        padding: 20px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px
    }

    .rescue-explanation p {
        font-size: 15px;
        min-height: 45px
    }

    .revenue-slip {
        border-left: 0;
        border-top: 1px dashed #27262360;
        padding: 15px 0 0;
        min-width: 0
    }

    .revenue-slip strong {
        font-size: 35px
    }

    .revenue-slip small {
        font-size: 10px
    }

    .story-controls {
        gap: 20px;
        margin-top: 25px
    }

    .story-steps {
        gap: 12px
    }

    .story-steps button {
        width: 40px;
        height: 40px
    }

    .story-bridge {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 30px
    }

    .story-bridge>span:nth-child(2) {
        flex: 1
    }

    .story-bridge b {
        margin: 0 0 0 40px
    }

    .insight-machine {
        gap: 25px 15px
    }

    .conversation-stream button {
        font-size: 15px;
        padding: 12px
    }

    .conversation-stream button small {
        font-size: 10px
    }

    .conversation-stream button[aria-pressed="true"] {
        transform: translateX(5px)
    }

    .machine-label {
        font-size: 9px
    }

    .intelligence .mascot-portrait {
        width: 95px;
        height: 95px
    }

    .intelligence-name {
        font-size: 16px
    }

    .intelligence .data-pulse {
        right: -5px
    }

    .insight-note {
        margin: 0 7px;
        padding: 20px
    }

    .insight-note h3 {
        font-size: 28px
    }

    .notebook-summary {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 20px
    }

    .notebook-summary strong {
        font-size: 36px
    }

    .notebook-summary span {
        font-size: 11px
    }

    .topic-chart {
        padding: 20px
    }

    .topic-heading {
        flex-direction: column;
        gap: 6px
    }

    .topic-row {
        grid-template-columns: 1fr 20px;
        gap: 8px;
        margin: 22px 0
    }

    .topic-row>span {
        grid-column: 1/-1;
        font-size: 12px
    }

    .rescue-record {
        flex-wrap: wrap;
        padding: 20px;
        gap: 10px
    }

    .rescue-record>div {
        flex: 1
    }

    .rescue-record a {
        width: 100%;
        margin: 0 0 0 30px
    }

    .sample-label {
        font-size: 11px
    }
}

@media(prefers-reduced-motion:reduce) {
    .opportunity,.rescue-actor,.outcome-stamp,.bar-track span,.conversation-stream button {
        transition: none!important
    }

    .intelligence.processing .data-pulse {
        display: none
    }

    .tilt-surface {
        rotate: 0deg!important
    }
}
