/**
 * M Creative Master Design System
 * Style 1: Bold Editorial (The Visionary Strategist)
 * Architecture Baseline: 2026 Production Edition
 */

/* ==========================================================================
   0. Global Font Engine Imports (Fixes web-safe fallback bug)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,700&display=swap');

/* ==========================================================================
   1. Core Design Tokens & Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --cream: #FBF9F6;         /* Primary Warm Background */
    --purple: #2D1A47;        /* Brand Primary - Deep Velvet Purple */
    --crimson: #FF2A4B;       /* Brand Accent - Electric Crimson */
    --ink: #1A1A1A;           /* Editorial Typography Neutral */
    --oatmeal: #F4F1EA;       /* Muted Structural Section Contrast */
    --muted-gray: #666666;    /* Secondary Copy & Metadata Neutral */
    --border-light: rgba(26, 26, 26, 0.1);

    /* Typography Foundations */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

/* ==========================================================================
   2. Global Resets & Base Semantics
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

/* Structural Layout Scaffolding */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 120px 0;
}

/* Typography Utility Tokens */
.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--purple);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 6px;
    display: inline-block;
    margin-bottom: 30px;
}

/* ==========================================================================
   3. Interactive Button Systems
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn:hover {
    background-color: var(--crimson);
    border-color: var(--crimson);
    color: #FFFFFF;
}

.btn-light {
    border-color: var(--cream);
    color: var(--cream);
}

.btn-light:hover {
    background-color: var(--cream);
    color: var(--purple);
    border-color: var(--cream);
}

/* ==========================================================================
   4. Global Header & Multi-Level Dropping Nav Mechanics
   ========================================================================== */
#global-nav-container {
    border-bottom: 1px solid var(--border-light);
    background: var(--cream);
    position: relative;
    z-index: 900;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: auto;
    display: block;
}

.logo-mark {
    height: 64px;
}

.logo-wordmark {
    height: 64px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 950;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link-item {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
    cursor: pointer;
    display: block;
    padding: 10px 0;
}

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

/* Nested Cascading Dropdown Drawers */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: var(--cream);
    border: 1px solid rgba(26, 26, 26, 0.12);
    padding: 15px 20px;
    list-style: none;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 15px 35px rgba(45, 26, 71, 0.05);
    border-radius: 2px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    margin-bottom: 4px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    padding: 6px 0;
    transition: color 0.15s ease;
}

.dropdown-item a:hover {
    color: var(--crimson);
}

.connect-btn {
    border: 2px solid var(--ink);
    padding: 10px 28px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.connect-btn:hover {
    background-color: var(--crimson);
    border-color: var(--crimson);
    color: #FFFFFF;
}

/* ==========================================================================
   5. Media & Editorial Image Container Standards
   ========================================================================== */
.editorial-image-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #EAE5DF;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.editorial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.05); 
    transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-solo:hover .editorial-image,
.team-card:hover .editorial-image,
.case-study-hero:hover .editorial-image,
.case-image-block:hover .editorial-image {
    filter: grayscale(0) contrast(1);
    transform: scale(1.02);
}

/* Hero image bleeds full-bleed left/right; keep the color reveal but cancel the zoom. */
.hero-solo:hover .editorial-image {
    transform: none;
}

/* ==========================================================================
   6. View 1: Strategic Homepage Components
   ========================================================================== */
/* Kinetic, centered hero: headline/copy/CTA sit above the fold, with a
   peek of the full-bleed image band inviting the scroll. */
.hero-solo {
    display: flex;
    flex-direction: column;
}

.hero-solo-content {
    min-height: calc(100vh - 125px - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 50px 40px 40px;
}

.hero-solo-content .label {
    margin-bottom: 32px;
}

.hero-solo-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4.6vw, 4.6rem);
    line-height: 1.1;
    color: var(--purple);
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.hero-solo-content .hero-sub {
    font-size: 1.2rem;
    max-width: 580px;
    margin: 0 auto 36px;
}

.hero-solo-content h1 .br-mobile {
    display: none;
}

.hero-solo-band {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: clamp(320px, 46vw, 620px);
    overflow: hidden;
    background: #EAE5DF;
}

.hero-solo-band .hero-cycle-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease, filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-solo-band .hero-cycle-img.is-active {
    opacity: 1;
}

.hero-solo-band .hero-cycle-img.object-top {
    object-position: top;
}

.hero-solo-band .hero-cycle-img.object-top-quarter {
    object-position: center 25%;
}

.hero-sub {
    font-size: 1.25rem;
    color: #333333;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.65;
}

.split-section {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.split-left {
    flex: 1;
    min-width: 250px;
}

.split-right {
    flex: 2;
    min-width: 400px;
    max-width: 820px;
}

.split-right h2 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 25px;
}

.split-right p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #333333;
}

