/* =========================================================================
   MelDev AB — public site
   Same brand language as the Datacenter (cyan glass on near-black) but
   tuned for a public marketing audience: more space, larger typography,
   editorial pacing, scroll-revealed cards.
   ========================================================================= */

:root {
    --bg-0:        #050608;
    --bg-1:        #0a0c11;
    --bg-2:        #0f1218;
    --bg-3:        #161b24;
    --bg-card:     rgba(15, 20, 38, 0.55);

    --line:        rgba(74, 216, 255, 0.10);
    --line-strong: rgba(74, 216, 255, 0.28);

    --text:        #e8edf2;
    --text-soft:   #c2c9d3;
    --text-dim:    #8b95a3;
    --text-faint:  #4a5360;

    --cyan:        #4ad8ff;
    --cyan-soft:   #7ee5ff;
    --cyan-bright: #b9efff;
    --cyan-dim:    #2ba7d6;
    --cyan-deep:   #0a4a7d;

    --amber:       #ffb020;

    --sans:    "Geist", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono:    "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --display: "Fraunces", "Geist", Georgia, serif;

    --max-w: 1240px;
    --pad:   clamp(1.25rem, 4vw, 3rem);

    --radius:    14px;
    --radius-lg: 20px;

    --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- reset ---- */
*, *::before, *::after { 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; }
img, svg, video, iframe { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ---- base ---- */
body {
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection { background: var(--cyan); color: #04162a; text-shadow: none; }

::-webkit-scrollbar         { width: 10px; height: 10px; }
::-webkit-scrollbar-track   { background: var(--bg-0); }
::-webkit-scrollbar-thumb   { background: var(--bg-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-deep); }

/* ===========================================================
   1. NAV
   =========================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: 64px;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--pad);
    background: linear-gradient(180deg, rgba(10,12,17,0.85), rgba(10,12,17,0.7));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--easing), background .25s var(--easing);
}
.nav.scrolled {
    border-bottom-color: var(--line);
    background: linear-gradient(180deg, rgba(10,12,17,0.95), rgba(10,12,17,0.88));
}

.nav-logo {
    display: flex; align-items: center;
    height: 100%; padding: 14px 0;
}
.nav-logo img {
    height: 30px; width: auto;
    filter:
        invert(1) brightness(1.05)
        drop-shadow(0 0 8px rgba(74,216,255,0.4));
    transition: filter .2s, transform .12s;
}
.nav-logo:hover img {
    transform: scale(1.04);
    filter:
        invert(1) brightness(1.15)
        drop-shadow(0 0 14px rgba(74,216,255,0.6));
}

.nav-links {
    display: flex; align-items: center; gap: 0.25rem;
    font-size: 0.92rem;
}
.nav-links a {
    color: var(--text-soft);
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.nav-links a:hover {
    color: var(--cyan-bright);
    background: rgba(74,216,255,0.05);
}
.nav-links .nav-cta {
    margin-left: 0.5rem;
    color: #04162a;
    background: linear-gradient(180deg, var(--cyan-soft), var(--cyan));
    box-shadow:
        0 0 0 1px rgba(74,216,255,0.5),
        0 0 18px rgba(74,216,255,0.25),
        inset 0 1px 0 rgba(255,255,255,0.4);
    font-weight: 700;
}
.nav-links .nav-cta:hover {
    color: #04162a;
    filter: brightness(1.1);
    background: linear-gradient(180deg, var(--cyan-soft), var(--cyan));
}

.nav-burger {
    display: none;
    background: transparent; border: none;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    cursor: pointer;
}
.nav-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text);
    transition: transform .25s, opacity .15s;
}

@media (max-width: 760px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        padding: 1rem var(--pad) 1.25rem;
        background: rgba(10, 12, 17, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .25s var(--easing), opacity .25s var(--easing);
    }
    .nav-links.open {
        transform: translateY(0); opacity: 1; pointer-events: auto;
    }
    .nav-links a { padding: 0.85rem 1rem; }
    .nav-links .nav-cta { margin: 0.4rem 0 0; }
    .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-burger.open span:nth-child(2) { opacity: 0; }
    .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===========================================================
   2. HERO
   =========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px var(--pad) 80px;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%,  rgba(74, 216, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 70% at 90% 90%, rgba(60, 30, 110, 0.20),  transparent 60%),
        radial-gradient(ellipse 60% 70% at 10% 100%, rgba(10, 74, 125, 0.20), transparent 60%),
        linear-gradient(180deg, #04060f 0%, #060a1c 50%, #050608 100%);
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74,216,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,216,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
    animation: grid-drift 60s linear infinite;
}
@keyframes grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 64px 64px; }
}
.hero-glow {
    position: absolute; left: 50%; top: 55%;
    width: 800px; height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(74,216,255,0.18) 0%,
        rgba(74,216,255,0.06) 30%,
        transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1);    }
    50%      { opacity: 1.0; transform: translate(-50%, -50%) scale(1.06); }
}

.hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max-w); margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(74,216,255,0.05);
    color: var(--cyan-bright);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 2rem;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1;    transform: scale(1); }
    50%      { opacity: 0.4;  transform: scale(0.7); }
}

.hero-title {
    margin: 0;
    line-height: 1;
}
.hero-mark {
    width: clamp(280px, 50vw, 560px);
    margin: 0 auto;
    filter:
        invert(1) brightness(1.1)
        drop-shadow(0 0 24px rgba(74,216,255,0.45))
        drop-shadow(0 0 6px rgba(255,255,255,0.4));
    animation: mark-pulse 5s ease-in-out infinite;
}
@keyframes mark-pulse {
    0%, 100% { filter: invert(1) brightness(1.1) drop-shadow(0 0 24px rgba(74,216,255,0.45)) drop-shadow(0 0 6px rgba(255,255,255,0.4)); }
    50%      { filter: invert(1) brightness(1.18) drop-shadow(0 0 36px rgba(74,216,255,0.65)) drop-shadow(0 0 10px rgba(255,255,255,0.55)); }
}

.hero-tagline {
    margin: 2rem 0 1rem;
    font-family: var(--display);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    font-weight: 320;
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--cyan-bright);
    text-shadow: 0 0 24px rgba(74,216,255,0.3);
    letter-spacing: -0.018em;
    line-height: 1.18;
    text-wrap: balance;
}
.hero-sub {
    max-width: 640px; margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.65;
}

.hero-cta {
    display: flex; gap: 0.85rem; justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex; justify-content: center;
    gap: clamp(1.5rem, 6vw, 4rem);
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.hero-meta > div {
    display: flex; flex-direction: column; align-items: center;
}
.meta-num {
    font-family: var(--mono);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--cyan-bright);
    text-shadow: 0 0 20px rgba(74,216,255,0.3);
    line-height: 1;
}
.meta-num small { font-size: 0.6em; color: var(--cyan); margin-left: 1px; }
.meta-lbl {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-faint);
    margin-top: 0.5rem;
}

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    color: var(--text-faint);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    animation: bob 2.4s ease-in-out infinite;
}
.scroll-line {
    display: block; width: 1px; height: 36px;
    background: linear-gradient(180deg, transparent, var(--cyan));
}
@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ===========================================================
   3. SECTIONS — shared
   =========================================================== */
.section {
    position: relative;
    padding: clamp(80px, 12vw, 140px) var(--pad);
    overflow: hidden;
}
.section + .section {
    border-top: 1px solid var(--line);
}
.section-inner {
    max-width: var(--max-w); margin: 0 auto;
}

.section-head {
    margin-bottom: 4rem;
    max-width: 720px;
}
.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
}
.section-head h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.1rem, 4.3vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.028em;
    font-weight: 700;
    text-wrap: balance;
}
.lede {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 620px;
}

/* ---- ABOUT ---- */
.section-about { background: var(--bg-1); }
.about-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: border-color .25s, transform .25s, background .25s;
    backdrop-filter: blur(6px);
}
.about-card:hover {
    border-color: var(--line-strong);
    background: rgba(20, 30, 50, 0.6);
    transform: translateY(-4px);
}
.about-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(74,216,255,0.05);
    color: var(--cyan);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.about-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.about-card p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ---- BACKGROUND ---- */
.section-background {
    background: var(--bg-0);
    background-image:
        radial-gradient(ellipse 70% 50% at 80% 0%, rgba(74, 216, 255, 0.04), transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(74, 216, 255, 0.04), transparent 60%);
}

.bg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
@media (max-width: 880px) {
    .bg-grid { grid-template-columns: 1fr; }
}

/* ---- bio card ---- */
.bg-bio {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    backdrop-filter: blur(6px);
    transition: border-color .25s, background .25s;
}
.bg-bio:hover {
    border-color: var(--line-strong);
    background: rgba(20, 30, 50, 0.55);
}
.bg-bio-head {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}
.bg-bio-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.015em;
    color: #fff;
}
.bg-bio-role {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
}
.bg-bio p {
    margin: 0 0 0.95rem;
    color: var(--text-soft);
    line-height: 1.65;
}
.bg-bio p:last-of-type { margin-bottom: 1.5rem; }
.bg-bio strong {
    font-weight: 600;
    color: var(--cyan-bright);
}

