/* Design System and Variables */
:root {
    /* Color Palette */
    --color-bg: #200B20;           /* Dark Eggplant / Deep Purple */
    --color-bg-darker: #150615;    /* Even darker for header/footer */
    --color-text: #E5E2FF;         /* Soft Lavender for primary text */
    --color-text-muted: #A39DBE;   /* Muted Lavender */
    --color-lime: #E2FF9D;         /* Bright Lime Green for primary CTA and highlights */
    --color-slate: #507679;        /* Slate Green / Muted Teal */
    --color-terracotta: #946459;   /* Warm Terracotta for highlight details */
    --color-card-bg: rgba(37, 19, 37, 0.6); /* Translucent box bg for glassmorphism */
    --color-border: rgba(229, 226, 255, 0.1);
    --color-border-hover: rgba(226, 255, 157, 0.3);

    /* Fonts */
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Syne', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Selection style */
::selection {
    background-color: var(--color-lime);
    color: var(--color-bg);
}

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

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Text Gradients & Accents */
.text-gradient {
    background: linear-gradient(135deg, var(--color-lime) 30%, var(--color-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Header Styles */
.section-subtitle {
    font-family: var(--font-accent);
    color: var(--color-lime);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.section-desc-center {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* Custom Interactive Cursor Glow Background */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 255, 157, 0.08) 0%, rgba(148, 100, 89, 0.03) 40%, rgba(32, 11, 32, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-lime);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: #fff;
    box-shadow: 0 0 25px rgba(226, 255, 157, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-secondary:hover {
    background-color: var(--color-lime);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-login-btn {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid rgba(229, 226, 255, 0.16);
    border-radius: 999px;
    background: rgba(229, 226, 255, 0.06);
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.nav-login-btn i {
    font-size: 1rem;
}

.nav-login-btn:hover {
    border-color: rgba(226, 255, 157, 0.55);
    background: rgba(226, 255, 157, 0.1);
    color: var(--color-lime);
    transform: translateY(-2px);
}

.site-auth-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border: 1px solid rgba(226, 255, 157, 0.32);
    border-radius: 999px;
    background: rgba(226, 255, 157, 0.08);
    color: var(--color-text);
}

.site-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--color-lime);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
}

.site-user-meta {
    display: grid;
    gap: 0.05rem;
    line-height: 1.1;
}

.site-user-meta strong {
    max-width: 118px;
    overflow: hidden;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-user-meta em {
    color: var(--color-lime);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 800;
}

.site-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(229, 226, 255, 0.14);
    border-radius: 999px;
    background: rgba(229, 226, 255, 0.06);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.site-logout-btn:hover {
    border-color: rgba(226, 255, 157, 0.42);
    color: var(--color-lime);
    transform: translateY(-2px);
}

/* Header / Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    background-color: rgba(21, 6, 21, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(21, 6, 21, 0.85);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo */
.logo-link {
    display: block;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-link:hover .brand-logo {
    transform: translateY(-2px) scale(1.03);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-lime);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-lime);
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
    transform-origin: left center;
}

/* Hero Section */
.hero-section {
    min-height: 0;
    display: block;
    position: relative;
    padding: 96px 0 56px;
    z-index: 1;
}

@supports (min-height: 100dvh) {
    .hero-section {
        min-height: 0;
    }
}

.hero-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.hero-bird-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-bird-mark {
    position: absolute;
    top: 15%;
    left: 5%;
    width: clamp(170px, 28vw, 390px);
    opacity: 0.16;
    filter: drop-shadow(0 22px 48px rgba(226, 255, 157, 0.22));
    transform-origin: 50% 50%;
    animation: birdFlight 12s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--color-lime);
}

.shape-2 {
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background-color: var(--color-terracotta);
}

.hero-container {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: rgba(229, 226, 255, 0.03);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-lime);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-lime);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: clamp(18px, 4svh, 30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-text-muted);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-lime);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite ease-in-out;
}

.phone-swipe-icon {
    position: relative;
    display: none;
    width: 38px;
    height: 48px;
}

.phone-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(229, 226, 255, 0.58);
    border-radius: 14px;
    background: rgba(229, 226, 255, 0.035);
    box-shadow: inset 0 0 18px rgba(226, 255, 157, 0.06);
}

.phone-notch {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: rgba(229, 226, 255, 0.46);
    transform: translateX(-50%);
}

.swipe-trail {
    position: absolute;
    left: 50%;
    top: 14px;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-lime), transparent);
    transform: translateX(-50%);
    animation: phoneSwipeTrail 1.7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.swipe-hand {
    position: absolute;
    left: 50%;
    bottom: -3px;
    color: var(--color-lime);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 10px rgba(226, 255, 157, 0.32));
    transform: translateX(-50%);
    animation: phoneSwipeHand 1.7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.lead-text {
    font-size: 1.35rem;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-desc p {
    margin-bottom: 1.25rem;
}

/* Services / Bento Grid */
.services-section {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 2rem;
    margin-top: 4rem;
}

.bento-grid .bento-box:nth-child(6),
.bento-grid .bento-box:nth-child(7) {
    min-height: 230px;
}

.bento-box {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    z-index: 2;
}

/* Glassmorphism Border Light Effect on Bento Hover */
.bento-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(229, 226, 255, 0.15) 0%, rgba(226, 255, 157, 0) 50%, rgba(148, 100, 89, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.bento-box:hover::before {
    background: linear-gradient(135deg, var(--color-lime) 0%, rgba(148, 100, 89, 0.4) 50%, rgba(229, 226, 255, 0.05) 100%);
}

.bento-box:hover {
    transform: translateY(-5px);
    background-color: rgba(48, 25, 48, 0.7);
    border-color: rgba(226, 255, 157, 0.2);
    box-shadow: 0 15px 35px rgba(21, 6, 21, 0.4);
}

.box-large,
.box-medium,
.box-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-box:nth-child(2) {
    order: 3;
}

.bento-box:nth-child(3) {
    order: 2;
}

.bento-icon {
    font-size: 2.25rem;
    color: var(--color-lime);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.bento-content h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.bento-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.bento-tag {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--font-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-slate);
    padding: 0.25rem 0.75rem;
    background-color: rgba(80, 118, 121, 0.1);
    border-radius: 12px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.portfolio-filters {
    display: flex;
    gap: 0.75rem;
    background-color: rgba(229, 226, 255, 0.03);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--color-bg);
    background-color: var(--color-lime);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    transform-origin: center center;
}

.projects-grid.portfolio-grid-leaving .project-card {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition:
        opacity 0.22s cubic-bezier(0.7, 0, 0.2, 1),
        transform 0.22s cubic-bezier(0.7, 0, 0.2, 1);
    transition-delay: calc(var(--reveal-index, 0) * 24ms);
}

.projects-grid.portfolio-grid-entering .project-card {
    animation: portfolioCardReveal 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--reveal-index, 0) * 48ms);
}

.project-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-lime);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--color-bg-darker);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img-placeholder,
.case-study-image-placeholder {
    display: grid;
    place-items: center;
    gap: 0.7rem;
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 1px dashed rgba(226, 255, 157, 0.28);
    background:
        radial-gradient(circle at 50% 28%, rgba(226, 255, 157, 0.14), transparent 42%),
        rgba(242, 238, 243, 0.035);
    color: rgba(242, 238, 243, 0.68);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.project-img-placeholder i,
.case-study-image-placeholder i {
    color: var(--color-lime);
    font-size: 1.8rem;
}

.case-study-image-placeholder {
    min-height: 100%;
    border: 0;
}

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

.project-card-clickable {
    cursor: pointer;
    position: relative;
}

.project-card-clickable .project-details {
    position: relative;
    padding-right: 4.5rem;
}

.project-card-clickable:focus-visible {
    outline: 2px solid var(--color-lime);
    outline-offset: 6px;
}

.project-card-expanding {
    animation: projectExpandPulse 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-open-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--color-bg-darker);
    background: var(--color-lime);
    box-shadow: 0 0 0 1px rgba(222, 255, 135, 0.18), 0 0 22px rgba(222, 255, 135, 0.28);
    animation: projectOpenCuePulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.project-open-cue i {
    font-size: 0.8rem;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-open-cue::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(222, 255, 135, 0.3);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.82);
    animation: projectOpenCueRing 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.project-card-clickable:hover .project-open-cue i {
    transform: translateX(2px);
}

@keyframes projectOpenCuePulse {
    0%,
    100% {
        transform: scale(1);
    }
    48% {
        transform: scale(1.08);
    }
}

@keyframes projectOpenCueRing {
    0%,
    38% {
        opacity: 0;
        transform: scale(0.82);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

@keyframes projectExpandPulse {
    0% {
        transform: translateY(-3px) scale(1);
    }
    55% {
        transform: translateY(-8px) scale(1.012);
    }
    100% {
        transform: translateY(-3px) scale(1);
    }
}

@keyframes portfolioCardReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: clamp(2rem, 4vw, 3.4rem);
}

.portfolio-pagination[hidden] {
    display: none;
}

.portfolio-page-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem;
    border: 1px solid rgba(242, 238, 243, 0.1);
    border-radius: 999px;
    background: rgba(229, 226, 255, 0.04);
}

.portfolio-page-dot,
.portfolio-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(242, 238, 243, 0.12);
    border-radius: 999px;
    background: rgba(242, 238, 243, 0.045);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.portfolio-page-dot:hover,
.portfolio-page-arrow:hover:not(:disabled),
.portfolio-page-dot.is-active {
    transform: translateY(-2px);
    border-color: rgba(226, 255, 157, 0.72);
    background: var(--color-lime);
    color: var(--color-bg);
}

.portfolio-page-arrow {
    width: 48px;
    height: 48px;
    box-shadow: 0 0 24px rgba(226, 255, 157, 0.08);
}

.portfolio-page-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.project-details {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-details h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-tag {
    font-family: var(--font-accent);
    color: var(--color-lime);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Fullscreen Project Case Study */
body.case-study-open {
    overflow: hidden;
}

body.case-study-preview-mode .main-header,
body.case-study-preview-mode main,
body.case-study-preview-mode footer,
body.case-study-preview-mode .custom-cursor-glow,
body.case-study-preview-mode .mobile-menu-overlay {
    visibility: hidden;
}

body.case-study-preview-mode .case-study-overlay {
    background:
        radial-gradient(circle at 20% 8%, rgba(226, 255, 157, 0.08), transparent 28%),
        linear-gradient(180deg, #170617, #241023);
    backdrop-filter: none;
}

body.case-study-preview-mode .case-study-close {
    display: none;
}

.case-study-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(0.8rem, 1.8vw, 1.6rem);
    color: var(--color-text);
    background:
        radial-gradient(circle at 18% 18%, rgba(92, 49, 88, 0.28), transparent 36%),
        radial-gradient(circle at 84% 22%, rgba(35, 72, 153, 0.22), transparent 30%),
        rgba(10, 0, 13, 0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.982);
    transition:
        opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.42s;
}

.case-study-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.case-study-shell {
    position: relative;
    width: min(1440px, 100%);
    max-width: 100%;
    min-height: calc(100vh - clamp(1.6rem, 3.6vw, 3.2rem));
    margin: 0 auto;
    padding: clamp(1rem, 2.3vw, 2.2rem);
    border: 1px solid rgba(222, 255, 135, 0.28);
    border-radius: clamp(24px, 3vw, 38px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(25, 4, 27, 0.94);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.case-study-shell,
.case-study-shell * {
    box-sizing: border-box;
}

.case-study-hero,
.case-study-copy,
.case-study-overview,
.case-study-overview article,
.case-study-split,
.case-study-sticky,
.case-study-image-stack,
.case-study-process,
.case-study-brand-system,
.case-study-gallery,
.case-study-pdf,
.case-study-final,
.case-study-system-grid article,
.case-study-timeline article {
    min-width: 0;
    max-width: 100%;
}

.case-study-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 22% 20%, rgba(222, 255, 135, 0.08) 0 1px, transparent 1px),
        linear-gradient(115deg, transparent 0 45%, rgba(222, 255, 135, 0.035) 45% 46%, transparent 46% 100%);
    background-size: 160px 160px, 100% 100%;
    opacity: 0.55;
    pointer-events: none;
}

.case-study-topbar,
.case-study-hero,
.case-study-overview,
.case-study-split,
.case-study-process,
.case-study-brand-system,
.case-study-gallery,
.case-study-pdf,
.case-study-final {
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

.case-study-topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0 1.2rem;
    background: linear-gradient(180deg, rgba(25, 4, 27, 0.98) 0%, rgba(25, 4, 27, 0) 100%);
}

.case-study-brand,
.case-study-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-accent);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(242, 238, 243, 0.82);
}

.case-study-mark {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 64% 32%, var(--color-lime) 0 18%, transparent 19%),
        linear-gradient(135deg, var(--color-lime), rgba(222, 255, 135, 0.22));
    box-shadow: 0 0 24px rgba(222, 255, 135, 0.32);
}

