﻿/*
Theme Name: Encrypted Studio
Theme URI: https://theencryptedstudio.com
Author: Encrypted Studio
Description: Custom classic theme for the Encrypted Studio agency website. ACF Pro Flexible Content port of the Phase A static ground truth.
Version: 0.6.2
License: GPL-2.0-or-later
Text Domain: encrypted-studio
*/

/* Lock html background so body's background stays in its own stacking context
   (above the fixed footer) rather than being propagated to the canvas layer */
html {
    background-color: var(--color-surface);
    overflow-x: clip;
    /* Prevents horizontal swipe leak on iOS Safari without breaking sticky */
    max-width: 100vw;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary, #00499d);
    color: #ffffff;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

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

@font-face {
    font-family: 'Diagramm';
    src: url('assets/fonts/Diagramm-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Diagramm';
    src: url('assets/fonts/Diagramm-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

/* Poppins (self-hosted latin subset — parity with the Google Fonts css2 latin range the site shipped) */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --color-surface: #F8F7F3;
    --color-on-surface: #1b1c19;
    --color-primary: #00499d;
    --color-primary-container: #0c60c8;
    --color-tertiary: #0D52AA;
    --color-on-primary: #ffffff;

    --color-page-bg: #F8F7F3;
    --color-bg: #030712;
    --color-text: #F9FAFB;
    --color-text-muted: #9CA3AF;
    --font-primary: 'Diagramm', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --nav-height: 100px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* --- Phase A-S6: Horizontal Gutter & Content Width Tokens --- */
    --gutter-section: clamp(20px, 5.25vw, 75px);         /* Fluid LR gutter. 20px mobile floor, 75px desktop cap @ ~1428px viewport */
    --gutter-split-outer: 16px;                        /* Tier A rounded-corner outer gap (on .surface-wrapper) */
    --container-max-legal: 820px;                      /* Long-form prose (Privacy, Terms, Blog post body) */
    --container-max-narrow: 650px;                    /* Hero subtitle & narrow text columns */
    --container-max-content: 1440px;                  /* Content cap under the section-owned-gutter contract */

    /* --- Standard Section Vertical Spacing Tokens --- */
    --space-section-hero: 8.0rem;                     /* Narrative Beat Top Padding (.pain-point) */
    --space-section-desktop: 6.0rem;                  /* Standard Desktop Section Top/Bottom Padding */
    --space-section-tablet: 4.5rem;                   /* Tablet Section Top/Bottom Padding */
    --space-section-mobile: 3.5rem;                   /* Mobile Section Top/Bottom Padding */

    /* --- Canonical Shadow System Tokens (A-1 Fix Round Path B Consolidation) --- */
    /* Group 1: Surface Elevations (Neutral drop shadows) */
    --shadow-elev-1: 0 4px 25px rgba(0, 0, 0, 0.03);
    --shadow-elev-2: 0 15px 35px rgba(0, 0, 0, 0.04);
    --shadow-elev-3: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-elev-4: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-elev-5: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-elev-6: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-elev-7: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-elev-8: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-elev-9: 0 30px 60px rgba(0, 0, 0, 0.4);
    --shadow-elev-10: 0 30px 60px rgba(0, 0, 0, 0.6);
    --shadow-elev-CARD-HOVER: 0 20px 50px rgba(0, 0, 0, 0.07);

    /* Group 2: Brand-Tinted Primary Blue Shadows */
    --shadow-brand-glow-1: 0 10px 40px rgba(0, 73, 157, 0.12);
    --shadow-brand-glow-DEFAULT: 0 4px 20px rgba(0, 73, 157, 0.3);
    --shadow-brand-glow-HOVER: 0 8px 24px rgba(0, 73, 157, 0.3);

    /* Group 3: Inset Hairlines */
    --shadow-inset-hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Creates a stacking context above the fixed footer so the
       page background fills gaps between margin'd sections */
    position: relative;
    z-index: 1;
}

/* â”€â”€ UI Design System Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

.text-display {
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.heading-1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-2 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.body-lg {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
}

.body-md {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
}

/* Master Buttons Architecture */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* overflow is NOT set here â€” pill tiers apply it individually */
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 500;
    --btn-text: #ffffff;
    /* fallback */
    color: var(--btn-text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
        transform 0.3s ease, box-shadow 0.3s ease;
}

/* â”€â”€ Tier 1: Primary â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn--primary {
    --btn-text: #ffffff;
    color: var(--btn-text);
    background-color: var(--color-primary);
    border: none;
    border-radius: 9999px;
    overflow: hidden;
    /* Clip slot ghost within pill shape */
}

.btn--primary:hover {
    background-color: var(--color-primary-container);
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand-glow-HOVER);
}

/* White variant for dark backgrounds (Final CTA) */
.btn--primary-white {
    --btn-text: #1B1C19;
    color: var(--btn-text);
    background-color: #ffffff;
    border: none;
    border-radius: 9999px;
    overflow: hidden;
}

.btn--primary-white:hover {
    background-color: #E5E5E5;
    transform: translateY(-1px);
}

/* â”€â”€ Tier 2: Secondary â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn--secondary {
    --btn-text: #1B1C19;
    color: var(--btn-text);
    background-color: #E5E5E5;
    border: none;
    border-radius: 9999px;
    overflow: hidden;
}

.btn--secondary:hover {
    background-color: #D0D0D0;
    transform: translateY(-1px);
}

/* â”€â”€ Tier 3: Tertiary â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn--tertiary {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    /* Underline track */
}

.btn--tertiary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--tertiary:hover::after {
    transform: scaleX(0.3);
}

/* Tertiary color variants */
.btn--tertiary-white {
    --btn-text: #ffffff;
    color: var(--btn-text);
}

.btn--tertiary-dark {
    --btn-text: #1B1C19;
    color: var(--btn-text);
}

/* Standard Feather Icon Utilities */
.icon-15 { width: 15px; height: 15px; flex-shrink: 0; }
.icon-16 { width: 16px; height: 16px; flex-shrink: 0; }
.icon-18 { width: 18px; height: 18px; flex-shrink: 0; }
.icon-20 { width: 20px; height: 20px; flex-shrink: 0; }
.icon-24 { width: 24px; height: 24px; flex-shrink: 0; }

.u-nowrap { white-space: nowrap; }

.section-container {
    width: 100%;
    max-width: var(--container-max-content);
    margin-inline: auto;
}

.section-container--legal {
    max-width: var(--container-max-legal);
}

.section-container--narrow {
    max-width: var(--container-max-narrow);
}

/* Scalable modifier for all rounded-corner sections (hero, services, final-cta, subpage cards).
   Sits inside .surface-wrapper (16px outer gap), so inner padding is calc(75px - 16px) = 59px on desktop,
   landing content on the exact 75px line as edge-to-edge sections. On mobile, locks to 10px. */
.section-container--rounded {
    padding-inline: calc(var(--gutter-section) - var(--gutter-split-outer));
}

@media (max-width: 600px) {
    .section-container--rounded {
        padding-inline: 10px !important;
    }
}

/* Inner content containers inside rounded sections carry no extra padding-inline */
.services-container,
.cta-content {
    padding-inline: 0 !important;
}

