@font-face {
    font-family: 'Syne';
    src: url('/assets/fonts/Syne-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Syne';
    src: url('/assets/fonts/Syne-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-base: #f0f6f4;
    --bg-membrane: rgba(255, 255, 255, 0.45);
    --primary-ethereal: #3ecfb2;
    --primary-rgb: 62, 207, 178;
    --hover-active: #40d8bc;
    --hover-text: #0f2b25;
    --signal-bright: #78ffe7;
    --signal-rgb: 120, 255, 231;
    --secondary-ethereal: #ff9a9e;
    --accent-organic: #a8ede2;
    --text-deep: #0f2b25;
    --text-soft: #4a7a70;

    /* Light Neumorphic Molding */
    --neu-light-outer: 8px 8px 16px #cbd5e0, -8px -8px 16px #ffffff;
    --neu-light-inner: inset 4px 4px 8px #cbd5e0, inset -4px -4px 8px #ffffff;
    --organic-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);

    /* Typography */
    --font-brand: 'Syne', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-headers: var(--font-heading);
    --font-body: 'Space Grotesk', sans-serif;
    --heading-descender-pad: 0.08em;

    /* Button System */
    --btn-radius: 60px 20px 60px 20px;
    --btn-secondary-bg: linear-gradient(145deg, rgba(244, 248, 252, 0.9), rgba(228, 235, 242, 0.82));
    --btn-secondary-text: var(--text-deep);
    --btn-secondary-border: rgba(255, 255, 255, 0.65);
    --btn-secondary-shadow:
        7px 7px 14px rgba(160, 170, 180, 0.24),
        -7px -7px 14px rgba(255, 255, 255, 0.78);
    --btn-secondary-shadow-pressed:
        inset 6px 6px 12px rgba(160, 170, 180, 0.24),
        inset -6px -6px 12px rgba(255, 255, 255, 0.76);
    --btn-primary-bg: linear-gradient(145deg, rgba(238, 251, 247, 0.96), rgba(221, 245, 238, 0.94));
    --btn-primary-text: #0a211b;
    --btn-primary-border: rgba(109, 214, 191, 0.42);
    --btn-primary-shadow:
        7px 7px 14px rgba(160, 170, 180, 0.22),
        -7px -7px 14px rgba(255, 255, 255, 0.74),
        inset 0 0 0 1px rgba(151, 255, 232, 0.18),
        inset 0 0 14px rgba(62, 207, 178, 0.14);
    --btn-primary-shadow-hover:
        inset 7px 7px 14px rgba(160, 170, 180, 0.24),
        inset -7px -7px 14px rgba(255, 255, 255, 0.8),
        inset 0 0 24px rgba(62, 207, 178, 0.28),
        0 0 12px rgba(62, 207, 178, 0.18);
    --btn-primary-shadow-active:
        inset 8px 8px 16px rgba(160, 170, 180, 0.26),
        inset -8px -8px 16px rgba(255, 255, 255, 0.82),
        inset 0 0 28px rgba(62, 207, 178, 0.34),
        0 0 14px rgba(62, 207, 178, 0.2);
}

/* Global Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-organic);
    outline-offset: 4px;
    border-radius: 4px;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.bio-orb:focus-visible {
    outline-offset: 8px;
}

/* volumetric shadow optimization for 60fps scrolling */
:root {
    --neu-light-outer: 10px 10px 30px rgba(0, 0, 0, 0.05),
        -10px -10px 30px rgba(255, 255, 255, 0.9);
    --neu-light-inner: inset 4px 4px 10px rgba(0, 0, 0, 0.05),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-deep);
    overflow-x: hidden;
    min-height: 100vh;
}

#hero,
#contact,
footer {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
.navbar a,
.btn {
    font-family: var(--font-headers);
    font-weight: 800;
}

h1,
h2,
h3,
h4 {
    line-height: 1.22;
    padding-bottom: var(--heading-descender-pad);
}

.btn,
nav > a,
.nav-item > a,
.nav-dropdown-item,
.brand-mark {
    line-height: 1.2;
    padding-bottom: var(--heading-descender-pad);
}

/* Seamless Nav */
.brand-mark {
    position: fixed;
    top: 30px;
    left: 34px;
    transform: none;
    z-index: 1001;
    text-decoration: none;
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.2px;
    line-height: 1.16;
    color: var(--text-deep);
    text-transform: uppercase;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#hero-intro-content .hero-text-wrapper h1 {
    font-family: var(--font-brand);
}

.brand-mark:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.mobile-nav-toggle {
    display: none;
}

.lang-toggle {
    position: fixed;
    top: 30px;
    right: 34px;
    z-index: 1206;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(240, 246, 244, 0.96);
    box-shadow: 0 8px 20px rgba(15, 43, 37, 0.08);
}

.lang-btn {
    appearance: none;
    border: none;
    min-width: 46px;
    height: 34px;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-deep);
}

.lang-btn.is-active {
    color: #ecfff9;
    background: linear-gradient(135deg, #168269 0%, #2cb89d 55%, #7af7df 100%);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.35);
}

nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 60px 20px 60px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 15px 44px;
    isolation: isolate;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

nav.nav-scroll-hidden:not(.mobile-open):not(:focus-within):not(:hover) {
    /* Keep a small visible hint so the collapsed nav still feels discoverable. */
    transform: translateX(-50%) translateY(-130%);
}

nav>a,
.nav-item>a {
    margin: 0 14px;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: all 0.4s;
    text-transform: uppercase;
}

nav>a:hover,
.nav-item>a:hover {
    color: var(--text-deep);
    transform: scale(1.1);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 14px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 230px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), var(--neu-light-outer);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.open .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
    background: rgba(var(--primary-rgb), 0.17);
    color: var(--text-deep);
    transform: translateY(-1px);
}



/* Project Cards Refinement */
/* Consolidated Project Card styles moved to line 750 for organization */

.project-card.elite {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    /* Removed redundant transition definition to respect base class optimization */
}

.project-card.elite:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(var(--primary-rgb), 0.1);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    width: 100%;
}

.project-tech span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    color: var(--text-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* High-Intent CTA Variant */
.btn.btn-primary,
#hero-cta,
.btn.contact-nav-btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-border);
    box-shadow: var(--btn-primary-shadow);
    font-weight: 700;
}

#hero-cta {
    margin-bottom: 4px;
}

.hero-action-row {
    width: auto;
    max-width: none;
    display: block;
    margin: 0 auto;
}

#hero-intro-content:not(.show-about):not(.show-client):not(.show-projects):not(.show-services) .hero-action-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-intro-content:not(.show-about):not(.show-client):not(.show-projects):not(.show-services) #hero-cta {
    display: block;
    margin: 0 auto 4px;
}

#hero-intro-content:not(.show-about):not(.show-client):not(.show-projects):not(.show-services) .hero-skip-cta {
    display: block;
    margin: 18px auto 0;
}

.btn.btn-primary:hover,
#hero-cta:hover,
.btn.contact-nav-btn:hover {
    color: var(--btn-primary-text);
    transform: none;
    box-shadow: var(--btn-primary-shadow-hover);
    filter: none;
}

.btn.btn-primary:active,
#hero-cta:active,
.btn.contact-nav-btn:active {
    transform: none;
    box-shadow: var(--btn-primary-shadow-active);
}

#hero-cta.locked-until-third {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
}

.hero-skip-cta {
    margin-top: 18px;
}

.btn.hero-switch-cta {
    display: none;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    max-width: 0;
    padding-inline: 0;
    border-width: 0;
    letter-spacing: 0;
    transform: translateY(-12px);
    pointer-events: none;
    overflow: hidden;
}

#hero-intro-content.show-about.about-switch-ready #about-switch-cta {
    display: inline-block;
    opacity: 1;
    max-height: 84px;
    max-width: 360px;
    padding-inline: 36px;
    border-width: 1px;
    letter-spacing: 2px;
    margin-top: 0;
    transform: translateY(0);
    pointer-events: auto;
}

#hero-intro-content.show-client.client-switch-ready #client-switch-cta {
    display: inline-block;
    opacity: 1;
    max-height: 84px;
    max-width: 360px;
    padding-inline: 36px;
    border-width: 1px;
    letter-spacing: 2px;
    margin-top: 0;
    transform: translateY(0);
    pointer-events: auto;
}

#hero-intro-content.path-choice-open .hero-skip-cta,
#hero-intro-content.show-about .hero-skip-cta,
#hero-intro-content.show-client .hero-skip-cta,
#hero-intro-content.show-projects .hero-skip-cta,
#hero-intro-content.show-services .hero-skip-cta {
    opacity: 0;
    max-height: 0;
    margin: 0;
    transform: translateY(-16px);
    pointer-events: none;
}

#hero-intro-content.path-choice-open .hero-switch-cta,
#hero-intro-content.show-about #client-switch-cta,
#hero-intro-content.show-client #about-switch-cta,
#hero-intro-content.show-projects .hero-switch-cta,
#hero-intro-content.show-services .hero-switch-cta,
#hero-intro-content.returning-home .hero-switch-cta {
    display: none;
    opacity: 0;
    max-height: 0;
    max-width: 0;
    padding-inline: 0;
    border-width: 0;
    letter-spacing: 0;
    margin: 0;
    transform: translateY(-16px);
    pointer-events: none;
}

/* Bio-Orb Floating Contact Anchor */
.bio-orb {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-organic);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-deep);
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.35);
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.bio-orb:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.55);
    background: var(--hover-active);
    color: var(--hover-text);
}

.bio-orb svg {
    width: 28px;
    height: 28px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.bio-orb:hover svg {
    transform: scale(1.2);
}

.project-card .btn {
    margin-top: auto;
}

/* Floating Hero */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px 20px;
    /* Reduced from 100px to lift content slightly */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

header .container {
    display: grid;
    place-items: center;
}

header h1 {
    font-size: 4.5rem;
    /* Reduced from 6rem */
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -3px;
    background: linear-gradient(135deg, var(--text-deep), var(--primary-ethereal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.05));
    text-align: center;
    transition: opacity 1.5s cubic-bezier(0.23, 1, 0.32, 1), transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Explicitly target H1 inside the container for transition matching */
.hero-text-wrapper {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 0;
    overflow: hidden;
    /* Transition handles the collapse direction; restoreHeroText animation handles restore */
    transition: max-height 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                margin-bottom 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@keyframes restoreHeroText {
    0%, 30% {
        max-height: 0;
        opacity: 0;
        margin-bottom: -20px;
        transform: translateY(-30px) scale(0.96);
    }

    100% {
        max-height: 300px;
        opacity: 1;
        margin-bottom: 0;
        transform: translateY(0) scale(1);
    }
}

/* Base state with high specificity to ensure animation handoff */
#hero-intro-content h1,
#hero-intro-content .hero-tagline {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

#hero-intro-content .hero-tagline {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: min(700px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    --wave-pos: -20%;
    --wave-opacity: 0;
}

#hero-intro-content .hero-tagline::after {
    content: none;
}

.hero-karaoke-line {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    color: inherit;
    overflow-wrap: anywhere;
    --wave-pos: -20%;
    --wave-opacity: 0;
}

.hero-karaoke-line::after {
    content: attr(data-karaoke);
    position: absolute;
    inset: 0;
    color: transparent;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) calc(var(--wave-pos) - 16%),
        rgba(31, 108, 84, 0.28) calc(var(--wave-pos) - 11%),
        rgba(31, 108, 84, 0.72) calc(var(--wave-pos) - 5%),
        #6ff2d7 var(--wave-pos),
        rgba(31, 108, 84, 0.82) calc(var(--wave-pos) + 5%),
        rgba(31, 108, 84, 0.34) calc(var(--wave-pos) + 11%),
        rgba(0, 0, 0, 0) calc(var(--wave-pos) + 16%)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: var(--wave-opacity);
    pointer-events: none;
    will-change: opacity;
}

