/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Site palette (lidarliam.com contact reference) */
    --pal-navy: #003153;
    --pal-highlight: #f9d995;
    --pal-cream: #fefaf2;
    --pal-grid: #f7e6ca;
    --pal-frame: #f2d8a6;
    --pal-white: #ffffff;
    /* RGB tuples for rgba(var(--rgb-navy), a) etc. */
    --rgb-navy: 0, 49, 83;
    --rgb-highlight: 249, 217, 149;
    --rgb-wm-blue: 29, 79, 145;
    --rgb-grid: 247, 230, 202;

    /* LiDAR.LiAM™ trade wordmark (logo PNG reference — use for mark-related accents only) */
    --wordmark-trade-green: #599b4b;
    --wordmark-trade-red: #bc2026;
    --wordmark-trade-blue: #1d4f91;
    --wordmark-trade-orange: #f6a623;

    /* Legacy names → palette (keeps older selectors working) */
    --berkeley-blue: var(--pal-navy);
    --california-gold: var(--pal-highlight);
    --golden-gate-red: var(--wordmark-trade-red);
    --founders-rock: var(--wordmark-trade-blue);

    /* Wordmark on dark backgrounds (footer / video hero): tints in palette family */
    --wordmark-on-dark-lidar: #fce4a8;
    --wordmark-on-dark-liam: #8ec8eb;

    /* Semantic tokens */
    --primary-color: var(--pal-navy);
    --secondary-color: var(--pal-highlight);
    --accent-color: var(--wordmark-trade-blue);

    --text-primary: var(--pal-navy);
    --text-secondary: #4a657a;

    --bg-primary: var(--pal-cream);
    --bg-secondary: #fcf5e8;
    --bg-dark: #061f33;
    --border-color: var(--pal-frame);

    --surface-mist: #f0f5f9;
    --surface-warm: #faf3e6;

    /* Decorative neutrals (stay within navy / warm sand family) */
    --redwood-bark: #3d3428;
    --sequoia-needle: #0d2838;
    --hardwood-maple: var(--pal-grid);
    --hardwood-oak: #6b5c48;
    --hardwood-cherry: #7a5238;

    --accent-warm: var(--wordmark-trade-orange);
    /* UI “rule” lines: warm gold — not bridge red (red reserved for trade mark context) */
    --accent-bridge: var(--pal-frame);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
    /* Fixed nav + progress bar: anchors land in view, not under the bar */
    scroll-padding-top: 5.75rem;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-size: 1.0625rem;
}

::selection {
    background: rgba(var(--rgb-highlight), 0.42);
    color: var(--text-primary);
}

/* Font Awesome: keep icon glyphs (host CSS resets sometimes override icon fonts) */
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Scroll Progress Bar — California Gold */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--secondary-color);
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(var(--rgb-highlight), 0.75);
}

/* Override any browser scroll progress bars */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

/* Override any browser scroll progress indicators */
html {
    scrollbar-width: none;
}

body {
    scrollbar-width: none;
}

/* Ensure no browser scroll progress bars */
*::-webkit-scrollbar {
    display: none;
}

*::-webkit-scrollbar-track {
    display: none;
}

*::-webkit-scrollbar-thumb {
    display: none;
}

/* Override Chrome's default scroll progress indicator */
html::-webkit-scrollbar {
    display: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Hide any browser scroll progress indicators */
html {
    scrollbar-width: none !important;
}

body {
    scrollbar-width: none !important;
}

/* Additional override for any remaining scroll indicators */
* {
    scrollbar-width: none !important;
}

/* Override any browser scroll progress indicators at the top */
html::before,
html::after,
body::before,
body::after {
    display: none !important;
}

/* Ensure our California Gold scroll bar is the only one visible */
.scroll-progress-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0% !important;
    height: 4px !important;
    background: var(--secondary-color) !important;
    z-index: 10001 !important;
    box-shadow: 0 2px 8px rgba(var(--rgb-highlight), 0.8) !important;
}

/* Nuclear option - hide ALL possible scroll progress indicators */
html, body, * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Hide ALL webkit scrollbars and progress indicators */
::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-corner,
::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Override any browser default scroll progress */
html::before,
html::after,
body::before,
body::after,
*::before,
*::after {
    display: none !important;
}

/* Force remove any browser scroll progress bars */
html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Additional browser-specific overrides */
* {
    -webkit-overflow-scrolling: auto !important;
}

/* Override any remaining scroll indicators */
.scroll-progress-bar {
    background: var(--secondary-color) !important;
    border: none !important;
    outline: none !important;
}

/* Ensure no other elements can create scroll bars */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Final override for any browser scroll progress indicators */
html, body {
    overflow-x: hidden !important;
}

