/*
Theme Name: IHTESHAM Cinematic Portfolio
Author: IHTESHAM
Description: A custom cinematic WordPress portfolio theme built without a page builder. Designed for continuous GSAP/ScrollTrigger-driven storytelling with Three.js and CSS 3D scenes.
Version: 0.5.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ihtesham
*/

/* ==========================================================
   01. GLOBAL TOKENS
   ========================================================== */
:root {
    --color-bg: #03040a;
    --color-bg-soft: #070915;
    --color-panel: rgba(8, 10, 24, 0.72);
    --color-panel-strong: rgba(8, 10, 24, 0.9);
    --color-text: #f4f7ff;
    --color-muted: #9ba6c3;
    --color-purple: #9a4dff;
    --color-violet: #6b5cff;
    --color-blue: #246bff;
    --color-cyan: #20d9ff;
    --color-line: rgba(134, 110, 255, 0.22);
    --color-border: rgba(120, 132, 255, 0.16);

    --gradient-brand: linear-gradient(115deg, var(--color-purple), var(--color-blue) 55%, var(--color-cyan));
    --gradient-ambient: radial-gradient(circle at 50% 50%, rgba(105, 72, 255, 0.22), transparent 42%);

    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Arial Narrow", "Roboto Condensed", var(--font-sans);

    --container: min(92vw, 92rem);
    --header-height: clamp(4.5rem, 6vw, 6.25rem);
    --timeline-width: clamp(10rem, 14vw, 14.5rem);
    --page-gutter: clamp(1rem, 3vw, 3rem);
    --radius-sm: 0.65rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    --shadow-glow: 0 0 2rem rgba(95, 75, 255, 0.18);
    --shadow-cyan: 0 0 2.5rem rgba(32, 217, 255, 0.12);

    --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 180ms var(--ease-ui);
    --transition-base: 320ms var(--ease-ui);

    /* One continuous 10-frame scroll runway. Frames 01–05 share the same master scene. */
    --cinematic-scroll-height: 1000vh;
    --scroll-progress: 0;
    --frame-progress: 0;
}

/* ==========================================================
   02. RESET / BASE
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    background: var(--color-bg);
}

body {
    margin: 0;
    min-width: 20rem;
    overflow-x: clip;
    background:
        radial-gradient(circle at 20% 10%, rgba(89, 48, 255, 0.08), transparent 32rem),
        radial-gradient(circle at 85% 24%, rgba(0, 145, 255, 0.07), transparent 34rem),
        var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 0.9vw, 1.05rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Shared fixed-header offset used by the cinematic stage. JavaScript
   replaces the fallback with the measured header bottom during ScrollTrigger
   setup/refresh, including the WordPress admin bar when present. */
body {
    --iht-admin-bar-height: 0px;
    --iht-stage-top-offset: var(--iht-stage-top-offset-js, calc(var(--header-height) + var(--iht-admin-bar-height)));
}

body.admin-bar {
    --iht-admin-bar-height: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --iht-admin-bar-height: 46px;
    }
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

img,
svg,
canvas,
video {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(154, 77, 255, 0.38);
    color: #fff;
}

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

.screen-reader-text:focus {
    position: fixed;
    z-index: 100000;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    clip: auto;
    background: #fff;
    color: #000;
    border-radius: 0.5rem;
}

/* ==========================================================
   03. HEADER / NAVIGATION
   ========================================================== */
.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-height);
    background: linear-gradient(to bottom, rgba(3, 4, 10, 0.92), rgba(3, 4, 10, 0.35), transparent);
    pointer-events: none;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    width: var(--container);
    height: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) auto minmax(9rem, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2.5rem);
    pointer-events: auto;
}

.site-branding {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    min-width: 0;
}

.site-branding__mark {
    width: 0.18rem;
    height: 1.1rem;
    border-radius: 999px;
    background: var(--gradient-brand);
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.35);
    flex: 0 0 auto;
}

.site-branding__name {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1;
    white-space: nowrap;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    width: auto;
    max-height: clamp(1.75rem, 3vw, 2.5rem);
}

.primary-nav {
    justify-self: center;
}

.primary-nav .menu,
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.05rem, 2.1vw, 2.4rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: rgba(244, 247, 255, 0.8);
    font-size: clamp(0.72rem, 0.8vw, 0.86rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.45rem;
    height: 1px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--gradient-brand);
    transition: transform var(--transition-base);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a {
    color: #fff;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav .current-menu-item > a::after {
    transform: scaleX(1);
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding-inline: clamp(1rem, 1.5vw, 1.4rem);
    border: 1px solid transparent;
    border-radius: 0.55rem;
    background:
        linear-gradient(var(--color-bg-soft), var(--color-bg-soft)) padding-box,
        var(--gradient-brand) border-box;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 2.5rem rgba(77, 108, 255, 0.22);
}

.header-cta__icon {
    color: var(--color-cyan);
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 0.65rem;
    background: rgba(8, 10, 24, 0.7);
    color: #fff;
    cursor: pointer;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
    display: block;
    width: 1.15rem;
    height: 1px;
    margin-inline: auto;
    background: currentColor;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle__lines {
    position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__lines::before { transform: translateY(-0.35rem); }
.nav-toggle__lines::after { transform: translateY(0.35rem); }

.nav-open .nav-toggle__lines { background: transparent; }
.nav-open .nav-toggle__lines::before { transform: rotate(45deg); }
.nav-open .nav-toggle__lines::after { transform: rotate(-45deg); }


/* ==========================================================
   04. PREMIUM HERO INTRO
   ========================================================== */
.iht-hero {
    position: relative;
    z-index: 2;
    isolation: isolate;
    min-height: 0;
    overflow: clip;
    display: grid;
    align-items: center;
    padding: calc(var(--header-height) + clamp(2rem, 4vh, 3.5rem)) var(--page-gutter) clamp(3.25rem, 5vh, 4.25rem);
    background:
        radial-gradient(circle at 76% 42%, rgba(36, 107, 255, 0.11), transparent 29rem),
        radial-gradient(circle at 33% 34%, rgba(154, 77, 255, 0.08), transparent 28rem),
        linear-gradient(180deg, #03040a 0%, #040511 58%, #03040a 100%);
}

.iht-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        linear-gradient(rgba(77, 92, 171, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 92, 171, 0.045) 1px, transparent 1px);
    background-size: clamp(3rem, 5vw, 5.5rem) clamp(3rem, 5vw, 5.5rem);
    mask-image: linear-gradient(to bottom, transparent 4%, #000 34%, #000 82%, transparent 100%);
    opacity: 0.7;
}

.iht-hero::after {
    content: "";
    position: absolute;
    z-index: -3;
    left: 50%;
    bottom: -14rem;
    width: min(94vw, 88rem);
    height: 28rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(86, 71, 255, 0.15), transparent 52%),
        radial-gradient(ellipse at 68% 50%, rgba(32, 217, 255, 0.07), transparent 38%);
    filter: blur(0.25rem);
    pointer-events: none;
}

.iht-hero__ambient {
    position: absolute;
    z-index: -2;
    width: clamp(18rem, 36vw, 39rem);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(clamp(4rem, 8vw, 8rem));
    opacity: 0.15;
    pointer-events: none;
}

.iht-hero__ambient--purple {
    left: -9%;
    top: 24%;
    background: #7d3cff;
}

.iht-hero__ambient--cyan {
    right: -8%;
    top: 18%;
    background: #006dff;
    opacity: 0.12;
}

.iht-hero__grid {
    position: absolute;
    z-index: -1;
    right: -7%;
    bottom: -18%;
    width: min(65vw, 67rem);
    height: min(54vw, 44rem);
    transform: perspective(850px) rotateX(68deg) rotateZ(-3deg);
    transform-origin: 50% 80%;
    background-image:
        linear-gradient(rgba(73, 93, 181, 0.085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 93, 181, 0.085) 1px, transparent 1px);
    background-size: clamp(2.3rem, 4vw, 4rem) clamp(2.3rem, 4vw, 4rem);
    mask-image: radial-gradient(ellipse at center, #000 15%, rgba(0,0,0,0.75) 48%, transparent 76%);
    opacity: 0.58;
    pointer-events: none;
}

.iht-hero__inner {
    width: min(92vw, 92rem);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(28rem, 1.08fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 7rem);
}

.iht-hero__content {
    position: relative;
    z-index: 3;
    max-width: 44rem;
}

.iht-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
    color: rgba(195, 216, 255, 0.76);
    font-size: clamp(0.58rem, 0.68vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.iht-hero__eyebrow-dot {
    width: 0.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow:
        0 0 0 0.25rem rgba(32, 217, 255, 0.08),
        0 0 1.1rem rgba(32, 217, 255, 0.72);
    flex: 0 0 auto;
}

.iht-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.15rem, 6.4vw, 7.2rem);
    font-weight: 800;
    line-height: 0.87;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.iht-hero__title span,
.iht-hero__title strong {
    display: block;
}

.iht-hero__title span {
    color: #f5f7ff;
    text-shadow: 0 0 2.8rem rgba(255,255,255,0.035);
}

.iht-hero__title strong {
    margin-top: 0.08em;
    font-weight: inherit;
    letter-spacing: 0.005em;
    background: linear-gradient(105deg, #f4a9ff 0%, #a16dff 26%, #4a7cff 58%, #59dfff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 1.7rem rgba(91, 80, 255, 0.18));
}

.iht-hero__lead {
    max-width: 40rem;
    margin: clamp(1.6rem, 2.7vw, 2.2rem) 0 0;
    color: rgba(205, 215, 239, 0.75);
    font-size: clamp(0.96rem, 1.15vw, 1.18rem);
    line-height: 1.75;
}

.iht-hero__capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: clamp(1.2rem, 2vw, 1.65rem);
}

.iht-hero__capabilities span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(116, 130, 216, 0.16);
    border-radius: 999px;
    background: rgba(8, 11, 26, 0.58);
    color: rgba(205, 217, 247, 0.68);
    font-size: clamp(0.56rem, 0.63vw, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.065em;
    white-space: nowrap;
}

.iht-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: clamp(1.65rem, 3vw, 2.4rem);
}

.iht-hero__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-width: clamp(10.5rem, 13vw, 12.5rem);
    min-height: clamp(3.05rem, 4.2vw, 3.6rem);
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    font-size: clamp(0.68rem, 0.76vw, 0.8rem);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    overflow: hidden;
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base),
        background-color var(--transition-base);
}

.iht-hero__button::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(115deg, rgba(255,255,255,0.06), transparent 45%, rgba(32,217,255,0.06));
    transition: opacity var(--transition-base);
}

.iht-hero__button:hover,
.iht-hero__button:focus-visible {
    transform: translateY(-2px);
}

.iht-hero__button:hover::before,
.iht-hero__button:focus-visible::before {
    opacity: 1;
}

.iht-hero__button--primary {
    border-color: rgba(157, 104, 255, 0.5);
    background:
        linear-gradient(110deg, rgba(126, 60, 255, 0.96), rgba(46, 93, 255, 0.98) 58%, rgba(21, 175, 239, 0.94));
    color: #fff;
    box-shadow:
        0 0.85rem 2.6rem rgba(66, 72, 255, 0.19),
        0 0 2rem rgba(154, 77, 255, 0.09);
}

.iht-hero__button--primary:hover,
.iht-hero__button--primary:focus-visible {
    box-shadow:
        0 1rem 3rem rgba(66, 72, 255, 0.26),
        0 0 2.6rem rgba(32, 217, 255, 0.11);
}

.iht-hero__button--secondary {
    border-color: rgba(92, 112, 218, 0.3);
    background:
        linear-gradient(#070914, #070914) padding-box,
        var(--gradient-brand) border-box;
    color: #f3f6ff;
    box-shadow: inset 0 1px rgba(255,255,255,0.035);
}

.iht-hero__button--secondary:hover,
.iht-hero__button--secondary:focus-visible {
    box-shadow: 0 0 2.5rem rgba(68, 92, 255, 0.14);
}

.iht-hero__button-icon {
    position: relative;
    z-index: 1;
    color: #8feaff;
    font-size: 1rem;
    line-height: 1;
}

.iht-hero__button span:first-child {
    position: relative;
    z-index: 1;
}

.iht-hero__note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.15rem 0 0;
    color: rgba(166, 180, 216, 0.52);
    font-size: clamp(0.58rem, 0.68vw, 0.7rem);
    letter-spacing: 0.04em;
}

.iht-hero__note > span {
    width: 1.5rem;
    height: 1px;
    background: linear-gradient(to right, var(--color-purple), var(--color-cyan));
    box-shadow: 0 0 0.7rem rgba(32,217,255,0.24);
}

.iht-hero__visual {
    position: relative;
    z-index: 2;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1.05 / 0.82;
    display: grid;
    place-items: center;
    perspective: clamp(800px, 78vw, 1450px);
    transform-style: preserve-3d;
}

.iht-hero__visual::before {
    content: "";
    position: absolute;
    z-index: -3;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 76, 255, 0.18), rgba(29, 107, 255, 0.08) 42%, transparent 69%);
    filter: blur(1rem);
}

.iht-hero__visual-orbit {
    position: absolute;
    z-index: -1;
    width: min(74%, 34rem);
    aspect-ratio: 1;
    border: 1px solid rgba(112, 88, 255, 0.17);
    border-radius: 50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.iht-hero__visual-orbit::before,
.iht-hero__visual-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.iht-hero__visual-orbit::before {
    inset: 12%;
    border: 1px solid rgba(32, 217, 255, 0.11);
}

.iht-hero__visual-orbit::after {
    inset: -0.25rem;
    background: conic-gradient(from 85deg, transparent 0 38%, rgba(154,77,255,0.42) 46%, transparent 55% 72%, rgba(32,217,255,0.32) 78%, transparent 87%);
    mask: radial-gradient(circle, transparent calc(50% - 1px), #000 50%, #000 calc(50% + 1px), transparent calc(50% + 2px));
    opacity: 0.62;
}

.iht-hero__visual-orbit--one {
    transform: rotateX(64deg) rotateZ(-9deg) translateZ(-4rem);
}

.iht-hero__visual-orbit--two {
    width: min(55%, 26rem);
    transform: rotateY(66deg) rotateZ(11deg) translateZ(-2rem);
    opacity: 0.72;
}

.iht-dev-window {
    position: relative;
    z-index: 4;
    width: min(92%, 43rem);
    aspect-ratio: 1.56 / 1;
    overflow: hidden;
    transform: rotateX(2deg) rotateY(-8deg) translateZ(1rem);
    transform-style: preserve-3d;
    border: 1px solid rgba(90, 115, 232, 0.26);
    border-radius: clamp(0.95rem, 1.4vw, 1.35rem);
    background: rgba(5, 8, 19, 0.95);
    box-shadow:
        -1.6rem 1.8rem 5.5rem rgba(0,0,0,0.48),
        0 0 4rem rgba(74, 79, 255, 0.12),
        inset 0 1px rgba(255,255,255,0.04);
}

.iht-dev-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(166, 103, 255, 0.06), transparent 38%, transparent 65%, rgba(32, 217, 255, 0.045));
    pointer-events: none;
}

.iht-dev-window__bar {
    height: clamp(2.3rem, 3.3vw, 3rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.9rem;
    border-bottom: 1px solid rgba(96, 116, 205, 0.14);
    background: linear-gradient(180deg, rgba(18, 23, 47, 0.94), rgba(8, 12, 27, 0.96));
}

.iht-dev-window__traffic {
    display: flex;
    gap: 0.32rem;
}

.iht-dev-window__traffic i {
    width: clamp(0.34rem, 0.5vw, 0.46rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #667195;
}

.iht-dev-window__traffic i:nth-child(1) { background: #b16cff; }
.iht-dev-window__traffic i:nth-child(2) { background: #567cff; }
.iht-dev-window__traffic i:nth-child(3) { background: #20d9ff; }

.iht-dev-window__path,
.iht-dev-window__status {
    color: rgba(182, 195, 229, 0.55);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.43rem, 0.56vw, 0.61rem);
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.iht-dev-window__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(119, 234, 255, 0.72);
}

.iht-dev-window__status i {
    width: 0.35rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 0.65rem rgba(32, 217, 255, 0.7);
}

.iht-dev-window__body {
    height: calc(100% - clamp(2.3rem, 3.3vw, 3rem));
    display: grid;
    grid-template-columns: clamp(2.5rem, 4.4vw, 3.8rem) minmax(0, 1fr) minmax(8rem, 27%);
    background:
        radial-gradient(circle at 65% 38%, rgba(46, 86, 255, 0.08), transparent 45%),
        #050817;
}

.iht-dev-window__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.7rem, 1.4vw, 1.15rem);
    padding-top: clamp(0.9rem, 1.6vw, 1.25rem);
    border-right: 1px solid rgba(96, 116, 205, 0.12);
    background: rgba(6, 9, 22, 0.74);
}

.iht-dev-window__rail span {
    width: clamp(0.65rem, 1vw, 0.9rem);
    aspect-ratio: 1;
    border: 1px solid rgba(119, 137, 215, 0.18);
    border-radius: 0.22rem;
    background: rgba(91, 105, 174, 0.1);
}

.iht-dev-window__rail span.is-active {
    border-color: rgba(32, 217, 255, 0.45);
    background: rgba(32, 217, 255, 0.18);
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.12);
}

.iht-dev-window__workspace {
    min-width: 0;
    overflow: hidden;
}

.iht-dev-window__tabs {
    min-height: clamp(2rem, 2.8vw, 2.5rem);
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(92, 111, 195, 0.12);
}

.iht-dev-window__tabs span {
    display: inline-flex;
    align-items: center;
    padding: 0 clamp(0.65rem, 1.2vw, 1rem);
    border-right: 1px solid rgba(92, 111, 195, 0.09);
    color: rgba(154, 168, 208, 0.48);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.38rem, 0.52vw, 0.56rem);
    white-space: nowrap;
}

.iht-dev-window__tabs span.is-active {
    color: #b4dfff;
    background: rgba(48, 75, 163, 0.09);
    box-shadow: inset 0 -1px var(--color-cyan);
}

.iht-dev-window__code {
    display: grid;
    gap: clamp(0.28rem, 0.5vw, 0.44rem);
    padding: clamp(0.85rem, 1.55vw, 1.35rem);
    color: rgba(202, 213, 244, 0.68);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.42rem, 0.62vw, 0.68rem);
    line-height: 1.45;
    white-space: nowrap;
}

.iht-dev-window__code span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iht-dev-window__code i {
    display: inline-block;
    width: 2rem;
    color: rgba(92, 106, 151, 0.42);
    font-style: normal;
}

.iht-dev-window__code b {
    color: #ba88ff;
    font-weight: 600;
}

.iht-dev-window__code em {
    color: #55dfff;
    font-style: normal;
}