.bg-creds {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.55rem;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}
.bg-creds li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    align-items: baseline;
    color: var(--text-soft);
    font-size: 0.92rem;
}
.bg-creds li > span:first-child {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---- timeline rail ---- */
.bg-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.6rem;
}
.bg-timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 1px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--line-strong) 8%,
        var(--line-strong) 92%,
        transparent 100%);
}
.bg-timeline li {
    position: relative;
    padding: 0.7rem 0 1rem 1rem;
    display: grid;
    gap: 0.2rem;
}
.bg-timeline li::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 1.25rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    transition: background .2s, box-shadow .2s, border-color .2s;
}
.bg-timeline li:hover::before {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(74, 216, 255, 0.65);
}
.bg-timeline li.now::before {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow:
        0 0 0 4px rgba(74, 216, 255, 0.18),
        0 0 14px rgba(74, 216, 255, 0.7);
    animation: pulse 2.4s ease-in-out infinite;
}
.bg-timeline .ts {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
}
.bg-timeline strong {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.005em;
    color: #fff;
}
.bg-timeline em {
    font-style: normal;
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* ---- SERVICES ---- */
.section-services { background: var(--bg-0); }
.svc-list { display: grid; gap: 0.5rem; }
.svc {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    transition: border-color .25s, background .25s;
    backdrop-filter: blur(4px);
}
.svc[open], .svc:hover {
    border-color: var(--line-strong);
    background: rgba(20, 30, 50, 0.55);
}
.svc summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after {
    content: "+";
    color: var(--cyan);
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform .25s;
    grid-column: -1;
}
.svc[open] summary::after { content: "−"; }
.svc-no {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}
.svc-name {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.svc-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}
.svc[open] ul {
    margin: 0; padding: 0 1.6rem 1.6rem 4.5rem;
    list-style: none;
    color: var(--text-soft);
    line-height: 1.85;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}
.svc[open] ul li::before {
    content: "→ ";
    color: var(--cyan);
    font-family: var(--mono);
    margin-right: 0.4rem;
}

@media (max-width: 600px) {
    .svc summary { grid-template-columns: auto 1fr auto; gap: 0.75rem; padding: 1.1rem 1.1rem; }
    .svc-tag     { display: none; }
    .svc[open] ul { padding-left: 1.6rem; }
}

/* ---- PROJECTS ---- */
.section-projects { background: var(--bg-1); }
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.proj {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s, transform .2s, box-shadow .25s;
}
.proj:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(74,216,255,0.2),
        0 0 32px rgba(74,216,255,0.12),
        0 16px 40px rgba(0, 0, 0, 0.5);
}
.proj-img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
    border-bottom: 1px solid var(--line);
    transition: filter .3s;
}
.proj:hover .proj-img { filter: brightness(1.06) saturate(1.05); }
.proj-video iframe {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #000;
    display: block;
}
.proj-body { padding: 1.4rem 1.5rem 1.5rem; }
.proj-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.proj-body p {
    margin: 0 0 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}