/* Hide any remaining scroll indicators */
.scroll-progress-bar {
    background: var(--secondary-color) !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(var(--rgb-highlight), 0.8) !important;
}

/* Force California Gold color */
.scroll-progress-bar {
    background: var(--secondary-color) !important;
}

/* Override Chrome's built-in scroll progress indicator */
html::-webkit-scrollbar {
    display: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
}

/* Additional override for any browser scroll progress */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Final nuclear option - hide everything except our California Gold bar */
html::before,
html::after,
body::before,
body::after,
*::before,
*::after {
    display: none !important;
}

/* Ensure only our scroll progress bar shows */
.scroll-progress-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0% !important;
    height: 4px !important;
    background: var(--secondary-color) !important;
    z-index: 999999 !important;
    box-shadow: 0 2px 8px rgba(var(--rgb-highlight), 0.8) !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Company mark (replaces default gradient cube when .logo-icon--mark is used) */
.logo-icon.logo-icon--mark {
    width: auto;
    min-width: 0;
    height: 40px;
    padding: 0;
    background: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.07);
}

.logo-icon.logo-icon--mark img {
    height: 100%;
    width: auto;
    max-width: 76px;
    object-fit: contain;
    display: block;
}

/* LiDAR.LiAM™ wordmark PNG — images/lidarliam logo_bg2.png (intrinsic 1536×1024) */
.site-wordmark {
    flex-shrink: 0;
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.nav-logo > .site-wordmark {
    max-height: clamp(1.15rem, 3.4vw, 1.55rem);
}

.footer-logo > .site-wordmark {
    max-height: clamp(1.6rem, 2.6vw, 2.1rem);
}

.site-wordmark--footer-ip {
    display: inline-block;
    vertical-align: -0.18em;
    max-height: 1.15em;
    width: auto;
}

.title-line--wordmark-img {
    display: block;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.site-wordmark--hero {
    display: block;
    max-width: min(100%, 28rem);
    max-height: clamp(2.75rem, 10vw, 5.1rem);
    width: auto;
    height: auto;
}

.site-wordmark--hero-dark {
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
}

.site-wordmark--contact-hero {
    display: block;
    max-height: clamp(1.85rem, 6vw, 3rem);
    width: auto;
    margin-top: 0.25rem;
}

.contact-hero-title-line--2:has(.site-wordmark)::after {
    display: none;
}

.ip-mark .site-wordmark--ip-inline {
    height: 1.1em;
    width: auto;
    vertical-align: -0.2em;
    display: inline-block;
    font-weight: 600;
}

.navbar .nav-logo {
    font-size: 1.35rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--berkeley-blue);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Skip link — visible on keyboard focus */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -120px;
    z-index: 100000;
    padding: 0.65rem 1.15rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.85rem;
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

a.nav-logo {
    text-decoration: none;
    color: inherit;
}

a.nav-logo:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
    border-radius: 12px;
}

.nav-menu a.nav-active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.nav-active::after {
    width: 100%;
}

.nav-menu a.nav-link--cta {
    margin-left: 0.35rem;
    padding: 0.45rem 1.2rem !important;
    border-radius: 999px;
    color: #fff !important;
    background: var(--berkeley-blue);
    box-shadow: 0 2px 12px rgba(var(--rgb-navy), 0.22);
}

.nav-menu a.nav-link--cta::after {
    display: none;
}

.nav-menu a.nav-link--cta:hover {
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(var(--rgb-navy), 0.32);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Full-bleed YouTube inside .hero (Opportunities, etc.) */
.hero.hero--youtube {
    background: #030810;
    isolation: isolate;
}

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

/* Kill YouTube iframe letterbox / default white edge (common “vertical bar” glitch) */
.hero.hero--youtube .hero-video-bg {
    background: #000;
}

/* Opportunities hero — LiDAR scan splash (~5s), then fades to reveal YouTube */
.opportunities-hero-splash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(
            180deg,
            rgba(var(--rgb-navy), 0.52) 0%,
            rgba(0, 0, 0, 0.38) 55%,
            rgba(0, 0, 0, 0.48) 100%
        ),
        url("images/NW_Scan_387.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 1.15s ease;
}

.opportunities-hero-splash.opportunities-hero-splash--clear {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1.15s ease,
        visibility 0s linear 1.15s;
}

@media (prefers-reduced-motion: reduce) {
    .opportunities-hero-splash {
        transition: none;
    }

    .opportunities-hero-splash.opportunities-hero-splash--clear {
        transition: none;
    }
}

/* Opportunities hero: optional solid layer (default .--clear so video shows immediately; tint stays over video) */
.opportunities-hero-overlay-stack {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.opportunities-hero-overlay-tint {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 95% 75% at 50% 45%, rgba(var(--rgb-navy), 0.35) 0%, transparent 60%),
        linear-gradient(180deg, rgba(var(--rgb-navy), 0.55) 0%, rgba(var(--rgb-navy), 0.35) 48%, rgba(var(--rgb-navy), 0.5) 100%);
    opacity: 0.1;
}

.opportunities-hero-overlay-solid {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 16, 0.98);
    opacity: 1;
    transition: opacity 1.45s ease;
}

.opportunities-hero-overlay-solid.opportunities-hero-overlay-solid--clear {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .opportunities-hero-overlay-solid {
        transition: none;
    }
}

.opportunities-hero.hero--youtube .hero-content {
    position: relative;
    z-index: 3;
    grid-template-columns: 1fr;
    max-width: 44rem;
}

.opportunities-hero.hero--youtube .hero-title {
    background: none;
    -webkit-text-fill-color: #fff;
    background-clip: border-box;
    color: #fff;
    text-shadow:
        0 3px 22px rgba(0, 0, 0, 0.5),
        0 2px 18px rgba(var(--rgb-navy), 0.65);
}

.opportunities-hero.hero--youtube .hero-subtitle {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Get in Touch (secondary CTA): high-contrast gold fill on video hero */
.opportunities-hero.hero--youtube .hero-actions .btn-secondary {
    background: rgba(var(--rgb-highlight), 0.96);
    color: var(--berkeley-blue);
    border: 2px solid rgba(255, 255, 255, 0.95);
    font-weight: 700;
    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(var(--rgb-navy), 0.2);
}

.opportunities-hero.hero--youtube .hero-actions .btn-secondary:hover {
    background: #fff;
    color: var(--berkeley-blue);
    border-color: #fff;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(
            135deg,
            rgba(246, 245, 242, 0.72) 0%,
            rgba(255, 255, 255, 0.58) 42%,
            rgba(246, 245, 242, 0.7) 100%
        ),
        url("images/Rocky_Mound_360-300x81.jpg");
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

.grid-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--rgb-navy), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--rgb-navy), 0.045) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

