/* ═══════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════ */
:root {
    --bg: #F8F6F2;
    --card: #FFFFFF;
    --surface: #F0EDE8;
    --t1: #0D0D0D;
    --t2: #605E5A;
    --t3: #B8B5AF;
    --border: rgba(0, 0, 0, 0.07);
    --border-md: rgba(0, 0, 0, 0.13);
    --green: #16A34A;
    /* Font families */
    --fh: 'Syne', sans-serif;
    --fb: 'DM Sans', sans-serif;
    --ff-head: var(--fh);
    --ff-body: var(--fb);
    /* Layout + motion */
    --sw: 36%;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.24, 0.64, 1);
    --t: 0.28s var(--ease);
    --r: 16px;
    --rpill: 100px;
    /* Shadows — warm, directional */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-btn: 0 4px 14px rgba(0, 0, 0, .14);
}


/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--t1);
    overflow: hidden;
    height: 100vh;
    min-width: 315px
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit
}

/* ═══════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════ */
@font-face {
    font-family: 'BrittanySignature';
    src: url('fonts/BrittanySignature.ttf') format('truetype');
    font-display: block;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s var(--ease);
}

#loader.fade {
    opacity: 0;
    pointer-events: none
}

#loader-sig {
    font-family: 'BrittanySignature', cursive;
    font-size: clamp(44px, 5.5vw, 76px);
    color: var(--t1);
    line-height: 1.1;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
    user-select: none;
}

/* The reveal: a white curtain slides from right → left, revealing the text */
#loader-sig::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -3%;
    right: -3%;
    bottom: -15%;
    background: #fff;
    transform-origin: right center;
    transform: scaleX(1);
    transition: transform 1.4s cubic-bezier(.87, 0, .13, 1);
}

#loader-sig.write::after {
    transform: scaleX(0)
}

/* ═══════════════════════════════════════════════
   SKELETON SHIMMER
   Zomato/YouTube-style shape-first loading.
   .work-img shows a warm shimmer until
   its child image fires the load event, at
   which point JS adds .img-loaded.
═══════════════════════════════════════════════ */
/* GPU-composited shimmer: translateX on a narrow highlight strip.
   The parent .work-img has overflow:hidden so it clips naturally.
   No background-position = no non-composited animation warning. */
@keyframes shimmer-slide {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(250%);
    }
}

@font-face {
    font-family: 'BrittanySignature';
    src: url('fonts/BrittanySignature.ttf') format('truetype');
    font-display: swap;
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sw);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 36px 36px 32px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: var(--bg);
}

.sidebar::-webkit-scrollbar {
    display: none
}

.works-panel {
    margin-left: var(--sw);
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background: var(--bg);
}

.works-panel::-webkit-scrollbar {
    width: 2px
}

.works-panel::-webkit-scrollbar-track {
    background: transparent
}

.works-panel::-webkit-scrollbar-thumb {
    background: var(--border-md);
    border-radius: 2px;
    transition: background .2s;
}

.works-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .22);
}

/* ═══════════════════════════════════════════════
   SIDEBAR — BRAND
═══════════════════════════════════════════════ */
.brand-name {
    font-family: var(--fh);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--t1);
    opacity: .85;
}

/* ═══════════════════════════════════════════════
   SIDEBAR — HERO
═══════════════════════════════════════════════ */
.sidebar-hero {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.headline {
    font-family: var(--fh);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--t1);
}

/* Rotating word in headline — inline-block required for transform to apply */
#word-cycle {
    display: inline-block;
    will-change: transform, opacity;
}

/* .para is used in index.html (replaces .subpara) */
.subpara,
.para {
    font-size: 14px;
    line-height: 1.75;
    color: var(--t2);
}

/* ═══════════════════════════════════════════════
   SIDEBAR — CTAs
═══════════════════════════════════════════════ */
.cta-block {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.cta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    background: var(--t1);
    color: #fff;
    font-family: var(--fb);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--rpill);
    transition: background var(--t), transform var(--t), box-shadow var(--t);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

.btn-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, .35);
    flex-shrink: 0;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    color: var(--t1);
    font-family: var(--fb);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--rpill);
    border: 1px solid var(--border-md);
    transition: all var(--t);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .2);
    transform: translateY(-1px)
}

.btn-secondary svg {
    opacity: .65;
    flex-shrink: 0
}

