/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lenis smooth scroll base styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

:root {
    --color-text: #1a1a1a;
    --color-nav-text: #4d4d4d;
    --color-bg: #f2f3e9;
    --color-brand-red: #EC1C24;
    --color-brand-green: #009345;
    --color-brand-blue: #00ADEE;
    --color-brand-purple: #7B2D8B;
    --color-accent: var(--color-brand-blue);
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;

    /* Fluid type scale - min, fluid, max */
    --fs-display: clamp(2.5rem, 5.5vw, 5rem);
    --fs-h1:      clamp(2rem, 4.2vw, 3.75rem);
    --fs-h2:      clamp(1.5rem, 3vw, 2.5rem);
    --fs-h3:      clamp(1.25rem, 2vw, 1.75rem);
    --fs-lead:    clamp(1.15rem, 1.6vw, 1.5rem);
    --fs-body:    clamp(1.1rem, 1.25vw, 1.35rem);
    --fs-label:   clamp(0.875rem, 1vw, 1.05rem);

    /* Fluid spacing scale */
    --gutter-x:   72px;
    --section-y:  clamp(3rem, 8vw, 10rem);
    --stack-md:   clamp(1rem, 3vw, 3rem);
    --stack-lg:   clamp(2rem, 5vw, 5rem);
}

/* Brand Color Utilities */
.text-red { color: var(--color-brand-red); }
.text-blue { color: var(--color-brand-blue); }
.text-green { color: var(--color-brand-green); }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 0.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
}

.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}

.slide-panel-scroll-container.no-scroll {
    overflow-y: auto !important;
    height: 100% !important;
    touch-action: auto !important;
}

main {
    padding-top: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}


/* ==============================================
   TYPOGRAPHY STANDARDS
   Use these classes on all new pages.
   - .intro-text   → hero / opening paragraph
   - .section-label → section headings / labels
   - .body-text    → body / paragraph text
   ============================================== */

.intro-text {
    font-size: var(--fs-lead);
    font-weight: 411.11;
    letter-spacing: -0.04em;
    line-height: 1.35;
    color: #4d4d4d;
}

.section-label {
    font-size: var(--fs-h3);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #4d4d4d;
}

.body-text {
    font-size: var(--fs-body);
    line-height: 1.8;
    font-weight: 400;
    color: var(--color-text);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, transform 0.4s ease-in-out;
    background-color: transparent;
    background-image: none;
}

.site-header.nav-hidden {
    transform: translateY(-100%);
}

.site-header.scrolled {
    background-color: transparent;
    background-image: none;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.header-content {
    padding: 2rem var(--gutter-x);
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
    background: transparent;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo a {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 1000;
    letter-spacing: 0.02em;
    color: var(--color-brand-red);
    transition: color 0.3s ease;
}

.logo-mark {
    font-weight: 700;
}

.site-header:not(.scrolled) .main-nav a,
.site-header:not(.scrolled) .social-links a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-nav-text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nav-underline-color, var(--color-brand-red));
    transition: width 0.3s ease, background-color 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-nav-text);
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.social-links svg {
    width: 100%;
    height: 100%;
}

.menu-toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: none;
}