/* Home hero: soft veil above grid — sharp at any size (replaces upscaled diagram PNG) */
.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 48% 42%, rgba(var(--rgb-navy), 0.07) 0%, transparent 58%),
        radial-gradient(ellipse 55% 50% at 78% 28%, rgba(var(--rgb-highlight), 0.06) 0%, transparent 52%),
        radial-gradient(ellipse 70% 45% at 20% 75%, rgba(var(--rgb-wm-blue), 0.06) 0%, transparent 55%);
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Keep CTAs and copy above collage hit targets when cards overlap the column */
.hero-text {
    position: relative;
    z-index: 4;
}

.hero-kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Home only — tagline rotator: colonial-era serif + bold stippled (dot) fill, hero-scale */
#home .hero-title {
    margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

#home .home-tagline-rotator {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    max-width: 100%;
    min-height: clamp(10rem, 28vmin, 20rem);
    margin: clamp(0.5rem, 2vh, 1.5rem) 0 clamp(1.5rem, 4vh, 3rem);
}

#home .home-tagline-rotator .home-handwritten {
    font-family: "IM Fell English", "Libre Baskerville", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: clamp(2.5rem, 11vmin, 7rem);
    font-weight: 600;
    line-height: 1.12;
    margin: 0;
    letter-spacing: 0.04em;
    text-rendering: optimizeLegibility;
    grid-area: 1 / 1;
    align-self: center;
    /* Denser, heavier pointillist fill */
    color: transparent;
    background-image: radial-gradient(
        circle at center,
        var(--berkeley-blue) 0.72px,
        transparent 0.78px
    );
    background-size: 3.1px 3.1px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: contrast(1.22) saturate(1.08);
    opacity: 0;
    transition: opacity 1.15s cubic-bezier(0.42, 0, 0.58, 1);
    pointer-events: none;
    will-change: opacity;
    z-index: 1;
}

#home .home-tagline-rotator .home-tagline-line--visible {
    opacity: 1;
    z-index: 2;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    #home .home-tagline-rotator .home-handwritten {
        color: var(--berkeley-blue);
        background: none;
        -webkit-text-fill-color: unset;
        filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home .home-tagline-rotator .home-handwritten {
        transition: none;
        will-change: auto;
    }
}

.title-line {
    display: block;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    max-width: 38rem;
    animation: slideInUp 0.8s ease-out 0.35s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-points li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.85rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-points li:last-child {
    margin-bottom: 0;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 0 2px rgba(var(--rgb-highlight), 0.25);
}

.hero-points strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.38s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--berkeley-blue);
    color: #fff;
    box-shadow: 0 4px 18px rgba(var(--rgb-navy), 0.28);
}