.proj-meta {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--cyan);
    background: rgba(74,216,255,0.06);
    border: 1px solid var(--line-strong);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- SOFTWARE ---- */
.section-software { background: var(--bg-0); }
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.dl {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color .25s, transform .2s, box-shadow .25s, background .25s;
    overflow: hidden;
}
.dl:hover {
    color: var(--text);
    border-color: var(--cyan);
    background: rgba(20, 40, 70, 0.65);
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(74,216,255,0.25),
        0 0 28px rgba(74,216,255,0.18),
        0 12px 32px rgba(0, 0, 0, 0.45);
}
.dl-tag {
    position: absolute; top: 1.25rem; right: 1.25rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--cyan);
    background: rgba(74,216,255,0.08);
    border: 1px solid var(--line-strong);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.06em;
}
.dl h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding-right: 4rem;
}
.dl p {
    margin: 0 0 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.92rem;
    flex: 1;
}
.dl-meta {
    display: flex; gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}
.dl-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--cyan-bright);
    font-weight: 600;
    font-size: 0.92rem;
}
.dl-foot .arrow {
    transition: transform .2s;
    display: inline-block;
}
.dl:hover .dl-foot .arrow { transform: translateY(2px); }
.dl-doc {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.82rem;
    border-left: 1px solid var(--line);
    padding-left: 1rem;
}
.dl-doc:hover { color: var(--cyan-bright); }

/* ---- GAMES ---- */
.section-games {
    background: var(--bg-1);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74, 216, 255, 0.06), transparent 60%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-1) 100%);
}

.game-feature {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    margin-bottom: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(6px);
    transition: border-color .25s, background .25s;
}
.game-feature:hover {
    border-color: var(--line-strong);
    background: rgba(20, 30, 50, 0.6);
}
@media (max-width: 880px) {
    .game-feature { grid-template-columns: 1fr; padding: 1.5rem; }
}

.game-meta { display: flex; flex-direction: column; gap: 1rem; }
.game-tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.game-pill {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(74, 216, 255, 0.08);
    border: 1px solid var(--line-strong);
}
.game-pill.alt {
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--line);
}
.game-meta h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.game-blurb { color: var(--text-soft); margin: 0; line-height: 1.65; }

