/* ---------------------------------------------------------------------------
   SEO Toolkit marketing page.

   Palette sampled from the i3 logo (public/images/i3-logo.png): #d75826 is
   most of the mark, #ea761e the warm edge, #b8431f the shadow. Text is a deep
   warm brown rather than black so it sits in the same family as the orange.

   Type: Bricolage Grotesque for display, Plus Jakarta Sans for anything read
   in quantity.

   Radius rule: pills for anything clickable, 20px for panels, 12px for
   inputs. Nothing else.
--------------------------------------------------------------------------- */

:root {
    --brand:       #d75826;
    --brand-warm:  #ea761e;
    --brand-deep:  #b8431f;
    --brand-tint:  #fdf1ea;

    --paper:   #fffdfc;
    --sunk:    #fdf7f3;
    --surface: #ffffff;
    --ink:     #2b1a12;
    --ink-2:   #5c483e;
    --muted:   #7b685d;
    --line:    rgba(43, 26, 18, .12);
    --line-2:  rgba(43, 26, 18, .07);
    --shadow-s: 0 1px 2px rgba(80, 40, 20, .06);
    --shadow-l: 0 24px 60px -24px rgba(80, 40, 20, .35);

    --display: "Outfit", "Segoe UI", system-ui, sans-serif;
    --body:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;

    --r-panel: 20px;
    --r-input: 12px;
    --wrap:    1200px;
    --ease:    cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper:   #171110;
        --sunk:    #1e1614;
        --surface: #221a17;
        --ink:     #f7f2ee;
        --ink-2:   #dbcfc7;
        --muted:   #a5938a;
        --line:    rgba(255, 255, 255, .13);
        --line-2:  rgba(255, 255, 255, .07);
        --brand-tint: #2c1a11;
        --shadow-s: 0 1px 2px rgba(0, 0, 0, .5);
        --shadow-l: 0 24px 60px -24px rgba(0, 0, 0, .75);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 920px; }

h1, h2, h3 {
    margin: 0; font-family: var(--display); font-weight: 600;
    letter-spacing: -.038em; line-height: 1.04; text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.125rem); }
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.02em; }
p  { margin: 0; }

.lede { color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.center { text-align: center; }
.center .lede, .center h2 { margin-inline: auto; }

.eyebrow {
    font-size: .75rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--brand); margin-bottom: .85rem;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    white-space: nowrap; font-family: var(--body);
    padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
    font-size: .9375rem; font-weight: 600; cursor: pointer;
    transition: transform .18s var(--ease), background .18s var(--ease),
                border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn-solid {
    background: linear-gradient(180deg, var(--brand-warm), var(--brand));
    color: #fff; box-shadow: 0 12px 26px -14px rgba(215, 88, 38, 1);
}
.btn-solid:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn-solid:active { transform: scale(.98); }

.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-line:active { transform: scale(.98); }

.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: rgba(255, 255, 255, .88); color: var(--brand-deep); transform: translateY(-2px); }

.btn-sm { padding: .55rem 1.15rem; font-size: .875rem; }
.btn-wide { width: 100%; }

:where(a, button, summary, input):focus-visible {
    outline: 2px solid var(--brand); outline-offset: 3px;
}

/* --- navigation --------------------------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 50; height: 72px; display: flex; align-items: center;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.nav[data-stuck="true"] { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 2rem; }
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo img { height: 46px; width: auto; }
@media (max-width: 480px) { .nav-logo img { height: 38px; } }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-2); font-size: .9375rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: .55rem; }
@media (max-width: 920px) { .nav-links { display: none; } }
@media (max-width: 480px) { .nav-cta .btn-line { display: none; } }

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(3rem, 1.5rem + 5vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 3rem); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -340px 0 auto; height: 780px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(44% 48% at 50% 44%, rgba(234, 118, 30, .22), transparent 68%),
        radial-gradient(34% 40% at 16% 36%, rgba(215, 88, 38, .16), transparent 70%),
        radial-gradient(34% 40% at 84% 32%, rgba(244, 163, 0, .14), transparent 70%);
}
.hero h1 {
    font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.25rem);
    font-weight: 700; letter-spacing: -.04em; max-width: 16ch; margin-inline: auto;
}
.hero h1 span { color: var(--brand); display: block; }
.hero .lede { margin: 1.25rem auto 0; font-size: 1.125rem; max-width: 52ch; }

.hero-form {
    display: flex; gap: .5rem; margin: 2rem auto 0; max-width: 560px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: .4rem .4rem .4rem 1.1rem; align-items: center;
    box-shadow: var(--shadow-l);
    transition: border-color .2s var(--ease);
}
.hero-form:focus-within { border-color: var(--brand); }
.hero-form input {
    flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink);
    padding: .65rem 0; font-size: .9375rem;
}
.hero-form input::placeholder { color: var(--muted); }
.hero-form input:focus { outline: none; }
@media (max-width: 460px) {
    .hero-form { flex-direction: column; border-radius: var(--r-panel); padding: .75rem; align-items: stretch; }
    .hero-form input { padding-inline: .6rem; }
}

/* --- product panel with tabs -------------------------------------------- */
.showcase { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.tab {
    border: 1px solid transparent; background: none; font-family: var(--body);
    font-size: .9375rem; font-weight: 600; color: var(--muted);
    padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
    transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand-deep); background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }

.panel { position: relative; max-width: 1000px; margin-inline: auto; }
.frame {
    border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface);
    box-shadow: var(--shadow-l); overflow: hidden;
}
.frame-bar { display: flex; gap: 6px; padding: 11px 15px; border-bottom: 1px solid var(--line-2); background: var(--sunk); }
.frame-bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--line); display: block; }
.frame img { width: 100%; height: auto; }
.shot-pane[hidden] { display: none; }
.shot-pane { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.shot-note { margin-top: 1rem; text-align: center; font-size: .8125rem; color: var(--muted); }

/* --- integrations strip ------------------------------------------------- */
.strip { padding: 1rem 0 3.5rem; }
.strip-title { font-size: .8125rem; color: var(--muted); text-align: center; margin-bottom: 1.35rem; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.75rem, 4vw, 3.5rem); }
.strip-row img { height: 25px; width: auto; opacity: .6; transition: opacity .2s var(--ease); }
.strip-row a:hover img { opacity: 1; }

/* --- section shell ------------------------------------------------------ */
.section { padding: clamp(4rem, 2.5rem + 5vw, 6.5rem) 0; }
.section-sunk { background: var(--sunk); border-block: 1px solid var(--line-2); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: .9rem; }

/* --- bento -------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.cell {
    grid-column: span 2; border-radius: var(--r-panel); border: 1px solid var(--line);
    background: var(--surface); padding: 1.7rem; display: flex; flex-direction: column; gap: .55rem;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cell:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-l); }
.cell p { color: var(--muted); font-size: .9375rem; }
.cell .ico { font-size: 1.5rem; color: var(--brand); line-height: 1; }
.cell-wide { grid-column: span 3; }
.cell-paint {
    background: linear-gradient(145deg, var(--brand-warm) 0%, var(--brand-deep) 100%);
    border-color: transparent; color: #fff;
}
.cell-paint p { color: rgba(255, 255, 255, .9); }
.cell-paint .big {
    font-family: var(--display); font-size: clamp(3rem, 2rem + 3vw, 4.25rem);
    font-weight: 700; letter-spacing: -.05em; line-height: 1;
}
.cell-tint { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 20%, transparent); }
@media (max-width: 880px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell, .cell-wide { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* --- audit band --------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.checks { column-count: 2; column-gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.checks li {
    break-inside: avoid; display: flex; gap: .55rem; align-items: baseline;
    padding: .5rem 0; color: var(--ink-2); font-size: .9375rem;
}
.checks .ico { color: var(--brand); font-size: .95rem; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checks { column-count: 1; } }

/* --- workflow ----------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { border-top: 2px solid var(--brand); padding-top: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.step p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } }

/* --- full-bleed reseller block ------------------------------------------ */
.bleed {
    background: linear-gradient(135deg, var(--brand-warm) 0%, var(--brand) 45%, var(--brand-deep) 100%);
    color: #fff; padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0; position: relative; overflow: hidden;
}
.bleed::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%); pointer-events: none;
}
.bleed .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bleed h2 { color: #fff; }
.bleed p { color: rgba(255, 255, 255, .88); }
.bleed .eyebrow { color: rgba(255, 255, 255, .78); }
.bleed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.bleed-list li { display: flex; gap: .65rem; align-items: baseline; font-size: 1rem; }
.bleed-list .ico { color: #fff; font-size: 1.05rem; }
.bleed .btn-light { margin-top: 1.75rem; }
@media (max-width: 880px) { .bleed .wrap { grid-template-columns: 1fr; } }

/* --- pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan {
    position: relative; border: 1px solid var(--line); border-radius: var(--r-panel);
    background: var(--surface); padding: 1.9rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.plan[data-featured] { border-color: var(--brand); box-shadow: var(--shadow-l); }
.plan-flag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 999px;
    white-space: nowrap;
}
.plan-name { font-family: var(--display); font-weight: 600; font-size: 1.125rem; }
.plan-for { color: var(--muted); font-size: .875rem; line-height: 1.45; min-height: 3.8em; }
.plan-price {
    font-family: var(--display); font-size: 2.25rem; font-weight: 700;
    letter-spacing: -.04em; line-height: 1.1; white-space: nowrap;
}
.plan-price small { font-family: var(--body); font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.plan li { display: flex; gap: .5rem; align-items: baseline; font-size: .875rem; color: var(--ink-2); }
.plan .ico { color: var(--brand); font-size: .9rem; }
.plan-note { font-size: .8125rem; color: var(--muted); text-align: center; margin-top: 1.75rem; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .plans { grid-template-columns: 1fr; } }

/* --- faq ---------------------------------------------------------------- */
.faq { max-width: 50rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.2rem 0; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--brand); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 62ch; }

/* --- closer ------------------------------------------------------------- */
.closer { padding: clamp(4rem, 3rem + 4vw, 6rem) 0; text-align: center; }
.closer h2 { max-width: 18ch; margin-inline: auto; }
.closer .lede { margin: 1rem auto 2rem; }

/* --- footer ------------------------------------------------------------- */
/* --- footer --------------------------------------------------------------
   Four columns rather than one row: what it does, what it costs, how to
   start, and who to talk to. The plan column is rendered from the database,
   so it cannot drift away from the pricing section above it.
-------------------------------------------------------------------------- */
.foot {
    border-top: 1px solid var(--line); background: var(--sunk);
    padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 1.5rem; position: relative; overflow: hidden;
}
/* A faint dot field, so the block is not a flat slab. */
.foot::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(120% 90% at 85% 0%, #000, transparent 65%);
    mask-image: radial-gradient(120% 90% at 85% 0%, #000, transparent 65%);
}
.foot .wrap { position: relative; }

.foot-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
}
.foot img { height: 36px; width: auto; }
.foot-blurb { color: var(--muted); font-size: .875rem; margin: .9rem 0 1rem; max-width: 34ch; line-height: 1.6; }

.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-contact li { display: flex; align-items: center; gap: .55rem; font-size: .875rem; }
.foot-contact i { color: var(--brand); font-size: .95rem; }

.foot-col h3 {
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink); margin-bottom: .9rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-col li { display: flex; align-items: center; gap: .55rem; font-size: .875rem; }
.foot-col i { color: var(--brand); font-size: .9rem; width: 1.1rem; flex: none; }
.foot-price { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }

.foot p, .foot a { color: var(--muted); font-size: .875rem; }
.foot a { transition: color .15s var(--ease); }
.foot a:hover { color: var(--brand); }

.foot-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem 1.5rem; margin-top: clamp(1.75rem, 3vw, 2.5rem);
    padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.foot-bar p { margin: 0; font-size: .8125rem; }
.foot-pay { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--muted); }
.foot-pay img { height: 20px; opacity: .7; }
.foot-pay-note { color: var(--muted); }
.foot-legal { color: var(--muted); }

