/* Custom Fonts + Base Theme Fallback */
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #050505;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --accent-blue: #3c5ccf;
    --accent-orange: #ff5722;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    --surface-color: rgba(20, 20, 30, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1280px;
    --nav-height: 80px;
}

.font-body { font-family: 'Space Grotesk', sans-serif; }
.uppercase,
.caps-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Hero Timeline Preview */
.hero-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.14), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.14), transparent 28%),
        linear-gradient(180deg, #050608 0%, #08090c 45%, #030303 100%);
}

.hero-ambient {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-ambient--blue {
    top: -8vw;
    left: -6vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-ambient--orange {
    right: -10vw;
    bottom: -10vw;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0) 68%);
    animation-duration: 22s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 110px 110px;
    opacity: 0.18;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 1));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 3, 5, 0.2) 0%, rgba(4, 5, 7, 0.55) 38%, rgba(1, 1, 1, 0.94) 100%),
        radial-gradient(circle at center, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.2) 42%, rgba(5, 5, 5, 0.72) 100%);
}

.hero-timeline-shell {
    position: absolute;
    inset: 16vh -8vw 10vh -8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(1800px) rotateX(58deg) rotateZ(-16deg) scale(1.12);
    transform-style: preserve-3d;
}

.hero-timeline-panel {
    position: relative;
    width: min(1500px, 130vw);
    height: min(540px, 62vh);
    padding: 0;
    transform-origin: center center;
    transition:
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 560ms ease;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(180deg, rgba(16, 18, 24, 0.94), rgba(10, 11, 16, 0.82)),
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(249, 115, 22, 0.04));
    box-shadow:
        0 40px 140px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 80px rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-timeline-panel[data-stage="code"] {
    transform: scale(1.03);
    box-shadow:
        0 56px 180px rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 100px rgba(59, 130, 246, 0.12);
}

.hero-timeline-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 5px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-scene {
    position: absolute;
    inset: 0;
    padding: 18px 18px 22px;
    opacity: 0;
    transform: scale(0.965);
    transform-origin: center center;
    pointer-events: none;
}

.hero-scene.is-active {
    animation: hero-scene-cycle var(--scene-duration, 4000ms) linear both;
}

.hero-scene--after-effects {
    background:
        radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.08), transparent 26%),
        radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.08), transparent 24%);
}

.hero-scene--code {
    padding: 10px 10px 12px;
    background:
        radial-gradient(circle at 18% 14%, rgba(59, 130, 246, 0.08), transparent 22%),
        radial-gradient(circle at 78% 78%, rgba(249, 115, 22, 0.08), transparent 20%);
}

.hero-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
}

.hero-timecode {
    font-family: 'Courier New', Courier, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.hero-timeline-header--code .hero-timecode {
    color: rgba(147, 197, 253, 0.86);
}

.hero-time-ruler {
    height: 36px;
    border-radius: 12px 12px 8px 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(90deg, transparent 0, transparent 99px, rgba(255, 255, 255, 0.1) 99px, rgba(255, 255, 255, 0.1) 100px),
        repeating-linear-gradient(90deg, transparent 0, transparent 19px, rgba(255, 255, 255, 0.03) 19px, rgba(255, 255, 255, 0.03) 20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-track-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(100% - 54px);
    margin-top: 12px;
}

.hero-track {
    display: flex;
    min-height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.045);
}

.hero-track--audio {
    min-height: 96px;
    margin-top: auto;
}

.hero-track-label {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-track-label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 0.6rem;
    color: #fff;
    background: rgba(249, 115, 22, 0.9);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.34);
}

.hero-track-area {
    position: relative;
    flex: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        repeating-linear-gradient(90deg, transparent 0, transparent 119px, rgba(255, 255, 255, 0.05) 119px, rgba(255, 255, 255, 0.05) 120px),
        repeating-linear-gradient(180deg, transparent 0, transparent 35px, rgba(255, 255, 255, 0.03) 35px, rgba(255, 255, 255, 0.03) 36px);
}

.hero-clip {
    position: absolute;
    top: 10px;
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
}

.hero-clip--video {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(34, 87, 196, 0.72));
    border-color: rgba(96, 165, 250, 0.8);
}

.hero-clip--master {
    background: linear-gradient(135deg, rgba(136, 136, 148, 0.74), rgba(92, 92, 106, 0.56));
    border-color: rgba(180, 180, 190, 0.34);
}

.hero-clip--ai {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(194, 65, 12, 0.82));
    border-color: rgba(251, 146, 60, 0.85);
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.24);
    animation: hero-ai-pulse 2.6s ease-in-out infinite alternate;
}

.hero-clip--audio {
    top: 14px;
    height: 28px;
    padding: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 95, 70, 0.22));
    border-color: rgba(16, 185, 129, 0.42);
}

.hero-clip--audio::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 0 2px,
            transparent 2px 7px,
            rgba(255, 255, 255, 0.45) 7px 9px,
            transparent 9px 13px
        );
    opacity: 0.8;
}

.hero-clip--audio-secondary {
    top: 54px;
    opacity: 0.72;
}

.hero-playhead {
    position: absolute;
    top: 66px;
    bottom: 24px;
    width: 2px;
    left: calc(108px + (100% - 134px) * var(--premiere-progress, 0));
    background: linear-gradient(180deg, rgba(255, 120, 120, 0.95), rgba(255, 60, 60, 0.95));
    box-shadow: 0 0 18px rgba(255, 76, 76, 0.92);
    z-index: 4;
}

.hero-playhead::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -5px;
    width: 12px;
    height: 12px;
    background: #ff4d4d;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hero-playhead--ae {
    top: 314px;
    bottom: 22px;
    left: calc(130px + (100% - 156px) * var(--ae-progress, 0));
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(249, 115, 22, 0.95));
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.42);
}