/* ── Inline Text Links (Body Prose & Content Containers) ── */
.faq-answer a:not(.btn),
.faq-ticket-note a:not(.btn),
.legal-card a:not(.btn),
.legal-page-section a:not(.btn),
.blog-post-body a:not(.btn),
.blog-content a:not(.btn),
.entry-content a:not(.btn),
.page-content a:not(.btn),
.about-teaser-right p a:not(.btn),
.pain-point-text p a:not(.btn),
.care-card a:not(.btn):not(.btn--slot),
.care-plans-faq-answer a:not(.btn) {
    color: var(--color-primary, #0066FF);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.faq-answer a:not(.btn):hover,
.faq-ticket-note a:not(.btn):hover,
.legal-card a:not(.btn):hover,
.legal-page-section a:not(.btn):hover,
.blog-post-body a:not(.btn):hover,
.blog-content a:not(.btn):hover,
.entry-content a:not(.btn):hover,
.page-content a:not(.btn):hover,
.about-teaser-right p a:not(.btn):hover,
.pain-point-text p a:not(.btn):hover,
.care-card a:not(.btn):not(.btn--slot):hover,
.care-plans-faq-answer a:not(.btn):hover {
    color: var(--color-primary-container, #0c60c8);
    text-decoration-color: var(--color-primary-container, #0c60c8);
}

.hero-content {
    padding-inline: 5%;
}

@media (max-width: 1024px) {
    .hero-content {
        padding-inline: 24px !important;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding-inline: 10px !important;
    }
}

/* Subpage Archive Sections Gutter Alignment */
.blog-archive-section {
    padding-top: 0;
    padding-inline: var(--gutter-section);
    padding-bottom: clamp(45px, 3.5vw, 55px);
}

.faq-page-section {
    padding-top: 0;
    padding-inline: var(--gutter-section);
    padding-bottom: var(--space-section-desktop, 6rem);
}

@media (max-width: 768px) {
    .blog-archive-section {
        padding-top: 0;
        padding-inline: var(--gutter-section);
        padding-bottom: clamp(45px, 4vw, 55px);
    }

    .faq-page-section {
        padding-top: 0;
        padding-inline: var(--gutter-section);
        padding-bottom: 4rem;
    }
}

/* â”€â”€ Size Modifiers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn--sz-pill {
    padding: 14px 32px;
    border-radius: 9999px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.btn--sz-nav {
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Tertiary ignores border-radius override from sz-pill */
.btn--tertiary.btn--sz-pill {
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

/* â”€â”€ Slot Machine Mechanic â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/*
 * By using 'color: transparent' on the real text, the DOM structure remains 
 * exactly as wide as it needs to be, but the text is hidden.
 * We then inject absolutely positioned ::before/::after elements with color 
 * inherited via var(--btn-text) perfectly over top. 
 * Using CSS transforms instead of margins prevents baseline shifting on hover.
 */
.btn--slot .btn-text-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
    color: transparent;
    /* Hide the actual structural text node */
    height: 1.3em;
    line-height: 1.3;
    white-space: nowrap;
    vertical-align: middle;
    /* Prevents inline baseline shifts */
}

.btn--slot .btn-text-wrapper::before,
.btn--slot .btn-text-wrapper::after {
    content: attr(data-text);
    /* Matches real text */
    position: absolute;
    left: 0;
    width: 100%;
    color: var(--btn-text);
    /* Restores accurate color */
    white-space: nowrap;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--slot .btn-text-wrapper::before {
    top: 0;
    /* Base position */
}

.btn--slot .btn-text-wrapper::after {
    top: 100%;
    /* Hover slide-in position */
}

/* On hover, slide both up smoothly (hardware accelerated) */
.btn--slot:hover .btn-text-wrapper::before,
.btn--slot:hover .btn-text-wrapper::after {
    transform: translateY(-100%);
}

/* Tertiary underline shrink effect (visible freely below the boundaries) */
.btn--tertiary.btn--slot:hover::after {
    transform: scaleX(0.3);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Hero Section */
.hero-section {
    position: relative;
    width: auto;
    margin: 0;
    height: calc(100vh - 2rem);
    /* min-height: 800px; */
    border-radius: 24px;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Video */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay to darken video slightly for text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.7) 0%, rgba(3, 7, 18, 0.2) 50%, rgba(3, 7, 18, 0.6) 100%);
    z-index: 2;
}

/* Navigation (Dynamic Island) */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 100;
    border-radius: 0;
    background-color: transparent;
    border: 1px solid transparent;
    transition: max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1), top 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s ease, border-radius 0.8s ease;
}

.navbar.scrolled {
    top: 1rem;
    max-width: 900px;
    height: 58px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-elev-5);
}

.nav-container {
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .nav-container {
    padding: 0 1.5rem;
    /* tighter padding inside island */
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .nav-links {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    position: absolute;
    width: 0;
    visibility: hidden;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 500;
    opacity: 0.8;
    transition: color 0.8s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.navbar-dark-text .nav-links a {
    color: var(--color-on-surface);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
    opacity: 1;
    color: #ffffff;
    font-weight: 600;
}

.navbar-dark-text .nav-links a.active,
.navbar-dark-text .nav-links a[aria-current="page"] {
    color: #00499d;
}

/* Logo Favicon Crop Logic */
.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    width: 140px;
    /* Adjust dynamically for wordmark */
    height: 24px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo-asset {
    height: 100%;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
    /* Vital to naturally anchor the favicon to the left */
}

.nav-logo-white {
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-logo-color {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-dark-text .nav-logo-white {
    opacity: 0;
}

.navbar-dark-text .nav-logo-color {
    opacity: 1;
}

.navbar.scrolled .logo-wrapper {
    width: 25px;
    /* Perfect square crop leaves only the favicon */
}

.navbar.scrolled .logo-wrapper:hover {
    width: 140px;
}

/* Island Hamburger Menu */
.island-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 0;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    transform: scale(0);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, transform 0.4s ease;
}

.navbar.scrolled .island-menu-btn {
    width: 20px;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Mega Menu Styles */
.mega-menu {
    position: fixed;
    inset: 0;
    background-color: var(--color-surface);
    z-index: 200;
    transform: translateY(-100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.8s, opacity 0.4s ease 0.2s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
}

.mega-menu.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
}

.mega-menu-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 5%;
    height: var(--nav-height);
}

.mega-header-left {
    justify-self: start;
}

.mega-header-center {
    justify-self: center;
}

.mega-header-right {
    justify-self: end;
}

.mega-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    width: 140px;
    height: 24px;
}

.mega-logo-asset {
    height: 100%;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

.mega-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -10px;
    color: var(--color-on-surface);
}

/* .mega-brand removed in favor of .mega-copyright */

.mega-menu-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 5% 2rem 5%;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.mega-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mega-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    text-decoration: none;
    group: mega-card;
}

.mega-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-card:hover img {
    transform: scale(1.05);
}

.mega-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
    z-index: 1;
}

.mega-card-text {
    position: relative;
    z-index: 2;
    color: white;
}

.mega-card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.5rem;
}

.mega-card-sub {
    font-size: 14px;
    opacity: 0.8;
}

.mega-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-nav-links {
    display: flex;
    flex-direction: column;
}

.mega-nav-link {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--color-on-surface);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(27, 28, 25, 0.1);
}

.mega-nav-link:first-child {
    border-top: 1px solid rgba(27, 28, 25, 0.1);
}

.mega-nav-link:hover,
.mega-nav-link.active,
.mega-nav-link[aria-current="page"] {
    color: var(--color-primary);
}

.mega-nav-text {
    position: relative;
    display: inline-block;
}

.mega-nav-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mega-nav-link:hover .mega-nav-text::after,
.mega-nav-link.active .mega-nav-text::after,
.mega-nav-link[aria-current="page"] .mega-nav-text::after {
    transform: scaleX(1);
}

.mega-footer {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mega-footer-links-wrap {
    display: flex;
    gap: 4rem;
}

.mega-copyright {
    font-size: 13px;
    color: rgba(27, 28, 25, 0.6);
    font-weight: 500;
}

.mega-footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mega-footer-link {
    font-size: 13px;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-footer-link:hover {
    color: var(--color-on-surface);
}

.hamburger-lines,
.hamburger-lines::before {
    width: 16px;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: background-color 0.8s ease, transform 0.3s ease;
}

.hamburger-lines {
    transform: translateY(3px);
}

.hamburger-lines::before {
    content: '';
    transform: translateY(-6px);
}

.navbar-dark-text .hamburger-lines,
.navbar-dark-text .hamburger-lines::before {
    background-color: var(--color-on-surface);
}

/* â”€â”€ Legacy .btn override â€“ kept for specificity reset â”€â”€â”€â”€â”€â”€ */
/* All component buttons are now fully handled by .btn--[tier] above */


/* Mobile menu CSS replaced by island styles */

/* Hero Content Wrapper */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    padding-bottom: 3%;
    margin-top: var(--nav-height);
}

.hero-text-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero-bottom-content {
    margin-top: auto;
}

.hero-heading {
    font-size: clamp(3rem, 5.2vw, 5rem);
    line-height: 1.08;
    margin-top: 8vh;
    margin-bottom: 2rem;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.stagger-text {
    display: inline-block;
}

.mobile-only {
    display: none !important;
}

.char-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.hero-subheading,
.hero-body {
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    max-width: 480px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.word-reveal-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.word-reveal-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    will-change: transform, opacity;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* Hero Sequential Animations on Load */
body.animations-ready .char-animate,
body:not(:has(#preloader)) .char-animate {
    animation: heroCharFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.animations-ready .hero-subheading,
body.animations-ready .hero-body,
body:not(:has(#preloader)) .hero-subheading,
body:not(:has(#preloader)) .hero-body {
    animation: heroCharFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

body.animations-ready .hero-ctas,
body:not(:has(#preloader)) .hero-ctas {
    animation: heroCharFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 1.55s forwards;
}

@keyframes heroCharFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroWordFadeUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Client Logos Marquee (Redesigned with fixed label) */
.clients-section {
    background-color: var(--color-surface);
    padding: 2rem 0;
    /* Add top/bottom space around the bordered block */
    overflow: hidden;
}

.clients-bar-container {
    display: flex;
    align-items: center;
    border-top: 1px dotted rgba(0, 0, 0, 0.2);
    border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
    width: 100%;
}

.clients-tag {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 3rem 1.5rem 5%;
    flex-shrink: 0;
    max-width: 350px;
}

.clients-tag svg {
    color: var(--color-on-surface);
    flex-shrink: 0;
}

.clients-tag span {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--color-on-surface);
}

.marquee-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 1.5rem 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-surface) 0%, transparent 100%);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-surface) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
    /* Increased scroll speed */
}

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

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}

.marquee-track img {
    height: clamp(22px, 2.8vw, 32px);
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) opacity(0.75);
    /* Forces logos to be solid dark grey */
    transition: filter 0.4s ease, transform 0.4s ease;
}

.marquee-track img:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
    /* Restores original color on hover */
    transform: scale(1.05);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pain Point Section */
.pain-point-section {
    padding: 10rem 5% 12rem 5%;
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

.content-container {
    max-width: 1920px;
    margin: 0 auto;
}

.scrub-heading {
    margin-bottom: 7rem;
    max-width: 85%;
}

.pain-point-split {
    display: flex;
    justify-content: flex-end;
    gap: 5%;
    align-items: flex-end;
}

.pain-point-text {
    width: 23%;
    margin-left: auto;
    padding-bottom: 2rem;
}

.pain-point-text p {
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
    color: var(--color-on-surface);
}

.pain-point-image {
    width: 65%;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-bg);
    aspect-ratio: 16 / 9;
}

.pain-point-image img,
.pain-point-image video,
.abstract-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scrub-word {
    opacity: 0.15;
    filter: blur(6px);
    transition: opacity 0.15s ease-out, filter 0.15s ease-out;
}

.btn-pill-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    background-color: #f0ebe1;
    color: var(--color-on-surface);
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.btn-pill-light:hover {
    background-color: var(--color-tertiary);
    color: #ffffff;
}

/* Scroll Reveal Utilities */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale-up {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.is-visible,
.reveal-scale-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Services Section */
.services-section {
    background-color: #030712 !important;
    color: #ffffff;
    padding: 8rem 5% 10rem 5%;
    position: relative;
    margin: 0;
    border-radius: 24px;
}

.services-container {
    max-width: 1920px;
    margin: 0 auto;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.section-tag {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 1.5rem;
}


/* .services-cta replaced by .btn--tertiary.btn--tertiary-white in Design System v1.3 */


.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.services-list:hover .service-row {
    opacity: 0.3;
}

.services-list .service-row:hover {
    opacity: 1;
}

.service-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.service-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 500;
    color: #f9fafb;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.service-tag {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.service-row:hover .service-title {
    transform: translateX(30px);
    color: #ffffff;
}

.service-right {
    flex: 0 0 450px;
    text-align: left;
}

.service-right p {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.service-row:hover .service-right p {
    color: rgba(255, 255, 255, 0.9);
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.service-pill {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.service-row:hover .service-pill {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.hover-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 220px;
    pointer-events: none;
    z-index: 100;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-elev-10);
    /* JS will inject transform and opacity directly */
}

.hover-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: var(--shadow-inset-hairline);
    border-radius: 12px;
}

.hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Process Section */
.process-section {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    position: relative;
    z-index: 5;
    padding: 10rem 5% 12rem 5%;
    box-sizing: border-box;
}

.process-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-header-container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    flex-shrink: 0;
}

.process-header-left {
    max-width: 650px;
}

.section-tag-dark {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    color: rgba(27, 28, 25, 0.5);
    display: block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}


.process-subheading {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.7);
}

.process-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 450px;
    gap: 2rem;
}

.process-slider-track {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

.process-slider {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    padding: 2rem 0;
}

.process-card {
    flex: 0 0 420px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-elev-2);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (min-width: 1920px) {
    .process-slider {
        width: 100%;
    }

    .process-card {
        flex: 1 1 0;
    }
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elev-CARD-HOVER);
}

.step-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    color: rgba(27, 28, 25, 0.07);
    font-weight: 500;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.process-title {
    margin-bottom: 1.5rem;
    color: var(--color-on-surface);
}

.process-body {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.65);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* â”€â”€ Portfolio Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.portfolio-section {
    padding: 10rem 0 0 0;
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

/* Centred hero header */
.portfolio-hero-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 6rem;
    /* Reduced to let top cards peek through */
    position: sticky;
    top: 25vh;
    /* Sticks at center/topish of viewport */
    z-index: 0;
    /* Kept behind projects */
    transform-origin: center center;
    will-change: transform, opacity;
}

.portfolio-tag-centered {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-tag-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.portfolio-hero-heading {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-on-surface);
}

.portfolio-hero-sub {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.75);
    max-width: 420px;
    margin: 0 auto;
}

/* Projects container */
.portfolio-projects {
    position: relative;
    z-index: 2;
    /* Physically layer over the sticky header */
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Two-column staggered pair (Homepage #work default) */
.portfolio-pair {
    display: grid;
    grid-template-columns: 48% 32%;
    justify-content: space-between;
    align-items: start;
}

/* Secondary card offset downward */
.portfolio-project--offset {
    margin-top: 5rem;
}

/* Solo centred row */
.portfolio-solo {
    display: flex;
    justify-content: center;
}

.portfolio-solo .portfolio-project {
    width: 45%;
}

/* Equal-width reflowing grid for Portfolio Archive page (#portfolio-grid) */
#portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3.5rem 3rem !important;
    align-items: start !important;
}

#portfolio-grid .portfolio-pair,
#portfolio-grid .portfolio-solo {
    display: contents !important;
}

#portfolio-grid .portfolio-project--offset {
    margin-top: 0;
}

