/**
 * STUDIO PAGE STYLE GUIDE
 * -----------------------------------------------------------------------------
 * 
 * 1. COLOR PALETTE
 *    - Background: #212121 (Dark Grey)
 *    - Text Primary: #FFFFFF (White)
 *    - Text Secondary: #666666 (Medium Grey)
 *    - UI Muted: #A8A8A8 (Light Grey)
 *    - Accent: #F8D200 (Yellow)
 *    - Border: #E0E0E0
 * 
 * 2. TYPOGRAPHY
 *    - Primary Font: 'Roboto', sans-serif (Body text)
 *    - Heading Font: 'Raleway', sans-serif (Headings, Logo)
 *    - H1 Size: 3.5rem (Desktop), 2.5rem (Mobile)
 *    - H2 Size: 2rem
 *    - Body Size: 1rem (16px)
 * 
 * 3. SPACING SYSTEM
 *    - XS: 8px
 *    - SM: 16px
 *    - MD: 24px
 *    - LG: 40px
 *    - XL: 80px
 *    - Header Offset: 80px
 * 
 * 4. COMPONENTS
 *    - Buttons: Pill shape, outline style, accent hover
 *    - Cards: Grayscale default, color on hover
 *    - Side Panels: Right-aligned sliding overlay
 * 
 * -----------------------------------------------------------------------------
 */

/* =========================================
   Layout & Grid System
   ========================================= */
:root {
    --place-span-border-width: 0px;
    
    /* Design Tokens for PLACE Typography */
    --place-typography-family: var(--font-heading);
    --place-typography-size-desktop: 6rem;
    --place-typography-size-mobile: 4rem;
    --place-typography-weight: 700; /* Bold */
}

html {
    scroll-behavior: smooth;
}

.studio-container {
    padding-top: var(--header-offset);
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.studio-section {
    padding: var(--spacing-md) 0; /* Compacted from LG */
    position: relative;
    border-bottom: 1px solid #333;
    scroll-margin-top: 140px; /* Header + Nav offset */
}

.studio-section:last-child {
    border-bottom: none;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md); /* Compacted from LG */
    align-items: flex-start;
}

.col-left {
    padding-right: var(--spacing-md);
}

.col-right {
    padding-left: var(--spacing-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-transform: none; /* Sentence case for consistency */
    font-weight: 700;
    margin-top: 0; /* Ensure top alignment */
}

/* Isometric Title Styles (Matches Project Detail) */
.isometric-title-container {
    margin-bottom: var(--spacing-md);
}

.specs-project-title-iso {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 3.5vw, 3.5rem);
    line-height: 1.0;
    font-weight: 300; /* NORMAL/THIN */
    margin: 0;
    color: #fff;
    text-transform: none;
}

.specs-project-subtitle-iso-new {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 3.5vw, 3.5rem); /* Same size as title */
    line-height: 1.0;
    font-weight: 700; /* BOLD */
    margin-top: 0;
    color: #fff; /* Changed from accent to white */
    text-transform: none;
    opacity: 0.8;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    border-bottom: none;
    font-weight: 700;
}

.intro-text {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.body-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-ui-muted);
    margin-bottom: var(--spacing-md);
}

.align-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* =========================================
   Section 1: About Us (Media Component)
   ========================================= */
.media-container {
    margin-top: var(--spacing-md); /* Compacted from LG */
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Fixed 16:9 ratio */
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-element {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the 16:9 area completely */
    display: block;
}

.media-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    padding: 0 var(--spacing-md);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    z-index: 10;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Carousel Specifics */
.studio-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Section: Interactive Brand Pillars (16:9)
   ========================================= */
.pillars-container {
    width: 100vw;
    height: 100vh;
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: #000;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: calc(-1 * var(--header-offset));
    margin-bottom: 0;
}

.pillar-group-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    z-index: 1;
}

.pillar-group-wrapper.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.pillars-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pillars-bg-global {
    z-index: 1;
}

.pillar-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background: #000; /* Fallback background */
}

.pillar-media.active {
    opacity: 1;
}

.pillar-media-global-fallback {
    z-index: 1;
}

.pillar-media-global {
    z-index: 2;
}

.pillars-content-layer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Bottom alignment */
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding-bottom: var(--spacing-xl);
}

.pillar-block {
    text-align: center;
    padding: var(--spacing-sm) 0;
    opacity: 0.2; /* Default dim state */
    transform: scale(0.98);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    width: 100%;
    max-width: min(980px, 92vw);
    cursor: pointer;
}

.pillars-container[data-global-override="1"] .pillar-group-wrapper {
    transition: opacity 0.35s ease, visibility 0.35s;
}