.hero-playhead--ae::before {
    background: #fb923c;
}

.hero-ae-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.82fr);
    gap: 14px;
    height: 242px;
    margin-bottom: 12px;
}

.hero-ae-preview,
.hero-ae-inspector,
.hero-code-shell {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 10, 15, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-ae-preview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(38, 42, 50, 0.96), rgba(13, 15, 20, 0.98));
}

.hero-ae-preview-topbar,
.hero-ae-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.hero-ae-preview-topbar {
    min-height: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-ae-preview-footer {
    min-height: 28px;
    justify-content: flex-start;
    gap: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-ae-preview-tab {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 0.6rem;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-ae-preview-tab--active {
    background: rgba(15, 17, 24, 0.82);
    color: rgba(248, 250, 252, 0.9);
}

.hero-ae-preview-meta,
.hero-ae-preview-footer {
    color: rgba(191, 219, 254, 0.72);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
}

.hero-ae-preview-pill {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.82);
}

.hero-ae-preview-canvas {
    position: relative;
    flex: 1;
    overflow: hidden;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.022) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.022) 75%, rgba(255, 255, 255, 0.022)),
        linear-gradient(45deg, rgba(255, 255, 255, 0.022) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.022) 75%, rgba(255, 255, 255, 0.022));
    background-position: 0 0, 14px 14px;
    background-size: 28px 28px;
    background-color: rgba(22, 24, 31, 0.96);
}

.hero-ae-preview-grid,
.hero-ae-preview-safe,
.hero-ae-preview-guides,
.hero-ae-preview-bounds,
.hero-ae-preview-anchor {
    position: absolute;
    pointer-events: none;
}

.hero-ae-preview-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.24;
}

.hero-ae-preview-guides {
    inset: 0;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(89, 161, 255, 0.28) calc(50% - 1px), rgba(89, 161, 255, 0.28) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(180deg, transparent calc(50% - 1px), rgba(89, 161, 255, 0.24) calc(50% - 1px), rgba(89, 161, 255, 0.24) calc(50% + 1px), transparent calc(50% + 1px));
    opacity: 0.6;
}

.hero-ae-preview-safe {
    inset: 12% 10%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.015);
}

.hero-ae-preview-bounds {
    left: 18%;
    top: 28%;
    width: 56%;
    height: 40%;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 12px;
}

.hero-ae-preview-anchor {
    left: 46%;
    top: 46%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.08);
}

.hero-ae-shape {
    position: absolute;
    border-radius: 18px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.24);
}

.hero-ae-shape--blue {
    width: 40%;
    height: 44px;
    left: 15%;
    top: 36%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.72));
    transform: skewX(-12deg);
}

.hero-ae-shape--orange {
    width: 30%;
    height: 44px;
    left: 45%;
    top: 51%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(194, 65, 12, 0.82));
    transform: skewX(-12deg);
}

.hero-ae-shape--text {
    left: 22%;
    top: 25%;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-ae-inspector {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 12px 14px 14px;
    background:
        linear-gradient(180deg, rgba(23, 26, 34, 0.98), rgba(11, 13, 18, 0.98));
}

.hero-ae-panel-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.hero-ae-panel-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(203, 213, 225, 0.68);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-ae-panel-tab--active {
    background: rgba(59, 130, 246, 0.18);
    color: rgba(239, 246, 255, 0.92);
}

.hero-ae-panel-title {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-ae-panel-title--secondary {
    margin-top: 0.8rem;
    color: rgba(148, 163, 184, 0.82);
}

.hero-ae-control {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0 0.1rem;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.72);
}

.hero-ae-slider {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hero-ae-slider-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.92), rgba(194, 65, 12, 0.86));
}

.hero-ae-slider-fill--blue {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.94), rgba(37, 99, 235, 0.84));
}

.hero-ae-ruler {
    height: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0.95rem 0.35rem;
    border-radius: 10px 10px 6px 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.1) 79px, rgba(255, 255, 255, 0.1) 80px),
        repeating-linear-gradient(90deg, transparent 0, transparent 15px, rgba(255, 255, 255, 0.03) 15px, rgba(255, 255, 255, 0.03) 16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-ae-ruler span {
    color: rgba(203, 213, 225, 0.66);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-ae-layers {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.hero-ae-layer {
    display: flex;
    min-height: 54px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-ae-layer-label {
    width: 154px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-ae-layer-switches {
    display: flex;
    gap: 0.28rem;
}

.hero-ae-layer-switch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.hero-ae-layer-switch--on {
    background: rgba(96, 165, 250, 0.92);
    border-color: rgba(147, 197, 253, 0.92);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.24);
}

.hero-ae-layer-chip {
    width: 4px;
    height: 22px;
    border-radius: 999px;
}

.hero-ae-layer-chip--orange {
    background: linear-gradient(180deg, rgba(249, 115, 22, 1), rgba(194, 65, 12, 0.86));
}

.hero-ae-layer-chip--blue {
    background: linear-gradient(180deg, rgba(96, 165, 250, 1), rgba(37, 99, 235, 0.86));
}

.hero-ae-layer-chip--master {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.9), rgba(100, 116, 139, 0.78));
}

.hero-ae-layer-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-ae-layer-track {
    position: relative;
    flex: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 255, 255, 0.045) 79px, rgba(255, 255, 255, 0.045) 80px);
}

.hero-ae-span {
    position: absolute;
    top: 10px;
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-ae-span--orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(194, 65, 12, 0.72));
}

.hero-ae-span--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.88), rgba(29, 78, 216, 0.68));
}

.hero-ae-span--master {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.74), rgba(100, 116, 139, 0.56));
}