.case-study-close {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(242, 238, 243, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.case-study-close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.case-study-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.case-study-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.case-study-close:hover {
    border-color: var(--color-lime);
    background: rgba(222, 255, 135, 0.12);
    transform: rotate(6deg);
}

.case-study-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5.5rem);
    min-height: min(720px, calc(100vh - 150px));
    padding: clamp(2.5rem, 7vw, 7rem) clamp(0.4rem, 2vw, 2rem) clamp(3rem, 7vw, 6rem);
}

.case-study-copy {
    max-width: 560px;
}

.case-study-eyebrow,
.case-study-section-count,
.case-study-section-heading p {
    display: inline-flex;
    width: max-content;
    padding: 0.44rem 0.72rem;
    border: 1px solid rgba(222, 255, 135, 0.26);
    border-radius: 999px;
    color: var(--color-lime);
    background: rgba(222, 255, 135, 0.055);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-study-copy h2 {
    margin: 1.2rem 0 1rem;
    max-width: 10ch;
    color: var(--color-text);
    font-size: clamp(3rem, 6.4vw, 7.6rem);
    line-height: 0.86;
    letter-spacing: -0.07em;
}

.case-study-copy > p:not(.case-study-eyebrow) {
    max-width: 48ch;
    color: var(--color-text-muted);
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    line-height: 1.72;
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.case-study-tags span {
    padding: 0.48rem 0.8rem;
    border: 1px solid rgba(242, 238, 243, 0.2);
    border-radius: 999px;
    color: rgba(242, 238, 243, 0.84);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 800;
}

.case-study-hero-visual,
.case-study-image-stack figure,
.case-study-gallery figure,
.case-study-final figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(242, 238, 243, 0.12);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.case-study-hero-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: clamp(24px, 3.4vw, 42px);
    transform: rotate(1.8deg);
}

.case-study-hero-visual::before,
.case-study-final figure::before {
    content: "";
    position: absolute;
    inset: -18%;
    background: radial-gradient(circle at 50% 55%, rgba(28, 95, 220, 0.35), transparent 48%);
    pointer-events: none;
}

.case-study-hero-visual img,
.case-study-image-stack img,
.case-study-gallery img,
.case-study-final img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-study-hero-visual img {
    transform: scale(1.04);
}

.case-study-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 clamp(0.2rem, 2vw, 2rem) clamp(4rem, 8vw, 8rem);
}

.case-study-overview article {
    min-height: 210px;
    padding: clamp(1.25rem, 2vw, 2rem);
    border: 1px solid rgba(242, 238, 243, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.035);
}

.case-study-overview article > span {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 2rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, var(--color-lime) 0 22%, transparent 23%),
        rgba(222, 255, 135, 0.1);
}

.case-study-overview h3,
.case-study-sticky h3,
.case-study-section-heading h3,
.case-study-final h3 {
    color: var(--color-text);
    font-size: clamp(1.7rem, 3vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.case-study-overview p,
.case-study-sticky p,
.case-study-final p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.case-study-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2rem, 5vw, 6rem);
    padding: clamp(3rem, 8vw, 7rem) clamp(0.4rem, 2vw, 2rem);
}

.case-study-sticky {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.case-study-sticky h3 {
    margin: 1.25rem 0 1rem;
}

.case-study-image-stack {
    display: grid;
    gap: 1rem;
}

.case-study-image-stack figure:first-child {
    aspect-ratio: 16 / 9;
    border-radius: 32px;
}

.case-study-process,
.case-study-brand-system,
.case-study-gallery,
.case-study-pdf,
.case-study-final {
    padding: clamp(3rem, 8vw, 7rem) clamp(0.4rem, 2vw, 2rem);
    border-top: 1px solid rgba(242, 238, 243, 0.09);
}

.case-study-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.case-study-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.case-study-timeline article {
    position: relative;
    min-height: 160px;
    padding: 1rem;
    border: 1px solid rgba(242, 238, 243, 0.1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.case-study-timeline article::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 58px;
    height: 1px;
    background: rgba(222, 255, 135, 0.2);
}

.case-study-timeline span {
    color: var(--color-lime);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 900;
}

.case-study-timeline strong {
    display: block;
    margin-top: 4.2rem;
    color: var(--color-text);
}

.case-study-process-image {
    margin-top: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid rgba(242, 238, 243, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.035);
}

.case-study-process-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.case-study-system-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.case-study-system-grid article {
    min-height: 220px;
    padding: 1.25rem;
    border: 1px solid rgba(242, 238, 243, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.035);
}

.case-study-system-visual {
    grid-column: 1 / -1;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.case-study-system-visual img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.case-study-system-grid span {
    display: block;
    margin-bottom: 2rem;
    color: var(--color-lime);
    font-family: var(--font-accent);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-study-system-grid strong {
    color: var(--color-text);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.25;
}

.case-study-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.case-study-palette i {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
}

.case-study-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 34vw);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-lime) rgba(255, 255, 255, 0.08);
    scroll-snap-type: x proximity;
}

.case-study-gallery figure {
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    scroll-snap-align: start;
}

.case-study-gallery-open {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: zoom-in;
}

.case-study-gallery-open span {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.58rem 0.75rem;
    border: 1px solid rgba(226, 255, 157, 0.28);
    border-radius: 999px;
    background: rgba(21, 6, 21, 0.72);
    color: var(--color-lime);
    font-family: var(--font-accent);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.case-study-gallery-open:hover span,
.case-study-gallery-open:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.case-study-gallery figure:nth-child(even) .case-study-gallery-open img {
    transform: scale(1.14);
}

.case-study-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(8, 0, 10, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.case-study-image-lightbox.is-open {
    opacity: 1;
}

.case-study-image-lightbox figure {
    width: min(1180px, 100%);
    max-height: min(82vh, 820px);
    margin: 0;
    border: 1px solid rgba(226, 255, 157, 0.22);
    border-radius: clamp(20px, 3vw, 34px);
    overflow: hidden;
    background: rgba(229, 226, 255, 0.04);
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.62);
}

.case-study-image-lightbox img {
    display: block;
    width: 100%;
    max-height: min(82vh, 820px);
    object-fit: contain;
}

.case-study-image-close {
    position: fixed;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(229, 226, 255, 0.24);
    border-radius: 999px;
    background: rgba(21, 6, 21, 0.72);
    color: var(--color-text);
    cursor: pointer;
}

.case-study-pdf {
    display: grid;
    gap: 1.25rem;
}

.brochure-flip {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.7fr);
    gap: 1rem;
    perspective: 1200px;
}

.brochure-page {
    min-height: clamp(280px, 36vw, 520px);
    border: 1px solid rgba(242, 238, 243, 0.12);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.brochure-page-cover {
    transform-origin: left center;
    animation: brochurePageBreathe 5.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.brochure-page-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brochure-page-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 2.4rem);
}

.brochure-page-info span {
    color: var(--color-lime);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brochure-page-info strong {
    color: var(--color-text);
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.brochure-page-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: max-content;
    max-width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    color: var(--color-bg-darker);
    background: var(--color-lime);
    font-family: var(--font-accent);
    font-weight: 900;
}

.case-study-pdf-frame {
    width: 100%;
    height: min(72vh, 760px);
    border: 1px solid rgba(242, 238, 243, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.035);
}

@keyframes brochurePageBreathe {
    0%,
    100% {
        transform: rotateY(0deg);
    }
    46% {
        transform: rotateY(-7deg);
    }
}

.case-study-final {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
}

.case-study-final h3 {
    margin: 1.25rem 0 1rem;
}

.case-study-website-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: max-content;
    max-width: 100%;
    margin-top: 1.3rem;
    padding: 0.88rem 1.15rem;
    border-radius: 999px;
    color: var(--color-bg-darker);
    background: var(--color-lime);
    font-family: var(--font-accent);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 0 34px rgba(226, 255, 157, 0.18);
}

.case-study-final figure {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 34px;
}

/* Pricing Section */
.pricing-section {
    position: relative;
    z-index: 1;
    padding: var(--space-section, 8rem) 0;
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}

.pricing-section::before,
.pricing-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.pricing-section::before {
    width: 360px;
    height: 360px;
    left: -120px;
    top: 18%;
    background: radial-gradient(circle, rgba(222, 255, 135, 0.12), transparent 68%);
}

.pricing-section::after {
    width: 460px;
    height: 460px;
    right: -180px;
    bottom: 4%;
    background: radial-gradient(circle, rgba(80, 118, 121, 0.18), transparent 70%);
}

.pricing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
    margin-top: clamp(2.25rem, 5vw, 4.2rem);
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: clamp(1.35rem, 2.2vw, 2rem);
    border: 1px solid rgba(229, 226, 255, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        rgba(24, 12, 24, 0.78);
    transition:
        transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.32s ease,
        border-color 0.32s ease,
        background 0.32s ease;
    cursor: pointer;
    isolation: isolate;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, rgba(222, 255, 135, 0.13), transparent 42%);
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
    z-index: -1;
}

.pricing-grid.has-selected .pricing-card:not(.is-selected) {
    transform: scale(0.965);
    opacity: 0.64;
}

.pricing-card.is-selected {
    transform: translateY(-16px) scale(1.035);
    border-color: rgba(222, 255, 135, 0.72);
    background:
        linear-gradient(145deg, rgba(222, 255, 135, 0.095), rgba(255, 255, 255, 0.025)),
        rgba(26, 17, 25, 0.94);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(222, 255, 135, 0.13);
}

.pricing-card.is-selected::before {
    opacity: 1;
}

.pricing-card:hover,
.pricing-card:focus-visible {
    opacity: 1 !important;
    border-color: var(--color-lime);
}

.pricing-card:focus-visible {
    outline: 2px solid var(--color-lime);
    outline-offset: 6px;
}

.pricing-badge {
    display: none;
}

.pricing-card-top {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(229, 226, 255, 0.1);
}

.pricing-tier {
    display: block;
    color: var(--color-lime);
    font-family: var(--font-accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pricing-symbol {
    display: block;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(3.1rem, 6vw, 5.25rem);
    line-height: 0.85;
    letter-spacing: -0.08em;
    margin-bottom: 1.15rem;
}

.pricing-card-top p {
    max-width: 34ch;
    font-size: 0.96rem;
    line-height: 1.62;
}

.pricing-features {
    display: grid;
    gap: 0.86rem;
    list-style: none;
    margin: 1.55rem 0 1.8rem;
}

.pricing-features li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.65rem;
    align-items: start;
    color: rgba(229, 226, 255, 0.84);
    font-size: 0.93rem;
    line-height: 1.42;
}

.pricing-features i {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: var(--color-lime);
    background: rgba(222, 255, 135, 0.08);
    font-size: 0.66rem;
}

.pricing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin-top: auto;
    padding: 0.92rem 1.1rem;
    border: 1px solid rgba(222, 255, 135, 0.45);
    border-radius: 999px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.035);
    font-family: var(--font-accent);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-card.is-selected .pricing-cta,
.pricing-cta:hover {
    color: var(--color-bg-darker);
    background: var(--color-lime);
}

.pricing-cta i {
    font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
    .project-card-expanding {
        animation: none;
    }

    .case-study-overlay {
        transition: none;
    }
}

@media (max-width: 980px) {
    .case-study-hero,
    .case-study-split,
    .case-study-final {
        grid-template-columns: 1fr;
    }

    .case-study-hero {
        min-height: auto;
    }

    .case-study-copy h2 {
        max-width: 11ch;
    }

    .case-study-overview,
    .case-study-system-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-study-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-study-sticky {
        position: relative;
        top: auto;
    }
}