@media (max-width: 900px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .foot-grid { grid-template-columns: 1fr; }
    .foot-bar { justify-content: flex-start; }
}

/* --- motion ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

.lift { opacity: 0; transform: translateY(16px); animation: lift .8s var(--ease) forwards; }
.lift-2 { animation-delay: .1s; }
.lift-3 { animation-delay: .2s; }
.lift-4 { animation-delay: .32s; }
@keyframes lift { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.shown, .lift { opacity: 1; transform: none; transition: none; animation: none; }
    .btn, .cell, .plan, .shot-pane { transition: none; animation: none; }
}


/* ---------------------------------------------------------------------------
   Scroll behaviour.

   Built on CSS scroll-driven animations where the browser has them, so the
   work happens off the main thread. The IntersectionObserver reveal in
   landing.js stays as the fallback for everything else, and both collapse
   under prefers-reduced-motion.
--------------------------------------------------------------------------- */

/* A thin brand line across the top showing how far down the page you are. */
.progress-rail {
    position: fixed; inset: 0 0 auto; height: 3px; z-index: 60;
    transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--brand-warm), var(--brand), var(--brand-deep));
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .progress-rail {
        animation: rail linear;
        animation-timeline: scroll(root block);
    }
    @keyframes rail { to { transform: scaleX(1); } }

    /* The product panel settles into place as it comes up the screen. */
    .panel {
        animation: settle linear both;
        animation-timeline: view(block);
        animation-range: entry 0% entry 85%;
    }
    @keyframes settle {
        from { opacity: .35; transform: translateY(42px) scale(.965); }
        to   { opacity: 1;   transform: none; }
    }

    /* The warm wash behind the hero drifts slower than the page. */
    .hero::before {
        animation: drift linear both;
        animation-timeline: scroll(root block);
        animation-range: 0 70vh;
    }
    @keyframes drift {
        to { transform: translateY(90px) scale(1.08); opacity: .55; }
    }

    /* Section headings lift in rather than appearing. */
    .section-head, .checks li {
        animation: rise linear both;
        animation-timeline: view(block);
        animation-range: entry 10% entry 60%;
    }
    @keyframes rise {
        from { opacity: 0; transform: translateY(22px); }
        to   { opacity: 1; transform: none; }
    }

    /* With scroll-driven animations doing the work, the observer's classes
       must not fight them. */
    .reveal, .reveal.shown { opacity: 1; transform: none; transition: none; }
}

