/* ==========================================================================
   Sa 3D — the landing page's bands.
   ========================================================================== */

@property --scan {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 0%;
}

/* ---------------------------------------------------------------- bands */
.band {
    position: relative;
    padding-block: var(--section-y);
    background: var(--ink-950);
}

/* A faint viewport grid behind a band, fading out towards its edges. */
.band--grid::before,
.band--services::before,
.band--formats::before,
.band--process::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
        linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
        linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 24px 24px;
    -webkit-mask: radial-gradient(90% 70% at 50% 40%, #000 20%, transparent 80%);
    mask: radial-gradient(90% 70% at 50% 40%, #000 20%, transparent 80%);
}

.band > .container {
    position: relative;
    z-index: 1;
}

.band--process,
.band--formats,
.band--faq {
    background: var(--ink-900);
}

.band__head {
    display: grid;
    gap: var(--space-4);
    margin-block-end: clamp(2rem, 4vw, 3.5rem);
}

.band__head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: var(--space-5) clamp(2rem, 6vw, 5rem);
}

.band__head--split > div {
    display: grid;
    gap: var(--space-4);
}

.band__title {
    font-size: var(--step-4);
    max-inline-size: 17ch;
}

.band__lead {
    max-inline-size: 50ch;
}

.band__foot {
    display: flex;
    justify-content: center;
    margin-block-start: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 860px) {
    .band__head--split {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------- reveal on scroll */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity var(--dur-4) var(--ease-out) var(--reveal-delay, 0ms),
        transform var(--dur-4) var(--ease-out) var(--reveal-delay, 0ms),
        clip-path 1100ms var(--ease-out) var(--reveal-delay, 0ms);
}

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

/* A headline rising out of a slot, like a mesh extruded from the floor. */
.js [data-reveal="mask"] {
    opacity: 1;
    transform: translateY(0.35em);
    clip-path: inset(0 0 100% 0);
}

.js [data-reveal="mask"].is-in {
    transform: none;
    clip-path: inset(-0.2em -0.2em -0.3em -0.2em);
}

/* A picture wiped in left to right, like a render filling its region. */
.js [data-reveal="wipe"] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 100% 0 0);
}

.js [data-reveal="wipe"].is-in {
    clip-path: inset(0 0 0 0);
}

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-block-size: max(660px, 100svh);
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 72% 44%, rgb(124 92 255 / 0.2), transparent 70%),
        radial-gradient(40% 40% at 88% 90%, rgb(200 255 77 / 0.06), transparent 70%),
        radial-gradient(120% 90% at 50% 120%, #14101f, transparent 60%),
        var(--ink-950);
}

/* The hero melts into the next band instead of ending on a line. */
.hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 140px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(transparent, var(--ink-950));
}

.hero__viewport {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__viewport .viewport__stage {
    inset-block: calc(var(--header-h) + 22px) 92px;
    inset-inline-start: 46%;
    inset-inline-end: max(var(--gutter), (100vw - var(--container)) / 2);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--space-5);
    padding-block: calc(var(--header-h) + 3rem) 7rem;
    pointer-events: none;
}

.hero__head,
.hero__body {
    pointer-events: auto;
    max-inline-size: min(38rem, 44vw);
}

.hero__eyebrow {
    margin-block-end: var(--space-5);
}