@media (max-width: 680px) {
    .case-study-overlay {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 0;
        background: rgba(10, 0, 13, 0.96);
    }

    .case-study-shell {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        min-height: 100svh;
        border-width: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .case-study-topbar {
        grid-template-columns: 1fr auto;
    }

    .case-study-progress {
        display: none;
    }

    .case-study-brand {
        font-size: 0.64rem;
        min-width: 0;
        max-width: calc(100vw - 76px);
        overflow-wrap: anywhere;
    }

    .case-study-hero {
        padding: 2.4rem 0.2rem 3rem;
        gap: 1.8rem;
    }

    .case-study-copy {
        text-align: center;
        margin: 0 auto;
    }

    .case-study-eyebrow,
    .case-study-tags {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .case-study-eyebrow,
    .case-study-section-count,
    .case-study-section-heading p {
        width: auto;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .case-study-tags span,
    .case-study-overview p,
    .case-study-sticky p,
    .case-study-final p,
    .case-study-system-grid strong,
    .case-study-timeline strong {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .case-study-copy h2 {
        max-width: 100%;
        font-size: clamp(2.7rem, 14.5vw, 4.25rem);
        overflow-wrap: anywhere;
    }

    .case-study-copy > p:not(.case-study-eyebrow) {
        margin-left: auto;
        margin-right: auto;
    }

    .case-study-hero-visual {
        transform: none;
        border-radius: 24px;
    }

    .case-study-overview,
    .case-study-system-grid,
    .case-study-timeline,
    .case-study-final {
        grid-template-columns: 1fr;
    }

    .case-study-section-heading {
        display: block;
        text-align: center;
    }

    .case-study-section-heading p,
    .case-study-section-count {
        margin: 0 auto 1rem;
    }

    .case-study-overview {
        margin-left: 0;
        margin-right: 0;
    }

    .case-study-split,
    .case-study-process,
    .case-study-brand-system,
    .case-study-gallery,
    .case-study-pdf,
    .case-study-final {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .case-study-sticky {
        text-align: center;
    }

    .case-study-image-stack figure:last-child {
        width: 100%;
    }

    .case-study-gallery-track {
        width: 100%;
        max-width: 100%;
        grid-auto-columns: minmax(0, 82%);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .case-study-gallery figure,
    .case-study-hero-visual,
    .case-study-image-stack figure,
    .case-study-final figure {
        max-width: 100%;
    }

    .brochure-flip {
        grid-template-columns: 1fr;
    }

    .brochure-page {
        min-height: 260px;
    }

    .brochure-page-info {
        text-align: center;
        align-items: center;
    }

    .case-study-pdf-frame {
        height: 68vh;
        border-radius: 22px;
    }

    .case-study-gallery-open span {
        opacity: 1;
        transform: none;
        right: 0.65rem;
        bottom: 0.65rem;
        font-size: 0.62rem;
    }

    .case-study-image-lightbox {
        padding: 1rem;
    }

    .case-study-image-lightbox figure,
    .case-study-image-lightbox img {
        width: 100%;
        max-height: 76vh;
    }

    .case-study-image-lightbox figure {
        border-radius: 20px;
    }

    .pricing-section {
        padding: 5.5rem 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2.5rem;
    }

    .pricing-card,
    .pricing-card.is-selected,
    .pricing-grid.has-selected .pricing-card:not(.is-selected) {
        min-height: auto;
        transform: none;
        opacity: 1;
    }

    .pricing-card {
        border-radius: 24px;
        padding: 1.25rem;
    }

    .pricing-card.is-selected {
        border-color: rgba(222, 255, 135, 0.72);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    }

    .pricing-symbol {
        font-size: clamp(3rem, 20vw, 4.8rem);
    }

    .pricing-features li {
        font-size: 0.9rem;
    }
}

/* Team Section */
.team-section {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

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

.team-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(226, 255, 157, 0.25);
}

.team-img-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-bg-darker);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 11, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-socials {
    display: flex;
    gap: 1rem;
}

.team-socials a {
    width: 44px;
    height: 44px;
    background-color: var(--color-lime);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.team-socials a:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.team-role {
    font-family: var(--font-accent);
    color: var(--color-lime);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Book Strategy Call (Calendly) Section */
.book-call-section {
    padding: 8rem 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.call-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.call-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.call-header p {
    font-size: 1.05rem;
}

.calendly-widget-wrapper {
    background-color: rgba(21, 6, 21, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(229, 226, 255, 0.05);
    overflow: hidden;
}

/* Footer styling */
.main-footer {
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 0 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-wrapper {
    margin-bottom: 1.25rem;
}

.footer-logo {
    width: 150px;
    height: 150px;
}

.footer-desc {
    font-size: 0.95rem;
    max-width: 380px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-lime);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--color-lime);
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.footer-social-icons a:hover {
    border-color: var(--color-lime);
    color: var(--color-lime);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(226, 255, 157, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(226, 255, 157, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(226, 255, 157, 0);
    }
}

@keyframes scrollMouse {
    0% {
        opacity: 0;
        top: 6px;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        top: 18px;
    }
    100% {
        opacity: 0;
        top: 6px;
    }
}

@keyframes phoneSwipeTrail {
    0% {
        height: 4px;
        opacity: 0;
        transform: translate(-50%, 0);
    }
    25% {
        opacity: 1;
    }
    78% {
        height: 22px;
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    100% {
        height: 4px;
        opacity: 0;
        transform: translate(-50%, 0);
    }
}

@keyframes phoneSwipeHand {
    0% {
        opacity: 0;
        transform: translate(-50%, -18px) rotate(-12deg);
    }
    24% {
        opacity: 1;
    }
    76% {
        opacity: 1;
        transform: translate(-50%, 3px) rotate(-12deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 8px) rotate(-12deg);
    }
}

@keyframes birdFlight {
    0% {
        transform: translate3d(-8vw, 12px, 0) scale(0.64) rotate(-6deg);
        opacity: 0;
    }
    10% {
        opacity: 0.13;
    }
    24% {
        transform: translate3d(15vw, -34px, 0) scale(0.88) rotate(5deg);
        opacity: 0.2;
    }
    45% {
        transform: translate3d(55vw, 30px, 0) scale(1.12) rotate(-4deg);
        opacity: 0.15;
    }
    62% {
        transform: translate3d(70vw, -48px, 0) scale(0.74) rotate(7deg);
        opacity: 0.1;
    }
    82% {
        transform: translate3d(32vw, 40px, 0) scale(1.02) rotate(-2deg);
        opacity: 0.18;
    }
    100% {
        transform: translate3d(-8vw, 12px, 0) scale(0.64) rotate(-6deg);
        opacity: 0;
    }
}

/* Fade In Classes for JS/Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal sections */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */

/* --- Tablet landscape & small desktops --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem;
    }
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* --- Tablet portrait & large phones --- */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.25rem;
    }

    /* Navigation */
    .nav-menu, .nav-cta {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .header-container {
        padding: 0 1.25rem;
    }

    /* Hero */
    .hero-section {
        min-height: 0;
        padding: 82px 0 56px;
    }
    .hero-bird-stage {
        inset: 0;
    }
    .hero-bird-mark {
        width: clamp(145px, 44vw, 270px);
        opacity: 0.12;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .mouse-icon {
        display: none;
    }
    .phone-swipe-icon {
        display: block;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.85rem;
    }
    .section-desc-center {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* About */
    .about-section {
        padding: 5rem 0;
    }
    .lead-text {
        font-size: 1.15rem;
    }

    /* Bento Grid */
    .services-section {
        padding: 5rem 0;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
        margin-top: 2.5rem;
    }
    .box-large, .box-medium, .box-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-box {
        padding: 1.75rem;
        border-radius: 20px;
    }
    .bento-icon {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }
    .bento-content h3 {
        font-size: 1.15rem;
    }
    .bento-content p {
        font-size: 0.9rem;
    }

    /* Portfolio */
    .portfolio-section {
        padding: 5rem 0;
    }
    .portfolio-section.scroll-reveal {
        transform: translateY(12px);
        transition: opacity 0.22s ease-out, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin-bottom: 2.5rem;
    }
    .portfolio-filters {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.4rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0;
        padding: 0.5rem 1.15rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-details {
        padding: 1.25rem;
    }
    .project-details h3 {
        font-size: 1.1rem;
    }

    /* Team */
    .team-section {
        padding: 5rem 0;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    .team-card {
        border-radius: 20px;
    }
    .team-info {
        padding: 1.25rem;
    }
    .team-info h3 {
        font-size: 1.1rem;
    }

    /* Book Strategy Call */
    .book-call-section {
        padding: 5rem 0;
    }
    .call-card {
        padding: 2rem 1.25rem;
        border-radius: 24px;
    }
    .call-header {
        margin-bottom: 2rem;
    }
    .call-header p {
        font-size: 0.95rem;
    }
    .calendly-inline-widget {
        min-width: 100% !important;
        height: 600px !important;
    }

    /* Footer */
    .main-footer {
        padding: 3.5rem 0 0 0;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* --- Small phones --- */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .header-container {
        padding: 0 1rem;
    }
    .hero-section {
        padding: 74px 0 48px;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section-subtitle {
        font-size: 0.75rem;
    }
    .bento-box {
        padding: 1.5rem;
        border-radius: 16px;
    }
    .bento-content h3 {
        font-size: 1.05rem;
    }
    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.65rem;
    }
    .call-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    .calendly-inline-widget {
        height: 550px !important;
    }
    .team-socials a {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .footer-social-icons a {
        width: 36px;
        height: 36px;
    }
    .mobile-link {
        font-size: 1.25rem;
    }
    .mobile-nav li {
        margin-bottom: 1.5rem;
    }
    .hero-scroll-indicator {
        bottom: max(12px, env(safe-area-inset-bottom));
    }
    .mouse-icon {
        display: none;
    }
    .phone-swipe-icon {
        display: block;
    }
    .scroll-text {
        font-size: 0.65rem;
    }
    .brand-logo {
        width: 66px;
        height: 66px;
    }
    .logo-text {
        font-size: 0.7rem;
    }
}

/* Mobile Nav Toggle states */
.mobile-nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, -2px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-darker);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav li {
    margin-bottom: 2rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
}

.mobile-link.btn-primary {
    color: var(--color-bg);
}

.mobile-link:hover {
    color: var(--color-lime);
}

.mobile-link.btn-primary:hover {
    color: var(--color-bg);
}

.mobile-auth-item {
    display: grid;
    gap: 0.85rem;
    width: 100%;
}

.mobile-user-link {
    color: var(--color-lime) !important;
}

.mobile-logout-btn {
    width: min(280px, 100%);
    margin: 0 auto;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(229, 226, 255, 0.14);
    border-radius: 18px;
    background: rgba(229, 226, 255, 0.06);
    color: var(--color-text-muted);
}

/* Scroll Lock when Mobile Menu is Active */
body.lock-scroll {
    overflow: hidden;
}

/* Editorial studio redesign layer */
:root {
    --color-bg: #1d0a1c;
    --color-bg-darker: #120512;
    --color-surface: #281426;
    --color-surface-strong: #32192f;
    --color-text: #f2eef3;
    --color-text-muted: #bfb4c3;
    --color-lime: #defc8f;
    --color-slate: #7fa2a0;
    --color-terracotta: #bc7667;
    --color-ink-line: rgba(242, 238, 243, 0.12);
    --color-card-bg: rgba(40, 20, 38, 0.74);
    --color-border: rgba(242, 238, 243, 0.14);
    --color-border-hover: rgba(222, 252, 143, 0.52);
    --radius-card: 8px;
    --radius-soft: 12px;
    --space-section: 7rem;
    --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.18s ease-out;
}

html {
    scroll-padding-top: 104px;
}

body {
    background: var(--color-bg);
}

body::before {
    display: none;
}

body::after {
    display: none;
}

main,
.main-header,
.main-footer,
.mobile-menu-overlay {
    position: relative;
}

.cursor-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226, 255, 157, 0.08) 0%, rgba(148, 100, 89, 0.03) 40%, rgba(32, 11, 32, 0) 70%);
    border-radius: 50%;
    mix-blend-mode: screen;
}

.shape {
    display: none;
}

.container,
.header-container {
    max-width: 1180px;
}

h1,
h2,
h3,
h4,
.btn,
.nav-link,
.filter-btn,
.mobile-link {
    letter-spacing: 0;
}

p {
    max-width: 72ch;
}

.text-gradient {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--color-lime);
}

.main-header {
    padding: 0.9rem 0;
    background: rgba(18, 5, 18, 0.78);
    border-bottom: 1px solid var(--color-ink-line);
}

.main-header.scrolled {
    padding: 0.55rem 0;
    background: rgba(18, 5, 18, 0.94);
}

.brand-logo {
    width: 70px;
    height: 70px;
}

.nav-menu ul {
    gap: 2.1rem;
}

.nav-link,
.footer-links a {
    color: rgba(242, 238, 243, 0.72);
}

.nav-link::after {
    height: 1px;
}

.btn {
    min-height: 46px;
    padding: 0.82rem 1.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    box-shadow: none;
}

.btn-primary,
.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-lime);
    color: var(--color-bg-darker);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    box-shadow: none;
}

.btn-secondary {
    background-color: rgba(242, 238, 243, 0.96);
    color: var(--color-bg-darker);
}

.btn-outline {
    border-color: rgba(242, 238, 243, 0.34);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: rgba(242, 238, 243, 0.96);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--color-lime);
    outline-offset: 4px;
}

.hero-section {
    display: block;
    min-height: 0;
    min-height: unset;
    margin-top: -1.15rem;
    padding: 0 0 4rem;
}

.hero-container {
    max-width: 1040px;
    text-align: left;
    align-items: flex-start;
}

.hero-bird-stage {
    inset: 0;
    opacity: 0.9;
}

.hero-bird-mark {
    top: 8%;
    left: 0;
    right: auto;
    width: clamp(170px, 28vw, 390px);
    opacity: 0.16;
    filter: drop-shadow(0 24px 54px rgba(222, 252, 143, 0.20));
}

.hero-badge,
.section-subtitle,
.bento-tag,
.project-tag,
.team-role {
    letter-spacing: 0.08em;
}

.hero-badge {
    margin-bottom: 1rem;
    background-color: rgba(222, 252, 143, 0.08);
    border-color: rgba(222, 252, 143, 0.28);
}

.hero-title {
    max-width: 920px;
    font-size: 5.1rem;
    line-height: 0.98;
    color: var(--color-text);
}

.hero-subtitle {
    max-width: 650px;
    font-size: 1.18rem;
    color: rgba(242, 238, 243, 0.78);
}

.hero-actions {
    gap: 1rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.8rem;
}

.hero-proof span,
.studio-notes span,
.call-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(242, 238, 243, 0.16);
    border-radius: 999px;
    color: rgba(242, 238, 243, 0.82);
    background-color: rgba(242, 238, 243, 0.035);
    font-family: var(--font-accent);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-scroll-indicator {
    display: none;
}

.about-section,
.services-section,
.portfolio-section,
.team-section,
.book-call-section {
    padding: var(--space-section) 0;
    border-top-color: var(--color-ink-line);
}

.section-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 5rem;
}

.section-title {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: var(--color-text);
}

.section-header.text-center {
    text-align: left;
}

.section-header.text-center .section-title,
.section-header.text-center .section-desc-center {
    margin-left: 0;
    margin-right: 0;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--color-text);
}

.studio-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.7rem;
}

.bento-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    margin-top: 3rem;
}

.bento-box,
.project-card,
.team-card,
.call-card {
    border-radius: var(--radius-card);
    border-color: rgba(242, 238, 243, 0.14);
    background: linear-gradient(180deg, rgba(50, 25, 47, 0.78), rgba(32, 11, 32, 0.68));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.bento-box {
    min-height: 250px;
    padding: 2rem;
}

.bento-box::before {
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, rgba(222, 252, 143, 0.28), transparent 42%);
}

.bento-box:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(57, 30, 54, 0.86), rgba(34, 13, 33, 0.76));
    border-color: var(--color-border-hover);
    box-shadow: none;
}

.bento-box:nth-child(1) {
    min-height: 330px;
}

.bento-box:nth-child(4) {
    background:
        linear-gradient(135deg, rgba(188, 118, 103, 0.20), transparent 42%),
        linear-gradient(180deg, rgba(50, 25, 47, 0.78), rgba(32, 11, 32, 0.68));
}

.bento-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(222, 252, 143, 0.28);
    border-radius: var(--radius-card);
    font-size: 1.25rem;
}

.bento-content h3 {
    font-size: 1.35rem;
}

.bento-tag {
    color: var(--color-lime);
    background-color: rgba(222, 252, 143, 0.08);
    border-radius: 999px;
}

.portfolio-header {
    align-items: flex-start;
    gap: 2rem;
}

.portfolio-intro {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.portfolio-filters {
    border-radius: 999px;
    background-color: rgba(242, 238, 243, 0.045);
}

.filter-btn {
    min-height: 38px;
    border-radius: 999px;
}

.projects-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.project-card {
    grid-column: span 3;
}

.project-card.project-featured {
    grid-column: span 6;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.project-card.project-featured .project-img-wrapper {
    aspect-ratio: 16 / 9;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-hover);
}

.project-details {
    padding: 1.5rem;
}

.project-card.project-featured .project-details {
    justify-content: center;
    padding: 2.2rem;
}

.project-details h3 {
    font-size: 1.45rem;
}

.project-card.project-featured .project-details h3 {
    font-size: 2rem;
}

.team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.team-card {
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-hover);
}

.team-img-wrapper {
    aspect-ratio: 4 / 5;
}

.team-info {
    text-align: left;
    padding: 1.25rem;
}

.team-principle {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(242, 238, 243, 0.12);
    color: var(--color-lime);
    font-size: 0.8rem;
}

.call-card {
    padding: 2.2rem;
}

.call-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.call-header {
    max-width: 680px;
    margin: 0;
    text-align: left;
}

.call-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.calendly-widget-wrapper {
    border-radius: var(--radius-card);
    border-color: rgba(242, 238, 243, 0.12);
    background-color: var(--color-bg-darker);
}

.main-footer {
    background-color: rgba(18, 5, 18, 0.96);
}

.footer-container {
    grid-template-columns: 1.4fr 0.8fr 1fr;
}

.footer-logo {
    width: 118px;
    height: 118px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-grid,
    .call-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .call-points {
        justify-content: flex-start;
    }

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

@media (max-width: 768px) {
    :root {
        --space-section: 5rem;
    }

    html {
        scroll-padding-top: 82px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .hero-section {
        display: block;
        min-height: 0;
        min-height: unset;
        margin-top: -0.95rem;
        padding: 0 0 3.5rem;
    }

    .hero-container {
        text-align: left;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        width: 100%;
        align-items: stretch;
    }

    .hero-actions .btn {
        max-width: none;
    }

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

    .lead-text {
        font-size: 1.22rem;
    }

    .bento-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card.project-featured {
        grid-column: auto;
        display: flex;
    }

    .project-card.project-featured .project-details h3 {
        font-size: 1.35rem;
    }

    .portfolio-filters {
        position: relative;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .call-card {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .hero-section {
        margin-top: -0.7rem;
        padding-top: 0;
    }

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

    .hero-proof span,
    .studio-notes span,
    .call-points span {
        width: 100%;
        justify-content: center;
    }

    .bento-box,
    .project-details,
    .team-info {
        padding: 1.15rem;
    }
}

/* Final balanced hero override: center the opening block inside the visible area below the navbar. */
.hero-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: calc(100vh - 96px) !important;
    min-height: calc(100svh - 96px) !important;
    margin-top: 96px !important;
    padding: 0 0 2.25rem !important;
}

.hero-container {
    max-width: 900px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    text-align: center !important;
    align-items: center !important;
    transform: none;
}

.hero-bird-stage {
    inset: 0 !important;
    min-height: 100vh;
}

.hero-bird-mark {
    left: 0 !important;
    right: auto !important;
    animation: birdFlight 12s cubic-bezier(0.45, 0, 0.25, 1) infinite !important;
}

.hero-actions,
.hero-proof {
    justify-content: center !important;
}

.hero-scroll-indicator {
    display: flex !important;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 76px) !important;
        min-height: calc(100svh - 76px) !important;
        margin-top: 76px !important;
        padding: 0 0 2rem !important;
    }

    .hero-container {
        text-align: center !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: calc(100vh - 66px) !important;
        min-height: calc(100svh - 66px) !important;
        margin-top: 66px !important;
        padding: 0 0 1.75rem !important;
    }
}

/* Mobile containment and footer cleanup */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .container,
    .header-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-container {
        max-width: min(900px, calc(100vw - 2.5rem)) !important;
    }

    .hero-title,
    .section-title,
    .project-details h3,
    .team-info h3 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-actions {
        width: min(100%, 340px) !important;
        align-items: center !important;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 340px !important;
    }

    .calendly-widget-wrapper,
    .calendly-inline-widget {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-container {
        text-align: left;
    }

    .footer-logo {
        width: 92px;
        height: 92px;
    }

    .footer-desc {
        max-width: 32rem;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .footer-bottom {
        padding: 1.25rem 0;
    }

    .footer-bottom-flex {
        align-items: flex-start;
        text-align: left;
        font-size: 0.76rem;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .hero-container {
        max-width: calc(100vw - 2rem) !important;
    }

    .hero-proof span,
    .studio-notes span,
    .call-points span {
        width: auto;
        max-width: 100%;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-desc {
        font-size: 0.9rem;
    }
}

/* Final frame restore: old hero/header/footer, keeping the new middle sections. */
:root {
    --color-bg: #200B20;
    --color-bg-darker: #150615;
    --color-text: #E5E2FF;
    --color-text-muted: #A39DBE;
    --color-lime: #E2FF9D;
    --color-slate: #507679;
    --color-terracotta: #946459;
    --color-card-bg: rgba(37, 19, 37, 0.6);
    --color-border: rgba(229, 226, 255, 0.1);
    --color-border-hover: rgba(226, 255, 157, 0.3);
}

body {
    background-color: var(--color-bg);
}

.main-header {
    padding: 1.25rem 0 !important;
    background-color: rgba(21, 6, 21, 0.65) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border) !important;
}

.main-header.scrolled {
    padding: 0.75rem 0 !important;
    background-color: rgba(21, 6, 21, 0.85) !important;
}

.header-container {
    max-width: 1280px !important;
    padding: 0 2rem !important;
}

.brand-logo {
    width: 82px !important;
    height: 82px !important;
}

.nav-menu ul {
    gap: 2.5rem !important;
}

.nav-link {
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    color: var(--color-text-muted) !important;
}

.nav-link::after {
    height: 2px !important;
}

.btn {
    min-height: 0;
    padding: 0.85rem 2rem !important;
    font-size: 0.85rem !important;
    letter-spacing: 0 !important;
    border-radius: 50px !important;
}

.btn-primary {
    background-color: var(--color-lime) !important;
    color: var(--color-bg) !important;
}

.btn-secondary {
    background-color: var(--color-text) !important;
    color: var(--color-bg) !important;
}

.btn-outline {
    background-color: transparent !important;
    border: 1.5px solid var(--color-text) !important;
    color: var(--color-text) !important;
}

.btn-primary:hover {
    background-color: #fff !important;
    box-shadow: 0 0 25px rgba(226, 255, 157, 0.4) !important;
}

.btn-secondary:hover {
    background-color: var(--color-lime) !important;
}

.btn-outline:hover {
    background-color: var(--color-text) !important;
    color: var(--color-bg) !important;
}

.hero-section {
    min-height: 100vh !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding: 100px 0 96px !important;
}

@supports (min-height: 100dvh) {
    .hero-section {
        min-height: 100dvh !important;
    }
}

.hero-section .shape {
    display: block !important;
}

.hero-container {
    max-width: 900px !important;
    text-align: center !important;
    align-items: center !important;
}

.hero-badge {
    margin-bottom: 2rem !important;
    background-color: rgba(229, 226, 255, 0.03) !important;
    border-color: var(--color-border) !important;
    letter-spacing: 0.1em !important;
}

.hero-title {
    max-width: none !important;
    font-size: 4rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    color: #fff !important;
}

.hero-subtitle {
    max-width: 680px !important;
    font-size: 1.25rem !important;
    color: var(--color-text-muted) !important;
}

.hero-title .text-gradient,
.footer-bottom .text-gradient {
    background: linear-gradient(135deg, var(--color-lime) 30%, var(--color-text) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-actions {
    width: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
}

.hero-bird-stage {
    inset: 90px 0 78px !important;
    min-height: 0 !important;
}

.hero-bird-mark {
    top: 15% !important;
    left: 5% !important;
    right: auto !important;
    width: clamp(170px, 28vw, 390px) !important;
    opacity: 0.16 !important;
}

.hero-scroll-indicator {
    display: flex !important;
}

.main-footer {
    background-color: var(--color-bg-darker) !important;
    padding: 5rem 0 0 0 !important;
}

.footer-container {
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 4rem !important;
    margin-bottom: 4rem !important;
    text-align: left !important;
}

.footer-logo {
    width: 150px !important;
    height: 150px !important;
}

.footer-desc {
    max-width: 380px !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.footer-links a {
    color: var(--color-text-muted) !important;
}

.footer-bottom {
    padding: 2rem 0 !important;
}

.footer-bottom-flex {
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.25rem !important;
    }

    .brand-logo {
        width: 82px !important;
        height: 82px !important;
    }

    .hero-section {
        min-height: 100vh !important;
        min-height: 100svh !important;
        padding: 80px 0 86px !important;
    }

    .hero-bird-stage {
        inset: 74px 0 70px !important;
    }

    .hero-bird-mark {
        width: clamp(145px, 44vw, 270px) !important;
        opacity: 0.12 !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        max-width: 320px !important;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .footer-desc {
        max-width: 100% !important;
    }

    .footer-bottom-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem !important;
    }

    .brand-logo {
        width: 66px !important;
        height: 66px !important;
    }

    .hero-section {
        padding: 70px 0 78px !important;
    }

    .hero-title {
        font-size: 1.85rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }
}

/* Final compact header tuning */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    padding: 0.55rem 0 !important;
}

.main-header.scrolled {
    padding: 0.45rem 0 !important;
}

.brand-logo {
    width: 62px !important;
    height: 62px !important;
}

.nav-cta .btn {
    padding: 0.72rem 1.55rem !important;
}

.hero-section {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 104px 0 72px !important;
    margin-top: 0 !important;
}

.hero-container {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.45rem 0 !important;
    }

    .brand-logo {
        width: 56px !important;
        height: 56px !important;
    }

    .hero-section {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 86px 0 64px !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 52px !important;
        height: 52px !important;
    }

    .hero-section {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 78px 0 56px !important;
        margin-top: 0 !important;
    }
}

/* Final mobile menu and scroll indicator repair */
.mobile-menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    z-index: 99 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    transform: translateY(-8px);
}

.mobile-menu-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

.mobile-nav {
    width: min(100%, 360px);
    padding: 6rem 1.5rem 3rem;
}

body.lock-scroll {
    overflow: hidden !important;
}

.hero-scroll-indicator {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    pointer-events: none;
}

/* Final hero rhythm: viewport-safe, responsive, and no indicator overlap */
.hero-section {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: clamp(108px, 13svh, 148px) 0 clamp(26px, 4svh, 44px) !important;
    row-gap: clamp(30px, 4.5svh, 58px) !important;
    position: relative !important;
}

@supports (min-height: 100dvh) {
    .hero-section {
        min-height: 100dvh !important;
    }
}

.hero-container {
    grid-row: 1 !important;
    place-self: center !important;
    width: min(900px, calc(100vw - 3rem)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.hero-title {
    font-size: clamp(3rem, 6.2vw, 4.35rem) !important;
    line-height: 1.02 !important;
    text-wrap: balance;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-title-rotator {
    display: flex !important;
    justify-content: center !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    column-gap: 0.2em !important;
    row-gap: 0.08em !important;
}

.hero-title-static {
    display: inline-block;
}

.hero-title-word {
    position: relative;
    display: inline-block;
    min-width: min(100%, 10.6em);
    text-align: center;
    white-space: nowrap;
}

.hero-title-word::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.82em;
    margin-left: 0.08em;
    transform: translateY(0.08em);
    border-radius: 999px;
    background: var(--color-lime);
    box-shadow: 0 0 22px rgba(222, 255, 135, 0.45);
    animation: typingCaretBlink 0.86s steps(2, start) infinite;
}

@keyframes typingCaretBlink {
    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    max-width: 680px !important;
    margin-bottom: clamp(1.75rem, 3svh, 2.5rem) !important;
    text-wrap: pretty;
}

.hero-scroll-indicator {
    position: static !important;
    grid-row: 2 !important;
    justify-self: center !important;
    align-self: end !important;
    transform: none !important;
    width: auto !important;
    min-height: 54px !important;
    margin: 0 auto !important;
    gap: 0.45rem !important;
    opacity: 0.78;
}

.mouse-icon {
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100svh !important;
        padding: clamp(82px, 12svh, 104px) 0 max(18px, env(safe-area-inset-bottom)) !important;
        row-gap: clamp(22px, 4svh, 36px) !important;
    }

    .hero-container {
        width: min(100%, calc(100vw - 2rem)) !important;
    }

    .hero-title {
        font-size: clamp(2.25rem, 11.5vw, 3rem) !important;
        line-height: 1.04 !important;
    }

    .hero-title-rotator {
        display: grid !important;
        grid-template-rows: auto minmax(2.08em, auto);
        justify-items: center !important;
        align-items: start !important;
        row-gap: 0.08em !important;
        column-gap: 0 !important;
    }

    .hero-title-word {
        display: block;
        min-width: 0;
        max-width: min(100%, 11.25em);
        min-height: 2.08em;
        line-height: 1.04;
        text-align: center;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: clamp(0.96rem, 3.8vw, 1.08rem) !important;
        margin-bottom: clamp(1.45rem, 3.5svh, 2rem) !important;
    }

    .hero-actions {
        width: min(100%, 340px) !important;
    }

    .hero-scroll-indicator {
        min-height: 48px !important;
        gap: 0.35rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: clamp(74px, 11svh, 92px) !important;
        row-gap: clamp(18px, 3.5svh, 28px) !important;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 2.55rem) !important;
    }

    .hero-title-rotator {
        display: grid !important;
        grid-template-rows: auto minmax(2.14em, auto);
    }

    .hero-title-word {
        max-width: min(100%, 10.8em);
        min-height: 2.14em;
    }

    .hero-badge {
        margin-bottom: 1.1rem !important;
    }

    .hero-scroll-indicator {
        min-height: 44px !important;
    }

    .mouse-icon {
        width: 18px !important;
        height: 28px !important;
    }

    .scroll-text {
        font-size: 0.62rem !important;
        letter-spacing: 0.08em !important;
    }
}

@media (max-height: 720px) and (min-width: 769px) {
    .hero-section {
        padding-top: 96px !important;
        row-gap: 24px !important;
    }

    .hero-title {
        font-size: clamp(2.65rem, 5.5vw, 3.8rem) !important;
    }

    .hero-subtitle {
        margin-bottom: 1.45rem !important;
    }

    .hero-scroll-indicator {
        min-height: 46px !important;
    }
}

/* Mobile-only section heading alignment */
@media (max-width: 768px) {
    .section-header,
    .section-header.text-center,
    .section-info,
    .portfolio-header,
    .portfolio-header > div,
    .call-header {
        text-align: center !important;
        align-items: center !important;
    }

    .section-title,
    .section-subtitle,
    .section-desc-center,
    .section-info p,
    .portfolio-header p,
    .call-header p {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .portfolio-header {
        align-items: center !important;
    }
}

/* Desktop optical scale: 10% smaller than the previous 90% presentation. */
@media (min-width: 1025px) {
    body {
        zoom: 0.81;
        width: calc(100% / 0.81);
    }
}

@supports not (zoom: 1) {
    @media (min-width: 1025px) {
        html {
            font-size: 81%;
        }
    }
}

/* Header CTA: lime sweep inspired by institutional trading buttons. */
.nav-cta .project-cta-btn {
    isolation: isolate;
    gap: 0 !important;
    min-height: 46px;
    padding: 0 !important;
    border: 1px solid rgba(222, 255, 135, 0.62) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(180deg, rgba(18, 22, 25, 0.98), rgba(7, 10, 12, 0.98)) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(222, 255, 135, 0.08),
        0 14px 34px rgba(5, 8, 12, 0.28) !important;
}

.nav-cta .project-cta-btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(90deg,
            transparent 0%,
            transparent 18%,
            rgba(222, 255, 135, 0.08) 32%,
            rgba(222, 255, 135, 0.92) 48%,
            rgba(249, 255, 220, 0.96) 52%,
            rgba(222, 255, 135, 0.18) 68%,
            transparent 84%,
            transparent 100%);
    transform: translateX(-120%);
    animation: projectCtaBorderSweep 5.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    pointer-events: none;
}

.nav-cta .project-cta-btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(18, 22, 25, 0.98), rgba(7, 10, 12, 0.98));
    pointer-events: none;
}

.project-cta-icon,
.project-cta-label {
    position: relative;
    z-index: 1;
}

.project-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 54px;
    min-height: 44px;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
    border-radius: 10px 0 0 10px;
    background:
        linear-gradient(135deg, var(--color-lime) 0%, #eefcb4 55%, #ffffff 100%);
    color: var(--color-bg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 24px rgba(222, 255, 135, 0.42);
}

.project-cta-video-icon {
    display: inline-flex;
    width: 24px;
    height: 18px;
    transform: translateX(-3px);
}

.project-cta-video-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: var(--color-bg);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}

.project-cta-label {
    padding: 0.82rem 1.24rem 0.82rem 0.95rem;
    white-space: nowrap;
}

.nav-cta .project-cta-btn:hover {
    color: #ffffff !important;
    background:
        linear-gradient(180deg, rgba(22, 27, 31, 1), rgba(9, 12, 16, 1)) !important;
    border-color: rgba(222, 255, 135, 0.96) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 26px rgba(222, 255, 135, 0.3),
        0 18px 40px rgba(5, 8, 12, 0.34) !important;
}

.nav-cta .project-cta-btn:hover .project-cta-icon {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 0 34px rgba(222, 255, 135, 0.58);
}

@keyframes projectCtaBorderSweep {
    0%,
    34% {
        transform: translateX(-120%);
        opacity: 0;
    }

    44% {
        opacity: 1;
    }

    72% {
        transform: translateX(120%);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta .project-cta-btn::before {
        animation: none;
        opacity: 0.35;
        transform: none;
    }
}

/* Subtle hero video loop */
.hero-section {
    isolation: isolate;
    overflow: hidden !important;
}

.hero-video-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 42%, rgba(90, 42, 84, 0.28), rgba(32, 11, 32, 0.7) 62%, rgba(21, 6, 21, 0.92) 100%);
}