/* The big number counts up once, when it is first seen. */
.count {
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .progress-rail { display: none; }
    .panel, .hero::before, .section-head, .flow .step, .checks li,
    .bento .cell, .plans .plan { animation: none !important; opacity: 1 !important; transform: none !important; }
}


/* ---------------------------------------------------------------------------
   Cards arriving one at a time.

   The delay comes from --i, set per card in the markup, so a row reads left
   to right and a grid reads in document order. Driven by the observer rather
   than the scroll position, so each card completes its own entrance instead
   of all of them moving together with the scrollbar.
--------------------------------------------------------------------------- */
.bento .cell,
.plans .plan,
.flow .step,
.strip-row a {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
}

.bento .cell.in,
.plans .plan.in,
.flow .step.in,
.strip-row a.in {
    opacity: 1;
    transform: none;
}

/* The brand-coloured cell gets a touch more travel, so the eye lands there
   first even though it moves first. */
.bento .cell-paint {
    transform: translateY(34px) scale(.975);
}

@media (prefers-reduced-motion: reduce) {
    .bento .cell, .plans .plan, .flow .step, .strip-row a,
    .bento .cell.in, .plans .plan.in, .flow .step.in, .strip-row a.in {
        opacity: 1 !important; transform: none !important;
        transition: none !important; transition-delay: 0s !important;
    }
}


/* ===========================================================================
   Depth and movement.

   The page read as a flat stack of white boxes. What follows gives it a
   foreground (the product, lifted and framed), a background (slow-drifting
   light behind the hero), and a rhythm of bands between them. Every effect
   is either scroll-driven or observer-driven, and all of it collapses under
   prefers-reduced-motion.
=========================================================================== */

/* --- light behind the hero ---------------------------------------------- */
.aura { position: absolute; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; }
.aura span {
    position: absolute; display: block; border-radius: 50%;
    filter: blur(60px); opacity: .5;
}
.aura span:nth-child(1) {
    width: 460px; height: 460px; top: -160px; left: -80px;
    background: radial-gradient(circle, rgba(234,118,30,.55), transparent 70%);
    animation: float-a 22s ease-in-out infinite;
}
.aura span:nth-child(2) {
    width: 380px; height: 380px; top: -60px; right: -60px;
    background: radial-gradient(circle, rgba(215,88,38,.45), transparent 70%);
    animation: float-b 26s ease-in-out infinite;
}
.aura span:nth-child(3) {
    width: 300px; height: 300px; top: 180px; left: 45%;
    background: radial-gradient(circle, rgba(244,163,0,.35), transparent 70%);
    animation: float-a 30s ease-in-out infinite reverse;
}
@keyframes float-a { 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes float-b { 50% { transform: translate3d(-36px, 26px, 0) scale(1.1); } }

/* --- the product, lifted ------------------------------------------------- */
.panel { perspective: 1400px; }
.frame {
    position: relative;
    box-shadow: 0 2px 4px rgba(80,40,20,.06), 0 30px 70px -30px rgba(80,40,20,.45);
}
/* A soft glow under the panel so it reads as sitting above the page. */
.panel::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 60px;
    background: radial-gradient(50% 100% at 50% 0%, rgba(215,88,38,.3), transparent 72%);
    filter: blur(20px); z-index: -1;
}