.hero__title {
    font-size: clamp(3rem, 1.2rem + 5.4vw, 7.2rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.hero__line {
    display: block;
    padding-block-end: 0.08em;
    overflow: hidden;
}

.hero__ink {
    position: relative;
    display: inline-block;
    animation: hero-rise 1.1s var(--ease-out) both;
}

.hero__line--accent .hero__ink {
    animation-delay: 120ms;
    color: transparent;
    background: linear-gradient(95deg, var(--lime-400) 0%, #e8ffb2 30%, var(--violet-300) 62%, var(--violet-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* An outline copy behind the accent line: the same letters as wireframe, offset like an extrusion. */
.hero__line--accent .hero__ink::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Filled with the background and stroked underneath the fill: only the outer edge of the stroke
       shows, so the variable font's overlapping contours never draw lines inside a letter. */
    color: var(--ink-950);
    -webkit-text-fill-color: var(--ink-950);
    -webkit-text-stroke: 2px rgb(161 139 255 / 0.6);
    paint-order: stroke fill;
    transform: translate(0.05em, 0.06em);
    animation: hero-extrude 1.4s var(--ease-out) 500ms both;
}

@keyframes hero-rise {
    from { transform: translateY(105%); }
}

@keyframes hero-extrude {
    from { transform: translate(0, 0); opacity: 0; }
}

.hero__lead {
    margin-block-start: var(--space-2);
    animation: hero-fade 1s var(--ease-out) 300ms both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-6);
    margin-block-start: var(--space-5);
    animation: hero-fade 1s var(--ease-out) 420ms both;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-start: var(--space-6);
    animation: hero-fade 1s var(--ease-out) 540ms both;
}

.hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: rgb(15 15 22 / 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--text-soft);
}

.hero__chips svg {
    inline-size: 14px;
    block-size: 14px;
    color: var(--lime-500);
}

@keyframes hero-fade {
    from { opacity: 0; transform: translateY(16px); }
}

.hero__scroll {
    position: absolute;
    inset-block-end: 26px;
    inset-inline-start: max(var(--gutter), (100vw - var(--container)) / 2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    text-decoration: none;
}

.hero__scroll-line {
    position: relative;
    inline-size: 1px;
    block-size: 40px;
    background: var(--line-strong);
    overflow: hidden;
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    block-size: 14px;
    background: var(--lime-500);
    animation: scroll-drip 2s var(--ease-in-out) infinite;
}

@keyframes scroll-drip {
    from { transform: translateY(-14px); }
    to { transform: translateY(40px); }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        min-block-size: 0;
        padding-block: calc(var(--header-h) + 1.4rem) 0;
    }

    .hero__content {
        display: contents;
    }

    .hero__head,
    .hero__body {
        max-inline-size: none;
        padding-inline: var(--gutter);
    }

    .hero__head {
        order: 1;
    }

    .hero__eyebrow {
        margin-block-end: var(--space-4);
    }

    .hero__title {
        font-size: clamp(2.7rem, 12.5vw, 4.6rem);
    }

    .hero__viewport {
        order: 2;
        position: relative;
        inset: auto;
        block-size: min(118vw, 600px);
        margin-block: -0.5rem -0.4rem;
    }

    .hero__viewport .viewport__stage {
        inset: 8px var(--gutter) 10px;
    }

    .hero__body {
        order: 3;
        position: relative;
        z-index: 2;
        padding-block-end: 4rem;
    }

    .hero__actions .button {
        inline-size: 100%;
    }

    .hero__actions {
        margin-block-start: var(--space-4);
    }

    .hero__chips {
        margin-block-start: var(--space-5);
    }

    .hero__scroll {
        display: none;
    }

    .hero::after {
        block-size: 80px;
    }
}

/* ---------------------------------------------------------------- ticker: two ribbons crossing */
.ticker {
    position: relative;
    z-index: 2;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    background: var(--ink-950);
}

.ticker__ribbon {
    position: relative;
    display: flex;
    overflow: hidden;
    padding-block: 0.85rem;
}

.ticker__ribbon--solid {
    background: linear-gradient(90deg, var(--violet-700), var(--violet-500) 50%, var(--violet-700));
    transform: rotate(-2.2deg);
    box-shadow: 0 20px 60px -20px var(--violet-glow);
}

.ticker__ribbon--wire {
    margin-block-start: -0.9rem;
    border-block: 1px solid var(--line-violet);
    background: rgb(10 10 15 / 0.85);
    transform: rotate(1.6deg);
}

.ticker__track {
    display: flex;
    flex: none;
    animation: ticker 42s linear infinite;
}

.ticker__track--reverse {
    animation-direction: reverse;
    animation-duration: 50s;
}

.ticker__set {
    display: flex;
    flex: none;
    align-items: center;
}

.ticker__word {
    padding-inline: 1.3rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: var(--bone-50);
}

.ticker__ribbon--wire .ticker__word {
    /* Outer edge only (see .hero__ink::before): the fill hides the inner half of the stroke. */
    color: var(--ink-950);
    -webkit-text-stroke: 2px var(--violet-300);
    paint-order: stroke fill;
}

.ticker__sep {
    inline-size: 10px;
    block-size: 10px;
    flex: none;
    background: var(--lime-500);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--lime-glow);
}

.ticker__ribbon--solid .ticker__sep {
    background: var(--bone-50);
    box-shadow: none;
}

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

/* ---------------------------------------------------------------- services */
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.service-card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 40%;
    --scan: 0%;

    position: relative;
    isolation: isolate;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-l);
    background: var(--ink-850);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition:
        transform var(--dur-3) var(--ease-out),
        border-color var(--dur-3),
        box-shadow var(--dur-3),
        --scan 1100ms var(--ease-in-out),
        opacity var(--dur-4) var(--ease-out) var(--reveal-delay, 0ms);
}

