:root {
    --bg-primary: #030712;
    --bg-secondary: #070d1d;
    --bg-panel: rgba(14, 21, 41, 0.75);
    --bg-panel-strong: rgba(22, 32, 62, 0.92);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #f8f9ff;
    --text-muted: #b2b8d8;
    --accent: #ffb300;
    --accent-alt: #5ce1e6;
    --accent-dark: #7a5dfa;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 20px 60px rgba(5, 10, 20, 0.35);
    --shadow-card: 0 25px 55px rgba(8, 12, 25, 0.45);
    --gradient-primary: radial-gradient(circle at 10% 20%, rgba(255, 179, 0, 0.35), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(92, 225, 230, 0.45), transparent 50%),
        radial-gradient(circle at 50% 120%, rgba(122, 93, 250, 0.65), transparent 60%),
        #030712;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-panel: rgba(255, 255, 255, 0.9);
    --bg-panel-strong: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a1a;
    --text-muted: #6c757d;
    --accent: #007bff;
    --accent-alt: #28a745;
    --accent-dark: #6f42c1;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 25px 55px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--gradient-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

[data-theme="light"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.02), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.01), transparent 45%);
    pointer-events: none;
    z-index: -2;
}

[data-theme="light"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(transparent 95%, rgba(0, 0, 0, 0.01) 100%),
        linear-gradient(90deg, transparent 95%, rgba(0, 0, 0, 0.01) 100%);
    background-size: 220px 220px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
}

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

main {
    width: 100%;
}

section {
    padding: 4rem 0;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.glass {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-soft);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1.3rem 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Make the logo + title anchor lay out inline and centered */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.logo-title h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.06em;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: var(--bg-panel);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.35);
    background: var(--bg-panel-strong);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-cta .btn {
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
}

.profile-nav-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: var(--bg-panel);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    letter-spacing: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-nav-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.profile-nav-link:hover,
.profile-nav-link:focus-visible {
    color: var(--accent);
    background: var(--bg-panel-strong);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.profile-nav-link:hover svg,
.profile-nav-link:focus-visible svg {
    transform: scale(1.05);
}

.profile-nav-link:focus-visible {
    outline: 2px solid rgba(92, 225, 230, 0.35);
    outline-offset: 2px;
}

/* Buttons */
.btn,
.hero-btn,
.big-btn,
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #050711;
    background: linear-gradient(135deg, var(--accent), #ffa726);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(255, 179, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn.primary {
    background: linear-gradient(120deg, #ffc857, var(--accent));
    color: #1c1305;
}

.btn.ghost,
.hero-btn.ghost,
.big-btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

/* Make ghost buttons visible in light theme */
[data-theme="light"] .btn.ghost,
[data-theme="light"] .hero-btn.ghost,
[data-theme="light"] .big-btn.ghost {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn:hover,
.hero-btn:hover,
.big-btn:hover,
.contact-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 35px rgba(255, 179, 0, 0.3);
}

/* Disabled appearance for primary and ghost buttons across the site */
.btn:disabled,
.btn.ghost:disabled,
.hero-btn:disabled,
.big-btn:disabled,
.contact-btn:disabled {
    opacity: 0.55;
    background: #9aa0a6;
    border-color: #9aa0a6;
    color: #f5f5f5;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.8rem 0 2.5rem 0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.theme-toggle:hover {
    background: var(--bg-panel-strong);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
    border-color: var(--accent);
}

.theme-toggle:hover::before {
    opacity: 0.2;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    position: relative;
    transform-origin: center;
}

.theme-toggle:hover svg {
    transform: rotate(15deg) scale(1.1);
    fill: var(--accent);
}

/* Typography helpers */
.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.9rem 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-alt), var(--accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cinematic Journey */
.cinematic-journey {
    position: relative;
    height: 520vh;
    overflow: clip;
    isolation: isolate;
    background: #020712;
    --journey-progress: 0;
    --journey-velocity: 0;
    --journey-camera-z: 0px;
    --journey-camera-roll: 0deg;
    --journey-pointer-x: 50%;
    --journey-pointer-y: 50%;
    --journey-shift-x: 0px;
    --journey-shift-y: 0px;
}

.cinematic-journey::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 25% 20%, rgba(92, 225, 230, 0.28), transparent 45%),
        radial-gradient(circle at 78% 78%, rgba(255, 179, 0, 0.2), transparent 42%);
    opacity: calc(0.35 + (var(--journey-progress) * 0.2));
}