/* --- the band of numbers -------------------------------------------------- */
.stats {
    background: linear-gradient(135deg, #2b1a12 0%, #3a241a 55%, #512a16 100%);
    color: #fff; padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; position: relative; overflow: hidden;
}
.stats::before {
    content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(234,118,30,.35), transparent 65%); pointer-events: none;
}
.stats .wrap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .n {
    font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem);
    font-weight: 700; letter-spacing: -.04em; line-height: 1;
    background: linear-gradient(180deg, #fff, #ffd9c4);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { font-size: .85rem; color: rgba(255,255,255,.72); margin-top: .4rem; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }

/* --- integrations, moving slowly ------------------------------------------ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
           mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
    .marquee-track { animation: slide 32s linear infinite; }
    .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }
.marquee img { height: 26px; width: auto; opacity: .55; transition: opacity .2s var(--ease); }
.marquee a:hover img { opacity: 1; }

/* --- a softer edge between bands ------------------------------------------ */
.section-sunk { position: relative; }
.section-sunk::before,
.section-sunk::after {
    content: ""; position: absolute; left: 0; right: 0; height: 28px; pointer-events: none;
}
.section-sunk::before { top: -1px; background: linear-gradient(var(--paper), transparent); }
.section-sunk::after { bottom: -1px; background: linear-gradient(transparent, var(--paper)); }

/* --- cards with a lit edge ------------------------------------------------ */
.cell { position: relative; isolation: isolate; }
.cell::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
    background: linear-gradient(135deg, var(--brand-warm), var(--brand), transparent 60%);
    opacity: 0; transition: opacity .3s var(--ease);
}
.cell:hover::before { opacity: .9; }
.cell-paint::before { display: none; }

/* --- headings that wipe in ------------------------------------------------ */
.wipe { overflow: hidden; }
.wipe > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease); }
.wipe.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .aura span, .marquee-track { animation: none !important; }
    .wipe > span { transform: none !important; transition: none !important; }
}


/* --- who it is for ------------------------------------------------------- */
/* Three portraits as one set: same crop, same warm wash over the photograph,
   so shots lit differently still sit together on the page. */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.who-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-panel); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.who-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 34%, transparent);
    box-shadow: 0 18px 40px -26px rgba(43, 26, 18, .45);
}
.who-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-tint); }
.who-shot img {
    width: 100%; height: 100%; max-width: 100%; display: block;
    object-fit: cover; object-position: center 26%;
    transition: transform .6s var(--ease);
}
.who-card:hover .who-shot img { transform: scale(1.04); }
.who-shot::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--brand-deep) 60%, transparent));
    mix-blend-mode: multiply; opacity: .45;
}
.who-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; }
.who-body h3 { font-size: 1.0625rem; }
.who-body p { color: var(--muted); font-size: .9375rem; }

.who .who-card {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
}
.who .who-card.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .who { grid-template-columns: 1fr 1fr; }
    .who-card:last-child { grid-column: 1 / -1; }
    .who-card:last-child .who-shot { aspect-ratio: 16 / 7; }
}
@media (max-width: 600px) {
    .who { grid-template-columns: 1fr; }
    .who-card:last-child { grid-column: auto; }
    .who-card:last-child .who-shot { aspect-ratio: 4 / 3; }
}

/* hover lift has to outrank the finished reveal state above it */
.who .who-card.in:hover { transform: translateY(-4px); }


/* --- integrations ------------------------------------------------------- */
/* Logos large enough to recognise, each with the job it does beside it. */
.feeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; }
.feed {
    display: flex; gap: .9rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-panel); padding: 1rem 1.1rem;
    transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feed > div { min-width: 0; }
.feed-mark {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--brand-tint);
    border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
}
.feed-mark img { width: 26px; height: 26px; display: block; }
.feed-mark-bi { color: var(--brand-deep); font-size: 1.35rem; line-height: 1; }
.feed h3 { font-size: .9375rem; margin-bottom: .2rem; }
.feed p { color: var(--muted); font-size: .875rem; line-height: 1.5; }

