/* =============================================================================
   Block 1 — @font-face
   Almarai: 300 / 400 / 700 / 800. No italic variant exists — never use
   font-style: italic anywhere in this file.
   Paths are relative to this file (assets/css/ → assets/fonts/).
============================================================================= */

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('../fonts/Almarai-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* =============================================================================
   Block 2 — CSS Custom Properties
============================================================================= */

:root {
    --color-navy:        #0B1F3A;
    --color-gold:        #C9A64B;
    --color-gold-dim:    rgba(201, 166, 75, 0.12);
    --color-ivory:       #F5F2EB;
    --color-coal:        #2B2B2B;
    --color-error:       #c0392b;
    --color-error-dim:   rgba(192, 57, 43, 0.06);

    --font-primary:      'Almarai', sans-serif;

    --space-section:     120px;
    --space-section-sm:  64px;

    --max-width:         1280px;

    --transition-base:   0.3s ease;

    /* Shorthand aliases — used in blocks 34–45 */
    --navy:  var(--color-navy);
    --gold:  var(--color-gold);
    --coal:  var(--color-coal);
    --ivory: var(--color-ivory);

    /* Extended UX tokens */
    --shadow-card-rest:  0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-btn-hover:  0 4px 16px rgba(201, 166, 75, 0.35);
    --transition-slow:   0.6s ease-out;
    --transition-bounce: 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --letter-heading:    0.03em;
}


/* =============================================================================
   Block 3 — Minimal Reset
============================================================================= */

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

ul,
ol {
    list-style: none;
}

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

/* Remove browser focus ring for mouse/pointer users globally.
   :focus-visible rules below restore it for keyboard users only. */
*:focus:not(:focus-visible) {
    outline: none;
}


/* =============================================================================
   Block 4 — Base Typography
   No font-style: italic anywhere — Almarai has no italic variant.
============================================================================= */

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-ivory);
    background-color: var(--color-navy);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: var(--letter-heading);
    color: var(--color-ivory);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
    max-width: 68ch;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
    color: var(--color-ivory);
}


/* =============================================================================
   Block 5 — Layout Utilities
============================================================================= */

.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-padding {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =============================================================================
   Block 6 — Navigation
============================================================================= */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color var(--transition-base),
                box-shadow var(--transition-base);
}

#site-header > div {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#site-header.scrolled {
    background-color: rgba(11, 31, 58, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 166, 75, 0.2),
                0 4px 24px rgba(0, 0, 0, 0.3);
}

#site-header a[rel="home"] {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-ivory);
    letter-spacing: 0.04em;
    text-decoration: none;
}

#primary-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

#primary-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-ivory);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

#primary-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-base);
}

#primary-nav a:not(.nav-cta):hover::after,
#primary-nav a:not(.nav-cta)[aria-current="page"]::after {
    transform: scaleX(1);
}

#primary-nav a:hover,
#primary-nav a:focus-visible,
#primary-nav a[aria-current="page"] {
    color: var(--color-gold);
}

#primary-nav a.nav-cta {
    border: 1px solid var(--color-gold);
    border-radius: 2px;
    padding: 8px 20px;
    color: var(--color-gold);
    transition: background-color var(--transition-base),
                color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

#primary-nav a.nav-cta:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
    transform: scale(1.04);
    box-shadow: var(--shadow-btn-hover);
}

#primary-nav a.nav-cta:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-ivory);
    transition: transform var(--transition-base),
                opacity var(--transition-base),
                background-color var(--transition-base);
}

/* Hamburger → X animation when mobile nav is open */
.nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

/* Close button inside mobile nav overlay — hidden on desktop */
.nav-close {
    display: none;
}


/* =============================================================================
   Block 7 — Buttons
============================================================================= */

.btn-primary,
.btn-ghost {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 2px;
    cursor: pointer;
    will-change: transform;
    transition: background-color var(--transition-base),
                color var(--transition-base),
                border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.btn-primary {
    background-color: var(--color-navy);
    color: var(--color-ivory);
    border: 1px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
    transform: scale(1.05);
    box-shadow: var(--shadow-btn-hover);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-ivory);
    border: 1px solid var(--color-ivory);
}

.btn-ghost:hover {
    background-color: var(--color-ivory);
    color: var(--color-navy);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 242, 235, 0.15);
}

.btn-ghost:focus-visible {
    outline: 2px solid var(--color-ivory);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-ghost { transform: none !important; box-shadow: none !important; }
}


/* =============================================================================
   Block 8 — Gold Divider
   Used via <hr aria-hidden="true"> in gold-divider.twig.
============================================================================= */

hr,
.gold-divider {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
    border: none;
    margin: 0 auto;
}


/* =============================================================================
   Block 9 — Hero
============================================================================= */

.hero {
    min-height: 100vh;
    background-color: var(--color-navy);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    opacity: 0.04;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--space-section) 0;
}

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

.hero-headline {
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 700;
    color: var(--color-ivory);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subheadline {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}


/* =============================================================================
   Block 10 — Positioning Strip
============================================================================= */

.positioning {
    background-color: var(--color-coal);
    padding: var(--space-section) 0;
}

.positioning-tagline {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    color: var(--color-ivory);
    line-height: 1.3;
    margin: 32px 0 24px;
    max-width: 760px;
}

.positioning-body {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.75;
    line-height: 1.8;
    max-width: 640px;
}

.positioning-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 12px;
    opacity: 0.6;
}


/* =============================================================================
   Block 11 — Services Section + Card
============================================================================= */