.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity 280ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.menu-toggle::before {
    background-image: url('../assets/images/burger_menu_closed.svg');
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.menu-toggle::after {
    background-image: url('../assets/images/burger_menu_opened.svg');
    opacity: 0;
    transform: rotate(-90deg) scale(0.85);
}

.menu-toggle[aria-expanded="true"]::before {
    opacity: 0;
    transform: rotate(90deg) scale(0.85);
}

.menu-toggle[aria-expanded="true"]::after {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.menu-toggle:active::before,
.menu-toggle:active::after {
    transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle::before,
    .menu-toggle::after {
        transition: opacity 120ms ease;
        transform: none !important;
    }
}

/* Elevate header above the panel when nav is open so the toggle icon is visible */
.site-header.nav-open {
    z-index: 500;
}

/* Hide the logo behind the panel - only the toggle floats above */
.site-header.nav-open .logo {
    visibility: hidden;
    pointer-events: none;
}

/* Mobile Side Panel */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 498;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(105%);
    width: 82vw;
    max-width: 650px;
    height: 100dvh;
    background-color: var(--color-bg);
    z-index: 499;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2.5rem 3rem;
    overflow: hidden;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    will-change: transform, clip-path;
    backface-visibility: hidden;
    clip-path: url(#panelClipPath);
}

@media (max-width: 768px) {
    .mobile-nav {
        max-width: 100%;
    }
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
}

.mobile-nav li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav a {
    display: inline-block;
    color: var(--color-brand-red);
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    padding: 1.25rem 0;
    position: relative;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: calc(1.25rem - 12px);
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nav-underline-color, var(--color-brand-red));
    transition: width 0.3s ease, background-color 0.3s ease;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    width: 100%;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active li:nth-child(1) { transition-delay: 0.12s; }
.mobile-nav.active li:nth-child(2) { transition-delay: 0.19s; }
.mobile-nav.active li:nth-child(3) { transition-delay: 0.26s; }
.mobile-nav.active li:nth-child(4) { transition-delay: 0.33s; }
.mobile-nav.active li:nth-child(5) { transition-delay: 0.40s; }

.mobile-social {
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease 0.42s;
}

.mobile-nav.active .mobile-social {
    opacity: 1;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(236, 28, 36, 0.75);
    transition: opacity 0.2s ease;
}

.mobile-social a:hover {
    opacity: 0.5;
}

.mobile-social svg {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero-section {
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-container {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100dvh;
}

.hero-content {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateY(0);
    will-change: transform;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateY(0);
    will-change: transform;
}

/* Contact Hero - Full Height */
.hero-contact .hero-container {
    min-height: auto;
}

.hero-contact .hero-content {
    min-height: auto;
}

.hero-contact .hero-image-wrapper {
    position: relative;
    height: auto;
    background: var(--color-bg);
}

.hero-contact .hero-image {
    height: auto;
    object-fit: contain;
}


.hero-text {
    position: absolute;
    bottom: 4rem;
    left: var(--gutter-x);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    max-width: 500px;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: var(--fs-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-text em {
    font-style: italic;
    font-weight: 400;
    color: var(--color-brand-blue);
}

.hero-text strong {
    font-weight: 700;
    color: var(--color-brand-green);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid #fff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    transition: var(--transition);
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Portfolio Page */
.work-section {
    padding-top: 7rem;
    background-color: var(--color-bg);
}

.work-filters {
    padding: 0 72px 1.5rem;
    max-width: none;
    margin: 0 auto;
}

.work-filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 0.4rem 1.2rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 400;
    color: #4d4d4d;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 100px;
    text-transform: none;
    letter-spacing: 0.02em;
    overflow: hidden;
    z-index: 1;
}

.filter-btn .btn-flair {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--flair-brand-color, rgba(0, 0, 0, 0.15));
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hover-brand-color, rgba(0, 0, 0, 0.12));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

/* Brand hover colors will be handled via JS to ensure sequential cycling across all hovers */

.filter-btn:hover:not(.active)::before {
    transform: scaleX(1);
}

/* Ensure no hover effect on active button */
.filter-btn.active::before {
    display: none;
}

.filter-btn.active {
    background: #682f856e;
    color: var(--color-bg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 24px 72px var(--section-y);
    max-width: none;
    margin: 0 auto;
    min-height: 400px;
    transition: opacity 0.3s ease;
}

.work-grid.loading {
    opacity: 0;
    pointer-events: none;
}

.work-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #e0e0e0;
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.work-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.work-item img,
.work-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover img,
.work-item:hover video {
    transform: scale(1.05);
}

.work-item.coming-soon:hover img,
.work-item.coming-soon.coming-soon:hover video {
    transform: scale(1);
}

.work-item.coming-soon a {
    cursor: default;
}

.work-item.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    font-family: 'Helvetica Neue', 'SF Pro Display', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
    z-index: 3;
}

.work-item.coming-soon:hover::after {
    opacity: 1;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
}

.work-overlay-main {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
    opacity: 0.9;
}

.work-overlay-sub {
    font-size: 1.2rem;
    font-weight: 400;
    white-space: pre-line;
    line-height: 1.2;
}

/* About Page */
.us-content {
    padding: var(--section-y) var(--gutter-x);
    max-width: 1200px;
    margin: 0 auto;
}

.services-accordion {
    margin-top: 3rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-button {
    width: 100%;
    padding: 2rem 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: var(--fs-h3);
    font-weight: 400;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-button:hover {
    opacity: 0.7;
}

.accordion-button::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    transition: var(--transition);
}

.accordion-button.active::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-panel {
    padding: 0 0 2rem 0;
    font-size: var(--fs-body);
    line-height: 1.8;
    color: var(--color-text);
}

.accordion-panel ul {
    list-style: disc;
    margin-left: 2rem;
    margin-top: 1rem;
}

.accordion-panel li {
    margin-bottom: 0.5rem;
    font-weight: 400;
}

/* =============================================
   Approach Page - New Design
   ============================================= */

.ap-section-label {
    margin-bottom: 3rem;
}

.strike-wrap {
    position: relative;
    display: inline-block;
    margin-left: 0.2rem;
}

.strike-text {
    position: relative;
    color: inherit; /* Matches the parent heading color */
}

.strike-text::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 60%;
    width: 110%;
    height: 3px;
    background-color: var(--color-brand-red);
    transform: translateY(-50%) rotate(-2deg);
    border-radius: 100% 2px 2px 100%;
    pointer-events: none;
}

.correction-text {
    position: absolute;
    top: -2rem;
    left: 0;
    width: 100%;
    transform: rotate(-8deg);
    font-family: 'Summer Mornings', 'SummerMornings-Regular', cursive;
    font-size: 1.1em;
    white-space: nowrap;
    letter-spacing: 0;
}

.correction-text img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

/* ---- Section 1: Hero ---- */
.ap-hero {
    padding: calc(var(--section-y) + 3rem) var(--gutter-x) var(--section-y);
    background: var(--color-bg);
    overflow: hidden;
}

.ap-hero__inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ap-hero__intro {
    max-width: 600px;
}

.ap-hero__art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ap-hero__art img {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* ---- Section 2: Don't let the size fool you ---- */
.ap-size {
    padding: var(--section-y) var(--gutter-x);
    background: var(--color-bg);
    position: relative;
}

.ap-size::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--gutter-x);
    right: var(--gutter-x);
    height: 1px;
    background: rgba(77, 77, 77, 0.3); /* Reduced visual weight */
}

.ap-size__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--stack-lg);
}

.ap-size__heading {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.0;
    margin-bottom: 2rem;
    color: #4d4d4d;
}

/* .ap-size__body replaced by .body-text standard */

@media (max-width: 768px) {
    .ap-size__inner {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .ap-size {
        padding: 4rem 2rem 5rem;
    }
}

.ap-size__art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ap-size__art img {
    width: 100%;
    max-width: 480px;
    height: auto;
    transform: translateX(4rem); /* Shift right as requested */
}

/* ---- Section 3: Values (Scroll Stacking) ---- */
.ap-values {
    padding: var(--section-y) var(--gutter-x);
    background: var(--color-bg);
    position: relative;
}

.ap-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--gutter-x);
    right: var(--gutter-x);
    height: 1px;
    background: rgba(77, 77, 77, 0.3); /* Reduced visual weight */
}

.ap-values__inner {
}

.ap-values__intro {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: var(--stack-lg);
}

.ap-values__body {
    max-width: 800px;
}

/* Stacking Cards Structure */
#stacking-section {
    width: 100%;
    position: relative;
    background-color: var(--color-bg);
}