.iht-dev-window__inspector {
    padding: clamp(0.9rem, 1.5vw, 1.25rem);
    border-left: 1px solid rgba(92, 111, 195, 0.12);
    background: rgba(8, 13, 30, 0.62);
}

.iht-dev-window__inspector-label {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--color-cyan);
    font-size: clamp(0.39rem, 0.48vw, 0.52rem);
    font-weight: 800;
    letter-spacing: 0.18em;
}

.iht-dev-window__inspector > strong {
    display: block;
    color: #eff4ff;
    font-size: clamp(0.58rem, 0.82vw, 0.88rem);
}

.iht-dev-window__meter {
    height: 0.27rem;
    margin: clamp(0.65rem, 1vw, 0.85rem) 0 clamp(0.8rem, 1.2vw, 1rem);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(97, 111, 171, 0.13);
}

.iht-dev-window__meter i {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, var(--color-purple), var(--color-blue), var(--color-cyan));
    box-shadow: 0 0 0.8rem rgba(32,217,255,0.35);
}

.iht-dev-window__inspector dl,
.iht-dev-window__inspector div {
    margin: 0;
}

.iht-dev-window__inspector dl {
    display: grid;
    gap: clamp(0.5rem, 0.9vw, 0.75rem);
}

.iht-dev-window__inspector div {
    display: grid;
    gap: 0.08rem;
}

.iht-dev-window__inspector dt,
.iht-dev-window__inspector dd {
    margin: 0;
    font-size: clamp(0.38rem, 0.5vw, 0.54rem);
}

.iht-dev-window__inspector dt {
    color: rgba(151, 166, 207, 0.5);
}

.iht-dev-window__inspector dd {
    color: rgba(211, 224, 255, 0.76);
}

.iht-hero-float {
    position: absolute;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: clamp(8.5rem, 11vw, 10.5rem);
    padding: clamp(0.58rem, 0.8vw, 0.75rem) clamp(0.65rem, 1vw, 0.9rem);
    border: 1px solid rgba(108, 126, 216, 0.22);
    border-radius: 0.8rem;
    background: linear-gradient(145deg, rgba(15, 20, 42, 0.92), rgba(5, 8, 20, 0.93));
    box-shadow:
        0 1rem 2.6rem rgba(0,0,0,0.28),
        0 0 1.8rem rgba(80, 84, 255, 0.08),
        inset 0 1px rgba(255,255,255,0.035);
    backdrop-filter: blur(0.7rem);
    -webkit-backdrop-filter: blur(0.7rem);
}

.iht-hero-float__icon {
    display: grid;
    place-items: center;
    width: clamp(1.75rem, 2.5vw, 2.2rem);
    aspect-ratio: 1;
    flex: 0 0 auto;
    border: 1px solid rgba(133, 98, 255, 0.28);
    border-radius: 0.55rem;
    background: radial-gradient(circle at 30% 30%, rgba(124,93,255,0.25), rgba(9,12,28,0.86));
    color: #8feaff;
    box-shadow: 0 0 1.1rem rgba(32, 217, 255, 0.09);
}

.iht-hero-float div {
    display: grid;
    gap: 0.06rem;
}

.iht-hero-float small {
    color: rgba(121, 219, 255, 0.62);
    font-size: clamp(0.38rem, 0.45vw, 0.48rem);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.iht-hero-float strong {
    color: rgba(235, 241, 255, 0.82);
    font-size: clamp(0.52rem, 0.68vw, 0.72rem);
    white-space: nowrap;
}

.iht-hero-float--plugin {
    left: -2%;
    top: 14%;
    transform: rotateY(8deg) translateZ(2.4rem);
}

.iht-hero-float--commerce {
    right: -1%;
    top: 27%;
    transform: rotateY(-8deg) translateZ(3rem);
}

.iht-hero-float--api {
    right: 5%;
    bottom: 12%;
    transform: rotateY(-7deg) translateZ(2rem);
}

.iht-hero__visual-floor {
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 5%;
    width: min(88%, 42rem);
    height: 18%;
    transform: translateX(-50%) rotateX(72deg);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(96, 69, 255, 0.25), rgba(32, 136, 255, 0.08) 46%, transparent 72%);
    filter: blur(clamp(0.65rem, 1.3vw, 1.15rem));
    opacity: 0.72;
    pointer-events: none;
}