.client-grid-section {
    padding-bottom: 120px;
}

.client-grid-section .section-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 70px 0 0;
}

.client-grid-section .logo-ticker-row {
    margin-top: 120px;
}

.logo-ticker-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo-ticker-blurb {
    flex: 0 0 240px;
    max-width: 240px;
}

.logo-ticker-blurb p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--purple);
    margin: 0;
}

/* Continuous scrolling logo ticker: the track holds the logo set twice
   back-to-back so translateX(-50%) creates a seamless, endless loop. */
.logo-ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

/* Edge fades as overlays in the page color rather than a CSS mask:
   iOS Safari mis-renders mask-image over a wide animated layer
   (logos vanish or appear cropped mid-scroll) */
.logo-ticker::before,
.logo-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6%;
    z-index: 1;
    pointer-events: none;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), rgba(251, 249, 246, 0));
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), rgba(251, 249, 246, 0));
}

.logo-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 100px;
}

/* Animated by the script in index.html: items are absolutely positioned
   and moved individually (hover pause is handled there too) */
.logo-ticker-track.is-js {
    display: block;
    position: relative;
    width: auto;
}

.logo-ticker-track.is-js .logo-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.logo-ticker-item {
    flex: 0 0 auto;
    height: 96px;
    display: flex;
    align-items: center;
}

.logo-ticker-item img {
    height: 100%;
    width: auto;
    max-width: 270px;
    object-fit: contain;
    display: block;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (hover: hover) {
    .logo-ticker-item img:hover {
        filter: grayscale(0) opacity(1);
    }
}

.logo-ticker-item img.logo-wsf {
    height: 70%;
}

.logo-ticker-item img.logo-habitat,
.logo-ticker-item img.logo-tmcf,
.logo-ticker-item img.logo-unc-health,
.logo-ticker-item img.logo-prek {
    height: 70%;
}

.logo-ticker-item img.logo-novant {
    height: 58%;
}

@media (prefers-reduced-motion: reduce) {
    .logo-ticker-track {
        overflow-x: auto;
    }
}

.data-strip {
    background-color: var(--purple);
    color: var(--cream);
    padding: 90px 0;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

/* Sized to fit the longest figure ($1,000,000,000+) without overlapping
   the next column; all three headings share this scale for consistency. */
.data-item h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    color: var(--crimson);
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
}

.data-item p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.6;
}

.data-item-link {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.data-item-link:hover {
    color: var(--crimson);
}

.cap-list {
    border-top: 2px solid var(--ink);
}

.cap-item {
    border-bottom: 2px solid var(--ink);
    padding: 40px 0;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.cap-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--crimson);
    font-weight: 700;
    width: 50px;
    padding-top: 4px;
}

.cap-content {
    flex: 1;
}

.cap-content h3 {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    color: var(--purple);
    margin-bottom: 15px;
}

.cap-content p {
    font-size: 1.1rem;
    color: #333333;
    max-width: 850px;
}

/* ==========================================================================
   7. View 2: "Why Us" Collective Ledger Components
   ========================================================================= */
.team-intro {
    max-width: 950px;
    margin-bottom: 80px;
}

.team-intro h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--purple);
    margin-bottom: 25px;
    line-height: 1.2;
}

.team-intro p {
    font-size: 1.25rem;
    color: #333333;
}

.principles-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
    margin-top: 40px; 
}