.spot-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--t2)
}

.spot-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, .5)
    }

    50% {
        box-shadow: 0 0 0 5px rgba(22, 163, 74, 0)
    }
}

/* ═══════════════════════════════════════════════
   SIDEBAR — DIVIDER
═══════════════════════════════════════════════ */
.sidebar-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 2px 0
}

/* ═══════════════════════════════════════════════
   SIDEBAR — TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonials-block {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.block-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t3);
}

.testimonial-wrapper {
    position: relative;
    border-radius: var(--r);
    border: 1px solid var(--border);
    background: var(--card);
    overflow: hidden;
    /* min-height must accommodate the tallest card (video thumbnail + info).
       Keeping ALL cards position:absolute prevents layout-height growth. */
    min-height: clamp(260px, 22vw, 320px);
}

.t-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .55s var(--ease);
    pointer-events: none;
}

.t-card.active {
    opacity: 1;
    /* Stay absolute — switching to relative pushes sidebar content down
       and scrolls the logos marquee out of the hidden-scrollbar sidebar. */
    position: absolute;
    pointer-events: auto
}

/* Text card */
.t-card--text {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    min-height: 148px;
}

.t-quote {
    font-size: 18px;
    line-height: 1.68;
    color: var(--t1);
    font-style: normal;
}

.t-quote mark {
    background: none;
    font-style: normal;
    font-weight: 600;
    color: var(--t1)
}

.t-author {
    display: flex;
    align-items: center;
    gap: 9px
}

.t-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;
    color: var(--t2);
}

.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.t-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2
}

.t-role {
    font-size: 12px;
    color: var(--t3);
    margin-top: 2px
}

/* YouTube iframe card */
.t-card--video {
    display: flex;
    flex-direction: column
}

.yt-thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--r) var(--r) 0 0;
    background: #111;
    cursor: pointer;
}

.yt-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .55s var(--ease), opacity .3s;
}

.t-card--video:hover .yt-thumb img {
    transform: scale(1.04);
    opacity: .85;
}

.yt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .15);
    transition: background .3s;
}

.t-card--video:hover .yt-play-overlay {
    background: rgba(0, 0, 0, .35);
}

.yt-play-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
    transition: transform .3s var(--ease);
}

.t-card--video:hover .yt-play-overlay svg {
    transform: scale(1.08);
}


.yt-thumb-info {
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.yt-caption {
    font-size: 12.5px;
    line-height: 1.52;
    color: var(--t1);
    font-style: italic;
}

.yt-info-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.yt-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--t1);
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 10px;
    border-radius: var(--rpill);
    border: 1px solid var(--border);
    transition: all .2s;
}

.yt-watch-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.yt-watch-btn svg {
    opacity: .7
}

/* ═══════════════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════════════ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
}

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

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-inner {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.96) translateY(20px);
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.video-modal.active .modal-inner {
    transform: scale(1) translateY(0);
}

.modal-video-box {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Transparent shield that sits over the iframe.
   Blocks all YouTube UI (Share button, More Videos shelf,
   end-screen cards) from being clickable or opening new tabs.
   The video plays normally underneath — only YouTube's own
   overlays are neutralised. */
.modal-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: default;
    background: transparent;
}


.modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    color: #fff;
    opacity: 0.7;
    transition: opacity .2s;
    padding: 12px;
    margin: -12px;
    /* Increases touch target without altering layout */
}

.modal-close:hover {
    opacity: 1;
}

@media(max-width: 768px) {
    .modal-close {
        top: 12px;
        right: 12px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 48px;
        /* Increased from 36px for adequate touch target */
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
}



/* Dots */
.testimonial-nav {
    display: flex;
    gap: 5px;
    align-items: center
}

.t-dot {
    width: 5px;
    height: 5px;
    border-radius: 3px;
    background: var(--border-md);
    cursor: pointer;
    transition: all .28s var(--ease);
    border: none;
    padding: 0;
}

.t-dot.active {
    width: 18px;
    background: var(--t1)
}

/* ═══════════════════════════════════════════════
   SIDEBAR — LOGOS MARQUEE
═══════════════════════════════════════════════ */
.logos-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden
}

.logos-marquee-outer {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.logos-marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marquee 18s linear infinite;
}

.logos-marquee-track:hover {
    animation-play-state: paused
}

