/* Customer Engine: home page. Base styles (tokens to reveals) mirror css/trade.css; keep the two in step. */
@font-face {
    font-family: Inter;
    src: url("../assets/fonts/Inter-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #20352f;
    --ink-deep: #14241f;
    --forest: #215b48;
    --forest-deep: #174332;
    --cream: #f6f4ee;
    --paper: #fbfaf6;
    --sage: #e7eee7;
    --mint: #c1e9dc;
    --muted: #61716a;
    --line: #d9dfd7;
    --rule: #b1bdb5;
    --clay: #a65738;
    --ochre: #d9a85b;
    --amber-bg: #f5e9d8;
    --amber: #805118;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgb(32 53 47 / 6%), 0 4px 12px rgb(32 53 47 / 6%);
    --shadow-lg: 0 2px 4px rgb(32 53 47 / 4%), 0 24px 60px -12px rgb(32 53 47 / 22%);
    --shadow-xl: 0 40px 100px -20px rgb(20 36 31 / 40%);
    --radius: 14px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(16px, 4vw, 40px);
    /* fine paper grain, echoing the film's riso texture */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--forest);
    text-underline-offset: 4px;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: none;
}

.shell {
    width: min(1180px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

/* ---------- Brand lockup (brand.css) ---------- */
.lockup {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42em;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
}

.lockup-platform {
    font-weight: 650;
}

.lockup-divider {
    align-self: center;
    width: 1px;
    height: 1.05em;
    background: var(--rule);
}

.lockup-product {
    font-weight: 400;
    color: var(--muted);
}

.lockup-inverse {
    color: var(--cream);
}

.lockup-inverse .lockup-product {
    color: #b6c9bf;
}

.lockup-inverse .lockup-divider {
    background: #728c7f;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease-out),
        background-color 0.2s,
        box-shadow 0.25s var(--ease-out);
}

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

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 1px 0 rgb(255 255 255 / 15%) inset, 0 10px 24px -10px rgb(33 91 72 / 70%);
}

.btn-primary:hover {
    background: var(--forest-deep);
    box-shadow: 0 1px 0 rgb(255 255 255 / 15%) inset, 0 16px 32px -12px rgb(33 91 72 / 80%);
}

.btn-primary::after {
    /* sheen on hover */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 28%) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease-out);
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-ghost {
    background: rgb(255 255 255 / 60%);
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--white);
}

.btn-small {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-play {
    width: 0;
    height: 0;
    border-block: 6px solid transparent;
    border-left: 10px solid currentColor;
    margin-left: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(246 244 238 / 82%);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--ink);
}

/* ---------- Shared type ---------- */
.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-label-inverse {
    color: var(--mint);
}

.eyebrow {
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 255 255 / 55%);
    letter-spacing: 0.08em;
}

.eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--forest);
}

.eyebrow-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--forest);
    opacity: 0;
    animation: ping 2.4s var(--ease-out) infinite;
}

