/* Homepage-only story. CSS owns the illustration and its synchronized 24-second timeline. */
.home-story {
    --ink: #183c31;
    --paper: #f7f6ef;
    --accent: #e56843;
    --sage: #e3e8d8;
    --muted: #747c73;
    --duration: 24s;
}

.home-story * {
    box-sizing: border-box;
}

.home-story button,
.home-story a {
    -webkit-tap-highlight-color: transparent;
}

.home-story button {
    font: inherit;
    cursor: pointer;
}

.home-story button:focus-visible,
.home-story a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

.home-story .film {
    position: relative;
    height: 610px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #dce1d4;
    border-radius: 24px;
    background: #efeee4;
}

.home-story .film-label {
    position: absolute;
    top: 30px;
    left: 42px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-story .film-label span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.home-story .scene {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 0;
    padding: 64px 42px 44px;
    opacity: 0;
    pointer-events: none;
}

.home-story .scene-copy {
    position: relative;
    z-index: 2;
}

.home-story .step-label {
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2.2px;
    color: #6c7961;
    margin-bottom: 24px;
}

.home-story .scene-copy h3,
.home-story .scene-copy h3,
.home-story .scene-end h3 {
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.4vw, 58px);
    font-weight: 400;
    letter-spacing: -2.6px;
    line-height: 1.07;
}

.home-story .scene-copy h3 span,
.home-story .scene-copy h3 span {
    color: var(--accent);
}

.home-story .scene-copy p {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.8;
    color: #6a7469;
}

.home-story .copy-note {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}

.home-story .tiny-camera {
    display: block;
    width: 18px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    position: relative;
}

.home-story .tiny-camera::before {
    content: "";
    position: absolute;
    inset: 3px 5px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.home-story .tiny-camera::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 3px;
    top: -4px;
    left: 4px;
    border: 1.5px solid currentColor;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
}

.home-story .visual {
    position: relative;
    height: 470px;
}

.home-story .illustration {
    position: absolute;
    width: 560px;
    height: 470px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(var(--art-scale, 1));
}

.home-story .halo {
    position: absolute;
    width: 410px;
    height: 410px;
    border-radius: 50%;
    background: #e0e5d3;
    top: 32px;
    left: 80px;
}

.home-story .halo::after {
    content: "";
    position: absolute;
    inset: -18px;
    border: 1px solid #d9decc;
    border-radius: 50%;
}

.home-story .paper-menu {
    position: absolute;
    width: 270px;
    height: 358px;
    top: 55px;
    left: 30px;
    padding: 24px;
    background: #fcfaf2;
    border: 1px solid #ddd9c7;
    box-shadow: 0 20px 35px #26352419;
    transform: rotate(-10deg);
}

.home-story .paper-ornament {
    text-align: center;
    font-size: 25px;
    color: var(--accent);
}

.home-story .paper-menu > small {
    display: block;
    text-align: center;
    font-size: 8px;
    letter-spacing: 2px;
    margin: 10px 0 16px;
}

.home-story .paper-menu .paper-title {
    font: 27px Georgia, serif;
    text-align: center;
    margin: 0;
}

.home-story .paper-rule {
    height: 1px;
    background: #bec6af;
    margin: 17px 0;
}

.home-story .paper-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-family: Georgia, serif;
    font-size: 13px;
    border-bottom: 1px solid #e3e4d9;
}

.home-story .paper-row b {
    font-weight: 400;
}

.home-story .paper-footer {
    display: block;
    text-align: center;
    font-size: 6px;
    letter-spacing: 2px;
    margin-top: 22px;
}

.home-story .phone {
    position: absolute;
    width: 230px;
    height: 448px;
    padding: 8px;
    background: #19372e;
    border: 2px solid #3f594e;
    border-radius: 34px;
    box-shadow: 12px 24px 38px #1b35252b, inset 0 0 0 2px #10271f;
}

.home-story .phone::after {
    content: "";
    position: absolute;
    height: 4px;
    width: 66px;
    background: #fff5;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
}

.home-story .phone-speaker {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 17px;
    border-radius: 0 0 12px 12px;
    background: #19372e;
}