.journey-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    perspective: 1600px;
    transform-style: preserve-3d;
}

.journey-environment {
    position: absolute;
    inset: -12%;
    z-index: 0;
    pointer-events: none;
    filter: hue-rotate(calc(var(--journey-progress) * 160deg));
}

.journey-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: nebulaDrift 16s ease-in-out infinite alternate;
}

.journey-nebula--a {
    width: min(52vw, 780px);
    height: min(52vw, 780px);
    top: -16%;
    left: -12%;
    background: radial-gradient(circle, rgba(122, 93, 250, 0.62), rgba(122, 93, 250, 0));
}

.journey-nebula--b {
    width: min(42vw, 620px);
    height: min(42vw, 620px);
    top: 16%;
    right: -11%;
    background: radial-gradient(circle, rgba(92, 225, 230, 0.58), rgba(92, 225, 230, 0));
    animation-delay: -4s;
}

.journey-nebula--c {
    width: min(40vw, 540px);
    height: min(40vw, 540px);
    bottom: -20%;
    left: 28%;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.45), rgba(255, 179, 0, 0));
    animation-delay: -8s;
}

.journey-grid {
    position: absolute;
    inset: -20% -10%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 68px 68px;
    opacity: 0.22;
    transform: perspective(900px) rotateX(72deg) translateY(40%) translateX(calc(var(--journey-progress) * -8vw));
    animation: gridSweep 22s linear infinite;
}

.journey-particles {
    position: absolute;
    inset: 0;
}

.journey-particle {
    position: absolute;
    width: var(--size, 6px);
    height: var(--size, 6px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    box-shadow: 0 0 16px rgba(92, 225, 230, 0.7);
    opacity: 0;
    animation: particleDrift var(--dur, 13s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.journey-camera {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform-style: preserve-3d;
    will-change: transform;
    transform: translateZ(var(--journey-camera-z)) rotateZ(var(--journey-camera-roll));
    filter: none;
}

.journey-scene {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(980px, 92vw);
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.journey-scene.is-active {
    pointer-events: auto;
}

.journey-scene--intro {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 35%);
    gap: clamp(1rem, 3vw, 2.2rem);
    align-items: center;
}

.scene-panel {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(10, 18, 36, 0.72), rgba(9, 14, 28, 0.38));
    padding: clamp(0.9rem, 1.6vw, 1.5rem);
    box-shadow: 0 24px 55px rgba(4, 10, 24, 0.45);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

[data-theme="light"] .scene-panel {
    border-color: rgba(0, 0, 0, 0.12);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(243, 248, 255, 0.72));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.13);
}

.scene-kicker {
    margin: 0 0 0.8rem 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-alt);
}

.scene-copy {
    margin: 0.7rem 0 0 0;
    font-size: clamp(0.92rem, 1.2vw, 1.02rem);
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 56ch;
}

.scene-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.scene-actions .btn {
    min-width: 152px;
    padding: 0.72rem 1.2rem;
    font-size: 0.86rem;
}

.scene-actions .btn.primary::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid rgba(255, 179, 0, 0.65);
    opacity: 0;
    animation: pulseRing 2.8s ease-out infinite;
}

.scene-core {
    position: relative;
    width: min(34vw, 360px);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(92, 225, 230, 0.5);
    animation: coreSpin 18s linear infinite;
}

.core-ring--one {
    inset: 0;
}

.core-ring--two {
    inset: 18%;
    border-color: rgba(255, 179, 0, 0.55);
    animation-direction: reverse;
    animation-duration: 11s;
}

.core-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--accent-alt), var(--accent));
    box-shadow: 0 0 24px rgba(92, 225, 230, 0.8);
    animation: corePulse 2.9s ease-in-out infinite;
}

