/* ==========================================================================
   Lighthouse Search — Global Styles
   Design direction: calm, editorial, premium restraint.
   ========================================================================== */

:root {
    /* Colour — restrained, navy-led palette */
    --clr-navy-dark:   #060C13;
    --clr-navy:        #0A1724;
    --clr-teal:        #0E2637;
    --clr-ink:         #141A1F;
    --clr-text:        #2B3640;
    --clr-muted:       #5C6A76;
    --clr-soft:        #8A95A0;

    --clr-white:       #FFFFFF;
    --clr-off-white:   #FBFAF7;
    --clr-warm-grey:   #F4F2EC;
    --clr-rule:        #E3E1DB;
    --clr-rule-soft:   #EDECE7;

    --clr-text-light:  #DCE3EA;
    --clr-rule-dark:   rgba(255,255,255,0.10);

    /* Gold — reserved for the rarest details only */
    --clr-accent:      #B7996A;

    /* Type */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing rhythm */
    --space-xs:  0.5rem;
    --space-sm:  1.25rem;
    --space-md:  2.5rem;
    --space-lg:  5rem;
    --space-xl:  8rem;
    --space-xxl: 11rem;

    /* Soft, diffused shadows */
    --shadow-image: 0 40px 80px -40px rgba(10, 22, 34, 0.28),
                    0 20px 40px -25px rgba(10, 22, 34, 0.14);
    --shadow-card:  0 20px 50px -30px rgba(10, 22, 34, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.25s ease;
    --t-smooth: 0.6s var(--ease);
    --t-slow: 0.9s var(--ease);
}

/* --------------------------------------------------------------------------
   Reset
-------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--clr-text);
    background-color: var(--clr-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button { font: inherit; }

/* --------------------------------------------------------------------------
   Typography
-------------------------------------------------------------------------- */
.editorial-heading {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--clr-navy);
}
.editorial-heading.light { color: var(--clr-white); }

/* Sans-serif enforcement on UI / card / section-tier headings */
h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.35;
    color: var(--clr-ink);
}

.eyebrow-text {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 1.75rem;
}
.eyebrow-text.dark  { color: var(--clr-muted); }
.eyebrow-text.light { color: var(--clr-text-light); opacity: 0.75; }

.section-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.header-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--clr-muted);
    max-width: 620px;
}

.body-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
    max-width: 58ch;
}
.body-text.light { color: var(--clr-text-light); opacity: 0.85; }
.body-text:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout utilities
-------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section {
    padding: var(--space-xxl) 0;
}

.bg-soft  { background-color: var(--clr-off-white); }

.relative { position: relative; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.show-mobile   { display: none; }

/* --------------------------------------------------------------------------
   Buttons & links
-------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.05rem 2.4rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
}

.btn-sm { padding: 0.75rem 1.6rem; font-size: 0.75rem; }

.btn-primary {
    background-color: var(--clr-navy);
    color: var(--clr-white);
    border-color: var(--clr-navy);
}
.btn-primary:hover {
    background-color: var(--clr-teal);
    border-color: var(--clr-teal);
}

.btn-primary-light {
    background-color: var(--clr-white);
    color: var(--clr-navy);
    border-color: var(--clr-white);
}
.btn-primary-light:hover {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--clr-white);
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
    background-color: var(--clr-white);
    color: var(--clr-navy);
    border-color: var(--clr-white);
}

.btn-ghost-light {
    background-color: transparent;
    color: var(--clr-white);
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
}

.text-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-navy);
    line-height: 1;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--clr-navy);
    transition: color var(--t-fast), border-color var(--t-fast);
}
.text-link .arrow {
    margin-left: 10px;
    transition: transform var(--t-smooth);
}
.text-link:hover {
    color: var(--clr-teal);
    border-bottom-color: var(--clr-teal);
}
.text-link:hover .arrow { transform: translateX(5px); }

/* Dark-surface text-link variant */
.credibility-intro .text-link,
.section-credibility .text-link,
.final-cta .text-link {
    color: var(--clr-white);
    border-bottom-color: rgba(255,255,255,0.6);
}

/* --------------------------------------------------------------------------
   Header & navigation
-------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.75rem 0;
    transition: background-color var(--t-smooth),
                padding var(--t-smooth),
                box-shadow var(--t-smooth);
}

.site-header.scrolled {
    background-color: rgba(10, 23, 36, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.1rem 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

/* Logo (image wordmark) */
.logo {
    display: inline-flex;
    align-items: center;
    color: var(--clr-white);
    line-height: 1;
}

.logo-img {
    display: block;
    height: 34px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-img { height: 40px; }

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

.nav-link {
    color: var(--clr-white);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity var(--t-fast);
}
.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

/* Desktop dropdown menus */
.nav-item {
    display: inline-flex;
    align-items: center;
}

.nav-item-dropdown {
    position: relative;
}

/* Invisible hover bridge so the cursor can travel from trigger to panel
   without the dropdown closing mid-move. */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1.5rem;
    pointer-events: none;
}
.nav-item-dropdown:hover::after,
.nav-item-dropdown:focus-within::after {
    pointer-events: auto;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: -0.75rem;
    min-width: 240px;
    padding: 1.1rem 0;
    background-color: rgba(10, 23, 36, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--t-fast),
                visibility var(--t-fast),
                transform var(--t-smooth);
    z-index: 50;
}

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

.nav-dropdown-link {
    display: block;
    padding: 0.7rem 1.75rem;
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.65;
    transition: opacity var(--t-fast), background-color var(--t-fast);
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
    opacity: 1;
    background-color: rgba(255,255,255,0.04);
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Mobile toggle — minimal two-bar line */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}
.mobile-menu-toggle .bar {
    width: 100%;
    height: 1px;
    background-color: var(--clr-white);
    transition: transform var(--t-fast), opacity var(--t-fast);
}
.mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.mobile-menu-toggle.active .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-smooth), visibility var(--t-smooth);
    z-index: 99;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem 0;
    width: 100%;
    text-align: center;
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.mobile-link {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.95;
    line-height: 1;
}
.mobile-link:hover { opacity: 1; }