.hero-ae-keyframe {
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
}

.hero-code-shell {
    position: relative;
    height: calc(100% - 54px);
    margin-top: 12px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 9, 14, 0.96), rgba(3, 4, 8, 0.96));
}

.hero-code-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.06), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.08), transparent 22%);
    pointer-events: none;
}

.hero-scene--code .hero-timeline-header {
    margin-bottom: 8px;
}

.hero-scene--code .hero-code-shell {
    height: calc(100% - 40px);
    margin-top: 6px;
    border-radius: 20px;
}

.hero-code-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 42px;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.hero-code-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.hero-code-dot--red {
    background: #f87171;
}

.hero-code-dot--yellow {
    background: #fbbf24;
}

.hero-code-dot--green {
    background: #34d399;
}

.hero-code-tab {
    margin-left: 0.4rem;
    color: rgba(191, 219, 254, 0.86);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.hero-code-assist {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.92));
    color: rgba(224, 242, 254, 0.92);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-code-assist::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 1), rgba(59, 130, 246, 0.92));
    box-shadow:
        0 0 12px rgba(249, 115, 22, 0.56),
        0 0 20px rgba(59, 130, 246, 0.22);
    animation: hero-ai-pulse 1.3s ease-in-out infinite alternate;
}

.hero-code-editor {
    margin: 0;
    height: calc(100% - 42px);
    padding: 1.25rem 1.4rem 1.4rem;
    overflow: hidden;
    color: #d4d4d4;
    font-family: 'SFMono-Regular', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.84rem;
    line-height: 1.48;
    white-space: pre-wrap;
}

.hero-code-token--keyword {
    color: #c586c0;
}

.hero-code-token--function {
    color: #dcdcaa;
}

.hero-code-token--property {
    color: #9cdcfe;
}

.hero-code-token--string {
    color: #ce9178;
}

.hero-code-token--punctuation {
    color: #d4d4d4;
}

.hero-code-cursor {
    display: inline-block;
    width: 0.62rem;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.18em;
    background: rgba(96, 165, 250, 0.95);
    animation: hero-code-blink 1s steps(1) infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes hero-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
}

@keyframes hero-scene-cycle {
    0% {
        opacity: 0;
        transform: scale(0.965);
    }
    12% {
        opacity: 1;
        transform: scale(1);
    }
    72% {
        opacity: 1;
        transform: scale(1.01);
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

@keyframes hero-ai-pulse {
    from { box-shadow: 0 0 18px rgba(249, 115, 22, 0.16); }
    to { box-shadow: 0 0 30px rgba(249, 115, 22, 0.48), inset 0 0 12px rgba(255, 255, 255, 0.12); }
}

@keyframes hero-code-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}
.menu-open {
    transform: translateX(0) !important;
}

#mobile-menu .nav-link {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition:
        opacity 220ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.menu-open .nav-link {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#mobile-menu.menu-open .nav-link:nth-child(1) {
    transition-delay: 70ms;
}

#mobile-menu.menu-open .nav-link:nth-child(2) {
    transition-delay: 120ms;
}

#mobile-menu.menu-open .nav-link:nth-child(3) {
    transition-delay: 170ms;
}

#mobile-menu.menu-open .nav-link:nth-child(4) {
    transition-delay: 220ms;
}

.nav-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
}