.panel {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Scroll Cards Structure */
.scroll-cards-section {
    position: relative;
    width: 100%;
}

.scroll-card {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scroll-card__inner {
    background: transparent;
    border-radius: 0;
    padding: 0 var(--gutter-x);
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* More space for the image */
    gap: var(--stack-lg);
    align-items: center;
    box-shadow: none;
}

.scroll-card__heading {
    font-size: var(--fs-h3);
    font-weight: 420;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    line-height: 0.95;
}

.scroll-card__heading--green {
    color: var(--color-brand-green);
}

.scroll-card__heading--blue {
    color: var(--color-brand-blue);
}

.scroll-card__heading--purple {
    color: var(--color-brand-purple);
}

.scroll-card__heading--red {
    color: var(--color-brand-red);
}

.scroll-card__desc {
    max-width: 500px;
}

.scroll-card__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-card__image img,
.scroll-card__image video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    transform: translateX(-2rem); /* Move slightly left towards text */
}

@media (max-width: 991px) {
    .scroll-card__inner {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
        padding: 2.5rem;
        gap: 2rem;
    }


    .scroll-card__desc {
        font-size: 1rem;
    }

    .scroll-card__image img,
    .scroll-card__image video {
        max-height: 300px;
        transform: none;
        margin: 0 auto;
    }
}

/* ---- Section 4: Process ---- */
.ap-process {
    padding: var(--section-y) var(--gutter-x) calc(var(--section-y) * 0.5);
    background: var(--color-bg);
    position: relative;
    overflow: visible;
}

.ap-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--gutter-x);
    right: var(--gutter-x);
    height: 1px;
    background: rgba(77, 77, 77, 0.3); /* Reduced visual weight */
}