.journey-scene--services .service-cluster {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-module {
    position: relative;
    min-height: 170px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(6, 14, 30, 0.58);
    padding: 1rem 1rem 1.2rem;
    transform: translateY(34px) scale(0.9);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(.2,.75,.2,1), opacity 0.65s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
    outline: none;
}

.service-module::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(92, 225, 230, 0);
    transition: border-color 0.28s ease;
}

[data-theme="light"] .service-module {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.78);
}

.service-module h3 {
    margin: 0;
    font-size: 1.2rem;
}

.service-module p {
    margin: 0.55rem 0 0 0;
    color: var(--text-muted);
}

.service-module:hover,
.service-module:focus-visible,
.service-module.is-selected {
    border-color: rgba(92, 225, 230, 0.58);
    box-shadow: 0 20px 40px rgba(8, 17, 35, 0.38);
    transform: translateY(-4px) scale(1.02);
}

.service-module:hover::after,
.service-module:focus-visible::after,
.service-module.is-selected::after {
    border-color: rgba(92, 225, 230, 0.52);
}

.service-module:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.6), 0 20px 40px rgba(8, 17, 35, 0.38);
}

.journey-scene--services.is-active .service-module {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.journey-scene--services.is-active .service-module:nth-child(2) {
    transition-delay: 0.1s;
}

.journey-scene--services.is-active .service-module:nth-child(3) {
    transition-delay: 0.2s;
}

.morph-seed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(70vw, 720px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 93, 250, 0.5), rgba(122, 93, 250, 0));
    filter: blur(20px);
    transform: translate(-50%, -50%) scale(1);
    z-index: 1;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.journey-scene--services.is-active .morph-seed {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.28;
}

.morph-object {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(42vw, 390px);
    aspect-ratio: 1;
    transform: translate(calc(-50% + var(--journey-shift-x)), calc(-50% + var(--journey-shift-y)));
    z-index: 2;
    pointer-events: none;
    transition: transform 0.25s ease-out;
}

.morph-shape {
    position: absolute;
    inset: 20%;
    border-radius: 42% 58% 60% 40%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.7s cubic-bezier(.2,.8,.2,1), border-radius 0.7s cubic-bezier(.2,.8,.2,1), opacity 0.7s ease;
}

.morph-shape--core {
    background: radial-gradient(circle at 28% 24%, rgba(92, 225, 230, 0.5), rgba(122, 93, 250, 0.15));
    box-shadow: 0 0 40px rgba(92, 225, 230, 0.34);
    animation: morphBreath 4.6s ease-in-out infinite;
}

.morph-shape--echo {
    inset: 9%;
    border-color: rgba(122, 93, 250, 0.4);
    opacity: 0.7;
    animation: morphDrift 9s linear infinite;
}

.morph-shape--trace {
    inset: 0;
    border-color: rgba(255, 179, 0, 0.35);
    opacity: 0.35;
    animation: morphDriftReverse 12s linear infinite;
}

.morph-burst {
    position: absolute;
    inset: 0;
}

.morph-burst span {
    --tx: 0px;
    --ty: -42px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 14px rgba(92, 225, 230, 0.68);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
    transition: transform 0.82s cubic-bezier(.2,.75,.2,1), opacity 0.82s ease;
}

.morph-burst span:nth-child(1) { --tx: 108px; --ty: -18px; }
.morph-burst span:nth-child(2) { --tx: 84px; --ty: 58px; }
.morph-burst span:nth-child(3) { --tx: 16px; --ty: 114px; }
.morph-burst span:nth-child(4) { --tx: -62px; --ty: 96px; }
.morph-burst span:nth-child(5) { --tx: -110px; --ty: 22px; }
.morph-burst span:nth-child(6) { --tx: -94px; --ty: -62px; }
.morph-burst span:nth-child(7) { --tx: -25px; --ty: -114px; }
.morph-burst span:nth-child(8) { --tx: 58px; --ty: -96px; }
.morph-burst span:nth-child(9) { --tx: 142px; --ty: 16px; }
.morph-burst span:nth-child(10) { --tx: 108px; --ty: 84px; }
.morph-burst span:nth-child(11) { --tx: -120px; --ty: -84px; }
.morph-burst span:nth-child(12) { --tx: -142px; --ty: -18px; }