@media (max-width: 768px) {
    #portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* Each project card */
.portfolio-project {
    text-decoration: none;
    color: var(--color-on-surface);
    display: block;
    cursor: pointer;
}

.portfolio-img-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.04);
    aspect-ratio: 4 / 3;
    margin-bottom: 1.25rem;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.5rem;
}

.portfolio-proj-name,
.process-title,
.blog-card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 500;
    line-height: 1.2;
}

.portfolio-proj-tag {
    font-family: var(--font-secondary);
    font-size: clamp(11px, 0.35vw + 10px, 12px);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(27, 28, 25, 0.4);
    white-space: normal;
}

.portfolio-category-tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: 1rem;
}

.portfolio-proj-tag--more {
    color: var(--color-primary);
    font-weight: 700;
}

/* Bottom all-cases bar */
.portfolio-bottom {
    max-width: 1920px;
    margin: 7rem auto 0 auto;
    padding: 2.5rem 5% 7rem;
    /* bottom spacing is now padding so section bg covers footer */
    border-top: 1px solid rgba(27, 28, 25, 0.1);
    border-bottom: 1px solid rgba(27, 28, 25, 0.1);
    display: flex;
    justify-content: center;
}

.portfolio-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-on-surface);
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    padding-bottom: 3px;
}

.portfolio-all-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-on-surface);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-all-link:hover::after {
    transform: scaleX(0.4);
}

.portfolio-count {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--color-primary);
    font-weight: 700;
}

/* Contained Header */
.portfolio-header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.portfolio-header-left {
    max-width: 55%;
}

.portfolio-heading {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}

.portfolio-header-right {
    max-width: 380px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.portfolio-subheading {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.7);
}

/* Full-bleed editorial grid */
.portfolio-grid-editorial {
    width: 100%;
}

.portfolio-row {
    display: flex;
    width: 100%;
    overflow: hidden;
}

/* Row layouts */
.portfolio-row-split .portfolio-cell-large {
    flex: 0 0 60%;
}

.portfolio-row-split .portfolio-cell-small {
    flex: 0 0 40%;
}

.portfolio-row-full .portfolio-cell {
    flex: 1;
}

.portfolio-row-thirds .portfolio-cell {
    flex: 0 0 33.333%;
}

/* Each cell */
.portfolio-cell {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.portfolio-row-full .portfolio-cell {
    aspect-ratio: 16 / 7;
}

.portfolio-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-cell:hover img {
    transform: scale(1.05);
}

/* Hover overlays */
.portfolio-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 30, 70, 0.93) 0%, rgba(0, 73, 157, 0.88) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2.5rem;
    text-align: center;
}

.portfolio-hover-overlay--always-on {
    opacity: 1;
    background: linear-gradient(135deg, rgba(0, 10, 30, 0.85) 0%, rgba(0, 45, 100, 0.8) 100%);
}

.portfolio-cell:hover .portfolio-hover-overlay {
    opacity: 1;
}

.portfolio-hover-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.project-name-overlay {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 500;
    color: #ffffff;
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-cell:hover .project-name-overlay,
.portfolio-hover-overlay--always-on .project-name-overlay {
    transform: translateY(0);
}

.outcome-text {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
    max-width: 280px;
}

.portfolio-cell:hover .outcome-text {
    transform: translateY(0);
}

/* CTA pill inside the last cell */

/* Care Plans Section */
.care-section {
    background-color: #F3F3F3;
    padding: 10rem 5% 12rem 5%;
    color: var(--color-on-surface);
}

.care-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-inline: var(--gutter-section);
}

.care-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3.5rem;
    gap: 1.5rem;
}

.care-tag-row,
.section-label-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.care-tag-icon,
.section-label-icon {
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 3px;
    flex-shrink: 0;
}

.care-tag-label,
.section-label-text,
.portfolio-tag-text {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-on-surface);
    text-transform: uppercase;
}

.dark-section .section-label-text {
    color: #ffffff;
}

.care-heading {
    /* white-space: nowrap removed â€” heading wraps naturally on small screens */
    /* Typography natively inherited from global .heading-1 UI token */
}

.care-header .care-toggle-wrapper {
    align-self: center;
    margin-top: 1.5rem;
}

/* Billing toggle */
.care-toggle-wrapper {
    display: inline-flex;
    width: fit-content;
    margin: 0.5rem auto 2rem;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 9999px;
    padding: 4px;
    gap: 4px;
    flex-shrink: 0;
}

.care-toggle-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 500;
    color: rgba(27, 28, 25, 0.55);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.care-toggle-btn--active {
    background-color: var(--color-on-surface);
    color: #ffffff;
    box-shadow: var(--shadow-elev-4);
}

/* Annual savings badge */
.care-savings-badge {
    align-self: flex-start;
    /* Prevents it from stretching full-width inside the flex column column */
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background-color: rgba(14, 159, 110, 0.12);
    /* Premium green background */
    color: #0c8a5a;
    /* Deep green text */
    border-radius: 9999px;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* â”€â”€ Testimonials Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.testimonials-section {
    padding: 6rem 5% 6rem 5%;
    /* Reduced from 8rem top, 12rem bottom */
    background-color: #FBF9F4;
    color: var(--color-on-surface);
}

.testimonials-container {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(0, 1.25fr);
    /* Enforced proportions */
    gap: 2rem;
    align-items: stretch;
}

.testimonials-container>div {
    min-width: 0;
    /* Prevents cell content from blowing out the fr ratios */
}

/* Left Col: Heading & Stats */
.testimo-col-left {
    display: flex;
    flex-direction: column;
}

.testimo-heading {
    margin-bottom: 2.5rem;
    /* Reduced from 4rem */
}

/* Testimonials Heading Responsive Line Breaks */
.testimo-mobile-br,
.testimo-mobile-span {
    display: none !important;
}

.testimo-stats-wrapper {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.2rem;
    /* Reduced from 1.5rem */
    padding-right: 2rem;
}

.testimo-stats-intro {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: rgba(27, 28, 25, 0.5);
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
}

.testimo-stat-item {
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
}

.testimo-stat-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
}

.testimo-stat-text {
    font-family: var(--font-secondary);
    font-size: 12px;
    color: rgba(27, 28, 25, 0.6);
    margin-bottom: 0.8rem;
    max-width: 90%;
}

.testimo-stat-bar {
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.testimo-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Middle Col: Large Card */
.testimo-empty-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
}

.testimo-empty-card .need-badge {
    align-self: flex-start;
}

.testimo-empty-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--color-on-surface);
}

.testimo-empty-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: rgba(27, 28, 25, 0.65);
    max-width: 520px;
    line-height: 1.6;
}

.testimo-large-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-elev-2);
}

.testimo-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.testimo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(39, 34, 31, 0) 20%, rgba(39, 34, 31, 0.6) 60%, rgba(39, 34, 31, 0.95) 100%);
    z-index: 2;
}

.testimo-content {
    position: relative;
    z-index: 3;
    padding: clamp(1.75rem, 3vw, 2.25rem);
    color: #ffffff;
}

.testimo-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 0.85rem;
}

.testimo-stars svg {
    width: 14px;
    height: 14px;
    fill: #FFB800;
}

.testimo-quote-main {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.testimo-author-main {
    display: flex;
    flex-direction: column;
}

.author-name-main {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.author-title-main {
    font-family: var(--font-secondary);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}


/* Right Col: Dual independent slot carousels */
.testimo-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

/* Each slot: clips to one card, fills half the column */
.testimo-slot-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex: 1 1 0;
    border-radius: 20px;
}

/* Horizontal track — cards sit side by side */
.testimo-slot-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

/* Each card locks to exactly the slot viewport width */
.testimo-small-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: clamp(1.4rem, 2vw, 1.75rem);
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-elev-1);
    box-sizing: border-box;
}

.testimo-quote-small {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11.5px, 14px);
    line-height: 1.55;
    font-weight: 600;
    color: var(--color-on-surface);
    margin-bottom: 1.25rem;
}

.testimo-author-small-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
}

.testimo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.testimo-author-info {
    display: flex;
    flex-direction: column;
}

.author-name-small {
    font-family: var(--font-secondary);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-on-surface);
    margin-bottom: 0.15rem;
}