.services {
    background-color: var(--color-navy);
    padding: var(--space-section) 0;
}

.section-heading {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--color-ivory);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-subheading {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 0.04em;
    margin-bottom: 64px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 64px;
    counter-reset: service-counter;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 166, 75, 0.15);
    padding: 48px 40px;
    counter-increment: service-counter;
    transition: border-color var(--transition-base),
                background-color var(--transition-base),
                transform var(--transition-base);
}

.service-card:hover {
    border-color: rgba(201, 166, 75, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.service-card-number::before {
    content: counter(service-counter, decimal-leading-zero);
    font-size: 13px;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 32px;
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-ivory);
    margin-bottom: 16px;
}

.service-card-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 32px;
}


/* =============================================================================
   Block 12 — Why Mizan Prime
============================================================================= */

.why-mizan {
    background-color: var(--color-ivory);
    padding: var(--space-section) 0;
}

.why-mizan .section-heading {
    color: var(--color-navy);
}

.why-mizan .gold-divider {
    margin-bottom: 48px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 64px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    color: var(--color-gold);
    font-size: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

.why-text {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-navy);
    line-height: 1.6;
}


/* =============================================================================
   Block 13 — Case Study Card
   Used on homepage and case-studies archive.
============================================================================= */

.featured-cases {
    background-color: var(--color-coal);
    padding: var(--space-section) 0;
}

.featured-cases .section-heading {
    color: var(--color-ivory);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-top: 64px;
}

.case-study-card {
    background-color: rgba(11, 31, 58, 0.6);
    border: 1px solid rgba(201, 166, 75, 0.12);
    padding: 48px 40px;
    overflow: hidden;
    will-change: transform, box-shadow;
    box-shadow: var(--shadow-card-rest);
    transition: border-color var(--transition-base),
                background-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.case-study-card:hover {
    border-color: var(--color-gold);
    background-color: rgba(11, 31, 58, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.card-sector {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-ivory);
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-outcome {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: 32px;
}

.card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.card-link:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}


/* =============================================================================
   Block 14 — Sectors Grid
============================================================================= */

.sectors {
    background-color: var(--color-navy);
    padding: var(--space-section) 0;
}

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

.sector-item {
    border: 1px solid rgba(201, 166, 75, 0.15);
    padding: 48px 32px;
    text-align: center;
    transition: border-color var(--transition-base),
                background-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
    cursor: default;
}

.sector-item:hover {
    border-color: var(--color-gold);
    background-color: var(--color-gold-dim);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-rest);
}

.sector-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-ivory);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sector-icon {
    display: block;
    margin: 0 auto 16px;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    filter: brightness(1.5);
}


/* =============================================================================
   Block 15 — Signature Statement
============================================================================= */

.signature {
    background-color: var(--color-coal);
    padding: var(--space-section) 0;
}

.signature-headline {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    color: var(--color-ivory);
    line-height: 1.15;
    max-width: 860px;
    letter-spacing: -0.02em;
    margin: 32px 0 32px;
}

.signature-support {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    max-width: 640px;
    line-height: 1.8;
}


/* =============================================================================
   Block 16 — CTA Strip
============================================================================= */

@keyframes cta-glow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-strip {
    background: linear-gradient(
        135deg,
        var(--color-navy) 0%,
        rgba(11, 31, 58, 0.80) 50%,
        var(--color-navy) 100%
    );
    background-size: 200% 200%;
    animation: cta-glow 8s ease-in-out infinite;
    padding: var(--space-section) 0;
    text-align: center;
    border-top: 1px solid rgba(201, 166, 75, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .cta-strip { animation: none; background: var(--color-navy); }
}

.cta-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cta-headline {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--color-ivory);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}


/* =============================================================================
   Block 17 — Inner Page Shared + About Page
============================================================================= */

/* Shared across all inner page heroes */
.page-hero {
    min-height: 60vh;
    background-color: var(--color-navy);
    display: flex;
    align-items: center;
    padding: var(--space-section) 0;
    padding-top: calc(72px + var(--space-section));
}

.page-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.page-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--color-ivory);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 760px;
    margin-bottom: 40px;
}

.page-subheadline {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    max-width: 640px;
    line-height: 1.7;
    margin-top: 24px;
}

/* Two-column layout used on About intro */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* About — Who We Are */
.about-intro {
    background-color: var(--color-ivory);
    padding: var(--space-section) 0;
}

.about-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 32px;
}

.about-intro p {
    font-size: 17px;
    font-weight: 300;
    color: var(--color-navy);
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: none;
}

.capability-statement {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1.2;
}

/* About — Capabilities */
.about-capabilities {
    background-color: var(--color-coal);
    padding: var(--space-section) 0;
    position: relative;
}

.about-capabilities > .container {
    position: relative;
    z-index: 1;
}

/* Capabilities Timeline (replaces .capabilities-grid) */
.capabilities-timeline {
    position: relative;
    max-width: 800px;
    margin: 64px auto 0;
    padding: 0;
}

.capabilities-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(201, 166, 75, 0.3) 10%,
        rgba(201, 166, 75, 0.3) 90%,
        transparent
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 64px;
}

.timeline-item:nth-child(odd) {
    margin-left: 55%;
}

.timeline-item:nth-child(even) {
    margin-right: 55%;
    text-align: right;
}

.timeline-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-gold);
    transform: rotate(45deg);
    top: 8px;
}

.timeline-item:nth-child(odd) .timeline-node {
    left: -32px;
}