.game-feats {
    list-style: none; padding: 0; margin: 0.5rem 0 0;
    display: grid; gap: 0.55rem;
}
.game-feats li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.game-feats li:last-child { border-bottom: none; padding-bottom: 0; }
.game-feats strong {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.game-feats span {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.5;
}

.game-cta {
    display: flex; gap: 0.85rem; flex-wrap: wrap;
    margin-top: 0.75rem;
}
.game-cta .ext {
    font-size: 0.85em;
    margin-left: 0.4em;
    transition: transform .15s;
    display: inline-block;
}
.game-cta a:hover .ext { transform: translate(2px, -2px); }

/* ---- "game-art" — synthetic capsule tile ---- */
.game-art {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(ellipse at 70% 25%, rgba(74, 216, 255, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 90%, rgba(10, 74, 125, 0.65) 0%, transparent 60%),
        linear-gradient(135deg, #04162a 0%, #0a1f3a 50%, #050608 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.game-art-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74, 216, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 216, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    transform: perspective(800px) rotateX(55deg) translateY(35%) scale(1.6);
    transform-origin: center bottom;
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
    opacity: 0.7;
}
.game-art-mark {
    position: relative; z-index: 1;
    display: grid; gap: 0.1em;
    text-align: center;
    color: rgba(255, 255, 255, 0.96);
    text-shadow:
        0 0 30px rgba(74, 216, 255, 0.55),
        0 0 8px  rgba(255, 255, 255, 0.3);
    padding: 0 1.5rem;
}
.game-art-mark .line-1,
.game-art-mark .line-2 {
    display: block;
    font-family: var(--mono);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 0.95;
}
.game-art-mark .line-1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
.game-art-mark .line-2 {
    font-size: clamp(2.4rem, 7vw, 4rem);
    background: linear-gradient(180deg, var(--cyan-soft) 0%, var(--cyan) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(74, 216, 255, 0.4));
}
.game-art-mark em {
    margin-top: 0.6em;
    font-style: normal;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
    text-transform: uppercase;
}
.game-art-corner {
    position: absolute;
    width: 22px; height: 22px;
    border: 1px solid var(--cyan);
    opacity: 0.6;
    z-index: 2;
}
.game-art-corner.tl { top: 12px;    left: 12px;    border-right: none; border-bottom: none; }
.game-art-corner.br { bottom: 12px; right: 12px;   border-left: none;  border-top: none;    }

/* ---- secondary product card ("Also shipped") ---- */
.product-also {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.75rem;
    align-items: center;
    margin: 0 0 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    transition: border-color .25s, background .25s, transform .2s;
}
.product-also:hover {
    border-color: var(--line-strong);
    background: rgba(20, 30, 50, 0.6);
    transform: translateY(-2px);
}
@media (max-width: 640px) {
    .product-also { grid-template-columns: 1fr; }
    .product-also-mark { aspect-ratio: 3 / 1; }
}
.product-also-mark {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(ellipse at 70% 25%, rgba(74, 216, 255, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #04162a 0%, #0a1f3a 50%, #050608 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-also-mark::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74, 216, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 216, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.product-also-mark span {
    position: relative;
    font-family: var(--mono);
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 24px rgba(74, 216, 255, 0.5);
}
.product-also-body { display: flex; flex-direction: column; gap: 0.75rem; }
.product-also-body h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.product-also-body p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ---- video clips row ---- */
.game-clips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 720px) {
    .game-clips { grid-template-columns: 1fr; }
}
.game-clip {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s, transform .2s, box-shadow .25s;
}
.game-clip:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(74, 216, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.game-clip iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
    display: block;
    border-bottom: 1px solid var(--line);
}
.game-clip p {
    margin: 0;
    padding: 0.85rem 1.1rem;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

/* ---- AI ---- */
.section-ai {
    background: var(--bg-0);
    /* faint scanline + diagonal accent for visual differentiation */
    background-image:
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(74, 216, 255, 0.025) 0,
            rgba(74, 216, 255, 0.025) 1px,
            transparent 1px,
            transparent 14px);
    background-blend-mode: normal, screen;
}
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 980px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2rem 2rem 2.25rem;
    transition: border-color .25s, transform .25s, background .25s;
    backdrop-filter: blur(6px);
    overflow: hidden;
}
/* signal stripe down the left edge */
.ai-card::before {
    content: "";
    position: absolute;
    left: 0; top: 1.25rem; bottom: 1.25rem;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    box-shadow: 0 0 12px rgba(74, 216, 255, 0.35);
}
.ai-card:hover {
    border-color: var(--line-strong);
    background: rgba(20, 30, 50, 0.6);
    transform: translateY(-3px);
}
.ai-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(74, 216, 255, 0.08);
    border: 1px solid var(--line-strong);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.ai-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.ai-card p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ---- CONTACT ---- */
.section-contact { background: var(--bg-1); }
.contact-cta {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}
.contact-cta .section-tag { margin-bottom: 0; }
.contact-headline {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 350;
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}
.contact-cta .lede {
    margin: 0 auto;
    max-width: 560px;
    color: var(--text-soft);
}
.contact-mail {
    margin-top: 0.5rem;
    font-family: var(--mono);
    letter-spacing: 0.04em;
    padding: 1.05rem 1.8rem;
    font-size: 1.05rem;
    gap: 0.6rem;
}
.contact-mail .ext { font-size: 0.85em; transition: transform .15s; }
.contact-mail:hover .ext { transform: translate(2px, -2px); }
.contact-list {
    list-style: none; padding: 0; margin: 2rem 0 0;
    display: grid; gap: 0.7rem;
    width: 100%;
    max-width: 520px;
    text-align: left;
}
.contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem; align-items: baseline;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list li > span {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.contact-form {
    display: grid; gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(6px);
}
.contact-form label {
    display: grid; gap: 0.4rem;
}
.contact-form label > span {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.contact-form input,
.contact-form textarea {
    background: rgba(6, 10, 24, 0.55);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    transition: border-color .15s, background .15s, box-shadow .15s;
    caret-color: var(--cyan);
    width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(8, 16, 38, 0.8);
    box-shadow: 0 0 0 4px rgba(74,216,255,0.14);
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.honey { position: absolute !important; left: -9999px !important; }
.contact-actions {
    display: flex; align-items: center; gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.contact-status {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
}
.contact-status.ok    { color: var(--cyan-bright); }
.contact-status.err   { color: #ff7a90; }
.contact-status.busy::after {
    content: "";
    display: inline-block;
    width: 12px; height: 12px;
    margin-left: 0.5rem;
    border: 2px solid var(--cyan);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================================================
   4. BUTTONS
   =========================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, color .2s, filter .2s;
}
.btn-primary {
    background: linear-gradient(180deg, var(--cyan-soft), var(--cyan));
    color: #04162a;
    border-color: var(--cyan);
    box-shadow:
        0 0 0 1px rgba(74,216,255,0.4),
        0 0 24px rgba(74,216,255,0.28),
        inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
    color: #04162a;
    filter: brightness(1.08);
    box-shadow:
        0 0 0 1px rgba(74,216,255,0.7),
        0 0 36px rgba(74,216,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    background: rgba(74,216,255,0.05);
    border-color: var(--cyan);
    color: var(--cyan-bright);
}

/* ===========================================================
   5. FOOTER
   =========================================================== */
.foot {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 4rem var(--pad) 2rem;
}
.foot-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}
@media (max-width: 760px) {
    .foot-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .foot-brand { grid-column: 1 / -1; }
}
.foot-brand img {
    height: 32px; width: auto;
    filter: invert(1) brightness(1.05) drop-shadow(0 0 8px rgba(74,216,255,0.35));
    margin-bottom: 1rem;
}
.foot-brand p { color: var(--text-dim); margin: 0; max-width: 320px; line-height: 1.6; }
.foot-nav { display: grid; align-content: start; gap: 0.5rem; }
.foot-nav h4,
.foot-meta h4 {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
    font-weight: 600;
}
.foot-nav a {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
}
.foot-nav a:hover { color: var(--cyan-bright); }
.foot-meta p { margin: 0.25rem 0; color: var(--text-dim); font-size: 0.92rem; }
.foot-meta .dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    margin-right: 0.4rem; vertical-align: middle;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 1.8s ease-in-out infinite;
}
.foot-meta .dot.ok { background: #00ff9c; box-shadow: 0 0 10px #00ff9c; }
.foot-meta .copy {
    margin-top: 1.5rem !important;
    font-family: var(--mono); font-size: 0.78rem;
    color: var(--text-faint);
}

/* ===========================================================
   5b. PRODUCTS — sticky-pin Apple-style showcase
   =========================================================== */
.section-products {
    background: var(--bg-1);
    /* override the auto top border so the showcase pin can read like a single beat */
    padding-bottom: 0;
}
.section-products .products-intro { margin-bottom: clamp(2rem, 5vw, 4rem); }

.showcase {
    position: relative;
    background: #000;
    /* the dark stage breaks out of the normal section padding for full bleed */
    margin: 0 calc(var(--pad) * -1);
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* track height — each stop ~ 32vh of scroll. Total height ≈ 2 viewports. */
.showcase-track {
    position: relative;
    height: calc(var(--showcase-stops, 4) * 32vh + 78vh);
}

/* sticky stage pinned within the track. height < 100vh removes the
   "black tail" the user was scrolling through after the last scene. */
.showcase-stage {
    position: sticky;
    top: 0;
    height: 78vh;
    min-height: 520px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

/* ---- art layer ---- */
.stage-art {
    position: absolute; inset: 0;
    overflow: hidden;
}
.stage-slide {
    position: absolute; inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .55s var(--easing), transform 4s var(--easing);
    will-change: opacity, transform;
}
.stage-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.slide-image {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ken-Burns-style slow drift */
    animation: kenburns 22s ease-in-out infinite alternate;
}
.stage-slide.is-active .slide-image { animation-play-state: running; }
@keyframes kenburns {
    0%   { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}
.slide-vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.92) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.85) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.0) 60%);
}

/* iOS device mockup (slide 4) */
.stage-slide-mobile { display: flex; align-items: center; justify-content: flex-end; }
.slide-mobile-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.1) brightness(0.55);
    transform: scale(1.15);
}
.device {
    position: relative;
    margin-right: clamp(1rem, 8vw, 8rem);
    width: clamp(180px, 22vw, 300px);
    aspect-ratio: 9 / 19.5;
    z-index: 2;
    transform: rotate(-3deg) translateY(0);
    animation: device-bob 7s ease-in-out infinite;
}
@keyframes device-bob {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(-3deg) translateY(-12px); }
}
.device-frame {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 14% / 6.5%;
    background: linear-gradient(135deg, #1c1f24 0%, #050608 50%, #1c1f24 100%);
    padding: 4%;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.04),
        0 0 0 6px rgba(0,0,0,0.55),
        0 60px 120px -30px rgba(0,0,0,0.9),
        0 0 80px rgba(74,216,255,0.25);
    overflow: hidden;
}
.device-notch {
    position: absolute;
    top: 4%; left: 50%;
    transform: translateX(-50%);
    width: 32%; height: 2.4%;
    background: #050608;
    border-radius: 999px;
    z-index: 2;
}
.device-screen {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 11.5% / 5%;
    display: block;
    background: #000;
}
.device-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse at center, rgba(74,216,255,0.35) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
}
@media (max-width: 760px) {
    .device { display: none; }
    .stage-slide-mobile .slide-mobile-bg { filter: brightness(0.45); transform: scale(1.05); }
}

/* progress dots */
.stage-dots {
    position: absolute;
    left: clamp(1.25rem, 4vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    margin: 0; padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
    z-index: 4;
}
.stage-dots li {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background .35s, transform .35s, box-shadow .35s;
}
.stage-dots li.is-active {
    background: var(--cyan);
    transform: scale(1.4);
    box-shadow: 0 0 14px rgba(74,216,255,0.7);
}

/* meta tags top-right */
.stage-meta {
    position: absolute;
    top: clamp(1.25rem, 4vw, 2rem);
    right: clamp(1.25rem, 4vw, 3rem);
    display: flex; gap: 1.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    z-index: 4;
}
.stage-meta em { font-style: normal; color: var(--cyan); }

/* ---- copy layer ---- */
.stage-copy {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(1rem, 3vh, 2.4rem);
    align-content: space-between;
    padding: clamp(5rem, 9vh, 7rem) clamp(1.5rem, 6vw, 5rem) clamp(2rem, 5vh, 3.5rem);
    max-width: 100%;
}
.stage-eyebrow {
    display: flex; align-items: center; gap: 1rem;
    color: #fff;
}
.stage-icon {
    width: 56px; height: 56px;
    border-radius: 13px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15),
        0 14px 30px rgba(0,0,0,0.6),
        0 0 24px rgba(74,216,255,0.25);
}
.stage-pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(74,216,255,0.08);
    border: 1px solid var(--line-strong);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.4rem;
}
.stage-eyebrow h3 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.stage-panels {
    position: relative;
    max-width: 700px;
    width: 100%;
    align-self: end;
    min-height: 320px;
}
.stage-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .45s var(--easing), transform .45s var(--easing);
}
.stage-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: .08s;
}
.panel-kicker {
    margin: 0 0 1.25rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
}
.panel-display {
    margin: 0 0 1.25rem;
    /* match the AI section h2 — same sans family, weight, tracking */
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(2.1rem, 4.3vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.028em;
    color: #fff;
    text-wrap: balance;
}
.panel-display span {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-style: normal;
    color: var(--cyan-bright);
    background: linear-gradient(180deg, var(--cyan-bright), var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 24px rgba(74,216,255,0.25));
}
.panel-body {
    margin: 0;
    max-width: 540px;
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* CTA store buttons */
.stage-cta {
    display: flex; gap: 0.85rem;
    flex-wrap: wrap;
}
.store-btn {
    display: inline-flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background .2s, border-color .2s, transform .12s, box-shadow .2s;
}
.store-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--cyan);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,216,255,0.25);
}
.store-btn:active { transform: translateY(0); }
.store-mark {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
}
.store-mark svg { width: 100%; height: 100%; }
.store-text {
    display: grid; line-height: 1;
    text-align: left;
}
.store-text em {
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.store-text strong {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* mobile copy/art collapse */
@media (max-width: 880px) {
    .stage-copy {
        padding: clamp(4.5rem, 8vh, 6rem) 1.25rem clamp(1.5rem, 5vh, 2.5rem);
        background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 35%, rgba(0,0,0,0.85) 100%);
    }
    .panel-display { font-size: clamp(2rem, 8vw, 3rem); }
    .stage-panels { min-height: 260px; }
    .stage-dots { left: 1rem; }
    .stage-meta { right: 1rem; gap: 0.85rem; }
}

/* --- feature strip --- */
.section-products .strip {
    display: grid;
    grid-template-columns: 1.05fr 1.4fr 1.05fr;
    gap: 1rem;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (max-width: 880px) {
    .section-products .strip { grid-template-columns: 1fr; }
}
.strip-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s, transform .2s, box-shadow .25s;
}
.strip-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(74,216,255,0.18),
        0 24px 50px rgba(0,0,0,0.55);
}
.strip-img {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
}
.strip-video iframe {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    background: #000;
    display: block;
}
.strip-cap {
    padding: 1rem 1.25rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,0.25);
}
.strip-cap span {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.18em;
    margin-right: 0.6rem;
}