.hero-video-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(32, 11, 32, 0.18), rgba(32, 11, 32, 0.72) 64%, rgba(21, 6, 21, 0.9) 100%),
        linear-gradient(180deg, rgba(21, 6, 21, 0.62), rgba(21, 6, 21, 0.74));
}

.hero-video-loop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.14;
    transform: translateZ(0);
}

.hero-video-stage.is-disabled .hero-video-loop {
    display: none;
}

.hero-bg-shapes,
.hero-bird-stage {
    z-index: 1 !important;
}

.hero-container,
.hero-scroll-indicator {
    position: relative;
    z-index: 2 !important;
}

@media (max-width: 900px), (pointer: coarse) {
    .hero-video-stage {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-stage {
        display: none;
    }
}

/* Performance fallback for Chrome and low-power devices. */
body.chrome-engine .main-header,
body.chrome-engine .mobile-menu-overlay,
body.chrome-engine .case-study-overlay,
body.performance-fallback .main-header,
body.performance-fallback .mobile-menu-overlay,
body.performance-fallback .case-study-overlay {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

body.chrome-engine .case-study-overlay,
body.performance-fallback .case-study-overlay {
    background:
        radial-gradient(circle at 18% 18%, rgba(92, 49, 88, 0.18), transparent 34%),
        rgba(10, 0, 13, 0.94) !important;
}

body.chrome-engine .case-study-shell,
body.performance-fallback .case-study-shell {
    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body.chrome-engine .case-study-hero-visual,
body.chrome-engine .case-study-image-stack figure,
body.chrome-engine .case-study-gallery figure,
body.chrome-engine .case-study-final figure,
body.performance-fallback .case-study-hero-visual,
body.performance-fallback .case-study-image-stack figure,
body.performance-fallback .case-study-gallery figure,
body.performance-fallback .case-study-final figure {
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26) !important;
}

body.performance-fallback .cursor-glow,
body.performance-fallback .hero-video-stage,
body.performance-fallback .case-study-shell::before,
body.performance-fallback .case-study-hero-visual::before,
body.performance-fallback .case-study-final figure::before {
    display: none !important;
}

body.performance-fallback .case-study-overlay,
body.performance-fallback .project-card,
body.performance-fallback .team-card,
body.performance-fallback .bento-box {
    transition-duration: 0.18s !important;
}

body.performance-fallback .project-card:hover,
body.performance-fallback .team-card:hover,
body.performance-fallback .bento-box:hover {
    transform: none !important;
}

body.performance-fallback .services-section .bento-box::before,
body.performance-fallback .nav-cta .project-cta-btn::before,
body.performance-fallback .hero-actions .hero-project-cta::before,
body.performance-fallback .project-open-cue,
body.performance-fallback .project-open-cue::after,
body.performance-fallback .brochure-page-cover {
    animation: none !important;
    opacity: 0.28 !important;
    transform: none !important;
}

body.performance-fallback .project-open-cue,
body.performance-fallback .brochure-page-cover {
    opacity: 1 !important;
}

body.chrome-engine .case-study-sticky,
body.performance-fallback .case-study-sticky {
    position: relative !important;
    top: auto !important;
}

body.chrome-engine .case-study-gallery figure:nth-child(even) img,
body.performance-fallback .case-study-gallery figure:nth-child(even) img,
body.chrome-engine .case-study-hero-visual img,
body.performance-fallback .case-study-hero-visual img {
    transform: none !important;
}

/* Mobile-only hero CTA mirrors the desktop navbar CTA. */
.hero-project-cta-icon {
    display: none;
}

@media (max-width: 768px) {
    .hero-actions .hero-project-cta {
        isolation: isolate;
        gap: 0 !important;
        min-height: 48px;
        width: min(100%, 320px) !important;
        max-width: 320px !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        overflow: hidden;
        border: 1px solid rgba(222, 255, 135, 0.64) !important;
        border-radius: 12px !important;
        background:
            linear-gradient(180deg, rgba(18, 22, 25, 0.98), rgba(7, 10, 12, 0.98)) !important;
        color: #ffffff !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(222, 255, 135, 0.08),
            0 14px 34px rgba(5, 8, 12, 0.26) !important;
    }

    .hero-actions .hero-project-cta::before {
        content: "";
        position: absolute;
        inset: -1px;
        z-index: -1;
        border-radius: inherit;
        background:
            linear-gradient(90deg,
                transparent 0%,
                transparent 18%,
                rgba(222, 255, 135, 0.08) 32%,
                rgba(222, 255, 135, 0.9) 48%,
                rgba(249, 255, 220, 0.94) 52%,
                rgba(222, 255, 135, 0.18) 68%,
                transparent 84%,
                transparent 100%);
        transform: translateX(-120%);
        animation: projectCtaBorderSweep 5.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
        pointer-events: none;
    }

    .hero-actions .hero-project-cta::after {
        content: "";
        position: absolute;
        inset: 1px;
        z-index: -1;
        border-radius: 10px;
        background:
            linear-gradient(180deg, rgba(18, 22, 25, 0.98), rgba(7, 10, 12, 0.98));
        pointer-events: none;
    }

    .hero-project-cta-icon,
    .hero-project-cta-label {
        position: relative;
        z-index: 1;
    }

    .hero-project-cta-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        width: 58px;
        min-height: 46px;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
        border-radius: 10px 0 0 10px;
        background:
            linear-gradient(135deg, var(--color-lime) 0%, #eefcb4 55%, #ffffff 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.28),
            0 0 24px rgba(222, 255, 135, 0.42);
    }

    .hero-project-cta-icon svg {
        width: 24px;
        height: 18px;
        transform: translateX(-3px);
        fill: var(--color-bg);
    }

    .hero-project-cta-label {
        flex: 1;
        padding: 0.88rem 1.15rem 0.88rem 0.9rem;
        text-align: center;
        white-space: nowrap;
    }

    .hero-project-cta > i {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-actions .hero-project-cta::before {
        animation: none;
        opacity: 0.35;
        transform: none;
    }
}

/* Desktop hero bottom blend: removes the abrupt section cut. */
@media (min-width: 769px) {
    .hero-section {
        min-height: 108vh !important;
        min-height: 108svh !important;
        padding-bottom: clamp(86px, 12svh, 132px) !important;
        row-gap: clamp(36px, 5.5svh, 72px) !important;
    }

    @supports (min-height: 100dvh) {
        .hero-section {
            min-height: 108dvh !important;
        }
    }

    .hero-section::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: clamp(120px, 17vh, 210px);
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(180deg,
                rgba(32, 11, 32, 0) 0%,
                rgba(32, 11, 32, 0.48) 54%,
                var(--color-bg) 100%);
    }

    .about-section {
        margin-top: -1px;
        border-top-color: transparent !important;
    }
}

@property --capability-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* Capabilities border flow: slow ambient motion for the bento cards. */
.services-section .bento-box::before {
    opacity: 0.72;
    background:
        conic-gradient(from var(--capability-border-angle, 0deg),
            rgba(242, 238, 243, 0.12) 0deg,
            rgba(242, 238, 243, 0.08) 52deg,
            rgba(222, 255, 135, 0.96) 82deg,
            rgba(249, 255, 220, 0.96) 96deg,
            rgba(222, 255, 135, 0.26) 126deg,
            rgba(242, 238, 243, 0.08) 172deg,
            rgba(242, 238, 243, 0.12) 360deg);
    animation: capabilityBorderFlow 12.5s linear infinite;
}

.services-section .bento-box:nth-child(2)::before {
    animation-delay: -2.1s;
}

.services-section .bento-box:nth-child(3)::before {
    animation-delay: -4.2s;
}

.services-section .bento-box:nth-child(4)::before {
    animation-delay: -6.3s;
}

.services-section .bento-box:nth-child(5)::before {
    animation-delay: -8.4s;
}

.services-section .bento-box:hover::before {
    opacity: 1;
    animation-duration: 7.4s;
}

@keyframes capabilityBorderFlow {
    0% {
        --capability-border-angle: 0deg;
    }

    100% {
        --capability-border-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-section .bento-box::before {
        animation: none;
        --capability-border-angle: 45deg;
    }
}

/* Desktop floating pill navigation */
@media (min-width: 769px) {
    .main-header,
    .main-header.scrolled {
        background: transparent !important;
        border-bottom: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-menu {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 0.34rem;
        border: 1px solid rgba(226, 255, 157, 0.24);
        border-radius: 999px;
        background: rgba(32, 11, 32, 0);
        box-shadow:
            inset 0 0 0 1px rgba(229, 226, 255, 0.045),
            0 18px 50px rgba(10, 2, 12, 0.2),
            0 0 34px rgba(226, 255, 157, 0.06);
    }

    .nav-menu::before {
        content: "";
        position: absolute;
        inset: -1px;
        z-index: -1;
        border-radius: inherit;
        background:
            linear-gradient(90deg,
                rgba(226, 255, 157, 0.26),
                rgba(229, 226, 255, 0.08),
                rgba(226, 255, 157, 0.18));
        opacity: 0.52;
        pointer-events: none;
    }

    .nav-menu ul {
        align-items: center;
        gap: 0.22rem !important;
    }

    .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0.62rem 1.08rem !important;
        border-radius: 999px;
        color: rgba(229, 226, 255, 0.72) !important;
        line-height: 1;
        transition:
            color 0.28s ease,
            background 0.28s ease,
            transform 0.28s ease,
            box-shadow 0.28s ease;
    }

    .nav-link::after {
        display: none !important;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
        background: var(--color-lime);
        color: var(--color-bg) !important;
        box-shadow: 0 8px 24px rgba(226, 255, 157, 0.22);
        transform: translateY(-1px);
    }

    .nav-link:focus-visible {
        outline: 2px solid rgba(226, 255, 157, 0.5);
        outline-offset: 3px;
    }
}

/* Admin iframe mode: show only the pricing section, not the full landing page. */
body.pricing-preview-mode {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--color-bg);
}

body.pricing-preview-mode .main-header,
body.pricing-preview-mode .mobile-menu-overlay,
body.pricing-preview-mode .site-footer,
body.pricing-preview-mode main > section:not(#pricing) {
    display: none !important;
}

body.pricing-preview-mode #pricing {
    display: block !important;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4rem) 0 !important;
    border-top: 0;
}