.timeline-item:nth-child(even) .timeline-node {
    right: -32px;
    left: auto;
}

.timeline-item:nth-child(even) .timeline-icon {
    margin-left: auto;
}

.timeline-content {
    border: 1px solid rgba(201, 166, 75, 0.12);
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
}

.timeline-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 12px;
}

.timeline-icon {
    display: block;
    width: 28px;
    height: 28px;
    opacity: 0.6;
    filter: brightness(1.5);
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-ivory);
    line-height: 1.4;
}

.about-intro-text,
.about-intro-pillars {
    min-width: 0;
}


/* =============================================================================
   Block 17B — Breadcrumb Navigation
============================================================================= */

.breadcrumb {
    margin-bottom: 16px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 400;
    color: rgba(245, 242, 235, 0.5);
    letter-spacing: 0.06em;
}

.breadcrumb-item a {
    color: rgba(245, 242, 235, 0.5);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--color-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(201, 166, 75, 0.3);
    margin-inline: 8px;
}

.breadcrumb-item--current {
    color: var(--color-gold);
    opacity: 0.8;
}


/* =============================================================================
   Block 18 — Services Page
============================================================================= */

.services-detail {
    background-color: var(--color-navy);
    padding: var(--space-section) 0;
}

.service-detail-item {
    position: relative;
    border-bottom: 1px solid rgba(201, 166, 75, 0.15);
    padding: 80px 0;
}

.service-detail-item:last-child {
    border-bottom: none;
}

.service-number {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 24px;
}

.service-detail-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    color: var(--color-ivory);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.service-detail-body {
    font-size: 17px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.75;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 40px;
}

.service-detail-points {
    list-style: none;
    padding: 0;
}

.service-detail-points li {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.service-detail-points li::before {
    content: '—';
    color: var(--color-gold);
    position: absolute;
    left: 0;
}

.service-visual {
    position: absolute;
    top: 48px;
    right: 40px;
    width: 100px;
    height: 100px;
    opacity: 0.15;
    filter: grayscale(100%) brightness(2);
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.engagement-model {
    background-color: var(--color-coal);
    padding: var(--space-section) 0;
}

.engagement-model-body {
    font-size: 17px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.75;
    max-width: 680px;
    line-height: 1.8;
    margin-top: 32px;
}

.engagement-model .engagement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    margin-top: 48px;
}

.engagement-type {
    padding: 48px 40px;
    border: 1px solid rgba(201, 166, 75, 0.12);
    transition: border-color var(--transition-base),
                background var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.engagement-type:hover {
    border-color: var(--color-gold);
    background: var(--color-gold-dim);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-rest);
}

.engagement-type-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-ivory);
    margin-bottom: 12px;
}

.engagement-type-body {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    line-height: 1.7;
}


/* =============================================================================
   Block 19 — Case Studies Archive
============================================================================= */

.sector-filter {
    background-color: var(--color-coal);
    padding: 32px 0;
    border-bottom: 1px solid rgba(201, 166, 75, 0.1);
}

.sector-filter nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Filter trigger — hidden on desktop, shown on mobile via Block 25 */
.filter-trigger {
    display: none;
}

.filter-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-ivory);
    opacity: 0.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.filter-link:hover,
.filter-link:focus-visible,
.filter-link.active {
    opacity: 1;
    border-color: rgba(201, 166, 75, 0.4);
    color: var(--color-gold);
}

.cases-archive {
    background-color: var(--color-navy);
    padding: var(--space-section) 0;
}

.cases-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.no-results {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.5;
    text-align: center;
    padding: 80px 0;
}


/* =============================================================================
   Block 20 — Single Case Study
============================================================================= */

.case-hero {
    background-color: var(--color-navy);
    padding: var(--space-section) 0;
    padding-top: 160px;
}

.case-hero-meta {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.case-sector {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.case-origin {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-ivory);
    opacity: 0.65;
}

.case-headline {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    color: var(--color-ivory);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 760px;
    margin-bottom: 40px;
}

.case-body {
    background-color: var(--color-ivory);
    padding: var(--space-section) 0;
}

.case-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.case-block {
    padding: 40px 0;
    border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.case-block:last-child {
    border-bottom: none;
}

.case-block-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.case-block-text {
    font-size: 17px;
    font-weight: 300;
    color: var(--color-navy);
    line-height: 1.8;
    max-width: none;
}

.case-main {
    min-width: 0;
}

.case-sidebar {
    background-color: var(--color-navy);
    padding: 48px 40px;
    align-self: start;
}

.sidebar-item {
    margin-bottom: 32px;
}

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

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.sidebar-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-ivory);
    display: block;
}

.case-nav {
    background-color: var(--color-coal);
    padding: 64px 0;
}

.back-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.back-link:hover {
    color: var(--color-ivory);
}

.back-link:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

.default-single {
    background-color: var(--color-navy);
    padding: calc(72px + var(--space-section)) 0 var(--space-section);
}

.default-single-header {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(201, 166, 75, 0.2);
}

.default-single-body {
    max-width: 720px;
}

.default-single-body p {
    font-weight: 300;
    font-size: 1.0625rem;
    color: rgba(245, 242, 235, 0.8);
    line-height: 1.9;
    margin-bottom: 24px;
    max-width: none;
}


.card-hidden {
    display: none;
}

/* =============================================================================
   Block 21 — How We Work Page
============================================================================= */

.how-principles {
    background-color: var(--color-navy);
    padding: var(--space-section) 0;
}

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