.pillars-container[data-global-override="1"] .pillar-media {
    transition: opacity 0.35s ease;
}

.pillars-container[data-global-override="1"] .pillar-block {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.pillar-block.active {
    opacity: 1;
    transform: scale(1);
}

.pillar-normal {
    display: block;
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: clamp(1.2rem, 2.1vmin, 1.85rem);
    color: #fff;
    margin-bottom: 2px; /* Minimal gap with bold text */
    letter-spacing: 0.05em;
    text-transform: lowercase;
    white-space: nowrap;
}

.pillar-bold {
    display: block;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(2.6rem, 5.2vmin, 4.2rem);
    color: #fff;
    margin-bottom: 0px; /* Zero gap with stars */
    text-transform: lowercase;
    padding: 0;
    line-height: 1;
    border-bottom: none !important; /* Forcefully remove global h2 border */
    white-space: nowrap;
}

.pillar-line2-normal {
    font-weight: 300;
}

.pillar-line2-bold {
    font-weight: 800;
}

.pillar-line2-normal:empty + .pillar-line2-bold {
    margin-left: 0;
}

.pillar-stars {
    color: #fff;
    font-size: clamp(0.9rem, 1.25vmin, 1.2rem);
    letter-spacing: 8px;
    margin-top: 10px;
}

/* =========================================
   Section: Our Place Segment (16:9)
   ========================================= */
.our-place-section.our-place-fullscreen {
    padding: 0;
    border-bottom: none;
}

.our-place-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #fff;
    margin-bottom: var(--spacing-lg);
}

.our-place-fullscreen .our-place-container {
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 620px;
    background: #000;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
}

.our-place-fullscreen #our-place-loop {
    top: 0;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
}

.our-place-fullscreen .our-place-bg {
    background: #000;
}

.studio-section:not(.our-place-fullscreen) #our-place-loop {
    top: clamp(0px, 3vmin, 29px);
}

div#our-place-loop > div.our-place-slide:nth-child(2) > div.our-place-bg > img.our-place-media {
    top: 0px;
}

.studio-section#about > .media-container > video.media-element {
    margin-top: 0;
    margin-bottom: 0;
}

.our-place-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    background: #fff;
    z-index: 1;
}

.our-place-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.our-place-container.has-override .our-place-slide {
    transition: opacity 0.3s ease, visibility 0.3s;
}

.our-place-bg {
    position: absolute;
    inset: 0;
    background: #fff;
}

.our-place-container.has-override .our-place-slide,
.our-place-container.has-override .our-place-bg {
    background: transparent;
}

.our-place-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.our-place-caption {
    position: absolute;
    left: 50%;
    bottom: clamp(52px, 8vmin, 90px);
    transform: translateX(-50%);
    width: min(880px, calc(100% - 80px));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    column-gap: 15px; /* Gap between left part, divider, and right part */
    /* Remove background and blur for transparent look */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    color: #fff; /* Light text for dark background */
}

.our-place-fullscreen .our-place-caption {
    bottom: clamp(52px, 8vmin, 90px);
    width: min(980px, calc(100% - 80px));
}

.our-place-left-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right align the text block */
    justify-self: end;
    line-height: 1.1;
}

.our-place-top {
    font-size: clamp(1.05rem, 1.75vmin, 1.55rem);
    color: rgba(255, 255, 255, 0.7); /* Light Gray text */
    letter-spacing: 0.02em;
    font-weight: 400;
    text-transform: lowercase;
    margin-bottom: 2px;
}

.our-place-title {
    font-size: clamp(2.4rem, 5.2vmin, 4.4rem);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    text-transform: lowercase;
    font-weight: 300;
    white-space: nowrap;
}

.our-place-our {
    font-weight: 300;
    color: rgba(255, 255, 255, 1);
}

.our-place-fixed {
    color: rgba(255, 255, 255, 1);
    display: inline-flex;
    gap: 2px;
    font-weight: 800;
}

.p-letter {
    font-weight: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

.p-letter.active {
    color: var(--color-accent);
}

.our-place-sep {
    width: 1px;
    height: clamp(40px, 7.5vmin, 70px);
    background: rgba(255, 255, 255, 0.6); /* Lighter divider */
    align-self: center;
}

.our-place-right-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align the text block */
    justify-self: start;
    line-height: 1.1;
}

.our-place-mid {
    font-size: clamp(1.05rem, 1.75vmin, 1.55rem);
    color: rgba(255, 255, 255, 0.7); /* Light Gray text */
    text-transform: lowercase;
    white-space: nowrap;
    font-weight: 400;
    margin-bottom: 2px;
}