.js .service-card[data-reveal] {
    transform: perspective(1000px) translateY(30px);
}

.js .service-card[data-reveal].is-in {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
}

.service-card[data-tilting="true"] {
    transition: transform 120ms linear, border-color var(--dur-3), box-shadow var(--dur-3), --scan 1100ms var(--ease-in-out);
}

.service-card[data-scan-on] {
    --scan: 100%;
    border-color: var(--line-violet);
    box-shadow: var(--shadow-card), var(--shadow-violet);
}

.service-card__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.service-card__media img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}

.service-card__render {
    transform: scale(1.02);
    transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}

.service-card:hover .service-card__render {
    transform: scale(1.06);
}

/* The mesh underneath, uncovered from the top by the scan line. */
.service-card__wire {
    clip-path: inset(0 0 calc(100% - var(--scan)) 0);
}

.service-card__scanline {
    position: absolute;
    inset-inline: 0;
    inset-block-start: var(--scan);
    block-size: 2px;
    background: var(--lime-500);
    box-shadow: 0 0 14px 3px var(--lime-glow), 0 0 40px 8px rgb(200 255 77 / 0.15);
    opacity: 0;
    transition: opacity var(--dur-2);
}

.service-card[data-scan-on] .service-card__scanline {
    opacity: 1;
}

/* The line finishes its pass and fades once the mesh is fully uncovered. */
.service-card[data-scan-on] .service-card__scanline {
    animation: scan-fade 1.4s var(--ease-out) both;
}

@keyframes scan-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* The picture's lower part darkens so the words stay legible over any render. */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgb(10 10 15 / 0) 32%, rgb(10 10 15 / 0.6) 50%, rgb(10 10 15 / 0.93) 68%, rgb(10 10 15 / 0.98));
    pointer-events: none;
}

/* Light that follows the pointer. */
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / 0.09), transparent 45%);
    opacity: 0;
    transition: opacity var(--dur-3);
}

.service-card[data-tilting="true"]::after {
    opacity: 1;
}

.service-card__tag {
    position: absolute;
    z-index: 1;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: rgb(10 10 15 / 0.6);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.service-card__tag span:first-child {
    color: var(--text-strong);
}

.service-card__mode {
    color: #ffae5c;
}

.service-card[data-scan-on] .service-card__mode {
    color: var(--lime-500);
}

.service-card__body {
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    inset-block-end: 0;
    display: grid;
    gap: 0.6rem;
    padding: clamp(1.1rem, 2vw, 1.6rem);
}

.service-card__title {
    font-size: var(--step-2);
    letter-spacing: -0.035em;
    text-shadow: 0 2px 18px rgb(0 0 0 / 0.6);
}

.service-card__text {
    font-size: var(--step--1);
    line-height: 1.5;
    color: var(--text-soft);
}

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-self: start;
    min-block-size: 44px;
    margin-block-start: 0.1rem;
    font-weight: 800;
    font-size: var(--step--1);
    color: var(--lime-500);
    text-decoration: none;
}

.service-card__cta svg {
    inline-size: 16px;
    block-size: 16px;
    transition: transform var(--dur-3) var(--ease-out);
}

.service-card__cta:hover svg {
    transform: translateX(4px);
}

/* Selection handles on the corners, as when an object is picked in the viewport. */
.bbox i {
    position: absolute;
    inline-size: 9px;
    block-size: 9px;
    border: 1.5px solid var(--lime-500);
    background: var(--ink-950);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-spring);
}

.bbox i:nth-child(1) { inset-block-start: 8px; inset-inline-end: 8px; }
.bbox i:nth-child(2) { inset-block-end: 8px; inset-inline-end: 8px; }
.bbox i:nth-child(3) { inset-block-end: 8px; inset-inline-start: 8px; }
.bbox i:nth-child(4) { inset-block-start: 50%; inset-inline-end: 8px; }

.service-card[data-scan-on] .bbox i,
.format-tile[data-tilting="true"] .bbox i {
    opacity: 1;
    transform: none;
}

.carousel-dots {
    display: none;
}