.author-title-small {
    font-family: var(--font-secondary);
    font-size: 12px;
    color: rgba(27, 28, 25, 0.6);
}

@media (max-width: 1024px) {
    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .testimo-large-card {
        min-height: 480px;
        margin-top: 2rem;
    }

    .testimo-col-right {
        margin-top: 1.5rem;
    }

    .testimo-slot-viewport {
        min-height: 220px;
    }
}

    /* Care Plans: 2-column on tablet.
       align-items stays `center`: the care header (tag row, heading, subheading, billing
       toggle) is a centered stack at every breakpoint. The previous `flex-start` here
       overrode the centered base at .care-header and left-leaned the whole header. */
    .care-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

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

/* 3-column card grid */
.care-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.care-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.care-card:hover {
    box-shadow: var(--shadow-elev-CARD-HOVER);
    transform: translateY(-4px);
}

.care-card--featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-brand-glow-1);
}

.care-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.care-plan-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: rgba(0, 73, 157, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.care-plan-icon svg {
    width: 16px;
    height: 16px;
}

.care-plan-icon--featured {
    background-color: rgba(0, 73, 157, 0.12);
}

.care-plan-name {
    font-family: var(--font-secondary);
    font-size: clamp(12px, 0.4vw + 10px, 13px);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-on-surface);
}

.care-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.care-price-label {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    color: rgba(27, 28, 25, 0.5);
}

.care-price-label--featured {
    color: var(--color-primary);
    font-weight: 600;
}

.care-price-value {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-on-surface);
}

.care-price-period {
    font-size: 0.45em;
    font-weight: 400;
    color: rgba(27, 28, 25, 0.5);
}

.care-price-tagline {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.5;
    color: rgba(27, 28, 25, 0.55);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Feature list */
.care-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.care-features li {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    color: var(--color-on-surface);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.care-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.care-features li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--color-primary);
    stroke-width: 2;
}

/* Buttons */
.care-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 9999px;
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: auto;
}

.care-btn-outline {
    background-color: var(--color-on-surface);
    color: #ffffff;
    border: none;
}

.care-btn-outline:hover {
    background-color: rgba(27, 28, 25, 0.85);
    transform: translateY(-1px);
}

.care-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-brand-glow-DEFAULT);
}

.care-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-glow-HOVER);
}

/* Footer note */
/* Care footer note â€” the Compare link is now a .btn--tertiary-brand, override removed */
.care-footer-note {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    color: rgba(27, 28, 25, 0.5);
    text-align: center;
}


/* Section 9: About Teaser */
.about-teaser-section {
    background: linear-gradient(90deg, #EBEFFE 0%, var(--color-surface) 25%, var(--color-surface) 100%);
    padding: 12rem 5%;
}

.about-teaser-container {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-teaser-left h2 {
    color: var(--color-on-surface);
}

.about-teaser-right {
    display: flex;
    flex-direction: column;
    margin-top: 8rem;
    /* Creates the staggered offset requested */
    padding-top: 1rem;
}

.about-blue-text {
    position: relative;
    font-size: clamp(18px, 1.25vw + 16px, 24px);
    line-height: 1.35;
    color: var(--color-on-surface);
    /* Using regular body color now */
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
    padding-left: 0;
    /* Let dot hang gracefully */
}

.about-body {
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.55;
    color: rgba(27, 28, 25, 0.7);
    max-width: 85%;
}

.about-body + .about-body {
    margin-top: 1.5rem;
}

.about-teaser-right .btn {
    margin-top: 2.5rem;
    align-self: flex-start;
}

.about-btn {
    padding: 0.55rem 1.4rem;
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    border-radius: 9999px;
    background: #E5E5E5;
    color: var(--color-on-surface);
    border: none;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-btn:hover {
    color: #ffffff;
}

.about-btn:hover::before {
    opacity: 1;
}

/* Heading Video Pill */
.heading-video-pill {
    display: inline-block;
    vertical-align: middle;
    width: 8.4em;
    /* 2x scaled up again */
    height: 4.2em;
    /* 2x scaled up again */
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0.15em;
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    cursor: pointer;
    background-color: var(--color-bg);
    position: relative;
    box-shadow: var(--shadow-elev-3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform: translateY(-0.06em);
}

/* Heading Image Pill (Portfolio & Subpages) */
.heading-img-pill {
    display: inline-block;
    vertical-align: middle;
    width: 1.5em;
    height: 0.8em;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0.15em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    box-shadow: var(--shadow-elev-3);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform: translateY(-0.06em);
}

.heading-img-pill:hover {
    transform: translateY(-0.06em) scale(1.05);
    box-shadow: var(--shadow-elev-6);
}

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

.heading-video-pill:hover {
    transform: translateY(-0.06em) scale(1.03);
    box-shadow: var(--shadow-elev-6);
}

.heading-video-pill iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pill-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    /* Scaled down by 2 */
    height: 60%;
    /* Scaled down by 2 */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Sit cleanly above iframe */
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-elev-7);
    transition: background 0.3s ease, transform 0.3s ease;
    mix-blend-mode: difference;
}

.pill-play-btn svg {
    /* Play icon responsive to giant parent */
    width: 35%;
    height: 35%;
    margin-left: 6%;
    /* Optical center for play icon */
}

.heading-video-pill:hover .pill-play-btn {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.video-modal.active {
    visibility: visible;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-elev-8);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

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

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-aspect {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.video-modal-aspect iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Section 14: FAQ */
.faq-section {
    padding: var(--space-section-desktop) var(--gutter-section);
    background-color: #F3F3F3;
    color: var(--color-on-surface);
}

.faq-container {
    max-width: var(--container-max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Left column */
.faq-left {
    position: sticky;
    top: 8rem;
}

.faq-heading {
    margin-bottom: 1.5rem;
    color: var(--color-on-surface);
    /* Typography natively inherited from global .heading-1 UI token */
}

.faq-heading-muted {
    color: var(--color-on-surface);
}

.faq-subheading {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.65;
    color: rgba(27, 28, 25, 0.55);
    max-width: 50%;
}

/* Right column */
.faq-right {
    width: 100%;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Pill card items */
.faq-item {
    background-color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    border: none;
}

.faq-item:first-child {
    border-top: none;
}

.faq-item.active {
    background-color: #ffffff;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1.5rem;
}

.faq-question-text {
    font-family: var(--font-secondary);
    font-size: clamp(15px, 0.8vw + 12px, 18px);
    font-weight: 500;
    color: var(--color-on-surface);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-question:hover .faq-question-text {
    color: var(--color-primary);
}

.faq-cta-btn {
    display: inline-flex;
    margin-top: 2.5rem;
    align-self: flex-start;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-on-surface);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
    background-color: transparent;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    font-family: var(--font-secondary);
    font-size: clamp(13px, 0.4vw + 11px, 14px);
    line-height: 1.7;
    color: rgba(27, 28, 25, 0.6);
    padding: 0 1.6rem 1.4rem 1.6rem;
}

.faq-answer a {
    color: inherit;
    text-decoration: underline;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Section 15: Blog / The Journal */
.blog-section {
    padding: 10rem 5% 12rem 5%;
    background-color: #F8F7F3;
    color: var(--color-on-surface);
}

.blog-container {
    max-width: 1920px;
    margin: 0 auto;
}

/* Header Layout */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.blog-header-content {
    flex: 1;
}


/* Grid Layout - 4 Columns on Blog Archive Desktop */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 3-Column Grid Layout for Homepage & Single Post Other Blogs */
.blog-grid--3col,
.blog-section .blog-grid,
.other-blogs-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card Styles */
.blog-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elev-CARD-HOVER);
}

.blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 10px;
}

.blog-category-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    max-width: 65%;
}

.blog-category-tag {
    background-color: #f2f2f2;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    color: #333;
    display: inline-block;
    line-height: 1.3;
}

.blog-category-tag--more {
    background-color: rgba(0, 73, 157, 0.08);
    color: var(--color-primary);
    font-weight: 700;
    padding: 6px 10px;
}

.blog-card-img-wrap {
    width: 90px;
    height: 65px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.05);
}

.blog-card-bottom {
    margin-top: auto;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(27, 28, 25, 0.5);
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.blog-card-title {
    margin-bottom: 12px;
    color: var(--color-on-surface);
    font-size: 1.15rem;
    line-height: 1.28;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--color-primary);
}

.blog-card-description {
    color: rgba(27, 28, 25, 0.55);
    font-family: var(--font-secondary);
    font-size: 13px;
    line-height: 1.5;
    max-width: 100%;
}

/* Responsive Breakpoints for Blog Grid */
@media (max-width: 1200px) {
    .testimo-desktop-br,
    .testimo-desktop-span {
        display: none !important;
    }

    .testimo-mobile-br {
        display: block !important;
    }

    .testimo-mobile-span {
        display: inline !important;
    }

    .blog-heading {
        font-size: 3rem;
    }

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

    .blog-card {
        min-height: 380px;
    }
}

@media (max-width: 1024px) {
    .blog-grid--3col,
    .blog-section .blog-grid,
    .other-blogs-section .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 6rem 5%;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .blog-heading {
        font-size: 2.5rem;
    }

    .blog-card-top {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 580px) {
    .blog-grid,
    .blog-grid--3col,
    .blog-section .blog-grid,
    .other-blogs-section .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card {
        min-height: auto;
        padding: 20px;
    }
}

/* Blog Pagination (max 20 cards per page) */
.pagination-wrapper {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.blog-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 9999px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-on-surface);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-elev-1);
}

.blog-pagination .page-numbers:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elev-2);
}

.blog-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(0, 73, 157, 0.3);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 8px;
    box-shadow: none;
    color: rgba(27, 28, 25, 0.4);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-brand-glow-DEFAULT);
}

.back-to-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-glow-HOVER);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive FAQ */
@media (max-width: 900px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .faq-left {
        position: static;
    }

    .faq-subheading {
        max-width: 100%;
    }
}

/* â”€â”€ Carousel Dots â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(27, 28, 25, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.testimo-dots {
    margin-top: 20px;
}

#care-plans-dots {
    display: none;
    /* Only visible on mobile swipe carousel */
}