.nav-toggle-bar {
    position: absolute;
    width: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease,
        width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-toggle-bar:nth-child(1) {
    transform: translateY(-6px);
}

.nav-toggle-bar:nth-child(2) {
    transform: translateY(0);
}

.nav-toggle-bar:nth-child(3) {
    transform: translateY(6px);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.4);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.glow-text {
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-accent-blue {
    color: var(--accent-blue);
}

.text-accent-orange {
    color: var(--accent-orange);
}

.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem;
    min-height: 2.5rem;
    min-width: 10rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 87, 34, 0.3);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-primary,
.btn-outline {
    background:
        linear-gradient(180deg, rgba(60, 92, 207, 0.2), rgba(60, 92, 207, 0.1)),
        linear-gradient(90deg, rgba(60, 92, 207, 0.1), rgba(255, 87, 34, 0.1));
    color: #ffffff;
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, rgba(255, 87, 34, 0.2), rgba(255, 87, 34, 0.1)),
        linear-gradient(90deg, rgba(60, 92, 207, 0.14), rgba(255, 87, 34, 0.14));
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(255, 87, 34, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-header--left {
    text-align: left;
    max-width: 760px;
    margin: 0 0 var(--spacing-xl);
}

.section-header--services {
    text-align: left;
    max-width: none;
    margin: 0 0 var(--spacing-xl);
}

.section-header--services .section-header-copy {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.section-badge-row {
    margin: 0 0 var(--spacing-md);
}

.section-badge-row .badge {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-sm);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.bg-darker {
    background-color: transparent;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(20, 20, 30, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--accent-blue);
    border: 1px solid rgba(255, 87, 34, 0.65);
    margin-bottom: var(--spacing-md);
}

/* 4-up services layout controls */
.services-grid {
    --services-grid-columns: repeat(4, minmax(0, 1fr));
    --services-grid-gap: var(--spacing-lg);
    --service-card-layout-min-height: .2rem;
    --service-card-layout-padding: .1rem var(--spacing-lg) .5rem;
    --service-title-break-display: none;
    display: grid;
    grid-template-columns: var(--services-grid-columns);
    gap: var(--services-grid-gap);
    align-items: stretch;
}

.services-column {
    display: contents;
}

.services-column .service-card {
    min-height: var(--service-card-layout-min-height);
}

.services-column:nth-child(1) .service-card:nth-child(1) {
    order: 1;
}

.services-column:nth-child(2) .service-card:nth-child(1) {
    order: 2;
}

.services-column:nth-child(1) .service-card:nth-child(2) {
    order: 3;
}

.services-column:nth-child(2) .service-card:nth-child(2) {
    order: 4;
}

/* 2-up services layout controls */
@media (max-width: 1440px) {
    .services-grid {
        --services-grid-columns: repeat(2, minmax(0, 1fr));
        --service-card-layout-min-height: 1rem;
        --service-card-layout-padding: .5rem var(--spacing-lg) .5rem;
        --service-title-break-display: none;
        align-items: stretch;
    }

    .services-column {
        display: contents;
    }

    .services-column .service-card {
        height: 100%;
        align-self: stretch;
    }

    .service-card h3 {
        white-space: normal;
    }

    .service-card h3 br {
        display: var(--service-title-break-display);
    }
}

@media (max-width: 640px) {
    .services-grid {
        --services-grid-columns: 1fr;
        --service-card-layout-min-height: auto;
        --service-title-break-display: initial;
        grid-auto-rows: auto;
    }

    .services-column {
        display: contents;
    }

    .services-column .service-card {
        min-height: auto;
    }

    .service-card h3 {
        white-space: normal;
    }

    .service-card h3 br {
        display: var(--service-title-break-display);
    }
}

.services-grid.is-measuring .service-card,
.services-grid.is-measuring .service-card-content,
.services-grid.is-measuring .service-icon,
.services-grid.is-measuring .service-caret {
    transition: none !important;
}

.service-card {
    padding: var(--service-card-layout-padding);
    transition: none;
    display: flex;
    flex-direction: column;
    min-height: .2rem;
    height: 100%;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    border-color: rgba(60, 92, 207, 0.5);
}

.service-card-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.service-card-summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.service-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(60, 92, 207, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin-bottom: 0;
    flex-shrink: 0;
    transition: none;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    flex: 1;
}

.service-card h3 br {
    display: var(--service-title-break-display);
}

.service-card h3.service-title-force-breaks br {
    display: initial;
}

.service-card-content {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: var(--spacing-md);
    transform: none;
    transition: none;
}

.service-card-content p {
    color: var(--text-secondary);
    margin: 0;
}

.service-caret {
    display: none;
    flex: 0 0 auto;
    width: 0.85rem;
    height: 0.85rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.72;
    transform: rotate(45deg);
    transition: none;
}

.service-card.is-open .service-icon {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.08);
}

.service-card.is-open .service-card-content {
    max-height: 16rem;
    opacity: 1;
    margin-top: var(--spacing-md);
    transform: translateY(0);
}

.service-card.is-open .service-caret {
    transform: rotate(225deg);
    opacity: 1;
}

.service-card-toggle:focus-visible {
    outline: 2px solid rgba(255, 87, 34, 0.65);
    outline-offset: 6px;
    border-radius: 12px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
    .service-card {
        transition:
            transform var(--transition-smooth),
            border-color var(--transition-smooth),
            box-shadow var(--transition-smooth),
            opacity var(--transition-fast),
            filter var(--transition-fast);
    }

    .service-icon {
        transition: all var(--transition-fast);
    }

    .service-card:hover {
        transform: scale(0.985);
        border-color: rgba(255, 87, 34, 0.5);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .service-card:hover .service-icon {
        background: var(--accent-orange);
        color: white;
        transform: scale(1.08);
    }
}

@media (max-width: 1440px) {
    .service-card-summary {
        justify-content: flex-start;
    }

    .service-card-title-row {
        flex: 1;
    }

    .service-card h3 {
        flex: 1;
        text-align: left;
        white-space: normal;
    }

    .service-card h3 br {
        display: var(--service-title-break-display);
    }
}

@media (max-width: 640px) {
    .service-card-summary {
        justify-content: flex-start;
    }

    .service-card-title-row {
        flex: 1;
    }

    .service-card h3 {
        flex: 1;
        white-space: normal;
    }

    .service-card h3 br {
        display: var(--service-title-break-display);
    }

    .service-card,
    .service-icon,
    .service-caret {
        transition:
            transform var(--transition-smooth),
            border-color var(--transition-smooth),
            box-shadow var(--transition-smooth),
            opacity var(--transition-fast),
            filter var(--transition-fast);
    }

    .service-card {
        min-height: auto;
        height: auto;
        align-self: start;
    }

    .service-card-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        transform: translateY(-6px);
        transition:
            max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
            margin-top 420ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .services-grid:has(.service-card.is-open) .service-card:not(.is-open) {
        opacity: 0.42;
        filter: grayscale(0.75);
    }

    .services-grid:has(.service-card.is-open) .service-card:not(.is-open) h3,
    .services-grid:has(.service-card.is-open) .service-card:not(.is-open) .service-card-content p {
        color: rgba(190, 196, 210, 0.58);
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
    justify-content: center;
    gap: var(--spacing-lg);
}

.work-item {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    border-radius: 20px;
}

.work-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.work-info {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-category {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.work-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-sm);
}

.work-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.work-info .btn {
    align-self: center;
    margin-top: var(--spacing-lg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.contact-container > .section-badge-row {
    grid-column: 1 / -1;
}

.contact-info .section-desc {
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.method {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
    cursor: default;
}

.method svg {
    flex-shrink: 0;
}

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

.method a:hover,
.method a:focus-visible {
    color: inherit;
}

.method:hover {
    color: var(--accent-blue);
}

.contact-form-wrapper {
    padding: var(--spacing-xl);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.service-card::before,
.service-card::after,
.work-item::before,
.work-item::after,
.contact-form-wrapper::before,
.contact-form-wrapper::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
}

.service-card::before,
.work-item::before,
.contact-form-wrapper::before {
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(60, 92, 207, 0) 0%,
        rgba(60, 92, 207, 0.18) 10%,
        rgba(60, 92, 207, 0.76) 28%,
        rgba(60, 92, 207, 0.76) 72%,
        rgba(60, 92, 207, 0.18) 90%,
        rgba(60, 92, 207, 0) 100%
    );
    box-shadow: 0 0 14px rgba(60, 92, 207, 0.2);
}

.service-card::after,
.work-item::after,
.contact-form-wrapper::after {
    right: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 87, 34, 0) 0%,
        rgba(255, 87, 34, 0.16) 10%,
        rgba(255, 87, 34, 0.74) 28%,
        rgba(255, 87, 34, 0.74) 72%,
        rgba(255, 87, 34, 0.16) 90%,
        rgba(255, 87, 34, 0) 100%
    );
    box-shadow: 0 0 14px rgba(255, 87, 34, 0.16);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(60, 92, 207, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.w-100 {
    width: 100%;
}

.form-success {
    display: none;
    color: #10b981;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.site-loading .animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

.site-ready .animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Subtle glass nav on dark */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.7), rgba(20,20,20,0.55));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    will-change: transform, opacity;
}

#navbar.is-footer-hidden {
    transform: translateY(calc(-100% - 1rem));
    opacity: 0;
    pointer-events: none;
    transition:
        transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 760ms ease,
        background-color 300ms ease,
        padding-top 300ms ease,
        padding-bottom 300ms ease;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.nav-brand-logo-shell {
    width: 0;
    margin-right: 0;
    opacity: 0;
    overflow: hidden;
    flex: 0 0 auto;
    transform: translateX(-18px);
    transition:
        width var(--transition-smooth),
        margin-right var(--transition-smooth),
        opacity var(--transition-smooth),
        transform var(--transition-smooth);
}

.nav-brand-logo {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform var(--transition-fast);
}

.nav-brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    transition: transform var(--transition-smooth);
}

.nav-link {
    --nav-link-accent-rgb: 59, 130, 246;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    transform-origin: center;
    transition:
        color 180ms ease,
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    isolation: isolate;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: -0.3rem -0.55rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(var(--nav-link-accent-rgb), 0.34) 0%, rgba(var(--nav-link-accent-rgb), 0.14) 42%, rgba(var(--nav-link-accent-rgb), 0) 78%);
    opacity: 0;
    transform: scale(0.8);
    filter: blur(12px);
    transition:
        opacity 180ms ease,
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
    pointer-events: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: rgb(147, 197, 253);
    transform: scale(1.08);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.is-active,
.nav-link[aria-current="location"] {
    --nav-link-accent-rgb: 249, 115, 22;
    color: rgb(251, 146, 60);
    transform: scale(1.08);
}

.nav-link.is-active::before,
.nav-link[aria-current="location"]::before {
    opacity: 1;
    transform: scale(1);
}

#navbar.nav-brand-revealed .nav-brand-logo-shell {
    width: 54px;
    margin-right: 0.6rem;
    opacity: 1;
    transform: translateX(0);
}

#navbar.nav-brand-revealed .nav-brand:hover .nav-brand-logo {
    transform: scale(1.05);
}

/* Hard lock navbar in case other styles override */
#navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition:
        transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 340ms ease,
        background-color 300ms ease,
        padding-top 300ms ease,
        padding-bottom 300ms ease;
}