.principle-card {
    background: #FFFFFF;
    padding: 35px 25px;
    border: 1px solid rgba(26, 26, 26, 0.04);
    border-left: 4px solid var(--purple);
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--crimson);
    box-shadow: 0 20px 40px rgba(45, 26, 71, 0.03);
}

.principle-card h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--purple);
    margin-bottom: 12px;
}

.principle-card p {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
    gap: 50px;
    /* border-top removed to eliminate the double-rule layout conflict */
    padding-top: 40px; /* Reduced from 80px to pull the circular headshots closer to the header line */
    margin-top: 20px;
}

.team-card {
    background: transparent;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.team-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.team-meta h3 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    color: var(--purple);
    margin-bottom: 2px;
}

.team-meta .role {
    font-size: 1rem;
    color: var(--crimson);
    font-weight: 600;
}

.linkedin-icon-link {
    display: inline-flex;
    color: var(--purple);
    transition: color 0.2s ease;
    padding-top: 6px;
}

.linkedin-icon-link:hover {
    color: var(--crimson);
}

.linkedin-icon-link svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.team-bio {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.6;
    text-align: left;
}

/* ==========================================================================
   8. View 3: Narrative Case Study Elements
   ========================================================================== */
.case-study-hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.case-meta-panel {
    padding-right: 40px;
}

.case-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    color: var(--purple);
    line-height: 1.15;
    margin-bottom: 25px;
}

.case-intro-text {
    font-size: 1.25rem;
    color: #333333;
    line-height: 1.65;
    margin-bottom: 30px;
}

.case-sidebar-details {
    border-top: 1px solid rgba(26, 26, 26, 0.15);
    padding-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.meta-detail-item span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-gray);
    margin-bottom: 4px;
}

.meta-detail-item p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.case-body-narrative {
    background-color: var(--oatmeal);
    padding: 100px 0;
    margin: 60px 0;
}

.narrative-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.narrative-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 20px;
}

.narrative-content p {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 25px;
    line-height: 1.7;
}

.case-image-gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-bottom: 80px;
}

.case-caption {
    font-size: 0.85rem;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 14px;
}

.case-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.case-single-image {
    margin-bottom: 80px;
}

.case-carousel {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #EAE5DF;
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 80px;
}

.case-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.case-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: rgba(251, 249, 246, 0.85);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.case-carousel-arrow svg {
    width: 22px;
    height: 22px;
}

.case-carousel-arrow:hover {
    background-color: var(--crimson);
    color: #FFFFFF;
}

.case-carousel-arrow.prev {
    left: 20px;
}

.case-carousel-arrow.next {
    right: 20px;
}

.case-carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.case-carousel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background-color: rgba(251, 249, 246, 0.6);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.case-carousel-dots button.is-active {
    background-color: var(--crimson);
    transform: scale(1.2);
}

/* Full-bleed helper: breaks a section out of the 40px page gutter and
   re-applies it as padding so inner content still lines up. Used for
   case-study sections that need an edge-to-edge background/rule. */
.full-bleed {
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
    width: calc(100% + 80px);
}

@media (max-width: 680px) {
    .case-carousel {
        aspect-ratio: 4 / 3;
    }

    .full-bleed {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        width: calc(100% + 40px);
    }
}

.anthem-section {
    text-align: center;
    padding: 100px 0;
}

.anthem-section .label {
    border-color: rgba(45, 26, 71, 0.3);
}

.anthem-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    color: var(--purple);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.anthem-quote:last-of-type {
    margin-bottom: 0;
}

.case-deliverables {
    background-color: var(--purple);
    color: var(--cream);
    padding: 80px 0;
    margin-bottom: 80px;
}

.case-deliverables .label {
    color: var(--cream);
    border-color: rgba(251, 249, 246, 0.3);
}

.case-deliverables p {
    font-size: 1.2rem;
    max-width: 900px;
    line-height: 1.7;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.related-project-card {
    text-decoration: none;
    display: block;
}

.related-project-card .editorial-image-wrapper {
    margin-bottom: 16px;
}

.related-project-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--purple);
}

