:root {
    --bg:#FFFFFF;
    --cream:#FAF6E8;
    --sky:#D3E2FF;
    --ink:#111111;
    --muted:#4d4d4d;
    --blue:#1F45D0;
    --green:#0B9A0B;
    --yellow:#FFBE1A;
    --red:#FF3D0A;
    --brown:#7A4A1E;
    --display:'Bricolage Grotesque','Arial Black',Arial,sans-serif;
    --body:'DM Sans','Helvetica Neue',Arial,sans-serif;
    box-sizing:border-box;
    padding-top:env(safe-area-inset-top,0px);
    padding-bottom:env(safe-area-inset-bottom,0px);
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg:#101010;
        --cream:#191610;
        --sky:#14204A;
        --ink:#F4F1E8;
        --muted:#B5B0A2;
        --brown:#E0A868;
        --green:#2BD42B;
        --blue:#6F8CFF;
    }
}

:root[data-theme="dark"] {
    --bg:#101010;
    --cream:#191610;
    --sky:#14204A;
    --ink:#F4F1E8;
    --muted:#B5B0A2;
    --brown:#E0A868;
    --green:#2BD42B;
    --blue:#6F8CFF;
}

*, *::before, *::after {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:calc(84px + env(safe-area-inset-top,0px));
}

body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font:400 17px/1.6 var(--body);
    overflow-x:hidden;
}

h1, h2, h3 {
    font-family:var(--display);
    font-weight:800;
    line-height:.98;
    letter-spacing:-.035em;
    margin:0 0 .4em;
}

h1 {
    font-size:clamp(2.6rem,12vw,9rem);
    color:var(--green);
}

h2 {
    font-size:clamp(2.2rem,6vw,4.2rem);
}

h3 {
    font-size:1.5rem;
    line-height:1.1;
}

p {
    margin:0 0 1em;
}

a {
    color:inherit;
}

.wrap {
    max-width:1180px;
    margin:0 auto;
    padding:0 24px;
}

:focus-visible {
    outline:3px solid var(--red);
    outline-offset:3px;
}

/* header */

header {
    position:sticky;
    top:env(safe-area-inset-top,0px);
    z-index:20;
    pointer-events:none;
}

.bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 24px;
    max-width:1180px;
    margin:0 auto;
}

.logo {
    pointer-events:auto;
    flex:none;
    display:flex;
    align-items:center;
    background:#2B2B2B;
    padding:8px 16px;
    border-radius:16px;
}

.logo img {
    display:block;
    height:34px;
    width:auto;
}

.pills {
    display:flex;
    gap:6px;
    pointer-events:auto;
}

.pills a {
    font:700 .9rem var(--body);
    text-decoration:none;
    color:#111;
    padding:12px 22px;
    border-radius:999px;
    transition:transform .2s;
}

.pills a:hover {
    transform:translateY(-2px);
}

.pills a:nth-child(1) {
    background:var(--yellow);
}

.pills a:nth-child(2) {
    background:#1F45D0;
    color:#fff;
}

.pills a:nth-child(3) {
    background:var(--red);
}

.pills a.on {
    outline:3px solid var(--ink);
    outline-offset:2px;
}

/* hero: vertical split, text left, devices right, buttons on one level */

.hero-split {
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:1fr auto;
    position:relative;
    isolation:isolate;
    min-height:clamp(560px,calc(100svh - 72px),820px);
    background:linear-gradient(90deg,var(--bg) 0%,var(--bg) 34%,var(--sky) 66%,var(--sky) 100%);
}

.hero-split::before {
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:90px;
    background:linear-gradient(var(--bg),transparent);
    pointer-events:none;
    z-index:-1;
}

.hero-text {
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:48px 40px 8px max(24px,calc((100vw - 1180px) / 2 + 24px));
}

.hero-text h1 {
    font-size:clamp(2.6rem,12vw,5rem);
    margin-bottom:.3em;
}

.hero-lead {
    font-size:1.15rem;
    max-width:34ch;
    margin-bottom:0;
}

.hero-art {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:22px;
    padding:32px 24px 8px;
}

.art-title .short {
    display:none;
}

.art-title {
    margin:0;
    max-width:19ch;
    text-align:center;
    font:800 clamp(1.6rem,2.6vw,2.5rem)/1.05 var(--display);
    letter-spacing:-.03em;
}