.reform-ui {
    position: absolute;
    inset: 20%;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transform: scale(0.65) translateY(14px);
    transition: transform 0.72s cubic-bezier(.2,.8,.2,1), opacity 0.72s ease;
}

.reform-ui__line,
.reform-ui__dot {
    position: absolute;
    display: block;
}

.reform-ui__line {
    left: 14%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(92, 225, 230, 0.9), rgba(92, 225, 230, 0.18));
}

.reform-ui__line--one {
    top: 22%;
    width: 62%;
}

.reform-ui__line--two {
    top: 44%;
    width: 72%;
}

.reform-ui__line--three {
    top: 66%;
    width: 48%;
}

.reform-ui__dot {
    right: 14%;
    top: 22%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.88);
    box-shadow: 0 0 16px rgba(255, 179, 0, 0.48);
}

.journey-scene--services.is-active .morph-shape--core,
.journey-scene--services.is-morphed .morph-shape--core {
    border-radius: 22px;
    transform: scale(1.15);
}

.journey-scene--services.is-active .morph-shape--echo,
.journey-scene--services.is-morphed .morph-shape--echo {
    border-radius: 20px;
    transform: scale(1.2);
    opacity: 0.18;
}

.journey-scene--services.is-active .morph-shape--trace,
.journey-scene--services.is-morphed .morph-shape--trace {
    opacity: 0;
    transform: scale(1.34);
}

.journey-scene--services.is-active .morph-burst span,
.journey-scene--services.is-morphed .morph-burst span {
    opacity: 0.8;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.05);
}

.journey-scene--services.is-active .reform-ui,
.journey-scene--services.is-morphed .reform-ui {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.service-inspector {
    position: absolute;
    left: 50%;
    bottom: -14%;
    transform: translateX(-50%);
    width: min(720px, 88vw);
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(7, 14, 30, 0.72);
    z-index: 3;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

[data-theme="light"] .service-inspector {
    border-color: rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

.inspector-title {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-alt);
}

.inspector-copy {
    margin: 0.32rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.journey-scene--services.is-morphed .service-inspector {
    border-color: rgba(92, 225, 230, 0.45);
    transform: translateX(-50%) translateY(-6px);
}

.journey-scene--morph .scene-panel {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.morph-cloud {
    position: absolute;
    inset: 10% 14%;
    pointer-events: none;
}

.morph-cloud span {
    position: absolute;
    width: clamp(70px, 10vw, 130px);
    height: clamp(70px, 10vw, 130px);
    border-radius: 40% 60% 55% 45%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(92, 225, 230, 0.08));
    mix-blend-mode: screen;
    animation: cloudOrb 8s ease-in-out infinite;
}

.morph-cloud span:nth-child(1) { top: 8%; left: 14%; }
.morph-cloud span:nth-child(2) { top: 16%; right: 10%; animation-delay: -1.8s; }
.morph-cloud span:nth-child(3) { bottom: 18%; left: 18%; animation-delay: -3.2s; }
.morph-cloud span:nth-child(4) { bottom: 10%; right: 16%; animation-delay: -4.4s; }
.morph-cloud span:nth-child(5) { top: 40%; left: 45%; width: clamp(56px, 7vw, 92px); height: clamp(56px, 7vw, 92px); animation-delay: -6s; }

.icon-orbit {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.icon-orbit span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--text-primary);
    animation: iconFloat 3.2s ease-in-out infinite;
}

.icon-orbit span:nth-child(2) { animation-delay: -0.8s; }
.icon-orbit span:nth-child(3) { animation-delay: -1.6s; }
.icon-orbit span:nth-child(4) { animation-delay: -2.4s; }

.journey-scene--final .scene-panel {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.final-frame {
    position: absolute;
    inset: 13% 18%;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    will-change: transform;
    backface-visibility: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 80px rgba(92, 225, 230, 0.16);
    animation: frameFloat 8s ease-in-out infinite;
}

[data-theme="light"] .final-frame {
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset,
        0 0 70px rgba(92, 225, 230, 0.18);
}

.kinetic-headline {
    margin: 0;
    font-size: clamp(1.3rem, 2.8vw, 2.55rem);
    line-height: 1.14;
    letter-spacing: -0.01em;
    max-width: 24ch;
    overflow-wrap: anywhere;
}

.kinetic-word {
    display: inline-block;
}

.kinetic-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.62s cubic-bezier(.16,.8,.2,1), opacity 0.62s ease;
}

.journey-scene.is-active .kinetic-char {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: calc(var(--char-index) * 24ms);
}

.journey-hud {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 5;
    width: min(520px, 92vw);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.journey-hud__label {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.journey-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.journey-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent-alt), var(--accent));
}

.journey-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 6.2rem;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.journey-motion-blur {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: calc(var(--journey-velocity) * 0.12);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    transform: skewX(calc(var(--journey-velocity) * 2deg));
}

/* Hero */
.hero-section {
    position: relative;
    padding: 6rem 0 2.2rem;
    overflow: hidden;
}

.hero-section--compact {
    padding: 4rem 0 2.5rem;
}

.hero-bg-animated {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 179, 0, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(92, 225, 230, 0.3), transparent 45%),
        radial-gradient(circle at 50% 120%, rgba(122, 93, 250, 0.4), transparent 55%);
    filter: blur(60px);
    opacity: 0.6;
    animation: heroGlow 14s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0));
    box-shadow: 0 0 24px rgba(92, 225, 230, 0.6);
    opacity: 0.75;
    animation: floatParticle 10s ease-in-out infinite;
}