/* --- product dividers ("01 / Power Boat" etc) --- */
.product-divider {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(0.85rem, 2vw, 1.25rem);
    margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--line);
    color: var(--text);
}
.product-divider .divider-no {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.18em;
    background: rgba(74,216,255,0.06);
    border: 1px solid var(--line-strong);
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
}
.product-divider .divider-name {
    font-family: var(--display);
    font-style: italic;
    font-weight: 380;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
    color: #fff;
    margin-right: auto;
}
.product-divider .divider-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* strip eyebrow ties the still/clip/still row visually to the boat */
.game-strip-wrap {
    margin-top: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(3rem, 7vw, 5rem);
}
.strip-eyebrow {
    margin: 0 0 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ===========================================================
   5d. SHOPINTEGRATOR — device cluster showcase
   =========================================================== */
.shop-feature {
    margin-top: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 80% at 80% 30%, rgba(48, 110, 220, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 80% at 10% 90%, rgba(74, 216, 255, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}

/* Power Boat block — slightly warmer / oceanic tint */
.shop-feature.game-feature-block {
    background:
        radial-gradient(ellipse 70% 80% at 75% 20%, rgba(255, 140, 50, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 15% 85%, rgba(74, 216, 255, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #08111c 0%, #050b14 100%);
}
.shop-feature::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74,216,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,216,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 60%, #000 30%, transparent 80%);
    pointer-events: none;
}

.shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    min-height: clamp(540px, 70vh, 720px);
}
@media (max-width: 980px) {
    .shop-grid { grid-template-columns: 1fr; min-height: 0; }
}

/* ---- copy column ---- */
.shop-copy { display: grid; gap: 1.25rem; }
.shop-eyebrow {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 0.25rem;
}
.shop-icon {
    width: 60px; height: 60px;
    border-radius: 22.37%;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 12px 28px rgba(0,0,0,0.5),
        0 0 24px rgba(74,216,255,0.18);
}
.shop-eyebrow h3 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}
.panel-display-shop {
    margin: 0.4rem 0 0.5rem;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
.panel-body-shop {
    color: var(--text-soft);
    max-width: 480px;
}
.panel-body-shop code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--cyan-bright);
    background: rgba(74,216,255,0.08);
    border: 1px solid var(--line);
    padding: 0.05em 0.4em;
    border-radius: 4px;
}
.shop-feats {
    list-style: none; padding: 0; margin: 0.85rem 0 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
    max-width: 540px;
}
.shop-feats li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.85rem;
    align-items: baseline;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--line);
}
.shop-feats strong {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}
.shop-feats span {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.45;
}
@media (max-width: 540px) {
    .shop-feats { grid-template-columns: 1fr; }
}
.shop-cta {
    display: flex; gap: 0.85rem; flex-wrap: wrap;
    margin-top: 1rem;
}