/* Media Queries */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .island-menu-btn {
        width: 20px;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
        transform: scale(1);
    }

    .mobile-menu-btn {
        display: none;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mega-left {
        display: none;
        /* Hide images on tablet/mobile for focus */
    }

    /* Logo crop moved to mobile breakpoint */

    .mega-nav-link {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .service-row {
        padding: 3rem 0;
    }

    .service-right {
        flex: 0 0 360px;
    }

    /* Portfolio Tablet Overrides */
    .portfolio-project--offset {
        margin-top: 2.5rem;
    }

    .portfolio-pair {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .portfolio-solo .portfolio-project {
        width: 100%;
    }


}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.6rem 1rem;
    }

    /* Scrolled navbar: float away from screen edges + uniform padding */
    .navbar.scrolled {
        width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        /* 1rem gap from each screen edge */
    }

    .navbar.scrolled .nav-container {
        padding: 0 1rem;
        /* left/right matches top/bottom implied padding */
    }

    .logo-wrapper {
        width: 120px;
    }

    .nav-left,
    .nav-right {
        gap: 1.5rem;
    }

    .btn--sz-nav {
        padding: 10px 16px;
    }

    .btn--sz-nav .btn-text-wrapper {
        font-size: 13px;
    }



    /* Move up hero section slightly and reduce its height */
    .hero-section {
        height: 80vh;
    }

    /* More bottom breathing room so CTA button doesn't crowd the section edge */
    .hero-content {
        padding-bottom: 10%;
    }

    .process-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .process-header-right {
        align-items: flex-start;
        text-align: left;
    }

    .process-section {
        height: auto;
        padding: 6rem 5% 2rem 5%;
    }

    .process-sticky-wrapper {
        position: relative;
        height: auto;
        padding-top: 0;
        padding-bottom: 0;
        overflow: visible;
    }

    .process-slider-track {
        margin-left: 0;
        width: 100%;
        padding: 0;
        /* Section already provides 5% horizontal padding â€” remove double-padding */
    }

    .process-slider {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        transform: none !important;
    }

    .process-card {
        flex: 0 0 auto;
        width: 100%;
        padding: 2.5rem 2rem;
    }

    .clients-bar-container {
        flex-direction: column;
        align-items: center;
    }

    .clients-tag {
        padding: 1.5rem 5% 0.5rem 5%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }

    .clients-tag span {
        white-space: nowrap;
        font-size: 10px;
    }

    .clients-tag br {
        display: none;
    }

    .marquee-wrapper {
        width: 100%;
        padding: 0.5rem 0 1.5rem 0;
    }

    .marquee-content {
        gap: 3rem;
        padding-right: 3rem;
    }

    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 25vw;
    }

    .pain-point-section {
        padding: 5rem 5% 6rem 5%;
    }

    .scrub-heading {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .pain-point-split {
        flex-direction: column;
        align-items: stretch;
        gap: 3rem;
    }

    .pain-point-text,
    .pain-point-image {
        width: 100%;
    }

    .pain-point-text {
        margin-left: 0;
        padding-bottom: 0;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .btn-primary {
        width: 100%;
    }

    .services-section {
        padding: 4rem 5%;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }



    .services-header-right {
        align-self: flex-start;
    }

    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .service-left {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .service-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .service-right {
        flex: 1;
        max-width: 100%;
    }

    .service-row:hover .service-title,
    .service-row:active .service-title {
        transform: none !important;
    }

    .pain-point-image video {
        width: 100%;
        height: 100%;
        border-radius: 20px;
        object-fit: cover;
    }

    .hover-image-container {
        display: none !important;
    }

    .portfolio-pair {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    #portfolio-grid .portfolio-pair {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .portfolio-pair .portfolio-project:nth-child(1),
    .portfolio-pair .portfolio-project:nth-child(2) {
        width: 100%;
        justify-self: stretch;
    }

    .portfolio-project--offset,
    #portfolio-grid .portfolio-project--offset {
        margin-top: 0;
    }

    .portfolio-solo .portfolio-project {
        width: 100%;
    }

    #portfolio-grid .portfolio-solo .portfolio-project {
        width: calc(50% - 1rem);
    }

    .portfolio-hero-header {
        position: relative;
        top: 0;
        margin-bottom: 3rem;
        padding: 0 5%;
    }

    .portfolio-hero-heading {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
    }

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

    .portfolio-heading {
        max-width: 100%;
    }

    .portfolio-header-right {
        text-align: left;
    }

    .portfolio-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .portfolio-proj-tag {
        margin-left: -1.5px;
        /* Optically aligns Poppins with Diagramm */
    }

    /* Stacked meta: category tags align flush with the project name */
    .portfolio-category-tags {
        margin-left: 0;
    }

    /* Stacked cards: equalise inter-pair/solo spacing with intra-pair gap */
    .portfolio-projects {
        gap: 2.5rem;
    }

    .about-teaser-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-teaser-right {
        margin-top: 0;
    }

    .about-teaser-section {
        padding: 6rem 5%;
    }

    /* Disable entrance animation for care cards on mobile (carousel reveals on swipe) */
    .care-card.reveal-fade-up,
    .care-card.reveal-scale-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* â”€â”€ Section 7: Care Plans â€” Tablet/Mobile Base Fixes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    /* Stack header vertically and scale heading on any small screen.
       Stays horizontally centered â€” see the 1024px tier for the same rationale. */
    .care-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .care-toggle-wrapper {
        align-self: center;
    }

    .care-footer-note {
        display: block;
    }

    /* â”€â”€ Section 8: Testimonials â€” Mobile Fixes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    /* Bug 4 fix: testimo-heading font-size override removed.
       The original clamp(3rem, 4.5vw, 4.5rem) gives 3rem = 48px on mobile
       which fills the screen width in 2 clean lines. */

    /* Give the right column a concrete height so flex children don't collapse */
    .testimo-col-right {
        min-height: 480px;
    }

    /* Give each slot a fixed height on mobile (flex:1 collapses to 0 when parent has no height) */
    .testimo-slot-viewport {
        min-height: 220px;
        flex: 1 1 auto;
    }

    /* Ensure the stats wrapper doesn't get extra right padding on mobile */
    .testimo-stats-wrapper {
        padding-right: 0;
    }

    /* Bug 1 (revised): Lower the min clamp so "Infrastructure Behind" (21 chars)
       fits within ~337px content area on 375px screens.
       7.5vw at 375px = 28.1px; character analysis confirms it fits. */
    .text-display {
        font-size: clamp(1.6rem, 7.5vw, 3.5rem);
    }

    /* Bug 2: Portfolio "Not Just to Look Good." â€” allow nowrap span to wrap on mobile */
    .portfolio-hero-heading span {
        white-space: normal !important;
    }



    /* â”€â”€ Section 14: FAQ Mobile Fixes â”€â”€ */
    .faq-section {
        padding: 3.5rem var(--gutter-section);
    }

    .faq-question {
        padding: 1.3rem 1rem;
        gap: 1rem;
    }

    .faq-question-text {
        font-size: clamp(14px, 0.8vw + 12px, 16px);
    }

    /* â”€â”€ Section 12: Final CTA Mobile Fixes â”€â”€ */
    .final-cta-section {
        padding: 6rem 5%;
        min-height: 60vh;
    }



    .cta-text-desktop {
        display: none !important;
    }

    .cta-text-mobile {
        display: inline !important;
    }
}

/* Care Plans horizontal swipe carousel â€” mobile only (â‰¤480px) */
/* Separate from the 768px block so the 2-column tablet grid still applies above 480px */
@media (max-width: 600px) {
    .logo-wrapper {
        width: 25px !important;
    }

    .mega-logo-wrapper {
        width: 25px;
    }
}

@media (max-width: 1024px) {

    /* Strip horizontal padding so carousel can bleed; reduce top/bottom to match About section */
    .care-section {
        padding: 4rem 0;
        /* Matches about-teaser-section top/bottom; sides stripped for carousel */
        overflow: hidden;
    }

    /* Restore horizontal padding for the header only */
    .care-header {
        padding: 0 5vw;
        /* vw aligns with viewport like other sections' 5% section padding */
    }

    /* Convert grid to horizontal flex swipe track */
    .care-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: unset;
        gap: 1.25rem;
        /* Horizontal padding removed from the container â€” unreliable in mobile WebKit flex+overflow-x.
           Offset is handled via first/last child margins below instead. */
        padding: 0.5rem 2rem 2.5rem 0;
        scroll-padding-left: 5vw;
        scroll-padding-right: 5vw;
        /* Guides snap alignment to match the margin offset */
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 2rem;
        align-items: stretch;
    }

    .care-grid::-webkit-scrollbar {
        display: none;
    }

    /* Each card: ~42vw wide, next card peeks into viewport.
       Scoped to `.care-grid` so swipe-track sizing and the 5vw edge margins stay inside
       the carousel. The care-plans page lays its cards out in `.care-grid--2col` (a real
       grid), where the previously unscoped `.care-card:first-child { margin-left: 5vw }`
       and `:last-child { margin-right: 5vw }` shifted the two cards in opposite
       directions â€” the lopsided tablet margins and the mobile horizontal overflow. */
    .care-grid .care-card {
        flex: 0 0 42vw;
        scroll-snap-align: start;
        min-width: 0;
    }

    /* First card: margin-left aligns it with heading/toggle (5vw = site-standard padding) */
    .care-grid .care-card:first-child {
        margin-left: 5vw;
    }

    /* Last card: right margin ensures it doesnâ€™t snap hard against the edge */
    .care-grid .care-card:last-child {
        margin-right: 5vw;
    }

    /* Restore padding for footer note */
    .care-footer-note {
        padding: 0 5vw;
        /* vw keeps alignment consistent with header above */
        display: block;
    }

    #care-plans-dots {
        display: flex;
        padding-bottom: 2rem;
    }

    #care-plans-dots .dot:nth-child(3) {
        display: none;
    }

    .faq-section {
        padding: var(--space-section-tablet, 4.5rem) var(--gutter-section);
    }
}

@media (max-width: 600px) {

    /* Each card: ~82vw wide, next card peeks ~8% into viewport.
       Carousel-scoped for the same reason as the 1024px tier above. */
    .care-grid .care-card {
        flex: 0 0 82vw;
    }

    #care-plans-dots .dot:nth-child(3) {
        display: block;
    }
}

/* â”€â”€ Final CTA Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.final-cta-section {
    position: relative;
    background-color: #030712 !important;
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 5%;
    width: auto;
    margin: 0;
    border-radius: 24px;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.cta-marquee {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 320px;
    z-index: 2;
    overflow: hidden;
    font-family: var(--font-secondary);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, transparent 100%);
}

.cta-marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.cta-marquee-track span {
    padding-right: 20px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cta-content {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.cta-heading {
    pointer-events: none;
    /* Let cursor interact behind text */
}