.home-story .phone-screen {
    position: relative;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
}

.home-story .phone-status {
    display: flex;
    justify-content: space-between;
    padding: 9px 15px 8px;
    font-size: 8px;
    color: inherit;
}

.home-story .photo-phone {
    left: 270px;
    top: 5px;
    transform: rotate(6deg);
}

.home-story .camera-screen {
    background: #48564b;
    color: #fff;
}

.home-story .camera-label {
    text-align: center;
    font-size: 11px;
    margin: 19px 0 28px;
}

.home-story .camera-document {
    position: absolute;
    width: 168px;
    top: 112px;
    left: 21px;
    height: 209px;
    padding: 16px 12px;
    background: #f8f5e9;
    color: var(--ink);
    overflow: hidden;
    transform: rotate(-3deg);
}

.home-story .camera-document > small {
    display: block;
    text-align: center;
    font-size: 5px;
    letter-spacing: 1px;
    margin-bottom: 9px;
}

.home-story .camera-document > strong {
    display: block;
    text-align: center;
    font: 17px Georgia, serif;
    margin-bottom: 17px;
}

.home-story .camera-document > div:not(.scan-line) {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    padding: 11px 0;
    border-bottom: 1px solid #dee0d0;
}

.home-story .camera-document b {
    font-weight: 500;
}

.home-story .camera-corners {
    position: absolute;
    inset: 103px 13px 98px;
}

.home-story .camera-corners i {
    position: absolute;
    width: 17px;
    height: 17px;
    border-color: #f5c46d;
    border-style: solid;
}

.home-story .camera-corners i:nth-child(1) {
    left: 0;
    top: 0;
    border-width: 2px 0 0 2px;
}

.home-story .camera-corners i:nth-child(2) {
    right: 0;
    top: 0;
    border-width: 2px 2px 0 0;
}

.home-story .camera-corners i:nth-child(3) {
    left: 0;
    bottom: 0;
    border-width: 0 0 2px 2px;
}

.home-story .camera-corners i:nth-child(4) {
    right: 0;
    bottom: 0;
    border-width: 0 2px 2px 0;
}

.home-story .scan-line {
    position: absolute;
    height: 2px;
    left: 0;
    width: 100%;
    background: #e6b252;
    box-shadow: 0 0 10px #f4d99b;
}

.home-story .scan-line::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 44px;
    width: 100%;
    background: linear-gradient(transparent, #edbc654d);
}

.home-story .camera-feedback {
    position: absolute;
    bottom: 74px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 9px;
    color: #f7e5c3;
}

.home-story .shutter {
    position: absolute;
    bottom: 24px;
    left: 86px;
    width: 40px;
    height: 40px;
    border: 1px solid #fff8;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.home-story .shutter span {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #f8f5e9;
}

.home-story .scan-complete {
    position: absolute;
    bottom: 26px;
    left: 16px;
    right: 16px;
    background: #e1e9d4;
    color: var(--ink);
    border-radius: 9px;
    padding: 14px 5px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.home-story .scan-complete span {
    margin-right: 5px;
}

/* Keep this label separate from the hero's top-positioned .floating-note. */
.home-story .story-floating-note {
    position: absolute;
    padding: 13px 18px;
    background: white;
    border: 1px solid #e5e7da;
    box-shadow: 0 9px 20px #1c38200c;
    border-radius: 10px;
    font-size: 11px;
}

.home-story .photo-note {
    bottom: 10px;
    left: 80px;
    transform: rotate(-5deg);
}

.home-story .story-floating-note span {
    color: var(--accent);
    margin-right: 7px;
    font-size: 18px;
    vertical-align: middle;
}

.home-story .decoration {
    position: absolute;
    font: 40px Georgia, serif;
    color: var(--accent);
}

.home-story .star-one {
    top: 5px;
    left: 153px;
}

.home-story .star-two {
    right: 22px;
    top: 75px;
}

.home-story .copy-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    font-weight: 600;
}

.home-story .menu-phone {
    left: 168px;
    top: 4px;
    transform: rotate(-3deg);
}

.home-story .menu-screen,
.home-story .client-menu {
    background: #173a2f;
    color: #f7f4e6;
}