.principle-item {
    border: 1px solid rgba(201, 166, 75, 0.12);
    padding: 64px 48px;
}

.principle-step {
    font-size: 48px;
    font-weight: 300;
    color: var(--color-gold);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 32px;
    display: block;
}

.principle-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-ivory);
    margin: 24px 0 20px;
}

.principle-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    line-height: 1.8;
}

.principle-icon {
    display: block;
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    opacity: 0.7;
    filter: brightness(1.5);
}

.work-model {
    background-color: var(--color-coal);
    padding: var(--space-section) 0;
}

.work-model .section-heading {
    color: var(--color-ivory);
}

.work-model-body {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.75;
    line-height: 1.8;
    max-width: 680px;
    margin-top: 40px;
}


/* =============================================================================
   Block 22 — Contact Page
============================================================================= */

/* .contact-hero inherits .page-hero from Block 17 — only overrides below */
.contact-hero {
    min-height: 50vh;
}

.contact-hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    max-width: 560px;
    line-height: 1.7;
    margin-top: 24px;
}

.contact-body {
    background-color: var(--color-ivory);
    padding: var(--space-section) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: start;
}

.contact-col-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.contact-col-sub {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-navy);
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: 48px;
}

.form-wrapper {
    width: 100%;
}

.contact-info-col {
    background-color: var(--color-navy);
    padding: 56px 48px;
}

.contact-info-col .contact-col-heading {
    color: var(--color-ivory);
    margin-bottom: 40px;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-detail-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(201, 166, 75, 0.12);
}

.contact-detail-item:last-of-type {
    border-bottom: none;
}

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.detail-value {
    display: block;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-ivory);
    text-decoration: none;
    font-style: normal;
    line-height: 1.6;
}

a.detail-value {
    transition: color var(--transition-base);
}

a.detail-value:hover,
a.detail-value:focus-visible {
    color: var(--color-gold);
}

.contact-engagement-note {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(201, 166, 75, 0.12);
}

.contact-engagement-note h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.contact-engagement-note ul {
    list-style: none;
    padding: 0;
}

.contact-engagement-note li {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-ivory);
    opacity: 0.7;
    padding: 10px 0 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.contact-engagement-note li::before {
    content: '—';
    color: var(--color-gold);
    position: absolute;
    left: 0;
}

/* CF7 overrides — scoped to .form-wrapper */

.form-wrapper .wpcf7 {
    width: 100%;
}

.form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-bottom: 16px;
}

.form-wrapper .wpcf7-text,
.form-wrapper .wpcf7-email,
.form-wrapper .wpcf7-select,
.form-wrapper .wpcf7-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(11, 31, 58, 0.25);
    border-radius: 0;
    padding: 16px 0;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    color: var(--color-navy);
    outline: none;
    transition: border-color var(--transition-base);
}

.form-wrapper .wpcf7-select {
    appearance: none;
    -webkit-appearance: none;
}

.form-wrapper .wpcf7-text:focus,
.form-wrapper .wpcf7-text:focus-visible,
.form-wrapper .wpcf7-email:focus,
.form-wrapper .wpcf7-email:focus-visible,
.form-wrapper .wpcf7-select:focus,
.form-wrapper .wpcf7-select:focus-visible,
.form-wrapper .wpcf7-textarea:focus,
.form-wrapper .wpcf7-textarea:focus-visible {
    border-bottom-color: var(--color-gold);
}

.form-wrapper ::placeholder {
    color: var(--color-navy);
    opacity: 0.4;
    font-weight: 300;
}

/* Select arrow — :has() supported in all modern browsers since 2023 */
.form-wrapper .wpcf7-form-control-wrap:has(select) {
    position: relative;
}

.form-wrapper .wpcf7-form-control-wrap:has(select)::after {
    content: '↓';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 14px;
    pointer-events: none;
}

.form-wrapper .wpcf7-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-wrapper .wpcf7-submit {
    margin-top: 32px;
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-navy);
    padding: 16px 48px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-wrapper .wpcf7-submit:hover,
.form-wrapper .wpcf7-submit:focus-visible {
    background: var(--color-gold);
    color: var(--color-navy);
}

.form-wrapper .wpcf7-not-valid {
    border-bottom-color: var(--color-error);
}

.form-wrapper .wpcf7-not-valid-tip {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-error);
    margin-top: 4px;
}

.form-wrapper .wpcf7-response-output {
    display: none;
}

.form-wrapper .wpcf7-form.sent .wpcf7-response-output {
    display: block;
    border: none;
    background: rgba(201, 166, 75, 0.08);
    border-left: 2px solid var(--color-gold);
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 300;
    color: var(--color-navy);
    margin-top: 24px;
}

.form-wrapper .wpcf7-form.invalid .wpcf7-response-output,
.form-wrapper .wpcf7-form.failed .wpcf7-response-output {
    display: block;
    border: none;
    background: var(--color-error-dim);
    border-left: 2px solid var(--color-error);
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 300;
    color: var(--color-navy);
    margin-top: 24px;
}

/* Block 22 — Contact responsive */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-col {
        order: -1;
        margin-bottom: 0;
        padding: 48px 40px;
    }

    .contact-body {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-col {
        padding: 40px 24px;
    }

    .contact-col-heading {
        font-size: 22px;
    }

    .form-wrapper .wpcf7-submit {
        width: 100%;
        text-align: center;
    }

    .contact-hero {
        min-height: 40vh;
    }
}


/* =============================================================================
   Block 22B — Floating Labels (CF7 contact form)
============================================================================= */