body.pricing-preview-mode #pricing .container {
    width: min(1180px, calc(100% - 2rem));
}

/* September refresh: capabilities, responsive filters and a color-only light theme. */
:root {
    color-scheme: dark;
    --color-accent-ink: var(--color-lime);
    --color-on-accent: #200b20;
    --color-filter-panel: #281426;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    background: var(--color-card-bg);
    font: 600 0.75rem var(--font-body);
    cursor: pointer;
    transition: color 180ms ease-out, background-color 180ms ease-out;
}
.theme-toggle:hover { color: var(--color-accent-ink); border-color: var(--color-border-hover); }
.scroll-text-mobile { display: none; }
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 4rem) 2rem;
    max-width: 960px;
    margin: 3.5rem auto 0;
    list-style: none;
}
.capability { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.3rem; }
.capability:last-child:nth-child(3n + 1) { grid-column: 2; }
.capability-circle {
    display: grid;
    place-items: center;
    width: clamp(130px, 17vw, 192px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--color-border-hover);
    background: var(--color-card-bg);
    color: var(--color-accent-ink);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), background-color 250ms ease-out, color 250ms ease-out, box-shadow 250ms ease-out;
}
.capability h3 { max-width: 22ch; font-size: clamp(0.9rem, 1.35vw, 1.15rem); line-height: 1.45; color: var(--color-text); }
@media (hover: hover) {
    .capability:hover .capability-circle { transform: translateY(-6px) rotate(-5deg); background: var(--color-lime); color: var(--color-on-accent); box-shadow: 0 10px 35px color-mix(in srgb, var(--color-lime) 14%, transparent); }
}
.project-filter-control { position: relative; flex: 0 0 auto; z-index: 5; }
.project-filter-control .portfolio-filters { position: relative; display: flex; gap: 0.4rem; overflow: visible; padding: 0.4rem; }
.filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid transparent;
    border-radius: 999px;
    font: 700 0.75rem var(--font-heading);
    cursor: pointer;
}
.filters-toggle:hover, .filters-toggle.has-selection { border-color: var(--color-border-hover); color: var(--color-accent-ink); }
.filters-toggle .fa-chevron-down { font-size: 0.7em; transition: transform 240ms ease-out; }
.is-open .filters-toggle .fa-chevron-down { transform: rotate(180deg); }
.filter-selection:not(:empty) { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.72rem var(--font-body); }
.filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 350px;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-filter-panel);
    box-shadow: 0 16px 44px color-mix(in srgb, var(--color-on-accent) 18%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 220ms ease-out, transform 260ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms;
}
.is-open .filter-options { visibility: visible; opacity: 1; transform: none; }
.filter-options .filter-btn { text-align: left; white-space: normal; min-height: 44px; border: 1px solid var(--color-border); }
.filter-btn.active, .filter-btn:hover { color: var(--color-on-accent); }
.filter-swipe-hint { display: none; }