.ap-process__inner {
}

.ap-process__header {
    margin-bottom: 0;
}

.ap-process__illustration {
    position: relative;
    margin-bottom: 4rem;
}

.ap-process__illustration > img:first-child {
    width: 100%;
    height: auto;
    display: block;
}

.ap-process__accent {
    position: absolute;
    bottom: -4rem;
    right: -3rem;
    width: 220px;
    height: auto;
    opacity: 0.55;
    pointer-events: none;
}

.ap-process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.ap-process__card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.ap-process-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-text);
}

.ap-process-card__num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(77, 77, 77, 0.45);
}

.ap-process-card__title {
    font-size: var(--fs-h3);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #4d4d4d;
}

.ap-process-card__desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    font-weight: 300;
    color: #4d4d4d;
    margin-top: 0.5rem;
}

/* ---- Section 5: Team ---- */
.ap-team {
    padding: var(--section-y) var(--gutter-x);
    background: var(--color-bg);
    position: relative;
}

.ap-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--gutter-x);
    right: var(--gutter-x);
    height: 1px;
    background: rgba(77, 77, 77, 0.3); /* Reduced visual weight */
}

.ap-team__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ap-team__hero-art {
    margin-bottom: 4rem;
}

.ap-team__hero-art img {
    width: 100%;
    height: auto;
    display: block;
}

.ap-team__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.ap-team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.ap-team-member img {
    width: 100%;
    height: auto;
    max-width: 160px;
}

.ap-team-member__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4d4d4d;
    margin-top: 0.5rem;
}

.ap-team-member__role {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(77, 77, 77, 0.65);
}


/* Contact Page */
.contact-content {
    padding: var(--section-y) var(--gutter-x);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--color-bg);
    transition: var(--transition);
}

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

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-submit {
    margin-top: 2rem;
}

.form-submit button {
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-text);
    background: var(--color-bg);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit button:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Footer */
.site-footer {
    padding: var(--section-y) var(--gutter-x) 3rem;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0;
}

.footer-container {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 1000;
    color: var(--color-brand-red);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-nav-text);
    max-width: 320px;
    margin-top: 1rem;
}

.footer-nav {
    display: flex;
    gap: 6rem;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.5;
}

.footer-nav-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-group a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-nav-text);
    transition: color 0.3s ease;
}

.footer-nav-group a:hover {
    color: var(--color-brand-red);
}

.footer-leo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-leo__hearts {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    overflow: visible;
}

.footer-leo__heart {
    position: absolute;
    bottom: 0;
    font-size: 1rem;
    color: #f472b6;
    opacity: 0;
    animation: leo-heart-float 1.4s ease-out forwards;
    user-select: none;
}

@keyframes leo-heart-float {
    0%   { transform: translateY(0) scale(0.7); opacity: 0.65; }
    60%  { opacity: 0.5; }
    100% { transform: translateY(-70px) scale(1.1); opacity: 0; }
}

.footer-leo__img {
    width: 180px;
    opacity: 0.73;
    display: block;
    cursor: default;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    color: var(--color-nav-text);
}