@media (max-width: 1024px) {
    .case-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 680px) {
    .case-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   9. Structural Layout Footer Space
   ========================================================================== */
footer {
    background-color: var(--ink);
    color: var(--cream);
    padding: 110px 0 60px 0;
    text-align: center;
}

footer h2 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    line-height: 1.15;
    max-width: 1100px;
    margin: 0 auto 45px auto;
    font-weight: 600;
}

footer p {
    color: #BBBBBB;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-links {
    margin-top: 70px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 0.85rem;
    color: #777777;
}

.footer-certifications {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 44px;
    margin-bottom: 55px;
}

.cert-bcorp-link {
    margin-right: 20px;
}

.footer-certifications a {
    display: inline-flex;
    line-height: 0;
    cursor: pointer;
}

.footer-certifications .cert-logo-fade {
    display: inline-flex;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.footer-certifications a:hover .cert-logo-fade {
    opacity: 0.75;
}

.footer-certifications img {
    height: 60px;
    width: auto;
    filter: invert(1);
    cursor: pointer;
}

.footer-certifications img.cert-logo-large {
    height: 82px;
    filter: invert(1) brightness(2.6);
}

.footer-certifications img.cert-logo-bcorp {
    height: 75px;
}

.footer-certifications img.cert-logo-gbn {
    height: 50px;
}

/* ==========================================================================
   10. Comprehensive Multi-Device Breakpoint Adjustments
   ========================================================================== */
@media (max-width: 1200px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .case-study-hero,
    .narrative-row,
    .case-image-gallery {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-solo-content {
        min-height: 0;
        padding: 60px 32px 40px;
    }

    .hero-solo-band {
        height: clamp(260px, 55vw, 480px);
    }

    .case-meta-panel {
        padding-right: 0;
    }

    .nav-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .logo-ticker-item {
        height: 72px;
    }
    .logo-ticker-track {
        gap: 60px;
    }
    .logo-ticker-row {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }
    .logo-ticker-blurb {
        flex-basis: auto;
        max-width: none;
    }
    .logo-ticker-blurb p {
        text-align: center;
    }
    .logo-ticker {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-padding {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero-solo-content h1 {
        /* Scales with viewport so the forced mobile line breaks
           (br.br-mobile) fit identically on every phone width */
        font-size: clamp(23px, 7.7vw, 33px);
    }
    .hero-solo-content h1 .br-mobile {
        display: inline;
    }

    .split-right h2 {
        font-size: 1.5rem;
    }

    .client-grid-section {
        padding-bottom: 88px;
    }

    .client-grid-section .section-divider {
        margin-top: 24px;
    }

    .client-grid-section .logo-ticker-row {
        margin-top: 32px;
    }

    .logo-ticker-item {
        height: 88px;
    }

    .footer-certifications {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        align-items: center;
        gap: 36px 24px;
    }

    .cert-bcorp-link {
        margin-right: 0;
    }

    .cap-item-tight {
        gap: 16px;
        padding: 16px 0;
    }

    .cap-item-tight h3 {
        line-height: 1.25;
    }

    .nav-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

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

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

    .split-left,
    .split-right {
        flex: 1 1 100%;
        min-width: 0;
        max-width: none;
    }

    .split-section {
        gap: 24px;
    }

    .split-left .label {
        margin-bottom: 0;
    }

    .hero-solo-content .hero-sub {
        font-size: 1rem;
    }

    .split-right p {
        font-size: 1rem;
    }

    .team-intro h1 {
        font-size: 1.75rem;
    }

    .team-intro p {
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        text-align: center;
        background-color: var(--cream);
        border-top: 1px solid var(--border-light);
        box-shadow: 0 20px 30px rgba(26, 26, 26, 0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.3s;
    }

    .nav-menu.is-open {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link-item {
        padding: 16px 20px;
    }

    .connect-btn {
        display: inline-block;
        margin: 14px 0 20px;
    }

    footer h2 {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   11. Editorial Typography Overrides
   ========================================================================== */
.hero-highlight {
    color: var(--crimson) !important;
    font-family: var(--font-serif) !important;
    font-weight: 700 !important; /* Explicitly forces Bold */
    font-style: italic !important; /* Explicitly forces Italic */
    display: inline-block;
}

/* ==========================================================================
   12. Two-Column Solutions Grid Framework
   ========================================================================== */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 20px;
    /* Top border removed to eliminate line-stacking layout conflict */
    padding-top: 10px;
}

.cap-item-tight {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0; 
    border-bottom: 1px solid var(--border-light);
}

.cap-item-tight h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem; /* Increased size scale for prominent editorial framing */
    color: var(--purple);
    margin-bottom: 8px;
    font-weight: 600;
}

.cap-item-tight p {
    font-size: 1.1rem; /* Perfectly matched to established main body copy scale */
    color: #333333;    /* Uniform neutral alignment */
    line-height: 1.6;
}

/* Responsive collapse rule */
@media (max-width: 768px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 10px;
    }
}

/* ==========================================================================
   13. How We're Different - 3-Column Breakout Matrix Layout
   ========================================================================== */
.different-section {
    background-color: var(--purple);
    color: var(--cream);
    
    /* Advanced Viewport Breakout Utility: Forces edge-to-edge execution across container walls */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    padding: 120px 0;
    margin-top: 100px;
    margin-bottom: 100px;
}

@media (max-width: 680px) {
    .different-section {
        padding: 64px 0;
        margin-top: 56px;
        margin-bottom: 56px;
    }
}

.different-grid {
    display: grid;
    /* Clean 3-Column Editorial Grid Configuration Matrix */
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
    row-gap: 50px;
}

.different-card {
    border-top: 1px solid rgba(251, 249, 246, 0.12);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* On mobile the grid collapses to one column, so the first card's
   top border sits directly under the section heading's own rule -
   redundant there. On desktop's 3-up grid it's the row-1 divider,
   so it stays. */
@media (max-width: 680px) {
    .different-card:first-child {
        border-top: none;
        padding-top: 0;
    }
}

/* Icon Container Token */
.different-icon-wrapper {
    color: var(--crimson);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.different-icon-wrapper svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.different-icon-wrapper svg.lucide {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.different-icon-wrapper svg.bcorp-icon {
    width: 40px;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.different-card h4 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--cream);
    margin-bottom: 10px;
    font-weight: 600;
}

.different-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(251, 249, 246, 0.75);
    text-align: left;
}

/* Responsive collapse matrix rules */
@media (max-width: 1024px) {
    .different-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }
}

@media (max-width: 680px) {
    .different-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

/* ==========================================================================
   14. Team Rectangular Headshot Framework (Fixes Portrait Distortions)
   ========================================================================== */
.team-card .editorial-image-wrapper {
    width: 75%;
    align-self: flex-start;
    aspect-ratio: 1 / 1 !important; /* Forces every single card box into a matching square */
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    background-color: #EAE5DF;
    border: 1px solid rgba(26, 26, 26, 0.04);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.04);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card .editorial-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* The magic setting: automatically centers and crops vertical photos */
    object-position: center;
    filter: grayscale(1) contrast(1.05);
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 680px) {
    .team-card .editorial-image-wrapper {
        width: 58%;
        align-self: flex-start;
    }
}

/* Structural Interaction Enhancements */
.team-card:hover .editorial-image-wrapper {
    transform: translateY(-4px); /* Sleek vertical lift on hover */
    box-shadow: 0 16px 32px rgba(45, 26, 71, 0.08);
}

.team-card:hover .editorial-image {
    filter: grayscale(0) contrast(1); /* Smooth reveal of native picture color colors */
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-form {
    max-width: 720px;
}

.form-status {
    max-width: 720px;
    font-weight: 600;
}

.form-status:empty {
    display: none;
}

.form-status-success {
    color: var(--purple);
    background-color: var(--oatmeal);
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.form-status-error {
    color: var(--crimson);
    margin-bottom: 24px;
}

.field-error {
    display: block;
    color: var(--crimson);
    font-size: 0.8rem;
    margin-top: 6px;
}

.field-error:empty {
    display: none;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--crimson);
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
    background-color: #FFFFFF;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    padding: 14px 16px;
    transition: border-color 0.2s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
}

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

.form-group textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    margin-top: 12px;
}

@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}