/* ─────────────────────────────────────────────────────────────
   Gleegleam — home page
   ───────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ── Type helpers ───────────────────────────────────────────── */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
}
.kicker::before {
    content: '';
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.kicker--light { color: var(--paper); }
.kicker--light::before { background: var(--paper); }

.display {
    font-family: var(--display);
    font-weight: normal;
    font-size: clamp(30px, 3.2vw, 45px);
    line-height: 1.22;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.display--xl { font-size: clamp(36px, 4vw, 50px); line-height: 1.08; }

.lede {
    font-size: clamp(16px, 1.35vw, 19px);
    color: var(--ink-soft);
    max-width: 560px;
    margin-top: 20px;
}
.lede a { color: var(--ink); font-weight: 700; }
.lede--light { color: rgba(251, 250, 246, 0.75); margin-left: auto; margin-right: auto; }

/* marker highlight behind words — wraps across lines */
.hl {
    background-image: linear-gradient(var(--hl-c, var(--mint)), var(--hl-c, var(--mint)));
    background-repeat: no-repeat;
    background-position: 0 86%;
    background-size: calc(var(--hl, 1) * 100%) 0.42em;
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
    padding: 0 0.06em;
    transition: background-size 0.9s var(--ease-out) 0.2s;
}
.hl--mint  { --hl-c: var(--mint); }
.hl--lilac { --hl-c: var(--lilac); }
.hl--sun   { --hl-c: var(--sun); }
[data-reveal]:not(.is-in) .hl, .section-head:not(.is-in) .hl, .community__copy:not(.is-in) .hl { --hl: 0; }

/* hand-drawn scribble underline */
.scribble {
    font-style: normal;
    position: relative;
    display: inline-block;
}
.scribble::after {
    content: '';
    position: absolute;
    left: -4%; right: -6%;
    bottom: -0.12em;
    height: 0.32em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C40 6 80 5 120 9s60 6 77-2M12 20c50-6 110-8 176-5' fill='none' stroke='%231F1F1F' stroke-width='4' stroke-linecap='round' pathLength='1' stroke-dasharray='1' stroke-dashoffset='0'/%3E%3C/svg%3E") center/100% 100% no-repeat;
    clip-path: inset(0 100% 0 0);
    animation: scribble-in 0.9s var(--ease-out) 1.1s forwards;
}
.scribble--light::after { filter: invert(1); }
@keyframes scribble-in { to { clip-path: inset(0 0 0 0); } }

/* ── Buttons (base .btn lives in site.css) ─────────────────── */
.btn--app {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    padding: 14px 30px 14px 24px;
    border-radius: 18px;
    box-shadow: 0 6px 0 rgba(251, 250, 246, 0.25);
}
.download__apps { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.btn--app-soon {
    background: transparent;
    color: var(--paper);
    border: 2px dashed rgba(251, 250, 246, 0.5);
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
}
.btn--app-soon:hover, .btn--app-soon:active { transform: none; box-shadow: none; }
.btn--app svg { width: 30px; height: 30px; }
.btn--app span { display: flex; flex-direction: column; text-align: left; font-size: 22px; line-height: 1.05; font-weight: 800; }
.btn--app small { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }

/* ═════════════ 0 · HERO — three bands (Figma 309:1016) ═════════════
   One proportional composition: the stage keeps the frame's 2319 × 1167 ratio and every
   length is calc(<figma px> * var(--u)), where --u = 1/2319 of the stage width. Text, cards,
   chips and photos all scale together — no desktop breakpoints. ≤900px (phones + tablets,
   same point the nav switches to its menu) gets a stacked layout. */
.bands {
    container-type: inline-size;
    background: var(--paper);
}
.bands__stage {
    --u: calc(100cqw / 2319);
    position: relative;
    aspect-ratio: 2319 / 1167;
    overflow: hidden;
    background: var(--paper);
    /* band seams (from the frame's masks): top → bottom */
    --s1t: 37.7%; --s1b: 28.2%;
    --s2t: 71.3%; --s2b: 61.4%;
}
.bands__stage::before,
.bands__stage::after { content: ''; position: absolute; inset: 0; }
.bands__stage::before { background: #E2F7EE; clip-path: polygon(var(--s1t) 0, var(--s2t) 0, var(--s2b) 100%, var(--s1b) 100%); }
.bands__stage::after  { background: var(--ink); clip-path: polygon(var(--s2t) 0, 100% 0, 100% 100%, var(--s2b) 100%); }

/* photos: clipped to their band from 41.4% down, faded in from the band colour */
.band-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 43.5%, #000 61.7%);
            mask-image: linear-gradient(to bottom, transparent 43.5%, #000 61.7%);
}
.band-photo img { position: absolute; max-width: none; }
.band-photo--private { clip-path: polygon(0 41.4%, 33.8% 41.4%, var(--s1b) 100%, 0 100%); }
.band-photo--circle  { clip-path: polygon(33.8% 41.4%, 67.2% 41.4%, var(--s2b) 100%, var(--s1b) 100%); }
.band-photo--world   { clip-path: polygon(67.2% 41.4%, 100% 41.4%, 100% 100%, var(--s2b) 100%); }
.band-photo--private img { left: -8.366%; top: 42.416%; width: 60.716%; height: 65.81%; object-fit: cover; }
.band-photo--circle img  { left: 27.555%; top: -10.68%; width: 40.664%; height: 144.8%; }
.band-photo--world img   { left: 60.716%; top: 16.384%; width: 40.664%; height: 144.8%; }

.band { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.band > * { pointer-events: auto; }
.band--private { --x: 124; --c: var(--mint); }
.band--circle  { --x: 893; --c: var(--sun); }
.band--world   { --x: 1662; --c: var(--sky); }

.band__label {
    position: absolute;
    left: calc((var(--x) - 2) * var(--u));
    top: calc(284 * var(--u));
    padding: calc(8 * var(--u)) calc(18 * var(--u));
    background: var(--c);
    color: var(--ink);
    border: calc(2.6 * var(--u)) solid var(--ink);
    border-radius: 999px;
    box-shadow: 0 calc(4 * var(--u)) 0 var(--ink);
    font-size: calc(19.5 * var(--u));
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    animation: rise 0.8s var(--ease-out) both;
}
.band--world .band__label { border-color: var(--paper); box-shadow: 0 calc(4 * var(--u)) 0 rgba(251, 250, 246, 0.35); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── journal cards ── */
.hcard {
    position: absolute;
    left: calc(var(--x) * var(--u));
    top: calc(357 * var(--u));
    width: calc(534.127 * var(--u));
    min-height: calc(301 * var(--u));
    background: #fff url('../images/hero/card-ruled.svg') left top / 96.13% 100% no-repeat;
    border-radius: calc(35.412 * var(--u));
    box-shadow: 0 0 calc(29.51 * var(--u)) rgba(0, 0, 0, 0.15);
    color: #000;
    animation: card-in 0.9s var(--ease-out) 0.15s both;
}
.band--circle .hcard { animation-delay: 0.3s; }
.band--world .hcard  { animation-delay: 0.45s; }
@keyframes card-in { from { opacity: 0; transform: translateY(calc(40 * var(--u))); } to { opacity: 1; transform: none; } }

.hcard__body {
    padding: calc(35.4 * var(--u)) calc(19 * var(--u)) calc(22 * var(--u)) calc(59.02 * var(--u));
}
.hcard__time {
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
    font-family: var(--sans);
    font-size: calc(17.706 * var(--u));
    line-height: 1.36;
}
.hcard__goal {
    display: inline-flex;
    align-items: center;
    height: calc(23.172 * var(--u));
    padding: 0 calc(9.269 * var(--u));
    border-radius: 100px;
    background: #487FA1;
    color: #fff;
    font-size: calc(13.42 * var(--u));
    font-weight: 600;
    letter-spacing: calc(0.134 * var(--u));
}
.hcard__title {
    font-family: var(--display);
    font-size: calc(25.083 * var(--u));
    line-height: 1.25;
    margin: calc(14.755 * var(--u)) 0 calc(13.28 * var(--u));
}
.hcard__text {
    font-family: var(--hand);
    font-size: calc(17.706 * var(--u));
    line-height: calc(33.936 * var(--u));
    max-width: calc(456 * var(--u));
}
.hcard__vis {
    display: flex;
    align-items: center;
    gap: calc(6.045 * var(--u));
    margin-top: calc(11.804 * var(--u));
    font-family: var(--sans);
    font-size: calc(15.084 * var(--u));
    font-weight: 600;
    letter-spacing: calc(0.151 * var(--u));
    color: #487FA1;
}
/* icon boxes are 24px frames in the file; each glyph keeps its own drawn proportions */
.hcard__icon { display: block; flex-shrink: 0; }
.hcard__icon--lock   { width: calc(18 * var(--u)); height: calc(20 * var(--u)); margin: calc(2 * var(--u)) calc(3 * var(--u)); }
.hcard__icon--globe  { width: calc(20 * var(--u)); height: calc(20 * var(--u)); margin: calc(2 * var(--u)); }
.hcard__icon--people { width: calc(24.87 * var(--u)); height: calc(12.09 * var(--u)); margin: calc(6.2 * var(--u)) 0; transform: scaleX(-1); }

/* third card: the post sits as a raised sheet, replies underneath */
.hcard--thread { background-image: none; }
.hcard__post {
    position: relative;
    margin-left: calc(38 * var(--u));
    width: calc(463 * var(--u));
    min-height: calc(202 * var(--u));
    padding: calc(20.641 * var(--u)) calc(25.802 * var(--u)) calc(7.74 * var(--u)) calc(51.603 * var(--u));
    background: #fff url('../images/hero/card3-bg.svg') left top / 100% 100% no-repeat;
    border-radius: 0 0 calc(30 * var(--u)) calc(30 * var(--u));
    box-shadow: 0 0 calc(8 * var(--u)) rgba(0, 0, 0, 0.08);
}
.hcard--thread .hcard__time  { font-size: calc(15.481 * var(--u)); }
.hcard--thread .hcard__title { font-size: calc(21.931 * var(--u)); margin: calc(9 * var(--u)) 0 calc(7.74 * var(--u)); }
.hcard--thread .hcard__text  { font-size: calc(15.481 * var(--u)); line-height: calc(29.672 * var(--u)); max-width: calc(412 * var(--u)); }
.hcard--thread .hcard__vis   { margin-top: calc(7.74 * var(--u)); }
.hcard__replies {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(13 * var(--u));
    margin: calc(16 * var(--u)) calc(27 * var(--u)) calc(20 * var(--u)) calc(64 * var(--u));
    font-family: var(--sans);
}
.hcard__replies li { display: flex; align-items: flex-start; gap: calc(5 * var(--u)); }
.hcard__reply-arrow { width: calc(11.143 * var(--u)); height: calc(12 * var(--u)); margin-top: calc(3.5 * var(--u)); flex-shrink: 0; }
.hcard__reply { flex: 1; font-size: calc(16 * var(--u)); letter-spacing: calc(0.16 * var(--u)); line-height: 1.2; }
.hcard__ago { font-size: calc(14 * var(--u)); letter-spacing: calc(0.14 * var(--u)); color: rgba(0, 0, 0, 0.4); white-space: nowrap; }

/* CTA bar under the hero */
.bands__cta {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 24px;           /* even padding: button face + text sit on the bar's true centre line */
    background: var(--paper);
    border-top: 2.5px solid var(--ink);
}
.bands__cta p { font-family: var(--hand); font-size: 18px; color: var(--ink-soft); transform: translateY(3px); }   /* Balpen's letters sit high in their box: optical centring */
.bands__more { font-weight: 700; font-size: 14.5px; color: var(--ink); text-underline-offset: 4px; }

/* ── Phones & tablets: same pieces, stacked band by band (one breakpoint) ── */
@media (max-width: 900px) {
    .bands__stage {
        --u: min(calc((100cqw - 32px) / 534.127), 1.05px);   /* phones fill the width; tablets cap at ~560px cards */
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: 1fr;
        padding-top: calc(var(--nav-h) + 12px);
        background: var(--paper);
    }
    .bands__stage::before, .bands__stage::after { display: none; }
    /* band content and its photo share one grid cell: photo behind, card on top */
    .band, .band-photo { position: relative; inset: auto; grid-column: 1; }
    .band--private, .band-photo--private { grid-row: 1; --bg: var(--paper); }
    .band--circle,  .band-photo--circle  { grid-row: 2; --bg: #E2F7EE; }
    .band--world,   .band-photo--world   { grid-row: 3; --bg: var(--ink); }
    .band { display: flex; flex-direction: column; align-items: flex-start; padding: 66px 16px 150px; z-index: 2; }
    .band__label, .hcard { position: relative; left: auto; top: auto; }
    .band__label { margin-bottom: 14px; }
    .band-photo {
        z-index: 1;
        clip-path: none;
        overflow: hidden;
        background: var(--bg);
        -webkit-mask-image: none;
                mask-image: none;
    }
    .band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
    .band-photo--circle img { object-position: center 80%; }
    .band-photo--world img  { object-position: 30% 60%; }
    .band-photo::after {             /* band colour at the top, melting into the photo */
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 14%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, transparent 72%);
    }
    /* slanted joins keep the diagonal identity between bands */
    .band-photo--circle, .band-photo--world { clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); margin-top: -22px; }
    .band--circle, .band--world { margin-top: -22px; padding-top: 88px; }
    .bands__cta { border-top: 0; }
}

/* ═════════════ 1 · STORY ═════════════ */
.story {
    position: relative;
    height: 520vh;
    background: var(--paper);
}

.story__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    --intro: 0;   /* 0 → 1 while the intro dissolves */
    --dev: 0;     /* 0 → 1 while the phone rises into place */
    --dev-shift: 19vw;
}

.story__aurora {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    filter: blur(26px) saturate(1.15);
    opacity: 0.95;
}

.story__rules {
    position: absolute;
    inset: 0;
    --margin-x: 64px;
    --rule-y: var(--rule-shift, 0px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.2) 100%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.2) 100%);
    opacity: 0.8;
}

/* Copy column */
.story__copy {
    position: absolute;
    left: max(7vw, 40px);
    top: 50%;
    width: min(40vw, 540px);
    height: 0;
    z-index: 6;
}

.chapter {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    visibility: hidden;
}
.chapter.is-active { pointer-events: auto; visibility: visible; }
.chapter > * {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.chapter.is-active > * { opacity: 1; transform: none; }
.chapter.is-active > *:nth-child(2) { transition-delay: 0.06s; }
.chapter.is-active > *:nth-child(3) { transition-delay: 0.12s; }
.chapter.is-active > *:nth-child(4) { transition-delay: 0.18s; }
.chapter.is-leaving > * { opacity: 0; transform: translateY(-30px); transition-duration: 0.35s; }

.chapter__num {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--hand);
    font-size: 30px;
    line-height: 1;
    margin-bottom: 16px;
}
.chapter__num span {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--chip, var(--mint));
}
.chapter[data-chapter="1"],
.chapter[data-chapter="3"] { --chip: var(--sun); }
.chapter[data-chapter="2"] { --chip: var(--sky); }
.chapter[data-chapter="4"] { --chip: var(--lilac); }

.chapter h2 {
    font-family: var(--display);
    font-weight: normal;
    font-size: clamp(30px, 3.2vw, 45px);
    line-height: 1.22;
    margin-bottom: 18px;
}
.chapter h2 em {
    font-style: normal;
    background: linear-gradient(transparent 58%, var(--chip, var(--mint)) 58%, var(--chip, var(--mint)) 92%, transparent 92%);
    padding: 0 0.06em;
}
.chapter p:not(.chapter__num) {
    font-size: clamp(16px, 1.3vw, 18.5px);
    color: var(--ink-soft);
    max-width: 470px;
}
.chapter strong { color: var(--ink); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
    padding: 6px 13px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-white);
    font-size: 13.5px;
    font-weight: 600;
}