/* ---- art column / device cluster ---- */
.shop-art {
    position: relative;
    aspect-ratio: 5 / 4;
    min-height: 480px;
}
@media (max-width: 980px) { .shop-art { aspect-ratio: 6 / 5; min-height: 380px; } }

.shop-glow {
    position: absolute;
    left: 25%; top: 20%;
    width: 60%; height: 70%;
    background: radial-gradient(ellipse, rgba(74,216,255,0.35) 0%, rgba(74,216,255,0.0) 70%);
    filter: blur(40px);
    z-index: 0;
    animation: glow-breathe 7s ease-in-out infinite;
}

.shop-device {
    position: absolute;
    z-index: 2;
    transition: transform .4s var(--easing);
}
.shop-device-frame {
    position: relative;
    background: linear-gradient(135deg, #1c1f24 0%, #050608 50%, #1c1f24 100%);
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.05),
        0 0 0 5px rgba(0,0,0,0.6),
        0 50px 90px -20px rgba(0,0,0,0.85),
        0 0 60px rgba(74,216,255,0.18);
    overflow: hidden;
}
.shop-device-screen {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: #000;
}
.shop-device-notch {
    position: absolute;
    top: 4%; left: 50%;
    transform: translateX(-50%);
    width: 30%; height: 2.4%;
    background: #050608;
    border-radius: 999px;
    z-index: 2;
}