#hero-intro-content .hero-tagline.hero-wave-active {
    color: var(--text-deep);
}

#hero-intro-content .hero-tagline.hero-wave-complete {
    color: var(--text-deep);
}

.hero-karaoke-line.is-active,
.hero-karaoke-line.is-complete {
    color: var(--text-deep);
}

/* Apply sequencing animation ONLY when returning to Home explicitly */
#hero-intro-content.returning-home .hero-text-wrapper {
    animation: restoreHeroText 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

#hero-intro-content.show-about .hero-text-wrapper,
#hero-intro-content.show-client .hero-text-wrapper,
#hero-intro-content.show-projects .hero-text-wrapper,
#hero-intro-content.show-services .hero-text-wrapper {
    max-height: 0;
    opacity: 0;
    margin-bottom: -20px;
    transform: translateY(-30px) scale(0.96);
    pointer-events: none;
    /* CSS transition (defined on .hero-text-wrapper) handles the smooth collapse */
}

header p {
    font-size: 1.3rem;
    /* Slightly smaller */
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto 30px;
    /* Reduced margin */
    font-weight: 300;
    text-align: center;
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
    /* Slight delay for subtitle */
}

body.hero-compact-mode header {
    align-items: flex-start;
    min-height: 100svh;
    padding-top: clamp(150px, 28svh, 220px);
    padding-bottom: 32px;
}

body.hero-compact-mode .hero-text-wrapper {
    max-height: 240px;
}

body.hero-compact-mode header h1 {
    font-size: clamp(2.8rem, 7vw, 3.65rem);
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    line-height: 1;
}

body.hero-compact-mode header p {
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    line-height: 1.42;
    margin-bottom: 20px;
}

body.hero-compact-mode #hero-intro-content .hero-tagline {
    width: min(440px, calc(100vw - 36px));
    gap: 3px;
}

body.hero-compact-mode #hero-intro-content:not(.show-about):not(.show-client):not(.show-projects):not(.show-services) #hero-cta {
    margin-bottom: 0;
}

/* Transition States */
.hidden-transition {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* Delays handled individually per element for sequencing */
    pointer-events: none;
    margin: 0 auto;
}

/* Keep fixed filters anchored to viewport during project-section reveal */
#hero-projects.hidden-transition {
    transform: none;
}

#about-text {
    /* Ensure structural consistency across states to prevent jumps */
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}

#client-text {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 28px;
    position: relative;
    display: grid;
    place-items: center;
}

.client-panel {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 760px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.client-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.client-outcomes {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.client-outcomes span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.16);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--text-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* REVERSE SEQUENCE (Going Home) */
/* 1. Video collapses first */
#hero-intro-content:not(.show-about) .video-placeholder.hidden-transition {
    transition-delay: 0s;
}

/* 2. About Text collapses second */
#hero-intro-content:not(.show-about) #about-text.hidden-transition {
    transition-delay: 0.8s;
}

#hero-intro-content.show-about #about-text,
#hero-intro-content.show-about .video-placeholder {
    opacity: 1;
    max-height: 1200px;
    transform: translateY(0);
    pointer-events: auto;
}

#hero-intro-content.show-about #client-text {
    opacity: 0;
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

#hero-intro-content.show-about .client-media-placeholder {
    opacity: 0;
    max-height: 0;
    margin: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

#hero-intro-content.show-client #client-text {
    opacity: 1;
    max-height: 520px;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.25s;
}

#hero-intro-content.show-client .client-media-placeholder {
    opacity: 1;
    max-height: 1200px;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.45s;
}

#hero-intro-content.show-client #about-text,
#hero-intro-content.show-client .video-placeholder {
    opacity: 0;
    max-height: 0;
    margin: 0;
    transform: translateY(-20px);
    overflow: hidden;
    box-shadow: none;
    pointer-events: none;
}

/* Staggered unfolding sequence */
#hero-intro-content.show-about #about-text {
    /* Container for shifting chapters */
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
    display: grid;
    /* Grid-stacking chapters */
    place-items: center;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.2s;
}

.about-chapter {
    grid-area: 1 / 1;
    /* Occupy same cell */
    width: 100%;
    max-width: 760px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.about-chapter.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.about-chapter h2 {
    margin-bottom: 15px;
}

.karaoke-copy {
    width: min(100%, 760px);
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.45;
}

#about-text .karaoke-copy {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#about-text .karaoke-copy .karaoke-source-sentence {
    display: none;
}

#about-text .karaoke-copy:not(.is-expanded) .karaoke-line:not(.is-current-sentence) {
    display: none;
}

#about-text .karaoke-copy:not(.is-expanded) .karaoke-line.is-current-sentence {
    animation: aboutSentenceRise 0.36s ease both;
}

#about-text .karaoke-copy.is-expanded .karaoke-line {
    display: block;
}

#about-text .karaoke-copy.is-expanded .karaoke-source-sentence {
    display: none;
}

.about-expand-toggle {
    width: 34px;
    height: 26px;
    margin: 12px auto 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--text-deep);
    box-shadow: var(--neu-light-inner);
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.about-expand-toggle:hover,
.about-expand-toggle:focus-visible {
    border-color: rgba(var(--primary-rgb), 0.48);
    background: rgba(var(--primary-rgb), 0.12);
    outline: none;
    transform: translateY(-1px);
}

.about-expand-toggle.is-expanded {
    background: rgba(var(--primary-rgb), 0.14);
}

@keyframes aboutSentenceRise {
    from {
        transform: translateY(8px);
    }
    to {
        transform: translateY(2px);
    }
}

.karaoke-line,
.client-karaoke-line {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    position: relative;
    color: var(--text-soft);
    opacity: 0.78;
    transform: translateY(2px);
    transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
    --wave-pos: -20%;
    --wave-opacity: 0;
}

.karaoke-line::after,
.client-karaoke-line::after {
    content: attr(data-karaoke);
    position: absolute;
    inset: 0;
    color: transparent;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) calc(var(--wave-pos) - 16%),
        rgba(31, 108, 84, 0.28) calc(var(--wave-pos) - 11%),
        rgba(31, 108, 84, 0.72) calc(var(--wave-pos) - 5%),
        #6ff2d7 var(--wave-pos),
        rgba(31, 108, 84, 0.82) calc(var(--wave-pos) + 5%),
        rgba(31, 108, 84, 0.34) calc(var(--wave-pos) + 11%),
        rgba(0, 0, 0, 0) calc(var(--wave-pos) + 16%)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: var(--wave-opacity);
    pointer-events: none;
    will-change: opacity, background-position;
}

.karaoke-line.is-active,
.client-karaoke-line.is-active {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-deep);
}

.karaoke-line.is-complete,
.client-karaoke-line.is-complete {
    opacity: 0.94;
    color: var(--text-deep);
}

.client-karaoke-copy {
    margin-bottom: 4px;
}

#hero-intro-content.show-about .video-placeholder {
    overflow: visible;
    box-shadow: var(--neu-light-outer);
    transition-delay: 0.4s, 0.4s, 0.4s, 2.25s;
}

#hero-intro-content.show-about .btn {
    transition-delay: 0.1s;
}

#hero-intro-content.show-projects .video-placeholder {
    /* Shape-Shifting Morph: video becomes the card nucleus */
    max-width: 420px;
    aspect-ratio: 1 / 1.1;
    transform: translateY(0);
    /* Align with centered grid */
    opacity: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

#hero-intro-content.show-projects #about-text,
#hero-intro-content.show-projects #client-text,
#hero-intro-content.show-projects .client-media-placeholder,
#hero-intro-content.show-projects .btn {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

#hero-intro-content.show-services #about-text,
#hero-intro-content.show-services #client-text,
#hero-intro-content.show-services .client-media-placeholder,
#hero-intro-content.show-services .video-placeholder,
#hero-intro-content.show-services .btn {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin: 0;
    pointer-events: none;
}

/* Conflict removed: Duplicate hero exit rules deleted to allow smooth transition at line 241 to take effect */

#hero-intro-content,
#hero-projects,
#hero-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    transition: opacity 1.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1.8s cubic-bezier(0.23, 1, 0.32, 1);
    grid-area: 1/1;
}

#hero-intro-content.show-about,
#hero-intro-content.show-client {
    justify-content: flex-start;
    padding-top: 96px;
    padding-bottom: 28px;
}

#hero-projects.show-projects {
    margin-top: 80px;
    /* Keep project section centered/lower */
}

#hero-services.show-services {
    margin-top: 80px;
    opacity: 1;
    max-height: none;
    transform: none;
    overflow: visible;
    pointer-events: auto;
}

#hero-projects h2,
#hero-about h2,
header h1 {
    margin: 0 0 40px 0;
    /* Standardized margin for all hero titles */
}

#hero-projects h2 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin: 0;
}

.project-header-row {
    width: min(1120px, 100%);
    margin: 0 auto 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    min-height: 64px;
}

.project-header-row h2 {
    text-align: center;
    width: 100%;
}

.project-title-text {
    display: none;
}

.project-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: static;
    align-self: center;
    max-width: 100%;
    min-height: auto;
    padding: 10px 30px 14px;
    border-radius: 36px 86px 36px 86px;
    border: 1px solid rgba(22, 130, 105, 0.2);
    background: rgba(255, 255, 255, 0.54);
    color: var(--text-deep);
    box-shadow: 0 12px 28px rgba(15, 43, 37, 0.08);
    font-family: var(--font-headers);
    font-size: clamp(2.25rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: balance;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-filter-toggle::after {
    content: '';
    flex: 0 0 auto;
    width: 0.48em;
    height: 0.48em;
    border-right: 0.11em solid currentColor;
    border-bottom: 0.11em solid currentColor;
    transform: translateY(-0.12em) rotate(45deg);
    opacity: 0.78;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.project-filter-toggle[aria-expanded="true"]::after {
    transform: translateY(0.08em) rotate(225deg);
    opacity: 1;
}

.project-filter-toggle:hover,
.project-filter-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(22, 130, 105, 0.34);
    box-shadow: 0 16px 34px rgba(15, 43, 37, 0.1), 0 0 18px rgba(var(--primary-rgb), 0.12);
}

.services-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 44px 34px 34px;
    border-radius: 40px 100px 40px 100px;
    background: var(--bg-membrane);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--neu-light-outer);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.services-hero {
    text-align: center;
}

.services-kicker {
    margin: 0 0 12px;
    font-size: 0.74rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-soft);
}

.services-shell h2 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: -1px;
}

.services-hero p {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--text-soft);
    line-height: 1.6;
}

.services-story {
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: stretch;
}

.services-frame-column {
    position: relative;
    align-self: stretch;
    padding-bottom: 22px;
}

.services-frame {
    position: relative;
    top: auto;
    width: 100%;
    border-radius: 36px 88px 36px 88px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--neu-light-outer);
    background: var(--bg-base);
    aspect-ratio: 16 / 10;
    transform: none;
    will-change: auto;
}