@media (max-width: 1100px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .services {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: min(80vw, 340px);
        gap: 14px;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        padding-block: 6px 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

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

    .service-card {
        scroll-snap-align: start;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-block-start: var(--space-4);
    }

    .carousel-dots span {
        inline-size: 6px;
        block-size: 6px;
        border-radius: 2px;
        background: var(--line-strong);
        transform: rotate(45deg);
        transition: background var(--dur-2), transform var(--dur-3) var(--ease-spring);
    }

    .carousel-dots span[data-active="true"] {
        background: var(--lime-500);
        transform: rotate(45deg) scale(1.4);
    }
}

/* ---------------------------------------------------------------- process */
.process {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.process__pin {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    inset-block-start: calc(var(--header-h) + 20px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: var(--space-4);
    block-size: min(calc(100svh - var(--header-h) - 40px), 760px);
}

.process__viewport {
    min-block-size: 0;
}

.process__steps {
    grid-column: 1;
    grid-row: 1;
    display: grid;
}

.process-step {
    display: grid;
    align-content: center;
    gap: var(--space-3);
    min-block-size: 62svh;
    padding-block: var(--space-6);
    opacity: 0.32;
    transition: opacity var(--dur-4) var(--ease-out);
}

.process-step[data-active="true"] {
    opacity: 1;
}

.process-step__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--violet-300);
}

.process-step__tag span {
    display: inline-grid;
    place-items: center;
    inline-size: 2.4rem;
    block-size: 2.4rem;
    border-radius: 10px;
    border: 1px solid var(--line-violet);
    background: var(--violet-glow-soft);
    color: var(--text-strong);
    letter-spacing: 0;
    transition: background var(--dur-3), color var(--dur-3), border-color var(--dur-3);
}

.process-step[data-active="true"] .process-step__tag span {
    background: var(--lime-500);
    border-color: var(--lime-500);
    color: #0d1402;
}

.process-step__title {
    font-size: var(--step-3);
    letter-spacing: -0.04em;
    max-inline-size: 16ch;
}

.process-step__text {
    max-inline-size: 42ch;
    font-size: var(--step-1);
    color: var(--text-soft);
}

.process-step--cta {
    min-block-size: 30svh;
    opacity: 1;
    justify-items: start;
}

.process__timeline {
    position: relative;
    display: grid;
    gap: 0.6rem;
    padding: 0.8rem 1rem 0.7rem;
    border-radius: var(--radius-m);
    background: rgb(18 18 27 / 0.8);
    border: 1px solid var(--line);
}

.process__timeline-track {
    position: absolute;
    inset-inline: 1.5rem;
    inset-block-start: 1.28rem;
    block-size: 2px;
    background: var(--line-strong);
}

.process__timeline-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--violet-500), var(--lime-500));
    transform-origin: left center;
    transform: scaleX(0);
}

.process__keys {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.process__keys li {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    inline-size: 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mute);
    transition: color var(--dur-3);
}

.process__keys svg {
    inline-size: 1rem;
    block-size: 1rem;
    color: var(--ink-600);
    transition: color var(--dur-3), transform var(--dur-3) var(--ease-spring);
}

.process__keys li[data-done="true"] svg {
    color: var(--violet-400);
}

.process__keys li[data-active="true"] {
    color: var(--text-strong);
}

.process__keys li[data-active="true"] svg {
    color: var(--lime-500);
    transform: scale(1.35);
    filter: drop-shadow(0 0 6px var(--lime-glow));
}

.process__keys span {
    white-space: nowrap;
}

.process__frame {
    position: absolute;
    inset-block-start: 0.55rem;
    inset-inline-end: 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--violet-dim);
}

@media (max-width: 900px) {
    .process {
        display: block;
    }

    .process__pin {
        position: sticky;
        z-index: 3;
        inset-block-start: calc(var(--header-h) + 8px);
        block-size: auto;
        grid-template-rows: auto auto;
        gap: 8px;
        margin-inline: calc(-0.5 * var(--gutter));
        padding: 8px calc(0.5 * var(--gutter)) 10px;
        background: linear-gradient(var(--ink-900) 88%, transparent);
    }

    .process__viewport {
        block-size: min(46svh, 92vw);
    }

    .process__keys span {
        display: none;
    }

    .process__timeline {
        padding-block: 0.7rem;
    }

    .process__timeline-track {
        inset-block-start: 50%;
    }

    .process__frame {
        display: none;
    }

    .process-step {
        min-block-size: 44svh;
        opacity: 0.4;
    }

    .process-step__title {
        font-size: var(--step-3);
    }

    .process-step--cta .button {
        inline-size: 100%;
    }
}

/* ---------------------------------------------------------------- portfolio */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-end: var(--space-6);
}

.filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-block-size: 42px;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong);
    font-weight: 700;
    font-size: var(--step--1);
    color: var(--text-soft);
    transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}

.filter:hover {
    color: var(--text-strong);
    border-color: var(--violet-400);
}