.hero-particle--1 {
    top: 17%;
    left: 14%;
    animation-delay: -1s;
}

.hero-particle--2 {
    top: 25%;
    right: 18%;
    width: 11px;
    height: 11px;
    animation-delay: -3.5s;
}

.hero-particle--3 {
    top: 62%;
    left: 8%;
    width: 9px;
    height: 9px;
    animation-delay: -5.8s;
}

.hero-particle--4 {
    top: 74%;
    right: 24%;
    width: 12px;
    height: 12px;
    animation-delay: -7.2s;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-left > * {
    opacity: 0;
    transform: translateY(18px);
    animation: heroItemIn 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-left > *:nth-child(1) { animation-delay: 0.06s; }
.hero-left > *:nth-child(2) { animation-delay: 0.15s; }
.hero-left > *:nth-child(3) { animation-delay: 0.26s; }
.hero-left > *:nth-child(4) { animation-delay: 0.37s; }

.hero-right {
    position: relative;
    perspective: 900px;
}

.hero-left h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    margin: 0 0 1.2rem 0;
    line-height: 1.15;
    max-width: 14ch;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 490px;
}

.hero-card {
    position: relative;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(92, 225, 230, 0.14), transparent 55%, rgba(255, 179, 0, 0.16));
    mix-blend-mode: screen;
    opacity: 0.4;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card.is-tilting {
    box-shadow: 0 30px 65px rgba(5, 10, 24, 0.5);
}

.hero-orbit {
    position: absolute;
    top: -34px;
    left: -30px;
    width: 130px;
    height: 130px;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
}

.orbit-ring--one {
    border-top-color: rgba(92, 225, 230, 0.7);
    border-right-color: rgba(92, 225, 230, 0.35);
    animation: orbitSpin 10s linear infinite;
}

.orbit-ring--two {
    inset: 11px;
    border-bottom-color: rgba(255, 179, 0, 0.7);
    border-left-color: rgba(255, 179, 0, 0.35);
    animation: orbitSpinReverse 7s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-alt);
    box-shadow: 0 0 14px rgba(92, 225, 230, 0.85);
    animation: orbitDot 2.4s ease-in-out infinite;
}

.hero-card__header h3 {
    margin: 0.2rem 0 0 0;
    font-size: 1.6rem;
}

.hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-list li {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .hero-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-list strong {
    display: block;
    font-size: 1rem;
}

.hero-list span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.link-arrow {
    font-size: 0.95rem;
    color: var(--accent-alt);
}

.link-arrow:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.motion-strip {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.2rem;
    padding: 0.6rem 0 1.35rem;
}

.motion-strip::before,
.motion-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 9vw;
    z-index: 2;
    pointer-events: none;
}

.motion-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), rgba(3, 7, 18, 0));
}

.motion-strip::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary), rgba(3, 7, 18, 0));
}