.services-frame-stack {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

.services-frame-item {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: inherit;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.services-frame-item.active {
    opacity: 1;
}

.services-frame-item :is(video, img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.services-frame-item figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    margin: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.76rem;
    letter-spacing: 0.4px;
    color: #ecfff9;
    background: rgba(7, 24, 20, 0.48);
    border: 1px solid rgba(122, 247, 223, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.services-progress-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 20px rgba(15, 43, 37, 0.12);
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.services-progress-pill strong {
    color: var(--text-deep);
    font-size: 0.86rem;
}

.services-step-column {
    display: grid;
    gap: 14px;
}

.service-step-media {
    display: none;
}

.service-step {
    border-radius: 24px 54px 24px 54px;
    border: 1px solid rgba(62, 207, 178, 0.24);
    background: rgba(255, 255, 255, 0.72);
    padding: 20px 20px 18px;
    min-height: var(--services-frame-height, 0px);
    box-shadow: 0 8px 22px rgba(15, 43, 37, 0.07);
    opacity: 0.66;
    transform: none;
    transition: opacity 0.35s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}

.service-step.is-active {
    opacity: 1;
    transform: none;
    border-color: rgba(62, 207, 178, 0.55);
    background: rgba(245, 251, 249, 0.82);
    box-shadow: inset 7px 7px 14px rgba(15, 43, 37, 0.09), inset -7px -7px 14px rgba(255, 255, 255, 0.92);
}

.service-step-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-soft);
}

.service-step h3 {
    margin: 0 0 8px;
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    line-height: 1.24;
    color: var(--text-deep);
}

.service-step > p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.service-step > .services-expect-label {
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-deep);
}

.services-bullet-list {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
    color: var(--text-soft);
    line-height: 1.5;
}

.services-bullet-list li {
    position: relative;
    padding-left: 26px;
}

.services-bullet-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: -0.02em;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.5;
    opacity: 1;
}

.services-bullet-list li + li {
    margin-top: 5px;
}

.services-scope-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.services-scope-card {
    border-radius: 24px;
    border: 1px solid rgba(62, 207, 178, 0.26);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(15, 43, 37, 0.07);
    padding: 18px 18px 16px;
    text-align: left;
}

.services-scope-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.services-scope-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
    line-height: 1.5;
}

.services-scope-list li + li {
    margin-top: 5px;
}

.services-choice-row {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

#back-to-projects {
    margin-top: 0;
}

#hero-about h2 {
    font-size: 2.5rem;
}

/* About Section Elements */
.video-placeholder {
    width: 85%;
    max-width: 750px;
    aspect-ratio: 16 / 9;
    background: var(--bg-base);
    border-radius: 40px 100px 40px 100px;
    box-shadow: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* Force stacking context for perfect clipping */
    transition:
        opacity 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        max-height 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.45s ease;
    /* Slower, more organic expansion */
}

.client-media-placeholder {
    width: 85%;
    max-width: 750px;
    aspect-ratio: 16 / 9;
    background: var(--bg-base);
    border-radius: 40px 100px 40px 100px;
    box-shadow: var(--neu-light-outer);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        opacity 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        max-height 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1.8s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.45s ease;
}

.client-media-stack {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    overflow: hidden;
}

.client-media {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: inherit;
    pointer-events: none;
}

.client-media.active {
    opacity: 1;
}

.client-media-placeholder:hover {
    box-shadow: var(--neu-light-inner);
    transform: scale(0.995);
}

.video-stack {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: inherit;
    overflow: hidden;
}

.about-video {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: inherit;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.about-video.active {
    opacity: 1;
    pointer-events: auto;
}

.video-placeholder:hover {
    box-shadow: var(--neu-light-inner);
    transform: scale(0.995);
}

#hero-intro-content.show-about .video-placeholder {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

#hero-intro-content.show-about .video-stack {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 40px 100px 40px 100px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: var(--bg-base);
    box-shadow: var(--neu-light-outer);
}

#hero-intro-content.show-about .about-video {
    inset: 0;
    width: 100%;
    height: 100%;
}

#hero-intro-content.show-about .video-progress-container {
    --about-progress: 0;
    position: relative;
    width: fit-content;
    max-width: 100%;
    height: 56px;
    margin: 0 auto;
    padding: 0 20px;
    align-self: center;
    justify-content: center;
    background: rgba(7, 24, 20, 0.52);
    border: 1px solid rgba(122, 247, 223, 0.38);
    box-shadow: 0 12px 28px rgba(7, 24, 20, 0.16), inset 0 0 0 1px rgba(236, 255, 249, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    isolation: isolate;
}

#hero-intro-content.show-about .video-progress-container::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleX(var(--about-progress));
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(var(--signal-rgb), 0.38), rgba(var(--signal-rgb), 0.18));
    box-shadow: 0 0 24px rgba(var(--signal-rgb), 0.28);
    opacity: 0.92;
    pointer-events: none;
    transition: transform 0.16s linear;
    z-index: 0;
}

#hero-intro-content.show-about .video-progress-container>* {
    position: relative;
    z-index: 1;
}

#hero-intro-content.show-about .video-progress-container.ready-to-advance {
    background: rgba(7, 24, 20, 0.58);
    border-color: rgba(122, 247, 223, 0.56);
    box-shadow: 0 14px 32px rgba(7, 24, 20, 0.2), 0 0 18px rgba(var(--signal-rgb), 0.18);
}

#hero-intro-content.show-about .video-skill-chips .skill-chip {
    background: rgba(236, 255, 249, 0.15);
    border-color: rgba(236, 255, 249, 0.26);
    color: #ecfff9;
    box-shadow: 0 4px 10px rgba(7, 24, 20, 0.14);
}

#hero-intro-content.show-about .video-skill-chips {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}

#hero-intro-content.show-about .chapter-back-button {
    color: #ecfff9;
    background: rgba(236, 255, 249, 0.12);
    border-color: rgba(236, 255, 249, 0.2);
}

#hero-intro-content.show-about .chapter-back-button:not(.is-visible) {
    display: none;
}

#hero-intro-content.show-about .progress-bg {
    stroke: rgba(236, 255, 249, 0.24);
}

#hero-intro-content.show-about .pill-controls {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(236, 255, 249, 0.2);
    border-radius: 999px;
    background: rgba(236, 255, 249, 0.12);
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.08), inset -3px -3px 8px rgba(255, 255, 255, 0.14);
    transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

#hero-intro-content.show-about .pill-controls:hover,
#hero-intro-content.show-about .pill-controls:focus-visible {
    background: rgba(var(--primary-rgb), 0.22);
    border-color: rgba(var(--signal-rgb), 0.55);
}

#hero-intro-content.show-about .progress-spinner {
    opacity: 0;
    transform: scale(0.8);
}

#hero-intro-content.show-about .next-arrow {
    opacity: 1;
    transform: scale(1) translateX(0);
    color: #ecfff9;
    filter: none;
    animation: none;
}

#hero-intro-content.show-about .video-progress-container.story-complete .next-arrow {
    opacity: 0;
    transform: scale(0.8);
}

/* Multi-Chapter Progress Indication */
.video-progress-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 20px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 100;
    height: 64px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.video-skill-chips {
    display: flex;
    gap: 8px;
}

.chapter-back-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.08), inset -3px -3px 8px rgba(255, 255, 255, 0.14);
    opacity: 0;
    transform: translateX(8px) scale(0.88);
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.chapter-back-button.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.chapter-back-button:hover,
.chapter-back-button:focus-visible {
    background: rgba(var(--primary-rgb), 0.22);
    border-color: rgba(var(--signal-rgb), 0.55);
    outline: none;
}

.chapter-back-button:disabled {
    cursor: default;
}

.pill-controls {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.pill-controls::before,
.pill-controls::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.pill-controls>svg {
    grid-area: 1/1;
}

.video-skill-chips .skill-chip {
    opacity: 1;
    transform: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.65rem;
    padding: 4px 10px;
    white-space: nowrap;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInUp 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.video-skill-chips .skill-chip:nth-child(2) {
    animation-delay: 0.1s;
}

.video-skill-chips .skill-chip:nth-child(3) {
    animation-delay: 0.2s;
}

.video-progress-container.ready-to-advance {
    pointer-events: auto;
    cursor: pointer;
    /* Keep container neutral; spotlight stays on the pulsing circular advance control */
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.video-progress-container.ready-to-advance:hover {
    transform: scale(1.05) translateY(0);
    background: rgba(var(--signal-rgb), 0.26);
    border-color: rgba(var(--signal-rgb), 0.95);
    box-shadow: 0 12px 36px rgba(var(--signal-rgb), 0.36);
}

.ready-to-advance .pill-controls::before {
    opacity: 1;
    transform: scale(1);
    border: 2px solid rgba(var(--signal-rgb), 0.95);
    box-shadow: 0 0 0 4px rgba(var(--signal-rgb), 0.2);
}

.ready-to-advance .pill-controls::after {
    opacity: 1;
    border: 2px solid rgba(var(--signal-rgb), 0.6);
    animation: advancePulse 1.25s ease-out infinite;
}

.next-arrow {
    opacity: 0;
    transform: scale(0.5) translateX(-2px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--signal-bright);
}

.ready-to-advance .next-arrow {
    opacity: 1;
    transform: scale(1.12) translateX(0);
    color: var(--signal-bright);
    filter: drop-shadow(0 0 10px rgba(var(--signal-rgb), 0.98));
    animation: advanceArrowPulse 1.15s ease-in-out infinite;
}

.check-icon {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #4CAF50;
    /* Success Green */
}

.story-complete .check-icon {
    opacity: 1;
    transform: scale(1);
}

.story-complete .progress-spinner,
.story-complete .next-arrow {
    opacity: 0;
    transform: scale(0.8);
}

.video-progress-container.story-complete {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.1);
    pointer-events: none;
    /* No more clicking needed */
}

.ready-to-advance .progress-spinner {
    opacity: 0;
    transform: scale(0.8);
}

@keyframes advancePulse {
    0% {
        transform: scale(0.86);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.34);
        opacity: 0;
    }
    100% {
        transform: scale(1.34);
        opacity: 0;
    }
}

@keyframes advanceArrowPulse {
    0% {
        transform: scale(1.08) translateX(0);
        filter: drop-shadow(0 0 6px rgba(var(--signal-rgb), 0.75));
    }
    50% {
        transform: scale(1.2) translateX(0);
        filter: drop-shadow(0 0 14px rgba(var(--signal-rgb), 1));
    }
    100% {
        transform: scale(1.08) translateX(0);
        filter: drop-shadow(0 0 6px rgba(var(--signal-rgb), 0.75));
    }
}

.video-placeholder.hidden-transition:not(.hidden)+#hero-cta+.video-progress-container,
#hero-intro-content.show-about .video-progress-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

#hero-intro-content.show-client #client-slide-advance {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
}

.progress-spinner {
    transform: rotate(-90deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.progress-bg {
    fill: none;
    stroke: rgba(var(--primary-rgb), 0.1);
    stroke-width: 4;
}

.progress-bar {
    fill: none;
    stroke: var(--primary-ethereal);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 126;
    /* 2 * PI * r = 2 * 3.14 * 20 */
    stroke-dashoffset: 126;
}

.chapter-indicator {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(232, 255, 249, 0.88);
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
    min-width: 35px;
    text-align: center;
    text-shadow: 0 0 8px rgba(var(--signal-rgb), 0.22);
}

.video-overlay {
    text-align: center;
    color: var(--text-soft);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#hero-path-chooser {
    width: min(760px, 92%);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(14px);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.72s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
                margin-top 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero-intro-content.path-choice-open #hero-path-chooser {
    max-height: 330px;
    opacity: 1;
    margin-top: 18px;
    transform: translateY(0);
    pointer-events: auto;
    overflow: visible;
}

.path-chooser-title {
    margin: 0 0 10px;
    width: 100%;
    text-align: center;
    font-size: 0.86rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-soft);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-branch {
    position: relative;
    width: 420px;
    max-width: 92%;
    height: 92px;
    margin: 0 auto 12px;
}

.path-hub {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.8);
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.28);
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-branch-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.path-curve {
    fill: none;
    stroke: rgba(var(--primary-rgb), 0.72);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.2));
    transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
                stroke-dashoffset 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-stem {
    fill: none;
    stroke: rgba(var(--primary-rgb), 0.72);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    opacity: 0;
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                stroke-dashoffset 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#hero-intro-content.path-choice-open .path-hub {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition-delay: 0.08s;
}