@keyframes marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.logo-item {
    font-family: var(--fh);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--t3);
    white-space: nowrap;
    transition: color .2s;
}

.logo-item:hover {
    color: var(--t2)
}

.logo-item img {
    height: 16px;
    width: auto;
    filter: grayscale(1);
    opacity: .35;
    transition: opacity .2s
}

.logo-item:hover img {
    opacity: .6
}

/* ═══════════════════════════════════════════════
   RIGHT PANEL — TABS
═══════════════════════════════════════════════ */
.content-tabs {
    display: flex;
    gap: 4px;
    padding: 22px 32px 16px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.content-tab {
    font-family: var(--fb);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--rpill);
    color: var(--t2);
    transition: all var(--t);
    border: 1px solid transparent;
    letter-spacing: -.01em;
}

.content-tab:hover {
    color: var(--t1)
}

.content-tab.active {
    background: var(--t1);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.panel-section {
    display: none;
    padding: 24px 32px 80px;
    /* Skip layout/rendering for inactive tabs — saves CPU & improves INP */
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.panel-section.active {
    display: block;
    /* Active panel always renders immediately */
    content-visibility: visible;
    contain-intrinsic-size: none;
}

/* ═══════════════════════════════════════════════
   WORKS — Full-width single column cards
   Padded-frame style: image is inset inside card
   so card background acts as a consistent frame.
═══════════════════════════════════════════════ */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.work-card {
    border-radius: 20px;
    background: linear-gradient(180deg, #EEEBE5 0%, #E8E4DD 100%);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    padding: 14px 14px 0;
    transition: box-shadow var(--t), transform var(--t);
    overflow: visible;
    box-shadow: var(--shadow-card);
}

.work-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.work-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* Image container — rounded top, clips to frame */
.work-img {
    width: 100%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #D8D4CC;
    aspect-ratio: 16/9;
    position: relative;
}

/* Shimmer skeleton — visible until JS adds .img-loaded */
.work-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    /* Narrow highlight strip — clips via parent overflow:hidden */
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.18) 50%,
            transparent 100%);
    animation: shimmer-slide 1.5s ease-in-out infinite;
    border-radius: 10px 10px 0 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Once image loads, shimmer fades out */
.work-img.img-loaded::before {
    opacity: 0;
}

/* Full-page screenshots — show the entire page, never crop */
.work-img[data-ratio="5:6"] {
    aspect-ratio: unset;
    /* let image height drive the container */
    height: auto;
    max-height: none;
    background: #EDEAE4;
    /* matches card bg so no visible padding */
}

.work-img[data-ratio="5:6"] img {
    height: auto;
    /* natural height */
    object-fit: contain;
    /* full image visible, no cropping */
    object-position: top center;
}

/* Image starts invisible; JS reveals it on load */
.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.25s ease;
    display: block;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.work-img.img-loaded img {
    opacity: 1;
}

.work-card:hover .work-img img {
    transform: scale(1.04);
}

/* Placeholder when no image */
.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #DAD6CE 0%, #CCCAC2 100%);
    border-radius: 10px 10px 0 0;
}

.work-placeholder span {
    font-family: var(--fh);
    font-size: 72px;
    font-weight: 800;
    color: rgba(0, 0, 0, .1);
    letter-spacing: -.04em;
    user-select: none;
}

/* ═══════════════════════════════════════════════
   BEFORE & AFTER
═══════════════════════════════════════════════ */
.ba-list {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.ba-card {
    border-radius: var(--r);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t);
}

.ba-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .09)
}

.ba-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 260px
}

.ba-side {
    position: relative;
    overflow: hidden
}

.ba-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease;
    opacity: 0;
}

.ba-img.img-loaded img,
.ba-side .img-loaded img,
.ba-side img.img-loaded {
    opacity: 1;
}

.ba-card:hover .ba-side img {
    transform: scale(1.04)
}

.ba-side--before {
    border-right: 1px solid var(--border)
}

.ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EDEAE2, #E2DDD3);
}

.ba-placeholder span {
    font-family: var(--fh);
    font-size: 18px;
    font-weight: 700;
    color: rgba(0, 0, 0, .1);
}

.ba-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--t1);
    padding: 4px 10px;
    border-radius: var(--rpill);
    border: 1px solid var(--border);
}