.our-place-right {
    font-size: clamp(2.4rem, 5.2vmin, 4.4rem);
    font-weight: 800; /* Bold white text */
    color: var(--color-accent);
    text-transform: lowercase; /* process oriented is lowercase */
    white-space: nowrap;
}

@media (max-width: 768px) {
    .our-place-caption {
        bottom: 34px;
        gap: 10px;
    }
    .our-place-top, .our-place-mid {
        font-size: 0.95rem;
    }
    .our-place-title {
        font-size: 1.45rem;
    }
    .our-place-right {
        font-size: 1.45rem;
    }
    .our-place-sep {
        height: 32px;
    }
}

.our-place-global-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.our-place-global-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.our-place-global-fallback {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.our-place-container.has-override .our-place-global-media,
.our-place-container.has-override .our-place-global-fallback {
    transition: opacity 0.2s ease;
}

.our-place-global-media.active,
.our-place-global-fallback.active {
    opacity: 1;
}

/* =========================================
   Section 2: Philosophy (PLACE)
   ========================================= */
.philosophy-section {
    padding-top: var(--spacing-lg); /* Compacted from XL */
    padding-bottom: var(--spacing-lg); /* Compacted from XL */
}

.philosophy-header {
    margin-bottom: var(--spacing-md); /* Compacted from LG */
}

.philosophy-section .section-heading {
    font-size: 3rem; /* Strong but not oversized */
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    margin-top: 0; /* Ensure top alignment */
    line-height: 1.1; /* Tighter line height for better alignment */
}

.philosophy-section .col-right p {
    font-size: 1.1rem;
    line-height: 1.6; /* Comfortable line-height */
    color: var(--color-ui-muted); /* Neutral text color */
    margin: 0;
    padding-top: 5px; /* Visual optical alignment with the H2 cap height */
}

.place-acronym-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--spacing-lg); /* Added margin since header is gone */
}

.place-item {
    display: flex;
    align-items: center; /* Vertically center */
    width: 100%; /* Span full container width */
    padding: 15px 20px; /* Compacted from 30px */
    background: rgba(255, 255, 255, 0.03); /* Soft tinted background strip */
    margin-bottom: 2px; /* Tiny gap between strips */
    position: relative;
    transition: background 0.3s ease;
    cursor: default; /* Editorial feel, not necessarily clickable buttons */
}

.place-item:hover {
    background: rgba(255, 255, 255, 0.06); /* Subtle hover effect */
}

.place-item .letter {
    font-family: var(--place-typography-family);
    font-size: var(--place-typography-size-desktop);
    font-weight: var(--place-typography-weight);
    color: #FFF; /* "Black" equivalent in Dark Mode (High Contrast) */
    line-height: 0.8;
    width: auto; /* Allow natural width to close gap */
    text-align: left; /* Left aligned */
    flex-shrink: 0;
    margin-right: 0; /* Zero gap enforced */
    padding-right: 0; /* Zero padding enforced */
    border: var(--place-span-border-width) solid transparent; /* Applied design token */
}

.place-item .word {
    font-family: var(--place-typography-family);
    font-size: var(--place-typography-size-desktop);
    font-weight: var(--place-typography-weight);
    color: #444; /* Light grey color / Low contrast (Dark Grey on Dark BG) */
    line-height: 0.8; /* Match .letter line-height */
    letter-spacing: normal; /* Match .letter spacing */
    margin-left: 0; /* Zero gap enforced */
    padding-left: 0; /* Zero padding enforced */
    border: var(--place-span-border-width) solid transparent; /* Applied design token */
}

/* Remove old hover effects */
.place-item .word::before {
    display: none;
}

@media (max-width: 768px) {
    .place-item {
        padding: 15px 15px; /* Compacted */
    }
    .place-item .letter {
        font-size: 4rem;
        width: auto;
    }
    .place-item .word {
        font-size: 2rem;
    }
    .philosophy-header {
        margin-bottom: 30px; /* Compacted */
    }
}

/* =========================================
   Section 3: Background
   ========================================= */
/* Background Text Content styles removed as we now use grid-layout */
.background-section .col-right p {
    margin-top: 0;
    padding-top: 5px; /* Optical alignment with H1 */
}