/* Parent row acts as toggle */
.mobile-group-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0.25rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.95;
    transition: opacity var(--t-fast);
}
.mobile-group-trigger:hover { opacity: 1; }
.mobile-group-label { line-height: 1; }

/* Plus → minus chevron (pure CSS) */
.mobile-chevron {
    position: relative;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.85;
}
.mobile-chevron::before,
.mobile-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: currentColor;
    transform: translate(-50%, -50%);
}
.mobile-chevron::before {
    width: 11px;
    height: 1px;
}
.mobile-chevron::after {
    width: 1px;
    height: 11px;
    transition: transform var(--t-fast);
}
.mobile-group-trigger[aria-expanded="true"] .mobile-chevron::after {
    transform: translate(-50%, -50%) scaleY(0);
}

/* Collapsible sublinks */
.mobile-sublinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    opacity: 0;
    transition: max-height var(--t-smooth), opacity var(--t-fast), padding-top var(--t-fast);
}
.mobile-nav-group.is-open .mobile-sublinks {
    max-height: 60vh;
    opacity: 1;
    padding-top: 1.25rem;
}

.mobile-sublink {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.55;
    line-height: 1.3;
    transition: opacity var(--t-fast);
}
.mobile-sublink:hover { opacity: 0.95; }

/* --------------------------------------------------------------------------
   Hero
-------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 0 8rem;
    overflow: hidden;
    background-color: var(--clr-navy-dark);
    color: var(--clr-white);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../images/cape-egmont-lighthouse-with-mountain-taranaki-pungarehu-new-zealand.jpg');
    background-size: cover;
    background-position: center 35%;
    opacity: 0.65;
    filter: saturate(0.88);
    transform: scale(1.04);
    will-change: transform;
    animation: hero-zoom 28s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-image { animation: none; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6,12,19,0.72) 0%, rgba(6,12,19,0.3) 45%, rgba(6,12,19,0.82) 100%),
        linear-gradient(90deg, rgba(6,12,19,0.55) 0%, rgba(6,12,19,0.1) 75%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 780px;
}

.hero-eyebrow {
    color: var(--clr-text-light);
    opacity: 0.7;
}

.hero-title {
    font-size: clamp(2.75rem, 5.2vw, 4.75rem);
    color: var(--clr-white);
    margin-bottom: 2.25rem;
    letter-spacing: -0.028em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.35vw, 1.15rem);
    line-height: 1.7;
    color: var(--clr-text-light);
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 3rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Intro / Philosophy
-------------------------------------------------------------------------- */
.section-intro {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
    overflow: hidden;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 6rem;
    align-items: center;
}

.intro-text {
    max-width: 520px;
}

.intro-visual {
    margin: 0;
    position: relative;
}

.intro-image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: var(--shadow-image);
    background-color: var(--clr-rule);
}

.intro-image-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(6,12,19,0.18) 100%);
    pointer-events: none;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
}

.intro-caption {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 2rem;
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--clr-muted);
    max-width: 440px;
}
.caption-rule {
    display: inline-block;
    flex-shrink: 0;
    width: 32px;
    height: 1px;
    background-color: var(--clr-navy);
    margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Breather image — full-width visual pause
-------------------------------------------------------------------------- */
.section-breather {
    width: 100%;
    height: 58vh;
    max-height: 640px;
    min-height: 380px;
    overflow: hidden;
    background-color: var(--clr-navy-dark);
}

.breather-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.92);
}

/* --------------------------------------------------------------------------
   Services — split editorial
-------------------------------------------------------------------------- */
.services-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.services-intro {
    position: sticky;
    top: 8rem;
    max-width: 440px;
}

.services-list {
    border-top: 1px solid var(--clr-rule);
}

.service-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 2.75rem;
    padding: 3.25rem 0;
    border-bottom: 1px solid var(--clr-rule);
    transition: background-color var(--t-smooth);
}
.service-row:hover { background-color: rgba(255,255,255,0.5); }

.service-row-index {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--clr-soft);
    line-height: 1;
    padding-top: 0.5rem;
    min-width: 2rem;
}

.service-row-title {
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 0.9rem;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.service-row-text {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--clr-soft);
    max-width: 56ch;
}

.service-row-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--clr-navy);
    font-size: 1.1rem;
    transition: transform var(--t-smooth);
    margin-top: 0.35rem;
}
.service-row:hover .service-row-link {
    transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Approach — vertical editorial phases
-------------------------------------------------------------------------- */
.approach-header {
    max-width: 720px;
    margin-bottom: var(--space-xl);
}

.approach-phases {
    border-top: 1px solid var(--clr-rule);
}

.approach-phase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    padding: 5rem 0;
    border-bottom: 1px solid var(--clr-rule);
}