/* Device */
.story__device {
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(220px, 22vw, 330px);
    aspect-ratio: 0.46;
    z-index: 4;
    transform:
        translate(calc(-50% + var(--dev) * var(--dev-shift)), calc(-50% + (1 - var(--dev)) * 82vh))
        rotate(calc((1 - var(--dev)) * 9deg));
    will-change: transform;
}

.device {
    position: absolute;
    inset: 0;
    border-radius: 16% / 7.4%;
    background: #141414;
    box-shadow: 0 30px 50px rgba(31, 31, 31, 0.22), inset 0 0 0 1.5px #3a3a3a;
    isolation: isolate;            /* keep the screens' z-index inside the phone, under the props */
}
.device__glass {
    position: absolute;
    inset: 3.4%;
    border-radius: 12.5% / 5.9%;
    overflow: hidden;
    background: var(--paper-white);
}
.device__screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    clip-path: circle(0% at 22% 88%);
    transition: clip-path 1s var(--ease-out);
    z-index: 1;
}
.device__screen.is-prev { clip-path: circle(150% at 22% 88%); transition: none; }
.device__screen.is-active { clip-path: circle(150% at 22% 88%); z-index: 2; }

.props { position: absolute; inset: 0; pointer-events: none; }
.prop {
    position: absolute;
    left: calc(50% + var(--x));
    top: var(--y);
    transform: translate(-50%, -50%) rotate(var(--r)) scale(0.3);
    opacity: 0;
    transition: transform 0.6s var(--ease-spring), opacity 0.3s;
    white-space: nowrap;
}
.props.is-active .prop { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
.props.is-active .prop:nth-child(2) { transition-delay: 0.1s; }
.props.is-active .prop:nth-child(3) { transition-delay: 0.2s; }
.props.is-active .prop:nth-child(4) { transition-delay: 0.3s; }

.prop--mood, .prop--note, .prop--room {
    padding: 9px 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-white);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 3px 4px 0 var(--ink);
}
.prop--room { background: var(--c); font-family: var(--hand); font-weight: normal; font-size: 19px; }
.prop--note { font-family: var(--hand); font-weight: normal; font-size: 17px; border-radius: 10px; }
.prop--stamp {
    display: flex; flex-direction: column; align-items: center;
    padding: 10px 16px;
    border: 3px double var(--ink);
    border-radius: 12px;
    background: var(--sun);
    font-family: var(--hand);
    font-size: 26px;
    line-height: 1;
    box-shadow: 3px 4px 0 var(--ink);
}
.prop--stamp small { font-family: var(--sans); font-size: 10.5px; font-weight: 700; margin-top: 4px; }
.prop--face {
    width: clamp(64px, 6vw, 88px);
    background: var(--paper-white);
    border: 2px solid var(--ink);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 3px 4px 0 var(--ink);
}
.prop--sticker { width: clamp(76px, 7.5vw, 110px); filter: drop-shadow(3px 5px 0 rgba(31, 31, 31, 0.9)); }