.wpcf7-form-control-wrap {
    position: relative;
}

.float-label {
    position: absolute;
    top: 16px;
    left: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    color: var(--color-navy);
    opacity: 0.4;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.float-label--lifted .float-label {
    transform: translateY(-22px) scale(0.75);
    opacity: 0.7;
}

.float-label--lifted input::placeholder,
.float-label--lifted textarea::placeholder {
    color: transparent;
}

/* Enhanced validation states */
.form-wrapper .wpcf7-not-valid {
    border-bottom-color: var(--color-error);
    box-shadow: 0 1px 0 var(--color-error);
}

.form-wrapper .wpcf7-form-control-wrap.wpcf7-validates-as-required:not(.wpcf7-not-valid) .wpcf7-text:not(:placeholder-shown),
.form-wrapper .wpcf7-form-control-wrap.wpcf7-validates-as-required:not(.wpcf7-not-valid) .wpcf7-email:not(:placeholder-shown) {
    border-bottom-color: rgba(201, 166, 75, 0.8);
}


/* =============================================================================
   Block 23 — Footer
============================================================================= */

#site-footer {
    background-color: var(--color-navy);
    border-top: 1px solid rgba(201, 166, 75, 0.2);
    padding-top: var(--space-section-sm);
    padding-bottom: 40px;
}

#site-footer > div:first-child {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

#site-footer p,
#site-footer a {
    color: rgba(245, 242, 235, 0.8);
    font-size: 0.875rem;
    line-height: 1.8;
    text-decoration: none;
}

#site-footer a:hover,
#site-footer a:focus-visible {
    color: var(--color-gold);
}

#site-footer nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#site-footer address {
    font-style: normal;
}

#site-footer address p {
    margin-bottom: 8px;
}

/* Bottom copyright bar */
#site-footer > div:last-child {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid rgba(201, 166, 75, 0.15);
}

#site-footer > div:last-child p {
    font-size: 0.8125rem;
    color: rgba(245, 242, 235, 0.5);
}


/* =============================================================================
   Block 24 — GSAP Initial States
   Elements with .js-fade-up start invisible and translated down.
   GSAP animates them to opacity: 1, translateY: 0 in Session 5.
   Without this block, content is visible before JS runs.
============================================================================= */

.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.js-slide-up {
    opacity: 0;
    transform: translateY(40px);
}

.js-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--transition-bounce), transform var(--transition-bounce);
}

.js-scale-in {
    opacity: 0;
    transform: scale(0.95);
}

.js-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.gold-divider {
    transform: scaleX(0);
    transform-origin: left center;
}


/* =============================================================================
   Block 25 — Responsive
============================================================================= */

/* Tablet — max-width: 1024px */
@media (max-width: 1024px) {
    :root {
        --space-section: 80px;
    }

    .container {
        padding: 0 32px;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
    }

    .hero-watermark {
        width: 75%;
        opacity: 0.03;
    }

    /* Homepage grids */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 40px 32px;
    }

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

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

    /* About */
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Services */
    .engagement-model .engagement-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-item {
        padding: 60px 0;
    }

    /* How We Work */
    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principle-item {
        padding: 48px 32px;
    }

    /* Case Studies Archive */
    .cases-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }

    .sector-filter nav {
        gap: 8px;
        flex-wrap: wrap;
    }

    /* Single Case Study */
    .case-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .case-sidebar {
        margin-top: 0;
        border-top: 1px solid rgba(201, 166, 75, 0.15);
    }

    /* Footer */
    #site-footer > div:first-child {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Mobile — max-width: 768px */