.phase-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.phase-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--clr-navy);
    letter-spacing: -0.02em;
}

.phase-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.phase-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    max-width: 38ch;
}

.phase-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--clr-muted);
    max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Credibility — split dark section
-------------------------------------------------------------------------- */
.section-credibility {
    background-color: var(--clr-navy);
    color: var(--clr-white);
    padding: var(--space-xxl) 0;
    position: relative;
}

.credibility-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.credibility-intro {
    max-width: 500px;
}
.credibility-intro .section-title {
    color: var(--clr-white);
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}

.credibility-points {
    border-top: 1px solid var(--clr-rule-dark);
}

.credibility-point {
    padding: 2rem 0;
    border-bottom: 1px solid var(--clr-rule-dark);
}

.credibility-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-white);
    margin-bottom: 0.6rem;
    letter-spacing: 0.005em;
}

.credibility-text {
    font-size: 0.975rem;
    line-height: 1.7;
    color: var(--clr-text-light);
    opacity: 0.72;
    max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Industries — editorial list
-------------------------------------------------------------------------- */
.industries-header {
    max-width: 720px;
    margin-bottom: var(--space-xl);
}

.industries-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 5rem;
    border-top: 1px solid var(--clr-rule);
}

.industry-row {
    border-bottom: 1px solid var(--clr-rule);
}

.industry-link {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 2rem;
    row-gap: 0.6rem;
    padding: 2.25rem 0;
    align-items: start;
    transition: opacity var(--t-fast);
}
.industry-link:hover { opacity: 1; }

.industry-title {
    grid-column: 1;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--clr-navy);
    line-height: 1.25;
    transition: color var(--t-fast);
}
.industry-link:hover .industry-title { color: var(--clr-teal); }

.industry-text {
    grid-column: 1;
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--clr-muted);
    max-width: 52ch;
}

.industry-link .arrow {
    grid-column: 2;
    grid-row: 1;
    color: var(--clr-navy);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--t-smooth), transform var(--t-smooth);
    padding-top: 0.3rem;
}
.industry-link:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Insights — featured + supporting
-------------------------------------------------------------------------- */
.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: var(--space-lg);
}

.insights-editorial {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 5rem;
    align-items: start;
}

.insight-featured-link {
    display: block;
}

.insight-featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-image);
    background-color: var(--clr-rule);
}
.insight-featured-image .cover-img {
    transition: transform 1.2s var(--ease);
}
.insight-featured-link:hover .cover-img {
    transform: scale(1.03);
}

.insight-meta {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 1.25rem;
}

.insight-featured-title {
    font-size: clamp(1.75rem, 2.6vw, 2.3rem);
    color: var(--clr-navy);
    margin-bottom: 1.25rem;
    line-height: 1.18;
    letter-spacing: -0.01em;
    max-width: 22ch;
    transition: color var(--t-fast);
}
.insight-featured-link:hover .insight-featured-title {
    color: var(--clr-teal);
}

.insight-excerpt {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--clr-muted);
    margin-bottom: 1.75rem;
    max-width: 55ch;
}

.insights-supporting {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--clr-rule);
}

.insight-item {
    border-bottom: 1px solid var(--clr-rule);
}

.insight-link {
    display: block;
    padding: 2.25rem 0;
    transition: padding-left var(--t-smooth);
}
.insight-link:hover {
    padding-left: 0.5rem;
}

.insight-item-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--clr-navy);
    line-height: 1.3;
    margin-bottom: 0.9rem;
    max-width: 30ch;
    transition: color var(--t-fast);
}
.insight-link:hover .insight-item-title { color: var(--clr-teal); }

.insight-item-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--clr-muted);
    margin-bottom: 1.25rem;
    max-width: 48ch;
}

/* --------------------------------------------------------------------------
   Final CTA
-------------------------------------------------------------------------- */
.final-cta {
    background: linear-gradient(180deg, var(--clr-teal) 0%, var(--clr-navy) 100%);
    color: var(--clr-white);
    padding: calc(var(--space-xxl) + 2rem) 0;
}

.final-cta .eyebrow-text {
    color: var(--clr-text-light);
    opacity: 0.65;
    margin-bottom: 2.25rem;
}

.cta-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    color: var(--clr-white);
    max-width: 880px;
    margin: 0 auto 2.25rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--clr-text-light);
    opacity: 0.78;
    max-width: 600px;
    margin: 0 auto 3.25rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.cta-email {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--clr-text-light);
    opacity: 0.75;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 3px;
    transition: opacity var(--t-fast), border-color var(--t-fast);
}
.cta-email:hover {
    opacity: 1;
    border-bottom-color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--clr-navy-dark);
    color: var(--clr-text-light);
    padding: var(--space-xl) 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.15fr 1.15fr 1.1fr;
    gap: 3rem;
    margin-bottom: var(--space-lg);
}

.footer-logo {
    margin-bottom: 1.75rem;
}

.footer-positioning {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--clr-text-light);
    opacity: 0.55;
    max-width: 340px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.footer-links ul li { margin-bottom: 0.85rem; }