.stage {
    position:relative;
    width:min(100%,640px);
    container-type:inline-size;
}

.stage img {
    display:block;
    width:100%;
    height:auto;
}

.stage-title {
    display:none;
}

.hero-cta {
    display:flex;
    align-items:center;
    padding-top:28px;
    padding-bottom:56px;
}

.hero-cta-l {
    padding-left:max(24px,calc((100vw - 1180px) / 2 + 24px));
}

.hero-cta-r {
    justify-content:center;
}

.btn {
    display:inline-block;
    padding:15px 28px;
    border-radius:999px;
    font:700 1rem var(--body);
    text-decoration:none;
    text-align:center;
    color:#111;
    transition:transform .2s;
}

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

.btn.yellow {
    background:var(--yellow);
}

.btn.blue {
    background:#1F45D0;
    color:#fff;
}

@media(min-width:861px) {
    .hero-text h1 {
        font-size:clamp(3rem,6.4vw,6.4rem);
    }
}

/* phones and small tablets: one sky-blue block, headline lives inside the laptop's blue tab */

@media(max-width:860px) {
    .hero-split {
        grid-template-columns:1fr 1fr;
        grid-template-rows:auto;
        min-height:0;
        background:var(--sky);
    }

    .hero-art {
        grid-column:1 / -1;
        order:1;
        padding:28px 16px 0;
        gap:18px;
    }

    .hero-text {
        grid-column:1 / -1;
        order:2;
        padding:20px 24px 0;
        text-align:center;
    }

    .hero-text h1 {
        position:absolute;
        width:1px;
        height:1px;
        margin:0;
        overflow:hidden;
        clip:rect(0 0 0 0);
        white-space:nowrap;
    }

    .hero-lead {
        margin:0 auto;
    }

    .hero-cta {
        order:3;
        padding-top:26px;
        padding-bottom:40px;
    }

    .hero-cta-l {
        justify-content:flex-end;
        padding-left:0;
        padding-right:6px;
    }

    .hero-cta-r {
        justify-content:flex-start;
        padding-left:6px;
        padding-right:0;
    }

    .stage {
        width:min(100%,560px);
    }

    .stage-title {
        position:absolute;
        left:12.45%;
        top:25.33%;
        width:40.86%;
        height:34.67%;
        margin:0;
        padding:0 3.2cqw;
        display:flex;
        flex-direction:column;
        justify-content:center;
        color:#fff;
        font:800 5vw/1 var(--display);
        font-size:5cqw;
        letter-spacing:-.035em;
    }
}

@media(max-width:400px) {
    .hero-cta .btn {
        padding:13px 14px;
        font-size:.88rem;
    }
}

.star {
    display:inline-block;
    position:relative;
    width:.55em;
    height:.55em;
    background:var(--yellow);
    vertical-align:.35em;
    margin-left:.12em;
}

.star::after {
    content:"";
    position:absolute;
    inset:0;
    background:var(--yellow);
    transform:rotate(45deg);
}

/* sticky notes */

.note {
    --r:0deg;
    position:relative;
    background:var(--yellow);
    color:#111;
    padding:26px 22px 22px;
    box-shadow:0 14px 20px -12px rgba(0,0,0,.55);
    transform:rotate(var(--r));
    font-size:1rem;
    line-height:1.45;
}

.note::before {
    content:"";
    position:absolute;
    top:-11px;
    left:50%;
    width:74px;
    height:22px;
    transform:translateX(-50%) rotate(-3deg);
    background:rgba(255,255,255,.55);
    box-shadow:0 1px 2px rgba(0,0,0,.15);
}

.note h3 {
    margin-bottom:.35em;
}

.note p {
    margin:0;
}

.note.sky {
    background:#BBD3FF;
}

.note.mint {
    background:#B6F2A4;
}

.note.peach {
    background:#FFA98A;
}

.note.white {
    background:#FFFDF4;
}

.notes {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:34px 26px;
    padding:14px 0;
}

.notes .note:nth-child(4n+1) {
    --r:-2.5deg;
}

.notes .note:nth-child(4n+2) {
    --r:1.8deg;
}

.notes .note:nth-child(4n+3) {
    --r:-1.2deg;
}