@media (max-width: 768px) {
    :root {
        --space-section: 64px;
    }

    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .header-inner {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    #primary-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-navy);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    #primary-nav.nav-open {
        transform: translateX(0);
    }

    #primary-nav ul {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    #primary-nav ul li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    }

    #primary-nav.nav-open ul li { opacity: 1; transform: translateX(0); }
    #primary-nav.nav-open ul li:nth-child(1) { transition-delay: 0.10s; }
    #primary-nav.nav-open ul li:nth-child(2) { transition-delay: 0.15s; }
    #primary-nav.nav-open ul li:nth-child(3) { transition-delay: 0.20s; }
    #primary-nav.nav-open ul li:nth-child(4) { transition-delay: 0.25s; }
    #primary-nav.nav-open ul li:nth-child(5) { transition-delay: 0.30s; }
    #primary-nav.nav-open ul li:nth-child(6) { transition-delay: 0.35s; }

    @media (prefers-reduced-motion: reduce) {
        #primary-nav ul li { opacity: 1; transform: none; transition: none; }
    }

    #primary-nav a {
        font-size: 24px;
        font-weight: 300;
    }

    #primary-nav a.nav-cta {
        display: inline-block;
        margin-top: 16px;
        padding: 14px 32px;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

    .hero-watermark {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Homepage grids */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .case-study-card {
        padding: 32px 24px;
    }

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

    .sector-item {
        padding: 32px 16px;
    }

    .signature-headline {
        max-width: 100%;
    }

    /* About */
    .two-col-grid {
        gap: 32px;
    }

    .about-intro h2 {
        font-size: clamp(24px, 5vw, 32px);
    }

    /* Icon sizes — mobile */
    .sector-icon {
        width: 32px;
        height: 32px;
    }

    .capability-icon {
        width: 28px;
        height: 28px;
    }

    .principle-icon {
        width: 32px;
        height: 32px;
    }

    /* Services */
    .service-visual {
        display: none;
    }

    .engagement-model .engagement-grid {
        grid-template-columns: 1fr;
    }

    .engagement-type {
        padding: 32px 24px;
    }

    .service-detail-item {
        padding: 48px 0;
    }

    .service-detail-title {
        font-size: clamp(22px, 5vw, 34px);
    }

    /* How We Work */
    .principle-item {
        padding: 40px 24px;
    }

    .principle-step {
        font-size: 36px;
    }

    /* Case Studies Archive */
    .cases-grid-full {
        grid-template-columns: 1fr;
    }

    .filter-link {
        font-size: 11px;
        padding: 6px 12px;
    }

    /* Single Case Study */
    .case-hero {
        padding-top: 100px;
    }

    .case-hero-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .case-sidebar {
        padding: 40px 24px;
    }

    .back-link {
        display: inline-block;
        margin-bottom: 48px;
    }

    /* Footer */
    #site-footer {
        padding: 64px 0 32px;
    }

    #site-footer > div:first-child {
        gap: 40px;
    }

    /* ── Block 30 — Section spacing overrides ── */

    .positioning        { padding: 48px 0; }
    .services           { padding: 48px 0; }
    .why-mizan          { padding: 48px 0; }
    .featured-cases     { padding: 48px 0; }
    .sectors            { padding: 48px 0; }
    .signature          { padding: 48px 0; }
    .cta-strip          { padding: 40px 0; }
    .about-capabilities { padding: 48px 0; }
    .contact-body       { padding: 48px 0; }

    .hero {
        padding-top: 80px;
        padding-bottom: 64px;
    }

    /* Adjacent navy sections — collapse the gap between positioning and services */
    .positioning + .services {
        padding-top: 0;
    }

    /* ── Block 31 — Mobile header + nav close ── */

    /* Transparent until scrolled — .scrolled rule in Block 6 is not
       media-scoped so it fires on mobile too; override only the default state */
    .site-header {
        background: transparent;
    }

    .site-header.scrolled {
        background-color: var(--color-navy);
        box-shadow: 0 1px 0 rgba(201, 166, 75, 0.1);
    }

    .nav-close {
        display: flex;
        position: absolute;
        top: 32px;
        right: 24px;
        background: transparent;
        border: none;
        color: var(--color-ivory);
        cursor: pointer;
        padding: 8px;
        line-height: 1;
        z-index: 1000;
    }

    .nav-close:focus-visible {
        outline: 2px solid var(--color-gold);
        outline-offset: 4px;
    }

    /* ── Mobile fade animations ── */

    .js-fade-up.is-visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .services-grid .service-card.is-visible,
    .why-grid .why-item.is-visible,
    .cases-grid .case-study-card.is-visible,
    .cases-grid-full .case-study-card.is-visible,
    .sectors-grid .sector-item.is-visible,
    .capabilities-timeline .timeline-item.is-visible,
    .engagement-grid .engagement-type.is-visible,
    .principles-grid .principle-item.is-visible {
        transition-delay: calc((var(--card-index, 1) - 1) * 0.08s);
    }

    .gold-divider.is-visible {
        transform: scaleX(1);
        transition: transform 0.6s ease;
    }

    /* ── Task 3: Filter dropdown ── */

    .sector-filter {
        position: relative;
        z-index: 150;
    }

    .filter-trigger {
        display: flex;
        width: 100%;
        background-color: var(--color-navy);
        border: 1px solid var(--color-gold);
        color: var(--color-ivory);
        padding: 14px 20px;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-family: var(--font-primary);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .filter-trigger:focus-visible {
        outline: 2px solid var(--color-gold);
        outline-offset: 4px;
    }

    nav.filter-dropdown {
        display: none;
        background-color: var(--color-navy);
        border: 1px solid rgba(201, 166, 75, 0.2);
        border-top: none;
        flex-direction: column;
    }

    nav.filter-dropdown.open {
        display: flex;
    }

    nav.filter-dropdown .filter-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(201, 166, 75, 0.1);
        text-align: left;
        font-size: 14px;
        opacity: 0.8;
    }

    nav.filter-dropdown .filter-link:last-child {
        border-bottom: none;
    }

    nav.filter-dropdown .filter-link:hover,
    nav.filter-dropdown .filter-link:focus-visible,
    nav.filter-dropdown .filter-link.active {
        opacity: 1;
        color: var(--color-gold);
    }

    /* ── Task 4B: Timeline mobile ── */

    .capabilities-timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 48px;
        margin-right: 0;
        text-align: left;
        margin-bottom: 32px;
    }

    .timeline-item:nth-child(odd) .timeline-node,
    .timeline-item:nth-child(even) .timeline-node {
        left: -36px;
        right: auto;
    }
}

/* Small mobile — max-width: 480px */
@media (max-width: 480px) {
    :root {
        --space-section: 48px;
    }

    .hero-headline {
        font-size: 36px;
    }

    .section-heading {
        font-size: clamp(24px, 7vw, 32px);
    }

    .page-headline {
        font-size: clamp(28px, 8vw, 36px);
    }
}


/* =============================================================================
   Block 26 — Print Styles
============================================================================= */