.footer-links a,
.footer-contact a {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    opacity: 0.6;
    transition: opacity var(--t-fast), color var(--t-fast);
}
.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--clr-white);
}

.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--clr-text-light);
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-rule-dark);
    font-size: 0.8rem;
    color: var(--clr-text-light);
    opacity: 0.5;
}
.footer-legal {
    display: flex;
    gap: 2rem;
}
.footer-legal a:hover { color: var(--clr-white); opacity: 1; }

/* --------------------------------------------------------------------------
   Scroll animations
-------------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--t-slow), transform var(--t-slow);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.4s; }

/* ==========================================================================
   SUBPAGE COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Hero (subpages)
-------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
    padding: 11rem 0 5.5rem;
    background-color: var(--clr-navy-dark);
    color: var(--clr-white);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 50%;
    opacity: 0.45;
    filter: saturate(0.85);
    /* The background-image URL is set inline on each page's
       <div class="page-hero-bg" style="background-image: url('...');"> */
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6,12,19,0.8) 0%, rgba(6,12,19,0.45) 40%, rgba(6,12,19,0.88) 100%),
        linear-gradient(90deg, rgba(6,12,19,0.5) 0%, rgba(6,12,19,0.1) 70%);
}

.page-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-content {
    max-width: 820px;
}

.page-hero-eyebrow {
    color: var(--clr-text-light);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.page-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    color: var(--clr-white);
    margin-bottom: 1.75rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.page-hero-lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.75;
    color: var(--clr-text-light);
    opacity: 0.82;
    max-width: 620px;
}

/* --------------------------------------------------------------------------
   Breadcrumb
-------------------------------------------------------------------------- */
.breadcrumb {
    position: absolute;
    top: 7.5rem;
    left: 0;
    right: 0;
    z-index: 3;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-text-light);
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 0.9rem;
    opacity: 0.45;
}

.breadcrumb-link {
    color: inherit;
    transition: opacity var(--t-fast);
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
}
.breadcrumb-link:hover {
    opacity: 1;
    border-bottom-color: rgba(255,255,255,0.5);
}

.breadcrumb-current {
    color: var(--clr-white);
    opacity: 0.55;
}

/* Breadcrumb on light page (rare) */
.breadcrumb.on-light .breadcrumb-list { color: var(--clr-muted); }
.breadcrumb.on-light .breadcrumb-current { color: var(--clr-navy); opacity: 0.55; }

/* --------------------------------------------------------------------------
   Generic editorial page section
-------------------------------------------------------------------------- */
.page-section { padding: var(--space-xxl) 0; }

.section-header {
    max-width: 720px;
    margin-bottom: var(--space-lg);
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-header.center .header-subtitle { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Split Layout (generic editorial two-column)
-------------------------------------------------------------------------- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.split-layout.even { grid-template-columns: 1fr 1fr; }

.split-intro {
    max-width: 440px;
}
.split-intro.sticky {
    position: sticky;
    top: 8rem;
}

.split-body > * + * { margin-top: 1.5rem; }

/* Image card nested inside a split-intro column (appears beneath the header) */
.split-intro-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-top: 2.5rem;
    overflow: hidden;
    background-color: var(--clr-rule);
    box-shadow: var(--shadow-image);
}
.split-intro-image .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
}

/* Engagement Scope layout — full-width header, then scope content + image below */
.scope-layout {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: start;
    margin-top: var(--space-md);
}

/* Body sits on the left, image on the right */
.scope-body  { grid-column: 1; }
.scope-image { grid-column: 2; }

.scope-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: var(--clr-rule);
    box-shadow: var(--shadow-image);
}
.scope-image .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
}

/* Value-grid inside scope body collapses to a single column — more breathing room */
.scope-body .value-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   Prose (long-form text blocks)
-------------------------------------------------------------------------- */
.prose { max-width: 62ch; }
.prose p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose.light p { color: var(--clr-text-light); opacity: 0.85; }

/* --------------------------------------------------------------------------
   Editorial bordered list
-------------------------------------------------------------------------- */
.editorial-list {
    border-top: 1px solid var(--clr-rule);
}
.editorial-list-item {
    border-bottom: 1px solid var(--clr-rule);
    padding: 2.5rem 0;
}
.editorial-list-item h3,
.editorial-list-item .list-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
}
.editorial-list-item p {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--clr-muted);
    max-width: 62ch;
}

.editorial-list.numbered .editorial-list-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 2rem;
    align-items: baseline;
}
.editorial-list-index {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--clr-soft);
    line-height: 1;
}

.editorial-list.dark {
    border-top-color: var(--clr-rule-dark);
}
.editorial-list.dark .editorial-list-item {
    border-bottom-color: var(--clr-rule-dark);
}
.editorial-list.dark .editorial-list-item h3,
.editorial-list.dark .editorial-list-item .list-title {
    color: var(--clr-white);
}
.editorial-list.dark .editorial-list-item p {
    color: var(--clr-text-light);
    opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Related cards (used on service / industry detail pages)
-------------------------------------------------------------------------- */
.related-section {
    background-color: var(--clr-off-white);
}
.related-header { margin-bottom: var(--space-md); }
.related-header h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem;
    background-color: var(--clr-white);
    border: 1px solid var(--clr-rule);
    transition: transform var(--t-smooth), border-color var(--t-fast);
    min-height: 220px;
}
.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--clr-navy);
}
.related-card-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--clr-navy);
    line-height: 1.3;
}
.related-card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--clr-muted);
    flex-grow: 1;
}
.related-card-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-navy);
    margin-top: auto;
}
.related-card-link .arrow { margin-left: 8px; transition: transform var(--t-smooth); }
.related-card:hover .related-card-link .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Team grid
-------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
}