@media (min-width: 992px) {
    .background-section[data-snap][data-snap-active="true"] {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

    .background-section[data-snap][data-snap-active="true"] .background-images-row {
        margin-top: var(--spacing-md);
    }

    .background-section[data-snap][data-snap-active="true"] .bg-img-responsive {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Read More Button - Updated Style */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle transparent border */
    color: var(--color-text-primary);
    height: 38px; /* Fixed height for consistency between <a> and <button> */
    padding: 0 20px; /* Horizontal padding only, vertical handled by height/flex */
    border-radius: 6px; /* Reduced radius (was 50px) */
    font-family: var(--font-primary);
    font-size: 0.8rem; /* Smaller font size */
    text-transform: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
    opacity: 0.8; /* Slight transparency */
    text-decoration: none;
    min-width: 120px; /* Consistent minimum width */
    box-sizing: border-box; /* Ensure padding/border don't affect width/height */
    line-height: 1; /* Reset line-height to avoid shifts */
}

.btn-read-more:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.btn-read-more[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: auto;
    position: relative;
}

.btn-read-more[aria-disabled="true"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    background: transparent;
    opacity: 0.6;
}

.btn-read-more[aria-disabled="true"][data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
}

.btn-read-more[aria-disabled="true"][data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.85);
    z-index: 50;
    pointer-events: none;
}

.btn-read-more .plus-icon {
    margin-right: 6px;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
}

/* Background Buttons Container */
.background-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; /* Adjusted gap to 10px (was 15px) */
    margin-top: 25px;
}

/* Navigation Buttons Group (Workshops & Adda) */
.nav-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .background-buttons-container {
        margin-top: 20px;
        width: 100%;
    }
    
    .nav-buttons-group {
        width: 100%;
    }
    
    .btn-read-more {
        flex: 1; /* Distribute space evenly on mobile if needed, or keep auto */
    }
}

/* 
   Image Layout - Reference Match
   - Left Image: Narrower, Portrait (3:4)
   - Right Image: Dominant, Wider, Landscape/Square (4:3)
   - Gap: Generous 30px
   - Alignment: Top aligned (flex-start)
   - No CSS transforms or z-index overrides required for standard layout
*/
.background-images-row {
    display: flex;
    gap: var(--spacing-md); /* Compacted from 30px to MD (24px) */
    width: 100%;
    align-items: flex-start; /* Top aligned */
    justify-content: space-between;
    margin-top: var(--spacing-lg); /* Added gap between text and images */
}

.bg-img-wrapper {
    overflow: hidden;
    position: relative;
    background: #000;
}

/* Specific sizing for image balance */
.bg-img-wrapper.img-left {
    flex: 1; /* Width Ratio Unit: 1 */
    aspect-ratio: 4/3;
}

.bg-img-wrapper.img-right {
    flex: 2.5; /* Width Ratio Unit: 2.5 (Dominant) */
    aspect-ratio: 16/9;
}

.bg-img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.bg-img-wrapper.img-left .bg-img-responsive {
    aspect-ratio: auto;
}

.bg-img-wrapper.img-right .bg-img-responsive {
    aspect-ratio: auto;
}

.bg-img-responsive:hover {
    filter: grayscale(0%);
}

.img-caption {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--color-ui-muted);
    margin-top: 12px;
    font-weight: 400;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .background-images-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .bg-img-wrapper.img-left,
    .bg-img-wrapper.img-right {
        flex: none;
        width: 100%;
    }

    .bg-img-wrapper.img-left .bg-img-responsive {
        height: 100%;
        object-fit: cover;
    }

    .bg-img-wrapper.img-right .bg-img-responsive {
        height: 100%;
        object-fit: cover;
    }
}

/* =========================================
   Section 4: Our People
   ========================================= */
.people-section {
    border-bottom: none; /* Remove border before CTA section */
    padding-bottom: var(--spacing-xl); /* Added space before footer */
}

.people-section .grid-layout {
    margin-bottom: var(--spacing-lg); /* Compacted from XL */
}

/* Team Category Groups */
.category-group {
    margin-bottom: var(--spacing-lg); /* Compacted from XL */
}

.category-group:last-child {
    margin-bottom: 0; /* Remove margin for the last group to close gap with CTA */
}