.feeds .feed {
    opacity: 0;
    transform: translateY(22px) scale(.99);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.feeds .feed.in { opacity: 1; transform: none; }
/* hover lift has to outrank the finished reveal state above it */
.feeds .feed.in:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 32%, transparent);
    box-shadow: 0 14px 32px -24px rgba(43, 26, 18, .5);
}

@media (max-width: 1000px) { .feeds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .feeds { grid-template-columns: 1fr; } }


/* --- hero backdrop texture ---------------------------------------------- */
/* An abstract contour texture rather than a drawing of anything. The first
   attempt put recognisable charts and a globe behind the search box, which
   at full width read as clipart; lines with no subject can sit under the
   headline without competing with it. The pattern opens out in the middle,
   so the centre column stays clear.
   It multiplies into the warm wash above, which is what keeps its white
   background from showing as a pale slab. Light theme only: multiplied over
   a dark background the lines vanish and leave a grey block. */
.hero::after {
    content: ""; position: absolute; inset: 0;
    z-index: -1; pointer-events: none;
    background: url("../images/landing/hero-texture.webp") center / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: .62;
    /* Fades out towards the bottom so there is no hard edge where the hero ends. */
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::after { display: none; } }
:root[data-theme="dark"] .hero::after { display: none; }


/* ======================================================================== *
   Second pass on the landing page, against the Cashfree reference:
   headings that fill in as they are scrolled to, feature cards that carry
   their own colour, and a floating tab bar with a sliding pill.
 * ======================================================================== */

/* --- headings that fill in on scroll ------------------------------------ */
/* The heading starts washed out and is painted to full strength as it rises
   through the viewport, so the eye is pulled down the page rather than
   meeting a wall of finished text. Scroll-driven where the browser has it;
   everywhere else the heading simply renders in its final colour. */
/* The ink the wash paints with. Sections on a dark or brand-coloured
   background set it to white, or the heading would be painted in body ink
   on a background it cannot be read against. */