.team-member {
    display: flex;
    flex-direction: column;
}

.team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--clr-warm-grey);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-soft);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
}
.team-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
}

.team-name {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 0.35rem;
    letter-spacing: -0.005em;
}

.team-role {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--clr-muted);
    max-width: 42ch;
}

/* --------------------------------------------------------------------------
   Team feature layout (editorial — photo + long-form bio side by side)
-------------------------------------------------------------------------- */
.team-feature-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.team-feature {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: start;
}

.team-feature-reverse {
    grid-template-columns: 7fr 5fr;
}
.team-feature-reverse .team-feature-photo { order: 2; }
.team-feature-reverse .team-feature-body { order: 1; }

.team-feature-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--clr-warm-grey);
    overflow: hidden;
    box-shadow: var(--shadow-image);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-soft);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-style: italic;
    letter-spacing: 0.02em;
}
.team-feature-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
}

.team-feature-body {
    padding-top: 0.75rem;
}

.team-feature-name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    color: var(--clr-navy);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.team-feature-role {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 2.25rem;
}

.team-feature-bio p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--clr-text);
    margin-bottom: 1.25rem;
    max-width: 62ch;
}
.team-feature-bio p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Case studies
-------------------------------------------------------------------------- */
.case-studies-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.case-study {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-rule);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 4rem;
    transition: box-shadow var(--t-smooth);
}
.case-study:hover { box-shadow: var(--shadow-card); }

.case-study-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.case-study-sector {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
}
.case-study-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--clr-navy);
    letter-spacing: -0.01em;
}

.case-study-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
}
.case-study-block h4 {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 0.75rem;
}
.case-study-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--clr-text);
}

/* --------------------------------------------------------------------------
   Insight cards (insights hub page)
-------------------------------------------------------------------------- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
    margin-top: var(--space-md);
}

.insight-tile {
    display: flex;
    flex-direction: column;
}
.insight-tile-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background-color: var(--clr-rule);
    box-shadow: var(--shadow-card);
}
.insight-tile-image .cover-img {
    transition: transform 1.2s var(--ease);
}
.insight-tile:hover .insight-tile-image .cover-img {
    transform: scale(1.04);
}
.insight-tile-title {
    font-size: 1.2rem;
    line-height: 1.35;
    color: var(--clr-navy);
    margin-bottom: 0.75rem;
    font-weight: 500;
    max-width: 28ch;
    transition: color var(--t-fast);
}
.insight-tile:hover .insight-tile-title { color: var(--clr-teal); }
.insight-tile-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--clr-muted);
    margin-bottom: 1rem;
    max-width: 40ch;
}

/* --------------------------------------------------------------------------
   Insights layout — sticky sidebar + article grid
-------------------------------------------------------------------------- */
.insights-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: var(--space-md);
}

.insights-sidebar {
    position: sticky;
    top: 8.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-right: 1rem;
}

/* Search */
.insights-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.insights-search-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
}
.insights-search-field {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--clr-rule);
    transition: border-color var(--t-fast);
}
.insights-search-field:focus-within {
    border-bottom-color: var(--clr-navy);
}
.insights-search-icon {
    position: absolute;
    left: 0;
    color: var(--clr-muted);
    pointer-events: none;
}
.insights-search-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-text);
    background: transparent;
    border: none;
    padding: 0.75rem 0 0.75rem 1.75rem;
    outline: none;
    width: 100%;
}
.insights-search-input::placeholder {
    color: var(--clr-soft);
    opacity: 0.75;
}
/* Hide native search clear button for a cleaner look */
.insights-search-input::-webkit-search-decoration,
.insights-search-input::-webkit-search-cancel-button,
.insights-search-input::-webkit-search-results-button,
.insights-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

/* Filter groups — editorial vertical list */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}
.filter-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
}
.filter-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}
.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.925rem;
    color: var(--clr-muted);
    cursor: pointer;
    padding: 0.35rem 0;
    text-align: left;
    line-height: 1.3;
    transition: color var(--t-fast);
}
.filter-btn:hover { color: var(--clr-navy); }
.filter-btn.active {
    color: var(--clr-navy);
    font-weight: 500;
}

/* When an insights-grid sits inside the layout, use 2 columns instead of 3 */
.insights-layout .insights-grid {
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
}

/* --------------------------------------------------------------------------
   Contact page
-------------------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

/* Contact info on the left, form on the right */
.contact-aside     { grid-column: 1; grid-row: 1; }
.contact-form-wrap { grid-column: 2; grid-row: 1; }

.contact-form-wrap {
    background-color: var(--clr-white);
    padding: 3.5rem;
    border: 1px solid var(--clr-rule);
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.form-input,
.form-textarea,
.form-select {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--clr-text);
    background-color: var(--clr-white);
    border: 1px solid var(--clr-rule);
    padding: 0.95rem 1rem;
    transition: border-color var(--t-fast);
    border-radius: 2px;
    width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--clr-navy);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23546473' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.form-submit {
    align-self: flex-start;
    margin-top: 0.75rem;
}