#hero-intro-content.path-choice-open .path-chooser-title {
    opacity: 1;
    transform: translateY(0);
}

#hero-intro-content.path-choice-open .path-stem {
    opacity: 1;
    stroke-dashoffset: 0;
    transition-delay: 0.14s;
}

#hero-intro-content.path-choice-open .path-curve {
    opacity: 1;
    stroke-dashoffset: 0;
    transition-delay: 0.26s;
}

.path-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 14px;
    width: 100%;
}

.path-option {
    width: 100%;
    min-height: 56px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
    text-transform: none;
    letter-spacing: 0.2px;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s ease;
}

.btn.path-option {
    background: linear-gradient(145deg, rgba(244, 248, 252, 0.9), rgba(228, 235, 242, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        7px 7px 14px rgba(160, 170, 180, 0.24),
        -7px -7px 14px rgba(255, 255, 255, 0.78);
}

#hero-intro-content.path-choice-open .path-option {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.4s;
}

#hero-intro-content.path-choice-open .path-option:nth-child(2) {
    transition-delay: 0.48s;
}

.path-option strong {
    display: block;
    margin-bottom: 0;
    font-family: var(--font-headers);
    font-size: 0.86rem;
    color: var(--text-deep);
    letter-spacing: 0.8px;
}

.path-option small {
    display: none;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.35;
}

.path-option:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn.path-option:hover,
.btn.path-option:focus-visible {
    transform: translateY(0) scale(1.01);
    color: var(--text-deep);
    box-shadow:
        inset 6px 6px 12px rgba(160, 170, 180, 0.24),
        inset -6px -6px 12px rgba(255, 255, 255, 0.76);
}

.btn.path-option:active {
    transform: translateY(1px) scale(0.995);
}

.path-option:focus-visible {
    outline-offset: 4px;
}

#hero-intro-content.show-about #hero-path-chooser,
#hero-intro-content.show-client #hero-path-chooser,
#hero-intro-content.show-projects #hero-path-chooser,
#hero-intro-content.show-services #hero-path-chooser {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* Projects Sidebar Filters */
.project-filter-sidebar {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, -8px);
    width: min(860px, calc(100vw - 96px));
    padding: 18px;
    background: rgba(248, 252, 250, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 44px rgba(15, 43, 37, 0.12), inset 0 0 0 1px rgba(62, 207, 178, 0.08);
    border-radius: 34px 82px 34px 82px;
    opacity: 0;
    pointer-events: none;
    z-index: 1204;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, box-shadow 0.24s ease;
}

.project-filter-sidebar h3 {
    display: none;
}

.project-filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes filter-attention {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

#side-controls.attention-bounce {
    animation: filter-attention 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-filter-sidebar.is-open,
body.projects-filter-open .project-filter-sidebar {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

/* Projects Layout - Flowing */
.project-layout {
    display: flex;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
}

.project-main {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding-left: 0;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.projects-container[data-project-swipe="page"] {
    touch-action: pan-y;
}

.project-card {
    background: var(--bg-membrane);
    border-radius: 40px 100px 40px 100px;
    padding: 60px 40px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: var(--neu-light-outer);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    /* Increased to accommodate content comfortably */
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
}

.project-card.page-enter,
.project-card.page-exit-active {
    pointer-events: none;
}

.project-card.page-enter {
    opacity: 0;
    transform: translate3d(calc(var(--page-direction, 1) * 34px), 0, 0) scale(0.96);
}

.project-card.page-enter.page-enter-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 0.34s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.44s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: calc(var(--page-slot, 0) * 55ms);
}

.project-card.page-exit-active {
    opacity: 0;
    transform: translate3d(calc(var(--page-direction, 1) * -28px), 0, 0) scale(0.97);
    transition:
        opacity 0.24s cubic-bezier(0.4, 0, 1, 1),
        transform 0.24s cubic-bezier(0.4, 0, 1, 1);
    transition-delay: calc((2 - var(--page-slot, 0)) * 40ms);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    min-height: 4.4rem;
    /* Standardizes space for 2 lines of title */
    display: block;
    text-align: center;
    line-height: 1.18;
    padding-inline: 8px;
    width: 100%;
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-wrap: balance;
}

.project-card p {
    flex-grow: 1;
    /* This pushes the tech group to the bottom */
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card:nth-child(1) {
    transform: translateX(calc(100% + 40px)) scale(0.5);
}

.project-card:nth-child(3) {
    transform: translateX(calc(-100% - 40px)) scale(0.5);
}

#hero-projects.show-projects .project-card {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

#hero-projects.show-projects .project-card:nth-child(2) {
    transition-delay: 0.3s;
    transition-duration: 1s;
}

#hero-projects.show-projects .project-card:nth-child(1),
#hero-projects.show-projects .project-card:nth-child(3) {
    transition-delay: 1s;
    transition-duration: 1.2s;
}

/* Cell Absorption Logic - Reverse movement */
#hero-projects.absorbing .project-card {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

#hero-projects.absorbing .project-card:nth-child(1) {
    transform: translateX(calc(100% + 40px)) scale(0.5);
    transition-delay: 0s;
}

#hero-projects.absorbing .project-card:nth-child(3) {
    transform: translateX(calc(-100% - 40px)) scale(0.5);
    transition-delay: 0s;
}

#hero-projects.absorbing .project-card:nth-child(2) {
    transform: scale(0.6);
    transition-delay: 0.4s;
    /* Absorbs side cards first */
}

.project-card:hover {
    border-radius: 100px 40px 100px 40px;
    transform: scale(1.02);
    box-shadow: var(--organic-glow), 20px 20px 40px rgba(0, 0, 0, 0.05);
    background: white;
}

.project-card h3 {
    font-size: clamp(1.85rem, 2.25vw, 2.2rem);
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--text-deep), var(--primary-ethereal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card p {
    color: var(--text-soft);
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
    border-radius: var(--btn-radius);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--btn-secondary-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    position: relative;
}

#hero-intro-content.show-about .btn,
#hero-intro-content.show-client .btn {
    margin-top: 40px;
}

#hero-intro-content.show-about .hero-action-row .btn,
#hero-intro-content.show-client .hero-action-row .btn {
    margin-top: 0;
}

#hero-intro-content.show-about .hero-action-row,
#hero-intro-content.show-client .hero-action-row {
    width: 100%;
    max-width: 740px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(0);
    box-shadow: var(--btn-secondary-shadow-pressed);
    color: var(--text-deep);
    border-color: rgba(255, 255, 255, 0.78);
}

.btn:active {
    transform: translateY(1px) scale(0.995);
}

.btn-ghost {
    background: rgba(239, 246, 244, 0.8);
    color: var(--text-deep);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(15, 43, 37, 0.08);
}

.btn-ghost:hover {
    background: rgba(245, 251, 249, 0.92);
    box-shadow: 0 10px 20px rgba(15, 43, 37, 0.1);
}

.btn-sm {
    padding: 10px 25px;
    font-size: 0.75rem;
}

.filter-btn {
    border-radius: 28px;
    width: 100%;
    min-width: 0;
    text-align: center;
    min-height: 58px;
    padding: 11px 18px;
    font-size: 0.82rem;
    letter-spacing: 1.1px;
    text-transform: none;
    color: var(--text-deep);
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid rgba(15, 43, 37, 0.22);
    box-shadow: 0 8px 18px rgba(15, 43, 37, 0.06);
}

.filter-btn.active {
    background: linear-gradient(135deg, #168269 0%, #2cb89d 55%, #7af7df 100%);
    color: #ecfff9;
    border-color: rgba(15, 43, 37, 0.45);
    box-shadow: 0 0 20px rgba(var(--signal-rgb), 0.35), var(--neu-light-inner);
}

.filter-btn:hover {
    transform: translateY(0) scale(1.01);
    box-shadow:
        inset 6px 6px 12px rgba(160, 170, 180, 0.24),
        inset -6px -6px 12px rgba(255, 255, 255, 0.76);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
    padding-bottom: 20px;
}

.pagination-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}

.pagination-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.pagination-dots .dot:hover {
    background: rgba(var(--primary-rgb), 0.4);
    transform: scale(1.3);
}

.pagination-dots .dot.active {
    background: var(--accent-organic);
    width: 12px;
    border-radius: 4px;
    transform: scale(1.1);
}

.pagination-dots .dot.active:hover {
    transform: scale(1.2);
}

#page-info {
    font-family: var(--font-headers);
    font-weight: 800;
    color: var(--primary-ethereal);
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in h1 {
    animation: fadeInUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-in .hero-tagline {
    animation: fadeInUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
    opacity: 0;
    /* Start hidden for stagger */
}

/* Skill Biosphere */
.skill-biosphere {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
    justify-content: center;
}

.skill-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(10px);
}

.about-chapter.active .skill-chip {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry for chips */
.about-chapter.active .skill-chip:nth-child(1) {
    transition-delay: 0.5s;
}

.about-chapter.active .skill-chip:nth-child(2) {
    transition-delay: 0.6s;
}

.about-chapter.active .skill-chip:nth-child(3) {
    transition-delay: 0.7s;
}

.skill-chip:hover {
    background: var(--accent-organic);
    color: var(--text-deep);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

/* Nav Link States */
.nav-links a,
nav > a[data-nav-main],
.nav-item > a[data-nav-main] {
    position: relative;
}

.nav-links a {
    position: relative;
    color: var(--text-soft);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a.active,
nav > a[data-nav-main].active,
.nav-item > a[data-nav-main].active {
    color: #168269;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.18);
}

.nav-links a::after,
nav > a[data-nav-main]::after,
.nav-item > a[data-nav-main]::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: linear-gradient(135deg, #168269 0%, #2cb89d 70%, #7af7df 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.34);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a.active::after,
nav > a[data-nav-main].active::after,
.nav-item > a[data-nav-main].active::after {
    transform: translateX(-50%) scaleX(1);
}

#pricing {
    padding: 64px 20px 24px;
    position: relative;
    z-index: 9;
}

.pricing-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 38px 30px 30px;
    border-radius: 40px 100px 40px 100px;
    background: var(--bg-membrane);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--neu-light-outer);
    text-align: center;
    overflow-anchor: none;
}

.pricing-shell.is-measuring,
.pricing-shell.is-measuring * {
    transition: none !important;
    animation: none !important;
}

.pricing-kicker {
    margin: 0 0 10px;
    font-size: 0.74rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-soft);
}

.pricing-shell h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    letter-spacing: -1px;
}

.pricing-lead {
    margin: 0 auto;
    max-width: 62ch;
    color: var(--text-soft);
    line-height: 1.6;
}

.pricing-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    transition: gap 0.4s ease;
}

.pricing-carousel-controls {
    display: none;
}