.filter[aria-pressed="true"] {
    color: var(--text-strong);
    background: var(--violet-600);
    border-color: var(--violet-400);
}

.filter__count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: inherit;
    opacity: 0.7;
}

.portfolio {
    columns: 3 300px;
    column-gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.piece {
    break-inside: avoid;
    margin-block-end: clamp(0.9rem, 1.6vw, 1.25rem);
    transition:
        opacity var(--dur-4) var(--ease-out) var(--reveal-delay, 0ms),
        transform var(--dur-4) var(--ease-out) var(--reveal-delay, 0ms);
}

.piece[data-filtered-out="true"] {
    display: none;
}

.piece[data-entering="true"] {
    opacity: 0;
    transform: scale(0.96);
}

.piece__open {
    position: relative;
    display: block;
    inline-size: 100%;
    border-radius: var(--radius-l);
    overflow: hidden;
    background: var(--ink-850);
    border: 1px solid var(--line);
    text-align: start;
    box-shadow: var(--shadow-card);
    transition: border-color var(--dur-3), box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out);
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.piece__open:hover {
    border-color: var(--line-violet);
    box-shadow: var(--shadow-card), var(--shadow-violet);
}

/* ---- the wipe: mesh on the left of the line, render on the right */
.compare {
    --split: 0%;
    position: relative;
    display: block;
    overflow: hidden;
}

.compare__final {
    display: block;
    inline-size: 100%;
    block-size: auto;
}

.compare__process {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.compare__line {
    position: absolute;
    inset-block: 0;
    inset-inline-start: var(--split);
    inline-size: 2px;
    margin-inline-start: -1px;
    background: var(--lime-500);
    box-shadow: 0 0 12px var(--lime-glow);
    pointer-events: none;
}

.compare__knob {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    display: grid;
    place-items: center;
    inline-size: 38px;
    block-size: 38px;
    border-radius: 50%;
    background: var(--lime-500);
    color: #0d1402;
    box-shadow: 0 6px 20px -4px rgb(0 0 0 / 0.6);
    transform: translate(-50%, -50%);
}

.compare__knob svg {
    inline-size: 20px;
    block-size: 20px;
}

.compare__label {
    position: absolute;
    inset-block-start: 12px;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    background: rgb(10 10 15 / 0.7);
    border: 1px solid var(--line);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    opacity: 0;
    transition: opacity var(--dur-3);
    pointer-events: none;
}

.compare__label--process { inset-inline-start: 12px; color: var(--violet-300); }
.compare__label--final { inset-inline-end: 12px; }

.piece__open:hover .compare__label,
.compare--large .compare__label {
    opacity: 1;
}

/* On a card the line only appears while the wipe is in use; at rest the piece is its render. */
.piece__open .compare__line {
    opacity: 0;
    transition: opacity var(--dur-2);
}

.piece__open:hover .compare__line,
.piece__open:focus-visible .compare__line {
    opacity: 1;
}

@media (hover: none) {
    /* On touch the knob waits at the edge as the handle to grab. */
    .piece__open .compare__line {
        opacity: 1;
        inset-inline-start: max(var(--split), 22px);
        background: rgb(200 255 77 / 0.5);
    }

    .piece__open .compare__knob {
        inline-size: 34px;
        block-size: 34px;
    }
}

.piece__meta {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    display: grid;
    gap: 0.25rem;
    padding: 3.2rem 1.1rem 1.05rem;
    background: linear-gradient(transparent, rgb(8 8 12 / 0.9) 55%);
    pointer-events: none;
}

.piece__cat {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet-300);
}

.piece__title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.piece__tools {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--text-mute);
}

.piece__zoom {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    inline-size: 36px;
    block-size: 36px;
    border-radius: 10px;
    background: rgb(10 10 15 / 0.7);
    border: 1px solid var(--line);
    color: var(--text-strong);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-spring);
}

.piece__zoom svg {
    inline-size: 16px;
    block-size: 16px;
}

.piece__open:hover .piece__zoom,
.piece__open:focus-visible .piece__zoom {
    opacity: 1;
    transform: none;
}

.piece__open[data-compare]:hover .compare__label--final {
    inset-inline-end: 56px;
}

.portfolio__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: var(--space-5);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.portfolio__hint svg {
    inline-size: 16px;
    block-size: 16px;
    color: var(--lime-500);
}

