:root {
    color-scheme: light;
    --page: #ffffff;
    --text: rgba(0, 0, 0, .92);
    --muted: rgba(0, 0, 0, .58);
    --hair: rgba(0, 0, 0, .10);
    --hair2: rgba(0, 0, 0, .06);
    --shadow: 0 12px 40px rgba(0, 0, 0, .10);
    --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --blue: #007aff;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--page);
}

/* Background video layer */
.bgVideo {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    /* hidden until ready */
    transition: opacity 700ms ease;
    pointer-events: none;
    z-index: -2;
}

body.videoError .bgVideo {
    display: none;
}

/* Full-page abstract background image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/home-background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
    z-index: -3;
    display: block;
}

body.videoReady::before {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .bgVideo {
        display: none;
    }

    body::before {
        display: block;
    }
}

/* .bgVideo{
  opacity: 0;
  transition: opacity 600ms ease;
} */

.bgVideo.isReady {
    opacity: 0.55;
    /* or whatever you want */
}




/* Subtle right-side wave/drift overlay (CSS-only motion) */
/* body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100vh;

  background-image: url("../img/home-background.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 140% 140%;

  opacity: 0.22;
  filter: blur(2px);
  pointer-events: none;
  z-index: -1; 

  animation: bgDrift 14s ease-in-out infinite;
} */

body::after {
    /* wave overlay styles */
}

body.videoReady::after {
    display: none;
}

/* turn it off once video is ready */




/* Keep all page content above the decoration */
.wrap,
.top,
.stage,
.foot {
    position: relative;
    z-index: 1;
}


/* Top bar */
.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(245, 245, 247, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hair2);
}