.wash { --wash-ink: var(--ink); color: var(--wash-ink); }
.bleed .wash, .stats .wash { --wash-ink: #fff; }
@supports ((animation-timeline: view()) and ((background-clip: text) or (-webkit-background-clip: text))) {
    .wash {
        background-image: linear-gradient(100deg,
            var(--wash-ink) 0 28%,
            color-mix(in srgb, var(--wash-ink) 22%, transparent) 46% 100%);
        background-size: 280% 100%;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: wash-in linear both;
        animation-timeline: view();
        animation-range: entry 15% cover 42%;
    }
    @keyframes wash-in {
        from { background-position: 100% 0; }
        to   { background-position: 0 0; }
    }
}

/* --- floating tab bar --------------------------------------------------- */
.tabs {
    position: relative; width: max-content; max-width: 100%;
    margin-inline: auto; padding: .35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 30px -22px rgba(43, 26, 18, .5);
}
/* The pill is one element that slides, rather than a background appearing
   and disappearing on each button: the movement is what ties the tabs
   together as one control. */
.tab-pill {
    position: absolute; top: .35rem; bottom: .35rem; left: 0; width: 0;
    border-radius: 999px; background: var(--brand-tint);
    border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
    transition: transform .34s var(--ease), width .34s var(--ease);
    pointer-events: none;
}
.tabs .tab { position: relative; z-index: 1; }
.tab[aria-selected="true"] { background: none; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .tab-pill { transition: none; } }

/* --- feature cards that carry colour ------------------------------------ */
.bento { gap: 1.1rem; }
.cell { border-radius: clamp(16px, 1.6vw, 22px); padding: 1.8rem; }
.cell-badge {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    color: var(--brand-deep); font-size: 1.2rem; line-height: 1;
    margin-bottom: .35rem;
}
.cell-c1 { background: color-mix(in srgb, #f4a300 9%, var(--surface)); border-color: color-mix(in srgb, #f4a300 22%, transparent); }
.cell-c2 { background: color-mix(in srgb, #d75826 7%, var(--surface)); border-color: color-mix(in srgb, #d75826 20%, transparent); }
.cell-c3 { background: color-mix(in srgb, #8a6a55 8%, var(--surface)); border-color: color-mix(in srgb, #8a6a55 22%, transparent); }
.cell-c1 .cell-badge, .cell-c2 .cell-badge, .cell-c3 .cell-badge { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.cell-paint .cell-badge {
    background: rgba(255, 255, 255, .17);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}


/* --- headline inside a spreading card collage ---------------------------- */
/* The tiles start tucked behind the headline and drift outwards as the
   section crosses the viewport, so the page reveals the pieces the claim is
   made of. Scroll-driven where the browser supports it; without it the tiles
   simply sit in their final places, which is the layout below. */
.collage {
    position: relative;
    padding-block: clamp(1rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem);
    /* Room for the tiles to sit beside the headline without reaching the
       grid below. */
    min-height: 540px;
    display: grid; align-content: center;
}
.collage-head { position: relative; z-index: 2; max-width: 46ch; margin-inline: auto; }
.collage-head .lede { margin-inline: auto; }

.collage-field { position: absolute; inset: 0; pointer-events: none; }
.tile {
    position: absolute; margin: 0;
    width: var(--w, 190px);
    display: flex; flex-direction: column; gap: .4rem;
    padding: .8rem .9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 20px 45px -32px rgba(43, 26, 18, .55);
    font-size: .75rem;
}
.tile-k { font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tile-score { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--brand-deep); }
.tile-bar { display: block; height: 5px; border-radius: 999px; background: var(--brand-tint); overflow: hidden; }
.tile-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-warm), var(--brand)); }
.tile-row { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; color: var(--ink-2); }
.tile-row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-row em { font-style: normal; font-weight: 700; font-size: .68rem; }
.tile-row .up { color: #1f7a4d; }
.tile-row .down { color: var(--brand-deep); }
.tile-chip { border-radius: 999px; padding: .2rem .55rem; background: var(--brand-tint); color: var(--ink-2); font-size: .68rem; }
.tile-chip.warn { background: color-mix(in srgb, #f4a300 18%, transparent); }
.tile-chip.bad { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-deep); }
.tile-ai { color: var(--ink-2); line-height: 1.45; font-size: .72rem; }
.tile-file { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); }
.tile-file i { color: var(--brand-deep); }
.tile-sub { color: var(--muted); font-size: .68rem; }
.tile-amt { font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.tile-amt small { font-size: .7rem; font-weight: 500; color: var(--muted); }

/* Each tile is placed from the centre of the stage, so one pair of offsets
   describes both where it ends up and which way it travels. */
/* Placed against the stage, not against their own width, so the pair on
   each side stays inside the column at every width down to the breakpoint.
   --fx/--fy point back towards the centre: that is where each tile travels
   from when the section is scrolled into view. */
.tile-1 { top: 2%;  left: 0;    --fx:  220px; --fy:  60px; }
.tile-2 { top: 38%; left: 2%;   --fx:  210px; --fy:  10px; --w: 205px; }
.tile-3 { top: 0;   right: 0;   --fx: -220px; --fy:  60px; --w: 210px; }
.tile-4 { top: 40%; right: 2%;  --fx: -210px; --fy:  10px; --w: 195px; }
.tile-5 { top: 74%; left: 8%;   --fx:  170px; --fy: -60px; }
.tile-6 { top: 76%; right: 9%;  --fx: -170px; --fy: -60px; }

@supports (animation-timeline: view()) {
    .tile {
        animation: tile-spread linear both;
        animation-timeline: view();
        animation-range: entry 10% cover 40%;
    }
    @keyframes tile-spread {
        from { transform: translate(var(--fx), var(--fy)) scale(.78); opacity: 0; }
        to   { transform: none; opacity: 1; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .tile { animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* Narrow screens get no collage: a scattered layout has nowhere to scatter.
   The tiles become a plain two-column strip under the headline. */
@media (max-width: 1100px) {
    .collage-field {
        position: static; display: grid; gap: .75rem;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        margin-top: 2rem;
    }
    .tile { position: static; width: auto; transform: none !important; animation: none !important; opacity: 1 !important; }
}


/* --- capability stage with a floating tab bar ---------------------------- */
/* One tinted panel, four sets of contents, switched by the bar floating at
   its foot. Keeping it to one panel means the four jobs read as parts of the
   same tool rather than four separate pitches. */
.stage {
    position: relative;
    border-radius: clamp(18px, 2vw, 28px);
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
    background:
        radial-gradient(90% 120% at 12% 0%, color-mix(in srgb, var(--brand-warm) 11%, transparent), transparent 62%),
        radial-gradient(80% 110% at 100% 100%, color-mix(in srgb, #f4a300 10%, transparent), transparent 60%),
        var(--brand-tint);
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 3vw, 3rem) clamp(5.5rem, 7vw, 6.5rem);
    overflow: hidden;
}
.stage-pane { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.stage-pane[hidden] { display: none; }

.stage-copy { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.stage-ico {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
    color: var(--brand-deep); font-size: 1.3rem; line-height: 1;
}
.stage-copy h3 { font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem); }
.stage-copy p { color: var(--ink-2); font-size: .9375rem; max-width: 42ch; }
.stage-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9375rem; color: var(--brand-deep); }
.stage-link i { transition: transform .2s var(--ease); }
.stage-link:hover i { transform: translateX(3px); }

/* The mockups overlap, as on the reference, so the panel reads as a stack of
   real screens rather than two boxes side by side. */
.stage-art { position: relative; min-height: 250px; }
.stage-art .tile { position: absolute; box-shadow: 0 28px 60px -34px rgba(43, 26, 18, .6); }
.stage-t1 { top: 0; left: 4%; width: 230px; }
.stage-t2 { top: 42%; left: 34%; width: 265px; }

.stage-bar {
    position: absolute; left: 50%; bottom: clamp(1rem, 2vw, 1.6rem);
    transform: translateX(-50%);
    display: flex; gap: .15rem; padding: .35rem;
    max-width: calc(100% - 2rem); overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 16px 40px -26px rgba(43, 26, 18, .6);
}
.stage-bar::-webkit-scrollbar { display: none; }
.stage-pill {
    position: absolute; top: .35rem; bottom: .35rem; left: 0; width: 0;
    border-radius: 999px; background: linear-gradient(180deg, var(--brand-warm), var(--brand));
    transition: transform .34s var(--ease), width .34s var(--ease);
    pointer-events: none;
}
.stage-tab {
    position: relative; z-index: 1; white-space: nowrap;
    border: 0; background: none; font-family: var(--body);
    font-size: .875rem; font-weight: 600; color: var(--ink-2);
    padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
    transition: color .2s var(--ease);
}
.stage-tab:hover { color: var(--brand-deep); }
.stage-tab[aria-selected="true"] { color: #fff; }
@media (prefers-reduced-motion: reduce) { .stage-pill { transition: none; } }

@media (max-width: 860px) {
    .stage-pane { grid-template-columns: 1fr; }
    .stage-art { min-height: 0; display: grid; gap: .75rem; }
    .stage-art .tile { position: static; width: auto; }
}


/* --- hero: badge, trust row and drifting panels -------------------------- */
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    margin: 0 auto 1.1rem; padding: .4rem .9rem;
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    border-radius: 999px;
    font-size: .8125rem; font-weight: 600; color: var(--ink-2);
    backdrop-filter: blur(8px);
}
.dot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .55);
    animation: dot-pulse 2.4s ease-out infinite;
}
@keyframes dot-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); }
    70%  { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}

.hero-trust {
    list-style: none; margin: 1.5rem 0 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
    font-size: .875rem; color: var(--muted);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust i { color: var(--brand); font-size: .8rem; }

/* The drifting panels sit in the empty column either side of the headline.
   They are decoration, so they never take pointer events and are dropped
   where the text needs the full width. */
.hero-float { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-float .tile {
    position: absolute; width: 215px;
    box-shadow: 0 26px 55px -34px rgba(43, 26, 18, .55);
    animation: drift 7s ease-in-out infinite;
}
.hero-f1 { top: 30%; left: max(2%, calc(50% - 640px)); }
.hero-f2 { top: 52%; right: max(2%, calc(50% - 630px)); animation-delay: -3.5s; }
.hero-float .tile-k { display: flex; align-items: center; gap: .4rem; }
@keyframes drift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@media (max-width: 1200px) { .hero-float { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-float .tile { animation: none; }
    .dot { animation: none; }
}

/* The product shot rises and settles as it is scrolled to, so the hero hands
   over to it rather than the two sitting as separate blocks. */
@supports (animation-timeline: view()) {
    .showcase .panel {
        animation: panel-rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
    }
    @keyframes panel-rise {
        from { transform: translateY(46px) scale(.965); opacity: .55; }
        to   { transform: none; opacity: 1; }
    }
    @media (prefers-reduced-motion: reduce) { .showcase .panel { animation: none; } }
}