.iht-hero__continue {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: clamp(0.8rem, 1.6vh, 1.25rem);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transform: translateX(-50%);
    color: rgba(184, 198, 230, 0.48);
    font-size: clamp(0.5rem, 0.58vw, 0.62rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.iht-hero__continue i {
    display: grid;
    place-items: center;
    width: 1.55rem;
    aspect-ratio: 1;
    border: 1px solid rgba(106, 126, 215, 0.24);
    border-radius: 50%;
    color: var(--color-cyan);
    font-style: normal;
}

.iht-hero__continue:hover,
.iht-hero__continue:focus-visible {
    color: #e9efff;
}

@media (max-width: 74rem) {
    .iht-hero {
        min-height: 0;
        padding-top: calc(var(--header-height) + clamp(2.6rem, 5vw, 4rem));
        padding-bottom: clamp(3.25rem, 5vw, 4.25rem);
    }

    .iht-hero__inner {
        width: min(90vw, 66rem);
        grid-template-columns: 1fr;
        gap: clamp(3.4rem, 7vw, 5rem);
    }

    .iht-hero__content {
        max-width: 47rem;
    }

    .iht-hero__title {
        font-size: clamp(3.3rem, 9vw, 6.2rem);
    }

    .iht-hero__lead {
        max-width: 42rem;
    }

    .iht-hero__visual {
        width: min(92%, 48rem);
        margin-inline: auto;
    }

    .iht-hero__grid {
        right: -15%;
        bottom: -8%;
        width: 95vw;
        height: 52vw;
    }
}

@media (max-width: 56rem) {
    .iht-hero__inner {
        width: min(92vw, 42rem);
    }

    .iht-hero__title {
        font-size: clamp(3rem, 11vw, 5rem);
    }

    .iht-hero__visual {
        width: 100%;
        aspect-ratio: 1.05 / 0.9;
    }

    .iht-dev-window {
        width: min(94%, 38rem);
        transform: rotateX(2deg) rotateY(-5deg);
    }

    .iht-hero-float--plugin {
        left: -1%;
        top: 8%;
    }

    .iht-hero-float--commerce {
        right: -1%;
        top: 28%;
    }

    .iht-hero-float--api {
        right: 2%;
        bottom: 8%;
    }
}

@media (max-width: 40rem) {
    .iht-hero {
        min-height: 0;
        padding: calc(var(--header-height) + 2.4rem) 1rem 4.4rem;
    }

    .iht-hero__inner {
        width: 100%;
        gap: 2.8rem;
    }

    .iht-hero__eyebrow {
        max-width: 21rem;
        gap: 0.55rem;
        font-size: 0.52rem;
        letter-spacing: 0.16em;
    }

    .iht-hero__title {
        font-size: clamp(2.7rem, 15vw, 4.25rem);
        line-height: 0.9;
    }

    .iht-hero__lead {
        margin-top: 1.35rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .iht-hero__capabilities {
        gap: 0.42rem;
    }

    .iht-hero__capabilities span {
        min-height: 1.85rem;
        padding: 0.35rem 0.58rem;
        font-size: 0.53rem;
    }

    .iht-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
        width: 100%;
    }

    .iht-hero__button {
        width: 100%;
        min-width: 0;
        min-height: 3.2rem;
    }

    .iht-hero__note {
        font-size: 0.56rem;
        line-height: 1.5;
    }

    .iht-hero__visual {
        width: min(100%, 30rem);
        aspect-ratio: 1 / 0.95;
        margin-inline: auto;
    }

    .iht-dev-window {
        width: 96%;
        transform: rotateX(1deg) rotateY(-3deg);
        border-radius: 0.9rem;
    }

    .iht-dev-window__body {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .iht-dev-window__inspector {
        display: none;
    }

    .iht-dev-window__bar {
        gap: 0.45rem;
        padding-inline: 0.65rem;
    }

    .iht-dev-window__path {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .iht-dev-window__tabs span:nth-child(n+3) {
        display: none;
    }

    .iht-dev-window__code {
        padding: 0.7rem;
        font-size: clamp(0.38rem, 2vw, 0.52rem);
    }

    .iht-dev-window__code span:nth-child(n+9) {
        display: none;
    }

    .iht-hero-float {
        min-width: 7.2rem;
        padding: 0.48rem 0.55rem;
        gap: 0.48rem;
        border-radius: 0.65rem;
    }

    .iht-hero-float__icon {
        width: 1.55rem;
    }

    .iht-hero-float small {
        font-size: 0.34rem;
    }

    .iht-hero-float strong {
        font-size: 0.46rem;
    }

    .iht-hero-float--plugin {
        left: -0.25rem;
        top: 5%;
    }

    .iht-hero-float--commerce {
        right: -0.2rem;
        top: 23%;
    }

    .iht-hero-float--api {
        right: 4%;
        bottom: 3%;
    }

    .iht-hero__visual-orbit {
        width: 72%;
    }

    .iht-hero__continue {
        bottom: 1.15rem;
        width: max-content;
        max-width: calc(100% - 2rem);
        font-size: 0.48rem;
        letter-spacing: 0.11em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iht-hero *,
    .iht-hero *::before,
    .iht-hero *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================
   04. CINEMATIC SCROLL FOUNDATION
   ========================================================== */
.site-main {
    position: relative;
    z-index: 1;
}

.cinematic-scroll {
    position: relative;
    min-height: var(--cinematic-scroll-height);
    isolation: isolate;
}

.cinematic-stage {
    position: sticky;
    z-index: 5;
    top: var(--iht-stage-top-offset);
    width: 100%;
    height: calc(100vh - var(--iht-stage-top-offset));
    height: calc(100svh - var(--iht-stage-top-offset));
    min-height: min(36rem, calc(100svh - var(--iht-stage-top-offset)));
    overflow: clip;
    background:
        radial-gradient(circle at 52% 48%, rgba(83, 57, 255, 0.11), transparent 26rem),
        linear-gradient(180deg, rgba(3, 4, 10, 0.96), rgba(3, 4, 10, 1));
    perspective: clamp(700px, 90vw, 1600px);
    transform-style: preserve-3d;
}

.cinematic-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(63, 81, 181, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63, 81, 181, 0.07) 1px, transparent 1px);
    background-size: clamp(2.5rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem);
    mask-image: linear-gradient(to bottom, transparent 7%, #000 34%, #000 80%, transparent 100%);
    transform: perspective(700px) rotateX(66deg) scale(1.8) translateY(19%);
    transform-origin: 50% 70%;
    opacity: 0.55;
}

.cinematic-stage::after {
    content: "";
    position: absolute;
    inset: auto -15% -20% 18%;
    z-index: -2;
    height: 52%;
    background:
        radial-gradient(ellipse at center, rgba(113, 62, 255, 0.13), transparent 52%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 148, 255, 0.1), transparent 42%);
    filter: blur(1px);
    pointer-events: none;
}

.cinematic-stage__inner {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: var(--timeline-width) minmax(0, 1fr);
    padding-top: 0;
}

/* The scene root is intentionally empty of detailed scenes in Phase 1.
   Future phases can mount GSAP, CSS 3D and/or Three.js scene modules here. */
.scene-root {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    container-type: inline-size;
}

.scene-root::before,
.scene-root::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(clamp(1.5rem, 3vw, 4rem));
    opacity: 0.22;
}

.scene-root::before {
    width: clamp(12rem, 36vw, 38rem);
    aspect-ratio: 1;
    left: 48%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: rgba(108, 67, 255, 0.5);
}

.scene-root::after {
    width: clamp(10rem, 28vw, 30rem);
    aspect-ratio: 1;
    left: 68%;
    top: 52%;
    transform: translate(-50%, -50%);
    background: rgba(0, 139, 255, 0.32);
}

.scene-origin {
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(8rem, 20vw, 18rem);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotateX(66deg);
    transform-style: preserve-3d;
    border: 1px solid rgba(139, 111, 255, 0.24);
    border-radius: 50%;
    box-shadow:
        0 0 4rem rgba(122, 72, 255, 0.14),
        inset 0 0 3rem rgba(32, 217, 255, 0.04);
    opacity: 0.85;
}

.scene-origin::before,
.scene-origin::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(32, 217, 255, 0.13);
    border-radius: inherit;
}

.scene-origin::after {
    inset: 27%;
    border-color: rgba(154, 77, 255, 0.18);
}

.scene-foundation-note {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(88%, 44rem);
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.scene-foundation-note__eyebrow {
    margin: 0 0 0.85rem;
    color: var(--color-cyan);
    font-size: clamp(0.62rem, 0.75vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.scene-foundation-note__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    background: linear-gradient(110deg, #fff 8%, #b48cff 40%, #4d8dff 68%, #87efff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 1.8rem rgba(88, 79, 255, 0.18));
}

.scene-foundation-note__subtitle {
    margin: clamp(0.8rem, 2vw, 1.35rem) auto 0;
    max-width: 46rem;
    color: var(--color-muted);
    font-size: clamp(0.82rem, 1vw, 1rem);
    letter-spacing: 0.05em;
}

.scroll-hint {
    position: absolute;
    z-index: 8;
    right: var(--page-gutter);
    bottom: clamp(1rem, 3vh, 2.2rem);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(244, 247, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scroll-hint__mouse {
    position: relative;
    width: 1.05rem;
    height: 1.7rem;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 999px;
}

.scroll-hint__mouse::after {
    content: "";
    position: absolute;
    top: 0.34rem;
    left: 50%;
    width: 2px;
    height: 0.34rem;
    transform: translateX(-50%);
    background: var(--color-cyan);
    border-radius: 999px;
}

/* ==========================================================
   05. LEFT FRAME 01–10 TIMELINE
   ========================================================== */
.frame-timeline {
    position: relative;
    z-index: 15;
    isolation: isolate;
    min-width: 0;
    padding: clamp(0.75rem, 1.5vh, 1.25rem) clamp(0.7rem, 1.5vw, 1.35rem) clamp(1rem, 2vh, 1.75rem) var(--page-gutter);
    border-right: 1px solid rgba(111, 85, 255, 0.08);
    background: linear-gradient(90deg, rgba(3,4,10,0.82), rgba(3,4,10,0.34), transparent);
}

.frame-timeline::before {
    content: "";
    position: absolute;
    top: 3%;
    bottom: 3%;
    left: calc(var(--page-gutter) + 1.05rem);
    width: 1px;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, rgba(144, 103, 255, 0.34) 8%, rgba(75, 118, 255, 0.22) 90%, transparent);
    pointer-events: none;
}

.frame-timeline__list {
    position: relative;
    z-index: 2;
    height: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: repeat(10, minmax(0, 1fr));
    list-style: none;
}

.frame-timeline__item {
    position: relative;
    z-index: 2;
    min-height: 0;
    display: flex;
    align-items: center;
}

.frame-timeline__button {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.6rem, 1vw, 0.9rem);
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.frame-timeline__number {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.1rem;
    aspect-ratio: 1;
    border: 1px solid rgba(145, 102, 255, 0.34);
    border-radius: 50%;
    background: rgb(7, 8, 20);
    color: rgba(244, 247, 255, 0.66);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 0 0 rgba(123, 83, 255, 0);
    transition: color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.frame-timeline__copy {
    position: relative;
    z-index: 3;
    min-width: 0;
    opacity: 0.42;
    transform: translateX(-0.15rem);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.frame-timeline__kicker {
    display: block;
    margin-bottom: 0.08rem;
    color: var(--color-cyan);
    font-size: clamp(0.48rem, 0.52vw, 0.58rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.frame-timeline__title {
    display: block;
    color: rgba(244, 247, 255, 0.78);
    font-family: var(--font-display);
    font-size: clamp(0.55rem, 0.68vw, 0.72rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.frame-timeline__button:hover .frame-timeline__copy,
.frame-timeline__button:focus-visible .frame-timeline__copy,
.frame-timeline__item.is-active .frame-timeline__copy {
    opacity: 1;
    transform: translateX(0);
}

.frame-timeline__button:hover .frame-timeline__number,
.frame-timeline__button:focus-visible .frame-timeline__number,
.frame-timeline__item.is-active .frame-timeline__number {
    border-color: rgba(68, 202, 255, 0.8);
    color: #fff;
    transform: scale(1.06);
    box-shadow:
        0 0 0.85rem rgba(126, 79, 255, 0.42),
        0 0 1.4rem rgba(32, 217, 255, 0.16);
}

.frame-progress {
    position: absolute;
    z-index: 1;
    top: 3%;
    bottom: 3%;
    left: calc(var(--page-gutter) + 1.05rem);
    width: 1px;
    transform-origin: top;
    transform: scaleY(var(--scroll-progress));
    background: linear-gradient(to bottom, var(--color-purple), var(--color-blue), var(--color-cyan));
    box-shadow: 0 0 0.8rem rgba(32, 217, 255, 0.4);
    pointer-events: none;
}

/* ==========================================================
   06. FOOTER
   ========================================================== */
.site-footer {
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(115, 93, 255, 0.12);
    background: #03040a;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(154,77,255,0.75), rgba(32,217,255,0.65), transparent);
    opacity: 0.5;
}

.site-footer__inner {
    width: var(--container);
    min-height: clamp(8rem, 14vw, 11rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.site-footer__brand {
    display: grid;
    gap: 0.65rem;
}

.site-footer__brand-line {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-footer__tagline,
.site-footer__copyright {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.75rem;
}

.footer-nav .menu,
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(0.85rem, 2vw, 1.8rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    color: rgba(244, 247, 255, 0.62);
    font-size: 0.72rem;
    transition: color var(--transition-fast);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--color-cyan);
}

/* ==========================================================
   07. GENERIC CONTENT FALLBACK
   ========================================================== */
.content-shell {
    width: min(90vw, 70rem);
    margin-inline: auto;
    padding: calc(var(--header-height) + 3rem) 0 6rem;
}

.content-shell h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1;
}

.content-shell a {
    color: var(--color-cyan);
}

/* ==========================================================
   08. RESPONSIVE FOUNDATION
   ========================================================== */
@media (max-width: 74rem) {
    :root {
        --timeline-width: clamp(8.5rem, 13vw, 11rem);
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        position: fixed;
        inset: var(--header-height) var(--page-gutter) auto;
        justify-self: stretch;
        padding: 1rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: rgba(4, 5, 13, 0.96);
        box-shadow: 0 1.5rem 5rem rgba(0,0,0,0.42);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-0.75rem);
        transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    }

    .nav-open .primary-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .primary-nav .menu,
    .primary-nav ul {
        display: grid;
        gap: 0.25rem;
    }

    .primary-nav a {
        min-height: 3rem;
        padding-inline: 0.6rem;
        font-size: 0.9rem;
    }

    .primary-nav a::after {
        display: none;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .header-cta {
        display: none;
    }

    .frame-timeline__title {
        font-size: clamp(0.52rem, 0.78vw, 0.66rem);
    }

    .scene-foundation-note__title {
        font-size: clamp(2.8rem, 8.5vw, 6.2rem);
    }
}

@media (max-width: 56rem) {
    :root {
        --cinematic-scroll-height: 900vh;
        --header-height: 4.75rem;
    }

    .cinematic-stage {
        min-height: 34rem;
        perspective: 900px;
    }

    .cinematic-stage__inner {
        grid-template-columns: clamp(5.5rem, 12vw, 7rem) minmax(0, 1fr);
    }

    .frame-timeline {
        padding-left: clamp(0.7rem, 2vw, 1.2rem);
        padding-right: 0.45rem;
    }

    .frame-timeline::before,
    .frame-progress {
        left: calc(clamp(0.7rem, 2vw, 1.2rem) + 0.9rem);
    }

    .frame-timeline__button {
        grid-template-columns: 1.8rem minmax(0, 1fr);
        gap: 0.4rem;
    }

    .frame-timeline__number {
        width: 1.8rem;
        font-size: 0.56rem;
    }

    .frame-timeline__copy {
        opacity: 0.2;
    }

    .frame-timeline__kicker {
        font-size: 0.43rem;
        letter-spacing: 0.2em;
    }

    .frame-timeline__title {
        font-size: 0.49rem;
        letter-spacing: 0.025em;
    }

    .scene-root::before,
    .scene-root::after {
        opacity: 0.15;
    }

    .scene-foundation-note {
        width: min(88%, 34rem);
    }

    .scroll-hint {
        right: 1rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .footer-nav .menu,
    .footer-nav ul {
        justify-content: flex-start;
    }
}

@media (max-width: 40rem) {
    :root {
        --cinematic-scroll-height: 820vh;
        --page-gutter: 1rem;
    }

    body {
        min-width: 0;
    }

    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header__inner {
        width: calc(100% - 2rem);
    }

    .cinematic-stage {
        height: calc(100dvh - var(--iht-stage-top-offset));
        min-height: min(30rem, calc(100dvh - var(--iht-stage-top-offset)));
    }

    .cinematic-stage__inner {
        display: block;
        padding-top: 0;
        padding-bottom: 4.1rem;
    }

    .scene-root {
        height: 100%;
    }

    .scene-foundation-note {
        top: 46%;
        width: min(88%, 28rem);
    }

    .scene-foundation-note__title {
        font-size: clamp(2.5rem, 16vw, 5rem);
        line-height: 0.9;
    }

    .scene-foundation-note__subtitle {
        max-width: 20rem;
        font-size: 0.78rem;
    }

    .scene-origin {
        width: clamp(7rem, 44vw, 12rem);
    }

    .frame-timeline {
        position: absolute;
        inset: auto 0 0;
        width: 100%;
        height: 4rem;
        padding: 0 0.65rem 0.5rem;
        border-top: 1px solid rgba(111, 85, 255, 0.12);
        border-right: 0;
        background: linear-gradient(to top, rgba(3,4,10,0.97), rgba(3,4,10,0.58), transparent);
    }

    .frame-timeline::before {
        top: auto;
        right: 1.15rem;
        bottom: 1.34rem;
        left: 1.15rem;
        width: auto;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(144, 103, 255, 0.34) 8%, rgba(75, 118, 255, 0.22) 90%, transparent);
    }

    .frame-progress {
        top: auto;
        right: 1.15rem;
        bottom: 1.34rem;
        left: 1.15rem;
        width: auto;
        height: 1px;
        transform-origin: left;
        transform: scaleX(var(--scroll-progress));
        background: linear-gradient(to right, var(--color-purple), var(--color-blue), var(--color-cyan));
    }

    .frame-timeline__list {
        display: grid;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        grid-template-rows: 1fr;
        gap: 0;
    }

    .frame-timeline__item {
        justify-content: center;
    }

    .frame-timeline__button {
        display: grid;
        grid-template-columns: 1fr;
        place-items: end center;
        height: 100%;
    }

    .frame-timeline__number {
        width: 1.55rem;
        font-size: 0.49rem;
    }

    .frame-timeline__copy {
        display: none;
    }

    .scroll-hint {
        right: 50%;
        bottom: 4.55rem;
        transform: translateX(50%);
        font-size: 0.58rem;
    }

    .scroll-hint__label {
        display: none;
    }

    .site-footer__inner {
        width: calc(100% - 2rem);
    }

    .footer-nav .menu,
    .footer-nav ul {
        gap: 0.9rem 1.25rem;
    }
}

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

    .cinematic-stage::before {
        transform: perspective(700px) rotateX(66deg) scale(1.45) translateY(14%);
    }
}

/* ==========================================================
   09. PHASE 2 — CINEMATIC SCROLL ENGINE / FRAME 01
   ========================================================== */
:root {
    --scene-vignette: radial-gradient(circle at 54% 43%, transparent 0 24%, rgba(3, 4, 10, 0.2) 52%, rgba(3, 4, 10, 0.84) 100%);
    --scene-safe-inline: clamp(1rem, 3.2vw, 3.5rem);
}

/* CSS sticky remains the graceful no-JS fallback. Once ScrollTrigger boots,
   it owns pinning and this removes competing sticky positioning. */
.scroll-engine-ready .cinematic-stage {
    position: relative;
    top: auto;
}

.scene-root {
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 44%, rgba(76, 46, 204, 0.09), transparent 28%),
        linear-gradient(180deg, rgba(2, 3, 11, 0.24), rgba(2, 3, 11, 0.72));
}

.scene-webgl,
.scene-webgl__canvas,
.scene-vignette,
.scene-ambient,
.frame-one {
    position: absolute;
    inset: 0;
}

.scene-webgl {
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.scene-webgl__canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    opacity: 0;
}

.scene-root.is-webgl-ready .scene-webgl__canvas {
    opacity: 1;
}

.scene-vignette {
    z-index: 5;
    background:
        linear-gradient(180deg, rgba(3, 4, 10, 0.46), transparent 18%, transparent 72%, rgba(3, 4, 10, 0.58)),
        var(--scene-vignette);
    pointer-events: none;
}

.scene-ambient {
    z-index: 2;
    width: clamp(16rem, 42vw, 45rem);
    height: clamp(16rem, 42vw, 45rem);
    margin: auto;
    border-radius: 50%;
    filter: blur(clamp(3rem, 7vw, 8rem));
    opacity: 0.13;
    mix-blend-mode: screen;
    pointer-events: none;
}

.scene-ambient--purple {
    transform: translate(-18%, -10%);
    background: #7f36ff;
}

.scene-ambient--blue {
    transform: translate(22%, 10%) scale(0.86);
    background: #006dff;
}

.frame-one {
    z-index: 6;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 3rem);
    overflow: hidden;
    pointer-events: none;
}

.frame-one__energy-shell {
    position: absolute;
    left: 50%;
    top: 49%;
    width: clamp(17rem, 42vw, 38rem);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    transform-origin: center;
    border-radius: 50%;
    opacity: 0.18;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.frame-one__halo,
.frame-one__ring {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
}

.frame-one__halo {
    inset: 13%;
    background:
        radial-gradient(circle, rgba(88, 64, 255, 0.16), rgba(66, 51, 235, 0.07) 38%, transparent 68%);
    box-shadow:
        0 0 clamp(3rem, 8vw, 8rem) rgba(111, 69, 255, 0.18),
        0 0 clamp(2rem, 6vw, 6rem) rgba(32, 217, 255, 0.08);
    filter: blur(0.35rem);
}

.frame-one__ring {
    border: 1px solid rgba(125, 92, 255, 0.5);
    box-shadow:
        0 0 1.5rem rgba(137, 76, 255, 0.22),
        inset 0 0 1.6rem rgba(87, 63, 255, 0.08);
}

.frame-one__ring--outer {
    inset: 4%;
    border-color: rgba(32, 217, 255, 0.25);
    transform: rotateX(68deg) rotateZ(-7deg);
}

.frame-one__ring--middle {
    inset: 16%;
    border-color: rgba(139, 78, 255, 0.48);
    transform: rotateY(66deg) rotateZ(16deg);
}

.frame-one__ring--inner {
    inset: 29%;
    border-color: rgba(66, 131, 255, 0.38);
    box-shadow:
        0 0 1rem rgba(32, 217, 255, 0.15),
        inset 0 0 1rem rgba(154, 77, 255, 0.08);
}

.frame-one__content {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
    width: min(88%, 30rem);
    margin-top: clamp(-1rem, -2vh, -0.25rem);
    text-align: center;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    will-change: transform, opacity;
}

/* Frame 01 is intentionally complete before JavaScript/Three.js finishes
   initializing. GSAP only animates these elements OUT as the user scrolls. */
.frame-one__start,
.frame-one__instruction,
.frame-one__mouse {
    opacity: 1;
    visibility: visible;
}

.frame-one__start {
    margin: 0;
    padding-left: 0.42em;
    color: #ef9dff;
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 1.15vw, 1.15rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    text-shadow:
        0 0 1rem rgba(201, 111, 255, 0.58),
        0 0 2rem rgba(92, 88, 255, 0.2);
}

.frame-one__instruction {
    margin: clamp(0.75rem, 1.2vw, 1rem) 0 0;
    color: rgba(238, 244, 255, 0.74);
    font-size: clamp(0.56rem, 0.68vw, 0.7rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.frame-one__mouse {
    position: relative;
    width: clamp(1.15rem, 1.45vw, 1.35rem);
    height: clamp(1.85rem, 2.2vw, 2.15rem);
    margin-top: clamp(0.8rem, 1.5vw, 1.15rem);
    border: 1px solid rgba(231, 240, 255, 0.66);
    border-radius: 999px;
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.08);
}

.frame-one__mouse span {
    position: absolute;
    top: 0.36rem;
    left: 50%;
    width: 2px;
    height: 0.38rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--color-purple), var(--color-cyan));
    box-shadow: 0 0 0.65rem rgba(32, 217, 255, 0.6);
}

.scene-phase-label {
    position: absolute;
    z-index: 7;
    right: var(--scene-safe-inline);
    bottom: clamp(4.6rem, 8vh, 6rem);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(220, 228, 255, 0.3);
    font-size: clamp(0.5rem, 0.58vw, 0.64rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    pointer-events: none;
}

.scene-phase-label span:first-child {
    color: rgba(32, 217, 255, 0.58);
    font-size: 0.7rem;
}

/* If WebGL cannot initialize, the CSS energy shell becomes the visual scene
   instead of leaving a blank canvas. */
.scene-root.is-webgl-fallback .frame-one__energy-shell,
.reduced-motion .frame-one__energy-shell {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important;
}

.scene-root.is-webgl-fallback .scene-ambient,
.reduced-motion .scene-ambient {
    opacity: 0.18;
}

/* Only Frame 01 is implemented in Phase 2. Past the first milestone, the
   scene intentionally settles into the dark transition state until later
   frame modules are added. */
.scene-root[data-active-frame]:not([data-active-frame="0"]) .scene-phase-label {
    opacity: 0.18;
}

@media (max-width: 74rem) {
    .scene-phase-label {
        right: clamp(0.8rem, 2vw, 1.4rem);
    }

    .frame-one__energy-shell {
        width: clamp(15rem, 48vw, 32rem);
    }
}

@media (max-width: 56rem) {
    .scene-ambient {
        opacity: 0.1;
        filter: blur(clamp(2.5rem, 8vw, 5rem));
    }

    .frame-one__energy-shell {
        top: 46%;
        width: clamp(14rem, 53vw, 28rem);
    }

    .frame-one__content {
        margin-top: -2rem;
    }

    .scene-phase-label {
        display: none;
    }
}

@media (max-width: 40rem) {
    .scene-root {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .scene-webgl,
    .scene-webgl__canvas {
        max-width: 100vw;
    }

    .scene-ambient {
        width: min(86vw, 24rem);
        height: min(86vw, 24rem);
        opacity: 0.08;
    }

    .frame-one {
        padding: 1rem 1rem 5rem;
    }

    .frame-one__energy-shell {
        top: 44%;
        width: clamp(13.5rem, 72vw, 21rem);
    }

    .frame-one__content {
        width: min(84vw, 22rem);
        margin-top: -3.4rem;
    }

    .frame-one__start {
        font-size: clamp(0.72rem, 3.6vw, 0.92rem);
    }

    .frame-one__instruction {
        font-size: clamp(0.5rem, 2.5vw, 0.62rem);
        letter-spacing: 0.22em;
    }

    .scroll-hint {
        display: none;
    }
}

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

    .frame-one__content,
    .frame-one__start,
    .frame-one__instruction,
    .frame-one__mouse {
        opacity: 1 !important;
        transform: none !important;
    }

    .scene-root:not([data-active-frame="0"]) .frame-one {
        opacity: 0;
        visibility: hidden;
    }
}


.scene-root.is-webgl-fallback:not([data-active-frame="0"]) .frame-one {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================
   10. PHASE 3 — FRAME 02 / FRAME 03 LAPTOP FOUNDATION
   ========================================================== */

/* The real laptop is procedural Three.js (or optional GLB). This DOM device
   exists only as a reduced-motion/WebGL-failure state so the story remains
   understandable without autoplay or an unsupported renderer. */
.scene-static-laptop {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: none;
    place-items: center;
    padding: var(--header-height) clamp(1rem, 4vw, 4rem) 4.5rem;
    overflow: clip;
    perspective: clamp(760px, 95vw, 1500px);
    pointer-events: none;
}

.scene-static-laptop__device {
    position: relative;
    width: clamp(19rem, 48vw, 44rem);
    height: clamp(14rem, 34vw, 31rem);
    transform-style: preserve-3d;
    transform: translateY(clamp(1rem, 5vh, 3.5rem)) rotateY(-7deg);
}

.scene-static-laptop__base {
    position: absolute;
    left: 50%;
    bottom: 12%;
    width: 100%;
    aspect-ratio: 1.72 / 1;
    transform: translateX(-50%) rotateX(72deg) translateZ(-0.25rem);
    transform-origin: 50% 100%;
    border: 1px solid rgba(116, 132, 211, 0.28);
    border-radius: 1.1rem 1.1rem 1.5rem 1.5rem;
    background:
        linear-gradient(135deg, rgba(38, 47, 82, 0.92), rgba(8, 11, 22, 0.98) 58%, rgba(23, 29, 52, 0.96));
    box-shadow:
        inset 0 1px rgba(255,255,255,0.12),
        0 0 2.5rem rgba(82, 73, 255, 0.13),
        0 0 3rem rgba(32, 217, 255, 0.06);
}

.scene-static-laptop__keyboard {
    position: absolute;
    inset: 12% 10% 42%;
    border-radius: 0.55rem;
    opacity: 0.75;
    background:
        repeating-linear-gradient(to right, rgba(104, 118, 168, 0.2) 0 6%, transparent 6% 7.7%),
        repeating-linear-gradient(to bottom, rgba(104, 118, 168, 0.17) 0 15%, transparent 15% 20%),
        #0a0e1b;
    box-shadow: inset 0 0 1rem rgba(0,0,0,0.7);
}

.scene-static-laptop__trackpad {
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 34%;
    height: 24%;
    transform: translateX(-50%);
    border: 1px solid rgba(135, 151, 206, 0.16);
    border-radius: 0.45rem;
    background: linear-gradient(135deg, rgba(30, 39, 66, 0.84), rgba(10, 13, 25, 0.92));
}

.scene-static-laptop__lid {
    position: absolute;
    left: 50%;
    bottom: 40%;
    width: 96%;
    aspect-ratio: 1.62 / 1;
    transform: translateX(-50%) rotateX(-84deg);
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    border: 1px solid rgba(114, 130, 211, 0.3);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, #171d33, #080b14 60%, #151b30);
    box-shadow:
        inset 0 1px rgba(255,255,255,0.1),
        -1rem -0.5rem 3rem rgba(154, 77, 255, 0.08),
        1rem -0.5rem 3rem rgba(32, 217, 255, 0.07);
}

.scene-static-laptop__screen {
    position: absolute;
    inset: 4.7%;
    overflow: hidden;
    border-radius: 0.8rem;
    opacity: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(63, 85, 255, 0.15), transparent 35%),
        linear-gradient(150deg, #07101f, #050816 60%, #02040b);
    box-shadow:
        inset 0 0 0 1px rgba(96, 119, 220, 0.18),
        0 0 2.5rem rgba(61, 88, 255, 0.18);
}

.scene-static-laptop__tabs {
    display: flex;
    gap: clamp(0.65rem, 1.4vw, 1.2rem);
    padding: clamp(0.65rem, 1.4vw, 1rem) clamp(0.8rem, 1.7vw, 1.25rem);
    border-bottom: 1px solid rgba(97, 116, 194, 0.18);
    color: rgba(224, 232, 255, 0.82);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.48rem, 0.7vw, 0.7rem);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.scene-static-laptop__tabs span:nth-child(1) { color: #c08aff; }
.scene-static-laptop__tabs span:nth-child(2) { color: #7c9aff; }
.scene-static-laptop__tabs span:nth-child(3) { color: #54e6ff; }
.scene-static-laptop__tabs span:nth-child(4) { color: #83b7ff; }

.scene-static-laptop__screen pre {
    margin: 0;
    padding: clamp(0.7rem, 1.4vw, 1.25rem);
    color: #cdd7ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.42rem, 0.62vw, 0.67rem);
    line-height: 1.55;
    white-space: pre-wrap;
}

.scene-static-laptop__reflection {
    position: absolute;
    left: 50%;
    top: 69%;
    width: clamp(18rem, 48vw, 42rem);
    height: clamp(4rem, 10vw, 8rem);
    transform: translate(-50%, -50%) rotateX(72deg);
    border-radius: 50%;
    opacity: 0.62;
    filter: blur(clamp(1rem, 2vw, 2rem));
    background:
        radial-gradient(ellipse, rgba(103, 75, 255, 0.36), rgba(35, 112, 255, 0.17) 38%, rgba(32, 217, 255, 0.06) 58%, transparent 76%);
}

.scene-root.is-webgl-fallback[data-active-frame="1"] .scene-static-laptop,
.scene-root.is-webgl-fallback[data-active-frame="2"] .scene-static-laptop,
.scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-laptop,
.reduced-motion .scene-root[data-active-frame="1"] .scene-static-laptop,
.reduced-motion .scene-root[data-active-frame="2"] .scene-static-laptop,
.reduced-motion .scene-root[data-active-frame="3"] .scene-static-laptop {
    display: grid;
}

.scene-root.is-webgl-fallback[data-active-frame="2"] .scene-static-laptop__lid,
.scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-laptop__lid,
.reduced-motion .scene-root[data-active-frame="2"] .scene-static-laptop__lid,
.reduced-motion .scene-root[data-active-frame="3"] .scene-static-laptop__lid {
    transform: translateX(-50%) rotateX(-8deg);
}

.scene-root.is-webgl-fallback[data-active-frame="2"] .scene-static-laptop__screen,
.scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-laptop__screen,
.reduced-motion .scene-root[data-active-frame="2"] .scene-static-laptop__screen,
.reduced-motion .scene-root[data-active-frame="3"] .scene-static-laptop__screen {
    opacity: 1;
}

.scene-root[data-active-frame="0"] .scene-phase-label,
.scene-root[data-active-frame="1"] .scene-phase-label,
.scene-root[data-active-frame="2"] .scene-phase-label {
    opacity: 1;
}

.scene-root[data-active-frame="3"] .scene-phase-label {
    opacity: 1;
}

/* Frames 05 and 06 are implemented; Frames 07–10 remain future milestones. */
.scene-root[data-active-frame="4"] .scene-phase-label,
.scene-root[data-active-frame="5"] .scene-phase-label {
    opacity: 1;
}

.scene-root[data-active-frame="6"] .scene-phase-label,
.scene-root[data-active-frame="7"] .scene-phase-label,
.scene-root[data-active-frame="8"] .scene-phase-label,
.scene-root[data-active-frame="9"] .scene-phase-label {
    opacity: 0.2;
}

@media (max-width: 56rem) {
    .scene-static-laptop {
        padding-inline: clamp(1rem, 3vw, 2rem);
    }

    .scene-static-laptop__device {
        width: clamp(18rem, 66vw, 34rem);
        height: clamp(13rem, 47vw, 25rem);
    }
}

@media (max-width: 40rem) {
    .scene-static-laptop {
        max-width: 100vw;
        padding: var(--header-height) 0.8rem 5.6rem;
    }

    .scene-static-laptop__device {
        width: min(84vw, 23rem);
        height: min(66vw, 18rem);
        transform: translateY(2vh) rotateY(-4deg);
    }

    .scene-static-laptop__reflection {
        width: min(82vw, 22rem);
        top: 67%;
    }

    .scene-static-laptop__tabs {
        gap: 0.55rem;
        padding: 0.55rem 0.65rem;
        font-size: 0.42rem;
    }

    .scene-static-laptop__screen pre {
        padding: 0.6rem;
        font-size: clamp(0.34rem, 1.7vw, 0.48rem);
        line-height: 1.42;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scene-static-laptop__device,
    .scene-static-laptop__lid,
    .scene-static-laptop__screen,
    .scene-static-laptop__reflection {
        transition: none !important;
    }
}


/* ==========================================================
   11. PHASE 4 — FRAME 04 FALLBACK DEVELOPMENT ECOSYSTEM
   ========================================================== */

.scene-static-ecosystem {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.scene-static-ecosystem__lines {
    position: absolute;
    inset: 8% 6% 10%;
    width: 88%;
    height: 80%;
    overflow: visible;
    filter: drop-shadow(0 0 1rem rgba(105, 81, 255, 0.22));
}

.scene-static-ecosystem__lines line {
    stroke: rgba(94, 108, 255, 0.46);
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-dasharray: 5 12;
}

.scene-static-ecosystem__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(7rem, 12vw, 11rem);
    aspect-ratio: 1;
    transform: translate(-50%, -52%);
    transform-style: preserve-3d;
}

.scene-static-ecosystem__core,
.scene-static-ecosystem__cube,
.scene-static-ecosystem__pulse {
    position: absolute;
    inset: 50%;
    border-radius: 1rem;
    transform-style: preserve-3d;
}

.scene-static-ecosystem__core {
    width: 38%;
    height: 38%;
    transform: translate(-50%, -50%) rotate(45deg);
    background:
        linear-gradient(135deg, rgba(67, 205, 255, 0.96), rgba(122, 73, 255, 0.95));
    box-shadow:
        0 0 1.4rem rgba(91, 106, 255, 0.32),
        0 0 2.6rem rgba(162, 89, 255, 0.28);
}

.scene-static-ecosystem__cube {
    width: 18%;
    height: 18%;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid rgba(160, 184, 255, 0.3);
    background: linear-gradient(145deg, rgba(18, 27, 58, 0.94), rgba(7, 12, 28, 0.92));
    box-shadow: 0 0 1rem rgba(49, 114, 255, 0.18);
}

.scene-static-ecosystem__cube--a { top: 25%; left: 32%; }
.scene-static-ecosystem__cube--b { top: 26%; left: 70%; }
.scene-static-ecosystem__cube--c { top: 72%; left: 66%; }

.scene-static-ecosystem__pulse {
    width: 135%;
    height: 135%;
    border-radius: 50%;
    border: 1px solid rgba(120, 98, 255, 0.22);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 2rem rgba(111, 90, 255, 0.12), inset 0 0 1rem rgba(32, 217, 255, 0.05);
}

.scene-static-ecosystem__pulse--one {
    width: 110%;
    height: 110%;
}

.scene-static-ecosystem__modules {
    position: absolute;
    inset: 0;
}

.scene-static-module {
    position: absolute;
    min-width: clamp(8.6rem, 12vw, 11rem);
    max-width: clamp(9.2rem, 13vw, 12.25rem);
    padding: 0.72rem 0.82rem 0.76rem;
    border: 1px solid rgba(110, 129, 214, 0.22);
    border-radius: 0.95rem;
    background:
        linear-gradient(165deg, rgba(13, 19, 40, 0.92), rgba(5, 9, 23, 0.94));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.05),
        0 0 1.35rem rgba(63, 85, 255, 0.08);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
}

.scene-static-module::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 0.72rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    box-shadow: 0 0 0.9rem rgba(32, 217, 255, 0.48);
}

.scene-static-module h3 {
    margin: 0 0 0.34rem;
    padding-left: 1rem;
    color: #f2f5ff;
    font-size: clamp(0.58rem, 0.78vw, 0.74rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.scene-static-module p {
    margin: 0;
    color: rgba(205, 216, 255, 0.68);
    font-size: clamp(0.46rem, 0.62vw, 0.58rem);
    line-height: 1.45;
}

.scene-static-module--solutions { left: 8%; top: 13%; }
.scene-static-module--websites { right: 8%; top: 13%; }
.scene-static-module--themes { left: 7%; top: 29%; }
.scene-static-module--plugins { right: 7%; top: 29%; }
.scene-static-module--api { right: 6%; top: 47%; }
.scene-static-module--database { left: 50%; top: 7%; transform: translateX(-50%); }
.scene-static-module--functionality { right: 7%; top: 64%; }
.scene-static-module--architecture { left: 7%; top: 48%; }
.scene-static-module--performance { left: 8%; top: 65%; }

.scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-ecosystem,
.reduced-motion .scene-root[data-active-frame="3"] .scene-static-ecosystem {
    opacity: 1;
}

.scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-laptop__device,
.reduced-motion .scene-root[data-active-frame="3"] .scene-static-laptop__device {
    transform: translateY(clamp(2rem, 7vh, 4rem)) rotateY(-10deg) scale(0.78);
}

.scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-laptop__reflection,
.reduced-motion .scene-root[data-active-frame="3"] .scene-static-laptop__reflection {
    opacity: 0.22;
    top: 71%;
}

@media (max-width: 56rem) {
    .scene-static-ecosystem__hub {
        width: clamp(6.2rem, 16vw, 8.5rem);
    }

    .scene-static-module {
        min-width: clamp(7.4rem, 14vw, 9rem);
        max-width: clamp(7.8rem, 16vw, 9.6rem);
        padding: 0.62rem 0.7rem;
    }

    .scene-static-module--solutions { left: 4.5%; top: 14%; }
    .scene-static-module--websites { right: 4.5%; top: 14%; }
    .scene-static-module--themes { left: 4.5%; top: 30%; }
    .scene-static-module--plugins { right: 4.5%; top: 30%; }
    .scene-static-module--api { right: 5%; top: 48%; }
    .scene-static-module--database { top: 9%; }
    .scene-static-module--functionality { right: 5%; top: 65%; }
    .scene-static-module--architecture { left: 4.5%; top: 48%; }
    .scene-static-module--performance { left: 4.5%; top: 65%; }
}

@media (max-width: 40rem) {
    .scene-static-ecosystem__lines {
        display: none;
    }

    .scene-static-ecosystem__hub {
        top: 28%;
        width: min(26vw, 6.75rem);
        transform: translate(-50%, -50%);
    }

    .scene-root.is-webgl-fallback[data-active-frame="3"] .scene-static-laptop__device,
    .reduced-motion .scene-root[data-active-frame="3"] .scene-static-laptop__device {
        transform: translateY(4.5vh) rotateY(-4deg) scale(0.64);
    }

    .scene-static-ecosystem__modules {
        inset: auto 0 1.15rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        width: min(92vw, 25rem);
        margin: 0 auto;
        padding-inline: 0.65rem;
    }

    .scene-static-module {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none !important;
        min-width: 0;
        max-width: none;
    }

    .scene-static-module--database {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(70vw, 13rem);
    }
}


/* ==========================================================
   12. PHASE 5 — FRAME 05 / WE BUILD EVERYTHING
   ========================================================== */

.product-ecosystem {
    position: absolute;
    z-index: 6;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    overflow: clip;
    pointer-events: none;
    perspective: clamp(760px, 92vw, 1500px);
    perspective-origin: 50% 48%;
    transform-style: preserve-3d;
    contain: layout paint;
}

.product-ecosystem::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    width: clamp(18rem, 52vw, 58rem);
    aspect-ratio: 1.7 / 1;
    transform: translate(-50%, -50%) rotateX(73deg);
    border-radius: 50%;
    background:
        radial-gradient(ellipse, rgba(104, 67, 255, 0.18), rgba(32, 137, 255, 0.08) 36%, transparent 70%);
    filter: blur(clamp(1rem, 2vw, 2.25rem));
    opacity: 0.82;
}

.product-ecosystem__depth {
    position: absolute;
    inset: clamp(0.5rem, 2vh, 1.5rem) clamp(0.5rem, 1.5vw, 1.5rem) clamp(4.8rem, 10vh, 7rem);
    transform-style: preserve-3d;
    will-change: transform;
}

.product-screen {
    --screen-accent: #7c68ff;
    --screen-accent-soft: rgba(124, 104, 255, 0.16);
    --screen-cyan: #38dfff;

    position: absolute;
    left: 50%;
    top: 48%;
    width: clamp(18rem, 37vw, 40rem);
    aspect-ratio: 16 / 10.1;
    visibility: hidden;
    opacity: 0;
    translate: -50% -50%;
    transform: none;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.product-screen--business-website { --screen-accent: #8f63ff; --screen-cyan: #38dcff; }
.product-screen--ecommerce-store { --screen-accent: #4f78ff; --screen-cyan: #54e7ff; }
.product-screen--corporate-website { --screen-accent: #6f6dff; --screen-cyan: #80bfff; }
.product-screen--custom-web-application { --screen-accent: #b05eff; --screen-cyan: #5bd9ff; }
.product-screen--client-portal { --screen-accent: #626fff; --screen-cyan: #35d5ff; }
.product-screen--dashboard { --screen-accent: #4f83ff; --screen-cyan: #38e8e0; }
.product-screen--marketplace { --screen-accent: #9b62ff; --screen-cyan: #4ccaff; }
.product-screen--booking-system { --screen-accent: #5573ff; --screen-cyan: #65efff; }
.product-screen--dynamic-website { --screen-accent: #a65fff; --screen-cyan: #41d7ff; }
.product-screen--custom-system { --screen-accent: #745aff; --screen-cyan: #35e1ff; }

.product-screen__shell {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(126, 145, 231, 0.25);
    border-radius: clamp(0.75rem, 1.35vw, 1.25rem);
    background:
        radial-gradient(circle at 72% 16%, color-mix(in srgb, var(--screen-accent) 14%, transparent), transparent 38%),
        linear-gradient(155deg, rgba(13, 18, 40, 0.98), rgba(5, 8, 20, 0.99));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.07),
        0 0 clamp(1.2rem, 2.5vw, 2.8rem) color-mix(in srgb, var(--screen-accent) 15%, transparent),
        0 1rem 3rem rgba(0, 0, 0, 0.38);
    backface-visibility: hidden;
}

.product-screen__shell::after {
    content: '';
    position: absolute;
    inset: auto 7% -13% 7%;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--screen-accent) 23%, transparent), transparent 70%);
    filter: blur(1rem);
    opacity: 0.75;
    pointer-events: none;
}

.product-screen--featured .product-screen__shell {
    border-color: rgba(117, 146, 255, 0.42);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.09),
        0 0 clamp(1.8rem, 4vw, 4rem) rgba(91, 86, 255, 0.24),
        0 0 clamp(1.2rem, 3vw, 3rem) rgba(32, 217, 255, 0.08),
        0 1.25rem 4rem rgba(0, 0, 0, 0.48);
}

.product-screen__browserbar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.45rem, 0.9vw, 0.8rem);
    min-height: clamp(1.75rem, 3.1vw, 2.7rem);
    padding-inline: clamp(0.55rem, 1.15vw, 1rem);
    border-bottom: 1px solid rgba(105, 123, 198, 0.15);
    background: linear-gradient(180deg, rgba(18, 24, 48, 0.94), rgba(8, 12, 28, 0.94));
}

.product-screen__traffic {
    display: inline-flex;
    gap: clamp(0.18rem, 0.38vw, 0.3rem);
}

.product-screen__traffic i {
    width: clamp(0.3rem, 0.52vw, 0.46rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(164, 176, 225, 0.34);
}

.product-screen__traffic i:first-child { background: color-mix(in srgb, var(--screen-accent) 82%, #fff 18%); }
.product-screen__traffic i:nth-child(2) { background: rgba(86, 125, 255, 0.68); }
.product-screen__traffic i:nth-child(3) { background: color-mix(in srgb, var(--screen-cyan) 72%, transparent); }

.product-screen__address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    width: min(78%, 20rem);
    margin-inline: auto;
    padding: clamp(0.23rem, 0.45vw, 0.38rem) clamp(0.55rem, 1vw, 0.9rem);
    overflow: hidden;
    border: 1px solid rgba(105, 122, 191, 0.16);
    border-radius: 999px;
    background: rgba(3, 7, 19, 0.64);
    color: rgba(201, 211, 244, 0.62);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.38rem, 0.56vw, 0.58rem);
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-screen__lock {
    color: var(--screen-cyan);
    font-size: 0.58em;
}

.product-screen__browser-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.product-screen__browser-actions i {
    width: clamp(0.55rem, 0.95vw, 0.85rem);
    height: 2px;
    border-radius: 999px;
    background: rgba(137, 151, 207, 0.28);
}

.product-screen__surface {
    position: relative;
    display: flex;
    height: calc(100% - clamp(1.75rem, 3.1vw, 2.7rem));
    overflow: hidden;
    background:
        linear-gradient(rgba(67, 83, 164, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 83, 164, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--screen-accent) 11%, transparent), transparent 34%),
        #070b18;
    background-size: 2rem 2rem, 2rem 2rem, auto, auto;
}

.product-screen__app-rail {
    display: none;
    flex: 0 0 clamp(2.2rem, 4.1vw, 3.6rem);
    flex-direction: column;
    align-items: center;
    gap: clamp(0.55rem, 1vw, 0.9rem);
    padding-top: clamp(0.75rem, 1.3vw, 1.1rem);
    border-right: 1px solid rgba(106, 126, 203, 0.12);
    background: rgba(4, 8, 20, 0.68);
}

.product-screen--application .product-screen__app-rail,
.product-screen--portal .product-screen__app-rail,
.product-screen--dashboard .product-screen__app-rail,
.product-screen--system .product-screen__app-rail {
    display: flex;
}

.product-screen__app-rail span {
    width: clamp(0.52rem, 0.88vw, 0.78rem);
    aspect-ratio: 1;
    border-radius: 0.22rem;
    background: rgba(112, 131, 205, 0.16);
}

.product-screen__app-rail .product-screen__brand-dot {
    width: clamp(0.72rem, 1.25vw, 1.05rem);
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, var(--screen-accent), var(--screen-cyan));
    box-shadow: 0 0 1rem color-mix(in srgb, var(--screen-cyan) 32%, transparent);
}

.product-screen__page {
    min-width: 0;
    flex: 1;
    padding: clamp(0.65rem, 1.2vw, 1.05rem);
}

.product-screen__page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.product-screen__page-header > div {
    display: grid;
    gap: 0.12rem;
}

.product-screen__page-header strong {
    color: rgba(241, 245, 255, 0.94);
    font-size: clamp(0.58rem, 0.92vw, 0.88rem);
    line-height: 1.1;
}

.product-screen__eyebrow,
.product-screen__mini-label {
    color: var(--screen-cyan);
    font-size: clamp(0.31rem, 0.45vw, 0.46rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.product-screen__action {
    padding: clamp(0.2rem, 0.35vw, 0.32rem) clamp(0.45rem, 0.72vw, 0.68rem);
    border: 1px solid color-mix(in srgb, var(--screen-accent) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--screen-accent) 10%, transparent);
    color: #dce5ff;
    font-size: clamp(0.3rem, 0.44vw, 0.44rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-screen__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(5rem, 0.85fr);
    align-items: center;
    gap: clamp(0.55rem, 1.2vw, 1.1rem);
    min-height: 40%;
    margin-top: clamp(0.55rem, 1vw, 0.85rem);
    padding: clamp(0.7rem, 1.25vw, 1.15rem);
    overflow: hidden;
    border: 1px solid rgba(99, 119, 197, 0.13);
    border-radius: clamp(0.55rem, 1vw, 0.9rem);
    background:
        radial-gradient(circle at 75% 42%, color-mix(in srgb, var(--screen-accent) 18%, transparent), transparent 42%),
        linear-gradient(135deg, rgba(15, 22, 49, 0.74), rgba(5, 10, 24, 0.82));
}

.product-screen__hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.product-screen__hero-copy > strong {
    margin-top: clamp(0.28rem, 0.55vw, 0.52rem);
    color: #f6f8ff;
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1.6vw, 1.5rem);
    line-height: 0.98;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-screen__copy-lines {
    display: grid;
    gap: clamp(0.18rem, 0.3vw, 0.28rem);
    width: min(100%, 11rem);
    margin-top: clamp(0.45rem, 0.75vw, 0.7rem);
}

.product-screen__copy-lines i {
    display: block;
    height: clamp(0.14rem, 0.24vw, 0.22rem);
    border-radius: 999px;
    background: rgba(139, 155, 205, 0.17);
}

.product-screen__copy-lines i:nth-child(2) { width: 82%; }
.product-screen__copy-lines i:nth-child(3) { width: 61%; }

.product-screen__cta {
    margin-top: clamp(0.5rem, 0.85vw, 0.75rem);
    padding: clamp(0.24rem, 0.42vw, 0.38rem) clamp(0.48rem, 0.82vw, 0.75rem);
    border-radius: 0.38rem;
    background: linear-gradient(115deg, var(--screen-accent), var(--screen-cyan));
    color: #fff;
    font-size: clamp(0.3rem, 0.44vw, 0.44rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 1rem color-mix(in srgb, var(--screen-accent) 22%, transparent);
}

.product-screen__hero-visual {
    position: relative;
    min-height: clamp(4.3rem, 8.5vw, 8rem);
    transform-style: preserve-3d;
}

.product-screen__orb {
    position: absolute;
    left: 50%;
    top: 48%;
    width: clamp(2.1rem, 4.4vw, 4.1rem);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid color-mix(in srgb, var(--screen-cyan) 32%, transparent);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(225, 237, 255, 0.68), var(--screen-accent) 20%, rgba(18, 31, 79, 0.4) 50%, transparent 72%);
    box-shadow: 0 0 1.6rem color-mix(in srgb, var(--screen-accent) 35%, transparent);
}

.product-screen__stack {
    position: absolute;
    width: 35%;
    height: 25%;
    border: 1px solid rgba(126, 146, 226, 0.22);
    border-radius: 0.4rem;
    background: rgba(9, 16, 38, 0.78);
    box-shadow: 0 0 0.9rem rgba(75, 91, 211, 0.08);
}

.product-screen__stack--one { left: 5%; top: 12%; transform: rotate(-7deg); }
.product-screen__stack--two { right: 2%; top: 24%; transform: rotate(7deg); }
.product-screen__stack--three { left: 18%; bottom: 4%; transform: rotate(3deg); }

.product-screen__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.3rem, 0.65vw, 0.6rem);
    margin-top: clamp(0.45rem, 0.8vw, 0.72rem);
}

.product-screen__metric {
    position: relative;
    min-width: 0;
    padding: clamp(0.4rem, 0.72vw, 0.65rem);
    overflow: hidden;
    border: 1px solid rgba(97, 118, 196, 0.11);
    border-radius: clamp(0.35rem, 0.62vw, 0.55rem);
    background: rgba(8, 14, 31, 0.72);
}

.product-screen__metric span {
    display: block;
    overflow: hidden;
    color: rgba(186, 199, 238, 0.58);
    font-size: clamp(0.28rem, 0.42vw, 0.42rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-screen__metric strong {
    display: block;
    margin-top: 0.08rem;
    color: #edf2ff;
    font-size: clamp(0.48rem, 0.78vw, 0.72rem);
}

.product-screen__metric i {
    position: absolute;
    right: 8%;
    bottom: 16%;
    width: 28%;
    height: 2px;
    background: linear-gradient(90deg, var(--screen-accent), var(--screen-cyan));
    box-shadow: 0 0 0.65rem color-mix(in srgb, var(--screen-cyan) 28%, transparent);
}

.product-screen__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(3.8rem, 0.55fr);
    gap: clamp(0.35rem, 0.65vw, 0.6rem);
    height: 20%;
    min-height: clamp(2.4rem, 4.8vw, 4.3rem);
    margin-top: clamp(0.4rem, 0.75vw, 0.65rem);
}

.product-screen__workspace-main,
.product-screen__workspace-side {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 119, 197, 0.1);
    border-radius: clamp(0.32rem, 0.58vw, 0.5rem);
    background: rgba(7, 12, 28, 0.78);
}

.product-screen__bars {
    position: absolute;
    inset: auto 8% 12%;
    display: flex;
    align-items: flex-end;
    gap: 4%;
    height: 58%;
}

.product-screen__bars i {
    flex: 1;
    height: 30%;
    min-width: 2px;
    border-radius: 0.15rem 0.15rem 0 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--screen-accent) 68%, transparent), var(--screen-cyan));
    opacity: 0.6;
}

.product-screen__bars i:nth-child(2) { height: 54%; }
.product-screen__bars i:nth-child(3) { height: 41%; }
.product-screen__bars i:nth-child(4) { height: 78%; }
.product-screen__bars i:nth-child(5) { height: 63%; }
.product-screen__bars i:nth-child(6) { height: 88%; }
.product-screen__bars i:nth-child(7) { height: 70%; }

.product-screen__chart-line {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--screen-cyan), var(--screen-accent), transparent);
    opacity: 0.54;
}

.product-screen__chart-line--one { top: 36%; transform: rotate(-5deg); }
.product-screen__chart-line--two { top: 54%; transform: rotate(4deg); opacity: 0.28; }

.product-screen__workspace-side {
    display: grid;
    align-content: center;
    gap: 10%;
    padding: 16%;
}

.product-screen__workspace-side span {
    display: block;
    height: 14%;
    min-height: 2px;
    border-radius: 999px;
    background: rgba(123, 143, 210, 0.18);
}

.product-screen__workspace-side span:first-child {
    width: 74%;
    background: linear-gradient(90deg, var(--screen-accent), var(--screen-cyan));
    opacity: 0.65;
}

/* Commerce / marketplace panels read more like storefronts. */
.product-screen--commerce .product-screen__hero,
.product-screen--marketplace .product-screen__hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.product-screen--commerce .product-screen__hero-visual,
.product-screen--marketplace .product-screen__hero-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6%;
    align-items: end;
}

.product-screen--commerce .product-screen__stack,
.product-screen--marketplace .product-screen__stack {
    position: relative;
    inset: auto;
    width: 100%;
    height: 68%;
    transform: none;
    border-color: color-mix(in srgb, var(--screen-accent) 24%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--screen-accent) 12%, transparent), transparent 48%),
        rgba(7, 13, 31, 0.9);
}

.product-screen--commerce .product-screen__orb,
.product-screen--marketplace .product-screen__orb {
    display: none;
}

/* Booking panels suggest a schedule/timeslot interface. */
.product-screen--booking .product-screen__hero-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.25rem;
    padding: 8%;
}

.product-screen--booking .product-screen__stack {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0.28rem;
}

.product-screen--booking .product-screen__stack--three {
    grid-column: span 2;
}

.product-screen--booking .product-screen__orb {
    width: 22%;
    left: 78%;
    top: 72%;
}

/* App-like products emphasize operational data over marketing hero art. */
.product-screen--application .product-screen__hero,
.product-screen--portal .product-screen__hero,
.product-screen--dashboard .product-screen__hero,
.product-screen--system .product-screen__hero {
    min-height: 31%;
    grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 0.72fr);
}

.product-screen--application .product-screen__workspace,
.product-screen--portal .product-screen__workspace,
.product-screen--dashboard .product-screen__workspace,
.product-screen--system .product-screen__workspace {
    height: 28%;
}

.product-screen__label {
    position: absolute;
    left: 50%;
    top: calc(100% + clamp(0.45rem, 0.9vw, 0.8rem));
    display: flex;
    align-items: center;
    gap: clamp(0.35rem, 0.6vw, 0.55rem);
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.9);
}

.product-screen__label span {
    color: var(--screen-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.34rem, 0.46vw, 0.48rem);
}

.product-screen__label strong {
    color: rgba(230, 236, 255, 0.8);
    font-size: clamp(0.4rem, 0.57vw, 0.58rem);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.product-ecosystem__message {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: clamp(1rem, 2.8vh, 2.1rem);
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    width: min(82%, 43rem);
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    text-align: center;
}

.product-ecosystem__message span {
    color: var(--color-cyan);
    font-size: clamp(0.48rem, 0.62vw, 0.64rem);
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 0 1rem rgba(32, 217, 255, 0.22);
}

.product-ecosystem__message strong {
    color: rgba(236, 241, 255, 0.84);
    font-size: clamp(0.58rem, 0.8vw, 0.82rem);
    font-weight: 650;
    letter-spacing: 0.09em;
    line-height: 1.5;
}

/* Static/reduced-motion state. The product screens remain real DOM, only the
   cinematic transition is removed. */
.scene-root.is-webgl-fallback[data-active-frame="4"] .product-ecosystem,
.reduced-motion .scene-root[data-active-frame="4"] .product-ecosystem {
    visibility: visible;
    opacity: 1;
}

.scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen,
.reduced-motion .scene-root[data-active-frame="4"] .product-screen {
    visibility: hidden;
    opacity: 0;
}

.scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen:nth-child(1),
.reduced-motion .scene-root[data-active-frame="4"] .product-screen:nth-child(1) {
    visibility: visible;
    opacity: 1;
    translate: -50% -52%;
    transform: scale(0.92);
}

.scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen:nth-child(2),
.reduced-motion .scene-root[data-active-frame="4"] .product-screen:nth-child(2) {
    visibility: visible;
    opacity: 0.48;
    translate: -105% -42%;
    transform: scale(0.48) rotateY(18deg);
}

.scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen:nth-child(4),
.reduced-motion .scene-root[data-active-frame="4"] .product-screen:nth-child(4) {
    visibility: visible;
    opacity: 0.48;
    translate: 5% -42%;
    transform: scale(0.48) rotateY(-18deg);
}

.scene-root.is-webgl-fallback[data-active-frame="4"] .product-ecosystem__message,
.reduced-motion .scene-root[data-active-frame="4"] .product-ecosystem__message {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 74rem) {
    .product-screen {
        width: clamp(17rem, 46vw, 34rem);
    }

    .product-ecosystem__message {
        bottom: clamp(0.8rem, 2vh, 1.4rem);
    }
}

@media (max-width: 56rem) {
    .product-ecosystem {
        perspective: clamp(660px, 105vw, 1000px);
    }

    .product-screen {
        width: clamp(16rem, 57vw, 30rem);
    }

    .product-screen__page {
        padding: clamp(0.55rem, 1vw, 0.8rem);
    }

    .product-screen__hero {
        min-height: 38%;
    }

    .product-screen__label {
        top: calc(100% + 0.45rem);
    }
}

@media (max-width: 40rem) {
    .product-ecosystem {
        max-width: 100vw;
        perspective: 760px;
    }

    .product-ecosystem__depth {
        inset: 0 0 5.7rem;
    }

    .product-screen {
        top: 46%;
        width: min(83vw, 22rem);
        max-width: calc(100vw - 1.5rem);
    }

    .product-screen__browserbar {
        min-height: 1.55rem;
        padding-inline: 0.45rem;
    }

    .product-screen__address {
        width: 82%;
        font-size: 0.34rem;
    }

    .product-screen__surface {
        height: calc(100% - 1.55rem);
    }

    .product-screen__page {
        padding: 0.48rem;
    }

    .product-screen__hero {
        gap: 0.4rem;
        min-height: 39%;
        margin-top: 0.42rem;
        padding: 0.52rem;
    }

    .product-screen__hero-copy > strong {
        font-size: clamp(0.68rem, 3.2vw, 0.94rem);
    }

    .product-screen__mini-label,
    .product-screen__eyebrow {
        font-size: 0.27rem;
    }

    .product-screen__metrics {
        gap: 0.25rem;
        margin-top: 0.35rem;
    }

    .product-screen__metric {
        padding: 0.32rem;
    }

    .product-screen__workspace {
        min-height: 2rem;
        margin-top: 0.3rem;
    }

    .product-screen__label {
        display: none;
    }

    .product-ecosystem__message {
        bottom: 1rem;
        width: min(90vw, 24rem);
    }

    .product-ecosystem__message span {
        font-size: 0.42rem;
        letter-spacing: 0.18em;
    }

    .product-ecosystem__message strong {
        font-size: 0.5rem;
        letter-spacing: 0.06em;
    }

    .scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen:nth-child(1),
    .reduced-motion .scene-root[data-active-frame="4"] .product-screen:nth-child(1) {
        translate: -50% -56%;
        transform: scale(0.86);
    }

    .scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen:nth-child(2),
    .reduced-motion .scene-root[data-active-frame="4"] .product-screen:nth-child(2) {
        opacity: 0.24;
        translate: -82% -42%;
        transform: scale(0.64) rotateY(12deg) translateZ(-8rem);
    }

    .scene-root.is-webgl-fallback[data-active-frame="4"] .product-screen:nth-child(4),
    .reduced-motion .scene-root[data-active-frame="4"] .product-screen:nth-child(4) {
        opacity: 0.24;
        translate: -18% -42%;
        transform: scale(0.64) rotateY(-12deg) translateZ(-9rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-ecosystem,
    .product-screen,
    .product-ecosystem__depth,
    .product-ecosystem__message {
        transition: none !important;
    }
}

/* ==========================================================
   13. PHASE 6 — FRAME 06 / TRANSFORMING IDEAS
   ========================================================== */

/* Frame 06 reuses the real Frame 05 product-screen DOM. These overlays are
   process states attached to those existing browser panels, not standalone
   cards or replacement screenshots. They are hidden before the Frame 06
   child timeline reaches them. */
.product-screen__journey-overlay {
    position: absolute;
    z-index: 12;
    inset: clamp(1.75rem, 3.1vw, 2.7rem) 0 0;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    border-radius: 0 0 clamp(0.72rem, 1.25vw, 1.15rem) clamp(0.72rem, 1.25vw, 1.15rem);
    background: rgba(4, 8, 21, 0.94);
    pointer-events: none;
    will-change: transform, opacity;
}

/* IDEA & RESEARCH — blueprint/wireframe state. */
.product-screen__journey-overlay--wireframe {
    background:
        linear-gradient(rgba(70, 113, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 113, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 70% 24%, rgba(32, 217, 255, 0.08), transparent 34%),
        #060b1c;
    background-size: 1.2rem 1.2rem, 1.2rem 1.2rem, auto, auto;
}

.product-screen__journey-overlay--wireframe > span:not(.journey-wireframe__cursor) {
    position: absolute;
    display: block;
    border: 1px solid rgba(72, 184, 255, 0.38);
    border-radius: 0.28rem;
    background: rgba(59, 90, 208, 0.055);
    box-shadow: inset 0 0 1rem rgba(32, 217, 255, 0.025);
}

.journey-wireframe__topbar {
    left: 6%;
    top: 7%;
    width: 88%;
    height: 8%;
}

.journey-wireframe__sidebar {
    left: 6%;
    top: 20%;
    width: 14%;
    height: 70%;
}

.journey-wireframe__hero {
    left: 24%;
    top: 20%;
    width: 70%;
    height: 35%;
}

.journey-wireframe__line {
    left: 29%;
    height: 2px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(67, 128, 255, 0.8), rgba(32, 217, 255, 0.34), transparent) !important;
}

.journey-wireframe__line--one { top: 29%; width: 31%; }
.journey-wireframe__line--two { top: 36%; width: 48%; opacity: 0.7; }
.journey-wireframe__line--three { top: 43%; width: 38%; opacity: 0.48; }

.journey-wireframe__block { top: 62%; height: 25%; }
.journey-wireframe__block--one { left: 24%; width: 20%; }
.journey-wireframe__block--two { left: 48%; width: 20%; }
.journey-wireframe__block--three { left: 72%; width: 22%; }

.journey-wireframe__cursor {
    position: absolute;
    left: 58%;
    top: 36%;
    width: 0;
    height: 0;
    border-top: 0.52rem solid transparent;
    border-bottom: 0.52rem solid transparent;
    border-left: 0.78rem solid #5de7ff;
    filter: drop-shadow(0 0 0.55rem rgba(32, 217, 255, 0.72));
    transform: rotate(-36deg);
}

/* PLANNING — connected system map on the existing central app panel. */
.product-screen__journey-overlay--planning {
    background:
        radial-gradient(circle at 50% 50%, rgba(110, 72, 255, 0.13), transparent 38%),
        linear-gradient(rgba(84, 95, 180, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 95, 180, 0.045) 1px, transparent 1px),
        rgba(5, 8, 22, 0.96);
    background-size: auto, 1.8rem 1.8rem, 1.8rem 1.8rem, auto;
}

.journey-planning__node {
    position: absolute;
    width: clamp(0.8rem, 2vw, 1.35rem);
    aspect-ratio: 1;
    border: 1px solid rgba(118, 113, 255, 0.64);
    border-radius: 0.35rem;
    background: linear-gradient(145deg, rgba(102, 72, 255, 0.8), rgba(31, 160, 255, 0.72));
    box-shadow: 0 0 1rem rgba(80, 98, 255, 0.32);
    transform: rotate(45deg);
}

.journey-planning__node--one { left: 17%; top: 24%; }
.journey-planning__node--two { left: 46%; top: 42%; width: clamp(1.1rem, 2.5vw, 1.7rem); }
.journey-planning__node--three { right: 18%; top: 22%; }
.journey-planning__node--four { right: 25%; bottom: 20%; }

.journey-planning__link {
    position: absolute;
    left: 24%;
    top: 31%;
    height: 1px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #8b64ff, #26dcff);
    box-shadow: 0 0 0.75rem rgba(64, 129, 255, 0.4);
}

.journey-planning__link--one { width: 31%; transform: rotate(23deg); }
.journey-planning__link--two { left: 53%; top: 48%; width: 25%; transform: rotate(-31deg); }
.journey-planning__link--three { left: 53%; top: 50%; width: 25%; transform: rotate(29deg); opacity: 0.72; }

.journey-planning__label {
    position: absolute;
    left: 7%;
    bottom: 8%;
    color: rgba(126, 225, 255, 0.66);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.32rem, 0.6vw, 0.55rem);
    font-weight: 800;
    letter-spacing: 0.2em;
}

/* DESIGN — UI layout and design-system guides. */
.product-screen__journey-overlay--design {
    background:
        radial-gradient(circle at 72% 20%, rgba(167, 87, 255, 0.12), transparent 34%),
        #070b1b;
}

.journey-design__canvas {
    position: absolute;
    inset: 10% 8%;
    border: 1px solid rgba(103, 126, 221, 0.25);
    border-radius: 0.5rem;
    background:
        linear-gradient(180deg, rgba(86, 72, 255, 0.12), transparent 38%),
        rgba(8, 14, 34, 0.84);
}

.journey-design__component {
    position: absolute;
    border: 1px solid rgba(127, 104, 255, 0.52);
    border-radius: 0.42rem;
    background: linear-gradient(145deg, rgba(104, 77, 255, 0.16), rgba(32, 217, 255, 0.06));
}

.journey-design__component--one { left: 13%; top: 20%; width: 44%; height: 28%; }
.journey-design__component--two { right: 13%; top: 20%; width: 24%; height: 28%; }
.journey-design__component--three { left: 13%; right: 13%; bottom: 17%; height: 24%; }

.journey-design__swatches {
    position: absolute;
    right: 14%;
    bottom: 20%;
    display: flex;
    gap: 0.28rem;
}

.journey-design__swatches i {
    width: clamp(0.42rem, 0.9vw, 0.72rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #8e65ff;
    box-shadow: 0 0 0.7rem rgba(142, 101, 255, 0.35);
}

.journey-design__swatches i:nth-child(2) { background: #596fff; }
.journey-design__swatches i:nth-child(3) { background: #27d7ff; }
.journey-design__swatches i:nth-child(4) { background: #d7e0ff; }

.journey-design__guide {
    position: absolute;
    background: rgba(32, 217, 255, 0.25);
}

.journey-design__guide--x { left: 9%; right: 9%; top: 55%; height: 1px; }
.journey-design__guide--y { top: 10%; bottom: 10%; left: 61%; width: 1px; }

/* DEVELOPMENT — real code state. */
.product-screen__journey-overlay--code {
    padding: clamp(0.7rem, 1.5vw, 1.25rem);
    background:
        linear-gradient(90deg, rgba(87, 62, 255, 0.08), transparent 32%),
        #050817;
    color: #cbd6ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.journey-code__tabs {
    display: flex;
    gap: 0.45rem;
    margin-bottom: clamp(0.55rem, 1vw, 0.85rem);
}

.journey-code__tabs span {
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(100, 119, 213, 0.18);
    border-radius: 999px;
    background: rgba(80, 69, 195, 0.08);
    color: rgba(157, 181, 255, 0.74);
    font-size: clamp(0.3rem, 0.55vw, 0.5rem);
    font-weight: 800;
}

.journey-code__tabs span:first-child {
    border-color: rgba(168, 98, 255, 0.38);
    color: #c78eff;
}

.product-screen__journey-overlay--code pre {
    margin: 0;
    color: rgba(214, 224, 255, 0.84);
    font-size: clamp(0.38rem, 0.72vw, 0.68rem);
    line-height: 1.65;
    white-space: pre-wrap;
}

.product-screen__journey-overlay--code code {
    color: inherit;
}

.journey-code__cursor {
    position: absolute;
    left: 51%;
    bottom: 19%;
    width: 2px;
    height: clamp(0.6rem, 1.2vw, 1rem);
    background: #33dcff;
    box-shadow: 0 0 0.75rem rgba(32, 217, 255, 0.7);
}

/* TESTING — scan line plus QA pass states. */
.product-screen__journey-overlay--testing {
    display: grid;
    align-content: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.45rem, 1vw, 0.8rem);
    padding: 12%;
    background:
        linear-gradient(rgba(62, 89, 176, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 89, 176, 0.045) 1px, transparent 1px),
        rgba(4, 9, 23, 0.96);
    background-size: 1.35rem 1.35rem, 1.35rem 1.35rem, auto;
}

.journey-testing__scan {
    position: absolute;
    z-index: 2;
    left: 5%;
    right: 5%;
    top: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #32dcff 18%, #a16cff 82%, transparent);
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.6);
}

.journey-testing__status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: clamp(1.8rem, 4vw, 3rem);
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(73, 191, 255, 0.18);
    border-radius: 0.5rem;
    background: rgba(15, 30, 52, 0.64);
    color: rgba(214, 230, 255, 0.76);
    font-size: clamp(0.3rem, 0.55vw, 0.52rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.journey-testing__status i {
    display: grid;
    place-items: center;
    width: clamp(0.9rem, 1.6vw, 1.3rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(32, 217, 255, 0.12);
    color: #5ce7ff;
    font-style: normal;
    box-shadow: 0 0 0.8rem rgba(32, 217, 255, 0.18);
}

/* LAUNCH — finished browser remains visible beneath a restrained live state. */
.product-screen__journey-overlay--launch {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.4rem;
    background: radial-gradient(circle, rgba(67, 89, 255, 0.18), rgba(5, 9, 22, 0.5) 48%, rgba(4, 7, 18, 0.78));
    text-align: center;
}

.journey-launch__halo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(72, 219, 255, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 2.2rem rgba(64, 91, 255, 0.24),
        inset 0 0 1.6rem rgba(32, 217, 255, 0.08);
}

.journey-launch__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #63edff;
    font-size: clamp(0.34rem, 0.6vw, 0.55rem);
    font-weight: 900;
    letter-spacing: 0.22em;
}

.journey-launch__status i {
    width: 0.42rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #48e5ff;
    box-shadow: 0 0 0.9rem rgba(32, 217, 255, 0.78);
}

.product-screen__journey-overlay--launch strong {
    position: relative;
    color: #f1f5ff;
    font-size: clamp(0.8rem, 1.8vw, 1.45rem);
    letter-spacing: 0.15em;
}

.product-screen__journey-overlay--launch small {
    position: relative;
    color: rgba(195, 210, 255, 0.62);
    font-size: clamp(0.28rem, 0.5vw, 0.46rem);
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* Global process path / stage labels. It is one continuous path, not six cards. */
.development-journey {
    position: absolute;
    z-index: 34;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.development-journey__heading {
    position: absolute;
    left: 50%;
    top: clamp(1.35rem, 4vh, 2.8rem);
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    width: min(68%, 38rem);
    transform: translateX(-50%);
    text-align: center;
}

.development-journey__heading span {
    color: #49dfff;
    font-size: clamp(0.48rem, 0.68vw, 0.68rem);
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-shadow: 0 0 1.2rem rgba(32, 217, 255, 0.22);
}

.development-journey__heading strong {
    color: rgba(229, 236, 255, 0.74);
    font-size: clamp(0.56rem, 0.76vw, 0.78rem);
    font-weight: 650;
    letter-spacing: 0.08em;
}

.development-journey__path {
    position: absolute;
    left: 50%;
    bottom: clamp(5.8rem, 11vh, 7.6rem);
    width: min(68%, 62rem);
    height: clamp(3.4rem, 8vh, 5.8rem);
    transform: translateX(-50%);
    overflow: visible;
}

.development-journey__path-base,
.development-journey__path-energy {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.development-journey__path-base {
    stroke: rgba(80, 95, 177, 0.18);
    stroke-width: 3;
}

.development-journey__path-energy {
    stroke: url(#iht-journey-gradient);
    stroke: #6f74ff;
    stroke-width: 4;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    filter: drop-shadow(0 0 0.55rem rgba(74, 122, 255, 0.52));
}

.development-journey__pulse {
    fill: #54e8ff;
    opacity: 0;
    filter: drop-shadow(0 0 0.55rem rgba(32, 217, 255, 0.9));
}

.development-journey__stages {
    position: absolute;
    left: 50%;
    bottom: clamp(2.8rem, 5vh, 4rem);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(78%, 72rem);
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    list-style: none;
}

.development-journey__stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    min-width: 0;
    opacity: 0.28;
    text-align: center;
    will-change: transform, opacity;
}

.development-journey__stage::before {
    content: '';
    width: 0.48rem;
    aspect-ratio: 1;
    margin-bottom: 0.12rem;
    border: 1px solid rgba(85, 103, 208, 0.52);
    border-radius: 50%;
    background: #080d20;
    box-shadow: 0 0 0 0 rgba(32, 217, 255, 0);
}

.development-journey__stage span {
    color: rgba(54, 218, 255, 0.66);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.3rem, 0.45vw, 0.44rem);
    font-weight: 800;
}

.development-journey__stage strong {
    color: rgba(219, 228, 255, 0.74);
    font-size: clamp(0.36rem, 0.55vw, 0.56rem);
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.development-journey__stage.is-active::before {
    border-color: rgba(51, 224, 255, 0.84);
    background: linear-gradient(135deg, #7a5cff, #2bdfff);
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.48);
}

.development-journey__stage.is-active {
    opacity: 1;
}

/* Reduced-motion/WebGL fallback: show a clean final journey state for Frame 06. */
.scene-root.is-webgl-fallback[data-active-frame="5"] .product-ecosystem,
.reduced-motion .scene-root[data-active-frame="5"] .product-ecosystem,
.scene-root.is-webgl-fallback[data-active-frame="5"] .development-journey,
.reduced-motion .scene-root[data-active-frame="5"] .development-journey {
    visibility: visible;
    opacity: 1;
}

.scene-root.is-webgl-fallback[data-active-frame="5"] .product-screen,
.reduced-motion .scene-root[data-active-frame="5"] .product-screen {
    visibility: hidden;
    opacity: 0;
}

.scene-root.is-webgl-fallback[data-active-frame="5"] .product-screen:nth-child(1),
.reduced-motion .scene-root[data-active-frame="5"] .product-screen:nth-child(1) {
    visibility: visible;
    opacity: 0.5;
    translate: -95% -50%;
    transform: scale(0.52) rotateY(16deg);
}

.scene-root.is-webgl-fallback[data-active-frame="5"] .product-screen:nth-child(3),
.reduced-motion .scene-root[data-active-frame="5"] .product-screen:nth-child(3) {
    visibility: visible;
    opacity: 1;
    translate: -5% -50%;
    transform: scale(0.58) rotateY(-14deg);
}

.scene-root.is-webgl-fallback[data-active-frame="5"] .product-screen:nth-child(4),
.reduced-motion .scene-root[data-active-frame="5"] .product-screen:nth-child(4) {
    visibility: visible;
    opacity: 0.68;
    translate: -50% -54%;
    transform: scale(0.74);
}

.scene-root.is-webgl-fallback[data-active-frame="5"] [data-journey-launch],
.reduced-motion .scene-root[data-active-frame="5"] [data-journey-launch] {
    visibility: visible;
    opacity: 0.88;
}

.scene-root.is-webgl-fallback[data-active-frame="5"] .development-journey__path-energy,
.reduced-motion .scene-root[data-active-frame="5"] .development-journey__path-energy {
    stroke-dashoffset: 0;
}

@media (max-width: 74rem) {
    .development-journey__heading {
        top: clamp(0.8rem, 3.5vh, 2.4rem);
    }

    .development-journey__path {
        width: min(78%, 58rem);
    }

    .development-journey__stages {
        width: min(84%, 60rem);
    }
}

@media (max-width: 56rem) {
    .development-journey__heading {
        width: min(72vw, 32rem);
    }

    .development-journey__path {
        bottom: clamp(5.6rem, 13vh, 7rem);
        width: min(84%, 46rem);
    }

    .development-journey__stages {
        bottom: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 0.5rem;
        width: min(76%, 34rem);
    }

    .development-journey__stage strong {
        white-space: normal;
    }
}

@media (max-width: 40rem) {
    .product-screen__journey-overlay {
        inset: 1.55rem 0 0;
    }

    .development-journey__heading {
        top: 0.65rem;
        width: min(72vw, 21rem);
    }

    .development-journey__heading span {
        font-size: 0.4rem;
        letter-spacing: 0.18em;
    }

    .development-journey__heading strong {
        display: none;
    }

    .development-journey__path {
        bottom: 6.4rem;
        width: 88%;
        height: 3.5rem;
    }

    .development-journey__stages {
        bottom: 0.75rem;
        width: min(91vw, 26rem);
        row-gap: 0.42rem;
    }

    .development-journey__stage {
        gap: 0.12rem;
    }

    .development-journey__stage::before {
        width: 0.36rem;
    }

    .development-journey__stage span {
        font-size: 0.27rem;
    }

    .development-journey__stage strong {
        font-size: 0.31rem;
        letter-spacing: 0.04em;
    }

    .product-screen__journey-overlay--code {
        padding: 0.55rem;
    }

    .product-screen__journey-overlay--code pre {
        font-size: clamp(0.28rem, 1.8vw, 0.42rem);
        line-height: 1.5;
    }

    .journey-code__tabs {
        margin-bottom: 0.35rem;
    }

    .journey-testing__status {
        padding: 0.38rem;
        font-size: 0.27rem;
        letter-spacing: 0.04em;
    }
}



/* Shared scene-safe composition rules for Frames 06 and 07. The scene root is
   already to the right of the Frame rail and the cinematic stage itself is now
   pinned below the fixed header, so these reserves only protect the journey
   heading and bottom process navigation. */
.scene-root {
    --iht-scene-safe-top: clamp(4.75rem, 10vh, 6.25rem);
    --iht-scene-safe-bottom: clamp(7.75rem, 15vh, 9.5rem);
}

/* Frame 06/07 browser panels keep their existing visual design. Sizing is
   constrained at the scene level; GSAP then applies only secondary scale/depth. */
.scene-root[data-active-frame="5"] .product-screen,
.scene-root[data-active-frame="6"] .product-screen {
    width: clamp(18rem, 37vw, 40rem);
    max-width: calc(100% - clamp(2rem, 8vw, 7rem));
}

.frame-seven-heading {
    position: absolute;
    z-index: 36;
    left: 50%;
    top: clamp(1.15rem, 3.5vh, 2.4rem);
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    width: min(72%, 38rem);
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    text-align: center;
    pointer-events: none;
}

.frame-seven-heading span {
    color: #49dfff;
    font-size: clamp(0.48rem, 0.68vw, 0.68rem);
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-shadow: 0 0 1.2rem rgba(32, 217, 255, 0.22);
}

.frame-seven-heading strong {
    color: rgba(235, 240, 255, 0.82);
    font-size: clamp(0.62rem, 0.9vw, 0.9rem);
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Do not allow old floating product labels/message to become a second title
   layer in Frame 06/07. Their real visibility is also scrubbed in GSAP. */
.scene-root[data-active-frame="5"] .product-screen__label,
.scene-root[data-active-frame="6"] .product-screen__label,
.scene-root[data-active-frame="5"] .product-ecosystem__message,
.scene-root[data-active-frame="6"] .product-ecosystem__message {
    pointer-events: none;
}

@media (max-width: 74rem) {
    .scene-root {
        --iht-scene-safe-top: clamp(4.25rem, 9vh, 5.5rem);
        --iht-scene-safe-bottom: clamp(7rem, 14vh, 8.5rem);
    }

    .frame-seven-heading {
        top: clamp(0.95rem, 3vh, 1.75rem);
        width: min(70%, 32rem);
    }
}

@media (max-width: 56rem) {
    .scene-root {
        --iht-scene-safe-top: clamp(3.8rem, 8vh, 4.8rem);
        --iht-scene-safe-bottom: clamp(6.5rem, 13vh, 7.75rem);
    }

    .frame-seven-heading {
        top: 0.8rem;
        width: min(72vw, 28rem);
    }
}

@media (max-width: 40rem) {
    .scene-root {
        --iht-scene-safe-top: 3.15rem;
        --iht-scene-safe-bottom: 7.3rem;
    }

    .frame-seven-heading {
        top: 0.55rem;
        width: min(72vw, 20rem);
    }

    .frame-seven-heading span {
        font-size: 0.4rem;
        letter-spacing: 0.18em;
    }

    .frame-seven-heading strong {
        font-size: 0.48rem;
        letter-spacing: 0.08em;
    }
}

/* Phase 06/07 viewport guardrails. These do not change the visual language;
   they keep the reused browser panels inside the safe cinematic viewport. */
@media (min-width: 75rem) and (max-height: 54rem) {
    .development-journey__heading {
        top: 0.85rem;
    }

    .development-journey__path {
        bottom: 4.75rem;
        height: 3.4rem;
    }

    .development-journey__stages {
        bottom: 1.55rem;
    }
}

@media (max-width: 74rem) {
    .development-journey__heading {
        top: 0.9rem;
        width: min(68%, 34rem);
    }

    .development-journey__path {
        width: min(76%, 54rem);
    }

    .development-journey__stages {
        width: min(82%, 58rem);
    }
}

@media (max-width: 56rem) {
    .development-journey__heading {
        top: 0.7rem;
        width: min(70vw, 28rem);
    }

    .development-journey__path {
        bottom: clamp(5rem, 10vh, 6rem);
        width: min(82%, 42rem);
    }

    .development-journey__stages {
        bottom: 0.8rem;
    }
}

@media (max-width: 40rem) {
    .development-journey__heading {
        top: 0.45rem;
        width: min(72vw, 19rem);
    }

    .development-journey__path {
        bottom: 6.1rem;
        width: 88%;
        height: 3.2rem;
    }

    .development-journey__stages {
        bottom: 0.55rem;
    }
}


/* ==========================================================
   15. PHASE 8 — FRAME 07 / REAL PROJECTS, REAL IMPACT
   ========================================================== */

/* IHTDEV Core owns the project content. The theme only presents the queried
   records as a CSS-3D browser scene inside the existing cinematic stage. */
.project-showcase {
    position: absolute;
    z-index: 34;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    overflow: clip;
    pointer-events: none;
    perspective: clamp(850px, 92vw, 1500px);
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
}

.scene-root[data-active-frame="6"] .project-showcase {
    pointer-events: auto;
}

.project-showcase__stage {
    position: absolute;
    left: 50%;
    top: 51%;
    width: min(78vw, 74rem);
    height: min(60vh, 34rem);
    translate: -50% -50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.project-panel {
    --project-accent: #8568ff;
    --project-cyan: #37dcff;
    --project-tilt-x: 0deg;
    --project-tilt-y: 0deg;
    --project-pointer-x: 50%;
    --project-pointer-y: 50%;

    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(21rem, 35vw, 40rem);
    aspect-ratio: 16 / 10.35;
    translate: -50% -50%;
    visibility: hidden;
    opacity: 0;
    transform: none;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    pointer-events: none;
}

.project-panel:nth-child(2n) {
    --project-accent: #4f7cff;
    --project-cyan: #5eeaff;
}

.project-panel:nth-child(3n) {
    --project-accent: #ad62ff;
    --project-cyan: #43d8ff;
}

.project-panel__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(121, 143, 225, 0.27);
    border-radius: clamp(0.8rem, 1.35vw, 1.25rem);
    background:
        radial-gradient(circle at var(--project-pointer-x) var(--project-pointer-y), color-mix(in srgb, var(--project-accent) 12%, transparent), transparent 27%),
        linear-gradient(155deg, rgba(13, 18, 42, 0.985), rgba(4, 8, 20, 0.995));
    box-shadow:
        inset 0 1px rgba(255,255,255,0.075),
        0 0 2.4rem color-mix(in srgb, var(--project-accent) 13%, transparent),
        0 1.5rem 4rem rgba(0,0,0,0.46);
    transform: perspective(950px) rotateX(var(--project-tilt-x)) rotateY(var(--project-tilt-y));
    transform-style: preserve-3d;
    transition:
        transform 180ms ease-out,
        border-color 180ms ease-out,
        box-shadow 180ms ease-out;
    backface-visibility: hidden;
}

.project-panel__inner::before {
    content: '';
    position: absolute;
    z-index: 8;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--project-pointer-x) var(--project-pointer-y),
        color-mix(in srgb, var(--project-cyan) 16%, transparent),
        transparent 25%
    );
    opacity: 0;
    transition: opacity 180ms ease-out;
    pointer-events: none;
}

.scene-root[data-active-frame="6"] .project-panel[data-project-visible="true"] {
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .scene-root[data-active-frame="6"] .project-panel:hover .project-panel__inner,
    .scene-root[data-active-frame="6"] .project-panel:focus-within .project-panel__inner {
        border-color: color-mix(in srgb, var(--project-cyan) 44%, rgba(121, 143, 225, 0.27));
        box-shadow:
            inset 0 1px rgba(255,255,255,0.1),
            0 0 3rem color-mix(in srgb, var(--project-accent) 23%, transparent),
            0 0 1.6rem color-mix(in srgb, var(--project-cyan) 10%, transparent),
            0 1.6rem 4.5rem rgba(0,0,0,0.52);
    }

    .scene-root[data-active-frame="6"] .project-panel:hover .project-panel__inner::before,
    .scene-root[data-active-frame="6"] .project-panel:focus-within .project-panel__inner::before {
        opacity: 1;
    }
}

.project-panel__browserbar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.45rem, 0.9vw, 0.8rem);
    min-height: clamp(1.8rem, 3vw, 2.65rem);
    padding-inline: clamp(0.6rem, 1vw, 0.95rem);
    border-bottom: 1px solid rgba(103, 122, 196, 0.16);
    background: linear-gradient(180deg, rgba(19, 25, 51, 0.95), rgba(7, 11, 27, 0.96));
}

.project-panel__traffic {
    display: inline-flex;
    gap: 0.28rem;
}

.project-panel__traffic i {
    width: clamp(0.28rem, 0.46vw, 0.42rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(130, 146, 210, 0.38);
}

.project-panel__traffic i:first-child { background: #9f72ff; }
.project-panel__traffic i:nth-child(2) { background: #537dff; }
.project-panel__traffic i:nth-child(3) { background: #40dfff; }

.project-panel__address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    width: min(82%, 23rem);
    margin-inline: auto;
    padding: 0.3rem 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(99, 118, 190, 0.14);
    border-radius: 999px;
    background: rgba(2, 6, 17, 0.68);
    color: rgba(202, 213, 247, 0.64);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.39rem, 0.55vw, 0.57rem);
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-panel__address i {
    width: 0.3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--project-cyan);
    box-shadow: 0 0 0.7rem color-mix(in srgb, var(--project-cyan) 70%, transparent);
    flex: 0 0 auto;
}

.project-panel__status {
    padding: 0.22rem 0.48rem;
    border: 1px solid color-mix(in srgb, var(--project-accent) 30%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--project-accent) 8%, transparent);
    color: rgba(220, 229, 255, 0.72);
    font-size: clamp(0.3rem, 0.4vw, 0.42rem);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.project-panel__primary-link {
    position: relative;
    z-index: 3;
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(11rem, 0.92fr);
    color: inherit;
    text-decoration: none;
}

.project-panel__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid rgba(103, 122, 196, 0.13);
    background:
        radial-gradient(circle at 72% 35%, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 42%),
        #070b19;
}

.project-panel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.88) brightness(0.74) contrast(1.06);
    transform: scale(1.015);
    transition: transform 260ms ease-out, filter 260ms ease-out;
}

.project-panel__primary-link:hover .project-panel__image,
.project-panel__primary-link:focus-visible .project-panel__image {
    filter: saturate(1) brightness(0.82) contrast(1.04);
    transform: scale(1.045);
}

.project-panel__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 48%, rgba(5, 9, 22, 0.4)),
        linear-gradient(180deg, rgba(4, 7, 18, 0.04), rgba(4, 7, 18, 0.46));
    pointer-events: none;
}

.project-panel__media-glow {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: -16%;
    width: 78%;
    height: 30%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--project-cyan) 24%, transparent), transparent 68%);
    filter: blur(1rem);
    pointer-events: none;
}

.project-panel__image-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(73, 92, 174, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 92, 174, 0.07) 1px, transparent 1px),
        radial-gradient(circle at 55% 46%, rgba(118, 74, 255, 0.32), transparent 24%),
        linear-gradient(145deg, #0a0f25, #050817);
    background-size: 2rem 2rem, 2rem 2rem, auto, auto;
}

.project-panel__image-fallback span {
    position: absolute;
    width: 28%;
    aspect-ratio: 1.7 / 1;
    border: 1px solid rgba(106, 127, 221, 0.25);
    border-radius: 0.5rem;
    background: rgba(10, 16, 39, 0.78);
    box-shadow: 0 0 1.5rem rgba(82, 73, 255, 0.08);
}

.project-panel__image-fallback span:first-child { transform: translate(-55%, -55%) rotate(-7deg); }
.project-panel__image-fallback span:nth-child(2) { transform: translate(48%, -15%) rotate(6deg); }
.project-panel__image-fallback span:nth-child(3) { transform: translate(-5%, 60%) rotate(-2deg); }

.project-panel__image-fallback strong {
    position: relative;
    z-index: 2;
    color: rgba(224, 229, 255, 0.76);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 5rem);
    text-shadow: 0 0 2.2rem rgba(130, 87, 255, 0.35);
}

.project-panel__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(0.85rem, 1.5vw, 1.35rem);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--project-accent) 10%, transparent), transparent 38%),
        linear-gradient(155deg, rgba(10, 15, 34, 0.9), rgba(5, 9, 22, 0.96));
}

.project-panel__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.project-panel__category {
    overflow: hidden;
    color: var(--project-cyan);
    font-size: clamp(0.4rem, 0.54vw, 0.56rem);
    font-weight: 850;
    letter-spacing: 0.13em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-panel__number {
    color: rgba(143, 160, 215, 0.45);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.42rem, 0.55vw, 0.58rem);
}

.project-panel__content h3 {
    margin: clamp(0.55rem, 1vw, 0.85rem) 0 0;
    color: #f3f5ff;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 2rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.project-panel__content p {
    display: -webkit-box;
    margin: clamp(0.55rem, 0.9vw, 0.75rem) 0 0;
    overflow: hidden;
    color: rgba(198, 209, 241, 0.64);
    font-size: clamp(0.52rem, 0.68vw, 0.68rem);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.project-panel__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: auto 0 0;
    padding: clamp(0.55rem, 0.85vw, 0.75rem) 0 0;
    list-style: none;
}

.project-panel__tech li {
    padding: 0.24rem 0.48rem;
    border: 1px solid rgba(95, 119, 207, 0.16);
    border-radius: 999px;
    background: rgba(68, 80, 163, 0.07);
    color: rgba(199, 212, 248, 0.7);
    font-size: clamp(0.33rem, 0.43vw, 0.44rem);
    font-weight: 700;
    letter-spacing: 0.045em;
}

.project-panel__actions {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    min-height: clamp(1.8rem, 3vw, 2.55rem);
    padding: 0.42rem clamp(0.7rem, 1vw, 0.95rem);
    border-top: 1px solid rgba(103, 122, 196, 0.13);
    background: rgba(4, 8, 20, 0.94);
}

.project-panel__actions:empty {
    display: none;
}

.project-panel__actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(101, 126, 218, 0.18);
    border-radius: 999px;
    color: rgba(221, 230, 255, 0.72);
    font-size: clamp(0.36rem, 0.46vw, 0.48rem);
    font-weight: 750;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 160ms ease-out, color 160ms ease-out, background 160ms ease-out;
}

.project-panel__actions a:hover,
.project-panel__actions a:focus-visible {
    border-color: color-mix(in srgb, var(--project-cyan) 45%, transparent);
    background: color-mix(in srgb, var(--project-cyan) 7%, transparent);
    color: #f5f8ff;
}

.project-showcase__nav {
    position: absolute;
    z-index: 48;
    left: 50%;
    bottom: clamp(0.7rem, 2vh, 1.35rem);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    width: min(80%, 46rem);
    transform: translateX(-50%);
    pointer-events: auto;
}

.project-showcase__nav-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    max-width: 8.5rem;
    padding: 0.34rem 0.52rem;
    border: 1px solid rgba(92, 111, 193, 0.16);
    border-radius: 999px;
    background: rgba(5, 9, 22, 0.72);
    color: rgba(164, 179, 222, 0.46);
    cursor: pointer;
    transition: border-color 160ms ease-out, background 160ms ease-out, color 160ms ease-out;
}