.pricing-card {
    border-radius: 24px 54px 24px 54px;
    border: 1px solid rgba(62, 207, 178, 0.26);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(15, 43, 37, 0.07);
    padding: 22px 22px 18px;
    text-align: left;
    cursor: default;
    transition: border-radius 0.48s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.48s cubic-bezier(0.19, 1, 0.22, 1), background 0.48s cubic-bezier(0.19, 1, 0.22, 1), padding 0.48s cubic-bezier(0.19, 1, 0.22, 1);
    outline: none;
    min-width: 0;
    min-height: 0;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-radius: 64px 34px 64px 34px;
    padding: 26px 24px 18px;
    transform: none;
    box-shadow: var(--organic-glow), 20px 20px 40px rgba(0, 0, 0, 0.05);
    background: white;
}

.pricing-card.is-expanded {
    border-radius: 64px 34px 64px 34px;
    padding: 26px 24px 18px;
    transform: none;
    box-shadow: var(--organic-glow), 20px 20px 40px rgba(0, 0, 0, 0.05);
    background: white;
}

.pricing-card:focus-visible {
    border-color: rgba(var(--signal-rgb), 0.8);
    box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.2), var(--organic-glow);
}

.pricing-card h3 {
    margin: 0 0 6px;
    font-size: 1.24rem;
    padding-left: 0;
}

.pricing-card.is-expanded h3 {
    padding-left: 0;
}

.pricing-card-bestfit {
    margin: 0;
    padding-left: 0;
    color: var(--text-soft);
    font-size: 0.79rem;
    line-height: 1.45;
    letter-spacing: 0.2px;
    opacity: 0.9;
    max-height: none;
    overflow: visible;
}

.pricing-card.is-expanded .pricing-card-bestfit {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transform: translateY(-4px);
}

.pricing-feature-list {
    margin: 12px 0 0;
    padding-left: 0;
    color: var(--text-soft);
    line-height: 1.5;
    max-height: none;
    overflow: visible;
    list-style: none;
}

.pricing-feature-list li + li {
    margin-top: 5px;
}

.pricing-feature-list li,
.pricing-detail-list li,
.pricing-mobile-checklist li {
    position: relative;
    padding-left: 24px;
}

.pricing-feature-list li::before,
.pricing-detail-list li::before,
.pricing-mobile-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.02em;
    color: var(--primary-ethereal);
    font-weight: 900;
}

.pricing-card-details {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
    margin-top: 14px;
    flex-grow: 1;
}

.pricing-card.is-expanded .pricing-card-details {
    max-height: 340px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 8px;
    flex-grow: 1;
}

.pricing-details-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-soft);
}

.pricing-detail-list {
    margin: 0;
    padding-left: 0;
    color: var(--text-soft);
    line-height: 1.52;
    list-style: none;
}

.pricing-detail-list li + li {
    margin-top: 5px;
}

.pricing-mobile-checklist-wrap {
    display: none;
}

.pricing-card-toggle {
    margin: 12px 0 0;
    font-size: 0.72rem;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-soft);
}

.pricing-detail-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 17px;
    min-height: 40px;
    border: 1px solid rgba(62, 207, 178, 0.28);
    border-radius: 22px 10px 22px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(224, 255, 248, 0.72));
    color: var(--text-deep);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(47, 190, 161, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: border-radius 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.pricing-detail-btn:hover,
.pricing-detail-btn:focus-visible {
    border-radius: 10px 22px 10px 22px;
    border-color: rgba(62, 207, 178, 0.48);
    color: var(--primary-ethereal);
    box-shadow: 0 14px 28px rgba(47, 190, 161, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pricing-card-action {
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 4px;
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
    border-top: 1px solid rgba(62, 207, 178, 0.26);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.pricing-card.is-expanded .pricing-card-action {
    margin-top: 14px;
    padding-top: 12px;
    padding-bottom: 8px;
    max-height: 140px;
    opacity: 1;
    transform: translateY(0);
    border-top-color: rgba(62, 207, 178, 0.26);
    overflow: visible;
}

.pricing-card-action-price {
    color: var(--primary-ethereal);
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.pricing-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    min-height: 52px;
    min-width: 132px;
    border-radius: 44px 16px 44px 16px;
    font-size: 0.74rem;
    letter-spacing: 1.6px;
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
    background: var(--btn-primary-bg);
    box-shadow: var(--btn-primary-shadow);
    transition: box-shadow 0.24s ease, border-color 0.24s ease, color 0.24s ease;
    margin-left: auto;
}

.pricing-book-btn:hover {
    transform: none;
    color: var(--btn-primary-text);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--btn-primary-shadow-hover);
}

.pricing-book-btn:active {
    transform: none;
    box-shadow: var(--btn-primary-shadow-active);
}

.pricing-book-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.26), 0 12px 26px rgba(47, 190, 161, 0.32);
}

body.pricing-modal-open {
    overflow: hidden;
}

.pricing-details-modal[hidden] {
    display: none;
}

.pricing-details-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: grid;
    place-items: center;
    padding: 22px;
}

.pricing-details-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 36, 31, 0.42);
    cursor: pointer;
}

.pricing-details-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid rgba(62, 207, 178, 0.28);
    border-radius: 28px 58px 28px 58px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(9, 48, 40, 0.22);
    padding: 30px 30px 28px;
}

.pricing-details-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(62, 207, 178, 0.24);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-deep);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.pricing-details-modal-kicker {
    margin: 0 0 8px;
    color: var(--primary-ethereal);
    font-weight: 900;
    letter-spacing: 0.4px;
}

.pricing-details-modal-panel h3 {
    margin: 0 42px 10px 0;
    font-size: 1.65rem;
}

.pricing-details-modal-summary {
    margin: 0 0 18px;
    color: var(--text-soft);
    line-height: 1.5;
}

.pricing-detail-list--modal {
    line-height: 1.58;
}

.pricing-choice-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

#contact {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: transparent;
}

.contact-card {
    background: var(--bg-base);
    border-radius: 40px 100px 40px 100px;
    padding: 80px 40px;
    box-shadow: none;
    filter: drop-shadow(0 18px 28px rgba(15, 43, 37, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 40px auto;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-card h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.contact-info {
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: var(--text-deep);
}

.contact-info p {
    margin: 15px 0;
}

.contact-email {
    margin: 10px 0 0;
}

.contact-info a {
    color: var(--primary-ethereal);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-organic);
}

.contact-social-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(244, 248, 252, 0.92), rgba(228, 235, 242, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        7px 7px 14px rgba(160, 170, 180, 0.24),
        -7px -7px 14px rgba(255, 255, 255, 0.78);
    color: var(--text-deep);
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.contact-social-link svg {
    width: 22px;
    height: 22px;
}

.contact-social-link:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 6px 6px 12px rgba(160, 170, 180, 0.24),
        inset -6px -6px 12px rgba(255, 255, 255, 0.76);
    color: var(--primary-ethereal);
}

.contact-choice-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-choice-label {
    margin: 0 0 14px;
    font-family: var(--font-headers);
    font-size: 1rem;
    letter-spacing: 1.2px;
    color: var(--text-soft);
}

.contact-choice-or {
    font-family: var(--font-headers);
    font-size: 0.78rem;
    letter-spacing: 1.8px;
    color: var(--text-soft);
    text-transform: uppercase;
}

.btn.contact-choice-btn,
.btn.project-services-btn {
    min-height: 56px;
    padding: 14px 22px;
    text-transform: none;
    letter-spacing: 0.7px;
    font-size: 0.9rem;
    border-radius: var(--btn-radius);
}

/* Project Section Footer & Contact Nav */
.project-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-bottom: 40px;
}

.contact-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 18px 40px;
}

.nav-arrow {
    display: inline-block;
    font-size: 1.4rem;
    animation: bounceDown 2s infinite;
    transition: transform 0.3s ease;
}

.contact-nav-btn:hover .nav-arrow {
    transform: translateY(5px);
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

footer {
    padding: 40px;
    text-align: center;
    color: var(--text-soft);
}

.agent-ready {
    margin: 0 auto 14px;
    max-width: 920px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(245, 250, 249, 0.72);
    box-shadow: inset 2px 2px 8px rgba(15, 43, 37, 0.04), inset -2px -2px 8px rgba(255, 255, 255, 0.65);
}

.agent-ready-title {
    margin: 0;
    font-family: var(--font-headers);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text-deep);
}

.agent-ready-copy {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.agent-ready-links {
    margin: 8px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.84rem;
}

.agent-ready-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
}

.agent-ready-links a:hover {
    color: var(--text-deep);
    text-decoration: underline;
}

.footer-legal-links {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.footer-legal-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
}

.footer-legal-links a:hover {
    color: var(--text-deep);
    text-decoration: underline;
}

/* Project Portal - Immersive Viewer */
.project-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    /* Stack controls above frame */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
    padding: 28px 20px 20px;
    /* Keep the portal identity while giving the iframe more viewport. */
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
}

.project-portal.open {
    opacity: 1;
    pointer-events: auto;
}

.account-modal[hidden] {
    display: none !important;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: grid;
    place-items: center;
    padding: 18px;
}