.ba-info {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.ba-title {
    font-family: var(--fh);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.02em
}

.ba-sub {
    font-size: 12px;
    color: var(--t3);
    margin-top: 2px
}

.ba-tag {
    font-size: 11.5px;
    color: var(--t2);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--rpill)
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.work-card,
.ba-card {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), box-shadow var(--t)
}

.work-card.visible,
.ba-card.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ═══════════════════════════════════════════════
   MOBILE ≤768px
═══════════════════════════════════════════════ */
@media(max-width:768px) {
    body {
        overflow: auto;
        height: auto
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 28px 20px 32px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        gap: 20px;
    }

    .works-panel {
        margin-left: 0;
        height: auto;
        overflow: visible
    }

    .content-tabs {
        padding: 18px 20px 16px;
        position: static
    }

    .panel-section {
        padding: 22px 20px 48px
    }

    .headline {
        font-size: 26px
    }

    .cta-row {
        flex-direction: column
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center
    }

    .spot-indicator {
        justify-content: center
    }

    /* Works: maintain aspect ratio on mobile */
    .work-img {
        aspect-ratio: 16/9
    }

    .work-img[data-ratio="5:6"] {
        aspect-ratio: 5/6
    }

    /* BA: stack top/bottom on mobile */
    .ba-split {
        grid-template-columns: 1fr;
        height: auto
    }

    .ba-side {
        height: 200px
    }

    .ba-side--before {
        border-right: none;
        border-bottom: 1px solid var(--border)
    }


    #loader-sig {
        font-size: 42px
    }
}

/* ═══════════════════════════════════════════════
   MOBILE FLOATING CTA BAR
   Dark premium pill. Only on mobile (≤768px).
   JS toggles .visible when user scrolls past the
   sidebar/hero. Hidden on desktop with display:none.
═══════════════════════════════════════════════ */

/* ── Always hidden on desktop ───────────────── */
.mobile-cta-bar {
    display: none;
}

/* ── Mobile pill styling ───────────────────── */
@media (max-width: 768px) {

    .mobile-cta-bar {
        /* Layout */
        display: flex;
        align-items: center;
        gap: 0;

        /* Fixed float above bottom edge */
        position: fixed;
        bottom: 22px;
        left: 50%;
        z-index: 600;
        max-width: calc(100vw - 32px);

        /* Dark pill surface */
        background: #111110;
        border-radius: 100px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.32),
            0 1px 4px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        overflow: hidden;
        white-space: nowrap;

        /* ── Off state: slid down + invisible ── */
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(18px);
        transition:
            opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.38s cubic-bezier(0.34, 1.18, 0.64, 1);
        will-change: opacity, transform;
    }

    /* ── On state: fully visible + interactive ── */
    .mobile-cta-bar.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    /* ── HOME ICON BUTTON (left side) ─────────── */
    .mobile-cta-home {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.45);
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-cta-home:active {
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-cta-home svg {
        transition: color 0.2s;
    }

    /* ── THIN SEPARATOR ────────────────────────── */
    .mobile-cta-sep {
        display: block;
        width: 1px;
        height: 20px;
        background: rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    /* ── MAIN CTA BUTTON (right side) ─────────── */
    .mobile-cta-btn {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 0 18px 0 14px;
        height: 46px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: var(--fb);
        font-size: 13.5px;
        font-weight: 500;
        color: #fff;
        letter-spacing: -0.01em;
        white-space: nowrap;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.18s;
    }

    .mobile-cta-btn:active {
        opacity: 0.7;
    }

    /* Avatar inside CTA */
    .mobile-cta-avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid rgba(255, 255, 255, 0.2);
        flex-shrink: 0;
        display: block;
    }

    /* ── RESPONSIVE: 315–380px ──────────────────── */
    @media (max-width: 380px) {
        .mobile-cta-btn {
            font-size: 13px;
            padding: 0 14px 0 12px;
            gap: 8px;
        }

        .mobile-cta-home {
            width: 42px;
        }
    }

    /* ── RESPONSIVE: minimum width floor (315px) ── */
    @media (max-width: 340px) {
        .mobile-cta-btn {
            font-size: 12.5px;
            padding: 0 12px 0 10px;
            gap: 7px;
        }

        .mobile-cta-avatar {
            width: 22px;
            height: 22px;
        }
    }
}