/* Rail */
.story__rail {
    position: absolute;
    right: max(3vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 7;
}
.story__rail button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background: var(--paper-white);
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring);
}
.story__rail button:hover { transform: scale(1.1); }
.story__rail button.is-active { background: var(--ink); color: var(--paper); transform: scale(1.12); }

/* Smudged paper frame */
.story__frame {
    position: absolute;
    inset: -70px;
    border: 88px solid var(--paper);
    border-radius: 110px;
    filter: url(#fx-smudge);
    z-index: 20;
    pointer-events: none;
}
.story__ink {
    position: absolute;
    inset: 18px;
    border: 2px solid var(--ink);
    border-radius: 26px;
    filter: url(#fx-line);
    z-index: 21;
    pointer-events: none;
}

/* Story — tablet & mobile */
@media (max-width: 900px) {
    .story { height: 500vh; }
    .story__stage { --dev-shift: 0vw; }
    .story__copy {
        --pad-x: max(20px, 7vw);                       /* proportional side padding (27px @390, 58px @834) */
        left: var(--pad-x); right: var(--pad-x); width: auto;
        top: calc(var(--nav-h) + 30px);
        height: auto;
    }
    .chapter { transform: none; }
    .chapter h2 { font-size: clamp(28px, 7vw, 42px); margin-bottom: 10px; }
    .chapter p:not(.chapter__num) { font-size: 15px; }
    .chapter__num { font-size: 22px; margin-bottom: 10px; }
    .chips { display: none; }
    .story__device {
        --copy-h: 215px;                               /* chapter number + 2-line headline + 3-line body */
        top: calc(var(--nav-h) + 30px + var(--copy-h) + 20px);
        bottom: auto;
        width: min(52vw, calc((100svh - var(--nav-h) - var(--copy-h) - 100px) * 0.46), 330px);
        transform: translate(-50%, calc((1 - var(--dev)) * 82vh)) rotate(calc((1 - var(--dev)) * 9deg));
    }
    .prop--mood, .prop--note, .prop--room { font-size: 12.5px; padding: 6px 11px; }
    .prop--room { font-size: 15px; }
    .prop--stamp { font-size: 18px; }
    .story__rail { display: none; }
    .story__frame { border-width: 80px; border-radius: 96px; }
    .story__ink { inset: 10px; border-radius: 18px; }
    .story__rules { --margin-x: 32px; }
}
@media (min-width: 600px) and (max-width: 900px) {
    .story__device { --copy-h: 200px; }            /* wider tablets fit the copy in fewer lines */
}
@media (max-width: 900px) and (max-height: 700px) {
    .chapter p:not(.chapter__num) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .story__device { width: min(38vw, 190px); }
}

/* ═════════════ 2 · ROOMS MARQUEE ═════════════ */
.rooms {
    position: relative;
    padding: 70px 0 90px;
    overflow: hidden;
    background: var(--paper);
}
.rooms__band {
    border-top: 2.5px solid var(--ink);
    border-bottom: 2.5px solid var(--ink);
    padding: 10px 0 14px;
    width: 110%;
    margin-left: -5%;
    overflow: hidden;
    white-space: nowrap;
}
.rooms__band--mint { background: var(--mint); transform: rotate(-2.2deg); position: relative; z-index: 2; }
.rooms__band--sun  { background: var(--sun);  transform: rotate(1.6deg); margin-top: 26px; }
.rooms__track {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-family: var(--display);
    font-size: clamp(36px, 5.6vw, 88px);
    line-height: 1.15;
    will-change: transform;
}
.rooms__track i { font-style: normal; font-size: 0.55em; }

/* ═════════════ 3 · COMMUNITY ═════════════ */
.community { padding: 110px 24px 130px; overflow-x: clip; }   /* tilted pile corners must not widen the page */
.community__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.community .display { font-size: clamp(30px, 3.2vw, 45px); }



.deck-wrap { display: flex; flex-direction: column; align-items: center; }
.deck {
    position: relative;
    width: min(100%, 380px);
    height: 500px;
    touch-action: pan-y;
}

.note-card {
    position: absolute;
    inset: 0;
    background-color: var(--paper-white);
    --margin-x: 38px;
    --rule-y: 21px;
    border: 2.5px solid var(--ink);
    border-radius: 24px;
    box-shadow: 7px 8px 0 var(--ink);
    padding: 22px 24px 20px 54px;
    display: flex;
    flex-direction: column;
    user-select: none;
    cursor: grab;
    transform-origin: 50% 110%;
    transition: transform 0.45s var(--ease-out), opacity 0.3s;
    will-change: transform;
}
.note-card:active { cursor: grabbing; }
.note-card.is-dragging { transition: none; }
.note-card { transform: rotate(var(--tilt, 0deg)); }   /* loose pile: full size, own tilt */

.note-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-left: -30px; }
.note-card__room {
    padding: 4px 12px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-family: var(--hand);
    font-size: 15px;
    background: var(--c, var(--mint));
}
.note-card__mood { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.note-card__title {
    font-family: var(--hand);
    font-size: 27px;
    line-height: 1.15;
    margin: 26px 0 8px;
}
.note-card__body {
    font-family: var(--hand);
    font-size: 19px;
    line-height: 32px;
    color: #3a3632;
    flex: 1;
    overflow: hidden;
}
.note-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: var(--ink-faint); font-weight: 600;
    margin-left: -30px;
}
.note-card__dday {
    padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800;
}
.note-card__stamp {
    position: absolute;
    top: 26px;
    padding: 6px 14px;
    border: 3.5px solid currentColor;
    border-radius: 10px;
    font-family: var(--hand);
    font-size: 30px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
}
.note-card__stamp--pass { right: 22px; color: #d9534f; transform: rotate(12deg); }
.note-card__stamp--love { left: 50px; color: var(--teal); transform: rotate(-12deg); }
.note-card__stickers {
    display: grid;
    grid-template-columns: repeat(4, 54px);
    gap: 4px 10px;
    min-height: 58px;
    margin: 4px 0 10px;
}
.note-card__stickers img {
    width: 54px;
    height: 54px;
    transform: rotate(var(--r, 0deg));
    filter: drop-shadow(2px 3px 0 rgba(31, 31, 31, 0.85));
}
.note-card__stickers img.is-new { animation: sticker-land 0.55s var(--ease-spring) both; }
@keyframes sticker-land {
    from { transform: translateY(-60px) scale(2) rotate(-25deg); opacity: 0; }
    to   { transform: rotate(var(--r, 0deg)); opacity: 1; }
}

.deck__prompt {
    margin-top: 64px;
    font-family: var(--hand);
    font-size: 22px;
}
.deck__stickers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.deck__sticker {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--paper-white);
    box-shadow: 0 4px 0 var(--ink);
    display: grid; place-items: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, opacity 0.2s;
}
.deck__sticker img { width: 46px; height: 46px; }
.deck__sticker:hover { transform: translateY(-4px) rotate(-8deg) scale(1.06); }
.deck__sticker:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.deck__sticker:disabled { opacity: 0.45; cursor: default; transform: none; }
.deck__caption { margin-top: 18px; font-size: 12.5px; color: var(--ink-faint); text-align: center; max-width: 320px; }

@media (max-width: 900px) {
    .community { padding: 80px max(28px, 7vw) 100px; }   /* roomy phone gutter, matches story copy rhythm */
    .community__inner { grid-template-columns: 1fr; gap: 56px; }
    .deck { height: 480px; }
    .deck__stickers { gap: 6px; }
    .deck__sticker { width: 42px; height: 42px; }
    .deck__sticker img { width: 35px; height: 35px; }
}

/* ═════════════ 4 · INSIDE ═════════════ */
.section-head { max-width: 1180px; margin: 0 auto 56px; }
.section-head .lede { margin-top: 18px; }

.inside { padding: 110px 24px 130px; background: var(--paper-white); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }

.bento {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tile {
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    background: var(--paper);
    padding: 18px 18px 26px;
    box-shadow: 0 6px 0 var(--ink);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}
.tile:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 12px 0 var(--ink); }
.tile h3 { font-family: var(--hand); font-weight: normal; font-size: 28px; line-height: 1.1; margin: 22px 8px 8px; }
.tile p { font-size: 15px; color: var(--ink-soft); margin: 0 8px; }

.tile__art {
    height: 230px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: var(--art, var(--mint));
}
.tile--hand     { --art: var(--paper-white); }
.tile--goal     { --art: var(--lilac); }
.tile--cal      { --art: var(--sky); }
.tile--stickers { --art: var(--mint); }

.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.bento [data-reveal]:nth-child(2n) { transition-delay: 0.08s; }

/* handwriting pad — rendered in a real font made with "Write digitally" */
@font-face {
    font-family: 'Own Hand Example';
    src: url('../fonts/own-hand-example.woff2') format('woff2');
    font-display: swap;
}
.tile--hand .tile__art { container-type: inline-size; }
@media (min-width: 641px) {
    .bento .tile__art { height: 300px; }         /* room for the handwriting line + a full-width 3-row keyboard */
}
.handpad {
    --pad-l: 48px; --pad-r: 22px;
    width: 100%; height: 100%;
    min-width: 0;
    padding: 0 var(--pad-r) 0 var(--pad-l);
    --margin-x: 34px;
    --rule-gap: 36px;
    --rule-y: 35px;
    /* The keyboard image is 1206×537; the A–L row's centre sits at 51.2% of its height.
       It spans the full tile width, so its height is 44.53cqw and the part left visible
       (down to the A-row midline) is 0.512 × 44.53 ≈ 22.8cqw. */
    --kb-visible: 22.8cqw;
    display: block;
    overflow: hidden;
    position: relative;
}
.tile .handpad__out {                 /* beats the generic .tile p size */
    position: absolute;
    top: 0;
    left: var(--pad-l);
    right: var(--pad-r);
    height: calc(100% - var(--kb-visible));   /* sentence centred in the space above the keyboard */
    display: flex;
    align-items: center;
    font-family: 'Own Hand Example', var(--hand);
    /* One line: the sentence is ~15.6× its font size wide; the pad's text area is the tile width
       minus ~74px of padding/border, so size from the tile (container) and cap at 30px. */
    font-size: calc(min(30px, calc((100cqw - var(--pad-l) - var(--pad-r) - 4px) / 15.8)) - 2px);
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 36px;
    color: var(--ink);
    min-height: 0;
    word-break: break-word;
}
/* a real iOS keyboard filling the bottom half, cut off mid-way, so the line reads as being typed */
.handpad__kb {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: translateY(48.8%);            /* tile edge cuts the A–L row through its middle */
    max-width: none;
    height: auto;
    border-top: 1.5px solid rgba(31, 31, 31, 0.08);
}
.handpad__out::after { content: '|'; animation: caret 1s steps(1) infinite; margin-left: 2px; font-family: var(--sans); font-weight: 300; }
@keyframes caret { 50% { opacity: 0; } }

/* goal card */
.goal-card {
    width: 78%;
    background: var(--paper-white);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 4px 5px 0 var(--ink);
    transform: rotate(-2deg);
}
.goal-card__pill { display: inline-block; padding: 3px 12px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 800; font-size: 14px; }
.goal-card__title { font-family: var(--hand); font-size: 28px; margin: 10px 0 14px; }
.goal-card__bar { height: 12px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.goal-card__bar i { display: block; height: 100%; width: 60%; background: var(--mint); border-right: 1.5px solid var(--ink); transition: width 0.5s var(--ease-out); }

/* calendar */
.cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 86%;
}
.cal span {
    aspect-ratio: 1;
    border-radius: 7px;
    border: 1.5px solid var(--ink);
    background: var(--paper-white);
    display: grid; place-items: center;
    font-size: 10px; font-weight: 700;
    transition: transform 0.3s var(--ease-spring), background 0.3s;
}
.cal span.on { background: var(--c); }
.cal span:hover { transform: scale(1.18) rotate(-6deg); }

/* sticker set: all 16, static */
.sticker-set {
    display: grid;
    grid-template-columns: repeat(6, 1fr);        /* 16 stickers → 3 rows (6 · 6 · 4, last row centred) */
    gap: 4px 8px;
    width: 88%;
    justify-items: center;
}
.sticker-set img:nth-child(13) { grid-column: 2; }
.sticker-set img {
    width: 100%;
    height: auto;
    filter: drop-shadow(1.5px 2px 0 var(--ink));
}
.sticker-set img:nth-child(odd)  { transform: rotate(-6deg); }
.sticker-set img:nth-child(3n)   { transform: rotate(5deg); }

@media (max-width: 640px) {
    .inside { padding: 80px max(28px, 7vw) 100px; }
    .handpad { --pad-l: 34px; --pad-r: 10px; --margin-x: 24px; }
    .bento { grid-template-columns: minmax(0, 1fr); }
}

/* ═════════════ 5 · TIERS ═════════════ */
.tiers { padding: 120px 24px 130px; position: relative; overflow: hidden; isolation: isolate; }
/* slow-moving pastel gradient behind the tiers (light-theme take on a glowing aurora) */
.tiers::before {
    content: '';
    position: absolute;
    inset: -25%;
    z-index: -1;
    background:
        radial-gradient(38% 45% at 18% 28%, rgba(212, 206, 230, 0.95), transparent 62%),
        radial-gradient(34% 42% at 82% 18%, rgba(45, 227, 167, 0.32), transparent 62%),
        radial-gradient(44% 50% at 62% 78%, rgba(147, 213, 234, 0.55), transparent 62%),
        radial-gradient(34% 40% at 14% 86%, rgba(211, 157, 240, 0.42), transparent 62%),
        radial-gradient(30% 36% at 50% 45%, rgba(246, 196, 22, 0.16), transparent 62%),
        var(--paper);
    filter: blur(28px);
    animation: tiers-drift 24s ease-in-out infinite alternate;
}
@keyframes tiers-drift {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { transform: translate(4%, -3%) rotate(7deg) scale(1.08); }
    100% { transform: translate(-3%, 4%) rotate(-6deg) scale(1.03); }
}

.orbit {
    max-width: 1180px;
    margin: 0 auto 64px;
    border: 2.5px solid var(--ink);
    border-radius: 30px;
    background: var(--paper-white);
    box-shadow: 0 8px 0 var(--ink);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas: "control viz" "verdict viz";
    overflow: hidden;
}
.orbit__control { grid-area: control; padding: 36px 36px 10px; }
.orbit__control label { font-weight: 700; font-size: 15px; display: block; }
.orbit__control output {
    display: block;
    font-family: var(--display);
    font-size: clamp(80px, 9vw, 132px);
    line-height: 1.05;
    margin: 26px 0 10px;
}
.orbit__control input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sun) var(--fill, 1%), var(--paper) var(--fill, 1%));
    cursor: pointer;
}
.orbit__control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--paper-white) url('../images/web-logo-sm.webp') center/70% no-repeat;
    box-shadow: 0 3px 0 var(--ink);
}
.orbit__control input[type="range"]::-moz-range-thumb {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--paper-white) url('../images/web-logo-sm.webp') center/70% no-repeat;
}
.orbit__scale { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); margin-top: 8px; position: relative; }
.orbit__scale span:nth-child(2) { position: absolute; left: 33.3%; transform: translateX(-50%); }
.orbit__scale span:nth-child(3) { position: absolute; left: 66.6%; transform: translateX(-50%); }