[data-theme="light"] .motion-strip::before {
    background: linear-gradient(90deg, var(--bg-primary), rgba(255, 255, 255, 0));
}

[data-theme="light"] .motion-strip::after {
    background: linear-gradient(270deg, var(--bg-primary), rgba(255, 255, 255, 0));
}

.motion-strip__track {
    width: max-content;
    display: flex;
    gap: 0.7rem;
    padding-left: 4vw;
    animation: tickerSlide 26s linear infinite;
}

.motion-strip__track span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .motion-strip__track span {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section-heading {
    text-align: left;
    margin-bottom: 3rem;
}

.features-section .section-heading {
    max-width: 760px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0.3rem 0;
}

.section-subtitle {
    color: var(--text-muted);
    margin: 0;
}

#custom-quote .section-title {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 280px;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(92, 225, 230, 0.22), rgba(92, 225, 230, 0) 42%);
    transition: opacity 0.32s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    pointer-events: none;
    border-radius: calc(var(--radius-md) - 1px);
    background: linear-gradient(145deg, rgba(255, 179, 0, 0.08), rgba(122, 93, 250, 0));
    opacity: 0;
    transition: opacity 0.32s ease;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card img {
    width: 56px;
    height: 56px;
}

.feature-card h4 {
    margin: 0;
    font-size: 1.3rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-card);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

[data-theme="light"] .feature-card {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(0, 0, 0, 0.22);
}

.feature-card .hero-btn {
    margin-top: auto;
}

.about-section {
    padding: 3.5rem;
    margin-top: 1rem;
    text-align: center;
}

.about-highlight {
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-grid div {
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.purchases-section {
    padding: 3.5rem;
    margin-top: 1rem;
    text-align: center;
}

#purchases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#purchases-table th,
#purchases-table td {
    padding: 1rem;
    border: 1px solid var(--border-glass);
    text-align: left;
}

#purchases-table th {
    background: var(--bg-panel);
    font-weight: 600;
}

#purchases-table td {
    background: var(--bg-panel-strong);
}

.contact-section {
    margin-top: 2rem;
    padding: 3.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 3.2rem 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 1rem;
}

[data-theme="light"] .input-group input,
[data-theme="light"] .input-group textarea {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .input-group select {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.input-group textarea {
    min-height: 140px;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    opacity: 0.65;
}

.input-icon img {
    filter: invert(73%) sepia(8%) saturate(692%) hue-rotate(196deg) brightness(108%) contrast(87%);
}

#formMessage {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-social img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .footer-social img {
    filter: brightness(0) invert(0);
}

/* Intro overlay */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999; /* Ensure it's above absolutely everything */
    background: #f0f4f8; /* Light bedroom background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.8s ease;
    opacity: 1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-shell {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(5, 7, 18, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.2rem 1.5rem;
    overflow: hidden;
    z-index: 10; /* Ensure it sits above the 3D canvas */
    text-align: center;
}

.intro-decoration {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.intro-decoration--one {
    background: var(--accent-alt);
    top: -80px;
    left: -80px;
}

.intro-decoration--two {
    background: var(--accent);
    bottom: -100px;
    right: -60px;
}

/* Light theme intro overlay */
[data-theme="light"] #intro-overlay {
    background: #f0f4f8; /* Light bedroom background */
}

[data-theme="light"] .intro-shell {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111;
}

[data-theme="light"] .intro-chip {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #111;
}

[data-theme="light"] .intro-content h2,
[data-theme="light"] .intro-eyebrow,
[data-theme="light"] .intro-sub,
[data-theme="light"] .intro-progress__label span {
    color: #111;
}

[data-theme="light"] .progress-value {
    color: var(--accent);
}

[data-theme="light"] .intro-skip {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #444;
}

[data-theme="light"] .intro-skip:hover {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .intro-progress__track {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-nav-link {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-nav-link:hover,
[data-theme="light"] .profile-nav-link:focus-visible {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

[data-theme="light"] .theme-toggle svg {
    fill: var(--text-primary);
}

[data-theme="light"] .theme-toggle:hover svg {
    fill: var(--accent);
}

[data-theme="light"] .intro-3d {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.intro-chip {
    display: inline-flex;
    align-self: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.intro-content h2 {
    margin: 0;
    font-size: 1.25rem;
}

.intro-sub {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
}

.intro-progress {
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.intro-progress__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.intro-progress__track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.intro-progress__track .progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    border-radius: 999px;
}

.intro-3d {
    position: relative;
    width: 100%;
    min-height: 240px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-skip {
    align-self: center;
    margin-top: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

/* Scroll reveal support */
.pre-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(.23,1.02,.32,1);
}

.visible-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Quote builder */
#custom-quote .quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

#custom-quote .quote-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    font-size: 0.95rem;
}

[data-theme="light"] #custom-quote .quote-block {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-note {
    margin: 0 0 .5rem 0;
    font-size: .9rem;
    color: var(--text-primary);
}

#custom-quote h4 {
    margin-top: 0;
}

#custom-quote label.quote-option {
    display: block;
    margin: 0.4rem 0;
    cursor: pointer;
}

#custom-quote input[type="radio"],
#custom-quote input[type="checkbox"] {
    margin-right: 0.4rem;
}

#custom-quote input[type="text"],
#custom-quote input[type="email"],
#custom-quote input[type="number"] {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 0.65rem 0.75rem;
}

[data-theme="light"] #custom-quote input[type="text"],
[data-theme="light"] #custom-quote input[type="email"],
[data-theme="light"] #custom-quote input[type="number"] {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

#custom-quote .total-block {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.2), rgba(92, 225, 230, 0.15));
}

#custom-quote .grand-total {
    font-size: 1.3rem;
    font-weight: 700;
}

#custom-quote .breakdown {
    white-space: pre-line;
    max-height: 180px;
    overflow: auto;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes heroGlow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-40px, 30px, 0) scale(1.1); }
}