@media print {

    /* Hide non-essential elements */
    .site-header,
    .site-footer,
    .cta-strip,
    .sector-filter,
    .nav-toggle,
    .hero-watermark,
    .hero-ctas,
    .back-link,
    .wpcf7 {
        display: none !important;
    }

    /* Reveal all hidden animated elements */
    .js-fade-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .gold-divider {
        transform: scaleX(1) !important;
    }

    /* Typography for print */
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Ensure links show their URL */
    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 10pt;
        color: #555;
    }

    /* Except for nav links and buttons */
    .site-nav a[href]::after,
    .btn-primary[href]::after,
    .btn-ghost[href]::after {
        content: none;
    }

    /* Page breaks */
    .case-study-card,
    .service-detail-item {
        page-break-inside: avoid;
    }

}


/* =============================================================================
   Block 27 — Customizer header styles
   .hide-cta is added to #primary-nav when mizan_show_nav_cta = 0
============================================================================= */

#primary-nav.hide-cta a.nav-cta {
    border: none;
    border-radius: 0;
    padding: 0;
    color: var(--color-ivory);
}

#primary-nav.hide-cta a.nav-cta:hover,
#primary-nav.hide-cta a.nav-cta:focus-visible {
    color: var(--color-gold);
    background-color: transparent;
}


/* =============================================================================
   Block 28 — Social icons
============================================================================= */

.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-footer .social-icons {
    margin-bottom: 32px;
}

.contact-social {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 166, 75, 0.12);
}

.contact-social .detail-label {
    display: block;
    margin-bottom: 16px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(201, 166, 75, 0.25);
    color: var(--color-ivory);
    text-decoration: none;
    transition: border-color var(--transition-base),
                color var(--transition-base),
                transform var(--transition-base);
}

.social-icon:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.social-icon:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}


/* =============================================================================
   Block 29 — Back to top
============================================================================= */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-navy);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s ease,
                transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}


/* =============================================================================
   Block 30B — Page Transition Overlay
============================================================================= */

.page-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-navy);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-out;
}

.page-overlay.is-entering,
.page-overlay.is-leaving {
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .page-overlay { display: none; }
}


/* =============================================================================
   Block 30C — Floating Mobile CTA
============================================================================= */

.floating-cta {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    z-index: 850;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.floating-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .floating-cta {
        display: block;
    }

    .back-to-top {
        bottom: 80px;
    }
}

body.page-slug-contact .floating-cta {
    display: none !important;
}


/* =============================================================================
   Block 32 — ACF image overlays
   .section-bg-image is used inside hero, positioning, signature, page-hero,
   and case-hero sections. Text containers already carry z-index:1 where set;
   see notes per selector below.
============================================================================= */

/* Shared overlay rule — object-fit cover, very low opacity, non-interactive */
.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* .hero already has position:relative (Block 9) and .hero-inner has z-index:1.
   The sections below need position:relative added here. */
.positioning,
.signature,
.page-hero,
.case-hero {
    position: relative;
}

/* Parallax prep — extra height + top offset so GSAP translateY doesn't expose edges */
.hero .section-bg-image,
.page-hero .section-bg-image,
.case-hero .section-bg-image,
.positioning .section-bg-image,
.signature .section-bg-image {
    height: 130%;
    top: -15%;
    will-change: transform;
}

/* Text containers sit above the overlay */
.positioning > .container,
.signature > .container,
.page-hero > .container,
.case-hero > .container {
    position: relative;
    z-index: 1;
}

/* About intro — side image in the right column */
.about-intro-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 32px;
    display: block;
}

/* Case study card — cover thumbnail */
.card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 24px;
    display: block;
    transition: transform 400ms ease-out;
}

.case-study-card:hover .card-thumbnail {
    transform: scale(1.04);
}


/* =============================================================================
   Block 33 — Partner Logo Carousel
   Infinite CSS marquee. Track is duplicated in Twig for seamless loop.
   Animation pauses on hover. Collapses to static wrap under reduced motion.
============================================================================= */

.partners {
    background-color: var(--color-navy);
    padding: 72px 0;
    border-top: 1px solid rgba(201, 166, 75, 0.12);
    border-bottom: 1px solid rgba(201, 166, 75, 0.12);
    overflow: hidden;
}

.partners-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.6;
    margin-bottom: 48px;
}

.partners-track-wrapper {
    overflow: hidden;
    width: 100%;
    /* Edge fade — logos soften toward both sides */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: partners-scroll 32s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
    opacity: 0.3;
    transition: opacity var(--transition-base), filter var(--transition-base);
    display: block;
}

.partner-logo img:hover {
    opacity: 0.75;
    filter: grayscale(0%) brightness(1);
}

/* Reduced motion — stop scrolling, wrap statically */
@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 48px;
        padding: 0 24px;
    }

    /* Hide the duplicate set */
    .partner-logo[aria-hidden="true"] {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .partners {
        padding: 48px 0;
    }

    .partners-track {
        gap: 48px;
    }

    .partner-logo img {
        height: 36px;
        max-width: 120px;
    }
}

/* ==========================================================================
   Block 34 — Ghost Button
   ========================================================================== */

.btn-ghost {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--gold);
    color: var(--navy);
    outline: none;
}

/* ==========================================================================
   Block 35 — Home V2: Advisory Snapshot
   ========================================================================== */

.advisory-snapshot {
    padding: 96px 0;
    background: var(--navy);
}

.advisory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.advisory-card {
    padding: 32px;
    border: 1px solid rgba(201, 166, 75, 0.2);
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.advisory-card:hover {
    border-color: rgba(201, 166, 75, 0.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-rest);
}

.advisory-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.advisory-card-body {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.75);
    line-height: 1.65;
}

.snapshot-cta {
    margin-top: 48px;
    text-align: center;
}

/* ==========================================================================
   Block 36 — Home V2: Sectors Snapshot
   ========================================================================== */