/* Specific pill style for this dark bg button */
.btn-pill-white {
    background-color: #ffffff;
    color: #000000;
    border-radius: 9999px;
    padding: 0.8rem 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}

.btn-pill-white:hover {
    transform: scale(1.05);
}

.btn-dot-orange {
    width: 6px;
    height: 6px;
    background-color: #ff3b00;
    border-radius: 50%;
    display: inline-block;
}

/* Image Trail Elements */
.cta-trail-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.trail-image {
    position: absolute;
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    box-shadow: var(--shadow-elev-9);
    will-change: transform, opacity;
}

/* ════ PRELOADER AND LOADING STATE FIXES ════ */
/* Stop native hero elements from animating or showing until preloader finishes */
body:not(.animations-ready) .char-animate,
body:not(.animations-ready) .word-reveal-inner,
body:not(.animations-ready) .hero-body,
body:not(.animations-ready) .hero-subheading,
body:not(.animations-ready) .hero-ctas,
body:not(.animations-ready) .navbar {
    opacity: 0 !important;
    animation-play-state: paused !important;
}

html:has(#preloader),
body:has(#preloader) {
    overflow: hidden !important;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#scrollHint {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-on-surface);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
    white-space: nowrap;
}

.pre-row {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: max-content;
    pointer-events: none;
    z-index: 5;
}

.pre-word {
    font-family: var(--font-primary);
    font-size: clamp(1.85rem, 4.5vw, 5rem);
    font-weight: 500;
    color: var(--color-on-surface);
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(22px);
    will-change: transform, opacity;
    flex-shrink: 0;
}

#wordLeft,
#wordRight {
    width: auto;
    padding: 0;
}

#pre-img-wrap {
    position: relative;
    width: 0;
    height: 0;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    z-index: 6;
    opacity: 0;
    will-change: width, height, border-radius, opacity;
}

/* â”€â”€ Z-INDEX STACKING â€” Footer Reveal From Behind â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* body { position:relative; z-index:1 } (set above) creates a stacking      */
/* context that sits above the fixed footer across the ENTIRE page, including */
/* the gaps created by section margins. No individual section rules needed.  */
.surface-wrapper {
    background-color: var(--color-surface);
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.surface-wrapper.no-bottom-padding {
    padding-bottom: 0;
}

.hero-section,
.clients-section,
.pain-point-section,
.services-section,
.process-section,
.portfolio-section,
.care-section,
.testimonials-section,
.about-teaser-section,
.blog-section,
.faq-section,
.final-cta-section,
#main-content,
main,
.privacy-section,
.terms-section,
.blog-archive-section,
.blog-post-section,
.portfolio-archive-section,
.case-study-section {
    position: relative;
    z-index: 1;
    background-color: var(--color-surface, #F8F7F3);
}

/* â”€â”€ Site Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    background-color: #F8F7F3;
    color: #1b1c19;
    padding: 1rem 0 0;
    overflow: hidden;
    box-sizing: border-box;
    /* Height is set dynamically; body padding-bottom compensates */
}

.footer-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}

/* Row 1: Â© encrypted â€” full-width display text */
.footer-top-row {
    display: flex;
    align-items: baseline;
    gap: 0.02em;
    /* Tighter gap */
    line-height: 1;
    margin-bottom: -0.05em;
}

.footer-copy-symbol {
    font-family: var(--font-primary);
    /* font-size controlled by JS fitFooterText() via parent .footer-top-row */
    font-size: inherit;
    font-weight: 500;
    color: #1b1c19;
    line-height: 1;
    letter-spacing: -0.02em;
}

.footer-word-encrypted {
    font-family: var(--font-primary);
    /* font-size controlled by JS fitFooterText() via parent .footer-top-row */
    font-size: inherit;
    font-weight: 500;
    color: #1b1c19;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

/* Row 2: social + tagline on left, "studio." on right */
.footer-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -3.5vw;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #1b1c19;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.footer-tagline {
    font-family: var(--font-secondary);
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    font-weight: 400;
    color: rgba(27, 28, 25, 0.72);
    line-height: 1.6;
}

.footer-word-studio {
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 8vw, 9rem);
    font-weight: 400;
    color: #1b1c19;
    line-height: 1;
    letter-spacing: -0.04em;
    align-self: flex-end;
}

/* Bottom bar */
.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(27, 28, 25, 0.12);
    font-family: var(--font-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: rgba(27, 28, 25, 0.35);
    text-transform: uppercase;
}

/* â”€â”€ Responsive Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
    .footer-bottom-row {
        /* Replace desktop negative margin with a modest positive gap */
        margin-top: 1.25rem;
    }

    .footer-bar {
        padding-bottom: 5rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        /* Tight gap: studio. sits close to Â©encrypted */
        margin-top: 0.15rem;
        /* Minimal gap so studio. reads as part of the wordmark */
    }

    /* Reorder studio. to appear ABOVE meta (socials + tagline) in the column.
       This makes the brand name read as a unit: Â©encrypted â†’ studio.
       then social/tagline sits below as secondary information. */
    .footer-word-studio {
        order: -1;
        align-self: flex-end;
        /* Right-aligned â€” mirrors desktop side-by-side design */
        font-size: clamp(2.5rem, 11vw, 5rem);
    }

    .footer-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-bottom: 5rem;
    }
}

/* â”€â”€ Need Badge & Email Obfuscation Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.need-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #d97706;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.need-badge.need-badge--green,
.care-card--full-width .need-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background-color: rgba(14, 159, 110, 0.12);
    color: #0c8a5a;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.js-obfuscated-email {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.js-obfuscated-email:hover {
    color: var(--color-on-surface);
}

/* â”€â”€ Blog Empty State & Footer Links â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.blog-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-on-surface-muted, rgba(27, 28, 25, 0.6));
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    width: 100%;
}

.footer-bar-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bar-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-bar-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* â”€â”€ Care Plans 3-Column Top Grid & Standalone Managed Hosting â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.care-grid--3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto 2.5rem;
    align-items: stretch;
}

/* Carousel Indicator Dots */
.care-carousel-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.care-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(27, 28, 25, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.care-dot--active {
    background-color: var(--color-primary);
    transform: scale(1.25);
}

@media (max-width: 1024px) {
    .care-grid--3col {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.25rem;
        margin-inline: calc(-1 * var(--gutter-section));
        padding-inline: var(--gutter-section);
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
        scroll-padding-left: var(--gutter-section);
        scroll-padding-right: var(--gutter-section);
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 1rem;
        align-items: stretch;
    }

    .care-grid--3col::-webkit-scrollbar {
        display: none;
    }

    .care-grid--3col .care-card {
        flex: 0 0 78vw;
        scroll-snap-align: start;
        min-width: 0;
    }

    .care-carousel-dots {
        display: flex;
    }
}

@media (max-width: 600px) {
    .care-grid--3col {
        gap: 1rem;
    }

    .care-grid--3col .care-card {
        flex: 0 0 78vw;
    }
}

/* Plan 3 â€” standalone managed hosting. Light primary surface matching its `.care-card`
   siblings (which fill #ffffff against the #F3F3F3 section), with a brand-tinted
   elevation replacing the previous near-black #141511 fill.
   Text, icon and badge colours are now inherited from the shared `.care-*` and
   `.need-badge` rules: the dark-card overrides that forced white text, #3892ff icons and
   a second amber badge swatch are deleted, so Plan 3 reads identically to Plans 1 & 2. */
.care-card--full-width {
    background-color: #ffffff;
    border: 1px solid rgba(0, 73, 157, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    color: var(--color-on-surface);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto 4rem;
    box-shadow: var(--shadow-brand-glow-1);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.care-card--full-width:hover {
    box-shadow: var(--shadow-elev-CARD-HOVER);
    transform: translateY(-2px);
}

.care-card--full-width .care-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.care-card--full-width .care-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    min-width: 220px;
}

.care-card--full-width .care-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.care-card--full-width .care-card-top-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Price block sits hard right on the wide layout (was an inline style on the element). */
.care-card--full-width .care-card-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Tagline is body copy on this card, not a price divider â€” drop the siblings' rule. */
.care-card--full-width .care-price-tagline {
    border-bottom: none;
    padding-bottom: 0;
}

/* Full-width card, so the feature list reads as a responsive grid rather than a column. */
.care-card--full-width .care-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.care-card--full-width .need-badge {
    margin-left: 0;
}

@media (max-width: 768px) {
    .care-card--full-width {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.75rem var(--gutter-section);
    }

    .care-card--full-width .care-card-left,
    .care-card--full-width .care-card-right,
    .care-card--full-width .care-card-top {
        display: contents;
    }

    .care-card--full-width .care-card-top-main {
        order: 1;
    }

    .care-card--full-width .care-card-price {
        order: 2;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: -1.1rem;
    }

    .care-card--full-width .need-badge.need-badge--green {
        order: 3;
        align-self: flex-start;
        margin-left: 0;
        margin-top: 0;
    }

    .care-card--full-width .care-price-tagline {
        order: 4;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        width: 100%;
    }

    .care-card--full-width .care-features {
        order: 5;
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 1rem;
        width: 100%;
    }

    .care-card--full-width .care-features li {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .care-card--full-width .care-features li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .care-card--full-width .btn {
        order: 6;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* â”€â”€ Care Plans page (care-plans.html) â€” A-4 layout contract â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Scoped to `.care-section--page` so none of it reaches the index.html care carousel,
   which shares the `.care-*` class family. Replaces the inline styles that were on the
   section, heading, subheading, toggle wrapper and footer note. */
.care-section--page {
    padding-top: 7rem;
}

.care-section--page .care-heading,
.care-section--page .care-subheading {
    text-align: center;
}

.care-section--page .care-subheading {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.65);
    max-width: 650px;
    margin: 0 auto;
}

.care-section--page .care-header .care-toggle-wrapper {
    margin-top: 0.5rem;
}

.care-section--page .care-footer-note {
    text-align: center;
    margin-top: 2rem;
    color: rgba(27, 28, 25, 0.6);
}

/* Mobile: single column, centered header, no horizontal overflow. */
@media (max-width: 768px) {
    .care-section--page .care-header {
        padding: 0 1rem;
    }

    .care-section--page .care-grid--3col {
        gap: 1.5rem;
        width: 100%;
    }

    .care-section--page .care-footer-note {
        padding: 0 1rem;
    }
}

/* â”€â”€ Subpages & Shells (Phase A-5) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€ Subpages & Shells Precision Polish (Phase A-5) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Portfolio Hero Card (Guaranteed 55vh-60vh Height with Video BG) */
.subpage-hero-card.portfolio-hero-card {
    min-height: 55vh !important;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #ffffff;
    background-color: var(--color-bg);
    padding: 4rem 2rem;
}

@media (max-width: 768px) {
    .subpage-hero-card {
        min-height: 50vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 6rem !important;
        padding-bottom: 3.5rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .subpage-hero-card.portfolio-hero-card {
        min-height: 60vh !important;
    }
}

/* Shared Subpage Hero Card Container (Matches Homepage Hero Structure) */
.subpage-hero {
    padding-top: clamp(3rem, 5vw, 4rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subpage-hero-card {
    background-color: #EFEFEA;
    border-radius: 24px;
    padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
    margin: 0 0 2rem;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.subpage-hero .section-label-row,
.subpage-hero-card .section-label-row {
    justify-content: center;
    margin-bottom: 1rem;
}

.subpage-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    background-color: rgba(0, 73, 157, 0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.subpage-subheading {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.7);
    max-width: 680px;
    margin: 0 auto;
}

/* Category Filter Tabs & Mobile Single-Row Carousel */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem auto 1.25rem;
    max-width: 1200px;
}

.filter-tab {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    background-color: rgba(0, 0, 0, 0.04);
    color: rgba(27, 28, 25, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    white-space: nowrap;
}

.filter-tab:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--color-on-surface);
    transform: translateY(-1px);
}

.filter-tab--active,
.filter-tab.active {
    background-color: var(--color-on-surface);
    color: #ffffff;
    border-color: var(--color-on-surface);
    box-shadow: var(--shadow-elev-4);
}

@media (max-width: 600px) {
    .hero-heading {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
        line-height: 1.08;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline !important;
    }

    br.mobile-only {
        display: block !important;
    }

    .blog-header-content,
    .blog-header-content h2 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #portfolio-grid {
        gap: 2.5rem !important;
    }

    #portfolio-grid .portfolio-pair {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    #portfolio-grid .portfolio-solo .portfolio-project {
        width: 100% !important;
    }

    .filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .filter-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

/* Single Blog Post Template (Image 1 Parity) */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

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

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: calc(var(--nav-height, 100px) + 1.25rem);
    align-self: start;
    max-height: calc(100vh - var(--nav-height, 100px) - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 73, 157, 0.25) transparent;
    padding-right: 4px;
}

.article-sidebar::-webkit-scrollbar {
    width: 4px;
}

.article-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.article-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 73, 157, 0.25);
    border-radius: 9999px;
}

.article-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.sidebar-dark-card {
    background-color: var(--color-bg);
    color: var(--color-text);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-elev-8);
}

.sidebar-dark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-dark-list li {
    font-family: var(--font-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    position: relative;
    padding-left: 1.5rem;
}

.sidebar-dark-list li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-dark-list li a:hover {
    color: #38bdf8;
    transform: translateX(3px);
}

.sidebar-dark-list li.sidebar-dark-list--sub {
    padding-left: 2rem;
    font-size: 0.86rem;
    opacity: 0.9;
}

.sidebar-dark-list li.sidebar-dark-list--sub::before {
    width: 5px;
    height: 5px;
    top: 1.15rem;
    left: 0.85rem;
    background-color: rgba(56, 189, 248, 0.6);
}

.sidebar-dark-list li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 1.05rem;
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.sidebar-dark-list li:last-child {
    border-bottom: none;
}

/* Table of Contents - Clean White Card with Dark Typography */
.sidebar-toc-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.25rem 1.25rem;
    box-shadow: var(--shadow-elev-1);
    flex-shrink: 0;
    width: 100%;
}

.sidebar-toc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: default;
    pointer-events: none;
    text-align: left;
}