.form-privacy {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--clr-muted);
    margin-top: 0.5rem;
}

.contact-aside > * + * { margin-top: 2.75rem; }

.contact-aside-intro .eyebrow-text {
    margin-bottom: 1.25rem;
}

.contact-aside-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    color: var(--clr-navy);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.contact-aside-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--clr-muted);
    max-width: 42ch;
}

.contact-block h3 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clr-muted);
    margin-bottom: 1rem;
}

.contact-block p,
.contact-block a {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--clr-text);
}
.contact-block a {
    border-bottom: 1px solid var(--clr-rule);
    transition: border-color var(--t-fast);
}
.contact-block a:hover {
    border-bottom-color: var(--clr-navy);
}

.discretion-note {
    padding: 2.25rem 2rem;
    background: linear-gradient(180deg, var(--clr-teal) 0%, var(--clr-navy) 100%);
    color: var(--clr-white);
    border-left: none;
}
.discretion-note h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-white);
    margin-bottom: 0.6rem;
    letter-spacing: 0;
    text-transform: none;
}
.discretion-note p {
    font-size: 0.925rem;
    line-height: 1.75;
    color: var(--clr-text-light);
    opacity: 0.82;
}

/* --------------------------------------------------------------------------
   Value / key point blocks (used across detail pages)
-------------------------------------------------------------------------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
}

.value-block h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 0.9rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--clr-rule);
}
.value-block p {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--clr-muted);
    max-width: 50ch;
}

/* --------------------------------------------------------------------------
   Intro block (for simple short sections)
-------------------------------------------------------------------------- */
.section-narrow {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.section-narrow .body-text {
    margin-left: auto;
    margin-right: auto;
}


/* Subtle editorial breakout — intro image bleeds past container on desktop */
@media (min-width: 1200px) {
    .intro-grid { grid-template-columns: 1fr 1.08fr; }
    .intro-visual {
        margin-right: -5%;
    }
}

@media (max-width: 1200px) {
    .container { padding: 0 2rem; }

    .intro-grid,
    .services-split,
    .credibility-split,
    .insights-editorial,
    .split-layout,
    .contact-layout { gap: 4rem; }

    .insights-grid,
    .related-grid,
    .team-grid { gap: 2rem; }
}

@media (max-width: 1024px) {
    :root {
        --space-xl: 6rem;
        --space-xxl: 8rem;
    }

    .desktop-nav { gap: 1.75rem; }
    .nav-link { font-size: 0.75rem; }

    .hero { padding: 9rem 0 6rem; }

    .intro-grid,
    .services-split,
    .credibility-split,
    .insights-editorial,
    .split-layout,
    .split-layout.even,
    .contact-layout,
    .scope-layout,
    .insights-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    /* Collapse the explicit column placement on single-column stack */
    .contact-aside,
    .contact-form-wrap {
        grid-column: 1;
        grid-row: auto;
    }
    /* Info first, then form */
    .contact-aside     { order: 1; }
    .contact-form-wrap { order: 2; }
    .insights-sidebar {
        position: static;
        padding-right: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem 3rem;
    }
    .insights-search { flex: 1 1 100%; }
    .filter-group { flex: 1 1 200px; }
    .scope-body,
    .scope-image { grid-column: 1; }
    .scope-image { max-width: 500px; }
    .split-intro-image { max-width: 500px; }

    .services-intro,
    .split-intro.sticky { position: static; }

    .page-hero { padding: 10rem 0 4.5rem; min-height: 52vh; }
    .page-hero-title { font-size: clamp(2rem, 4vw, 3rem); }

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

    .team-feature,
    .team-feature-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .team-feature-reverse .team-feature-photo { order: 0; }
    .team-feature-reverse .team-feature-body { order: 0; }
    .team-feature-photo { max-width: 420px; aspect-ratio: 4 / 5; }
    .team-feature-list { gap: 4.5rem; }
    .team-feature-body { padding-top: 0; }

    .case-study {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    .case-study-sections { grid-template-columns: 1fr 1fr; }

    .contact-form-wrap { padding: 2.5rem; }
    .value-grid { gap: 2.5rem; }

    .approach-phase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    .phase-meta { flex-direction: row; align-items: baseline; gap: 1.5rem; }
    .phase-number { font-size: 2.75rem; }

    .industries-list { grid-template-columns: 1fr; gap: 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 4rem;
        --space-xl: 5rem;
        --space-xxl: 6.5rem;
    }

    .container { padding: 0 1.5rem; }

    .desktop-nav,
    .hidden-mobile { display: none !important; }
    .mobile-menu-toggle { display: flex; }
    .show-mobile { display: block; }

    .site-header { padding: 1.25rem 0; }
    .site-header.scrolled { padding: 1rem 0; }

    .logo-img { height: 28px; }
    .footer-logo .logo-img { height: 32px; }

    .hero { padding: 8rem 0 5rem; min-height: 88vh; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero-ctas { flex-direction: column; align-items: flex-start; width: 100%; }
    .hero-ctas .btn { width: 100%; max-width: 320px; padding: 1rem 1.5rem; }

    .section-breather { height: 42vh; min-height: 280px; }

    .section { padding: var(--space-xxl) 0; }
    .section-title { font-size: 2rem; margin-bottom: 1.5rem; }

    .intro-image-card { aspect-ratio: 4 / 5; }
    .intro-caption { margin-top: 1.5rem; }

    .service-row {
        grid-template-columns: auto 1fr;
        gap: 1.5rem 1.25rem;
        padding: 2.25rem 0;
    }
    .service-row-link {
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: auto;
        height: auto;
        padding-top: 0.5rem;
    }

    .approach-phase { padding: 2.5rem 0; }
    .phase-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .phase-number { font-size: 2.25rem; }
    .phase-title { font-size: 1.3rem; }

    .insights-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .insight-featured-title { font-size: 1.6rem; }

    .cta-title { font-size: 1.9rem; }
    .cta-subtitle { font-size: 1rem; margin-bottom: 2.25rem; }
    .cta-actions { gap: 1.25rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        justify-items: center;
    }
    .footer-brand,
    .footer-links,
    .footer-contact { display: flex; flex-direction: column; align-items: center; }
    .footer-brand .logo { justify-content: center; }
    .footer-positioning { margin: 0 auto; }
    .footer-links ul { padding: 0; }
    .footer-links ul li { list-style: none; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

    .page-hero { padding: 8.5rem 0 3.5rem; min-height: 46vh; }
    .page-hero-title { font-size: 1.9rem; }
    .breadcrumb { top: 6rem; }
    .breadcrumb-list { font-size: 0.68rem; }

    .form-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-form-wrap { padding: 2rem 1.5rem; }

    .insights-grid,
    .insights-layout .insights-grid,
    .related-grid,
    .team-grid,
    .value-grid { grid-template-columns: 1fr; gap: 2rem; }

    .insights-sidebar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .insights-search {
        align-items: center;
        width: 100%;
        max-width: 360px;
    }
    .insights-search-field { width: 100%; }
    .insights-search-input { text-align: center; padding-left: 1.75rem; padding-right: 1.75rem; }

    .filter-group {
        flex: 1 1 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .filter-options { align-items: center; }
    .filter-btn { text-align: center; }

    .case-study { padding: 2rem; gap: 2rem; }
    .case-study-sections { grid-template-columns: 1fr; gap: 1.5rem; }
    .case-study-title { font-size: 1.4rem; }

    .editorial-list.numbered .editorial-list-item {
        grid-template-columns: auto 1fr;
        gap: 1.25rem;
        padding: 2rem 0;
    }
}

/* --------------------------------------------------------------------------
   Single Post — Full-width editorial layout
-------------------------------------------------------------------------- */
.single-article {
    max-width: 880px;        /* comfortable editorial reading width */
    margin: 0 auto;          /* center within the container */
}

.single-article .prose {
    max-width: 100%;         /* remove the 62ch constraint */
}

.single-article .prose p,
.single-article .prose ul,
.single-article .prose ol,
.single-article .prose blockquote {
    max-width: 720px;        /* keep paragraphs readable */
    margin-left: auto;
    margin-right: auto;
}

/* Let images, figures and embeds break out to full article width */
.single-article .prose img,
.single-article .prose figure,
.single-article .prose .wp-block-image,
.single-article .prose .wp-block-embed,
.single-article .prose .wp-block-gallery {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Headings inside post content */
.single-article .prose h2,
.single-article .prose h3,
.single-article .prose h4 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--clr-navy);
}

.single-article .prose h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.single-article .prose h3 { font-size: 1.5rem; }

/* Meta row */
.single-meta {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--clr-rule);
}

/* Tags + post navigation centered */
.single-tags,
.post-nav {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--clr-rule);
}

.post-nav-prev:empty,
.post-nav-next:empty { display: none; }

@media (max-width: 768px) {
    .single-article .prose p,
    .single-article .prose h2,
    .single-article .prose h3,
    .single-article .prose h4,
    .single-meta,
    .single-tags,
    .post-nav { max-width: 100%; }
}

/* ==========================================================================
   Single Post — Editorial Blog Layout
   ========================================================================== */

.single-article {
    max-width: 880px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Meta row (date • author • reading time)
-------------------------------------------------------------------------- */
.single-meta {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--clr-rule);
}

/* --------------------------------------------------------------------------
   Prose — long-form article content
-------------------------------------------------------------------------- */
.single-article .prose {
    max-width: 100%;
}

/* All text-based blocks share the same readable column width */
.single-article .prose > p,
.single-article .prose > ul,
.single-article .prose > ol,
.single-article .prose > blockquote,
.single-article .prose > h2,
.single-article .prose > h3,
.single-article .prose > h4,
.single-article .prose > h5,
.single-article .prose > h6,
.single-article .prose > .wp-block-quote,
.single-article .prose > .wp-block-list {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Paragraph rhythm — generous editorial spacing */
.single-article .prose > p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--clr-text);
    margin-bottom: 1.75rem;
}

.single-article .prose > p:last-child {
    margin-bottom: 0;
}

/* Lead paragraph (first paragraph) — slightly larger, sets the tone */
.single-article .prose > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--clr-ink);
    margin-bottom: 2.25rem;
}