.orbit__verdict {
    grid-area: verdict;
    padding: 18px 36px 36px;
    font-size: 17px;
    color: var(--ink-soft);
    align-self: end;
}
.orbit__verdict b { color: var(--ink); font-family: var(--hand); font-weight: normal; font-size: 30px; display: block; line-height: 1.1; margin-bottom: 6px; }

.orbit__viz {
    grid-area: viz;
    min-height: 380px;
    border-left: 2.5px solid var(--ink);
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9), transparent 70%),
        linear-gradient(135deg, var(--lavender), var(--ice) 45%, var(--peach));
    position: relative;
}
.orbit__viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.tier-stories {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.tier-story {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2.5px solid var(--ink);
    border-radius: 28px;
    background: var(--paper-white);
    padding: 30px 28px 28px;
    box-shadow: 0 6px 0 var(--ink);
    --lift: 0px;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}
.tiers .tier-stories .tier-story,
.tiers .tier-stories .tier-story.is-in {
    transform: translateY(var(--lift));
    transition: opacity 0.7s var(--ease-out), transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring);
}
.tier-story.is-match { --lift: -10px; box-shadow: 0 14px 0 var(--ink); }

/* Hover: the card lifts on its flat shadow, the tier colour soaks up from the bottom,
   the character bounces and the checkmarks pop in one by one. */