.footer-copyright p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-text);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-nav {
        width: 100%;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text {
        bottom: 3rem;
        left: 2rem;
        max-width: 450px;
    }

    .work-filters {
        padding: 0 2rem 1.5rem;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 3rem 2rem;
    }

    /* Approach Page - 1024px */
    .ap-size__inner {
        gap: 3rem;
    }

    .ap-process__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-team__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1.5rem 2rem;
    }

    .header-top {
        gap: 1.5rem;
    }

    .main-nav {
        display: none;
    }

    .social-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-text {
        bottom: 2rem;
        left: 1.5rem;
        max-width: 400px;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-container {
        min-height: 80vh;
    }

    .hero-content {
        min-height: 80vh;
    }


    .work-filters {
        padding: 0 1.5rem 1.5rem;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1.5rem;
    }


    .us-content,
    .contact-content {
        padding: 2.5rem 2rem;
    }

    /* Approach Page - 768px */
    .ap-hero {
        padding: 8rem 2rem 4rem;
    }

    .ap-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ap-hero__art img {
        max-width: 320px;
        margin: 0 auto;
    }

    .ap-size {
        padding: 5rem 2rem;
    }

    .ap-size__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ap-size__art {
        order: -1;
        width: 100%;
    }

    .ap-size__art img {
        max-width: 320px;
        margin: 0 auto;
        transform: none;
    }

    .ap-values {
        padding: 5rem 2rem;
    }

    .ap-values__intro {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 3rem;
    }

    .ap-values__cards {
        grid-template-columns: 1fr;
    }

    .ap-process {
        padding: 5rem 2rem;
    }

    .ap-process__accent {
        display: none;
    }

    .ap-process__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .ap-team {
        padding: 5rem 2rem 6rem;
    }

    .ap-team__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

    .site-footer {
        padding: 2rem 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 1.5rem;
    }

    .logo a {
        font-size: 1.25rem;
    }

    .hero-text {
        bottom: 1.5rem;
        left: 1rem;
        max-width: 90%;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .work-filters {
        padding: 0 1rem 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .us-content,
    .contact-content {
        padding: 2rem 1.5rem;
    }

    /* Approach Page - 480px */
    .ap-size__heading {
        font-size: 2.25rem;
    }

    .ap-values__cards {
        gap: 1.5rem;
    }

    .ap-process__grid {
        grid-template-columns: 1fr;
    }

    .ap-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-item h4 {
        font-size: 1.25rem;
    }

    .process-item p:not(.process-stage) {
        font-size: 0.95rem;
    }

    .accordion-button {
        font-size: 1.25rem;
        padding: 1.5rem 0;
    }
}

/* Performance Optimizations */
.hero-image {
    will-change: transform;
}

.hero-video {
    will-change: transform;
}

.work-item img {
    will-change: transform;
}

/* Work Detail Page */
.work-detail {
    background-color: var(--color-bg);
}

/* Hero Section */
.work-detail-hero {
    padding: calc(var(--section-y) + 3rem) var(--gutter-x) var(--section-y);
    background-color: var(--color-bg);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

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

.work-detail-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--color-text);
}

.work-detail-description {
    font-size: var(--fs-body);
    line-height: 1.8;
    font-weight: 400;
    color: var(--color-text);
    max-width: 550px;
}

/* Project Metadata */
.project-metadata {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.metadata-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.metadata-item:last-child {
    border-bottom: none;
}

.metadata-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
}

.metadata-label {
    font-size: 0.95em;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #4d4d4d;
}

/* Chevron arrow on the right side */
.metadata-header::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #4d4d4d;
    border-bottom: 1.5px solid #4d4d4d;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -4px;
}

/* Rotate chevron when active (pointing up) */
.metadata-item.active .metadata-header::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.metadata-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.metadata-item.active .metadata-content {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.metadata-value {
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
}

.credits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credit-link {
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.credit-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--credit-underline-color, var(--color-brand-red));
    transition: width 0.3s ease;
}

.credit-link:hover::after {
    width: 100%;
}

.credit-separator {
    color: rgba(26, 26, 26, 0.4);
}

/* Hero Landscape Image */
.hero-landscape {
    width: 100%;
    background-color: #e0e0e0;
    overflow: hidden;
}

.hero-landscape img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Work Description Content */
.work-detail-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-y) var(--gutter-x);
}

.work-description {
    font-size: var(--fs-body);
    line-height: 1.8;
    font-weight: 400;
    color: var(--color-text);
    white-space: pre-line;
}