.home-story .menu-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 12px 12px;
    border-bottom: 1px solid #ffffff1f;
    font-size: 7px;
    letter-spacing: .5px;
}

.home-story .menu-brand small {
    margin-left: auto;
    font-size: 7px;
}

.home-story .cafe-symbol {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border: 1px solid #c1ccb25e;
    border-radius: 50%;
    font: 14px Georgia, serif;
}

.home-story .menu-heading {
    padding: 19px 13px 0;
}

.home-story .menu-heading > small {
    display: block;
    color: #e4b56a;
    font-size: 6px;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.home-story .menu-heading > strong {
    display: block;
    font: 28px Georgia, serif;
    letter-spacing: -.8px;
}

.home-story .menu-heading strong span {
    color: #e9b969;
}

.home-story .menu-heading p {
    margin: 9px 0 12px;
    font-size: 8px;
    color: #bccaba;
}

.home-story .menu-tabs {
    display: flex;
    gap: 13px;
    margin: 0 13px;
    padding: 8px 0;
    font-size: 8px;
    border-bottom: 1px solid #ffffff20;
}

.home-story .menu-tabs span:first-child {
    color: #ecc276;
}

.home-story .products {
    padding: 0 13px;
}

.home-story .product {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 11px 0;
    border-bottom: 1px solid #ffffff17;
}

.home-story .product strong {
    font: 12px Georgia, serif;
    display: block;
}

.home-story .product small {
    display: block;
    color: #b4c2b3;
    font-size: 6.5px;
    margin-top: 4px;
}

.home-story .product b {
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    color: #efce91;
    padding-top: 1px;
}

.home-story .social-line {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 16px 13px 0;
    font-size: 7px;
}

.home-story .instagram-icon {
    width: 10px;
    height: 10px;
    border: 1px solid #f3e7d2;
    border-radius: 3px;
    position: relative;
}

.home-story .instagram-icon::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid #f3e7d2;
    border-radius: 50%;
}

.home-story .google-letter {
    margin-left: 14px;
    color: #edc479;
    font-size: 13px;
    font-weight: 800;
}

.home-story .style-palette {
    position: absolute;
    left: 30px;
    top: 103px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    background: #fffcf4;
    box-shadow: 0 6px 20px #243a2012;
    border: 1px solid #dadfce;
    border-radius: 12px;
    transform: rotate(-6deg);
}

.home-story .style-palette > span {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 4px;
    font-size: 10px;
    font-weight: 600;
}

.home-story .swatch {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #0001;
    border-radius: 50%;
    font-size: 14px;
    font-style: normal;
}

.home-story .swatch-green {
    background: #183c31;
    color: white;
}

.home-story .swatch-cream {
    background: #eee4cc;
}

.home-story .swatch-orange {
    background: #ce704c;
}

.home-story .validation-note {
    position: absolute;
    left: 48px;
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: 12px;
    background: white;
    border: 1px solid #d9dfcc;
    box-shadow: 0 8px 20px #102d1610;
}

.home-story .check-circle {
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #e4ecd8;
    color: #3a6944;
    font-size: 17px;
}

.home-story .check-circle.small {
    width: 19px;
    height: 19px;
    font-size: 12px;
}

.home-story .validation-note strong {
    display: block;
    font-size: 12px;
}

.home-story .validation-note small {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    color: #788173;
}

.home-story .qr-ready {
    position: absolute;
    right: 7px;
    bottom: 41px;
    width: 136px;
    padding: 15px 15px 13px;
    background: #fffef9;
    border: 1px solid #e0e4d6;
    border-radius: 12px;
    box-shadow: 0 12px 25px #24362524;
    transform: rotate(7deg);
    text-align: center;
}