.account-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 43, 37, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.account-modal-panel {
    position: relative;
    width: min(560px, calc(100% - 12px));
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 252, 250, 0.88));
    box-shadow: 0 22px 52px rgba(15, 43, 37, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.account-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.account-modal-head h2 {
    margin: 0;
    font-size: 1.42rem;
    letter-spacing: 0;
}

.account-modal-head p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.account-modal-kicker {
    margin: 0 0 6px;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.account-modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.account-modal-tab {
    appearance: none;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(62, 207, 178, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    cursor: pointer;
}

.account-modal-tab.is-active {
    border-color: rgba(23, 145, 118, 0.3);
    background: linear-gradient(135deg, rgba(15, 129, 99, 0.12), rgba(255, 255, 255, 0.98));
    color: var(--text-deep);
    box-shadow: 0 10px 24px rgba(15, 43, 37, 0.08);
}

.account-modal-panels {
    margin-top: 14px;
}

.account-modal-panel-shell[hidden] {
    display: none !important;
}

.account-modal-panel-shell {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}

.account-modal-panel-shell strong {
    display: block;
    font-size: 1rem;
}

.account-modal-panel-shell p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.account-modal-form[hidden],
.account-modal-form-state[hidden] {
    display: none !important;
}

.account-modal-form {
    display: grid;
    gap: 12px;
}

.account-modal-form>strong {
    display: block;
    font-size: 1rem;
}

.account-modal-form-state {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(22, 130, 105, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

.account-modal-form-state span {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.account-modal-form-state strong {
    display: block;
    font-size: 0.98rem;
}

.account-modal-form-state p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
}

.account-modal-form-state--warning {
    border-color: rgba(191, 138, 35, 0.24);
    background: rgba(255, 249, 235, 0.88);
}

.account-modal-form-state--error {
    border-color: rgba(181, 67, 67, 0.24);
    background: rgba(255, 242, 242, 0.92);
}

.account-modal-form-state--ready {
    border-color: rgba(23, 145, 118, 0.22);
    background: rgba(241, 251, 248, 0.92);
}

.account-modal-form-state--success {
    border-color: rgba(23, 145, 118, 0.24);
    background: rgba(241, 251, 248, 0.94);
}

.account-modal-confirmation[hidden] {
    display: none !important;
}

.account-modal-confirmation {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px 14px 4px;
    text-align: center;
}

.account-modal-confirmation-mark {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(23, 145, 118, 0.24);
    background:
        linear-gradient(135deg, rgba(23, 145, 118, 0.18), rgba(223, 179, 76, 0.18)),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(15, 43, 37, 0.13);
    position: relative;
}

.account-modal-confirmation-mark::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 14px;
    width: 15px;
    height: 25px;
    border: solid rgb(22, 130, 105);
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.account-modal-confirmation strong {
    font-size: 1.18rem;
}

.account-modal-confirmation p {
    max-width: 30rem;
    margin: 0 0 4px;
    color: var(--text-soft);
    line-height: 1.5;
}

.account-modal-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-modal-form .account-modal-grid {
    margin-top: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.field label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    border-radius: 16px;
    padding: 12px 13px;
    font: inherit;
    color: var(--text-deep);
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 4px 4px 10px rgba(160, 170, 180, 0.14),
        inset -4px -4px 10px rgba(255, 255, 255, 0.62);
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), 0.86);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
}

.field-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.account-modal-form-field.is-invalid input {
    border-color: rgba(181, 67, 67, 0.58);
    box-shadow: inset 4px 4px 10px rgba(160, 170, 180, 0.1), inset -4px -4px 10px rgba(255, 255, 255, 0.58), 0 0 0 3px rgba(181, 67, 67, 0.12);
}

.account-modal-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.account-modal-form-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(22, 130, 105, 0.24);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(15, 43, 37, 0.08);
    color: var(--text-deep);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.account-modal-form-link:hover {
    text-decoration: none;
    border-color: rgba(22, 130, 105, 0.34);
    background: rgba(245, 251, 249, 0.96);
}

.account-modal-close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(22, 130, 105, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(15, 43, 37, 0.08);
    color: var(--text-deep);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.account-modal-close:hover {
    border-color: rgba(var(--primary-rgb), 0.34);
    background: rgba(245, 251, 249, 0.96);
}

.btn-main,
.btn-secondary {
    appearance: none;
    border-radius: var(--btn-radius);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-main {
    border: 1px solid var(--btn-primary-border);
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg);
    box-shadow: var(--btn-primary-shadow);
}

.btn-main:hover {
    box-shadow: var(--btn-primary-shadow-hover);
}

.btn-main:active {
    box-shadow: var(--btn-primary-shadow-active);
}

body.account-entry-open {
    overflow: hidden;
}

.portal-frame {
    width: min(94vw, 1120px);
    max-width: none;
    height: min(78vh, 820px);
    max-height: none;
    background: var(--bg-membrane);
    border-radius: 40px 100px 40px 100px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), var(--neu-light-outer);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform: scale(0.85) translateY(30px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.project-portal.open .portal-frame {
    transform: scale(1) translateY(0);
}

.portal-controls {
    display: flex;
    gap: 15px;
    z-index: 2100;
    padding: 7px 22px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), var(--neu-light-outer);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.project-portal.open .portal-controls {
    transform: translateY(0);
    opacity: 1;
}

.portal-viewer {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    /* Ensure viewer respects parent shape */
    overflow: hidden;
}

#portal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    border-radius: inherit;
}

body.portal-open {
    overflow: hidden;
    /* Stop page scroll when portal is active */
}

@media (max-width: 1100px) {
    .account-modal {
        padding: 10px;
    }

    .account-modal-panel {
        width: min(100%, calc(100% - 4px));
        max-height: min(88vh, 820px);
        padding: 18px;
    }

    .account-modal-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-modal-form-actions .btn-main,
    .account-modal-form-link {
        width: 100%;
    }

    #hero-intro-content .hero-tagline {
        width: min(480px, calc(100vw - 36px));
    }

    .projects-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #hero-projects.show-projects {
        margin-top: 48px;
    }

    .project-header-row {
        width: min(980px, calc(100% - 48px));
        margin: 0 auto 22px;
        min-height: auto;
        padding-inline: 0;
        position: relative;
        flex-direction: column;
        gap: 12px;
    }

    .project-title-text {
        display: none;
    }

    .project-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        position: static;
        align-self: center;
        transform: none;
        z-index: 2;
        max-width: 100%;
        min-height: auto;
        padding: 10px 28px 14px;
        border: 1px solid rgba(22, 130, 105, 0.2);
        border-radius: 34px 82px 34px 82px;
        background: rgba(255, 255, 255, 0.54);
        box-shadow: 0 12px 28px rgba(15, 43, 37, 0.08);
        color: var(--text-deep);
        font-size: 2.65rem;
        line-height: 1.05;
        letter-spacing: 0;
        text-transform: none;
        text-wrap: balance;
    }

    .project-filter-toggle::after {
        content: '';
        flex: 0 0 auto;
        width: 0.48em;
        height: 0.48em;
        border-right: 0.11em solid currentColor;
        border-bottom: 0.11em solid currentColor;
        transform: translateY(-0.12em) rotate(45deg);
        opacity: 0.78;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .project-filter-toggle[aria-expanded="true"]::after {
        transform: translateY(0.08em) rotate(225deg);
        opacity: 1;
    }

    .project-filter-toggle:hover,
    .project-filter-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(22, 130, 105, 0.34);
        box-shadow: 0 16px 34px rgba(15, 43, 37, 0.1), 0 0 18px rgba(var(--primary-rgb), 0.12);
    }

    #hero-projects h2 {
        font-size: 2.65rem;
        line-height: 1.02;
    }

    .project-main {
        width: min(980px, calc(100% - 48px));
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }

    .project-filter-sidebar {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translate(-50%, -8px);
        opacity: 0;
        pointer-events: none;
        width: min(860px, calc(100vw - 96px));
        padding: 18px;
        border-radius: 34px 82px 34px 82px;
        background: rgba(248, 252, 250, 0.92);
        border-color: rgba(255, 255, 255, 0.82);
        box-shadow: 0 24px 44px rgba(15, 43, 37, 0.12), inset 0 0 0 1px rgba(62, 207, 178, 0.08);
        z-index: 1204;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, box-shadow 0.24s ease;
    }

    .project-filter-sidebar h3 {
        display: none;
    }

    .project-filter-sidebar.is-open,
    body.projects-filter-open .project-filter-sidebar {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .project-filter-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .project-filter-list .filter-btn {
        width: 100%;
        min-height: 58px;
        border-radius: 24px 58px 24px 58px;
        background: rgba(255, 255, 255, 0.78);
        border-color: rgba(15, 43, 37, 0.22);
        box-shadow: 0 8px 18px rgba(15, 43, 37, 0.06);
    }

    .project-filter-list .filter-btn.active {
        background: linear-gradient(135deg, #168269 0%, #2cb89d 55%, #7af7df 100%);
        color: #ecfff9;
        box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.24);
    }

    .projects-container {
        gap: 18px;
    }

    .projects-container.grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card {
        min-height: 310px;
        padding: 26px 20px 22px;
        border-radius: 26px 62px 26px 62px;
    }

    .project-card:hover {
        border-radius: 64px 26px 64px 26px;
        transform: scale(1.01);
    }

    .project-card h3 {
        min-height: 0;
        margin-bottom: 12px;
        padding-inline: 0;
        font-size: clamp(1.34rem, 2.6vw, 1.72rem);
        line-height: 1.12;
    }

    .project-card p {
        margin-bottom: 18px;
        font-size: 0.88rem;
        line-height: 1.52;
    }

    .project-tech {
        gap: 6px;
        margin-bottom: 18px;
    }

    .project-tech span {
        font-size: 0.58rem;
        padding: 3px 7px;
    }

    .project-card .btn {
        min-height: 42px;
        padding: 11px 20px;
        font-size: 0.66rem;
        letter-spacing: 1.1px;
    }
}

@media (min-width: 960px) and (max-width: 1100px) {
    .project-main {
        max-width: 980px;
    }

    .projects-container.grid-view {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-card {
        min-height: 330px;
        padding: 24px 16px 20px;
    }

    .project-card h3 {
        font-size: clamp(1.18rem, 2.1vw, 1.44rem);
    }

    .project-card p {
        font-size: 0.82rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #pricing {
        padding-inline: 16px;
    }

    .pricing-shell {
        max-width: 100%;
        padding: 34px 22px 26px;
    }

    .pricing-shell h2 {
        font-size: 2.35rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        max-width: 100%;
    }

    .pricing-card {
        min-height: 0;
        height: auto;
        padding: 18px 14px 16px;
        border-radius: 22px 46px 22px 46px;
    }

    .pricing-card:hover,
    .pricing-card.is-expanded {
        border-radius: 58px 24px 58px 24px;
        padding: 20px 16px 16px;
    }

    .pricing-card h3 {
        font-size: 1.08rem;
        padding-left: 0;
    }

    .pricing-card.is-expanded h3 {
        padding-left: 0;
    }

    .pricing-card-bestfit {
        padding-left: 0;
        font-size: 0.72rem;
        max-height: none;
    }

    .pricing-feature-list,
    .pricing-detail-list {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .pricing-detail-btn {
        font-size: 0.7rem;
    }

    .pricing-card-action {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 12px;
        padding-top: 12px;
    }

    .pricing-card-action-price {
        font-size: 1.05rem;
    }

    .pricing-book-btn {
        width: min(180px, 100%);
        min-width: 0;
        margin-left: 0;
        padding-inline: 18px;
    }
}

@media (max-width: 768px) {
    #hero-intro-content.show-about .video-placeholder {
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
        display: block;
        overflow: visible;
        border-radius: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    #hero-intro-content.show-about .video-stack {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 20px 36px 20px 36px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        background: var(--bg-base);
        box-shadow: 0 8px 20px rgba(15, 43, 37, 0.08);
    }

    #hero-intro-content.show-about .about-video {
        inset: 0;
        width: 100%;
        height: 100%;
    }

    #hero-intro-content.show-about .video-progress-container {
        position: relative;
        width: 100%;
        margin: 10px auto 0;
        height: 48px;
        padding: 0 9px;
        gap: 8px;
        border-radius: 999px;
        background: rgba(7, 24, 20, 0.48);
        border: 1px solid rgba(122, 247, 223, 0.35);
        box-shadow: 0 8px 18px rgba(7, 24, 20, 0.14);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    #hero-intro-content.show-about .chapter-back-button {
        width: 30px;
        height: 30px;
        order: 0;
        flex: 0 0 auto;
        color: #ecfff9;
        background: rgba(255, 255, 255, 0.12);
    }

    #hero-intro-content.show-about .video-skill-chips {
        order: 1;
    }

    #hero-intro-content.show-about .pill-controls {
        order: 2;
        width: 38px;
        height: 38px;
    }

    #hero-intro-content.show-about .progress-spinner {
        width: 38px;
        height: 38px;
    }

    #hero-intro-content.show-about .chapter-indicator {
        order: 3;
        color: #ecfff9;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .brand-mark {
        top: 20px;
        left: 16px;
        transform: none;
        font-size: 0.85rem;
        letter-spacing: 0.8px;
    }

    .brand-mark:hover {
        transform: translateY(-1px);
    }

    .mobile-nav-toggle {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 1205;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.84);
        background: rgba(240, 246, 244, 0.98);
        box-shadow: 0 10px 20px rgba(15, 43, 37, 0.1);
        color: var(--text-deep);
        cursor: pointer;
        touch-action: manipulation;
    }

    .lang-toggle {
        top: 12px;
        right: 78px;
        padding: 3px;
    }

    .lang-btn {
        min-width: 40px;
        height: 30px;
        font-size: 0.68rem;
    }

    .mobile-nav-toggle span,
    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.24s ease, opacity 0.2s ease;
    }

    .mobile-nav-toggle span {
        transform: translateY(0);
    }

    .mobile-nav-toggle::before {
        transform: translateY(-6px);
    }

    .mobile-nav-toggle::after {
        transform: translateY(6px);
    }

    .mobile-nav-toggle.is-open span {
        opacity: 0;
    }

    .mobile-nav-toggle.is-open::before {
        transform: rotate(45deg);
    }

    .mobile-nav-toggle.is-open::after {
        transform: rotate(-45deg);
    }

    nav {
        top: 82px;
        left: 50%;
        width: calc(100% - 16px);
        max-width: 520px;
        padding: 12px;
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(-8px);
        transition: opacity 0.22s ease, max-height 0.26s ease, transform 0.26s ease;
    }

    nav.mobile-open {
        opacity: 1;
        max-height: min(82vh, 620px);
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
        overflow-y: auto;
    }

    nav > a,
    .nav-item > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
        min-height: 52px;
        padding: 12px 14px;
        border-radius: 14px;
        text-align: center;
        font-size: 0.9rem;
        letter-spacing: 1.4px;
        touch-action: manipulation;
    }

    nav > a:hover,
    .nav-item > a:hover {
        transform: none;
        text-shadow: none;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
        padding: 0;
        margin: 0;
    }

    .nav-item.has-dropdown > a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 10px;
        opacity: 0.7;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-item.has-dropdown.open > a::after {
        transform: rotate(-135deg) translateY(-1px);
        opacity: 1;
    }

    .has-dropdown::after {
        display: none;
    }

    .nav-dropdown {
        position: static !important;
        transform: none;
        width: 100%;
        min-width: 0;
        margin: 6px 0 10px;
        padding: 8px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        background: rgba(244, 249, 247, 0.98);
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .has-dropdown.open .nav-dropdown {
        display: block;
    }

    .has-dropdown:hover .nav-dropdown,
    .has-dropdown.open .nav-dropdown,
    .has-dropdown:focus-within .nav-dropdown {
        position: static !important;
        left: auto;
        right: auto;
        top: auto;
        transform: none !important;
    }

    .has-dropdown:hover .nav-dropdown,
    .has-dropdown.open .nav-dropdown,
    .has-dropdown:focus-within .nav-dropdown {
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0;
    }

    .nav-dropdown-item {
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 0.86rem;
        letter-spacing: 0.4px;
        border-radius: 12px;
        touch-action: manipulation;
    }

    .nav-dropdown-item + .nav-dropdown-item {
        margin-top: 6px;
    }

    #hero-intro-content {
        width: min(100%, 440px);
        min-width: 0;
        max-width: 100%;
    }

    #hero-intro-content.show-about,
    #hero-intro-content.show-client {
        justify-content: flex-start;
        padding-top: 22px;
        padding-bottom: 16px;
    }

    header {
        min-height: 100svh;
        padding: 104px 14px 44px;
    }

    .hero-text-wrapper {
        padding-inline: 8px;
        min-width: 0;
        max-width: 100%;
    }

    #about-text,
    #client-text,
    .about-chapter,
    .karaoke-copy {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .karaoke-line {
        max-width: 100%;
        white-space: normal;
    }

    header h1 {
        font-size: clamp(2.3rem, 11.5vw, 3rem);
        letter-spacing: -1.2px;
        margin-bottom: 12px;
    }

    header p {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 100%;
        margin-bottom: 18px;
        padding-inline: 4px;
    }

    #hero-cta,
    .hero-skip-cta,
    .hero-switch-cta {
        width: min(300px, 92%);
    }

    #hero-intro-content.show-about .hero-action-row,
    #hero-intro-content.show-client .hero-action-row {
        flex-direction: column;
        gap: 12px;
    }

    .hero-switch-cta {
        order: 1;
    }

    #hero-cta {
        order: 2;
    }

    #hero-intro-content.show-about .btn,
    #hero-intro-content.show-client .btn {
        margin-top: 18px;
    }

    #hero-intro-content.show-about .hero-action-row,
    #hero-intro-content.show-client .hero-action-row {
        margin-top: 14px;
    }

    #hero-path-chooser {
        width: 100%;
    }

    #hero-intro-content.path-choice-open #hero-path-chooser {
        max-height: 420px;
        margin-top: 12px;
    }

    .path-branch {
        display: none;
    }

    .path-option-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .path-option {
        min-height: 50px;
        justify-content: center;
        text-align: center;
        padding: 12px 14px;
        white-space: normal;
    }

    .path-option strong {
        font-size: 0.82rem;
        letter-spacing: 0.5px;
        line-height: 1.25;
    }

    #hero-intro-content.show-about #about-text {
        margin: 0 auto 6px;
    }

    #hero-intro-content.show-about .about-expand-toggle {
        margin-top: 8px;
    }

    #hero-intro-content.show-client #client-text {
        margin: 0 auto 14px;
    }

    .about-chapter h2,
    #client-text h2 {
        font-size: clamp(1.75rem, 7.2vw, 2.2rem);
        margin-bottom: 10px;
    }

    .karaoke-copy {
        gap: 4px;
        line-height: 1.38;
        font-size: 0.98rem;
    }

    .video-placeholder,
    .client-media-placeholder {
        width: 100%;
        max-width: none;
        border-radius: 24px;
        aspect-ratio: 16 / 10;
    }

    .video-progress-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: 52px;
        padding: 0 10px;
        gap: 10px;
        justify-content: space-between;
    }

    .video-skill-chips {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
        overflow: hidden;
        order: 1;
    }

    .video-skill-chips .skill-chip {
        font-size: 0.52rem;
        padding: 3px 7px;
        letter-spacing: 0.55px;
        flex: 0 0 auto;
        max-width: none;
        white-space: nowrap;
    }

    .pill-controls {
        order: 2;
        flex: 0 0 auto;
    }

    .chapter-indicator {
        order: 3;
        margin-left: 2px;
    }

    .chapter-indicator {
        font-size: 0.72rem;
        min-width: 26px;
    }

    .project-header-row {
        margin-bottom: 18px;
        min-height: auto;
        width: 100%;
        padding-inline: 8px;
        position: relative;
        flex-direction: column;
    }

    .project-title-text {
        display: none;
    }

    .project-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: static;
        max-width: 100%;
        min-height: auto;
        padding: 9px 16px 12px;
        border: 1px solid rgba(22, 130, 105, 0.2);
        border-radius: 24px 48px 24px 48px;
        background: rgba(255, 255, 255, 0.58);
        box-shadow: 0 10px 22px rgba(15, 43, 37, 0.08);
        color: var(--text-deep);
        font-size: 1.9rem;
        line-height: 1.08;
        letter-spacing: 0;
        text-transform: none;
        text-wrap: balance;
    }

    .project-filter-toggle::after {
        content: '';
        flex: 0 0 auto;
        width: 0.46em;
        height: 0.46em;
        border-right: 0.11em solid currentColor;
        border-bottom: 0.11em solid currentColor;
        transform: translateY(-0.12em) rotate(45deg);
        opacity: 0.78;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .project-filter-toggle[aria-expanded="true"]::after {
        transform: translateY(0.08em) rotate(225deg);
        opacity: 1;
    }

    #hero-projects.show-projects {
        margin-top: 28px;
    }

    #hero-services.show-services {
        margin-top: 28px;
    }

    .services-shell {
        border-radius: 24px;
        padding: 28px 14px 18px;
    }

    .services-shell h2 {
        max-width: 100%;
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.08;
        letter-spacing: 0;
        margin-bottom: 10px;
        overflow-wrap: anywhere;
        hyphens: auto;
        text-wrap: balance;
    }

    .services-hero p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .services-kicker {
        margin-bottom: 8px;
    }

    .services-story {
        margin-top: 18px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .services-frame-column {
        display: none;
    }

    .service-step-media {
        position: relative;
        display: block;
        margin: 0 0 14px;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        border-radius: 20px 36px 20px 36px;
        border: 1px solid rgba(255, 255, 255, 0.76);
        background: var(--bg-base);
        box-shadow: 0 8px 20px rgba(15, 43, 37, 0.08);
    }

    .service-step-media :is(video, img) {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-step-media figcaption {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        margin: 0;
        border-radius: 999px;
        padding: 7px 10px;
        font-size: 0.7rem;
        letter-spacing: 0.35px;
        color: #ecfff9;
        background: rgba(7, 24, 20, 0.48);
        border: 1px solid rgba(122, 247, 223, 0.35);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .services-progress-pill {
        display: none;
    }

    .service-step {
        border-radius: 18px 38px 18px 38px;
        padding: 16px 14px 14px;
    }

    .services-scope-grid {
        margin-top: 16px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .services-scope-card {
        border-radius: 18px;
        padding: 14px 12px;
    }

    .services-choice-row {
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    #hero-projects h2 {
        font-size: 1.9rem;
    }

    .project-layout {
        flex-direction: column;
        gap: 14px;
    }

    .project-filter-sidebar {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translate(-50%, -8px);
        width: min(330px, calc(100vw - 24px));
        max-width: none;
        padding: 14px;
        margin: 0;
        border-radius: 24px 48px 24px 48px;
        background: rgba(248, 252, 250, 0.94);
        border-color: rgba(255, 255, 255, 0.82);
        box-shadow: 0 16px 34px rgba(15, 43, 37, 0.14), inset 0 0 0 1px rgba(62, 207, 178, 0.08);
        opacity: 0;
        pointer-events: none;
        z-index: 1204;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, box-shadow 0.24s ease;
    }

    .project-filter-sidebar.is-open,
    body.projects-filter-open .project-filter-sidebar {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .project-filter-sidebar h3 {
        display: none;
    }

    .project-filter-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-btn {
        position: static;
        width: 100%;
        min-width: 0;
        padding: 11px 12px;
        font-size: 0.74rem;
        letter-spacing: 0.6px;
        min-height: 50px;
        border-radius: 18px 38px 18px 38px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 8px 18px rgba(15, 43, 37, 0.06);
    }

    .project-main {
        padding-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .projects-container.grid-view {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-card {
        min-height: auto;
        padding: 28px 18px;
        border-radius: 26px 58px 26px 58px;
        transform: translateY(18px) scale(0.98);
    }

    .project-card:nth-child(1),
    .project-card:nth-child(3),
    #hero-projects.absorbing .project-card:nth-child(1),
    #hero-projects.absorbing .project-card:nth-child(2),
    #hero-projects.absorbing .project-card:nth-child(3) {
        transform: translateY(18px) scale(0.98);
    }

    #hero-projects.show-projects .project-card {
        transform: translateY(0) scale(1);
    }

    .project-card h3 {
        font-size: clamp(1.42rem, 7.3vw, 1.95rem);
        min-height: 0;
        margin-bottom: 12px;
        line-height: 1.16;
        padding-inline: 4px;
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
        text-wrap: balance;
    }

    .project-card p {
        font-size: 0.9rem;
        line-height: 1.52;
        margin-bottom: 18px;
    }

    .project-tech {
        margin-bottom: 18px;
    }

    .pagination {
        margin-top: 16px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .pagination .btn {
        padding: 10px 16px;
        font-size: 0.72rem;
    }

    #pricing {
        padding: 34px 12px 18px;
    }

    .pricing-shell {
        border-radius: 24px;
        padding: 24px 14px 18px;
    }

    .pricing-shell h2 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
    }

    .pricing-grid {
        --pricing-carousel-card: min(430px, calc(100vw - 64px));
        margin-top: 16px;
        display: flex;
        grid-template-columns: none;
        gap: 14px;
        max-width: none;
        margin-left: -14px;
        margin-right: -14px;
        padding: 4px calc((100% - var(--pricing-carousel-card)) / 2) 14px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc((100% - var(--pricing-carousel-card)) / 2);
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-width: none;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .pricing-card {
        flex: 0 0 var(--pricing-carousel-card);
        max-width: var(--pricing-carousel-card);
        scroll-snap-align: center;
        border-radius: 18px 38px 18px 38px;
        padding: 20px 18px 18px;
        min-height: auto;
        height: auto;
        text-align: center;
    }

    .pricing-card:hover,
    .pricing-card.is-expanded {
        border-radius: 18px 38px 18px 38px;
        padding: 20px 18px 18px;
    }

    .pricing-card h3 {
        font-size: 1.45rem;
    }

    .pricing-card-bestfit {
        max-width: 32ch;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
    }

    .pricing-feature-list,
    .pricing-detail-list {
        width: min(100%, 330px);
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .pricing-card-details {
        display: none;
    }

    .pricing-mobile-checklist-wrap {
        display: none;
        margin-top: 20px;
    }

    .pricing-detail-btn {
        align-self: center;
    }

    .pricing-mobile-checklist-label {
        margin: 0 0 10px;
        font-size: 0.72rem;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--text-soft);
        text-align: center;
    }

    .pricing-mobile-checklist {
        width: min(100%, 300px);
        margin: 0 auto;
        padding-left: 0;
        color: var(--text-soft);
        line-height: 1.42;
        list-style: none;
        text-align: left;
    }

    .pricing-mobile-checklist li + li {
        margin-top: 8px;
    }

    .pricing-details-label {
        text-align: center;
    }

    .pricing-card-action {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .pricing-book-btn {
        width: min(220px, 100%);
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-carousel-controls {
        margin: 16px auto 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .pricing-carousel-btn {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 1px solid rgba(62, 207, 178, 0.3);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.72);
        color: var(--text-deep);
        box-shadow: 0 8px 18px rgba(15, 43, 37, 0.08);
        font-size: 1.45rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .pricing-carousel-btn:disabled {
        opacity: 0.38;
        cursor: default;
        box-shadow: none;
    }

    .pricing-carousel-dots {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .pricing-carousel-dot {
        width: 9px;
        height: 9px;
        padding: 0;
        border-radius: 999px;
        border: 0;
        background: rgba(18, 81, 68, 0.22);
        cursor: pointer;
        transition: width 0.2s ease, background 0.2s ease;
    }

    .pricing-carousel-dot.is-active {
        width: 9px;
        background: var(--primary-ethereal);
    }

    @media (max-width: 480px) {
        .pricing-shell {
            position: relative;
        }

        .pricing-carousel-controls {
            pointer-events: none;
        }

        .pricing-carousel-dots {
            pointer-events: auto;
        }

        .pricing-carousel-btn {
            position: absolute;
            top: var(--pricing-carousel-arrow-top, 560px);
            transform: translateY(-50%);
            z-index: 16;
            pointer-events: auto;
            width: 44px;
            height: 44px;
            flex-basis: 44px;
            border-color: rgba(62, 207, 178, 0.28);
            background: rgba(255, 255, 255, 0.72);
            box-shadow: 0 8px 18px rgba(15, 43, 37, 0.08);
            color: rgba(9, 48, 40, 0.78);
            font-size: 1.65rem;
            text-shadow: 0 1px 8px rgba(255, 255, 255, 0.92);
        }

        .pricing-carousel-btn[data-pricing-carousel-prev] {
            left: -10px;
        }

        .pricing-carousel-btn[data-pricing-carousel-next] {
            right: -10px;
        }
    }

    .pricing-choice-row {
        margin-top: 14px;
        flex-direction: column;
        gap: 10px;
    }

    #pricing-choice-custom-website,
    #pricing-choice-automation {
        width: min(320px, 100%);
    }

    .pricing-details-modal {
        align-items: end;
        padding: 12px;
    }

    .pricing-details-modal-panel {
        width: 100%;
        max-height: min(82vh, 680px);
        border-radius: 26px 26px 18px 18px;
        padding: 28px 22px 24px;
    }

    .pricing-details-modal-panel h3 {
        font-size: 1.45rem;
    }

    #contact {
        padding: 44px 12px 60px;
    }

    .contact-card {
        max-width: 100%;
        margin: 16px auto;
        padding: 34px 18px;
        border-radius: 24px;
        filter: none;
    }

    .contact-card h2 {
        font-size: clamp(2rem, 10vw, 2.6rem);
        letter-spacing: -0.8px;
        margin-bottom: 18px;
    }

    .contact-info {
        font-size: 1rem;
        margin-bottom: 26px;
    }

    .contact-social-link {
        width: 44px;
        height: 44px;
    }

    .contact-social-row {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-choice-label {
        margin-bottom: 10px;
    }

    .contact-choice-row {
        flex-direction: column;
        gap: 10px;
    }

    .agent-ready {
        padding: 12px 12px;
        border-radius: 16px;
    }

    .agent-ready-title {
        font-size: 0.88rem;
    }

    .agent-ready-copy {
        font-size: 0.8rem;
    }

    .agent-ready-links {
        font-size: 0.78rem;
        gap: 6px;
    }

    .btn.contact-choice-btn {
        width: min(320px, 100%);
        min-height: 52px;
    }

    #services-choice-pricing,
    .btn.project-services-btn,
    #back-to-projects {
        width: min(320px, 100%);
    }

    .bio-orb {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .bio-orb svg {
        width: 24px;
        height: 24px;
    }

    .project-portal {
        gap: 8px;
        padding: 14px 8px 12px;
    }

    .portal-frame {
        width: calc(100% - 16px);
        height: 78dvh;
        border-radius: 22px;
    }

    .portal-controls {
        padding: 6px 10px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobile Motion Tuning: smoother and less heavy than desktop timing */
    .hero-text-wrapper {
        transition:
            max-height 0.56s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
            margin-bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #hero-intro-content h1,
    #hero-intro-content .hero-tagline {
        transition:
            opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }

    header p {
        transition: all 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
    }

    .hidden-transition {
        transition: all 0.92s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #about-text,
    #client-text,
    .about-chapter,
    .client-panel {
        transition:
            opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .video-placeholder,
    .client-media-placeholder {
        transition:
            opacity 0.92s cubic-bezier(0.22, 1, 0.36, 1),
            max-height 0.92s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.92s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.3s ease;
    }

    .about-video,
    .client-media {
        transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .video-progress-container {
        transition:
            background 0.4s ease,
            border-color 0.4s ease,
            box-shadow 0.4s ease,
            opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .ready-to-advance .pill-controls::after {
        animation-duration: 1.4s;
    }

    .ready-to-advance .next-arrow {
        animation-duration: 1.28s;
    }

    #hero-path-chooser {
        transition:
            max-height 0.58s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .path-hub {
        transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .path-stem {
        transition:
            opacity 0.16s cubic-bezier(0.22, 1, 0.36, 1),
            stroke-dashoffset 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .path-curve {
        transition:
            opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
            stroke-dashoffset 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .path-option {
        transition:
            opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.16s ease;
    }

    .project-card {
        transition: all 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .project-card:nth-child(1),
    .project-card:nth-child(3),
    #hero-projects.absorbing .project-card:nth-child(1),
    #hero-projects.absorbing .project-card:nth-child(2),
    #hero-projects.absorbing .project-card:nth-child(3) {
        transition-duration: 0.42s;
    }

    #hero-projects.show-projects .project-card {
        transition-duration: 0.5s;
    }

    .project-card:hover {
        transform: scale(1.01);
    }

    .project-filter-sidebar {
        transition:
            opacity 0.28s ease,
            transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.24s ease;
    }

    .contact-card {
        transition:
            opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .project-portal {
        transition: all 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .portal-frame {
        transition: all 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .portal-controls {
        transition: all 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
    }
}

@media (max-width: 480px) {
    .brand-mark {
        top: 18px;
        left: 14px;
        font-size: 0.8rem;
    }

    .mobile-nav-toggle {
        top: 12px;
        right: 12px;
        width: 52px;
        height: 52px;
    }

    .lang-toggle {
        right: 68px;
    }

    nav {
        top: 76px;
        width: calc(100% - 12px);
        border-radius: 18px;
    }

    nav > a,
    .nav-item > a {
        min-height: 50px;
        font-size: 0.82rem;
        letter-spacing: 1.1px;
    }

    .nav-dropdown-item {
        min-height: 46px;
        font-size: 0.8rem;
    }

    header {
        padding: 96px 12px 36px;
    }

    header h1 {
        font-size: clamp(2rem, 10.5vw, 2.55rem);
        margin-bottom: 10px;
    }

    header p {
        font-size: 0.94rem;
        line-height: 1.36;
    }

    .about-chapter h2,
    #client-text h2 {
        font-size: clamp(1.55rem, 8vw, 1.95rem);
    }

    .karaoke-copy {
        font-size: 0.92rem;
    }

    .video-progress-container {
        left: 8px;
        right: 8px;
        bottom: 8px;
        height: 48px;
        border-radius: 26px;
        gap: 7px;
        padding: 0 8px;
        justify-content: space-between;
    }

    .pill-controls {
        width: 40px;
        height: 40px;
    }

    .chapter-indicator {
        font-size: 0.68rem;
        min-width: 22px;
    }

    .video-skill-chips {
        gap: 4px;
    }

    .video-skill-chips .skill-chip {
        font-size: 0.48rem;
        padding: 3px 6px;
        letter-spacing: 0.48px;
    }

    .project-filter-list {
        grid-template-columns: 1fr 1fr;
    }

    .filter-btn {
        font-size: 0.7rem;
    }

    .project-card {
        padding: 24px 16px;
    }

    .project-card h3 {
        font-size: clamp(1.3rem, 8.8vw, 1.75rem);
        line-height: 1.16;
        overflow-wrap: normal;
        word-break: keep-all;
        hyphens: none;
        text-wrap: balance;
    }

    .project-card p {
        font-size: 0.86rem;
    }

    .contact-card {
        padding: 30px 14px;
        border-radius: 20px;
    }

    .contact-card h2 {
        font-size: clamp(1.8rem, 11vw, 2.2rem);
    }

    .contact-info {
        font-size: 0.95rem;
    }

    .btn.contact-choice-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #hero-intro-content {
        width: 100%;
        max-width: 100%;
    }

    #hero-intro-content .hero-text-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        padding-inline: 0;
    }

    #hero-intro-content .hero-text-wrapper h1 {
        max-width: 100%;
        font-size: 3rem;
        letter-spacing: 0;
        line-height: 1;
    }

    #hero-intro-content .hero-tagline {
        display: block;
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
        line-height: 1.45;
        white-space: normal;
        text-wrap: balance;
    }
}

@media (max-width: 360px) {
    #hero-intro-content .hero-text-wrapper h1 {
        font-size: 2.55rem;
    }

    #hero-intro-content .hero-tagline {
        max-width: 292px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero-path-chooser,
    .path-hub,
    .path-stem,
    .path-curve,
    .path-option {
        transition: none !important;
        animation: none !important;
    }

    #hero-intro-content.path-choice-open .path-hub,
    #hero-intro-content.path-choice-open .path-stem,
    #hero-intro-content.path-choice-open .path-curve,
    #hero-intro-content.path-choice-open .path-option {
        opacity: 1;
        transform: none;
    }

    #hero-intro-content.path-choice-open .path-stem,
    #hero-intro-content.path-choice-open .path-curve {
        stroke-dashoffset: 0;
    }

    .ready-to-advance .next-arrow {
        animation: none !important;
    }
}