.tier-story::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;             /* inner radius of the 28px card minus its border */
    background: color-mix(in srgb, var(--face, var(--sky)) 34%, var(--paper-white));
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.55s var(--ease-out);
    z-index: 0;
    pointer-events: none;
}
.tier-story > * { position: relative; z-index: 1; }
@media (hover: hover) {
    .tiers .tier-stories .tier-story:hover { --lift: -10px; box-shadow: 0 14px 0 var(--ink); }
    .tiers .tier-stories .tier-story.is-match:hover { --lift: -16px; box-shadow: 0 20px 0 var(--ink); }
    .tier-story:hover::before { clip-path: inset(0 0 0 0); }
    .tier-story:hover .tier-story__head img { animation: face-bounce 0.7s var(--ease-spring); }
    .tier-story:hover .tier-story__gets li::before { animation: check-pop 0.45s var(--ease-spring) both; }
    .tier-story:hover .tier-story__gets li:nth-child(2)::before { animation-delay: 0.08s; }
    .tier-story:hover .tier-story__gets li:nth-child(3)::before { animation-delay: 0.16s; }
}
@keyframes face-bounce {
    0%   { transform: none; }
    30%  { transform: translateY(-10px) rotate(-12deg) scale(1.12); }
    60%  { transform: translateY(2px) rotate(8deg) scale(0.98); }
    100% { transform: none; }
}
@keyframes check-pop {
    0%   { transform: rotate(-4deg) scale(1); }
    40%  { transform: rotate(-16deg) scale(1.35); }
    100% { transform: rotate(-4deg) scale(1); }
}
.tier-story.is-match::after {
    content: 'your size';
    position: absolute;
    top: -16px; right: 20px;
    padding: 5px 13px;
    background: var(--mint);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    transform: rotate(4deg);
}
.tier-story__head { display: flex; align-items: center; gap: 14px; }
.tier-story__head img {
    width: 74px; height: 74px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    padding: 4px;
    background: var(--face, var(--sky));
}
.tier-story[data-tier="curator"] { --face: var(--lilac); }
.tier-story[data-tier="influencer"] { --face: var(--sun); }
.tier-story__name { font-family: var(--hand); font-size: 32px; line-height: 1; }
.tier-story__price { font-weight: 800; font-size: 22px; margin-top: 4px; }
.tier-story__price span { font-size: 14px; font-weight: 600; color: var(--ink-faint); }
.tier-story h3 {
    font-family: var(--hand);
    font-weight: normal;
    font-size: 27px;
    line-height: 1.2;
    margin: 26px 0 12px;
}
.tier-story__gets { list-style: none; margin: 22px 0 18px; display: grid; gap: 10px; }
.tier-story__gets li {
    position: relative;
    padding-left: 30px;
    font-size: 14.5px;
    color: var(--ink-soft);
}
.tier-story__gets li::before {
    content: '';
    position: absolute; left: 0; top: 2px;
    width: 20px; height: 20px;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4L19 7' fill='none' stroke='%231F1F1F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
    transform: rotate(-4deg);
}
.tier-story__gets b { color: var(--ink); }
.tier-story .btn { margin-top: auto; }