#navbar.nav-scrolled {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.92), rgba(18, 18, 18, 0.82));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

@media (prefers-reduced-motion: reduce) {
    #navbar {
        transition: none !important;
    }
}

/* Gradient edge to echo logo border */
.glass-nav--accent {
    position: relative;
}
.glass-nav--accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(59,130,246,0.0) 0%, rgba(59,130,246,0.8) 25%, rgba(249,115,22,0.8) 75%, rgba(249,115,22,0.0) 100%);
    box-shadow: 0 0 12px rgba(59,130,246,0.35), 0 0 12px rgba(249,115,22,0.35);
    pointer-events: none;
}

.hero-section {
    position: relative;
    z-index: 1;
    isolation: isolate;
    align-items: flex-start;
    min-height: 100vh;
    height: 100vh;
    padding-top: var(--nav-height);
    overflow: visible;
}

.hero-content {
    margin-top: calc(var(--nav-height) + 1.5vh);
}

.hero-subtitle {
    display: grid;
    gap: 0.35rem;
}

.hero-subtitle-line {
    display: block;
}

.scroll-indicator {
    --scroll-indicator-opacity: 1;
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 12;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.84);
    opacity: var(--scroll-indicator-opacity);
    pointer-events: auto;
    text-decoration: none;
    transform: translateX(-50%);
    transition: opacity 160ms ease;
}