.post-launch {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-launch h3 {
    font-size: var(--fs-h3);
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.post-launch p {
    font-size: var(--fs-body);
    line-height: 1.8;
    font-weight: 300;
    color: var(--color-text);
}

/* Project Gallery */
.project-gallery {
    padding: 0 var(--gutter-x) var(--section-y);
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--stack-md);
}

/* Override grid for single item */
.project-gallery:has(.gallery-item:only-child) {
    grid-template-columns: 1fr;
}

.gallery-item {
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #e0e0e0;
}

.gallery-item video {
    object-fit: cover;
}

/* Error Message */
.error-message {
    padding: calc(var(--section-y) + 3rem) var(--gutter-x) var(--section-y);
    text-align: center;
    background-color: var(--color-bg);
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-content h2 {
    font-size: var(--fs-h2);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.error-content p {
    font-size: var(--fs-body);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* Responsive Design for Work Detail */
@media (max-width: 768px) {
    .work-detail-hero {
        padding: 6rem 2rem 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-metadata {
        gap: 1.5rem;
    }

    .metadata-item {
        padding-bottom: 1.5rem;
    }

    .work-detail-content {
        padding: 3rem 2rem;
    }

    .project-gallery {
        padding: 0 2rem 3rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-overlay-sub {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .menu-toggle,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }
}

/* --- Slide-in Contact Form --- */
.slide-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.slide-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(105%);
    width: 100%;
    max-width: 650px;
    height: 100dvh;
    background-color: #f3f3e9;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Box shadow removed here to avoid clipping issues during reveal, added below */
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    will-change: transform, clip-path;
    backface-visibility: hidden;
    clip-path: url(#panelClipPath);
}

@media (max-width: 768px) {
    .slide-panel {
        max-width: 100%;
    }
}

.slide-panel.active {
    transform: translateX(0);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

.slide-panel-scroll-container {
    position: relative;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: none;
}

.slide-panel-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Lenis content wrapper inside the panel. It must GROW with its content
   (not be locked to height:100%) so Lenis's ResizeObserver detects the
   taller form section and updates its scroll limit. The active section
   uses flex-grow to still fill the viewport when its content is short. */
.slide-panel-scroll-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-panel-scroll-content > .panel-section.active {
    flex: 1 0 auto;
}

.panel-section {
    display: none;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    padding: 6rem 3rem 4rem;
    background-color: #f3f3e9; /* Match panel background */
    opacity: 1;
    overflow: hidden; /* Prevent bleed */
}

.panel-section.active {
    display: flex;
    z-index: 10;
}

/* While wiping, we want to ensure the transitions are clean */
.slide-panel.wiping .panel-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.slide-panel.wiping .panel-section.active {
    z-index: 20;
}

/* Inactive sections during wipe must be explicitly hidden or pushed below */
.slide-panel.wiping .panel-section:not(.active) {
    display: none; /* JS swaps at 50%, so this ensures the one just turned off vanishes */
}

.panel-section-header {
    width: 100%;
    margin-bottom: 3.5rem;
}


.panel-section-header h2 {
    font-size: var(--fs-h1);
    line-height: 1.05;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}

/* SVG heading images - both render at the same height via width ratio */
.panel-greeting-svg {
    width: 100%;
    height: auto;
}

/* listening SVG has aspect ratio 3.26:1 vs greeting's 5.62:1;
   at 58% width it renders at the same height as greeting at 100% */
.panel-listening-svg {
    width: 72%;
    height: auto;
}

#panelDetailsSection {
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

#panelDetailsSection .panel-section-header {
    width: calc(100% + 6rem);
    margin-left: -3rem;
    margin-right: -3rem;
}

.panel-character-centered {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.panel-character-centered .panel-character-img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.panel-character-wrap {
    position: relative;
    width: 100%;
}

/* Spawn area positioned over the laptop screen in the illustration (~28-57% wide, 38-70% tall) */
.panel-character-floats {
    position: absolute;
    left: 27%;
    right: 53%;
    top: 10%;
    bottom: 25%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.panel-character-float-icon {
    position: absolute;
    bottom: 0;
    width: 28px;
    height: 28px;
    opacity: 0;
    animation: char-icon-float 1.8s ease-out forwards;
    pointer-events: none;
}

.panel-character-float-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes char-icon-float {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    12%  { opacity: 0.85; }
    60%  { opacity: 0.55; }
    100% { transform: translateY(-110px) scale(0.85); opacity: 0; }
}

.panel-main-greeting {
    font-size: var(--fs-h1);
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.2;
}

.panel-main-greeting .panel-greeting-hello {
    color: var(--color-brand-red);
    font-weight: 700;
}

@media (max-width: 768px) {
    .panel-section {
        padding: 5.5rem 2.5rem 3.5rem;
    }
    
    .panel-section-header {
        margin-bottom: 3.5rem;
    }

    .panel-section-header h2 {
        font-size: 3rem; /* Desktop parity */
        letter-spacing: -0.04em;
    }
    
    .panel-main-greeting {
        font-size: 2.8rem;
    }

    .contact-pill-btn {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .panel-section {
        padding: 5rem 1.8rem 3rem;
    }
    
    .panel-section-header h2 {
        font-size: 2.8rem; /* Powerful headline presence */
        letter-spacing: -0.05em;
        line-height: 1.05;
    }
    
    .panel-main-greeting {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .panel-greeting-hello {
        font-size: 3.2rem;
    }

    .panel-radio-group {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .calendly-btn {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 1.25rem;
    }
}

/* Ensure the curtain is ALWAYS on top */
.curve-swipe-svg {
    z-index: 100 !important;
}

.close-panel {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    /* Below the curve-swipe overlay (z-index: 100) so the wipe sweeps over the
       X. The overlay is only shown while wiping, so the X stays visible at rest. */
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel span {
    position: absolute;
    width: 24px;
    height: 1px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

.close-panel span:nth-child(1) {
    transform: rotate(45deg);
}

.close-panel span:nth-child(2) {
    transform: rotate(-45deg);
}

.close-panel:hover span {
    background-color: #ec1c24;
}

.slide-panel-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-agency-tag-wrapper {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.contact-agency-tag {
    background-color: #ec1c24;
    color: #ffffff;
    padding: 0.25rem 0.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
    line-height: 1.2;
}


.panel-details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.5rem, 1.5dvh, 1rem);
    width: fit-content;
    margin: 0 auto;
}

.panel-detail-item {
    display: flex;
    width: 100%;
}

.contact-pill-btn {
    display: block;
    width: 100%;
    padding: clamp(0.5rem, 1.5vw, 0.85rem) clamp(1.2rem, 3vw, 2rem);
    background: rgba(163, 196, 150, 0.35);
    color: #3a3a3a;
    text-decoration: none;
    border-radius: 100px;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.15s ease;
    line-height: 1.4;
}

.contact-pill-btn:hover {
    background: rgba(163, 196, 150, 0.55);
    transform: translateY(-1px);
}

.contact-pill-btn:active {
    transform: translateY(0);
}

.contact-pill-btn--purple {
    background: rgba(123, 45, 139, 0.15);
    color: var(--color-brand-purple);
}

.contact-pill-btn--purple:hover {
    background: rgba(123, 45, 139, 0.25);
}

.calendly-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    padding: 0.9rem 2.2rem;
    background: rgba(0, 147, 69, 0.1);
    color: #1a1a1a;
    text-decoration: none;
    border: 1.5px solid rgba(0, 147, 69, 0.3);
    border-radius: 100px;
    font-weight: 400;
    font-size: 1.25rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: border-color 0.35s ease, background-color 0.35s ease;
}

.calendly-btn .btn-flair {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #009345;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.calendly-btn .btn-label {
    position: relative;
    z-index: 2;
    transition: color 0.35s ease;
}

.calendly-btn:hover {
    background: #009345;
    border-color: #009345;
}

.calendly-btn:hover .btn-label {
    color: #ffffff;
}

.scroll-indicator-wrapper {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.scroll-arrow-img {
    width: 48px;
    height: auto;
    animation: arrow-bounce 2s ease-in-out infinite;
}

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

#slideContactForm {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-form-group {
    display: flex;
    flex-direction: column;
}

.panel-form-group label, .panel-form-label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
}

.panel-form-group input[type="text"],
.panel-form-group input[type="email"],
.panel-form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    padding: 0.5rem 0;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 400;
    transition: border-color 0.3s ease;
    resize: none;
}

.panel-form-group input[type="text"]:focus,
.panel-form-group input[type="email"]:focus,
.panel-form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-brand-blue);
}

.panel-form-group textarea {
    min-height: 100px;
}

/* Custom Radio Buttons */
.panel-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.panel-radio-label {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 400;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.panel-radio-label span:last-of-type {
    font-size: 1.125rem;
    color: #a0a0a0; /* Match placeholder/label style when unchecked */
    transition: color 0.3s ease;
}

.panel-radio-label input:checked ~ span:last-of-type {
    color: #1a1a1a; /* Match active input text style when selected */
}

/* Explicitly style placeholders to be consistent */
.panel-form-group input::placeholder,
.panel-form-group textarea::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

/* Hide default radio */
.panel-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.panel-radio-label input:checked ~ .radio-indicator {
    border-color: var(--color-brand-blue);
}

.panel-radio-label input:checked ~ .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--color-brand-blue);
    border-radius: 50%;
}

.slide-panel-footer {
    margin-top: 3.5rem;
    display: flex;
    justify-content: flex-end; /* Align to the right as requested */
    align-items: center;
}

.btn-panel-cancel {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-panel-cancel:hover {
    color: #ec1c24;
}

.btn-panel-send {
    position: relative;
    background-color: rgba(0, 147, 69, 0.1);
    border: 1.5px solid rgba(0, 147, 69, 0.3);
    color: #1a1a1a;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-family: var(--font-primary);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: border-color 0.35s ease, background-color 0.35s ease;
}

.btn-panel-send .btn-flair {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #009345;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.btn-panel-send .btn-label {
    position: relative;
    z-index: 2;
    transition: color 0.35s ease;
}

.btn-panel-send:hover {
    background-color: #009345;
    border-color: #009345;
}

.btn-panel-send:hover .btn-label {
    color: #ffffff;
}

/* Contact panel: match the Send email button to the LinkedIn pill (.contact-pill-btn),
   but keep it compact and anchored to the bottom-right of the footer. */
.slide-panel-footer .btn-panel-send {
    display: inline-block;
    width: auto;
    padding: clamp(0.5rem, 1.5vw, 0.85rem) clamp(1.2rem, 3vw, 2rem);
    background-color: rgba(163, 196, 150, 0.35);
    border: none;
    color: #3a3a3a;
    border-radius: 100px;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    transition: background 0.25s ease, transform 0.15s ease;
}

.slide-panel-footer .btn-panel-send .btn-flair {
    display: none;
}

.slide-panel-footer .btn-panel-send .btn-label {
    color: inherit;
}

.slide-panel-footer .btn-panel-send:hover {
    background-color: rgba(163, 196, 150, 0.55);
    transform: translateY(-1px);
}

.slide-panel-footer .btn-panel-send:hover .btn-label {
    color: inherit;
}

.slide-panel-footer .btn-panel-send:active {
    transform: translateY(0);
}

/* Curve Swipe Animation Elements */
.curve-swipe-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    will-change: transform;
    /* Hidden at rest; JS shows it only during the wipe (see triggerWipe). */
    display: none;
}

.curve-swipe-path {
    fill: #1a1a1a;
}

@media (max-width: 500px) {
    .slide-panel {
        max-width: 100vw;
    }
}

/* --- Contact Page Specific --- */
.contact-page-section {
    padding: calc(var(--section-y) + 3rem) var(--gutter-x) var(--section-y);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100dvh;
}

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-page-left {
    display: flex;
    flex-direction: column;
}

.contact-page-header h2 {
    font-size: var(--fs-h1);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.contact-page-submit {
    margin-top: 3rem;
}

.contact-page-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
}

.studio-info-block h3 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #a0a0a0;
    letter-spacing: 0.05em;
}

.studio-info-block p, .studio-info.ap-values__body {
    max-width: 600px;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text);
}



.scroll-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-info-block p, .studio-info-block a {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.studio-info-block a:hover {
    color: #8a5cf5;
}

/* Reuse the slide-in form styles for the page by overriding color */
#contactPageForm .panel-form-group input[type="text"],
#contactPageForm .panel-form-group input[type="email"],
#contactPageForm .panel-form-group textarea {
    color: var(--color-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#contactPageForm .panel-radio-label {
    color: var(--color-text);
}

#contactPageForm .radio-indicator {
    border: 1px solid rgba(0, 0, 0, 0.4);
}

#contactPageForm .btn-panel-send {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-text);
}

#contactPageForm .btn-panel-send:hover {
    background-color: #8a5cf5;
    border-color: #8a5cf5;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-page-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
/* ----- Legal pages (Privacy Policy, Terms & Conditions) ----- */
.legal-page-section {
    padding: calc(var(--section-y) + 3rem) var(--gutter-x) var(--section-y);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100dvh;
}

.legal-page-container {
    max-width: 760px;
    margin: 0 auto;
}

.legal-page-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-page-header h1 {
    font-size: var(--fs-h1);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
    color: var(--color-nav-text);
}

.legal-effective-date {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 3rem 0 1rem 0;
    color: var(--color-nav-text);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--color-nav-text);
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.78);
}

.legal-content p {
    margin: 0 0 1.1rem 0;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1.1rem 0;
    padding-left: 1.5rem;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.legal-content a:hover {
    color: #8a5cf5;
}

.legal-content strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page-header {
        margin-bottom: 2.5rem;
    }
    .legal-content h2 {
        font-size: 1.3rem;
        margin-top: 2.25rem;
    }
}

/* --- Toast notifications --- */
.dm-toast-stack {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.dm-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: 360px;
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    border-left: 4px solid var(--color-brand-blue);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.dm-toast.dm-toast--show {
    opacity: 1;
    transform: translateY(0);
}

.dm-toast--success { border-left-color: var(--color-brand-green); }
.dm-toast--error { border-left-color: var(--color-brand-red); }

.dm-toast__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.dm-toast--success .dm-toast__icon { background: var(--color-brand-green); }
.dm-toast--error .dm-toast__icon { background: var(--color-brand-red); }

@media (prefers-reduced-motion: reduce) {
    .dm-toast { transition: opacity 0.2s ease; transform: none; }
    .dm-toast.dm-toast--show { transform: none; }
}

@media (max-width: 600px) {
    .dm-toast-stack {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    .dm-toast { max-width: none; }
}