.sidebar-toc-arrow {
    display: none;
}

.sidebar-toc-collapse {
    display: block !important;
    height: auto !important;
}

.sidebar-toc-title {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-on-surface);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
    .sidebar-toc-card {
        padding: 1.5rem 1.25rem;
    }

    .sidebar-toc-toggle {
        cursor: pointer;
        pointer-events: auto;
        padding: 0.25rem 0;
    }

    .sidebar-toc-title {
        margin-bottom: 0;
    }

    .sidebar-toc-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-primary);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .sidebar-toc-toggle.is-open .sidebar-toc-arrow {
        transform: rotate(180deg);
    }

    .sidebar-toc-collapse {
        display: none !important;
        margin-top: 1.25rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .sidebar-toc-collapse.is-open {
        display: block !important;
        animation: esFadeSlideIn 0.25s ease forwards;
    }
}

.sidebar-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 73, 157, 0.25) transparent;
    padding-right: 4px;
}

.sidebar-toc-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-toc-list::-webkit-scrollbar-thumb {
    background: rgba(0, 73, 157, 0.25);
    border-radius: 9999px;
}

.sidebar-toc-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@media (max-width: 1024px) {
    .sidebar-toc-list {
        max-height: none;
        overflow: visible;
    }
}

.sidebar-toc-list li {
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    padding-left: 1.25rem;
}

.sidebar-toc-list li:last-child {
    border-bottom: none;
}

.sidebar-toc-list li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 1rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.sidebar-toc-list li a {
    color: rgba(27, 28, 25, 0.8);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-toc-list li a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.sidebar-toc-list li.sidebar-toc-list--sub {
    padding-left: 1.85rem;
    font-size: 0.85rem;
}

.sidebar-toc-list li.sidebar-toc-list--sub::before {
    width: 4px;
    height: 4px;
    top: 1.05rem;
    left: 0.85rem;
    background-color: rgba(0, 73, 157, 0.4);
}

.sidebar-callout-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow-elev-1);
    flex-shrink: 0;
    width: 100%;
}

.sidebar-callout-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 73, 157, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.sidebar-callout-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-on-surface);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.sidebar-callout-desc {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(27, 28, 25, 0.65);
    margin-bottom: 0.85rem;
}

/* Other Blogs Section (Image 1 Parity) */
.other-blogs-section {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.other-blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.other-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card-item {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-elev-1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elev-CARD-HOVER);
}

.blog-card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eae8e1;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: rgba(27, 28, 25, 0.55);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-on-surface);
    margin-bottom: 0.6rem;
}

.blog-card-excerpt {
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(27, 28, 25, 0.65);
}

/* Transform Your Ideas Banner CTA (Image 1 Parity) */
.transform-cta-banner {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
    max-width: 1200px;
    margin: 4rem auto 2rem;
    text-align: center;
    box-shadow: var(--shadow-elev-1);
}

.transform-cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    font-weight: 500;
    color: var(--color-on-surface);
    margin-bottom: 1.75rem;
    line-height: 1.1;
}

@media (max-width: 1024px) {
    .article-grid {
        display: flex;
        flex-direction: column;
    }

    .article-sidebar {
        display: contents;
    }

    .sidebar-toc-card {
        order: 1;
        margin-bottom: 2rem;
    }

    .article-main {
        order: 2;
    }

    .sidebar-ad-card,
    .sidebar-ad-fallback {
        order: 3;
        margin-top: 2rem;
    }
}

.subpage-subheading {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.7);
    max-width: 680px;
    margin: 0 auto;
}



/* Empty State Styling */
.empty-state-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    max-width: 720px;
    margin: 2rem auto;
    box-shadow: var(--shadow-elev-1);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 73, 157, 0.08);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.empty-state-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--color-on-surface);
    margin-bottom: 0.75rem;
}

.empty-state-body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.65);
    max-width: 520px;
    margin: 0 auto;
}

/* Newsletter Box */
.newsletter-card {
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 24px;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    max-width: 800px;
    margin: 3.5rem auto 2rem;
    text-align: center;
    box-shadow: var(--shadow-elev-8);
}

.newsletter-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.newsletter-desc {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1 1 260px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    border-color: var(--color-primary-container);
}

/* Case Study Single Layout */
.case-study-hero {
    padding-top: clamp(6.5rem, 8vw, 7.5rem);
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 4rem);
    padding-right: clamp(1.25rem, 5vw, 4rem);
}

.case-study-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-elev-1);
}

.case-study-meta-label {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(27, 28, 25, 0.5);
    margin-bottom: 0.35rem;
}

.case-study-meta-value {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-on-surface);
}

.case-study-banner {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-elev-2);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #eae8e1;
}

.case-study-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.case-study-body {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.case-study-section {
    margin-bottom: 3.5rem;
}

.case-study-section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--color-on-surface);
    margin-bottom: 1rem;
}

.case-study-text {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(27, 28, 25, 0.8);
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-elev-1);
}

.metric-val {
    font-family: var(--font-primary);
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-lbl {
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(27, 28, 25, 0.65);
}

.case-study-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: #eae8e1;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

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

/* Typography Container for Blog Articles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(6.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 2rem) 4rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    color: rgba(27, 28, 25, 0.6);
    margin-top: 1.25rem;
}

.article-featured-img {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: #eae8e1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-elev-2);
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-family: var(--font-secondary);
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(27, 28, 25, 0.85);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-on-surface);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h2[id],
.article-body h3[id] {
    scroll-margin-top: calc(var(--nav-height, 100px) + 2rem);
}

.article-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-on-surface);
}

.article-callout {
    background: rgba(0, 73, 157, 0.05);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    border-left: 4px solid var(--color-primary);
}

.share-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 2rem;
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-title {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-on-surface);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Single post: Key Takeaways card heading (unstyled in Phase A prototype, tokenized here) */
.sidebar-dark-title {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

/* Sidebar Advertisement Banner Card */
.sidebar-ad-card {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-elev-1);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.sidebar-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elev-CARD-HOVER);
}

.sidebar-ad-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.sidebar-ad-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

/* Single post: content lists (parity with Phase A inline <ol> styling) */
.article-body ol,
.article-body ul {
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.article-body ol li,
.article-body ul li {
    margin-bottom: 0.75rem;
}

.article-body ol li::marker,
.article-body ul li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Single post: author / bio card */
.article-author-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-elev-1);
}