.scroll-indicator-arrow {
    width: 18px;
    height: 18px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
    animation: scroll-indicator-bob 1.7s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

@keyframes scroll-indicator-bob {
    0%,
    100% {
        transform: translateY(-4px) rotate(45deg);
    }

    50% {
        transform: translateY(5px) rotate(45deg);
    }
}

.site-content {
    position: relative;
    z-index: 2;
    background: transparent;
}

.site-footer {
    position: relative;
    z-index: 2;
}

.footer-brand {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-brand:hover,
.footer-brand:focus-visible {
    opacity: 0.88;
}

.nav-brand-revealed-static .nav-brand-logo-shell {
    width: 54px;
    margin-right: 0.6rem;
    opacity: 1;
    transform: translateX(0);
}

.case-study-page {
    background:
        radial-gradient(circle at top left, rgba(60, 92, 207, 0.09), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(255, 87, 34, 0.12), transparent 24%),
        linear-gradient(180deg, #050608 0%, #090a0d 45%, #040404 100%);
}

.case-study-page .section {
    isolation: isolate;
    overflow: hidden;
}

.case-study-page .section::before,
.case-study-page .section::after {
    content: "";
    position: absolute;
    top: 50%;
    width: min(36rem, 42vw);
    height: min(36rem, 42vw);
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.32;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.case-study-page .section::before {
    left: -14vw;
    background: radial-gradient(circle, rgba(60, 92, 207, 0.28) 0%, rgba(60, 92, 207, 0) 70%);
}

.case-study-page .section::after {
    right: -14vw;
    background: radial-gradient(circle, rgba(180, 42, 24, 0.34) 0%, rgba(180, 42, 24, 0) 70%);
}

.case-study-page .section > .container {
    position: relative;
    z-index: 1;
}

.case-study-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.case-study-backdrop-glow {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.38;
}

.case-study-backdrop-glow--left {
    top: -12vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(60, 92, 207, 0.3) 0%, rgba(60, 92, 207, 0) 72%);
}

.case-study-backdrop-glow--right {
    right: -14vw;
    top: 8vh;
    background: radial-gradient(circle, rgba(180, 42, 24, 0.34) 0%, rgba(180, 42, 24, 0) 70%);
}

.case-study-backdrop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.18;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 1));
}

.case-floating-prototype-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 45;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(255, 87, 34, 0.38),
        0 0 64px rgba(255, 87, 34, 0.22);
}

.case-floating-prototype-btn::after {
    content: "";
    position: absolute;
    inset: -8px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(255, 87, 34, 0.34);
    box-shadow: 0 0 36px rgba(255, 87, 34, 0.36);
    opacity: 0.72;
    animation: case-floating-button-glow 2200ms ease-in-out infinite;
}

@keyframes case-floating-button-glow {
    0%,
    100% {
        transform: scale(0.98);
        opacity: 0.46;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

.case-section-border {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 9, 12, 0.42);
}

.case-hero {
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 4rem;
    min-height: auto;
    display: flex;
    align-items: flex-start;
}

.case-hero::before {
    right: -14vw;
    left: auto;
    top: 30%;
    opacity: 0.38;
    background: radial-gradient(circle, rgba(180, 42, 24, 0.34) 0%, rgba(180, 42, 24, 0) 70%);
}

.case-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
}

.case-hero-copy {
    max-width: 42rem;
}

.case-kicker {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
}

.case-hero-title {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.75rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    max-width: 12ch;
}

.case-hero-lead,
.case-body {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 65ch;
}

.case-hero-lead {
    margin: 1.75rem 0 0;
}

.case-hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.case-hero-visual {
    position: relative;
    align-self: end;
    padding: 1.5rem 0 1.5rem 1.5rem;
}

.case-screenshot-frame {
    position: relative;
    width: min(100%, 900px);
    margin-left: auto;
    padding: 1.6rem;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(60, 92, 207, 0.16), transparent 28%),
        radial-gradient(circle at 84% 82%, rgba(255, 87, 34, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(17, 19, 25, 0.94), rgba(10, 11, 16, 0.96));
    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        -30px 0 90px rgba(60, 92, 207, 0.18),
        34px 0 96px rgba(255, 87, 34, 0.14);
    transform: perspective(1800px) rotateY(-7deg) rotateX(3deg) scale(1.02);
    isolation: isolate;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.case-screenshot-frame::before {
    content: "";
    position: absolute;
    inset: -10% -7% -14% -2%;
    border-radius: 42px;
    background:
        radial-gradient(circle at 22% 36%, rgba(60, 92, 207, 0.22), transparent 28%),
        radial-gradient(circle at 82% 68%, rgba(255, 87, 34, 0.2), transparent 26%);
    z-index: -1;
    filter: blur(36px);
    opacity: 0.9;
}

.case-screenshot-frame::after {
    content: "";
    position: absolute;
    inset: 1.6rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.case-screenshot-image,
.case-showcase-image {
    display: block;
    width: 100%;
    height: auto;
}

.case-screenshot-image {
    border-radius: 24px;
    transform: scale(0.985) translateX(0) translateY(0);
    transform-origin: center center;
}

.case-hero-caption {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.94rem;
    line-height: 1.5;
    max-width: 36rem;
    margin-left: auto;
}

.label,
.case-app-sidebar-label,
.case-app-eyebrow,
.case-app-card-label {
    margin: 0 0 0;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 700;
}

.case-story-grid,
.case-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 2.5rem;
    align-items: start;
}

.case-story-copy .section-desc,
.case-story-copy .case-body {
    max-width: none;
}

.case-constraints-layout {
    display: grid;
    gap: 1.5rem;
}

.case-constraints-intro {
    max-width: 860px;
}

.case-constraints-intro .case-body {
    max-width: 760px;
}

.case-constraints-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.case-pull-quote {
    margin: 2rem 0 0;
    padding: 0;
    border-top: 0;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.9);
}

.case-observations,
.case-constraint-card,
.case-application-panel,
.case-cta-panel {
    padding: 2rem;
    border-radius: 24px;
}

.case-observations,
.case-approach-card,
.case-application-panel,
.case-showcase-card,
.case-constraint-card,
.case-cta-panel {
    position: relative;
    overflow: hidden;
}

.case-observations::before,
.case-observations::after,
.case-approach-card::before,
.case-approach-card::after,
.case-application-panel::before,
.case-application-panel::after,
.case-showcase-card::before,
.case-showcase-card::after,
.case-constraint-card::before,
.case-constraint-card::after,
.case-cta-panel::before,
.case-cta-panel::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 999px;
    z-index: 1;
    pointer-events: none;
}