@media (max-width: 640px) {
    /* One swipeable row of filters instead of three wrapped ones. */
    .filters {
        flex-wrap: nowrap;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

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

    .filter {
        flex: none;
    }
}

@media (max-width: 640px) {
    .portfolio {
        columns: 2 150px;
        column-gap: 10px;
    }

    .piece {
        margin-block-end: 10px;
    }

    .piece__meta {
        padding: 2.4rem 0.75rem 0.7rem;
    }

    .piece__title {
        font-size: 0.92rem;
    }

    .piece__tools,
    .compare__label {
        display: none;
    }
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
    inline-size: min(1180px, 100vw - 2rem);
    /* The reset zeroes every margin; a modal dialog is centred by exactly this one. */
    margin: auto;
    max-inline-size: none;
    max-block-size: min(800px, 100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background: var(--ink-900);
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 50px 140px -30px rgb(0 0 0 / 0.95);
}

.lightbox::backdrop {
    background: rgb(4 4 7 / 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox[open] {
    animation: lightbox-in 0.5s var(--ease-out);
}

@keyframes lightbox-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
}

.lightbox__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    block-size: 100%;
    max-block-size: inherit;
}

.lightbox__media {
    --ratio: 3 / 4;
    align-self: center;
    justify-self: center;
    inline-size: auto;
    block-size: min(800px, 100dvh - 2rem);
    max-inline-size: 100%;
    aspect-ratio: var(--ratio);
    background: var(--ink-1000);
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
}

.lightbox__media:not([data-has-process]) {
    cursor: default;
}

.lightbox__media:not([data-has-process]) .compare__line,
.lightbox__media:not([data-has-process]) .compare__label,
.lightbox__media:not([data-has-process]) .compare__process {
    display: none;
}

.lightbox__media .compare__final {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
}

.compare__range {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    opacity: 0;
    pointer-events: none;
}

.compare:has(.compare__range:focus-visible) .compare__knob {
    outline: 2px solid var(--bone-50);
    outline-offset: 3px;
}

.lightbox__info {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-4);
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow-y: auto;
}

.lightbox__counter {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-mute);
}

.lightbox__title {
    font-size: var(--step-3);
    letter-spacing: -0.04em;
}

.lightbox__desc {
    color: var(--text-soft);
}

.lightbox__tools {
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--line-violet);
    background: var(--violet-glow-soft);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--violet-300);
}

.lightbox__nav {
    display: flex;
    gap: 0.5rem;
    margin-block-start: var(--space-3);
}

.lightbox__arrow,
.lightbox__close {
    display: grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    color: var(--text-strong);
    transition: background var(--dur-2), border-color var(--dur-2);
}

.lightbox__arrow:hover,
.lightbox__close:hover {
    border-color: var(--violet-400);
    background: var(--violet-glow-soft);
}

.lightbox__arrow svg,
.lightbox__close svg {
    inline-size: 22px;
    block-size: 22px;
}

.lightbox__close {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 2;
    background: rgb(8 8 12 / 0.6);
}

@media (max-width: 760px) {
    .lightbox {
        inline-size: 100vw;
        max-block-size: 100dvh;
        block-size: 100dvh;
        border-radius: 0;
        border: 0;
    }

    .lightbox__inner {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .lightbox__media {
        block-size: auto;
        max-block-size: 62dvh;
        inline-size: 100%;
        align-self: stretch;
    }

    .lightbox__info {
        padding: 1.1rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
        gap: var(--space-3);
        align-content: start;
    }

    .lightbox__info .button {
        inline-size: 100%;
    }

    .lightbox__nav {
        position: absolute;
        inset-block-start: 14px;
        inset-inline-start: 14px;
        margin: 0;
    }

    .lightbox__arrow {
        inline-size: 44px;
        block-size: 44px;
        background: rgb(8 8 12 / 0.6);
    }
}

/* ---------------------------------------------------------------- formats: extruded file tiles */
.formats {
    --gap: clamp(1rem, 2vw, 1.6rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

/* Three to a row, the last row centred: five formats read as 3 + 2, not as a squeezed 5. */
.formats > .format-tile {
    flex: 0 1 calc((100% - 2 * var(--gap)) / 3);
    min-inline-size: 250px;
}

.format-tile {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-4) var(--ease-out) var(--reveal-delay, 0ms);
    transform-style: preserve-3d;
}

.js .format-tile[data-reveal] {
    transform: perspective(900px) translateY(30px);
}

.js .format-tile[data-reveal].is-in {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
}

.format-tile[data-tilting="true"] {
    transition: transform 120ms linear, opacity var(--dur-4);
}

.format-tile__face {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 0.8rem;
    block-size: 100%;
    padding: 1.4rem 1.3rem 1.5rem;
    border-radius: var(--radius-l);
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(160deg, rgb(255 255 255 / 0.06), transparent 40%),
        var(--ink-850);
    transition: border-color var(--dur-3), transform var(--dur-3) var(--ease-out);
}

/* The tile's thickness: a copy behind it, offset down and right, in the selected face's violet. */
.format-tile__depth {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-l);
    background: linear-gradient(135deg, var(--violet-700), #1d1440);
    transform: translate(7px, 7px);
    transition: transform var(--dur-3) var(--ease-out);
}

.format-tile:hover .format-tile__face {
    border-color: var(--violet-400);
    transform: translate(-3px, -3px);
}

.format-tile:hover .format-tile__depth {
    transform: translate(9px, 9px);
}

.format-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.format-tile__icon {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: 12px;
    background: var(--violet-glow-soft);
    border: 1px solid var(--line-violet);
    color: var(--violet-300);
}

.format-tile__icon svg {
    inline-size: 22px;
    block-size: 22px;
}

.format-tile__ext {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--lime-500);
    text-align: end;
}

.format-tile__title {
    font-size: var(--step-1);
    letter-spacing: -0.03em;
}

.format-tile__text {
    font-size: var(--step--1);
    color: var(--text-soft);
}

@media@media (max-width: 860px) {
    .formats > .format-tile {
        flex-basis: calc((100% - var(--gap)) / 2);
    }
}

@media (max-width: 640px) {
    .formats > .format-tile {
        flex-basis: 100%;
    }

    .format-tile__face {
        padding: 1.1rem 1.1rem 1.2rem;
    }
}

/* ---------------------------------------------------------------- studio */
.studio {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.render-region {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-l);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-card);
}