.brand {
    font-weight: 700;
    letter-spacing: .1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brandLogo {
    width: 22px;
    height: 22px;
    display: block;
}

.topRight {
    display: flex;
    gap: 10px;
    align-items: center
}


.ctaBtn {
    border: 1px solid rgba(0, 0, 0, .18);
    background: rgba(255, 255, 255, .92);
    color: rgba(0, 0, 0, .82);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.ctaBtn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.ctaBtn:active {
    transform: translateY(0);
}

/* Main */
.stage {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 46px 18px 44px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* HERO: no big box */
.dialog {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

/* Headline */
.prompt {
    margin-top: 20px;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: lighter;
    /* thin */
    letter-spacing: -0.8px;
    line-height: 1.05;
    font-size: 56px;

}


@media (max-width:980px) {
    .prompt {
        font-size: 52px
    }
}

@media (max-width:720px) {
    .prompt {
        font-size: 34px
    }

    .stage {
        padding-top: 28px
    }
}

.selected {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

/* Loading indicator (wired from JS) */
.loadingNotice {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 25px;
    font-weight: lighter;
}

.spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, .18);
    border-top-color: rgba(0, 0, 0, .55);
    animation: spin 900ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Subcopy pills */
.messages {
    margin: 14px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
    align-items: center;
}

.messages:empty {
    display: none
}

.msg {
    margin-top: 30px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    line-height: 1.4;
    color: var(--muted);
    font-size: 18px;
    max-width: 760px;
    font-weight: 400;
}

.msg.visitor {
    display: none
}

/* Search bar + chips (like “Find the accessories…”) */
.inputRow {
    margin: 22px auto 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    max-width: 760px;
}

.freeText {
    flex: 1;
    height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    outline: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.freeText:focus {
    border-color: rgba(0, 122, 255, .55);
    box-shadow: 0 0 0 6px rgba(0, 122, 255, .18);
}

.sendBtn {
    height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transition: transform 120ms ease;
}

.sendBtn:hover {
    transform: translateY(-1px)
}

.sendBtn:active {
    transform: translateY(0)
}

.sendBtn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none
}

.iconBtn {
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.iconBtn .icon {
    width: 22px;
    height: 22px;
    display: block;
    opacity: .85;
}

.iconBtn:hover .icon {
    opacity: 1;
}

/* Chips */
.choices {
    margin: 34px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 980px;
}

.choice {
    width: 190px;
    height: 190px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .88);
    cursor: pointer;
    font-weight: 200;
    letter-spacing: -0.2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .10);
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

/* Icon mask for category circles (global) */
.choice::before {
    content: "";
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, .55);
    -webkit-mask: url("../icons/default.svg") center/56px 56px no-repeat;
    mask: url("../icons/default.svg") center/56px 56px no-repeat;
    opacity: .75;
}

.choice[data-choice="outreach"]::before {
    -webkit-mask: url("../icons/outreach.svg") center/56px 56px no-repeat;
    mask: url("../icons/outreach.svg") center/56px 56px no-repeat;
}

.choice[data-choice="cloud"]::before {
    -webkit-mask: url("../icons/cloud.svg") center/56px 56px no-repeat;
    mask: url("../icons/cloud.svg") center/56px 56px no-repeat;
}

.choice[data-choice="apis"]::before {
    -webkit-mask: url("../icons/link.svg") center/56px 56px no-repeat;
    mask: url("../icons/link.svg") center/56px 56px no-repeat;
}

.choice[data-choice="ai"]::before {
    -webkit-mask: url("../icons/book.svg") center/56px 56px no-repeat;
    mask: url("../icons/book.svg") center/56px 56px no-repeat;
}

.choice[data-choice="security"]::before {
    -webkit-mask: url("../icons/security.svg") center/56px 56px no-repeat;
    mask: url("../icons/security.svg") center/56px 56px no-repeat;
}

.choice[data-choice="explainer"]::before {
    -webkit-mask: url("../icons/explainer.svg") center/56px 56px no-repeat;
    mask: url("../icons/explainer.svg") center/56px 56px no-repeat;
}

.choice[data-choice="video"]::before {
    -webkit-mask: url("../icons/video.svg") center/56px 56px no-repeat;
    mask: url("../icons/video.svg") center/56px 56px no-repeat;
}

.choice[data-choice="image"]::before {
    -webkit-mask: url("../icons/image.svg") center/56px 56px no-repeat;
    mask: url("../icons/image.svg") center/56px 56px no-repeat;
}

.choice[data-choice="moves"]::before {
    -webkit-mask: url("../icons/moves.svg") center/56px 56px no-repeat;
    mask: url("../icons/moves.svg") center/56px 56px no-repeat;
}

.choice[data-choice="web_dev"]::before {
    -webkit-mask: url("../icons/web-dev.svg") center/56px 56px no-repeat;
    mask: url("../icons/web-dev.svg") center/56px 56px no-repeat;
}

.choice[data-choice="ecommerce"]::before {
    -webkit-mask: url("../icons/ecommerce.svg") center/56px 56px no-repeat;
    mask: url("../icons/ecommerce.svg") center/56px 56px no-repeat;
}

.choice[data-choice="network"]::before {
    -webkit-mask: url("../icons/network.svg") center/56px 56px no-repeat;
    mask: url("../icons/network.svg") center/56px 56px no-repeat;
}

.choice:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .14)
}

.choice:active {
    transform: translateY(0)
}

.choice:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08)
}



/* Shelves: intentional sections (title + summary + grid) */
.shelves {
    width: 100%;
    max-width: 1040px;
    margin: 44px auto 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.shelves:empty {
    display: none;
}

.shelf {
    padding: 0;
}

.shelfHead {
    text-align: center;
    margin-bottom: 18px;
}

.shelfTitle {
    font-weight: lighter;
    letter-spacing: -0.55px;
    margin: 0;
    color: rgba(0, 0, 0, .86);
    font-size: 48px;
}

.shelfSummary {
    margin: 8px auto 0;
    max-width: 720px;
    color: rgba(0, 0, 0, .56);
    font-size: 14px;
    line-height: 1.45;
}

/* Results grid */
.shelfGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 18px;
    align-items: start;
}

/* Cards: calm tiles */
.card {
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    border-radius: 22px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
    transition: transform 160ms ease, box-shadow 160ms ease;
    cursor: pointer;
    align-self: start;
}

.card.noThumb {
    min-height: auto;
    padding: 14px;
    gap: 8px;
}



.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .10);
}

.thumb {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
}