@keyframes ping {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    80%,
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.section-title {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.section-lede {
    max-width: 52ch;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.6vw, 20px);
}

/* The film's caption treatment: cream type on forest blocks. */
.caption-title {
    margin: 0;
    font-size: clamp(40px, 8.4vw, 108px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.caption-title-sm {
    font-size: clamp(34px, 5vw, 60px);
}

.caption-line {
    display: block;
}

.caption-line > span {
    display: inline;
    padding: 0.02em 0.22em 0.06em;
    background: var(--forest);
    color: var(--cream);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.caption-title em {
    font-style: normal;
    color: var(--mint);
}

/* ---------- Reveal on load / scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.9s var(--ease-out) var(--d, 0s),
        transform 0.9s var(--ease-out) var(--d, 0s);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Above the fold: animate on load rather than waiting for an observer. */
.js .hero-inner .reveal {
    transition: none;
    animation: rise 0.9s var(--ease-out) var(--d, 0s) forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

.js .hero-visual.reveal {
    transition: none;
    animation: rise 1.1s var(--ease-out) var(--d, 0s) forwards;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
    background:
        radial-gradient(60rem 30rem at 8% -10%, rgb(217 168 91 / 22%), transparent 70%),
        radial-gradient(50rem 30rem at 100% 10%, rgb(193 233 220 / 55%), transparent 70%),
        var(--cream);
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    /* fine paper grain, echoing the illustration's riso texture */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: clamp(56px, 8vw, 80px);
    align-items: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero .caption-title {
    margin-top: 4px;
    font-size: clamp(40px, 6.4vw, 84px);
}

.js .hero .caption-line > span {
    background-size: 0% 100%;
    background-image: linear-gradient(var(--forest), var(--forest));
    background-repeat: no-repeat;
    background-color: transparent;
    color: transparent;
    animation:
        caption-wipe 0.75s var(--ease-out) forwards,
        caption-ink 0.4s ease-out forwards;
}

.js .hero .caption-line > span em {
    color: transparent;
    animation: caption-mint 0.4s ease-out forwards;
}

.js .hero .caption-line:nth-child(1) > span {
    animation-delay: 0.1s, 0.4s;
}

.js .hero .caption-line:nth-child(2) > span {
    animation-delay: 0.22s, 0.52s;
}

.js .hero .caption-line:nth-child(3) > span {
    animation-delay: 0.34s, 0.64s;
}

.js .hero .caption-line:nth-child(3) > span em {
    animation-delay: 0.64s;
}

@keyframes caption-wipe {
    to {
        background-size: 100% 100%;
    }
}

@keyframes caption-ink {
    to {
        color: var(--cream);
    }
}

@keyframes caption-mint {
    to {
        color: var(--mint);
    }
}

.hero-lede {
    max-width: 46ch;
    margin: clamp(24px, 3vw, 32px) 0 0;
    color: var(--muted);
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

@media (min-width: 1020px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.9fr;
    }

    .hero .caption-title {
        font-size: clamp(40px, 4.4vw, 62px);
    }

    .hero-inner {
        align-items: flex-start;
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

/* ---------- Hero decoration ---------- */
.leaf {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.leaf-a {
    width: clamp(100px, 12vw, 180px);
    left: -80px;
    bottom: 24px;
    transform: rotate(-20deg);
    animation: sway 9s ease-in-out infinite alternate;
}

.leaf-b {
    width: clamp(90px, 11vw, 170px);
    right: 2%;
    top: 40px;
    transform: rotate(150deg);
    animation: sway 11s ease-in-out infinite alternate-reverse;
}

.leaf-c {
    width: clamp(60px, 7vw, 110px);
    left: 44%;
    bottom: 6%;
    transform: rotate(60deg);
    opacity: 0.9;
    animation: sway 8s ease-in-out infinite alternate;
}

.leaf-d {
    width: clamp(36px, 4vw, 64px);
    right: 3%;
    bottom: 8%;
    opacity: 0.85;
}

@keyframes sway {
    to {
        translate: 0 -14px;
        rotate: 6deg;
    }
}

/* ---------- Hero visual: an installer's own site, with Trade's moments floating over it ---------- */
.hero-visual {
    position: relative;
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 28px 0;
}

.site-mock {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgb(32 53 47 / 6%);
    transform: rotate(-1.5deg);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.browser-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rule);
}

.browser-url {
    flex: 1;
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-mock-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.site-mock-nav b {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.site-mock-nav span {
    color: var(--muted);
}

.site-mock-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 16px;
    padding: 28px 22px 34px;
}

.site-mock-copy {
    display: grid;
    gap: 10px;
}

.site-mock-copy small {
    color: var(--forest);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-mock-copy b {
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.site-mock-copy > span:not(.mini-btn) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.site-mock-body img {
    width: 100%;
    border-radius: 10px;
}

.mini-btn {
    justify-self: start;
    padding: 9px 14px;
    border-radius: 7px;
    background: var(--forest);
    color: var(--white);
    font-size: 13px;
    font-weight: 650;
}

.site-mock .mini-btn {
    margin-top: 4px;
    box-shadow: 0 0 0 0 rgb(33 91 72 / 45%);
    animation: nudge 2.8s ease-out 2.4s infinite;
}

@keyframes nudge {
    0% {
        box-shadow: 0 0 0 0 rgb(33 91 72 / 45%);
    }
    70%,
    100% {
        box-shadow: 0 0 0 12px rgb(33 91 72 / 0%);
    }
}

.float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px -14px rgb(20 36 31 / 35%);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.js .float {
    opacity: 0;
    animation: float-in 0.9s var(--ease-out) forwards, bob 6s ease-in-out 1.8s infinite alternate;
}

.float small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.float b {
    color: var(--forest);
}

.ui-bot {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px 9px 9px 2px;
    background: var(--forest);
    color: var(--cream);
    font-size: 14px;
    font-weight: 750;
}

.float-a {
    left: -10%;
    top: -6px;
    animation-delay: 1s, 1.8s !important;
}

.float-b {
    right: -6%;
    top: 34%;
    animation-delay: 1.2s, 2.4s !important;
}

.float-b img {
    width: 52px;
    height: 34px;
    border-radius: 6px;
    background: var(--cream);
    object-fit: contain;
}

.float-c {
    display: grid;
    gap: 0;
    left: -6%;
    bottom: 0;
    padding: 14px 18px;
    border-top: 3px solid var(--forest);
    animation-delay: 1.4s, 2s !important;
}

.float-c strong {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.float-c span {
    color: var(--muted);
    font-size: 12px;
}

.float-d {
    right: -4%;
    bottom: 6%;
    background: var(--forest);
    border-color: var(--forest);
    color: var(--cream);
    animation-delay: 1.6s, 2.6s !important;
}

.float-d small {
    color: var(--mint);
}

.float-check {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--forest);
    font-weight: 800;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bob {
    to {
        transform: translateY(-8px);
    }
}

/* ---------- The shift ---------- */
.shift {
    padding: clamp(80px, 11vw, 150px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.shift-head {
    max-width: 880px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.compare {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

.compare-card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 22px;
}

.compare-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compare-card h3 {
    margin: 0 0 24px;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.compare-national {
    background: var(--forest);
    color: var(--cream);
    box-shadow: var(--shadow-lg);
}

.compare-national .compare-kicker {
    color: var(--mint);
}

.compare-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgb(246 244 238 / 8%);
    border: 1px solid rgb(246 244 238 / 14%);
    font-weight: 550;
}

.tick {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--forest);
    font-size: 13px;
    font-weight: 800;
}

.compare-local {
    border: 1px dashed var(--rule);
    background: var(--cream);
}

.compare-local .compare-kicker {
    color: var(--muted);
}

.form-mock {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    opacity: 0.85;
}

.form-mock-field {
    display: block;
    height: 36px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.form-mock-field small {
    color: #9aa59f;
    font-size: 12px;
}

.form-mock-area {
    height: 64px;
}

.form-mock-btn {
    justify-self: start;
    padding: 7px 16px;
    border-radius: 5px;
    background: #c9cfca;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

.compare-then {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15.5px;
}

.compare-vs {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 52px;
    height: 52px;
    margin-block: -34px;
    z-index: 1;
    border-radius: 50%;
    background: var(--clay);
    color: var(--cream);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 6px var(--paper);
}

.shift-close {
    max-width: 40ch;
    margin: clamp(40px, 6vw, 72px) auto 0;
    color: var(--muted);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 550;
    line-height: 1.3;
    letter-spacing: -0.025em;
    text-align: center;
    text-wrap: balance;
}

.shift-close strong {
    color: var(--ink);
    font-weight: 750;
}

@media (min-width: 820px) {
    .compare {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .compare-card {
        height: 100%;
    }

    .compare-vs {
        margin: 0 -34px;
    }
}

/* ---------- Approach / bento ---------- */
.approach {
    position: relative;
    padding: clamp(80px, 11vw, 150px) 0;
    background:
        radial-gradient(40rem 24rem at 100% 0%, rgb(217 168 91 / 16%), transparent 70%),
        var(--cream);
}

.approach-head {
    max-width: 760px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bento-card {
    position: relative;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-card::before {
    /* cursor-following light */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), rgb(193 233 220 / 55%), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card > * {
    position: relative;
}

.bento-card h3 {
    margin: 18px 0 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.bento-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.bento-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sage);
    color: var(--forest);
    font-size: 19px;
    font-weight: 800;
    transition:
        background-color 0.3s,
        color 0.3s,
        transform 0.4s var(--ease-out);
}

.bento-card:hover .bento-icon {
    background: var(--forest);
    color: var(--cream);
    transform: rotate(-8deg) scale(1.06);
}

@media (min-width: 700px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Product: Trade ---------- */
.product {
    padding: 0 0 clamp(80px, 11vw, 150px);
    background: var(--cream);
}

.product-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: clamp(20px, 2.4vw, 32px);
    background:
        radial-gradient(40rem 26rem at 0% 100%, rgb(193 233 220 / 14%), transparent 70%),
        var(--forest);
    color: var(--cream);
    box-shadow: var(--shadow-xl);
}

.product-copy {
    padding: clamp(28px, 5vw, 64px);
}

.product-lockup {
    margin: 0 0 clamp(20px, 3vw, 32px);
    font-size: clamp(18px, 1.8vw, 22px);
}

.product-title {
    margin: 0;
    font-size: clamp(30px, 3.8vw, 50px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.product-title span {
    display: block;
    margin-top: 0.2em;
    color: var(--mint);
}

.product-steps {
    display: grid;
    gap: 2px;
    margin: clamp(28px, 4vw, 40px) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.product-steps li {
    position: relative;
    padding: 12px 0 12px 48px;
    border-top: 1px solid rgb(246 244 238 / 14%);
    color: rgb(246 244 238 / 78%);
    font-size: 15.5px;
    line-height: 1.45;
    counter-increment: step;
}

.product-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 13px;
    color: var(--ochre);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.product-steps b {
    display: block;
    color: var(--cream);
    font-weight: 700;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: clamp(28px, 4vw, 40px);
}

.btn-mint {
    background: var(--mint);
    color: var(--forest-deep);
    box-shadow: 0 10px 24px -10px rgb(0 0 0 / 40%);
}

.btn-mint:hover {
    background: var(--cream);
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: rgb(246 244 238 / 72%);
    font-size: 14px;
    font-weight: 550;
}

.status-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
}

.status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--mint);
    opacity: 0;
    animation: ping 2.4s var(--ease-out) infinite;
}

.product-film {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: var(--ink);
}

.product-film img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 50%;
    transform: scale(1.04);
    transition: transform 1.6s var(--ease-out);
}

.product-film:hover img {
    transform: scale(1.1);
}

.product-film-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(20 36 31 / 70%), transparent 45%);
}

.film-button {
    position: absolute;
    left: 30%;
    top: 38%;
    display: grid;
    place-items: center;
    width: clamp(64px, 7vw, 92px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px -10px rgb(20 36 31 / 60%);
    transition: transform 0.35s var(--ease-out), background-color 0.2s;
}

.film-button svg {
    width: 34%;
    height: 34%;
}

.film-button-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgb(246 244 238 / 70%);
    animation: ring 2.6s var(--ease-out) infinite;
}

@keyframes ring {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.product-film:hover .film-button {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--forest-deep);
}

.product-film-caption {
    position: absolute;
    left: clamp(18px, 3vw, 32px);
    right: clamp(18px, 3vw, 32px);
    bottom: clamp(18px, 3vw, 28px);
    display: grid;
    justify-items: start;
    gap: 10px;
}

.product-film-caption span {
    padding: 0.06em 0.25em;
    background: var(--forest);
    color: var(--cream);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.product-film-caption small {
    color: rgb(246 244 238 / 85%);
    font-size: 13px;
    font-weight: 600;
}

@media (min-width: 960px) {
    .product-card {
        grid-template-columns: 1.05fr 1fr;
    }

    .product-film {
        min-height: 100%;
    }
}

/* ---------- Where we are ---------- */
.stages {
    padding: clamp(80px, 11vw, 150px) 0;
    background: var(--ink);
    color: var(--cream);
    overflow: hidden;
}

.stages-title {
    margin: 0;
    font-size: clamp(34px, 5.4vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.055em;
}

.stages-title span {
    display: block;
}

.stages-mint {
    color: var(--mint);
}

.js .stages-title span {
    opacity: 0.15;
    transform: translateX(-0.4em);
    transition:
        opacity 0.8s var(--ease-out),
        transform 1s var(--ease-out);
}

.js .stages-title span.is-lit {
    opacity: 1;
    transform: none;
}

.stage-list {
    display: grid;
    gap: 14px;
    margin: clamp(40px, 6vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}

.stage-list li {
    position: relative;
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid rgb(246 244 238 / 14%);
    border-radius: 20px;
    background: rgb(246 244 238 / 5%);
}

.stage-list li:first-child {
    border-color: rgb(193 233 220 / 45%);
    background: rgb(193 233 220 / 9%);
}

.stage-when {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: rgb(246 244 238 / 62%);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stage-list li:first-child .stage-when {
    color: var(--mint);
}

.stage-now {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
}

.stage-now::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--mint);
    opacity: 0;
    animation: ping 2.4s var(--ease-out) infinite;
}

.stage-list h3 {
    margin: 0 0 8px;
    font-size: clamp(21px, 2vw, 24px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.stage-list li > p:last-child {
    margin: 0;
    color: rgb(246 244 238 / 78%);
    font-size: 15.5px;
}

@media (min-width: 820px) {
    .stage-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .stage-list li:not(:last-child)::after {
        /* the arrow between stages */
        content: "→";
        position: absolute;
        right: -14px;
        top: 50%;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--ink);
        border: 1px solid rgb(246 244 238 / 20%);
        color: var(--mint);
        font-size: 14px;
        transform: translateY(-50%);
    }
}

/* ---------- Who we are / contact ---------- */
.contact {
    padding: clamp(80px, 11vw, 150px) 0;
    background:
        radial-gradient(50rem 28rem at 0% 100%, rgb(193 233 220 / 40%), transparent 70%),
        var(--cream);
}

.contact-grid {
    display: grid;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.contact-card {
    padding: clamp(24px, 3.4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.contact-kicker,
.contact-alt {
    margin: 0 0 10px;
    color: var(--forest);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-email {
    display: inline-block;
    color: var(--ink);
    font-size: clamp(18px, 1.9vw, 26px);
    font-weight: 750;
    letter-spacing: -0.035em;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: var(--mint);
    text-decoration-thickness: 3px;
    transition: text-decoration-color 0.2s;
}

.contact-email:hover {
    text-decoration-color: var(--forest);
}

.contact-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.contact-rule {
    display: block;
    height: 1px;
    margin: 28px 0;
    background: var(--line);
}

.contact-alt {
    margin-bottom: 14px;
    color: var(--muted);
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* ---------- FAQ ---------- */
.faq {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.faq-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .faq-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 64px;
    }
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
    border-top: 1px solid var(--line);
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--forest);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.3s var(--ease-out);
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list details p {
    max-width: 60ch;
    margin: 0 0 22px;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 56px 0 64px;
    background: var(--ink-deep);
    color: rgb(246 244 238 / 70%);
}

.footer-inner {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.footer-inner p {
    margin: 0;
}

.footer-small {
    font-size: 13px;
    color: rgb(246 244 238 / 50%);
}

.footer-small a {
    color: inherit;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
    .header-link {
        display: none;
    }

    .lockup {
        font-size: 18px;
    }

    .header-nav .btn-small {
        padding: 9px 12px;
        font-size: 13px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* opaque, so the hero leaves don't show through */
    .hero-actions .btn-ghost {
        background: var(--paper);
    }

    .eyebrow {
        font-size: 10.5px;
        letter-spacing: 0.04em;
    }

    .hero-visual {
        padding: 36px 0 44px;
    }

    .site-mock-body {
        grid-template-columns: 1fr;
        padding: 22px 18px 72px;
    }

    .site-mock-body img {
        display: none;
    }

    .float {
        font-size: 12px;
    }

    .float-a {
        left: -4px;
    }

    .float-b {
        display: none;
    }

    .float-c {
        left: -4px;
        padding: 10px 14px;
    }

    .float-c strong {
        font-size: 24px;
    }

    .float-d {
        right: -4px;
        bottom: 12%;
    }

    .float-check {
        width: 24px;
        height: 24px;
    }

    .product-film {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .lockup {
        font-size: 16px;
    }

    .label-long {
        display: none;
    }
}

@media (min-width: 421px) {
    .label-short {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}