.notes .note:nth-child(4n+4) {
    --r:2.6deg;
}

.price {
    font:800 1.9rem var(--display);
    margin:4px 0 8px;
}

/* sections */

section {
    padding:84px 0;
}

.tint {
    background:var(--cream);
}

.lead {
    font-size:1.15rem;
    max-width:52ch;
}

.link {
    display:inline-block;
    margin-top:18px;
    font-weight:700;
    color:var(--blue);
    text-decoration:underline;
    text-underline-offset:4px;
}

.work-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}

.work-head h2 {
    margin:0;
}

.controls {
    display:flex;
    gap:10px;
}

.controls[hidden] {
    display:none;
}

.arrow {
    width:48px;
    height:48px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--yellow);
    color:#111;
}

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

.arrow:disabled {
    opacity:.35;
    cursor:default;
    transform:none;
}

.track {
    display:flex;
    gap:24px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding:6px 0;
}

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

.tile {
    position:relative;
    display:block;
    flex:0 0 calc((100% - 48px) / 3);
    aspect-ratio:1 / 1;
    overflow:hidden;
    border:2px solid var(--ink);
    border-radius:28px;
    scroll-snap-align:start;
    color:inherit;
    text-decoration:none;
}

.tile .art {
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    padding:20px;
    text-align:center;
    overflow:hidden;
    background:#BBD3FF;
    color:#111;
    font:800 clamp(1.3rem,2.6vw,1.9rem)/1.1 var(--display);
    letter-spacing:-.03em;
}

.tile.cta .art {
    background:#7A4A1E;
    color:#fff;
}

@media(max-width:900px) {
    .tile {
        flex-basis:calc((100% - 24px) / 2);
    }
}

@media(max-width:560px) {
    .tile {
        flex-basis:100%;
    }
}

.tile .cap {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:2px;
    padding:22px 24px;
    background:rgba(17,17,17,.5);
    color:#fff;
    opacity:0;
    text-decoration:none;
    transition:opacity .3s ease;
}

.tile .cap span {
    font-size:.85rem;
    opacity:.85;
    transform:translateY(10px);
    transition:transform .35s ease;
}

.tile .cap b {
    font:800 clamp(1.5rem,3.4vw,2.4rem)/1.05 var(--display);
    letter-spacing:-.03em;
    transform:translateY(14px);
    transition:transform .35s ease .05s;
}

.tile.open .cap,
.tile:focus-visible .cap {
    opacity:1;
}

.tile.open .cap span,
.tile.open .cap b,
.tile:focus-visible .cap span,
.tile:focus-visible .cap b {
    transform:none;
}

.art img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:top;
    display:block;
}

@media(hover:hover) and (pointer:fine) {
    .tile:hover .cap {
        opacity:1;
    }

    .tile:hover .cap span,
    .tile:hover .cap b {
        transform:none;
    }
}

@media(prefers-reduced-motion:reduce) {
    .tile .cap,
    .tile .cap span,
    .tile .cap b {
        transition:none;
    }
}

/* hover: dim the tile and show a small "open" arrow */

.tile .cap::after {
    content:"";
    position:absolute;
    top:18px;
    right:18px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 20px no-repeat;
    transform:translate(-6px,6px);
    transition:transform .35s ease;
}

.tile.open .cap::after,
.tile:focus-visible .cap::after {
    transform:none;
}

@media(hover:hover) and (pointer:fine) {
    .tile:hover .cap::after {
        transform:none;
    }
}

@media(prefers-reduced-motion:reduce) {
    .tile .cap::after {
        transition:none;
    }
}

.big {
    display:block;
    margin-top:56px;
    text-align:center;
    background:var(--blue);
    color:#fff;
    font:800 clamp(2rem,6vw,4.4rem)/1.1 var(--display);
    letter-spacing:-.035em;
    padding:44px 20px;
    border-radius:0 0 44px 44px;
    text-decoration:none;
}

.big span {
    border-bottom:5px dotted var(--green);
}

.marquee {
    overflow:hidden;
    white-space:nowrap;
    background:var(--yellow);
    color:#111;
    border-block:2px solid #111;
    padding:14px 0;
    font:800 1.6rem var(--display);
}