/* --------------------------------------------------------------------------
   Headings within the article
-------------------------------------------------------------------------- */
.single-article .prose > h2,
.single-article .prose > h3,
.single-article .prose > h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-navy);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.single-article .prose > h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
}

.single-article .prose > h3 {
    font-size: 1.5rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.single-article .prose > h4 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    color: var(--clr-ink);
}

/* First heading shouldn't have huge top margin */
.single-article .prose > h2:first-child,
.single-article .prose > h3:first-child {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Lists
-------------------------------------------------------------------------- */
.single-article .prose > ul,
.single-article .prose > ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.single-article .prose > ul { list-style: disc; }
.single-article .prose > ol { list-style: decimal; }

.single-article .prose li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--clr-text);
    margin-bottom: 0.6rem;
    padding-left: 0.4rem;
}

.single-article .prose li::marker {
    color: var(--clr-soft);
}

.single-article .prose li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.single-article .prose li ul,
.single-article .prose li ol {
    margin-top: 0.6rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   Blockquote — restrained editorial pull-quote
-------------------------------------------------------------------------- */
.single-article .prose > blockquote,
.single-article .prose > .wp-block-quote {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0 0.5rem 2rem;
    border-left: 2px solid var(--clr-navy);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--clr-navy);
    letter-spacing: -0.005em;
}