.case-observations::before,
.case-approach-card::before,
.case-application-panel::before,
.case-showcase-card::before,
.case-constraint-card::before,
.case-cta-panel::before {
    left: 0;
    background: linear-gradient(
        180deg,
        rgba(60, 92, 207, 0) 0%,
        rgba(60, 92, 207, 0.18) 10%,
        rgba(60, 92, 207, 0.76) 28%,
        rgba(60, 92, 207, 0.76) 72%,
        rgba(60, 92, 207, 0.18) 90%,
        rgba(60, 92, 207, 0) 100%
    );
    box-shadow: 0 0 14px rgba(60, 92, 207, 0.2);
}

.case-observations::after,
.case-approach-card::after,
.case-application-panel::after,
.case-showcase-card::after,
.case-constraint-card::after,
.case-cta-panel::after {
    right: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 87, 34, 0) 0%,
        rgba(255, 87, 34, 0.16) 10%,
        rgba(255, 87, 34, 0.74) 28%,
        rgba(255, 87, 34, 0.74) 72%,
        rgba(255, 87, 34, 0.16) 90%,
        rgba(255, 87, 34, 0) 100%
    );
    box-shadow: 0 0 14px rgba(255, 87, 34, 0.16);
}

.case-observations h3,
.case-constraint-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.case-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    color: var(--text-secondary);
}

.case-checklist li {
    position: relative;
    padding-left: 1.25rem;
}

.case-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #ff5722;
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.55);
}

.case-approach-grid,
.case-application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.case-application-grid {
    justify-content: end;
    grid-template-columns: repeat(2, minmax(0, 10.5rem));
    align-content: start;
}

.case-application-panel {
    justify-self: end;
}

.case-approach-header {
    max-width: none;
}

.case-approach-header .section-desc {
    max-width: 68ch;
}

.case-approach-card,
.case-application-item {
    padding: 1.5rem;
    border-radius: 22px;
}