/* iPad — back-left, slightly larger */
.shop-device-ipad {
    left: 0; top: 8%;
    width: 60%;
    aspect-ratio: 1640 / 2360;
    transform: rotate(-4deg) translateY(0);
    z-index: 1;
    animation: shop-ipad-bob 9s ease-in-out infinite;
}
.shop-device-ipad .shop-device-frame {
    width: 100%; height: 100%;
    border-radius: 5.5% / 4%;
    padding: 2.4%;
}
.shop-device-ipad .shop-device-screen {
    border-radius: 4% / 3%;
}
@keyframes shop-ipad-bob {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50%      { transform: rotate(-4deg) translateY(-10px); }
}

/* iPhone — front-right, dominant */
.shop-device-phone {
    right: 4%; bottom: 4%;
    width: 36%;
    aspect-ratio: 9 / 19.5;
    transform: rotate(5deg);
    z-index: 3;
    animation: shop-phone-bob 7s ease-in-out infinite 0.5s;
}
.shop-device-phone .shop-device-frame {
    width: 100%; height: 100%;
    border-radius: 14% / 6.5%;
    padding: 4%;
}
.shop-device-phone .shop-device-screen {
    border-radius: 11.5% / 5%;
}
@keyframes shop-phone-bob {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50%      { transform: rotate(5deg) translateY(-12px); }
}

/* iPhone — alt, smaller, behind ipad-corner */
.shop-device-phone-alt {
    left: 38%; bottom: -2%;
    width: 22%;
    aspect-ratio: 9 / 19.5;
    transform: rotate(-9deg);
    z-index: 2;
    opacity: 0.92;
    animation: shop-phone-alt-bob 8s ease-in-out infinite 1s;
}
.shop-device-phone-alt .shop-device-frame {
    width: 100%; height: 100%;
    border-radius: 14% / 6.5%;
    padding: 4%;
}
.shop-device-phone-alt .shop-device-screen {
    border-radius: 11.5% / 5%;
}
@keyframes shop-phone-alt-bob {
    0%, 100% { transform: rotate(-9deg) translateY(0); }
    50%      { transform: rotate(-9deg) translateY(-8px); }
}