.single-article .prose > blockquote p,
.single-article .prose > .wp-block-quote p {
    margin-bottom: 0.75rem;
}

.single-article .prose > blockquote cite,
.single-article .prose > .wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

/* --------------------------------------------------------------------------
   Images & figures — match the text column width
-------------------------------------------------------------------------- */
.single-article .prose figure,
.single-article .prose .wp-block-image,
.single-article .prose > img,
.single-article .prose > p > img,
.single-article .prose .wp-block-embed,
.single-article .prose .wp-block-video {
    display: block;
    width: 100%;
    max-width: 720px;       /* Match paragraph column */
    margin: 2.75rem auto;
    box-shadow: var(--shadow-image);
}

.single-article .prose figure img,
.single-article .prose .wp-block-image img,
.single-article .prose > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Figure captions */
.single-article .prose figcaption,
.single-article .prose .wp-block-image figcaption {
    margin-top: 1rem;
    padding: 0 0.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--clr-muted);
    text-align: left;
    box-shadow: none;
}

/* WordPress alignment classes — let users break out wider if they want */
.single-article .prose .alignwide,
.single-article .prose .wp-block-image.alignwide {
    max-width: 880px;       /* Full article width */
    margin-left: auto;
    margin-right: auto;
}

.single-article .prose .alignfull,
.single-article .prose .wp-block-image.alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Inline left/right floats — keep at smaller size */
.single-article .prose .alignleft {
    float: left;
    margin: 0.5rem 2rem 1.5rem 0;
    max-width: 50%;
}
.single-article .prose .alignright {
    float: right;
    margin: 0.5rem 0 1.5rem 2rem;
    max-width: 50%;
}

/* --------------------------------------------------------------------------
   Inline elements
-------------------------------------------------------------------------- */
.single-article .prose a {
    color: var(--clr-navy);
    border-bottom: 1px solid var(--clr-rule);
    transition: border-color var(--t-fast), color var(--t-fast);
}
.single-article .prose a:hover {
    color: var(--clr-teal);
    border-bottom-color: var(--clr-navy);
}

.single-article .prose strong { font-weight: 600; color: var(--clr-ink); }
.single-article .prose em { font-style: italic; }

.single-article .prose code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92em;
    background-color: var(--clr-warm-grey);
    padding: 0.15em 0.45em;
    border-radius: 3px;
    color: var(--clr-ink);
}

.single-article .prose hr {
    max-width: 720px;
    margin: 3.5rem auto;
    border: none;
    border-top: 1px solid var(--clr-rule);
}

/* --------------------------------------------------------------------------
   Tags + post navigation
-------------------------------------------------------------------------- */
.single-tags {
    max-width: 720px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-rule);
}

.single-tags .eyebrow-text {
    margin-bottom: 1rem;
}

.single-tags .filter-options {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.post-nav {
    max-width: 720px;
    margin: 4rem auto 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--clr-rule);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-nav-prev:empty,
.post-nav-next:empty { display: none; }

.post-nav-next { margin-left: auto; text-align: right; }

/* --------------------------------------------------------------------------
   Mobile
-------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .single-article .prose > p,
    .single-article .prose > p:first-of-type,
    .single-article .prose > ul,
    .single-article .prose > ol,
    .single-article .prose > blockquote,
    .single-article .prose > h2,
    .single-article .prose > h3,
    .single-article .prose > h4,
    .single-article .prose figure,
    .single-article .prose .wp-block-image,
    .single-article .prose > img,
    .single-article .prose hr,
    .single-meta,
    .single-tags,
    .post-nav {
        max-width: 100%;
    }

    .single-article .prose > p:first-of-type {
        font-size: 1.1rem;
    }

    .single-article .prose > h2 {
        font-size: 1.6rem;
        margin-top: 2.5rem;
    }

    .single-article .prose > blockquote,
    .single-article .prose > .wp-block-quote {
        font-size: 1.2rem;
        padding-left: 1.25rem;
    }

    .single-article .prose .alignleft,
    .single-article .prose .alignright {
        float: none;
        max-width: 100%;
        margin: 2rem auto;
    }

    .post-nav {
        flex-direction: column;
        gap: 1.25rem;
    }
    .post-nav-next { text-align: left; margin-left: 0; }
}