/* Category Title (e.g., PARTNERS, ASSOCIATES) */
.category-title {
    font-size: 1.5rem;
    color: var(--color-ui-muted);
    border-bottom: 1px solid #333;
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    text-transform: none; /* Respect backend casing */
    letter-spacing: 2px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

@media (min-width: 720px) {
    .people-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.person-card {
    cursor: pointer;
}

.person-image-wrapper {
    width: 100%;
    aspect-ratio: 5/6;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.person-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.person-card:hover .person-image {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.person-info {
    text-align: left;
}

.person-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.person-role {
    font-size: 0.9rem;
    color: var(--color-ui-muted);
    text-transform: none; /* Changed from uppercase to respect backend casing */
    margin-top: 4px;
}

/* =========================================
   Side Panel System (Global)
   ========================================= */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

.side-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-panel-open,
.side-panel-open body {
    overflow: hidden !important;
}

.side-panel-open {
    scroll-behavior: auto !important;
}

/* =========================================
   Disable Scroll Snap (One Scroll) Override
   ========================================= */
main {
    scroll-snap-type: none !important;
    height: auto !important;
    overflow-y: visible !important;
}

main section {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

.side-panel {
    width: min(800px, 90vw);
    max-height: 90vh;
    height: auto;
    background: var(--color-bg-primary);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: var(--spacing-lg) var(--spacing-md); /* Compacted from XL LG */
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.side-panel-overlay.active .side-panel {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .side-panel {
        width: 100%;
        max-height: 100vh;
    }
}

.panel-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.panel-close-btn:hover {
    color: var(--color-accent);
}

.panel-content {
    margin-top: var(--spacing-lg);
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
    max-height: calc(90vh - 100px);
}

.panel-scrollable {
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
    max-height: 100%;
    height: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@media (max-width: 768px) {
    .panel-content {
        max-height: calc(100vh - 100px);
    }
}

/* Scrollbar Styling */
.panel-scrollable::-webkit-scrollbar {
    width: 6px;
}
.panel-scrollable::-webkit-scrollbar-track {
    background: #111;
}
.panel-scrollable::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Panel Content Typography */
.panel-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.panel-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid #333;
    padding-bottom: var(--spacing-sm);
}

.panel-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #ddd;
}

.panel-iso-header {
    margin-bottom: var(--spacing-lg);
}

/* Person Popup New Layout (Wireframe Match) */
.person-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    text-align: left;
}

.person-popup-image-wrapper {
    width: 100%;
}

.person-popup-image-wrapper img {
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.person-popup-details {
    display: flex;
    flex-direction: column;
}

.person-popup-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 5px;
    line-height: 1.1;
    border-bottom: none; /* Override global h2 border */
    display: block;
}

.person-popup-role {
    font-size: 1.1rem;
    color: var(--color-ui-muted);
    margin-bottom: 20px;
    text-transform: none;
}

.person-popup-social {
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.person-popup-social a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.person-popup-social a:hover {
    color: var(--color-accent);
}

.person-popup-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.person-popup-bio p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .person-popup-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .person-popup-name {
        font-size: 1.8rem;
    }
}

/* =========================================
   Section 5: CTA
   ========================================= */
.work-cta {
    padding-top: 0; /* Removed top padding to eliminate gap */
    padding-bottom: var(--spacing-md);
}

.btn-pill {
    display: inline-block;
    padding: 8px 25px; /* Reduced padding from 15px 40px for compact look */
    margin-top: 15px; /* Added top margin for spacing */
    border: 1px solid var(--color-text-primary);
    border-radius: 50px;
    color: var(--color-text-primary);
    text-transform: none;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-size: 0.9rem; /* Slightly smaller text for better proportion */
}

.btn-pill:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

/* Second definition removed to avoid conflict with updated style above */

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .col-left, .col-right {
        padding: 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .media-overlay-text {
        font-size: 2rem;
    }
    
    .side-panel {
        width: 100%; /* Full width on tablet */
    }
}

@media (max-width: 768px) {
    .intro-text {
        font-size: 1.2rem;
    }
    
    .place-item {
        padding: 15px 15px; /* Compacted */
    }
    .place-item .letter {
        font-size: var(--place-typography-size-mobile);
        width: 50px;
    }
    .place-item .word {
        font-size: var(--place-typography-size-mobile);
    }
    
    .media-container {
        aspect-ratio: 16 / 9;
    }
    
    .people-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .people-grid {
        grid-template-columns: 1fr; /* 1 column on small mobile */
    }
    
    .media-overlay-text {
        font-size: 1.5rem;
        bottom: 10px;
        left: 10px;
    }
}

/* Studio Sub-Navigation */
.studio-sub-nav {
    position: sticky;
    top: 80px; /* Below main header */
    z-index: 90;
    background: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #333;
    margin-bottom: var(--spacing-md);
}

.studio-sub-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.studio-sub-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 5px 10px;
}

.studio-sub-nav a:hover,
.studio-sub-nav a.active {
    color: var(--color-accent);
}


@media (max-width: 768px) {
    .studio-sub-nav {
        top: 60px; /* Smaller header on mobile */
    }

    .studio-sub-nav ul {
        justify-content: flex-start; /* Left align for scroll */
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 var(--spacing-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .studio-sub-nav ul::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
}

body.pillars-header-only #site-header {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

body.pillars-header-only #sticky-header {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-100%) !important;
}