/* hover lift */
.shop-art:hover .shop-device-phone     { transform: rotate(5deg)  translateY(-14px); }
.shop-art:hover .shop-device-ipad      { transform: rotate(-4deg) translateY(-6px); }
.shop-art:hover .shop-device-phone-alt { transform: rotate(-9deg) translateY(-6px); }

/* floating scan badge */
.shop-badge {
    position: absolute;
    left: 6%; top: 4%;
    z-index: 5;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.85rem 0.5rem 0.65rem;
    background: rgba(8,16,38,0.72);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--cyan-bright);
    backdrop-filter: blur(10px);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 24px rgba(74,216,255,0.18);
    animation: badge-bob 4.5s ease-in-out infinite;
}
.shop-badge svg { width: 18px; height: 18px; }
@keyframes badge-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* mobile: stack devices vertically with simpler layout */
@media (max-width: 640px) {
    .shop-art { aspect-ratio: auto; min-height: 0; }
    .shop-device-ipad      { position: relative; left: auto; top: auto; width: 88%; margin: 0 auto 1rem; transform: rotate(-2deg); }
    .shop-device-phone     { position: relative; right: auto; bottom: auto; width: 60%; margin: -8% auto 0; transform: rotate(3deg); }
    .shop-device-phone-alt { display: none; }
    .shop-badge { position: relative; left: auto; top: auto; margin: 0 auto 1rem; display: inline-flex; }
}

/* ===========================================================
   5e. POWER BOAT — game art layer (parallel to .shop-art)
   =========================================================== */
.game-glow {
    background: radial-gradient(ellipse, rgba(255,170,80,0.22) 0%, rgba(74,216,255,0.18) 50%, transparent 80%);
}

/* big "monitor" — back layer, tilted, showing Steam screenshot */
.game-screen {
    position: absolute;
    top: 6%;
    left: 0;
    width: 78%;
    aspect-ratio: 16 / 9;
    transform: rotate(-3deg);
    z-index: 1;
    animation: shop-ipad-bob 9s ease-in-out infinite;
    transition: transform .4s var(--easing);
}
.game-screen-frame {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #1c1f24 0%, #050608 50%, #1c1f24 100%);
    padding: 4px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 0 0 4px rgba(0,0,0,0.6),
        0 50px 90px -20px rgba(0,0,0,0.85),
        0 0 60px rgba(74,216,255,0.18),
        0 0 80px rgba(255,150,60,0.12);
}
.game-screen-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.game-screen-shine {
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255,255,255,0.16) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.06) 100%);
    mix-blend-mode: screen;
}

/* iPhone in front, lower-right */
.game-phone {
    right: 0%;
    bottom: 0%;
    width: 32%;
    z-index: 3;
}

/* badge — top-right "VR · 90 Hz" */
.game-badge {
    left: auto;
    right: 6%;
    top: 4%;
    color: var(--cyan-bright);
}

/* hover lift — game block */
.shop-art:hover .game-screen { transform: rotate(-3deg) translateY(-8px); }

@media (max-width: 980px) {
    .game-screen { width: 88%; }
    .game-phone  { width: 36%; right: 2%; }
}
@media (max-width: 640px) {
    .game-screen {
        position: relative;
        width: 100%;
        margin-bottom: 1rem;
        transform: rotate(-1deg);
    }
    .game-phone {
        position: relative;
        right: auto; bottom: auto;
        width: 60%;
        margin: -10% auto 0;
        transform: rotate(3deg);
    }
    .game-badge { position: relative; left: auto; right: auto; top: auto; margin: 0 auto 1rem; display: inline-flex; }
}

/* (legacy) shopintegrator card overrides — kept for backward compat if used elsewhere */
.product-also { margin-top: clamp(2rem, 5vw, 3rem); margin-bottom: clamp(2rem, 5vw, 4rem); }
.product-also-mark {
    aspect-ratio: 1 / 1;
    width: 160px;
    border-radius: 22.37%;          /* iOS continuous corner approximation */
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 24px 60px rgba(0,0,0,0.55),
        0 0 50px rgba(74,216,255,0.15);
    padding: 0;
    display: block;
    position: relative;
}
.product-also-mark::before { display: none; }
.product-also-mark img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.product-also-body code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--cyan-bright);
    background: rgba(74,216,255,0.08);
    border: 1px solid var(--line);
    padding: 0.05em 0.4em;
    border-radius: 4px;
}

/* ===========================================================
   5c. SCROLL PROGRESS / GRAIN OVERLAYS
   =========================================================== */
.scroll-progress {
    position: fixed;
    top: 64px; left: 0; right: 0;
    height: 2px;
    z-index: 99;
    pointer-events: none;
    background: rgba(74,216,255,0.05);
}
#scrollbar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-soft), var(--cyan));
    box-shadow: 0 0 12px rgba(74,216,255,0.6);
    transition: width .08s linear;
}

.grain {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

/* ===========================================================
   6. SCROLL REVEAL
   =========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--easing), transform .7s var(--easing);
    transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-grid, .hero-glow, .hero-mark, .hero-eyebrow .dot, .hero-scroll, .foot-meta .dot {
        animation: none !important;
    }
}