.fineprint {
    max-width: 1180px;
    margin: 48px auto 0;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: var(--paper-white);
    overflow: hidden;
}
.fineprint summary {
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 800;
    font-size: 15px;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.fineprint summary::-webkit-details-marker { display: none; }
.fineprint summary::after { content: '+'; font-size: 24px; font-weight: 400; transition: transform 0.3s; }
.fineprint[open] summary::after { transform: rotate(45deg); }
.fineprint__table { overflow-x: auto; border-top: 2px solid var(--ink); }
.fineprint table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.fineprint th, .fineprint td { padding: 13px 20px; text-align: center; border-bottom: 1px solid rgba(31,31,31,0.1); }
.fineprint th[scope="row"] { text-align: left; font-weight: 600; color: var(--ink-soft); }
.fineprint thead th { font-family: var(--hand); font-weight: normal; font-size: 20px; }
.fineprint__note { padding: 14px 24px 20px; font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 980px) {
    .orbit { grid-template-columns: 1fr; grid-template-areas: "control" "viz" "verdict"; }
    .orbit__viz { border-left: 0; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); min-height: 300px; }
    .orbit__verdict { padding-top: 24px; }
    .tier-stories { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
    .tiers { padding: 90px max(28px, 7vw) 100px; }
    .orbit__control { padding: 28px 22px 6px; }
    .orbit__verdict { padding: 22px 22px 28px; }
}

/* ═════════════ 6 · DOWNLOAD ═════════════ */
.download {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: 150px 24px 160px;
    text-align: center;
    overflow: hidden;
}
.download .display { color: var(--paper); }
.download__inner { position: relative; z-index: 2; }
.download__stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.download__stickers img {
    position: absolute;
    width: clamp(64px, 8vw, 118px);
    opacity: 0.92;
    animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--r)); }
    50% { transform: translate(calc(-50% + var(--dx)), calc(-50% - 22px)) rotate(calc(var(--r) * -1)); }
}