.render-region img {
    inline-size: 100%;
    block-size: 115%;
    object-fit: cover;
    transform: translateY(var(--parallax, 0px));
}

/* The dashed frame a renderer draws around the region it is computing. */
.render-region::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgb(200 255 77 / 0.5);
    border-radius: calc(var(--radius-l) - 8px);
    pointer-events: none;
}

.render-region__tag {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-start: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 7px;
    background: rgb(10 10 15 / 0.72);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.render-region__dot {
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: var(--lime-500);
    box-shadow: 0 0 8px var(--lime-glow);
    animation: blink 1.6s steps(2) infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

.studio__copy {
    display: grid;
    gap: var(--space-4);
}

.studio__body {
    display: grid;
    gap: var(--space-4);
    font-size: var(--step-1);
    color: var(--text-soft);
    max-inline-size: 46ch;
}

.studio__body strong,
.studio__body b {
    color: var(--text-strong);
}

.highlights {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.6vw, 1.2rem);
    margin-block-start: var(--space-4);
}

.highlight {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    padding: 1.3rem;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.02);
    transition: border-color var(--dur-3), background var(--dur-3);
}

.highlight:hover {
    border-color: var(--line-violet);
    background: var(--violet-glow-soft);
}

.highlight__icon {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: 12px;
    background: rgb(200 255 77 / 0.1);
    color: var(--lime-500);
}

.highlight__icon svg {
    inline-size: 22px;
    block-size: 22px;
}

.highlight__title {
    font-size: var(--step-0);
    letter-spacing: -0.02em;
}

.highlight__text {
    font-size: var(--step--1);
    color: var(--text-soft);
}

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

    .highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .highlights {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------- faq */
.faq {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.faq__intro {
    position: sticky;
    inset-block-start: calc(var(--header-h) + 2rem);
    display: grid;
    gap: var(--space-5);
    justify-items: start;
}

.faq__card {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    padding: var(--space-5);
    border-radius: var(--radius-l);
    border: 1px solid var(--line-violet);
    background:
        radial-gradient(120% 120% at 100% 0%, rgb(124 92 255 / 0.22), transparent 60%),
        var(--ink-850);
    color: var(--text-strong);
    font-weight: 700;
}

.faq__list {
    display: grid;
    gap: 0.7rem;
}

.faq-item {
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.02);
    transition: background var(--dur-3), border-color var(--dur-3);
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--line-violet);
    background: var(--violet-glow-soft);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-block-size: 64px;
    padding: 1rem 1.2rem 1rem 1.4rem;
    cursor: pointer;
    list-style: none;
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--text-strong);
}

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

.faq-item__icon {
    display: grid;
    place-items: center;
    inline-size: 38px;
    block-size: 38px;
    flex: none;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    color: var(--text-strong);
    transition: transform var(--dur-3) var(--ease-out), background var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}

.faq-item__icon svg {
    inline-size: 18px;
    block-size: 18px;
}