.btn-primary:hover {
    background: #001f34;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(var(--rgb-navy), 0.34);
}

.btn-secondary {
    background: transparent;
    color: var(--berkeley-blue);
    border: 2px solid var(--berkeley-blue);
}

.btn-secondary:hover {
    background: var(--berkeley-blue);
    border-color: var(--berkeley-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Back to home (about + legal): tunnel intensity image (images/tunnel-4-intensity-return-300x218.jpg) */
.btn.btn-back-home {
    position: relative;
    overflow: hidden;
    background-color: var(--berkeley-blue);
    background-image:
        linear-gradient(135deg, rgba(var(--rgb-navy), 0.88) 0%, rgba(var(--rgb-navy), 0.82) 100%),
        url("images/tunnel-4-intensity-return-300x218.jpg");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.btn.btn-secondary.btn-back-home {
    color: #fff;
}

.btn.btn-back-home:hover {
    background-image:
        linear-gradient(135deg, rgba(var(--rgb-navy), 0.78) 0%, rgba(var(--rgb-navy), 0.72) 100%),
        url("images/tunnel-4-intensity-return-300x218.jpg");
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.btn.btn-secondary.btn-back-home:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
}

.btn.btn-back-home:focus-visible {
    outline: 3px solid rgba(var(--rgb-highlight), 0.95);
    outline-offset: 3px;
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInUp 0.8s ease-out 0.75s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-collage {
    position: relative;
    width: min(100%, 380px);
    height: 320px;
}

.hero-collage-card {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 12px 40px rgba(var(--rgb-navy), 0.18),
        0 2px 0 rgba(var(--rgb-highlight), 0.35);
    background: var(--bg-secondary);
    animation: hero-card-float 5.5s ease-in-out infinite;
}

.hero-collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-collage-card--1 {
    width: 58%;
    height: 52%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: hero-card-float-center 5.5s ease-in-out infinite;
}

.hero-collage-card--2 {
    width: 48%;
    height: 42%;
    bottom: 8%;
    left: 0;
    z-index: 2;
    animation: hero-card-float 5.5s ease-in-out 1.2s infinite;
}

.hero-collage-card--3 {
    width: 44%;
    height: 44%;
    bottom: 0;
    right: 0;
    z-index: 2;
    animation: hero-card-float 5.5s ease-in-out 2.4s infinite;
}

@keyframes hero-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes hero-card-float-center {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-collage-card,
    .hero-collage-card--1 {
        animation: none !important;
    }

    .hero-collage-card--1 {
        transform: translateX(-50%);
    }

    .grid-overlay {
        animation: none;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: min(42rem, 90vw);
    margin: 0 auto;
    line-height: 1.65;
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.services-showcase {
    display: flex;
    justify-content: center;
    margin: 0 auto 3.5rem;
}

.services-photo {
    margin: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: min(300px, 88vw);
    background: var(--bg-secondary);
}

.services-photo img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-links .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
}

/* Vision Section */
.vision {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

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

.vision-card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(var(--rgb-navy), 0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Expertise Section */
.expertise {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--surface-mist) 0%, var(--bg-primary) 58%);
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.expertise-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.capability {
    margin-bottom: 3rem;
}

.capability h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.capability p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background: var(--hardwood-maple);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(139, 115, 85, 0.35);
}

.tech-diagram {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.diagram-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.diagram-node span {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { bottom: 0; left: 0; animation-delay: 0.7s; }
.node-3 { bottom: 0; right: 0; animation-delay: 1.4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Work Section */
.work {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

a.work-item.work-item--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.work-item.work-item--link:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 4px;
}

.work-item.large {
    grid-column: span 2;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.work-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.work-image:not(.work-image--watermark) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image:not(.work-image--watermark) img {
    transform: scale(1.1);
}

/* Featured project cards — same L-shaped watermark assets as full-screen video pages */
.work-image--watermark {
    background: #050505;
    position: relative;
}

.work-watermark {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 0.35rem 0.5rem;
    width: 100%;
    height: 100%;
    min-height: 250px;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem 0.75rem;
}

.work-watermark__photo {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    max-height: min(168px, calc(100% - 2.25rem));
    max-width: min(48%, 155px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
    border-radius: 10px;
    opacity: 0.44;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.work-watermark__logo {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: clamp(1.75rem, 5vw, 2.15rem);
    width: 100%;
    object-fit: contain;
    object-position: right center;
    opacity: 0.42;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.work-item--video-env .work-watermark__photo {
    filter: saturate(0.92) contrast(1.04) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.work-item--video-tree .work-watermark__photo {
    filter: grayscale(1) contrast(1.08) brightness(1.02) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.work-item:hover .work-watermark__photo,
.work-item:hover .work-watermark__logo {
    transform: scale(1.05);
    opacity: 0.52;
}

.work-item:hover .work-watermark__logo {
    opacity: 0.5;
}

/* Featured work cards — LiDAR.LiAM™ watermark row + cover image strip (Infrastructure, Environmental, Tree) */
.work-image--infra-stack {
    display: flex;
    flex-direction: column;
    height: 300px;
}

.work-image--infra-stack .work-watermark {
    flex: 0 0 auto;
    min-height: 0;
    height: 96px;
    max-height: 96px;
    padding: 0.45rem 0.65rem 0.5rem;
}

.work-image--infra-stack .work-watermark__photo {
    max-height: 52px;
    max-width: min(44%, 130px);
}

.work-image--infra-stack .work-watermark__logo {
    max-height: 1.4rem;
}

.work-infra-cover {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
}

.work-infra-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.35s ease;
}

.work-item.work-item--link:hover .work-infra-cover img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

/* Investors Section */
.investors {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.stock-ticker-section {
    text-align: center;
    margin-bottom: 4rem;
}

.stock-ticker-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: monospace;
}

.stock-ticker-container {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
}

.stock-ticker {
    width: 100%;
    height: 60px;
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-content.paused {
    animation-play-state: paused;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    color: white;
    font-weight: 500;
    min-width: max-content;
}

.stock-symbol {
    font-weight: 700;
    color: var(--accent-color);
}

.stock-price {
    font-size: 1.1rem;
}

.stock-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-change.positive {
    color: var(--accent-color);
}

.stock-change.negative {
    color: #C4820E;
}

.stock-change.unchanged {
    color: var(--text-secondary);
}

.stock-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.ticker-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ticker-controls .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

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

.investment-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-card {
    background: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.highlight-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Blog Section */
.blog {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--surface-warm) 100%);
}

.blog-preview {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.blog-preview-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-preview-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
    background: var(--bg-secondary);
    position: relative;
}

.blog-preview-image.blog-preview-image--empty {
    background: linear-gradient(145deg, rgba(var(--rgb-navy), 0.42) 0%, rgba(var(--rgb-highlight), 0.14) 100%);
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure sharp images on high-DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .blog-preview-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.02);
}

.blog-preview-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-preview-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.blog-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.blog-preview-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-preview-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-preview-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Blog Post Page Styles */
.blog-post-header {
    padding: 8rem 0 4rem;
    background: var(--bg-secondary);
    text-align: center;
}

.blog-post-header:has(.blog-post-header-brand) {
    padding: 6.75rem 0 3.5rem;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-meta span {
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.blog-date, .blog-read-time {
    color: var(--text-secondary);
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog index — gradient hero with centered LiDAR.LiAM™ wordmark */
.blog-hero.blog-hero--branded {
    padding: 5.5rem 0 5rem;
}

.blog-hero-inner {
    max-width: 38rem;
    margin: 0 auto;
}

.blog-hero-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.92;
    margin: 0 0 1.125rem;
}

.blog-hero-wordmark {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.site-wordmark--blog-hero {
    max-height: clamp(2rem, 5.8vw, 3rem);
    width: auto;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.22));
}

.blog-hero.blog-hero--branded h1 {
    font-size: clamp(2rem, 5.2vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.blog-hero.blog-hero--branded .blog-hero-lede {
    font-size: 1.15rem;
    line-height: 1.65;
    opacity: 0.92;
    max-width: 36rem;
    margin: 0 auto;
}

/* Blog article — subtle wordmark above title block */
.blog-post-header-brand {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.blog-post-header-brand .site-wordmark--blog-post-header {
    max-height: clamp(1.25rem, 3.5vw, 1.75rem);
    width: auto;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .blog-hero.blog-hero--branded {
        padding: 4.5rem 0 3.5rem;
    }
}

.blog-post-hero, .blog-post-bottom-image {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.blog-post-image {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-post-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-post-content {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.blog-post-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.blog-article {
    max-width: 100%;
}

.blog-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 500;
}

.blog-article h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.blog-article p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-article blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--text-primary);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.blog-article blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
}

/* Figure Placeholder Styles */
.figure-placeholder {
    margin: 3rem 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    overflow: hidden;
}

.figure-content {
    padding: 2rem;
}

.figure-image-placeholder {
    background: var(--bg-primary);
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.figure-image-placeholder:hover {
    border-color: var(--secondary-color);
    background: var(--bg-secondary);
}

.figure-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.figure-image-placeholder span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.figure-caption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.blog-signature {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-post-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-previous, .nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-previous span, .nav-next span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.nav-previous a, .nav-next a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-previous a:hover, .nav-next a:hover {
    color: var(--secondary-color);
}

.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    text-decoration: none;
    color: inherit;
}

.recent-posts .post-title {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.recent-posts a:hover .post-title {
    color: var(--primary-color);
}

.recent-posts .post-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-categories {
    list-style: none;
}

.blog-categories li {
    margin-bottom: 0.75rem;
}

.blog-categories a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-categories a:hover {
    color: var(--primary-color);
}

.sidebar-social {
    display: flex;
    gap: 1rem;
}

.sidebar-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.sidebar-social a svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: block;
}

/* Blog Comments Styles */
.blog-comments {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.blog-comments h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-comments > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.comment-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-primary);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--rgb-navy), 0.1);
}

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

.comment-form .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.comment-action:hover {
    background: var(--bg-primary);
    color: var(--secondary-color);
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.insight-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.insight-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.insight-content {
    padding: 2rem;
}

.insight-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.insight-meta .date {
    color: var(--text-secondary);
}

.insight-meta .category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
}

.insight-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.insight-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Connect Section */
.connect {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.connect-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.connect-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.connect-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.contact-method i,
.connect-text .contact-method-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.connect-text .contact-method-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.connect-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

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

/* Footer — rocky mound banner + opaque overlay (readable links/text) */
.footer {
    position: relative;
    z-index: 0;
    overflow: hidden;
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 3px solid var(--pal-frame);
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(
            185deg,
            rgba(var(--rgb-navy), 0.9) 0%,
            rgba(var(--rgb-navy), 0.92) 40%,
            rgba(var(--rgb-navy), 0.94) 72%,
            rgba(var(--rgb-navy), 0.96) 100%
        ),
        url("images/rocky-mound-trees-300x97.jpg");
    background-size: 100% 100%, 100% auto;
    background-position: 0 0, center top;
    background-repeat: no-repeat, no-repeat;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand-portrait {
    width: 5.5rem;
    aspect-ratio: 1;
    margin: 0 0 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.footer-brand-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.88);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo .logo-icon.logo-icon--footer {
    height: 36px;
    box-shadow: none;
}

.footer-logo .logo-icon.logo-icon--footer img {
    max-width: 68px;
}

.footer-links h4,
.footer-social h4,
.footer .footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.footer .footer-section p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer .footer-section ul {
    list-style: none;
}

.footer .footer-section ul a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-section ul a:hover {
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Inline SVGs (reliable; no webfont dependency) */
.social-links a svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--rgb-navy), 0.3);
}

/* Special styling for X (Twitter) */
.social-links a[href*="x.com"]:hover {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Special styling for Instagram */
.social-links a[href*="instagram.com"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
}

.footer-ip {
    max-width: 46rem;
    margin: 0 auto;
    line-height: 1.55;
}

.footer-ip a {
    display: inline-block;
    margin-left: 0.35rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-ip a:hover {
    color: var(--secondary-color);
}

.footer-ip-domain {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-reservation {
    max-width: 42rem;
    margin: 1.25rem auto 0;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.legal-ip-page {
    padding: 6rem 0 4rem;
}

.legal-ip-inner {
    max-width: 44rem;
    margin: 0 auto;
}

.legal-ip-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.legal-ip-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.legal-ip-inner h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.legal-ip-inner p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-ip-inner a {
    color: var(--primary-color);
    font-weight: 500;
}

.legal-ip-disclaimer {
    margin-top: 2rem;
    font-size: 0.95rem;
}

.legal-ip-back {
    margin-top: 2rem;
}

.ip-tm {
    font-size: 0.75em;
    vertical-align: super;
    font-weight: 600;
}

.ip-mark {
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Contact Page Styles */
.contact-hero {
    min-height: min(72vh, 52rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4.5rem;
}

.contact-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contact-hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 12% 18%, rgba(var(--rgb-highlight), 0.09) 0%, transparent 52%),
        radial-gradient(90% 70% at 88% 72%, rgba(var(--rgb-wm-blue), 0.12) 0%, transparent 48%),
        linear-gradient(165deg, var(--hardwood-maple) 0%, var(--bg-primary) 46%, var(--pal-cream) 100%);
}

.contact-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.85;
    background-image:
        linear-gradient(rgba(var(--rgb-grid), 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--rgb-grid), 0.65) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 85% 75% at 35% 42%, black 20%, transparent 72%);
}

.contact-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero-text {
    max-width: 36rem;
}

.contact-hero-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--founders-rock);
    margin: 0 0 1rem;
    padding-left: 0.35rem;
    border-left: 3px solid var(--secondary-color);
}

.contact-hero-title {
    font-size: clamp(2.5rem, 4.2vw, 3.65rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 1.35rem;
    color: var(--text-primary);
}

.contact-hero-title-line {
    display: block;
}

.contact-hero-title-line--1 {
    color: var(--berkeley-blue);
}

.contact-hero-title-line--2 {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    margin-top: 0.2rem;
}

.contact-hero-title-line--2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    height: 0.38em;
    background: linear-gradient(
        90deg,
        rgba(var(--rgb-highlight), 0.55) 0%,
        rgba(var(--rgb-highlight), 0.28) 88%,
        transparent 100%
    );
    z-index: -1;
    border-radius: 2px;
}

.contact-hero-subtitle {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 1.75rem;
}

.contact-hero-mark {
    padding: 0.06em 0.12em;
    margin: 0 -0.06em;
    background: linear-gradient(
        180deg,
        transparent 52%,
        rgba(var(--rgb-highlight), 0.38) 52%,
        rgba(var(--rgb-highlight), 0.38) 100%
    );
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.contact-hero-email {
    color: var(--berkeley-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--rgb-highlight), 0.85);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-hero-email:hover {
    color: var(--founders-rock);
    border-bottom-color: var(--founders-rock);
}

.contact-portrait {
    margin: 0 auto;
    max-width: min(320px, 52vw);
    border-radius: 1.35rem;
    overflow: hidden;
    border: 2px solid var(--pal-frame);
    outline: 1px solid rgba(var(--rgb-navy), 0.12);
    outline-offset: 4px;
    box-shadow:
        0 28px 60px rgba(var(--rgb-navy), 0.2),
        0 10px 28px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.contact-portrait img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    filter: saturate(0.92) contrast(1.04);
}

#contact-email {
    scroll-margin-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero-grid {
        opacity: 0.65;
    }
}

.contact-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

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

.contact-content--email-only {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin: 0 auto;
}

.contact-info--wide {
    max-width: 100%;
}

.contact-email-lead {
    margin-bottom: 1.25rem !important;
}

.contact-email-address {
    margin: 0 0 1rem;
}

.contact-email-btn {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 1.75rem;
    word-break: break-all;
    text-align: center;
}

.contact-email-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem;
}

.contact-email-hint code {
    font-size: 0.9em;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.contact-other-heading {
    margin-top: 2.5rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.75rem !important;
}

.contact-other-lead {
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.contact-info .contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info .contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info .contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-info .contact-method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info .contact-method-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.contact-info .contact-method-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info .contact-method-details p {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-info .contact-method-details span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-social h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-form-container {
    position: sticky;
    top: 120px;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--bg-primary);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--rgb-navy), 0.1);
}

.contact-form input.error,
.contact-form textarea.error,
.contact-form select.error {
    border-color: #C4820E;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--bg-secondary);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100svh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        transition: left 0.3s ease;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

    .nav-menu a.nav-link--cta {
        margin-left: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: #fff !important;
    }

    .nav-menu a.nav-link--cta:hover {
        background: var(--secondary-color);
        color: var(--text-primary) !important;
    }

    .nav-menu a.nav-active {
        background: rgba(var(--rgb-navy), 0.08);
        color: var(--primary-color);
    }

    .nav-menu a.nav-active.nav-link--cta {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: #fff !important;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(var(--rgb-navy), 0.1);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Ensure proper touch targets on mobile */
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: 0.3s;
        pointer-events: none;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-points {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    #home .home-tagline-rotator {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        min-height: clamp(8rem, 24vmin, 14rem);
    }

    #home .home-tagline-rotator .home-handwritten {
        font-size: clamp(1.9rem, 8.2vmin, 4.25rem);
        line-height: 1.18;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .expertise-content,
    .connect-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-item.large {
        grid-column: span 1;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-showcase {
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .contact-hero-text {
        max-width: none;
    }

    .contact-hero-kicker {
        display: inline-block;
        padding-left: 0;
        border-left: none;
        border-bottom: 3px solid var(--secondary-color);
        padding-bottom: 0.35rem;
    }

    .contact-hero-title-line--2::after {
        left: 50%;
        transform: translateX(-50%);
        width: min(100%, 12rem);
    }

    .contact-hero-title {
        font-size: 2.35rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        position: static;
    }
    
    .faq-grid {
        padding: 0 1rem;
    }
    
    .blog-post-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-comments {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .stock-ticker-section h3 {
        font-size: 1.5rem;
    }
    
    .stock-ticker-container {
        padding: 1rem;
    }
    
    .investment-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Prevent iOS zoom jump on focused form fields */
    input,
    textarea,
    select,
    button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-collage {
        width: min(100%, 280px);
        height: 240px;
    }

    .hero-collage-card--1 {
        width: 56%;
        height: 48%;
    }

    .hero-collage-card--2 {
        width: 46%;
        height: 38%;
    }

    .hero-collage-card--3 {
        width: 42%;
        height: 40%;
    }

    .hero-points li {
        font-size: 1rem;
    }

    .logo-icon.logo-icon--mark {
        height: 34px;
    }

    .logo-icon.logo-icon--mark img {
        max-width: 62px;
    }
}

/* Opportunities Page Styles */
.opportunities-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
}

.opportunities-hero.hero--youtube {
    background: #030810;
}

/* Opportunities page — scan image behind intro, services, investors; navy-tinted CTA */
.page-opportunities .opportunities-intro,
.page-opportunities .services,
.page-opportunities .investors {
    background-color: var(--pal-cream);
    background-image:
        linear-gradient(180deg, rgba(254, 250, 242, 0.9) 0%, rgba(254, 250, 242, 0.94) 100%),
        url("images/NW_Scan_387.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.page-opportunities .cta-section {
    background-color: var(--pal-navy);
    background-image:
        linear-gradient(135deg, rgba(var(--rgb-navy), 0.88) 0%, rgba(var(--rgb-navy), 0.92) 100%),
        url("images/NW_Scan_387.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
}

.opportunities-intro {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.opportunities-intro-photo {
    margin: 0 auto 2.75rem;
    max-width: min(56rem, 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.opportunities-intro-photo img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.opportunity-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.opportunity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.opportunity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.opportunity-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.job-board-section {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.job-board-container {
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.job-board-lead {
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 1.05rem;
}

.job-aggregate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.job-source-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-source-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--rgb-navy), 0.12);
}

.job-source-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.job-source-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.job-source-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.job-source-desc {
    margin: 0;
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.job-source-btn {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    text-align: center;
}

.job-source-btn .fa-external-link-alt {
    font-size: 0.8rem;
    opacity: 0.9;
}

.job-board-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.job-board-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.job-board-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.job-board-info a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.job-board-info a:hover {
    color: var(--accent-color);
}

.career-resources {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #fff;
}

.resource-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.resource-card li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.resource-card li:last-child {
    border-bottom: none;
}

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    min-width: 200px;
}

/* Responsive adjustments for Opportunities page */
@media (max-width: 768px) {
    .opportunities-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .opportunity-card,
    .resource-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .opportunity-icon,
    .resource-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .opportunity-card h3,
    .resource-card h3 {
        font-size: 1.3rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Blog Image and Figure Styling */
.blog-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.figure-container {
    margin: 2rem 0;
    text-align: center;
}

.figure-container .blog-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.figure-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.figure-caption strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Blog post specific image styling */
.blog-post-content .blog-image {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Responsive blog images */
@media (max-width: 768px) {
    .figure-container {
        margin: 1.5rem 0;
    }
    
    .figure-caption {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* About page — under construction + full-viewport YouTube (streamed embed; no hosted video file) */
body.about-page {
    min-height: 100vh;
    background: #030810;
}

.about-under-construction {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 3rem;
    overflow: hidden;
}

.about-video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.about-video-bg iframe,
.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%) scale(1.2);
    border: 0;
    outline: 0;
    display: block;
    background: #000;
}

.about-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 85% 65% at 50% 42%, rgba(var(--rgb-navy), 0.42) 0%, transparent 52%),
        linear-gradient(180deg, rgba(var(--rgb-navy), 0.9) 0%, rgba(var(--rgb-navy), 0.68) 42%, rgba(var(--rgb-navy), 0.94) 100%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 52rem;
    padding: 2rem 1.25rem;
}

.about-portrait {
    margin: 0 auto 1.25rem;
    max-width: min(200px, 42vw);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.about-portrait img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.about-kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-title {
    margin: 0 0 1rem;
    font-size: clamp(3.25rem, 13vw, 8.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow:
        0 4px 36px rgba(var(--rgb-navy), 0.95),
        0 0 80px rgba(var(--rgb-highlight), 0.2);
}

.about-notice {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.about-back {
    margin-top: 0;
}

.about-back .btn {
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.about-footer {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.about-footer-links {
    margin-bottom: 0.5rem;
}

.about-footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-footer-links a:hover {
    text-decoration: underline;
}

.about-footer .footer-bottom p {
    margin: 0.35rem 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .about-video-bg iframe,
    .hero-video-bg iframe {
        transform: translate(-50%, -50%) scale(1.08);
    }
}