.cardTop {
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    color: rgba(0, 0, 0, .52);
    background: rgba(255, 255, 255, .66);
    text-transform: lowercase;
}

.title {
    font-weight: 500;
    letter-spacing: -0.25px;
    font-size: 15px;
    line-height: 1.18;
}

.desc {
    color: rgba(0, 0, 0, .60);
    font-size: 13px;
    line-height: 1.38;
}

.cardActions,
.btn {
    display: none;
}

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

@media (max-width: 720px) {
    .shelves {
        margin-top: 26px;
        gap: 28px;
    }

    .shelfTitle {
        font-size: 20px;
    }

    .shelfGrid {
        grid-template-columns: 1fr;
    }

    .thumb {
        height: 160px;
    }
}

/* Footer pinned when short, but content isn't forced tall */
.foot {
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid var(--hair2);
    color: rgba(0, 0, 0, .56);
    font-size: 13px;
}

/* ===== Video modal (intentional, Apple-like) ===== */
.modalBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 50;
}

.modalCard {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 51;
}

.modalInner {
    width: 100%;
    max-width: 980px;
    border-radius: 22px;
    background: rgba(0, 0, 0, .92);
    box-shadow: 0 26px 90px rgba(0, 0, 0, .45);
    overflow: hidden;
    position: relative;
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .55);
    color: rgba(255, 255, 255, .92);
    font-size: 20px;
    cursor: pointer;
}

.modalClose:hover {
    background: rgba(0, 0, 0, .72);
}

.modalVideo {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.modalVideo iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Right-side sparkle field */
.sparkleField {
    position: fixed;
    top: 0;
    right: 0;
    width: 25vw;
    /* right 25% */
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    /* above wave overlay (-1), below UI (1) */
    opacity: 1;
    mix-blend-mode: normal;
}

/* Sparkles: a few gradient “stars” */
.sparkleField::before {
    content: "";
    position: absolute;
    inset: 0;

    /* multiple sparkles at different positions */
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .95) 0 2.4px, transparent 6px),
        radial-gradient(circle at 70% 22%, rgba(255, 255, 255, .80) 0 2.0px, transparent 5.5px),
        radial-gradient(circle at 45% 40%, rgba(255, 255, 255, .92) 0 2.8px, transparent 6.5px),
        radial-gradient(circle at 85% 48%, rgba(255, 255, 255, .75) 0 2.0px, transparent 5.5px),
        radial-gradient(circle at 30% 62%, rgba(255, 255, 255, .95) 0 2.6px, transparent 6.2px),
        radial-gradient(circle at 75% 70%, rgba(255, 255, 255, .85) 0 2.2px, transparent 5.8px),
        radial-gradient(circle at 55% 84%, rgba(255, 255, 255, .92) 0 2.4px, transparent 6px);

    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35));
    animation: sparkleTwinkle 2.8s ease-in-out infinite;
}

.sparkleField::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 35% 12%, rgba(255, 255, 255, .80) 0 2.0px, transparent 5.5px),
        radial-gradient(circle at 10% 36%, rgba(255, 255, 255, .92) 0 2.4px, transparent 6px),
        radial-gradient(circle at 90% 30%, rgba(255, 255, 255, .75) 0 2.0px, transparent 5.5px),
        radial-gradient(circle at 60% 55%, rgba(255, 255, 255, .95) 0 2.8px, transparent 6.5px),
        radial-gradient(circle at 25% 78%, rgba(255, 255, 255, .70) 0 2.0px, transparent 5.5px);

    filter: drop-shadow(0 0 12px rgba(255, 255, 255, .30));
    animation: sparkleDrift 6.5s ease-in-out infinite;
}

@keyframes sparkleTwinkle {

    0%,
    100% {
        opacity: .25;
        transform: translateY(0);
    }

    50% {
        opacity: .75;
        transform: translateY(-6px);
    }
}

@keyframes sparkleDrift {
    0% {
        opacity: .15;
        transform: translateY(10px);
    }

    40% {
        opacity: .55;
        transform: translateY(-14px);
    }

    100% {
        opacity: .20;
        transform: translateY(10px);
    }
}