.case-application-item {
    min-height: 0;
    padding: 1.15rem 1.4rem;
    max-width: 12ch;
    line-height: 1.35;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.case-card-index {
    display: inline-flex;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.case-approach-card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.case-approach-card p,
.case-application-item {
    color: var(--text-secondary);
}

.case-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.case-showcase-card {
    border-radius: 24px;
}

.case-showcase-card--wide::before,
.case-showcase-card--wide::after {
    content: none;
}

.case-showcase-card--wide {
    grid-column: span 3;
}

.case-showcase-visual {
    position: relative;
    min-height: 230px;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(255, 87, 34, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.case-showcase-visual--screenshot {
    padding: 1.25rem;
    min-height: 0;
    background: rgba(10, 11, 16, 0.94);
    isolation: isolate;
    overflow: visible;
}

.case-showcase-visual--screenshot::before,
.case-showcase-visual--screenshot::after {
    content: "";
    position: absolute;
    width: 34%;
    height: 56%;
    border-radius: 999px;
    filter: blur(68px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.case-showcase-visual--screenshot::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle at top left, rgba(60, 92, 207, 0.68) 0%, rgba(60, 92, 207, 0) 72%);
}

.case-showcase-visual--screenshot::after {
    right: -10%;
    bottom: -12%;
    background: radial-gradient(circle at bottom right, rgba(255, 87, 34, 0.64) 0%, rgba(255, 87, 34, 0) 72%);
}

.case-showcase-visual--screenshot .case-showcase-image {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 9, 12, 0.96);
    box-shadow:
        -20px 0 50px rgba(60, 92, 207, 0.12),
        20px 0 50px rgba(255, 87, 34, 0.1);
}

.case-showcase-image {
    display: block;
    width: 100%;
    height: auto;
}

.case-showcase-visual--insight {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-insight-block {
    position: relative;
    width: min(100%, 280px);
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.24);
}

.case-insight-block::before,
.case-insight-block::after {
    content: none;
}

.case-showcase-insight {
    display: grid;
    gap: 0.5rem;
    height: 100%;
    padding: 1.5rem;
}

.case-showcase-insight .label {
    margin: 0;
}

.case-showcase-insight > p {
    margin: 0;
}

.case-showcase-insight--uniform {
    gap: 5px;
}

.case-showcase-insight--uniform > .label + p {
    padding: 0.5rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.24);
    color: rgba(255, 255, 255, 1);
}

.case-showcase-insight--uniform > p:not(.label) {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.case-constraint-card p:last-child {
    margin-bottom: 0;
}

.case-constraint-emphasis {
    color: rgba(255, 255, 255, 0.9);
}

.case-application-item {
    font-size: 1rem;
}

.case-cta-section {
    padding-top: 0;
}

.case-cta-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.case-cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 430px) {
    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .case-floating-prototype-btn {
        right: 10rem;
        bottom: 1rem;
    }

    .nav-brand-revealed-static .nav-brand-logo-shell {
        width: 44px;
    }

    .hero-timeline-shell {
        inset: 18vh -40vw 24vh -40vw;
        transform: perspective(1200px) rotateX(68deg) rotateZ(-16deg) scale(1.08);
    }

    .hero-timeline-panel {
        height: 340px;
        opacity: 0.72;
    }

    .hero-timeline-panel[data-stage="code"] {
        transform: scale(1.04);
    }

    .hero-scene {
        padding: 14px 14px 18px;
    }

    .hero-scene--code {
        padding: 8px 8px 10px;
    }

    .hero-track-label {
        width: 68px;
        font-size: 0.65rem;
    }

    .hero-clip {
        font-size: 0.58rem;
        padding: 0 10px;
    }

    .hero-playhead {
        top: 64px;
        left: calc(82px + (100% - 108px) * var(--premiere-progress, 0));
    }

    .hero-ae-stage {
        grid-template-columns: 1fr;
        height: 152px;
    }

    .hero-ae-inspector {
        display: none;
    }

    .hero-ae-preview-meta,
    .hero-ae-preview-footer {
        font-size: 0.52rem;
    }

    .hero-ae-layer-label {
        width: 102px;
        gap: 0.35rem;
        padding: 0 0.45rem;
    }

    .hero-ae-layer-switches {
        gap: 0.2rem;
    }

    .hero-ae-layer-name {
        font-size: 0.58rem;
    }

    .hero-ae-span {
        padding: 0 0.45rem;
        font-size: 0.52rem;
    }

    .hero-ae-ruler {
        padding: 0 0.55rem 0.3rem;
    }

    .hero-ae-ruler span {
        font-size: 0.5rem;
    }

    .hero-playhead--ae {
        top: 236px;
        left: calc(88px + (100% - 114px) * var(--ae-progress, 0));
    }

    .hero-code-editor {
        padding: 0.9rem 1rem 1rem;
        font-size: 0.63rem;
        line-height: 1.45;
    }

    .hero-code-tab {
        font-size: 0.68rem;
    }

    .hero-code-assist {
        padding: 0.26rem 0.55rem;
        font-size: 0.54rem;
    }

    .hero-section {
        min-height: 85vh;
        height: 85vh;
        padding-top: var(--nav-height);
    }

    .case-hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 3rem;
    }

    .case-hero-grid,
    .case-story-grid,
    .case-two-column,
    .case-cta-panel,
    .case-approach-grid,
    .case-application-grid,
    .case-showcase-grid {
        grid-template-columns: 1fr;
    }

    .case-screenshot-frame {
        transform: none;
        width: 100%;
    }

    .case-screenshot-frame::before {
        inset: -8% -2% -10% -1%;
    }

    .case-screenshot-image {
        transform: none;
    }

    .case-hero-visual {
        padding: 1rem 0 1.5rem;
    }

    .case-hero-caption {
        margin-left: 0;
    }

    .case-showcase-card--wide {
        grid-column: span 1;
    }

    .case-cta-actions {
        justify-content: flex-start;
    }

    .scroll-indicator {
        display: block;
        bottom: -6px;
    }
}

@media (max-height: 1024px) {
    .hero-section {
        min-height: calc(100vh + var(--nav-height));
        height: calc(100vh + var(--nav-height));
    }
    .scroll-indicator {
        bottom: 24px;
    }
}

@media (max-height: 700px) {
    .hero-content {
        margin-top: calc(var(--nav-height) + 0.5vh);
        margin-bottom: 10vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ambient,
    .hero-playhead,
    .hero-clip--ai,
    .hero-code-cursor {
        animation: none;
    }

    .hero-scene {
        animation: none !important;
        transition: none;
    }

    .hero-scene.is-active {
        opacity: 1;
        transform: none;
    }

    .nav-brand-logo-shell,
    .nav-brand-text {
        transition: none;
    }
}

/* Switch to hamburger under 865px */
.nav-desktop {
    display: none;
}
.nav-mobile {
    display: flex;
}
.nav-mobile-menu {
    display: flex;
}
@media (min-width: 866px) {
    .nav-desktop {
        display: block;
    }
    .nav-mobile {
        display: none;
    }
    .nav-mobile-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-brand-text {
        font-size: 1.25rem;
    }

    .nav-brand-logo {
        width: 44px;
        height: 44px;
    }

    #navbar.nav-brand-revealed .nav-brand-logo-shell {
        width: 44px;
        margin-right: 0.45rem;
    }
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contact-info {
        text-align: center;
    }

    .contact-info .section-desc {
        text-align: center;
    }

    .contact-methods {
        align-items: center;
    }

    .case-hero-grid,
    .case-story-grid,
    .case-two-column,
    .case-constraints-grid,
    .case-cta-panel {
        grid-template-columns: 1fr;
    }

    .case-hero-title {
        max-width: none;
    }

    .case-screenshot-frame {
        margin-left: 0;
    }

    .case-hero-caption {
        max-width: none;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .case-hero-visual {
        padding: 0.5rem 0 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-caret {
        display: inline-flex;
    }

}

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

    .method {
        font-size: 1rem;
    }

}
/* Local utility classes replacing removed Tailwind CDN dependency */
.scroll-smooth { scroll-behavior: smooth; }
.fixed { position: fixed; }
.relative { position: relative; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.w-100 { width: 100%; }
.h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-10 { margin-left: 2.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.block { display: block; }
.text-center { text-align: center; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; }
.tracking-tighter { letter-spacing: -0.025em; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-accent-blue { color: #3b82f6; }
.text-accent-orange { color: #f97316; }
.bg-black { background-color: #000; }
.bg-wes-black { background-color: #050505; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.rounded-md { border-radius: 0.375rem; }
.rounded-sm { border-radius: 0.125rem; }
.transform { transform: translateZ(0); }
.translate-x-full { transform: translateX(100%); }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.duration-300 { transition-duration: 0.3s; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.h-20 { height: 5rem; }
.h-44 { height: 11rem; }
.w-20 { width: 5rem; }
.w-44 { width: 11rem; }
.object-contain { object-fit: contain; }
.border-t { border-top: 1px solid; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.hover\:text-white:hover { color: #fff; }
.selection\:bg-white::selection { background: #fff; }
.selection\:text-black::selection { color: #000; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:h-64 { height: 16rem; }
  .md\:w-64 { width: 16rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-9xl { font-size: 8rem; }
}

.hero-headline-responsive {
  white-space: normal;
}

.hero-headline-line {
  display: block;
  line-height: 0.95;
}