.marquee div {
    display:inline-block;
    animation:slide 22s linear infinite;
}

@keyframes slide {
    to {
        transform:translateX(-50%);
    }
}

/* the one scroll transition: notes drop in and settle */

.drop .note {
    opacity:0;
    transform:translateY(60px) rotate(calc(var(--r) * 4));
    transition:opacity .5s ease,transform .7s cubic-bezier(.2,1.4,.4,1);
}

.drop.in .note {
    opacity:1;
    transform:rotate(var(--r));
}

.drop.in .note:nth-child(2) {
    transition-delay:.12s;
}

.drop.in .note:nth-child(3) {
    transition-delay:.24s;
}

.drop.in .note:nth-child(4) {
    transition-delay:.36s;
}

@media(prefers-reduced-motion:reduce) {
    .drop .note {
        opacity:1;
        transform:rotate(var(--r));
        transition:none;
    }
}

/* faq */

details {
    background:var(--bg);
    border:2px solid var(--ink);
    border-radius:16px;
    padding:16px 20px;
    margin-bottom:12px;
}

summary {
    cursor:pointer;
    font:700 1.15rem var(--display);
}

details p {
    margin:10px 0 0;
    color:var(--muted);
}

.page-head {
    padding:84px 24px 24px;
}

.page-head h1 {
    color:var(--blue);
}

/* contact */

.stripe {
    background:var(--sky);
    position:relative;
    padding:110px 0;
}

.stripe::before,
.stripe::after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    height:56px;
    background:repeating-linear-gradient(90deg,var(--green) 0 26px,transparent 26px 52px);
}

.stripe::before {
    top:0;
}

.stripe::after {
    bottom:0;
}

.stripe h2 {
    color:var(--blue);
    text-align:center;
}

.stripe h2 span {
    border-bottom:5px dotted var(--ink);
}

form {
    max-width:620px;
    margin:32px auto 0;
    display:grid;
    gap:14px;
}

label {
    font-weight:700;
    display:grid;
    gap:6px;
}

input,
select,
textarea {
    font:inherit;
    color:#111;
    background:#fff;
    border:2px solid #111;
    border-radius:12px;
    padding:12px 14px;
    width:100%;
}

textarea {
    min-height:110px;
    resize:vertical;
}

button {
    font:800 1.1rem var(--display);
    background:var(--red);
    color:#111;
    border:2px solid #111;
    border-radius:14px;
    padding:16px;
    cursor:pointer;
    transition:transform .2s;
}

button:hover {
    transform:translateY(-3px) rotate(-1deg);
}

footer.site {
    padding:36px 0 0;
    font-size:.9rem;
}

footer.site .wrap {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:12px;
    padding-bottom:28px;
}

.wa {
    position:fixed;
    right:16px;
    bottom:calc(16px + env(safe-area-inset-bottom,0px));
    z-index:30;
    background:#1FA855;
    color:#fff;
    font-weight:700;
    text-decoration:none;
    padding:12px 18px;
    border-radius:99px;
    border:2px solid #111;
}

@media(max-width:640px) {
    .pills a {
        padding:12px 13px;
        font-size:.8rem;
    }

}

/* header: stay on one row at every width by scaling the logo and buttons down */

@media(max-width:700px) {
    .bar {
        flex-wrap:nowrap;
        gap:8px;
        padding:10px 12px;
    }

    .logo {
        padding:6px 10px;
        border-radius:14px;
    }

    .logo img {
        height:clamp(22px,6.4vw,30px);
    }

    .pills {
        gap:4px;
    }

    .pills a {
        padding:9px clamp(9px,2.8vw,16px);
        font-size:clamp(.68rem,2.9vw,.85rem);
    }
}

/* very small phones: show just the mark in the header so everything still fits */

@media(max-width:340px) {
    .logo img {
        width:28px;
        height:28px;
        object-fit:cover;
        object-position:left center;
    }
}

/* phones: shorter hero, tagline and buttons only */

@media(max-width:600px) {
    .hero-lead {
        display:none;
    }

    .hero-text {
        padding:0;
    }

    .art-title .long {
        display:none;
    }

    .art-title .short {
        display:inline;
    }

    .art-title {
        font-size:clamp(1.9rem,8vw,2.4rem);
        max-width:none;
    }
}