.home-story .qr-ready .story-qr {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.home-story .qr-ready span {
    display: block;
    font-size: 10px;
}

.home-story .qr-ready b {
    display: block;
    margin-top: 5px;
    font-size: 7px;
    color: #788173;
    font-weight: 500;
}

.home-story .table-top {
    position: absolute;
    left: -20px;
    right: -120px;
    top: 64px;
    bottom: -130px;
    background: #d9b486;
    border: 1px solid #c29a6c;
    border-radius: 50% 40% 0 0;
    transform: rotate(-9deg);
    box-shadow: 0 25px 35px #30291e1a;
    overflow: hidden;
}

.home-story .table-top i {
    position: absolute;
    height: 100%;
    width: 1px;
    background: #a27b4b39;
    left: 24%;
}

.home-story .table-top i:nth-child(2) {
    left: 52%;
}

.home-story .table-top i:nth-child(3) {
    left: 80%;
}

.home-story .coffee-saucer {
    position: absolute;
    left: 27px;
    top: 61px;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: #ede9da;
    border: 1px solid #e6decc;
    box-shadow: 2px 7px 10px #705c3840, inset 0 0 0 17px #f8f4e8;
    transform: rotate(-18deg);
}

.home-story .coffee-cup {
    position: absolute;
    inset: 27px;
    border-radius: 50%;
    background: #fffdf3;
    border: 2px solid #e2d9c6;
    box-shadow: 4px 6px 6px #49341f27;
    display: grid;
    place-items: center;
}

.home-story .coffee {
    width: 63px;
    height: 63px;
    border-radius: 50%;
    background: #63341f;
    box-shadow: inset 0 0 0 5px #c08043, inset 5px 6px 9px #34150f4d;
}

.home-story .coffee::after {
    content: "";
    display: block;
    width: 23px;
    height: 8px;
    background: #e6b06a;
    border-radius: 50%;
    margin: 10px 0 0 10px;
    transform: rotate(-30deg);
    opacity: .5;
}

.home-story .cup-handle {
    position: absolute;
    right: 14px;
    top: 54px;
    width: 29px;
    height: 22px;
    border: 7px solid #f5f1e7;
    border-radius: 7px;
}

.home-story .table-sticker {
    position: absolute;
    top: 234px;
    left: 52px;
    width: 154px;
    padding: 15px;
    background: #fffdf5;
    border: 1px solid #e3d9c5;
    transform: rotate(-11deg);
    box-shadow: 0 3px 4px #50432326;
    text-align: center;
    border-radius: 5px;
}

.home-story .table-sticker > span {
    font-size: 7px;
    letter-spacing: 1px;
}

.home-story .table-sticker .story-qr {
    width: 108px;
    display: block;
    margin: 9px auto;
}

.home-story .table-sticker strong {
    display: block;
    font: 17px Georgia, serif;
}

.home-story .table-sticker small {
    display: block;
    margin-top: 7px;
    font-size: 6px;
    letter-spacing: 1px;
}

.home-story .client-phone {
    top: 0;
    left: 267px;
    transform: rotate(7deg);
}

.home-story .client-screen {
    background: #3e4c40;
    color: #f7f4e6;
}

.home-story .qr-camera {
    position: absolute;
    inset: 60px 0 0;
    text-align: center;
}

.home-story .qr-camera > span {
    display: block;
    font-size: 11px;
    margin-bottom: 36px;
}

.home-story .qr-view {
    position: relative;
    padding: 8px;
    border: 2px solid #e9c277;
    width: 159px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    background: #cfb489;
}

.home-story .qr-view .story-qr {
    width: 100%;
    display: block;
}

.home-story .qr-detected {
    margin: 29px 21px 0;
    padding: 12px 5px;
    background: #f5f1e2;
    color: var(--ink);
    border-radius: 8px;
    font-size: 10px;
}

.home-story .qr-detected span {
    color: #3e7243;
    padding-right: 6px;
}

.home-story .client-menu {
    position: absolute;
    inset: 31px 0 0;
}

.home-story .table-note {
    position: absolute;
    right: 21px;
    bottom: 3px;
    padding: 13px 20px 13px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px #21352218;
    transform: rotate(2deg);
}

.home-story .scene-end {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 28px;
    background: var(--ink);
    color: var(--paper);
}

.home-story .end-star {
    font-size: 42px;
    color: #efb65f;
    margin-bottom: 22px;
    line-height: 1;
}

.home-story .scene-end .step-label {
    color: #b7c8ae;
    margin-bottom: 20px;
    font-size: 9px;
}

.home-story .scene-end h3 {
    font-size: clamp(32px, 4.5vw, 57px);
    margin-bottom: 22px;
}

.home-story .scene-end h3 span {
    color: #efb65f;
}

.home-story .end-trial {
    color: #c6d0bf;
    font-size: 16px;
    margin: 0 0 23px;
}

.home-story .end-trial strong {
    color: #fff8e6;
    font-weight: 600;
}

.home-story .end-domain {
    font-size: 10px;
    color: #b2c1aa;
    margin-top: 18px;
}

.home-story .film-progress {
    position: absolute;
    z-index: 10;
    height: 3px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #183c3110;
}

.home-story .film-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left;
    background: var(--accent);
}