.sectors-snapshot {
    padding: 96px 0;
    background: var(--coal);
}

.sectors-snapshot .sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.sector-item {
    padding: 28px;
    background: rgba(245, 242, 235, 0.04);
    border-left: 2px solid var(--gold);
}

.sector-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ivory);
    margin-bottom: 10px;
}

.sector-item-body {
    font-size: 0.875rem;
    color: rgba(245, 242, 235, 0.65);
    line-height: 1.6;
}

/* ==========================================================================
   Block 37 — Home V2: Approach Snapshot
   ========================================================================== */

.approach-snapshot {
    padding: 96px 0;
    background: var(--navy);
}

.approach-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.approach-step {
    padding: 32px 24px;
    border-top: 1px solid rgba(201, 166, 75, 0.3);
}

.approach-step-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 16px;
    line-height: 1;
}

.approach-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ivory);
    margin: 12px 0 12px;
}

.approach-step-body {
    font-size: 0.875rem;
    color: rgba(245, 242, 235, 0.7);
    line-height: 1.65;
}

.approach-closing {
    margin-top: 48px;
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.7);
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ==========================================================================
   Block 38 — Sectors Page
   ========================================================================== */

.sectors-opening {
    padding: 64px 0;
    background: var(--navy);
    text-align: center;
}

.sectors-opening-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: rgba(245, 242, 235, 0.8);
    line-height: 1.7;
}

.sectors-full {
    padding: 96px 0;
    background: var(--coal);
}

.sector-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.sector-card {
    padding: 36px 28px;
    background: rgba(245, 242, 235, 0.03);
    border: 1px solid rgba(201, 166, 75, 0.15);
    transition: border-color var(--transition-base);
}

.sector-card:hover {
    border-color: rgba(201, 166, 75, 0.4);
}

.sector-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
}

.sector-card-body {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.7);
    line-height: 1.65;
}

/* ==========================================================================
   Block 39 — About V2: Opening Statement
   ========================================================================== */

.about-opening {
    padding: 80px 0;
    background: var(--navy);
}

.about-opening-inner {
    max-width: 800px;
}

.about-opening-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ivory);
    margin-bottom: 28px;
}

.about-opening-body p {
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.8);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* ==========================================================================
   Block 40 — About V2: Executive Experience
   ========================================================================== */

.about-exec {
    padding: 80px 0;
    background: var(--coal);
}

.about-exec-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    columns: 2;
    column-gap: 48px;
}

.about-exec-list li {
    padding: 10px 0 10px 20px;
    position: relative;
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.8);
    line-height: 1.5;
    break-inside: avoid;
}

.about-exec-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--gold);
    font-size: 0.5rem;
    line-height: 1.8;
}

.about-exec-closing {
    margin-top: 32px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

/* ==========================================================================
   Block 41 — About V2: What Makes Us Different
   ========================================================================== */

.about-differentiation {
    padding: 96px 0;
    background: var(--navy);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.diff-card {
    padding: 36px;
    border: 1px solid rgba(201, 166, 75, 0.2);
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.diff-card:hover {
    border-color: rgba(201, 166, 75, 0.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-rest);
}

.diff-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.diff-card-body {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.75);
    line-height: 1.65;
}

/* ==========================================================================
   Block 42 — About V2: Leadership
   ========================================================================== */

.about-leadership {
    padding: 80px 0;
    background: var(--coal);
}

.leadership-card {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-top: 40px;
    max-width: 860px;
}

.leadership-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 166, 75, 0.4);
    flex-shrink: 0;
}

.leadership-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ivory);
    margin-bottom: 6px;
}

.leadership-role {
    font-size: 0.875rem;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.leadership-bio {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.75);
    line-height: 1.75;
}

/* ==========================================================================
   Block 43 — About V2: Philosophy
   ========================================================================== */

.about-philosophy {
    padding: 96px 0;
    background: var(--navy);
    text-align: center;
}

.philosophy-body {
    max-width: 720px;
    margin: 32px auto 0;
    font-size: 1.125rem;
    color: rgba(245, 242, 235, 0.85);
    line-height: 1.8;
    border-left: none;
    padding: 0;
    font-style: normal;
}

/* ==========================================================================
   Block 44 — About V2: Vision 2030
   ========================================================================== */

.about-v2030 {
    padding: 80px 0;
    background: var(--coal);
}

.v2030-body {
    max-width: 720px;
    font-size: 1rem;
    color: rgba(245, 242, 235, 0.8);
    line-height: 1.75;
    margin-top: 24px;
}

/* ==========================================================================
   Block 45 — Responsive: V2 Home + Sectors + About additions
   ========================================================================== */

@media (max-width: 1024px) {
    .advisory-grid,
    .sectors-snapshot .sectors-grid,
    .sector-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .advisory-grid,
    .sectors-snapshot .sectors-grid,
    .sector-cards-grid,
    .approach-flow,
    .diff-grid {
        grid-template-columns: 1fr;
    }

    .about-exec-list {
        columns: 1;
    }

    .leadership-card {
        flex-direction: column;
        gap: 24px;
    }

    .leadership-photo img {
        width: 100px;
        height: 100px;
    }

    .advisory-snapshot,
    .sectors-snapshot,
    .approach-snapshot,
    .sectors-opening,
    .sectors-full,
    .about-opening,
    .about-exec,
    .about-differentiation,
    .about-leadership,
    .about-philosophy,
    .about-v2030 {
        padding: 64px 0;
    }
}