/* Light: pale lavender paper, plum ink, lime fills and forest-green text accents. */
html[data-theme="light"] {
    color-scheme: light;
    --color-bg: #f5f1f7;
    --color-bg-darker: #ebe4ee;
    --color-surface: #fbf8fc;
    --color-surface-strong: #e9e0ed;
    --color-text: #302035;
    --color-text-muted: #66556e;
    --color-lime: #d5f18b;
    --color-accent-ink: #466321;
    --color-slate: #3d6a6c;
    --color-terracotta: #995b4e;
    --color-card-bg: #fbf8fc;
    --color-filter-panel: #fbf8fc;
    --color-ink-line: #d9cedf;
    --color-border: #d9cedf;
    --color-border-hover: #829957;
}
html[data-theme="light"] :is(.hero-title, .project-details h3, .team-info h3, .footer-links h4, .footer-contact h4, .case-study-copy h2, .case-study-overview h3, .case-study-sticky h3, .case-study-section-heading h3, .case-study-final h3, .case-study-timeline strong, .case-study-system-grid strong) { color: var(--color-text) !important; }
html[data-theme="light"] :is(.hero-subtitle, .footer-links a, .pricing-features li, .team-bio, .team-principle, .case-study-copy > p, .case-study-overview p, .case-study-sticky p, .case-study-final p, .case-study-progress, .case-study-brand) { color: var(--color-text-muted) !important; }
html[data-theme="light"] :is(.text-gradient, .section-subtitle, .project-tag, .team-role, .pricing-tier, .pricing-features i, .hero-badge, .case-study-eyebrow, .case-study-section-count, .case-study-section-heading p, .brochure-page-info span) { color: var(--color-accent-ink) !important; -webkit-text-fill-color: currentColor; }
html[data-theme="light"] .main-header { background: rgba(245, 241, 247, 0.82) !important; }
html[data-theme="light"] .main-header.scrolled { background: rgba(245, 241, 247, 0.96) !important; }
html[data-theme="light"] .nav-menu { background: rgba(251, 248, 252, 0.9) !important; border-color: var(--color-border) !important; box-shadow: 0 6px 25px rgba(48, 32, 53, 0.06) !important; }
html[data-theme="light"] .nav-menu::before { background: transparent !important; }
html[data-theme="light"] :is(.main-footer, .mobile-menu-overlay) { background: var(--color-bg-darker) !important; }
html[data-theme="light"] :is(.main-header .brand-logo, .footer-logo, .hero-bird-mark, .case-study-mark) { filter: brightness(0) saturate(100%) invert(12%) sepia(18%) saturate(1165%) hue-rotate(238deg) brightness(95%) contrast(90%); }
html[data-theme="light"] .hero-video-stage { background: radial-gradient(circle at 50% 42%, #e9e0ed, #f5f1f7 72%); }
html[data-theme="light"] .hero-video-stage::after { background: linear-gradient(180deg, rgba(245, 241, 247, 0.65), rgba(245, 241, 247, 0.9)); }
html[data-theme="light"] :is(.project-card, .team-card, .call-card, .pricing-card, .case-study-shell) { background: var(--color-surface); border-color: var(--color-border); box-shadow: 0 14px 40px rgba(48, 32, 53, 0.06) !important; }
html[data-theme="light"] .pricing-card.is-selected { background: #eef4de; border-color: #829957; }
html[data-theme="light"] .pricing-card:not(.is-selected) :is(p, .pricing-features li) { color: #28102a !important; }
html[data-theme="light"] :is(.project-card, .team-card):hover { background: var(--color-surface-strong); }
html[data-theme="light"] :is(.studio-notes span, .call-points span, .case-study-tags span, .portfolio-page-dot, .portfolio-page-arrow, .pricing-cta, .site-user-pill, .site-user-dropdown, .site-user-action, .nav-login-btn) { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
html[data-theme="light"] :is(.btn-primary, .filter-btn.active, .filter-btn:hover, .project-open-cue, .pricing-card.is-selected .pricing-cta, .pricing-cta:hover, .portfolio-page-dot.is-active, .portfolio-page-arrow:hover:not(:disabled), .case-study-website-link, .brochure-page-info a, .mobile-link.btn-primary) { background: var(--color-lime) !important; color: var(--color-on-accent) !important; }
html[data-theme="light"] .btn-primary:hover { background: #c4e574 !important; }
html[data-theme="light"] :is(.btn-secondary, .btn-outline:hover) { background: var(--color-text) !important; color: var(--color-bg) !important; }
html[data-theme="light"] .nav-cta .project-cta-btn,
html[data-theme="light"] .nav-cta .project-cta-btn::after,
html[data-theme="light"] .hero-actions .hero-project-cta,
html[data-theme="light"] .hero-actions .hero-project-cta::after { background: var(--color-surface) !important; color: var(--color-text) !important; border-color: var(--color-border-hover) !important; box-shadow: 0 5px 18px rgba(48, 32, 53, 0.07) !important; }
html[data-theme="light"] .nav-link { color: var(--color-text-muted) !important; }
html[data-theme="light"] .nav-link:hover { color: var(--color-on-accent) !important; }
html[data-theme="light"] .hero-title .text-gradient { background: none !important; -webkit-text-fill-color: var(--color-accent-ink) !important; }
html[data-theme="light"] .hero-section::after { background: linear-gradient(180deg, rgba(245, 241, 247, 0), var(--color-bg)); }
html[data-theme="light"] :is(.project-cta-video-icon svg, .hero-project-cta-icon svg) { fill: var(--color-on-accent); }
html[data-theme="light"] :is(.project-cta-icon, .hero-project-cta-icon) { color: var(--color-on-accent); }
html[data-theme="light"] :is(.hero-proof span, .case-study-overview article, .case-study-system-grid article, .case-study-timeline article, .brochure-page-info) { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text); }
html[data-theme="light"] .case-study-overlay { background: rgba(235, 228, 238, 0.96) !important; }
html[data-theme="light"] .case-study-topbar { background: linear-gradient(180deg, var(--color-surface), rgba(251, 248, 252, 0)); }
html[data-theme="light"] .case-study-image-lightbox { background: rgba(235, 228, 238, 0.96); }
html[data-theme="light"] :is(.case-study-close, .case-study-image-close) { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
html[data-theme="light"] :is(.case-study-close span, .mobile-nav-toggle span) { background: var(--color-text); }
html[data-theme="light"] .phone-frame { border-color: var(--color-text-muted); }
html[data-theme="light"] .phone-notch { background: var(--color-text-muted); }
html[data-theme="light"] .swipe-hand { color: var(--color-accent-ink); }
html[data-theme="light"] .mouse-icon { border-color: var(--color-text-muted); }
html[data-theme="light"] .wheel { background: var(--color-accent-ink); }
html[data-theme="light"] :is(a, button):focus-visible { outline-color: var(--color-accent-ink); }
html[data-theme="light"] ::selection { background: var(--color-lime); color: var(--color-on-accent); }

@media (max-width: 1100px) and (min-width: 769px) {
    .theme-toggle-label { display: none; }
    .theme-toggle { width: 44px; padding: 0; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container { padding-inline: 1rem !important; gap: 0.5rem; }
    .nav-menu .nav-link { padding-inline: 0.55rem !important; font-size: 0.68rem !important; white-space: nowrap; }
    .nav-cta { gap: 0.4rem; }
}
@media (max-width: 768px) {
    .theme-toggle { margin-left: auto; min-width: 44px; }
    .header-container { gap: 0.75rem; }
    .scroll-text-desktop, .hero-scroll-indicator .mouse-icon { display: none !important; }
    .scroll-text-mobile, .hero-scroll-indicator .phone-swipe-icon { display: block; }
    .phone-swipe-icon .swipe-hand { animation: exploreHandSwipe 2s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
    .capabilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; margin-top: 2.5rem; }
    .capability:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
    .capability-circle { width: clamp(100px, 30vw, 150px); font-size: 2.4rem; }
    .capability h3 { font-size: 0.85rem; max-width: 19ch; }
    .project-filter-control { width: 100%; min-width: 0; }
    .project-filter-control .portfolio-filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; scrollbar-color: var(--color-border-hover) transparent; padding-bottom: 0.6rem; }
    .project-filter-control .portfolio-filters::-webkit-scrollbar { display: block; height: 3px; }
    .project-filter-control .portfolio-filters::-webkit-scrollbar-thumb { background: var(--color-border-hover); border-radius: 3px; }
    .filters-toggle { display: none; }
    .filter-options { display: contents; visibility: visible; }
    .filter-options .filter-btn { min-height: 44px; white-space: nowrap; border: 0; }
    .project-filter-control .filter-btn { flex: 0 0 auto; min-height: 44px; }
    .filter-swipe-hint:not([hidden]) { display: flex; gap: 0.5rem; justify-content: flex-end; padding: 0.65rem 0.4rem 0; color: var(--color-text-muted); font-size: 0.72rem; }
}
@keyframes exploreHandSwipe {
    0%, 12% { transform: translate(-50%, -10px); opacity: 0.3; }
    28% { opacity: 1; }
    70% { transform: translate(-50%, 5px); opacity: 1; }
    100% { transform: translate(-50%, 5px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .capability-circle, .filter-options, .filters-toggle .fa-chevron-down { transition: none; }
    .phone-swipe-icon :is(.swipe-hand, .swipe-trail) { animation: none !important; }
    .capability:hover .capability-circle { transform: none; }
}

/* Requested alignment and mobile gesture refinements. */
.services-section .section-header.text-center { text-align: center; }
.services-section .section-header.text-center .section-title { margin-inline: auto; }
.filter-options .filter-btn { text-align: center; }
@media (max-width: 768px) {
    .theme-toggle-label { display: none; }
    .theme-toggle { width: 44px; padding: 0; font-size: 1rem; }
    .phone-swipe-icon { width: 38px; height: 42px; }
    .phone-swipe-icon .swipe-hand { bottom: 8px; font-size: 1.5rem; animation-name: exploreHandSwipeUp; }
}
@keyframes exploreHandSwipeUp {
    0%, 12% { transform: translate(-50%, 8px); opacity: 0.3; }
    28% { opacity: 1; }
    70% { transform: translate(-50%, -8px); opacity: 1; }
    100% { transform: translate(-50%, -8px); opacity: 0; }
}

/* Consent UI: equal choices, no page-blocking overlay. */
.cookie-panel {
    position: fixed;
    left: max(1.25rem, env(safe-area-inset-left));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 6000;
    width: min(410px, calc(100vw - 2.5rem));
    max-height: min(680px, calc(100dvh - 2.5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.4rem;
    border: 1px solid var(--color-border-hover);
    border-radius: 22px;
    background: var(--color-filter-panel);
    color: var(--color-text);
    box-shadow: 0 16px 60px rgba(10, 0, 13, 0.24);
    animation: cookiePanelEnter 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-heading { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.85rem; }
.cookie-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; color: var(--color-on-accent); background: var(--color-lime); font-size: 1.15rem; }
.cookie-heading h2 { font-size: 1rem; line-height: 1.4; }
.cookie-panel p { color: var(--color-text-muted); font-size: 0.82rem; line-height: 1.6; }
.cookie-close { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: transparent; color: var(--color-text); cursor: pointer; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-top: 1.15rem; }
.consent-button {
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border-hover);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font: 700 0.79rem var(--font-body);
    cursor: pointer;
    transition: background-color 180ms ease-out, color 180ms ease-out;
}
.consent-button:hover { background: var(--color-lime); color: var(--color-on-accent); }
.cookie-preferences-toggle { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; min-height: 44px; margin-top: 0.4rem; border: 0; background: transparent; color: var(--color-text); font: 600 0.79rem var(--font-body); cursor: pointer; }
.cookie-preferences-toggle i { font-size: 0.7em; transition: transform 180ms ease-out; }
.cookie-preferences-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.cookie-preferences { padding-top: 1rem; border-top: 1px solid var(--color-border); }
.cookie-essential { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.45rem; font-size: 0.85rem; }
.cookie-essential span { color: var(--color-accent-ink); font-size: 0.75rem; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.cookie-option strong { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; }
.cookie-option small { display: block; font-size: 0.78rem; line-height: 1.6; color: var(--color-text-muted); }
.cookie-option input { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--color-accent-ink); cursor: pointer; }
.cookie-save { width: 100%; margin: 1rem 0 0.5rem; }
.cookie-notice summary { padding-block: 0.6rem; font-size: 0.78rem; cursor: pointer; }
.cookie-notice p { margin: 0.75rem 0; font-size: 0.75rem; overflow-wrap: anywhere; }
.cookie-notice a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-accent-ink); }
.cookie-reopen { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 5500; min-height: 44px; padding: 0.65rem 0.85rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-filter-panel); color: var(--color-text); font: 600 0.72rem var(--font-body); cursor: pointer; box-shadow: 0 4px 20px rgba(10, 0, 13, 0.12); }
.cookie-footer-link { background: transparent; border: 0; font: inherit; color: var(--color-text-muted); cursor: pointer; text-align: left; padding: 0.4rem 0; }
.cookie-footer-link:hover { color: var(--color-accent-ink); }
.booking-consent-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.3rem; min-height: 480px; padding: 2rem; text-align: center; background: var(--color-surface); border-radius: var(--radius-soft); }
.booking-consent-note > i { color: var(--color-accent-ink); font-size: 2rem; }
.booking-consent-note h3 { font-size: 1.3rem; line-height: 1.4; }
.booking-consent-note p { max-width: 34ch; font-size: 0.95rem; }
.booking-consent-note > a { text-decoration: underline; text-underline-offset: 4px; font-size: 0.85rem; color: var(--color-accent-ink); }
.cookie-panel[hidden], .cookie-reopen[hidden], .cookie-close[hidden], .cookie-preferences[hidden], .booking-consent-note[hidden], .calendly-inline-widget[hidden] { display: none !important; }
.cookie-panel :is(button, input, summary):focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 3px; }
@keyframes cookiePanelEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
    .cookie-panel { left: 0.85rem; bottom: max(0.85rem, env(safe-area-inset-bottom)); width: calc(100vw - 1.7rem); max-height: min(580px, 72dvh); padding: 1.1rem; border-radius: 18px; }
    .cookie-heading h2 { font-size: 0.9rem; }
    .cookie-reopen { width: 44px; padding: 0; }
    .cookie-reopen span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-panel { animation: none; }
    .consent-button, .cookie-preferences-toggle i { transition: none; }
}

/* Eight services: equal cards, paged horizontal browsing, no selected tier. */
@media (min-width: 769px) {
    .capabilities-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .capability { grid-column: span 2; }
    .capability:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
    .capability:last-child:nth-child(3n + 2) { grid-column: 4 / span 2; }
}
.pricing-section .section-header.text-center { text-align: center; }
.pricing-section .section-header.text-center :is(.section-title, .section-desc-center) { margin-inline: auto; }
.pricing-carousel { --services-per-page: 3; margin-top: 3rem; }
.pricing-track { display: flex; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; border-radius: 22px; }
.pricing-track::-webkit-scrollbar { display: none; }
.pricing-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.pricing-track:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 6px; }
.pricing-page { display: grid; grid-template-columns: repeat(var(--services-per-page), minmax(0, 1fr)); gap: 1.2rem; flex: 0 0 100%; width: 100%; min-width: 0; align-items: stretch; scroll-snap-align: start; scroll-snap-stop: always; }
.pricing-carousel .pricing-card {
    min-width: 0;
    min-height: 0;
    padding: clamp(1.2rem, 2.2vw, 1.8rem);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--color-card-bg);
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    cursor: inherit;
    transition: none;
}
.pricing-carousel .pricing-card::before { display: none; }
.pricing-carousel .pricing-card:hover { border-color: var(--color-border); }
.service-price-icon { display: block; color: var(--color-accent-ink); font-size: 1.65rem; margin-bottom: 1.35rem; }
.pricing-carousel .pricing-tier { min-height: 2.8em; margin-bottom: 1.4rem; font-family: var(--font-heading); font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.4; text-transform: none; letter-spacing: 0; color: var(--color-text); }
.service-price-label { display: block; font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.3rem; }
.pricing-carousel .pricing-symbol { font-size: clamp(2.5rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 1.2rem; }
.pricing-carousel .pricing-card-top p { min-height: 4.8em; font-size: 0.9rem; line-height: 1.6; color: var(--color-text-muted); }
.pricing-carousel .pricing-features { margin: 1.5rem 0 1.8rem; padding-top: 1.3rem; border-top: 1px solid var(--color-border); gap: 0.9rem; }
.pricing-carousel .pricing-features li { color: var(--color-text-muted); font-size: 0.85rem; line-height: 1.5; }
.pricing-carousel .pricing-features i { color: var(--color-accent-ink); background: transparent; }
.pricing-carousel .pricing-cta { background: transparent !important; border: 1px solid var(--color-border-hover); color: var(--color-text) !important; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.95rem; }
.pricing-carousel .pricing-cta:hover { background: var(--color-lime) !important; color: var(--color-on-accent) !important; }
.pricing-carousel-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.service-carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-card-bg); color: var(--color-text); cursor: pointer; }
.service-carousel-arrow:hover:not(:disabled) { border-color: var(--color-border-hover); color: var(--color-accent-ink); }
.service-carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.service-carousel-dots { display: flex; justify-content: center; gap: 0.1rem; }
.service-carousel-dots button { display: grid; place-items: center; width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.service-carousel-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); opacity: 0.4; }
.service-carousel-dots button[aria-current="true"]::before { background: var(--color-accent-ink); opacity: 1; }
.service-carousel-hint { margin: 0.65rem auto 0; text-align: center; font-size: 0.75rem; color: var(--color-text-muted); }
.service-pricing-note { margin: 1.65rem auto 0; text-align: center; font-size: 0.75rem; line-height: 1.7; max-width: 76ch; }
html[data-theme="light"] .pricing-carousel .pricing-card { background: var(--color-surface); }
html[data-theme="light"] .pricing-carousel .pricing-card .pricing-tier { color: var(--color-text) !important; }
html[data-theme="light"] .pricing-carousel .pricing-card :is(p, .pricing-features li) { color: var(--color-text-muted) !important; }
@media (min-width: 601px) and (max-width: 980px) { .pricing-carousel { --services-per-page: 2; } }
@media (max-width: 600px) {
    .pricing-carousel { --services-per-page: 1; margin-top: 2rem; }
    .pricing-carousel .pricing-card { padding: 1.5rem; }
    .pricing-carousel .pricing-tier { min-height: 0; font-size: 1.15rem; margin-bottom: 1.1rem; }
    .pricing-carousel .pricing-card-top p { min-height: 0; }
    .service-carousel-dots button { width: 24px; }
    .pricing-carousel-nav { gap: 0.5rem; }
}