.home-story .playback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 19px;
}

.home-story .chapters {
    display: flex;
    gap: 5px;
}

.home-story .chapter {
    padding: 11px 16px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 30px;
    color: #7d8479;
    font-size: 12px;
}

.home-story .chapter span {
    font-size: 9px;
    margin-right: 7px;
    opacity: .7;
}

.home-story .chapter.active {
    border-color: #dce2d1;
    background: #e8eddf;
    color: var(--ink);
}

.home-story .transport {
    display: flex;
    gap: 8px;
}

.home-story .transport button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e0e3d8;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font-size: 11px;
}

.home-story .transport button span:first-child {
    display: inline-block;
    min-width: 15px;
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.home-story .presentation-note {
    margin: 24px 0 0;
    color: #828a7b;
    text-align: center;
    font-size: 10px;
}

.home-story .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-story.is-ready .scene-photo {
    animation: home-story-photo-scene var(--duration) both;
}

.home-story.is-ready .scene-menu {
    animation: home-story-menu-scene var(--duration) both;
}

.home-story.is-ready .scene-table {
    animation: home-story-table-scene var(--duration) both;
}

.home-story.is-ready .scene-end {
    animation: home-story-end-scene var(--duration) both;
}

.home-story.is-ready .photo-phone {
    animation: home-story-photo-phone var(--duration) both;
}

.home-story.is-ready .scan-paper {
    animation: home-story-scan-paper var(--duration) both;
}

.home-story.is-ready .scan-complete {
    animation: home-story-scan-complete var(--duration) both;
}

.home-story.is-ready .camera-feedback {
    animation: home-story-camera-feedback var(--duration) both;
}

.home-story.is-ready .film-progress span {
    animation: home-story-progress var(--duration) linear both;
}

.home-story.is-ready .film-label {
    animation: home-story-film-label var(--duration) both;
}

.home-story.is-ready .product-one {
    animation: home-story-product-one var(--duration) both;
}

.home-story.is-ready .product-two {
    animation: home-story-product-two var(--duration) both;
}

.home-story.is-ready .product-three {
    animation: home-story-product-three var(--duration) both;
}

.home-story.is-ready .product-four {
    animation: home-story-product-four var(--duration) both;
}

.home-story.is-ready .style-palette {
    animation: home-story-palette var(--duration) both;
}

.home-story.is-ready .validation-note {
    animation: home-story-validated var(--duration) both;
}

.home-story.is-ready .qr-ready {
    animation: home-story-qr-ready var(--duration) both;
}

.home-story.is-ready .scan-qr {
    animation: home-story-scan-qr var(--duration) both;
}

.home-story.is-ready .qr-detected {
    animation: home-story-detected var(--duration) both;
}

.home-story.is-ready .qr-camera {
    animation: home-story-camera-to-menu var(--duration) both;
}

.home-story.is-ready .client-menu {
    animation: home-story-client-menu var(--duration) both;
}

.home-story.is-ready .table-note {
    animation: home-story-table-note var(--duration) both;
}

@keyframes home-story-photo-scene {
0%, 25% {
        opacity: 1;
        transform: translateX(0);
    }

    29%, 100% {
        opacity: 0;
        transform: translateX(-65px);
    }
}

@keyframes home-story-menu-scene {
0%, 26% {
        opacity: 0;
        transform: translateX(75px);
    }

    30%, 58% {
        opacity: 1;
        transform: translateX(0);
    }

    62%, 100% {
        opacity: 0;
        transform: translateX(-65px);
    }
}

@keyframes home-story-table-scene {
0%, 59% {
        opacity: 0;
        transform: translateX(75px);
    }

    63%, 90% {
        opacity: 1;
        transform: translateX(0);
    }

    94%, 100% {
        opacity: 0;
        transform: translateX(-65px);
    }
}

@keyframes home-story-end-scene {
0%, 91% {
        opacity: 0;
        transform: translateY(25px);
        pointer-events: none;
    }

    95%, 100% {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@keyframes home-story-photo-phone {
0% {
        opacity: 0;
        transform: translate(35px, 45px) rotate(12deg);
    }

    5%, 100% {
        opacity: 1;
        transform: translate(0, 0) rotate(6deg);
    }
}

@keyframes home-story-scan-paper {
0%, 8% {
        opacity: 0;
        top: 0;
    }

    9% {
        opacity: 1;
        top: 0;
    }

    18% {
        opacity: 1;
        top: 100%;
    }

    19%, 100% {
        opacity: 0;
        top: 100%;
    }
}

@keyframes home-story-scan-complete {
0%, 19% {
        opacity: 0;
        transform: translateY(12px);
    }

    21%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-camera-feedback {
0%, 7% {
        opacity: 0;
    }

    9%, 18% {
        opacity: 1;
    }

    20%, 100% {
        opacity: 0;
    }
}

@keyframes home-story-product-one {
0%, 30% {
        opacity: 0;
        transform: translateY(12px);
    }

    33%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-product-two {
0%, 33% {
        opacity: 0;
        transform: translateY(12px);
    }

    36%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-product-three {
0%, 36% {
        opacity: 0;
        transform: translateY(12px);
    }

    39%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-product-four {
0%, 39% {
        opacity: 0;
        transform: translateY(12px);
    }

    42%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-palette {
0%, 42% {
        opacity: 0;
        transform: translate(-20px, 5px) rotate(-6deg);
    }

    45%, 100% {
        opacity: 1;
        transform: translate(0, 0) rotate(-6deg);
    }
}

@keyframes home-story-validated {
0%, 47% {
        opacity: 0;
        transform: translateY(12px);
    }

    49%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-qr-ready {
0%, 50% {
        opacity: 0;
        transform: translate(18px, 15px) rotate(12deg) scale(.85);
    }

    54%, 100% {
        opacity: 1;
        transform: translate(0, 0) rotate(7deg) scale(1);
    }
}

@keyframes home-story-scan-qr {
0%, 65% {
        opacity: 0;
        top: 0;
    }

    66% {
        opacity: 1;
        top: 0;
    }

    73% {
        opacity: 1;
        top: 100%;
    }

    74%, 100% {
        opacity: 0;
        top: 100%;
    }
}

@keyframes home-story-detected {
0%, 73% {
        opacity: 0;
        transform: translateY(8px);
    }

    75%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-camera-to-menu {
0%, 77% {
        opacity: 1;
    }

    79%, 100% {
        opacity: 0;
    }
}

@keyframes home-story-client-menu {
0%, 77% {
        opacity: 0;
        transform: translateY(20px);
    }

    80%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-story-table-note {
0%, 81% {
        opacity: 0;
        transform: translateY(10px) rotate(2deg);
    }

    84%, 100% {
        opacity: 1;
        transform: translateY(0) rotate(2deg);
    }
}

@keyframes home-story-progress {
from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes home-story-film-label {
0%, 91% {
        color: #183c31;
    }

    95%, 100% {
        color: #c6d0bf;
    }
}

@media (max-width: 1050px) and (min-width: 721px) {
    .home-story .illustration {
        --art-scale: .72;
    }

    .home-story .qr-ready {
        right: 55px;
    }

    .home-story .table-note {
        right: 65px;
    }

    .home-story .film {
        height: 540px;
    }

    .home-story .scene {
        padding-left: 30px;
        padding-right: 30px;
    }

    .home-story .scene-copy h3,
.home-story .scene-copy h3 {
        font-size: 43px;
    }

    .home-story .scene-copy p {
        font-size: 13px;
    }
}

@media (max-width: 720px) {
    .home-story .film {
        height: 700px;
        border-radius: 18px;
    }

    .home-story .film-label {
        left: 25px;
        top: 23px;
        font-size: 7px;
        letter-spacing: 1.4px;
    }

    .home-story .scene {
        grid-template-columns: 1fr;
        grid-template-rows: 225px 1fr;
        padding: 67px 24px 18px;
        align-items: start;
    }

    .home-story .step-label {
        font-size: 8px;
        letter-spacing: 1.7px;
        margin-bottom: 16px;
    }

    .home-story .scene-copy h3,
.home-story .scene-copy h3 {
        font-size: 40px;
        letter-spacing: -1.8px;
        margin-bottom: 15px;
    }

    .home-story .scene-copy p {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .home-story .copy-note,
.home-story .copy-benefits {
        font-size: 9px;
    }

    .home-story .visual {
        height: 363px;
    }

    .home-story .illustration {
        --art-scale: .74;
    }

    .home-story .style-palette {
        left: 70px;
        top: 40px;
    }

    .home-story .menu-phone {
        left: 144px;
    }

    .home-story .validation-note {
        bottom: -10px;
    }

    .home-story .qr-ready {
        right: 55px;
        width: 120px;
        bottom: 51px;
    }

    .home-story .star-two {
        right: 65px;
    }

    .home-story .table-note {
        right: 65px;
    }

    .home-story .scene-end {
        display: flex;
        padding: 65px 25px 42px;
    }

    .home-story .scene-end h3 {
        font-size: 42px;
        letter-spacing: -1.7px;
        line-height: 1.12;
    }

    .home-story .scene-end .step-label {
        font-size: 8px;
    }

    .home-story .end-trial {
        font-size: 14px;
        line-height: 1.7;
    }

    .home-story .end-star {
        font-size: 60px;
        margin-bottom: 38px;
    }

    .home-story .playback {
        flex-direction: column;
        gap: 15px;
    }

    .home-story .chapters {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .home-story .chapter {
        padding: 12px 10px;
        font-size: 10px;
    }

    .home-story .chapter span {
        margin-right: 4px;
    }

    .home-story .transport button {
        min-width: 106px;
    }

    .home-story .presentation-note {
        margin-top: 20px;
        font-size: 9px;
    }
}

@media (max-width: 375px) {
    .home-story .film {
        height: 654px;
    }

    .home-story .scene {
        padding-left: 20px;
        padding-right: 20px;
        grid-template-rows: 225px 1fr;
    }

    .home-story .scene-copy h3,
.home-story .scene-copy h3 {
        font-size: 35px;
    }

    .home-story .scene-copy p {
        font-size: 11px;
    }

    .home-story .visual {
        height: 310px;
    }

    .home-story .illustration {
        --art-scale: .62;
    }

    .home-story .scene-end h3 {
        font-size: 36px;
    }

    .home-story .chapter {
        font-size: 9px;
        padding: 12px 6px;
    }
}

/* Match the shared application typography without inheriting workspace layout rules. */
.home-story {
    line-height: normal;
}

.home-story .story-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.home-story .paper-title {
    display: block;
    font-weight: normal;
}

.home-story:not(.is-ready) .scene-photo {
    opacity: 1;
}

.home-story:not(.is-ready) .scan-line,
.home-story:not(.is-ready) .scan-complete,
.home-story:not(.is-ready) .camera-feedback {
    opacity: 0;
}

.home-story [hidden] {
    display: none !important;
}

.home-story .story-static-summary {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.home-story.is-ready .story-static-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.home-story .transport button {
    cursor: pointer;
    font-family: inherit;
}

.home-story .chapter {
    min-height: 44px;
}

#how-it-works {
    scroll-margin-top: 24px;
}

/* Longer translated headings keep their own space above the mobile illustration. */
@media (max-width: 720px) {
    .home-story .film {
        height: 735px;
    }

    .home-story .scene:not(.scene-end) {
        grid-template-rows: 260px 1fr;
    }
}

@media (max-width: 375px) {
    .home-story .film {
        height: 689px;
    }

    .home-story .qr-ready {
        right: 72px;
    }
}