.article-author-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 73, 157, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.article-author-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-on-surface);
    line-height: 1.2;
}

.article-author-role {
    font-family: var(--font-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 0.15rem;
    margin-bottom: 0.5rem;
}

.article-author-bio {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(27, 28, 25, 0.65);
    margin: 0;
}

@media (max-width: 580px) {
    .article-author-card {
        flex-direction: column;
    }
}

/* Legal Pages Styling (Privacy & Terms) */
.legal-section {
    padding-top: clamp(6.5rem, 8vw, 8rem);
    padding-bottom: 5rem;
    max-width: 860px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 2rem);
    padding-right: clamp(1.25rem, 5vw, 2rem);
}

.legal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-elev-1);
    margin-top: 2rem;
}

.legal-card h2,
.legal-card h3 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    line-height: 1.25;
    color: var(--color-on-surface);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    letter-spacing: -0.01em;
}

.legal-card h2::before,
.legal-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--color-primary);
    border-radius: 9999px;
}

.legal-card h2:first-child,
.legal-card h3:first-child {
    margin-top: 0;
}

.legal-card p {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: rgba(27, 28, 25, 0.8);
    margin-bottom: 1.25rem;
}

.legal-card ol,
.legal-card ul {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: rgba(27, 28, 25, 0.8);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-card li {
    margin-bottom: 0.75rem;
}

.legal-text {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: rgba(27, 28, 25, 0.8);
    margin-bottom: 1.5rem;
}

.legal-contact-box {
    background: rgba(0, 73, 157, 0.04);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(0, 73, 157, 0.12);
}

.legal-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.legal-contact-link:hover {
    color: var(--color-tertiary);
    text-decoration: underline;
}

/* ==========================================================================
   Fluent Forms & Form Component Global Styling
   ========================================================================== */

.contact-form-wrapper,
.start-form-wrapper,
.fluentform,
.fluentform fieldset {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.fluentform form.frm-fluent-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

.fluentform form.frm-fluent-form[style*="display: none"],
.fluentform form.frm-fluent-form[style*="display:none"],
.fluentform form.frm-fluent-form.ff-hidden,
.fluentform form.frm-fluent-form.ff_form_hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.fluentform .clearfix:before,
.fluentform .clearfix:after,
.fluentform .ff-el-group:before,
.fluentform .ff-el-group:after,
.fluentform .ff-t-container:before,
.fluentform .ff-t-container:after {
    display: none !important;
    content: none !important;
}

.form-row-2col,
.start-form .form-row-2col,
.fluentform .form-row-2col,
.fluentform .ff-t-container,
.fluentform .ff-column-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.15rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.fluentform .ff-t-cell,
.fluentform .ff-t-column-1,
.fluentform .ff-t-column-2 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    flex-basis: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.form-group,
.start-form .form-group,
.fluentform .ff-el-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.form-label,
.start-form .form-label,
.fluentform .ff-el-input--label {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
    margin: 0 0 0.2rem 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.form-label,
.start-form .form-label,
.fluentform .ff-el-input--label label {
    font-family: var(--font-secondary) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--color-on-surface) !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.form-label .required-star,
.start-form .form-label .required-star,
.fluentform .ff-el-is-required label::after,
.fluentform .ff-el-is-required .ff-el-input--label label::after {
    color: #cf2e2e !important;
}

.fluentform .ff-el-input--content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.form-input,
.form-select,
.form-textarea,
.start-form .form-input,
.start-form .form-select,
.start-form .form-textarea,
.fluentform .ff-el-form-control,
.fluentform input.ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    padding: 0.85rem 1.1rem !important;
    font-family: var(--font-secondary) !important;
    font-size: inherit !important;
    color: var(--color-on-surface) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.form-input::placeholder,
.form-textarea::placeholder,
.fluentform .ff-el-form-control::placeholder {
    color: rgba(27, 28, 25, 0.35) !important;
    font-family: var(--font-secondary) !important;
}

.form-select,
.start-form .form-select,
.fluentform select.ff-el-form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300499d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.15rem center !important;
    background-size: 1.1em !important;
    cursor: pointer !important;
    padding-right: 2.5rem !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.start-form .form-input:focus,
.start-form .form-select:focus,
.start-form .form-textarea:focus,
.fluentform .ff-el-form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 73, 157, 0.1) !important;
}

.form-textarea,
.start-form .form-textarea,
.fluentform textarea.ff-el-form-control {
    resize: vertical !important;
    min-height: 110px !important;
}

.form-hint,
.start-form .form-hint,
.fluentform .ff-el-help-message {
    font-family: var(--font-secondary) !important;
    font-size: 0.8rem !important;
    font-style: normal !important;
    color: rgba(27, 28, 25, 0.5) !important;
    margin-top: 0.15rem !important;
    line-height: 1.4 !important;
}

.fluentform .ff-el-tooltip {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: 0.35rem !important;
}

.fluentform .ff-el-tooltip svg {
    width: 14px !important;
    height: 14px !important;
    fill: var(--color-primary) !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.fluentform .ff-el-tooltip:hover svg {
    opacity: 1;
}

.fluentform .ff_submit_btn_wrapper,
.fluentform .ff-el-group.ff_submit_btn_wrapper {
    display: flex !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.contact-submit-btn,
.start-submit-btn,
.fluentform .ff-btn-submit {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 1rem 2rem !important;
    font-family: var(--font-secondary) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border: none !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

.contact-submit-btn:hover,
.start-submit-btn:hover,
.fluentform .ff-btn-submit:hover {
    background: var(--color-primary-container) !important;
    transform: translateY(-1px);
}

/* Website Domain & Notes Conditional Visibility */
.form-group-domain,
.form-group:has(input[name="website_domain"]),
.fluentform .ff-el-group:has(input[name="website_domain"]),
.form-group-notes,
.form-group:has(textarea[name="notes"]),
.fluentform .ff-el-group:has(textarea[name="notes"]) {
    display: none !important;
}

.form-group-domain.is-visible,
.form-group:has(input[name="website_domain"]).is-visible,
.fluentform .ff-el-group:has(input[name="website_domain"]).is-visible,
.form-group-notes.is-visible,
.form-group:has(textarea[name="notes"]).is-visible,
.fluentform .ff-el-group:has(textarea[name="notes"]).is-visible {
    display: flex !important;
    animation: esFadeSlideIn 0.25s ease forwards;
}

/* Required Asterisk Highlight */
.required-star,
.form-label .required-star,
.fluentform .ff-el-is-required label::after,
.fluentform .ff-el-is-required .ff-el-input--label label::after,
.fluentform .ff-el-is-required .ff-el-input--label::after {
    color: #cf2e2e !important;
    font-weight: 700 !important;
    margin-left: 3px !important;
    display: inline-block !important;
}

/* Single Outer Card Container for Success Message (No Double Box) */
.fluentform .ff-message-success {
    background: #ffffff !important;
    border: 1px solid rgba(0, 73, 157, 0.16) !important;
    border-radius: 20px !important;
    padding: clamp(1.5rem, 3vw, 2.25rem) !important;
    box-shadow: var(--shadow-elev-1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    animation: esFadeSlideIn 0.35s ease forwards;
    box-sizing: border-box !important;
}

/* Inner Message Content — Transparent, zero double-padding, zero double-border */
.fluentform .ff-message-success .es-success-message {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    animation: none !important;
}

/* Standalone Success Message (for static site reference) */
.es-success-message {
    background: #ffffff;
    border: 1px solid rgba(0, 73, 157, 0.16);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-elev-1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    width: 100%;
    animation: esFadeSlideIn 0.35s ease forwards;
    box-sizing: border-box;
}

@keyframes esFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.es-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 73, 157, 0.08);
    margin-bottom: 0.2rem;
}

.es-success-heading {
    font-family: var(--font-primary) !important;
    font-size: clamp(1.2rem, 2vw, 1.35rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: var(--color-on-surface) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.es-success-body {
    font-family: var(--font-secondary) !important;
    font-size: clamp(13px, 0.4vw + 11px, 14px) !important;
    color: rgba(27, 28, 25, 0.65) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.es-success-body strong {
    color: var(--color-on-surface);
    font-weight: 500;
}

.fluentform .ff-errors-in-stack {
    background: rgba(207, 46, 46, 0.08) !important;
    border: 1px solid #cf2e2e !important;
    border-radius: 12px !important;
    color: #cf2e2e !important;
    padding: 1rem !important;
    font-family: var(--font-secondary) !important;
    font-size: 0.9rem !important;
}

/* Fluent Forms Native intl-tel-input (iti) Country Flags Widget */
.fluentform .iti {
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

.fluentform .iti input.ff-el-form-control,
.fluentform .iti input.ff-el-phone {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    padding: 0.85rem 1.1rem 0.85rem 54px !important;
    font-family: var(--font-secondary) !important;
    font-size: inherit !important;
    color: var(--color-on-surface) !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

.fluentform .iti input.ff-el-form-control:focus,
.fluentform .iti input.ff-el-phone:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 73, 157, 0.1) !important;
}

.fluentform .iti__selected-flag {
    padding: 0 8px 0 14px !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 4 !important;
}

.fluentform .iti__selected-flag:hover {
    background-color: rgba(0, 73, 157, 0.04) !important;
}

.fluentform .iti__arrow {
    border-top-color: var(--color-on-surface) !important;
    margin-left: 4px !important;
}

.fluentform .iti__country-list {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: var(--shadow-elev-3) !important;
    font-family: var(--font-secondary) !important;
    font-size: 0.85rem !important;
    z-index: 99999 !important;
    max-height: 220px !important;
    background: #ffffff !important;
    margin-top: 4px !important;
    padding: 4px 0 !important;
}

.fluentform .iti__country {
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--color-on-surface) !important;
    transition: background-color 0.15s ease !important;
}

.fluentform .iti__country.iti__highlight,
.fluentform .iti__country:hover {
    background-color: rgba(0, 73, 157, 0.08) !important;
}

.fluentform .iti__country-name {
    font-weight: 500 !important;
}

.fluentform .iti__dial-code {
    color: rgba(27, 28, 25, 0.55) !important;
    font-size: 0.8rem !important;
}

@media (max-width: 580px) {
    .form-row-2col,
    .start-form .form-row-2col,
    .fluentform .form-row-2col,
    .fluentform .ff-t-container,
    .fluentform .ff-column-container {
        grid-template-columns: 1fr !important;
        gap: 1.15rem !important;
    }
}