@keyframes heroItemIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate3d(0, -24px, 0) scale(1.2);
        opacity: 0.95;
    }
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes orbitDot {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.6);
    }
}

@keyframes tickerSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes nebulaDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(-3vw, 2vh, 0) scale(1.12);
    }
}

@keyframes gridSweep {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 0 220px, 220px 0;
    }
}

@keyframes particleDrift {
    0% {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.7);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift-x, 40px), -120px, 0) scale(1.25);
    }
}

@keyframes coreSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.28);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.96);
        opacity: 0;
    }
    35% {
        opacity: 0.7;
    }
    100% {
        transform: scale(1.14);
        opacity: 0;
    }
}

@keyframes cloudOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -18px, 0) rotate(12deg);
    }
}

@keyframes morphBreath {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.06) rotate(4deg);
    }
}

@keyframes morphDrift {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes morphDriftReverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes frameFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes subtleShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.btn-shake {
    animation: subtleShake 0.55s ease;
}

/* Small success animation for submit buttons */
.btn-success {
    animation: successPulse 0.9s cubic-bezier(.2,.9,.3,1);
    background: linear-gradient(135deg,#66bb6a,#43a047) !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(67,160,71,0.22) !important;
    transform-origin: center;
}
.btn-success::after {
    content: '✓';
    display: inline-block;
    margin-left: 0.6rem;
    font-weight: 800;
    transform: scale(0);
    opacity: 0;
    animation: checkPop 0.45s 0.18s ease forwards;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); box-shadow: 0 22px 48px rgba(67,160,71,0.28); }
    100% { transform: scale(1); }
}
@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .cinematic-journey {
        height: 500vh;
    }
    .journey-scene {
        width: min(92vw, 780px);
    }
    .journey-scene--intro {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .scene-panel {
        max-width: 700px;
    }
    .scene-actions {
        justify-content: center;
    }
    .journey-scene--services .service-cluster {
        grid-template-columns: 1fr;
    }
    .morph-object {
        width: min(70vw, 340px);
    }
    .service-module {
        min-height: 0;
    }
    .service-inspector {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: 0.9rem;
    }
    .journey-hud {
        width: min(560px, 92vw);
    }
    .journey-scroll-hint {
        bottom: 7.3rem;
    }
    .hero-grid {
        gap: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-orbit {
        top: -18px;
        left: -12px;
        transform: scale(0.82);
    }
    .motion-strip__track span {
        font-size: 0.72rem;
    }
    .intro-shell {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .intro-chip,
    .intro-skip {
        align-self: center;
    }
    .intro-progress__label {
        flex-direction: column;
        gap: 0.2rem;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .main-header {
        padding: 0.85rem 0;
    }

    .nav-flex {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.85rem;
    }

    .logo-title h1 {
        font-size: 1.05rem;
    }

    .logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .nav-flex.has-mobile-nav nav {
        width: 100%;
    }

    .nav-flex.has-mobile-nav .nav-toggle {
        display: inline-flex;
    }

    .nav-flex.has-mobile-nav nav ul {
        display: none;
        width: 100%;
        margin-top: 0.45rem;
        padding: 0.7rem;
        border: 1px solid var(--border-glass);
        border-radius: 16px;
        background: var(--bg-panel-strong);
        gap: 0.55rem;
    }

    .nav-flex.has-mobile-nav.nav-open nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-flex.has-mobile-nav nav ul li {
        width: 100%;
    }

    .nav-flex.has-mobile-nav nav ul li > a {
        display: flex;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-flex.has-mobile-nav nav ul li > .profile-nav-link {
        width: 40px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .nav-flex.has-mobile-nav .nav-cta .btn {
        width: 100%;
    }

    .nav-flex.has-mobile-nav nav ul li > .theme-toggle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    section {
        padding: 3rem 0;
    }
    .cinematic-journey {
        height: 460vh;
    }
    .journey-sticky {
        perspective: 1100px;
    }
    .journey-scene {
        width: min(94vw, 540px);
    }
    .morph-object {
        width: min(78vw, 290px);
    }
    .reform-ui__line {
        height: 6px;
    }
    .service-inspector {
        padding: 0.75rem 0.85rem;
    }
    .inspector-copy {
        font-size: 0.85rem;
    }
    .scene-core {
        width: min(56vw, 220px);
    }
    .scene-actions .btn {
        width: 100%;
        min-width: 0;
    }
    .journey-scroll-hint {
        bottom: 9.7rem;
        font-size: 0.62rem;
    }
    .journey-hud {
        bottom: 0.8rem;
        width: min(94vw, 480px);
    }
    .final-frame {
        inset: 14% 8%;
    }
    .icon-orbit span {
        min-width: 58px;
        font-size: 0.64rem;
        letter-spacing: 0.1em;
    }
    .hero-section {
        padding-top: 4.8rem;
    }
    .hero-left h2 {
        max-width: 100%;
    }
    .motion-strip {
        padding-bottom: 1rem;
    }
    .motion-strip__track {
        animation-duration: 19s;
    }
    .hero-particle--3,
    .hero-particle--4 {
        display: none;
    }
    .container {
        width: min(100%, 92vw);
    }
    .contact-section,
    .about-section {
        padding: 2.5rem 1.4rem;
    }
    .btn,
    .hero-btn,
    .big-btn,
    .contact-btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-nebula,
    .journey-grid,
    .journey-particle,
    .journey-camera,
    .journey-scene,
    .kinetic-char,
    .core-ring,
    .core-dot,
    .morph-seed,
    .morph-shape,
    .morph-burst span,
    .reform-ui,
    .morph-cloud span,
    .service-inspector,
    .icon-orbit span,
    .final-frame,
    .scene-actions .btn.primary::before,
    .hero-bg-animated,
    .hero-particle,
    .hero-left > *,
    .orbit-ring,
    .orbit-dot,
    .motion-strip__track,
    .pre-animate,
    .feature-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .cinematic-journey {
        height: auto;
    }

    .journey-sticky {
        position: relative;
        height: auto;
    }

    .journey-camera {
        position: relative;
        padding: 5rem 0 2rem;
        filter: none !important;
    }

    .journey-scene {
        position: relative;
        top: auto;
        left: auto;
        opacity: 1 !important;
        width: min(94vw, 880px);
        margin: 0 auto 2.2rem;
    }

    .journey-hud {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: min(94vw, 640px);
        margin: 0 auto 2rem;
    }

    .journey-scroll-hint,
    .journey-motion-blur {
        display: none;
    }

    .pre-animate {
        opacity: 1;
    }
}