.project-showcase__nav-button span {
    color: rgba(58, 218, 255, 0.56);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.42rem;
}

.project-showcase__nav-button strong {
    overflow: hidden;
    font-size: 0.43rem;
    font-weight: 760;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-showcase__nav-button:hover,
.project-showcase__nav-button:focus-visible,
.project-showcase__nav-button.is-active {
    border-color: rgba(57, 218, 255, 0.34);
    background: rgba(31, 63, 126, 0.13);
    color: rgba(236, 242, 255, 0.88);
}

.project-showcase__nav-button.is-active {
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.08);
}

.project-showcase__empty {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    justify-items: center;
    width: min(82%, 34rem);
    transform: translate(-50%, -45%);
    text-align: center;
    pointer-events: none;
}

.project-showcase__empty > span {
    width: clamp(3rem, 6vw, 5rem);
    aspect-ratio: 1;
    margin-bottom: 1rem;
    border: 1px solid rgba(101, 118, 211, 0.24);
    border-radius: 1rem;
    background:
        radial-gradient(circle, rgba(103, 79, 255, 0.32), transparent 55%),
        rgba(11, 16, 38, 0.78);
    box-shadow: 0 0 2.5rem rgba(91, 73, 255, 0.14);
    transform: rotate(45deg);
}

.project-showcase__empty strong {
    color: rgba(238, 242, 255, 0.88);
    font-size: clamp(0.78rem, 1.2vw, 1.1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-showcase__empty p {
    max-width: 30rem;
    margin: 0.6rem 0 0;
    color: rgba(191, 202, 235, 0.58);
    font-size: clamp(0.58rem, 0.75vw, 0.72rem);
    line-height: 1.6;
}

/* Reduced-motion / WebGL fallback still uses the real dynamic project DOM. */
.scene-root.is-webgl-fallback[data-active-frame="6"] .project-showcase,
.reduced-motion .scene-root[data-active-frame="6"] .project-showcase {
    visibility: visible;
    opacity: 1;
}

.scene-root.is-webgl-fallback[data-active-frame="6"] .project-panel,
.reduced-motion .scene-root[data-active-frame="6"] .project-panel {
    visibility: hidden;
    opacity: 0;
}

.scene-root.is-webgl-fallback[data-active-frame="6"] .project-panel:first-child,
.reduced-motion .scene-root[data-active-frame="6"] .project-panel:first-child {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.95);
}

@media (max-width: 74rem) {
    .project-showcase__stage {
        width: min(82vw, 58rem);
        height: min(58vh, 29rem);
    }

    .project-panel {
        width: clamp(19rem, 43vw, 34rem);
    }

    .project-panel__content p {
        -webkit-line-clamp: 2;
    }

    .project-showcase__nav {
        width: min(84%, 40rem);
    }

    .project-showcase__nav-button:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 56rem) {
    .project-showcase__stage {
        top: 51.5%;
        width: min(88vw, 44rem);
        height: min(55vh, 25rem);
    }

    .project-panel {
        width: clamp(18rem, 55vw, 29rem);
    }

    .project-panel__primary-link {
        grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.86fr);
    }

    .project-panel__content h3 {
        font-size: clamp(0.95rem, 2.3vw, 1.35rem);
    }

    .project-panel__content p {
        font-size: 0.5rem;
        line-height: 1.45;
    }

    .project-panel__tech li:nth-child(n+5) {
        display: none;
    }

    .project-showcase__nav-button strong {
        display: none;
    }
}