/* ═════════════ 7 · CONTACT ═════════════ */
.contact { padding: 120px 24px; }
.contact__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact__form {
    border: 2.5px solid var(--ink);
    border-radius: 26px;
    box-shadow: 0 7px 0 var(--ink);
    padding: 30px 30px 30px 58px;
    background:
        linear-gradient(90deg, transparent 36px, var(--margin-red) 36px, var(--margin-red) 37px, transparent 37px),
        var(--paper-white);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    background: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    transition: box-shadow 0.2s, background 0.2s;
}
.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 32px;
    background: repeating-linear-gradient(var(--paper) 0 31px, var(--rule) 31px 32px);
    background-attachment: local;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 3px 0 var(--ink); background-color: var(--paper-white); }
.contact__status { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 1.4em; }

@media (max-width: 900px) {
    .contact { padding: 90px 16px; }
    .contact__inner { grid-template-columns: 1fr; gap: 40px; }
    .contact__form { padding: 24px 20px 24px 50px; }
}

/* ── Reduced motion: no pinned travel, no smudge ────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tiers::before { animation: none; }
    .hcard, .band__label { animation: none; }
    .story__frame, .story__ink { filter: none; }
    .device { filter: drop-shadow(0 30px 40px rgba(31, 31, 31, 0.18)); }
    .scribble::after { clip-path: none; animation: none; }
}