.faq-item[open] .faq-item__icon {
    transform: rotate(45deg);
    background: var(--lime-500);
    border-color: var(--lime-500);
    color: #0d1402;
}

.faq-item__body {
    padding: 0 1.4rem 1.4rem;
    color: var(--text-soft);
}

.faq-item__body a {
    color: var(--violet-300);
}

.faq-item__body ul,
.faq-item__body ol {
    padding-inline-start: 1.2rem;
}

@media (max-width: 900px) {
    .faq {
        grid-template-columns: 1fr;
    }

    .faq__intro {
        position: static;
    }

    .faq__card {
        order: 10;
    }
}

/* ---------------------------------------------------------------- final call */
.band--cta {
    background: var(--ink-1000);
    overflow: clip;
}

.cta__glow {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 55%;
    z-index: 0;
    inline-size: min(1200px, 150vw);
    aspect-ratio: 1.6;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgb(124 92 255 / 0.34), rgb(124 92 255 / 0.08) 55%, transparent 75%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    pointer-events: none;
}

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.cta__copy {
    display: grid;
    gap: var(--space-5);
    justify-items: start;
}

.cta__title {
    font-size: var(--step-5);
    letter-spacing: -0.055em;
    line-height: 0.96;
    max-inline-size: 14ch;
}

.cta__actions {
    display: grid;
    gap: var(--space-3);
    justify-items: start;
    margin-block-start: var(--space-3);
}

.cta__note {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* The conversation the visitor is about to start. */
.chat {
    inline-size: 100%;
    max-inline-size: 400px;
    justify-self: center;
    border-radius: 28px;
    overflow: hidden;
    background: #0b141a;
    border: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.95), 0 0 0 8px rgb(255 255 255 / 0.02);
    transform: rotate(2deg);
    transition: transform 0.8s var(--ease-out);
}

.chat:hover {
    transform: rotate(0deg) translateY(-4px);
}

.chat__head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.1rem;
    background: #1f2c34;
}

.chat__avatar {
    display: grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    background: var(--ink-950);
}

.chat__avatar .brand__mark {
    block-size: 26px;
}

.chat__who {
    display: grid;
    line-height: 1.25;
    color: #e9edef;
}

.chat__status {
    font-size: 0.78rem;
    color: #8696a0;
}

.chat__body {
    display: grid;
    align-content: end;
    gap: 0.55rem;
    min-block-size: 280px;
    padding: 1.1rem;
    background:
        radial-gradient(circle at 20% 20%, rgb(255 255 255 / 0.025) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
        #0b141a;
}

.chat__bubble {
    max-inline-size: 86%;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #e9edef;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-spring);
}

.chat__bubble[data-shown="true"] {
    opacity: 1;
    transform: none;
}

.chat__bubble--out {
    justify-self: end;
    background: #005c4b;
    border-end-end-radius: 4px;
    min-block-size: 2.2em;
}

.chat__bubble--in {
    justify-self: start;
    background: #1f2c34;
    border-end-start-radius: 4px;
}

.chat__bubble--typing {
    display: inline-flex;
    gap: 4px;
    inline-size: fit-content;
}

.chat__bubble--typing[hidden] {
    display: none !important;
}

.chat__bubble--typing span {
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: #8696a0;
    animation: typing 1.2s ease-in-out infinite;
}

.chat__bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    30% { transform: translateY(-4px); opacity: 1; }
    0%, 60%, 100% { transform: none; opacity: 0.5; }
}

.chat__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0 0.7rem 0.7rem;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    border-radius: 999px;
    background: #1f2c34;
    color: #8696a0;
    font-size: 0.9rem;
}

.chat__send {
    display: grid;
    place-items: center;
    inline-size: 38px;
    block-size: 38px;
    border-radius: 50%;
    background: var(--wa-500);
    color: #062b14;
}

.chat__send svg {
    inline-size: 18px;
    block-size: 18px;
}

/* No script: the conversation is shown already written. */
html:not(.js) .chat__bubble {
    opacity: 1;
    transform: none;
}

html:not(.js) .chat__bubble--out::after {
    content: attr(data-text);
}

html:not(.js) .chat__bubble--typing {
    display: none;
}

@media (max-width: 900px) {
    .cta {
        grid-template-columns: 1fr;
    }

    .chat {
        transform: none;
    }
}

@media (max-width: 560px) {
    .cta__actions,
    .cta__actions .button {
        inline-size: 100%;
        justify-items: center;
    }

    .cta__title {
        font-size: clamp(2.3rem, 10.5vw, 3.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track {
        animation: none;
    }
}