/* Compact team grid on phones and tablets; centered mobile service cards. */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        max-width: 720px;
        margin-inline: auto;
    }
    .team-card { min-width: 0; }
    .team-img-wrapper { aspect-ratio: 1 / 1; }
    .team-img { object-position: center 30%; }
}
@media (max-width: 600px) {
    .pricing-carousel .pricing-card { text-align: center; }
    .pricing-carousel .pricing-card-top p {
        text-align: center;
        margin-inline: auto;
    }
    .pricing-carousel .pricing-features {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }
    .pricing-carousel .pricing-features li {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: center;
        text-align: left;
    }
    .pricing-carousel .pricing-features i {
        display: inline-grid;
        margin: 0;
    }
    .pricing-carousel .pricing-cta { justify-content: center; }
    .team-grid { gap: 0.75rem; }
    .team-card { border-radius: 14px; }
    .team-info { padding: 0.85rem 0.7rem; overflow-wrap: anywhere; }
    .team-info h3 { font-size: 1rem; }
    .team-role { font-size: 0.65rem; letter-spacing: 0.04em; }
    .team-bio, .team-principle { font-size: 0.8rem; line-height: 1.6; }
    .team-principle { margin-top: 0.75rem; padding-top: 0.75rem; }
}

/* Quiet project dialog chrome with an always-accessible close action. */
.case-study-overlay {
    transform: none;
    background: rgba(15, 7, 17, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 280ms ease, visibility 280ms;
}
.case-study-shell { overflow: visible; }
.case-study-shell::before { display: none; }
.case-study-topbar,
html[data-theme="light"] .case-study-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    content-visibility: visible;
    contain-intrinsic-size: none;
    padding: 0.75rem 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
}
.case-study-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.case-study-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: auto;
    min-width: 104px;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font: 600 0.85rem var(--font-body);
    background: var(--color-card-bg);
}
.case-study-close:hover { transform: none; }
.case-study-close:active { transform: scale(0.97); }
.case-study-close:focus-visible { outline: 2px solid var(--color-lime); outline-offset: 4px; }
@media (max-width: 600px) {
    .case-study-brand { gap: 0.5rem; max-width: none; letter-spacing: 0.02em; }
    .case-study-mark { width: 40px; height: 40px; }
    .case-study-topbar { gap: 0.65rem; }
    .case-study-close { min-width: 94px; }
}
@media (prefers-reduced-motion: reduce) {
    .case-study-overlay, .case-study-close { transition: none; }
}