@media (max-width: 40rem) {
    .project-showcase {
        overflow: hidden;
    }

    .project-showcase__stage {
        top: 49%;
        width: 100%;
        height: min(58vh, 25rem);
    }

    .project-panel {
        width: min(82vw, 23rem);
        aspect-ratio: 16 / 11.4;
    }

    .project-panel__inner {
        border-radius: 0.8rem;
    }

    .project-panel__browserbar {
        min-height: 1.8rem;
        padding-inline: 0.55rem;
    }

    .project-panel__status {
        display: none;
    }

    .project-panel__address {
        width: 90%;
        font-size: 0.4rem;
    }

    .project-panel__primary-link {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 52% 48%;
    }

    .project-panel__media {
        border-right: 0;
        border-bottom: 1px solid rgba(103, 122, 196, 0.13);
    }

    .project-panel__content {
        padding: 0.65rem 0.72rem;
    }

    .project-panel__content h3 {
        margin-top: 0.35rem;
        font-size: clamp(0.9rem, 5vw, 1.2rem);
    }

    .project-panel__content p {
        margin-top: 0.35rem;
        font-size: 0.45rem;
        -webkit-line-clamp: 2;
    }

    .project-panel__tech {
        gap: 0.25rem;
        padding-top: 0.4rem;
    }

    .project-panel__tech li {
        padding: 0.18rem 0.35rem;
        font-size: 0.32rem;
    }

    .project-panel__tech li:nth-child(n+4) {
        display: none;
    }

    .project-panel__actions {
        min-height: 1.75rem;
        padding: 0.3rem 0.55rem;
    }

    .project-panel__actions a {
        padding: 0.24rem 0.45rem;
        font-size: 0.34rem;
    }

    .project-showcase__nav {
        display: flex;
        bottom: 0.5rem;
        justify-content: flex-start;
        width: calc(100% - 1.4rem);
        max-width: none;
        padding: 0.15rem 0.1rem 0.35rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .project-showcase__nav::-webkit-scrollbar {
        display: none;
    }

    .project-showcase__nav-button {
        flex: 0 0 auto;
        min-width: 2.55rem;
        justify-content: center;
        padding: 0.38rem 0.5rem;
        scroll-snap-align: center;
    }

    .project-showcase__nav-button:nth-child(n+6) {
        display: inline-flex;
    }

    .project-showcase__nav-button strong {
        display: none;
    }

    .project-showcase__nav-button span {
        font-size: 0.48rem;
    }

    .project-showcase__empty {
        width: min(82vw, 22rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-panel__inner,
    .project-panel__image,
    .project-showcase__nav-button {
        transition: none !important;
    }
}

/* ==========================================================
   16. PHASE 9 — FRAME 08 / WHAT I DO
   ========================================================== */

/* IHTDEV Core owns the `service` data. This layer is presentation only and is
   hidden until the Frame 07 -> Frame 08 master-timeline handoff begins. */
.service-capabilities {
    position: absolute;
    z-index: 35;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    overflow: clip;
    pointer-events: none;
    perspective: clamp(850px, 92vw, 1500px);
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
}

.scene-root[data-active-frame="7"] .service-capabilities {
    pointer-events: auto;
}

.frame-eight-heading {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: clamp(0.9rem, 2.8vh, 1.9rem);
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    width: min(76%, 40rem);
    translate: -50% 0;
    visibility: hidden;
    opacity: 0;
    text-align: center;
    pointer-events: none;
}

.frame-eight-heading span {
    color: #49dfff;
    font-size: clamp(0.5rem, 0.72vw, 0.7rem);
    font-weight: 900;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-shadow: 0 0 1.2rem rgba(32, 217, 255, 0.28);
}

.frame-eight-heading strong {
    color: rgba(236, 241, 255, 0.84);
    font-size: clamp(0.64rem, 0.94vw, 0.94rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-capabilities__stage {
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(78vw, 74rem);
    height: min(62vh, 35rem);
    translate: -50% -50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.service-capabilities__connections {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 0 0.7rem rgba(94, 91, 255, 0.28));
}

.service-capabilities__connections line {
    stroke: rgba(91, 119, 255, 0.42);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-dasharray: 10 12;
    opacity: 0;
}

.service-capabilities__connections line:nth-child(3n + 1) {
    stroke: rgba(32, 217, 255, 0.48);
}

.service-capabilities__connections line:nth-child(3n + 2) {
    stroke: rgba(164, 87, 255, 0.48);
}

.service-capabilities__core {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: clamp(4.75rem, 7vw, 6.5rem);
    aspect-ratio: 1;
    translate: -50% -50%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.service-capabilities__core-ring,
.service-capabilities__core-dot {
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    translate: -50% -50%;
}

.service-capabilities__core-ring {
    border: 1px solid rgba(101, 106, 255, 0.34);
    box-shadow:
        0 0 1.4rem rgba(111, 82, 255, 0.18),
        inset 0 0 1.2rem rgba(32, 217, 255, 0.05);
}

.service-capabilities__core-ring--one {
    width: 100%;
    height: 100%;
}

.service-capabilities__core-ring--two {
    width: 68%;
    height: 68%;
    border-color: rgba(32, 217, 255, 0.4);
}

.service-capabilities__core-dot {
    width: 25%;
    height: 25%;
    background: linear-gradient(135deg, #9c59ff, #2adfff);
    box-shadow:
        0 0 1rem rgba(154, 77, 255, 0.58),
        0 0 1.8rem rgba(32, 217, 255, 0.35);
}

.service-node {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: clamp(8.4rem, 12vw, 11.6rem);
    aspect-ratio: 1.02;
    translate: -50% -50%;
    visibility: hidden;
    opacity: 0;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.service-node__link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
    transform-style: preserve-3d;
    outline: none;
}

.service-node__halo {
    position: absolute;
    z-index: 0;
    inset: 10%;
    clip-path: polygon(25% 5%, 75% 5%, 98% 50%, 75% 95%, 25% 95%, 2% 50%);
    background: radial-gradient(circle, rgba(108, 75, 255, 0.32), rgba(32, 217, 255, 0.08) 48%, transparent 74%);
    filter: blur(1rem);
    opacity: 0.62;
    transform: translateZ(-18px) scale(1.12);
}

.service-node__hex {
    position: absolute;
    inset: 0;
    clip-path: polygon(25% 4%, 75% 4%, 98% 50%, 75% 96%, 25% 96%, 2% 50%);
    transform-style: preserve-3d;
}

.service-node__hex--back {
    z-index: 1;
    inset: -1.5%;
    background: linear-gradient(135deg, rgba(154, 77, 255, 0.86), rgba(52, 103, 255, 0.68) 50%, rgba(32, 217, 255, 0.84));
    opacity: 0.48;
    filter: drop-shadow(0 0 0.65rem rgba(83, 102, 255, 0.24));
    transform: translateZ(-10px);
}

.service-node__hex--front {
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: clamp(0.38rem, 0.65vw, 0.68rem);
    padding: 15% 12% 13%;
    border: 1px solid rgba(126, 141, 225, 0.26);
    background:
        radial-gradient(circle at 50% 22%, rgba(89, 87, 255, 0.2), transparent 38%),
        linear-gradient(155deg, rgba(13, 20, 47, 0.96), rgba(5, 9, 24, 0.98) 68%, rgba(9, 16, 38, 0.98));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.07),
        inset 0 0 2rem rgba(50, 76, 164, 0.08),
        0 0 1.5rem rgba(80, 78, 255, 0.08);
    transform: translateZ(10px);
}

.service-node__icon {
    display: grid;
    place-items: center;
    width: clamp(2rem, 3.2vw, 2.8rem);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(95, 211, 255, 0.28);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(95, 73, 255, 0.24), rgba(21, 177, 255, 0.12));
    color: #73e8ff;
    font-size: clamp(0.72rem, 1.35vw, 1.2rem);
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 0.9rem rgba(32, 217, 255, 0.65);
    box-shadow:
        0 0 1.15rem rgba(32, 217, 255, 0.1),
        inset 0 0 1rem rgba(154, 77, 255, 0.08);
}

.service-node__icon.dashicons {
    font-size: clamp(1rem, 1.75vw, 1.5rem);
    line-height: 1;
}

.service-node__copy {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.service-node__copy strong {
    display: block;
    max-width: 100%;
    color: rgba(244, 247, 255, 0.95);
    font-size: clamp(0.58rem, 0.79vw, 0.78rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-wrap: balance;
}

.service-node__copy > span {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    color: rgba(197, 208, 244, 0.62);
    font-size: clamp(0.42rem, 0.56vw, 0.55rem);
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.scene-root[data-active-frame="7"] .service-node[data-service-visible="true"] {
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .scene-root[data-active-frame="7"] .service-node[data-service-visible="true"]:hover .service-node__link,
    .scene-root[data-active-frame="7"] .service-node[data-service-visible="true"]:focus-within .service-node__link {
        transform: translateZ(26px) rotateX(-1deg);
    }

    .scene-root[data-active-frame="7"] .service-node[data-service-visible="true"]:hover .service-node__hex--back,
    .scene-root[data-active-frame="7"] .service-node[data-service-visible="true"]:focus-within .service-node__hex--back {
        opacity: 0.76;
        filter: drop-shadow(0 0 1rem rgba(66, 152, 255, 0.34));
    }

    .scene-root[data-active-frame="7"] .service-node[data-service-visible="true"]:hover .service-node__halo,
    .scene-root[data-active-frame="7"] .service-node[data-service-visible="true"]:focus-within .service-node__halo {
        opacity: 0.95;
    }
}

.service-capabilities__empty {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    width: min(78%, 30rem);
    translate: -50% -50%;
    visibility: hidden;
    opacity: 0;
    text-align: center;
}

.service-capabilities__empty > span {
    width: 4rem;
    aspect-ratio: 1;
    clip-path: polygon(25% 4%, 75% 4%, 98% 50%, 75% 96%, 25% 96%, 2% 50%);
    background: linear-gradient(135deg, rgba(154, 77, 255, 0.25), rgba(32, 217, 255, 0.15));
    box-shadow: 0 0 2rem rgba(91, 79, 255, 0.12);
}

.service-capabilities__empty strong {
    color: rgba(239, 244, 255, 0.9);
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.service-capabilities__empty p {
    margin: 0;
    color: rgba(196, 207, 242, 0.62);
    font-size: clamp(0.62rem, 0.82vw, 0.76rem);
    line-height: 1.6;
}

.scene-root.is-webgl-fallback[data-active-frame="7"] .service-capabilities,
.reduced-motion .scene-root[data-active-frame="7"] .service-capabilities {
    visibility: visible;
    opacity: 1;
}

.scene-root.is-webgl-fallback[data-active-frame="7"] .frame-eight-heading,
.reduced-motion .scene-root[data-active-frame="7"] .frame-eight-heading {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 74rem) {
    .service-capabilities__stage {
        width: min(76vw, 61rem);
        height: min(60vh, 31rem);
    }

    .service-node {
        width: clamp(7.6rem, 13vw, 9.7rem);
    }
}

@media (max-width: 56rem) {
    .frame-eight-heading {
        top: 0.7rem;
        width: min(74vw, 31rem);
    }

    .service-capabilities__stage {
        top: 53%;
        width: min(74vw, 44rem);
        height: min(58vh, 27rem);
    }

    .service-node {
        width: clamp(7.15rem, 16vw, 8.7rem);
    }

    .service-node__copy > span {
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 40rem) {
    .frame-eight-heading {
        top: 0.5rem;
        width: min(70vw, 19rem);
        gap: 0.18rem;
    }

    .frame-eight-heading span {
        font-size: 0.4rem;
        letter-spacing: 0.2em;
    }

    .frame-eight-heading strong {
        font-size: 0.48rem;
        letter-spacing: 0.07em;
    }

    .service-capabilities__stage {
        top: 51%;
        width: min(68vw, 20rem);
        height: min(67vh, 29rem);
    }

    .service-capabilities__connections {
        opacity: 0.7;
    }

    .service-node {
        width: clamp(6.1rem, 30vw, 7.4rem);
    }

    .service-node__hex--front {
        gap: 0.3rem;
        padding: 14% 10% 12%;
    }

    .service-node__copy strong {
        font-size: clamp(0.5rem, 2.6vw, 0.64rem);
    }

    .service-node__copy > span {
        display: none;
    }

    .service-capabilities__core {
        width: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-node__link,
    .service-node__halo,
    .service-node__hex {
        transition: none !important;
    }
}

/* Static accessibility/WebGL fallback for Frame 08: retain the same hexagonal
   capability language without relying on motion. */
.scene-root.is-webgl-fallback[data-active-frame="7"] .service-capabilities__stage,
.reduced-motion .scene-root[data-active-frame="7"] .service-capabilities__stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    align-items: center;
    justify-items: center;
    gap: clamp(0.35rem, 1vw, 0.85rem);
    pointer-events: auto;
}

.scene-root.is-webgl-fallback[data-active-frame="7"] .service-capabilities__connections,
.scene-root.is-webgl-fallback[data-active-frame="7"] .service-capabilities__core,
.reduced-motion .scene-root[data-active-frame="7"] .service-capabilities__connections,
.reduced-motion .scene-root[data-active-frame="7"] .service-capabilities__core {
    display: none;
}

.scene-root.is-webgl-fallback[data-active-frame="7"] .service-node,
.reduced-motion .scene-root[data-active-frame="7"] .service-node {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 9rem);
    translate: none;
    visibility: visible;
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
}

@media (max-width: 56rem) {
    .scene-root.is-webgl-fallback[data-active-frame="7"] .service-capabilities__stage,
    .reduced-motion .scene-root[data-active-frame="7"] .service-capabilities__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 40rem) {
    .scene-root.is-webgl-fallback[data-active-frame="7"] .service-capabilities__stage,
    .reduced-motion .scene-root[data-active-frame="7"] .service-capabilities__stage {
        grid-template-columns: 1fr;
        overflow: hidden;
    }

    .scene-root.is-webgl-fallback[data-active-frame="7"] .service-node:nth-of-type(n+5),
    .reduced-motion .scene-root[data-active-frame="7"] .service-node:nth-of-type(n+5) {
        display: none;
    }
}

/* ==========================================================
   PHASE 10 — FRAME 09 / FRAME 10 FINALE
   ========================================================== */

.identity-reveal,
.final-cta {
    position: absolute;
    z-index: 42;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    overflow: clip;
    pointer-events: none;
    transform-style: preserve-3d;
    perspective: clamp(900px, 94vw, 1650px);
}

.identity-reveal__energy,
.final-cta__energy {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.identity-reveal__content,
.final-cta__content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(72vw, 68rem);
    translate: -50% -50%;
    text-align: center;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.identity-reveal__content {
    display: grid;
    justify-items: center;
    gap: clamp(0.75rem, 1.4vw, 1.35rem);
}

.identity-reveal__name {
    display: flex;
    justify-content: center;
    gap: clamp(0.02em, 0.22vw, 0.08em);
    margin: 0;
    color: #f5f7ff;
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 8.1vw, 9.2rem);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow:
        0 0 1.4rem rgba(85, 104, 255, 0.18),
        0 0 3.5rem rgba(154, 77, 255, 0.12);
}

.identity-reveal__name > span {
    display: inline-block;
    visibility: hidden;
    opacity: 0;
    filter: blur(0.85rem);
    transform: translate3d(0, 1.8rem, -180px) scale(0.84);
    transform-origin: 50% 50%;
    will-change: transform, opacity, filter;
}

.identity-reveal__role {
    margin: 0;
    color: #5be5ff;
    font-size: clamp(0.72rem, 1.05vw, 1.06rem);
    font-weight: 900;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    text-shadow: 0 0 1.2rem rgba(32, 217, 255, 0.34);
}

.identity-reveal__message {
    max-width: 54rem;
    margin: 0;
    color: rgba(211, 221, 252, 0.7);
    font-size: clamp(0.82rem, 1.18vw, 1.16rem);
    line-height: 1.75;
    text-wrap: balance;
}

.identity-reveal__beam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(42vw, 40rem);
    height: 1px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(32, 217, 255, 0), rgba(87, 107, 255, 0.72), rgba(177, 80, 255, 0.9));
    box-shadow: 0 0 1.2rem rgba(83, 105, 255, 0.36);
    opacity: 0;
}

.identity-reveal__beam--left {
    transform: rotate(180deg);
}

.identity-reveal__beam--right {
    transform: rotate(0deg);
}

.identity-reveal__beam--top {
    transform: rotate(-90deg);
}

.identity-reveal__beam--bottom {
    transform: rotate(90deg);
}

.identity-reveal__core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(2.8rem, 5.2vw, 5rem);
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    opacity: 0;
    background:
        radial-gradient(circle, rgba(233, 240, 255, 0.95) 0 7%, rgba(32, 217, 255, 0.7) 10%, rgba(100, 93, 255, 0.42) 28%, rgba(154, 77, 255, 0.15) 48%, transparent 72%);
    box-shadow:
        0 0 2.6rem rgba(32, 217, 255, 0.4),
        0 0 5rem rgba(154, 77, 255, 0.22);
    filter: blur(0.1rem);
}

.identity-reveal__orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(12rem, 25vw, 25rem);
    aspect-ratio: 1;
    translate: -50% -50%;
    border: 1px solid rgba(90, 111, 255, 0.16);
    border-radius: 50%;
    opacity: 0;
    box-shadow: inset 0 0 2.5rem rgba(32, 217, 255, 0.03);
}

.identity-reveal__orbit--one {
    transform: rotateX(70deg) rotateZ(8deg);
}

.identity-reveal__orbit--two {
    width: clamp(18rem, 36vw, 35rem);
    transform: rotateY(68deg) rotateZ(-16deg);
    border-color: rgba(154, 77, 255, 0.13);
}

.final-cta__content {
    top: 44%;
    display: grid;
    justify-items: center;
    gap: clamp(0.85rem, 1.6vw, 1.55rem);
}

.final-cta__eyebrow {
    margin: 0;
    color: #5be5ff;
    font-size: clamp(0.62rem, 0.92vw, 0.92rem);
    font-weight: 900;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    text-shadow: 0 0 1.15rem rgba(32, 217, 255, 0.34);
}

.final-cta__title {
    max-width: 64rem;
    margin: 0;
    color: #f4f6ff;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 6.8rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow:
        0 0 1.8rem rgba(75, 99, 255, 0.2),
        0 0 4.2rem rgba(154, 77, 255, 0.12);
}

.final-cta__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-width: clamp(10rem, 13vw, 12.8rem);
    min-height: 3rem;
    padding: 0.85rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(73, 221, 255, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(72, 70, 255, 0.18), rgba(25, 167, 255, 0.08));
    color: #ecf4ff;
    font-size: clamp(0.62rem, 0.78vw, 0.76rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.05),
        0 0 1.4rem rgba(67, 91, 255, 0.09);
    pointer-events: none;
}

.final-cta__link::before {
    content: '';
    position: absolute;
    inset: 0;
    translate: -105% 0;
    background: linear-gradient(90deg, transparent, rgba(129, 103, 255, 0.2), rgba(32, 217, 255, 0.16), transparent);
    transition: translate 300ms ease;
}

.scene-root[data-active-frame="9"] .final-cta__link {
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .final-cta__link:hover,
    .final-cta__link:focus-visible {
        border-color: rgba(76, 225, 255, 0.58);
        box-shadow:
            inset 0 1px rgba(255, 255, 255, 0.08),
            0 0 2rem rgba(62, 121, 255, 0.18),
            0 0 3rem rgba(154, 77, 255, 0.08);
    }

    .final-cta__link:hover::before,
    .final-cta__link:focus-visible::before {
        translate: 105% 0;
    }
}

.final-cta__floor {
    position: absolute;
    left: 50%;
    bottom: -16%;
    width: min(96vw, 100rem);
    height: 48%;
    translate: -50% 0;
    border-radius: 50%;
    opacity: 0;
    background:
        radial-gradient(ellipse at center, rgba(32, 217, 255, 0.18), rgba(76, 78, 255, 0.12) 35%, rgba(154, 77, 255, 0.07) 52%, transparent 72%);
    filter: blur(clamp(1rem, 2.8vw, 2.8rem));
    transform: rotateX(62deg);
    transform-origin: 50% 100%;
}

.final-cta__wave {
    position: absolute;
    left: 50%;
    bottom: 5%;
    width: min(86vw, 88rem);
    height: clamp(7rem, 16vh, 13rem);
    translate: -50% 0;
    border: 1px solid rgba(72, 104, 255, 0.18);
    border-radius: 50%;
    opacity: 0;
    transform: perspective(900px) rotateX(72deg);
    box-shadow:
        0 0 1.8rem rgba(51, 134, 255, 0.08),
        inset 0 0 1.8rem rgba(154, 77, 255, 0.03);
}

.final-cta__wave--two {
    width: min(68vw, 70rem);
    bottom: 1%;
    border-color: rgba(154, 77, 255, 0.2);
}

.final-cta__glow {
    position: absolute;
    left: 50%;
    bottom: -2%;
    width: min(48vw, 44rem);
    height: clamp(5rem, 12vh, 10rem);
    translate: -50% 0;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(ellipse, rgba(89, 93, 255, 0.28), rgba(32, 217, 255, 0.12) 38%, transparent 72%);
    filter: blur(clamp(1.2rem, 3vw, 3.2rem));
}

.final-cta__spark {
    position: absolute;
    width: 0.34rem;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    background: #7feaff;
    box-shadow: 0 0 1rem rgba(32, 217, 255, 0.8);
}

.final-cta__spark--one { left: 34%; bottom: 14%; }
.final-cta__spark--two { left: 58%; bottom: 9%; background: #bb72ff; box-shadow: 0 0 1rem rgba(154, 77, 255, 0.75); }
.final-cta__spark--three { left: 68%; bottom: 18%; }

@media (max-width: 74rem) {
    .identity-reveal__content,
    .final-cta__content {
        width: min(72vw, 55rem);
    }

    .identity-reveal__name {
        font-size: clamp(3.2rem, 8vw, 7rem);
    }

    .final-cta__title {
        font-size: clamp(2.4rem, 6vw, 5.2rem);
    }
}

@media (max-width: 56rem) {
    .identity-reveal__content,
    .final-cta__content {
        width: min(72vw, 40rem);
    }

    .identity-reveal__message {
        max-width: 36rem;
        line-height: 1.65;
    }

    .identity-reveal__beam {
        width: min(40vw, 24rem);
    }

    .final-cta__content {
        top: 46%;
    }

    .final-cta__floor {
        width: 110vw;
    }
}

@media (max-width: 40rem) {
    .identity-reveal__content,
    .final-cta__content {
        width: min(72vw, 21rem);
    }

    .identity-reveal__name {
        font-size: clamp(2.35rem, 12vw, 3.75rem);
        letter-spacing: 0.025em;
    }

    .identity-reveal__role {
        font-size: clamp(0.48rem, 2.7vw, 0.64rem);
        letter-spacing: 0.24em;
    }

    .identity-reveal__message {
        font-size: clamp(0.66rem, 3vw, 0.78rem);
        line-height: 1.55;
    }

    .identity-reveal__beam {
        width: 38vw;
    }

    .identity-reveal__orbit--one {
        width: min(52vw, 13rem);
    }

    .identity-reveal__orbit--two {
        width: min(72vw, 18rem);
    }

    .final-cta__content {
        top: 44%;
        gap: 0.82rem;
    }

    .final-cta__eyebrow {
        font-size: clamp(0.44rem, 2.6vw, 0.58rem);
        letter-spacing: 0.22em;
    }

    .final-cta__title {
        font-size: clamp(2rem, 10vw, 3.1rem);
        line-height: 0.98;
    }

    .final-cta__link {
        min-width: 9.2rem;
        min-height: 2.7rem;
        padding: 0.72rem 1rem;
        font-size: 0.58rem;
    }

    .final-cta__wave {
        width: 110vw;
    }

    .final-cta__wave--two {
        width: 86vw;
    }
}

/* Reduced-motion / WebGL fallback: preserve the same approved final content
   without autoplay while keeping Frame 09/10 mutually exclusive. */
.scene-root.is-webgl-fallback[data-active-frame="8"] .identity-reveal,
.reduced-motion .scene-root[data-active-frame="8"] .identity-reveal,
.scene-root.is-webgl-fallback[data-active-frame="9"] .final-cta,
.reduced-motion .scene-root[data-active-frame="9"] .final-cta {
    visibility: visible;
    opacity: 1;
}

.scene-root.is-webgl-fallback[data-active-frame="8"] .identity-reveal__name > span,
.reduced-motion .scene-root[data-active-frame="8"] .identity-reveal__name > span {
    visibility: visible;
    opacity: 1;
    filter: none;
    transform: none;
}

.scene-root.is-webgl-fallback[data-active-frame="8"] .identity-reveal__core,
.scene-root.is-webgl-fallback[data-active-frame="8"] .identity-reveal__orbit,
.reduced-motion .scene-root[data-active-frame="8"] .identity-reveal__core,
.reduced-motion .scene-root[data-active-frame="8"] .identity-reveal__orbit {
    opacity: 0.45;
}

.scene-root.is-webgl-fallback[data-active-frame="9"] .final-cta__floor,
.scene-root.is-webgl-fallback[data-active-frame="9"] .final-cta__wave,
.scene-root.is-webgl-fallback[data-active-frame="9"] .final-cta__glow,
.reduced-motion .scene-root[data-active-frame="9"] .final-cta__floor,
.reduced-motion .scene-root[data-active-frame="9"] .final-cta__wave,
.reduced-motion .scene-root[data-active-frame="9"] .final-cta__glow {
    opacity: 0.7;
}

.scene-root[data-active-frame="9"] .final-cta {
    pointer-events: auto;
}