/* Centered dialog: its content scrolls independently of the persistent header. */
.case-study-overlay {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(12px, 3vw, 40px);
    font-family: var(--font-body);
    line-height: 1.6;
}
.case-study-overlay .case-study-shell {
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    height: min(880px, calc(100dvh - 80px));
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 80px rgba(0,0,0,0.24);
    transform: translateY(12px);
    transition: transform 280ms cubic-bezier(0.2,0.7,0.3,1);
}
.case-study-overlay.is-open .case-study-shell { transform: translateY(0); }
.case-study-overlay .case-study-topbar {
    position: relative;
    flex: 0 0 auto;
    margin: 0 24px;
    padding: 16px 0;
    background: transparent;
}
.case-study-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-text-muted) transparent;
    scrollbar-gutter: stable;
    padding: 0 28px 28px;
}
.case-study-copy h2 {
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}
@media (max-width: 600px) {
    .case-study-overlay .case-study-shell { height: calc(100dvh - 24px); border-radius: 18px; }
    .case-study-overlay .case-study-topbar { margin: 0 14px; padding: 12px 0; }
    .case-study-scroll { padding: 0 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .case-study-overlay .case-study-shell { transition: none; transform: none; }
}

/* Light palette supplied by the studio; dark mode retains its existing palette. */
html[data-theme="light"] {
    --color-lime: #587b7f;
    --color-accent-ink: #496b6f;
    --color-slate: #9d695a;
    --color-terracotta: #9d695a;
    --color-on-accent: #fff;
    --color-border-hover: #587b7f;
}
html[data-theme="light"] :is(.nav-cta .project-cta-btn, .btn-primary) { background: #587b7f !important; color: #fff !important; }
.capability-circle:focus-visible { outline: 3px solid var(--color-accent-ink); outline-offset: 6px; }
.pricing-carousel .pricing-card.service-selected { border-color: var(--color-accent-ink); }
.team-profile-links { display: flex; gap: 8px; margin-top: 16px; }
.team-profile-placeholder { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-accent-ink); background: var(--color-card-bg); }
.page-return { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--color-border-hover); border-radius: 999px; background: var(--color-bg); color: var(--color-text); font: 600 12px var(--font-body); cursor: pointer; }
.page-return[hidden] { display: none; }
.page-return:hover { background: var(--color-lime); color: var(--color-on-accent); }
.page-return:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 4px; }
html:has(.case-study-overlay.is-open) .page-return { display: none; }
@media(max-width:600px) { .page-return { right: 12px; bottom: 12px; } }

html[data-theme="light"] .nav-cta .project-cta-btn,
html[data-theme="light"] .nav-cta .project-cta-btn::after {
    background: #587b7f !important;
    color: #fff !important;
    border-color: #587b7f !important;
    box-shadow: none !important;
}
html[data-theme="light"] .nav-cta .project-cta-btn::before { display: none; }
html[data-theme="light"] .nav-cta .project-cta-btn .project-cta-label { color: #fff; }
html[data-theme="light"] .nav-cta .project-cta-btn:hover,
html[data-theme="light"] .nav-cta .project-cta-btn:hover::after { background: #496b6f !important; }

/* October refinements: readable glass, consistent card edges, quiet footer access. */
.main-header.scrolled {
    background: rgba(28, 12, 30, .88) !important;
    backdrop-filter: blur(30px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(145%) !important;
    border-bottom: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 6px 24px rgba(16,5,18,.12);
}
html[data-theme="light"] .main-header.scrolled {
    background: rgba(255,249,239,.9) !important;
    border-bottom-color: rgba(88,123,127,.22);
}
.team-grid { align-items: stretch; }
.team-card { display: flex; flex-direction: column; }
.team-img-wrapper { flex-shrink: 0; }
.team-info { display: flex; flex-direction: column; flex: 1; }
.team-profile-links { margin-top: auto; padding-top: 18px; }
.footer-contact .footer-social-icons { justify-content: flex-start; padding-left: 0; margin-left: 0; }
.footer-admin-link { color: var(--color-text-muted); font: 400 12px var(--font-body); text-decoration: none; opacity: .75; }
.footer-admin-link:hover, .footer-admin-link:focus-visible { opacity: 1; text-decoration: underline; }
.project-card {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--color-border);
    background-clip: padding-box;
    border-radius: 20px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.project-card::before, .project-card::after { border-radius: inherit; pointer-events: none; }
.project-img-wrapper { overflow: hidden; border-radius: 19px 19px 0 0; }
.case-study-overlay .case-study-topbar { grid-template-columns: minmax(0,1fr) auto; }
html[data-theme="light"] {
    --color-bg: #fff9ef;
    --color-bg-darker: #f2e6d8;
    --color-surface: #fffdf7;
    --color-surface-strong: #f4dfd1;
    --color-card-bg: #fffdf7;
    --color-filter-panel: #fffdf7;
    --color-text: #302a38;
    --color-text-muted: #675967;
    --color-border: #d7c8bc;
}
html[data-theme="light"] .services-section { background: linear-gradient(140deg, #e3eeea, #fff2d8); }
html[data-theme="light"] .capability:nth-child(3n+1) .capability-circle { background: #d9eae7; border-color: #587b7f; }
html[data-theme="light"] .capability:nth-child(3n+2) .capability-circle { background: #f4dbce; color: #8b5547; border-color: #9d695a; }
html[data-theme="light"] .capability:nth-child(3n) .capability-circle { background: #f7e8ae; color: #6b5a29; border-color: #b7a05a; }
html[data-theme="light"] .capability:hover .capability-circle { background: #587b7f; color: white; }
html[data-theme="light"] .hero-video-stage { background: radial-gradient(ellipse at 65% 35%, #f4dbce, #e1eeea 50%, #fff9ef 85%); }
html[data-theme="light"] .hero-video-stage::after { background: linear-gradient(180deg, rgba(255,249,239,.25), rgba(255,249,239,.8)); }
html[data-theme="light"] .team-card:nth-child(even) { background: #f8e8dc; }
@supports not (backdrop-filter: blur(1px)) {
    .main-header.scrolled { background: #200b20 !important; }
    html[data-theme="light"] .main-header.scrolled { background: #fff9ef !important; }
}
.case-study-gallery-track.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; }
.case-study-gallery-track.gallery-large { display:grid; grid-template-columns:minmax(0,1fr); overflow:visible; }
.case-study-gallery-track:is(.gallery-grid,.gallery-large) figure { width:auto; min-width:0; }
.case-study-gallery-track.gallery-large img { width:100%; height:auto; max-height:75vh; object-fit:contain; }
.case-study-scroll[data-divider="line"] > section + section { border-top:1px solid var(--color-border); padding-top:32px; }
.case-study-scroll[data-divider="dot"] > section + section::before { content:'•'; display:block; color:var(--color-accent-ink); font-size:24px; grid-column:1 / -1; }
@media(max-width:600px) { .case-study-gallery-track.gallery-grid { grid-template-columns:minmax(0,1fr); } }

/* Equal resting team cards; expanding one keeps its neighbours compact. */
.team-grid { align-items: start; }
.team-collapsible .team-role { line-height: 1.5; min-height: 3em; }
.team-collapsible .team-bio { line-height: 1.6; height: 6.4em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.team-collapsible .team-principle { box-sizing: content-box; line-height: 1.6; height: 4.8em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; border-color: var(--color-border); }
.team-collapsible.is-expanded :is(.team-bio, .team-principle) { height: auto; overflow: visible; display: block; -webkit-line-clamp: unset; }
.team-read-more { align-self: flex-start; min-height: 36px; margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: var(--color-lime); font: 600 12px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.team-read-more:hover { text-decoration-thickness: 2px; }
.team-read-more:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
html[data-theme="light"] .team-read-more { color: var(--color-accent-ink); }
.footer-admin-link.is-logged-in { opacity: 1; }
.footer-admin-link.is-logged-in::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--color-accent-ink, #587b7f); vertical-align: middle; }
