/* ═══════════════════════════════════════════════════
   THE WARREN GROUP — Corporate Website
   Colors: Black #000, White #fff, Off-White/Sail #F3ECE0
   Typography: Playfair Display (headings), Inter (body),
               Cormorant Garamond (accents)
   FULLY ANIMATED EDITION
   ═══════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --sail: #F3ECE0;
    --sail-dark: #E8DFD0;
    --charcoal: #1a1a1a;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #e5e5e5;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;

    --nav-height: 110px;
    --container-width: 1400px;
    --container-padding: 40px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

body.intro-active {
    overflow: hidden;
}

section,
.mf-screen,
.foh {
    scroll-snap-align: none;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: var(--white);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.9s cubic-bezier(0.65, 0, 0.35, 1), transform 1.1s cubic-bezier(0.85, 0, 0.15, 1);
    pointer-events: all;
}

.intro-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6%);
    transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.9s cubic-bezier(0.65, 0, 0.35, 1), transform 1.1s cubic-bezier(0.85, 0, 0.15, 1), z-index 0s 1s;
    z-index: -1;
}

/* Subtle radial vignette + grain */
.intro-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(243, 236, 224, 0.06), transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: introVignette 1.4s var(--ease-out) 0.1s forwards;
}

.intro-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(243, 236, 224, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 236, 224, 0.045) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    opacity: 0;
    animation: introGridIn 1.6s var(--ease-out) 0.2s forwards;
    pointer-events: none;
}

/* Brand corners — registration marks */
.intro-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(243, 236, 224, 0.4);
    opacity: 0;
    animation: introFadeIn 0.6s var(--ease-out) 1.5s forwards;
    pointer-events: none;
}
.intro-corner-tl { top: 28px; left: 28px; border-right: none; border-bottom: none; }
.intro-corner-tr { top: 28px; right: 28px; border-left: none; border-bottom: none; }
.intro-corner-bl { bottom: 28px; left: 28px; border-right: none; border-top: none; }
.intro-corner-br { bottom: 28px; right: 28px; border-left: none; border-top: none; }

/* Top + bottom meta strips */
.intro-meta {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 72px;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(243, 236, 224, 0.55);
    pointer-events: none;
    opacity: 0;
    animation: introFadeIn 0.8s var(--ease-out) 1.6s forwards;
}
.intro-meta-top { top: 36px; }
.intro-meta-bottom { bottom: 36px; }
.intro-meta-hint {
    color: rgba(243, 236, 224, 0.85);
    animation: introHintPulse 2.4s ease-in-out 2s infinite;
}

.intro-panel {
    position: relative;
    z-index: 2;
    max-width: 920px;
    text-align: center;
    padding: 0 24px;
}

/* Logo with mask wipe reveal */
.intro-logo-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 32px;
    opacity: 0;
    animation: introFadeIn 0.4s var(--ease-out) 0.2s forwards;
}

.intro-logo {
    height: 56px;
    width: auto;
    filter: invert(1);
    clip-path: inset(0 100% 0 0);
    animation: introLogoWipe 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.4s forwards;
}

.intro-tm {
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(243, 236, 224, 0.6);
    margin-top: 4px;
    opacity: 0;
    animation: introFadeIn 0.5s var(--ease-out) 1.5s forwards;
}

.intro-divider {
    width: 1px;
    height: 0;
    background: rgba(243, 236, 224, 0.4);
    margin: 0 auto 32px;
    animation: introDivider 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.7s forwards;
}

.intro-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 120px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--white);
}

.intro-title-line {
    display: block;
    overflow: hidden;
    padding: 0.04em 0;
}

.intro-title-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: introTitleRise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               introTextPulse 3.6s ease-in-out 3.6s infinite;
}

.intro-title-line:nth-child(1) .intro-title-inner { animation-delay: 1.9s, 3.6s; }
.intro-title-line:nth-child(2) .intro-title-inner { animation-delay: 2.05s, 3.6s; }

.intro-title em {
    font-style: italic;
    color: var(--sail);
}

.intro-copy {
    margin: 36px auto 0;
    max-width: 720px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 2;
    color: rgba(243, 236, 224, 0.65);
    opacity: 0;
    transform: translateY(20px);
    animation: introFadeUp 0.9s var(--ease-out) 2.5s forwards,
               introTextPulse 3.6s ease-in-out 3.6s infinite;
}

.intro-enter {
    position: relative;
    margin-top: 52px;
    padding: 0;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: introFadeUp 0.9s var(--ease-out) 2.7s forwards,
               introTextPulse 3.6s ease-in-out 3.6s infinite;
}

.intro-enter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 1px;
    background: rgba(243, 236, 224, 0.4);
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out), background 0.3s var(--ease-out);
}

.intro-enter:hover::after {
    transform: scaleX(1);
    background: var(--sail);
}

.intro-enter:hover .intro-enter-arrow {
    transform: translateX(4px);
}

.intro-enter-arrow {
    display: inline-flex;
    transition: transform 0.4s var(--ease-out);
}

.intro-enter-arrow svg {
    transform: rotate(180deg);
}

.intro-line {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, transparent, rgba(243, 236, 224, 0.5));
    transform: translateX(-50%);
    animation: introLineDown 1s var(--ease-out) 3s forwards;
}

@keyframes introFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes introFadeIn {
    to { opacity: 1; }
}
@keyframes introVignette {
    to { opacity: 1; }
}
@keyframes introGridIn {
    to { opacity: 1; }
}
@keyframes introLogoWipe {
    to { clip-path: inset(0 0 0 0); }
}
@keyframes introDivider {
    to { height: 56px; }
}
@keyframes introTitleRise {
    to { transform: translateY(0); }
}
@keyframes introLineDown {
    to { height: 64px; }
}
@keyframes introHintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes introTextPulse {
    0%, 100% { opacity: 0.72; }
    50% { opacity: 1; }
}

@media (max-width: 720px) {
    .intro-meta { padding: 0 24px; font-size: 10px; letter-spacing: 2px; }
    .intro-corner { width: 18px; height: 18px; }
    .intro-corner-tl, .intro-corner-tr { top: 18px; }
    .intro-corner-bl, .intro-corner-br { bottom: 18px; }
    .intro-corner-tl, .intro-corner-bl { left: 18px; }
    .intro-corner-tr, .intro-corner-br { right: 18px; }
    .intro-logo { height: 38px; }
}

.page-progress {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.page-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--sail);
    transition: width 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ─── PAGE LOADER ──────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    height: 40px;
    filter: invert(1);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* ─── REVEAL ANIMATIONS ───────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-5deg) translateY(60px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal-rotate.visible {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ─── TEXT SPLIT ANIMATION ─────────────────────── */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* ─── MAGNETIC HOVER ───────────────────────────── */
.magnetic {
    transition: transform 0.3s var(--ease-out);
}

/* ─── SECTION COMMON ──────────────────────────── */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease-out);
}

.visible .section-label::after,
.section-label.visible::after {
    transform: translateX(0);
}

.section-label-light {
    color: var(--gray-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.6s var(--ease-out);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 84px;
    filter: invert(1);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: scale(0.3) translateY(40px);
    animation: logoReveal 1.8s var(--ease-out) 0.2s forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
        filter: invert(1) blur(20px) brightness(3);
    }
    25% {
        opacity: 0.6;
        transform: scale(1.15) translateY(-5px);
        filter: invert(1) blur(4px) brightness(1.5);
    }
    50% {
        opacity: 1;
        transform: scale(0.95) translateY(2px);
        filter: invert(1) blur(0px) brightness(1.1);
    }
    70% {
        transform: scale(1.03) translateY(-1px);
        filter: invert(1) blur(0px) brightness(1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: invert(1) blur(0px) brightness(1);
    }
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-logo {
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.trademark {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-top: 0;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.4s forwards;
}

.trademark-footer {
    color: var(--white);
    font-size: 18px;
}

.logo-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

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

.nav-link {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    padding: 8px 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--sail);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link-cta {
    border: 1px solid rgba(255,255,255,0.4);
    margin-left: 6px;
    padding: 8px 14px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.nav-link-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

.nav-link-cta:hover::before {
    transform: translateY(0);
}

.nav-link-cta:hover {
    color: var(--black);
    border-color: var(--white);
}

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

/* Shareholder button — sail accent variant */
.nav-link-shareholder {
    border: 1px solid rgba(243,236,224,0.35);
    background: rgba(243,236,224,0.06);
    color: var(--sail);
    margin-left: 6px;
    padding: 8px 14px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.nav-link-shareholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--sail);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

.nav-link-shareholder:hover::before {
    transform: translateY(0);
}

.nav-link-shareholder:hover {
    color: var(--black);
    border-color: var(--sail);
}

.nav-link-shareholder::after {
    display: none;
}

/* Language selector */
.nav-lang-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
}

.dropdown-lang {
    max-height: 320px;
    overflow-y: auto;
    min-width: 180px;
    right: 0;
    left: auto;
}

.dropdown-lang::-webkit-scrollbar {
    width: 3px;
}

.dropdown-lang::-webkit-scrollbar-thumb {
    background: rgba(243,236,224,0.15);
    border-radius: 3px;
}

.lang-option.active-lang {
    color: var(--sail);
}

/* Hide Google Translate bar */
.goog-te-banner-frame, .skiptranslate, #google_translate_element {
    display: none !important;
}

body { top: 0 !important; }

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.has-dropdown::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    list-style: none;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.4s var(--ease-out);
    border: 1px solid rgba(255,255,255,0.08);
}

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

.dropdown-link {
    display: block;
    padding: 10px 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sail);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out);
}

.dropdown-link:hover {
    color: var(--white);
    padding-left: 32px;
    background: rgba(255,255,255,0.03);
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.4s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu — scrollable accordion */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 999;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
    padding: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 12px) 0
            calc(env(safe-area-inset-bottom, 0px) + 64px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0s;
}

.mobile-menu-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 24px 32px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 26px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--white);
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
    cursor: pointer;
}

.mobile-link.has-children::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 300;
    color: var(--sail);
    opacity: 0.7;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
    margin-left: 16px;
    flex-shrink: 0;
}

.mobile-link.has-children.open::after {
    transform: rotate(45deg);
    opacity: 1;
}

.mobile-link.cta {
    color: var(--sail);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links > *:nth-child(1)  { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(2)  { transition-delay: 0.08s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(3)  { transition-delay: 0.11s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(4)  { transition-delay: 0.14s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(5)  { transition-delay: 0.17s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(6)  { transition-delay: 0.20s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(7)  { transition-delay: 0.23s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(8)  { transition-delay: 0.26s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(9)  { transition-delay: 0.29s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(10) { transition-delay: 0.32s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(11) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(12) { transition-delay: 0.38s; }
.mobile-menu.active .mobile-menu-links > *:nth-child(13) { transition-delay: 0.41s; }

.mobile-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: max-height 0.4s var(--ease-out), padding 0.3s var(--ease-out), opacity 0.3s;
    opacity: 0;
}

.mobile-submenu.open {
    max-height: 600px;
    padding: 8px 0 16px;
    opacity: 1;
}

.mobile-sublink {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.5px;
    padding: 11px 0 11px 18px;
    margin-left: 4px;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s, border-color 0.3s;
}

.mobile-sublink:hover,
.mobile-sublink:active {
    color: var(--white);
    border-left-color: var(--sail);
}

@media (max-width: 380px) {
    .mobile-link { font-size: 22px; padding: 16px 4px; }
    .mobile-sublink { font-size: 13px; padding: 10px 0 10px 16px; }
    .mobile-menu-inner { padding: 8px 20px 32px; }
}

/* ═══════════════════════════════════════════════════
   HERO — Full viewport, Tesla-style
   ═══════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--black);
}

/* Animated grain texture */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 2;
}

/* Community map canvas — drawn behind overlay */
.hero-community {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero particle canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    padding: 0 var(--container-padding);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line-1 {
    font-size: clamp(48px, 8vw, 120px);
}

.hero-title-line-1 .title-inner {
    display: block;
    transform: translateY(100%);
    animation: titleSlideUp 1.2s var(--ease-out) 0.5s forwards;
}

.hero-title-line-2 {
    font-size: clamp(48px, 8vw, 120px);
    font-style: italic;
    color: var(--sail);
}

.hero-title-line-2 .title-inner {
    display: block;
    transform: translateY(100%);
    animation: titleSlideUp 1.2s var(--ease-out) 0.7s forwards;
}

@keyframes titleSlideUp {
    to {
        transform: translateY(0);
    }
}

/* Glowing text effect on hero */
.hero-title-line-2 .title-inner {
    text-shadow: 0 0 80px rgba(243, 236, 224, 0.15);
}

/* Off-White quotation mark art */
.hero-quote-art {
    font-family: var(--font-accent);
    font-size: clamp(100px, 20vw, 300px);
    font-weight: 300;
    color: rgba(243, 236, 224, 0.06);
    position: absolute;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    transition: color 1s;
}

.hero-quote-left {
    top: 10%;
    left: -2%;
    animation: floatQuoteLeft 8s ease-in-out infinite;
}

.hero-quote-right {
    bottom: 10%;
    right: -2%;
    animation: floatQuoteRight 8s ease-in-out 2s infinite;
}

@keyframes floatQuoteLeft {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -20px) rotate(2deg); }
    66% { transform: translate(-5px, -10px) rotate(-1deg); }
}

@keyframes floatQuoteRight {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, 15px) rotate(-2deg); }
    66% { transform: translate(5px, -5px) rotate(1deg); }
}

/* ─── HERO TICKER BAR — bottom of hero ─────────── */
.hero-ticker {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 4;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.hero-ticker-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-ticker-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-ticker-quote {
    font-family: var(--font-body);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 200;
    color: rgba(243, 236, 224, 0.25);
    line-height: 1;
    user-select: none;
}

.hero-ticker-verb-wrap {
    position: relative;
    height: clamp(40px, 5vw, 65px);
    min-width: clamp(180px, 22vw, 380px);
    overflow: hidden;
}

.hero-ticker-verb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    font-family: var(--font-body);
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sail);
    opacity: 0;
    transform: translateY(110%);
    transition: all 0.5s var(--ease-out);
    text-align: center;
    line-height: 1;
    text-shadow: 0 0 40px rgba(243, 236, 224, 0.15);
}

.hero-ticker-verb.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-ticker-verb.exit-up {
    opacity: 0;
    transform: translateY(-110%);
}

.hero-ticker-entities {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-sub-entity {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    transition: all 0.5s var(--ease-out);
    padding: 4px 8px;
    border: 1px solid transparent;
}

.hero-sub-entity.active {
    color: var(--sail);
    border-color: rgba(243, 236, 224, 0.15);
    text-shadow: 0 0 15px rgba(243, 236, 224, 0.15);
}

.hero-sub-dot {
    color: rgba(255,255,255,0.1);
    font-size: 12px;
}

/* Progress bar under ticker */
.hero-ticker-progress {
    height: 2px;
    background: var(--sail);
    width: 0%;
    transition: width 2.3s linear;
    opacity: 0.3;
}

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

.hero-est {
    font-family: var(--font-accent);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(243,236,224,0.5);
    margin-top: 28px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 1s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.5s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--ease-out) 1.2s forwards;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}

.hero-cta:hover::before {
    transform: translateX(0);
}

.hero-cta:hover {
    color: var(--black);
    border-color: var(--white);
}

.hero-cta-secondary {
    color: var(--sail);
    border-color: rgba(243,236,224,0.4);
    background: rgba(255,255,255,0.08);
}

.hero-cta-secondary::before {
    background: rgba(243,236,224,0.1);
}

.hero-cta-secondary:hover {
    color: var(--black);
    background: var(--sail);
}

.hero-cta svg {
    transition: transform 0.4s var(--ease-elastic);
}

.hero-cta:hover svg {
    transform: translateY(4px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--sail), transparent);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════
   MANIFESTO — 3 full-bleed screens
   ═══════════════════════════════════════════════════ */
.mf-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mf-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mf-screen-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px var(--container-padding);
    text-align: center;
    position: relative;
    z-index: 1;
}

.mf-screen-dark {
    background: var(--black);
}

.mf-screen-white {
    background: var(--white);
}

.mf-screen-sail {
    background: var(--sail);
}

/* Screen 1 — The Industry */
.mf1-layout {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mf1-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.mf1-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 60px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.mf1-headline em {
    color: var(--sail);
    font-style: italic;
}

/* Cycling negative words */
.mf1-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.mf1-word {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--ease-out);
}

.mf1-word.word-in {
    opacity: 1;
    transform: translateY(0);
    color: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.15);
}

.mf1-body {
    font-size: 16px;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
    margin-bottom: 14px;
}

.mf1-body-accent {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    font-style: italic;
    color: var(--sail);
    line-height: 1.5;
    margin-top: 24px;
}

/* Right visual — grid of identical stamps */
.mf1-visual {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf1-stamp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
    height: 100%;
}

.mf1-stamp {
    position: relative;
    opacity: 0;
    transition: all 0.4s var(--ease-out);
}

.mf1-stamp.stamp-in {
    opacity: 1;
}

.mf1-stamp svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Stamp label */
.mf1-stamp-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-family: var(--font-body);
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(200,50,50,0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s var(--ease-out) 1.5s;
}

.mf1-stamp-label.stamp-label-in {
    opacity: 1;
}

@media (max-width: 768px) {
    .mf1-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .mf1-visual {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Pipeline step animation */
.mf-pipeline.visible .mf-pipe {
    opacity: 0;
    transform: translateY(15px);
    animation: pipeReveal 0.6s var(--ease-out) forwards;
}

.mf-pipeline.visible .mf-pipe:nth-child(1) { animation-delay: 0.1s; }
.mf-pipeline.visible .mf-pipe:nth-child(2) { animation-delay: 0.2s; }
.mf-pipeline.visible .mf-pipe:nth-child(3) { animation-delay: 0.3s; }
.mf-pipeline.visible .mf-pipe:nth-child(4) { animation-delay: 0.4s; }
.mf-pipeline.visible .mf-pipe:nth-child(5) { animation-delay: 0.5s; }
.mf-pipeline.visible .mf-pipe:nth-child(6) { animation-delay: 0.6s; }

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

.mf-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 12px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.mf-sub em {
    color: var(--sail);
    font-style: normal;
    font-weight: 500;
}

/* Screen 2 — We create memories — split layout */
.mf2-layout {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mf2-visual {
    aspect-ratio: 4/5;
    position: relative;
    overflow: visible;
}

.mf2-visual canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.mf2-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
}

.mf2-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 32px;
}

.mf2-headline em {
    font-style: italic;
    position: relative;
}

.mf2-headline em::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: -2%;
    right: -2%;
    height: 0.12em;
    background: var(--sail);
    z-index: -1;
}

.mf2-body {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 14px;
}

.mf2-body-accent {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    font-style: italic;
    color: var(--black);
    line-height: 1.5;
    margin-top: 20px;
}

.mf-sub-dark {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mf2-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mf2-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Screen 2.5 — Full Service */
.mfs-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 120px var(--container-padding);
    position: relative;
    z-index: 1;
}

.mfs-header {
    text-align: center;
    margin-bottom: 70px;
}

.mfs-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
}

.mfs-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 20px;
}

.mfs-title em {
    font-style: italic;
    position: relative;
}

.mfs-title em::after {
    content: '';
    position: absolute;
    bottom: 0.02em;
    left: -2%; right: -2%;
    height: 0.1em;
    background: var(--black);
    opacity: 0.08;
    z-index: -1;
}

.mfs-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    font-style: italic;
    color: var(--gray);
}

/* Service cards */
.mfs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.mfs-card {
    background: var(--white);
    padding: 40px 36px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.mfs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 0;
}

.mfs-card:hover::before {
    transform: translateY(0);
}

.mfs-card > * {
    position: relative;
    z-index: 1;
}

.mfs-card:hover {
    border-color: var(--black);
}

.mfs-card:hover .mfs-card-title,
.mfs-card:hover .mfs-card-body {
    color: var(--white);
}

.mfs-card:hover .mfs-card-icon {
    color: var(--sail);
}

.mfs-card:hover .mfs-card-body {
    color: rgba(255,255,255,0.6);
}

.mfs-card-icon {
    color: var(--black);
    margin-bottom: 20px;
    transition: color 0.4s;
}

.mfs-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 14px;
    transition: color 0.4s;
}

.mfs-card-body {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    transition: color 0.4s;
}

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

.mfs-closing {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    font-style: italic;
    color: var(--black);
    line-height: 1.5;
    max-width: 750px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mfs-grid { grid-template-columns: 1fr; }
    .mfs-layout { padding: 80px var(--container-padding); }
}

/* Screen 3 — Vertically Integrated — full redesign */
.mf3-screen {
    padding: 0;
}

.mf3-layout {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px var(--container-padding);
}

.mf3-header {
    text-align: center;
    margin-bottom: 80px;
}

.mf3-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--sail);
    margin-bottom: 20px;
    opacity: 0.5;
}

.mf3-title {
    font-family: var(--font-heading);
    font-size: clamp(44px, 8vw, 100px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
}

/* Step cards grid */
.mf3-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.mf3-step {
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.mf3-step.step-in {
    opacity: 1;
    transform: translateY(0);
}

.mf3-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243,236,224,0.02);
    opacity: 0;
    transition: opacity 0.4s;
}

.mf3-step:hover::before {
    opacity: 1;
}

.mf3-step:hover {
    border-color: rgba(243,236,224,0.1);
}

.mf3-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.mf3-num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--sail);
    opacity: 0.4;
    display: block;
    margin-bottom: 10px;
}

.mf3-step-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
}

.mf3-step-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

.mf3-footer {
    text-align: center;
    margin-top: 60px;
}

.mf3-closer {
    font-family: var(--font-accent);
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

.mf3-closer em {
    color: var(--sail);
    font-style: italic;
}

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

@media (max-width: 768px) {
    .mf3-steps { grid-template-columns: 1fr; }
    .mf3-layout { padding: 80px var(--container-padding); }
    .mf-screen { min-height: auto; }
}

/* ═══════════════════════════════════════════════════
   CONNECTION — Languages background
   ═══════════════════════════════════════════════════ */
.connection {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

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

.connection-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.connection .container {
    position: relative;
    z-index: 3;
}

.connection-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    padding: 120px 0;
}

.connection-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.connection-title em {
    color: var(--sail);
    text-shadow: 0 0 60px rgba(243, 236, 224, 0.12);
}

.connection-divider {
    width: 60px;
    height: 1px;
    background: var(--sail);
    margin: 40px auto;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out);
}

.connection-divider.visible {
    transform: scaleX(1);
}

.connection-text {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════
   ENTITIES — Tesla-style stacked panels
   ═══════════════════════════════════════════════════ */
.entities {
    background: var(--black);
    padding-top: 120px;
}

.entities .section-label {
    color: var(--gray-light);
}

/* Agencies hero — full viewport intro */
.agencies-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.agencies-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.agencies-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

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

.agencies-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 0;
}

.agencies-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--sail);
    margin-bottom: 24px;
    opacity: 0.5;
}

.agencies-title {
    font-family: var(--font-heading);
    font-size: clamp(44px, 7vw, 90px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 48px;
}

.agencies-title em {
    font-style: italic;
    color: var(--sail);
    text-shadow: 0 0 60px rgba(243,236,224,0.12);
}

/* 6 / 1 / 0 counter */
.agencies-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
}

.agencies-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.agencies-count-num {
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

.agencies-count-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

.agencies-count-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.08);
}

.agencies-body {
    font-size: 17px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .agencies-count { gap: 24px; }
    .agencies-count-divider { height: 30px; }
}

.entity-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.entity-panel:nth-child(odd) .entity-panel-content {
    direction: ltr;
}

.entity-panel:nth-child(even) {
    background: var(--charcoal);
}

.entity-panel-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;
}

.entity-panel.in-view .entity-panel-bg {
    opacity: 0.03;
}

.entity-panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 120px var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Off-White quotation art on entities */
.entity-quote-art {
    font-family: var(--font-accent);
    font-size: clamp(48px, 8vw, 140px);
    font-weight: 300;
    font-style: italic;
    color: rgba(243, 236, 224, 0.04);
    line-height: 1;
    align-self: center;
    user-select: none;
    transition: all 1s var(--ease-out);
    position: relative;
}

.entity-panel.in-view .entity-quote-art {
    color: rgba(243, 236, 224, 0.1);
}

.entity-number {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--sail);
    display: block;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s var(--ease-out) 0.2s;
}

.entity-panel.in-view .entity-number {
    opacity: 1;
    transform: translateX(0);
}

.entity-name {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.entity-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.entity-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sail);
    padding: 12px 0;
    border-bottom: 1px solid rgba(243, 236, 224, 0.2);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.entity-link::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--sail);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.entity-link:hover::before {
    transform: scaleX(1);
}

.entity-link:hover {
    gap: 18px;
}

/* Entity with branded logo */
.entity-info-branded {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
}

.entity-info-branded .entity-number {
    margin-bottom: 20px;
}

.entity-info-branded .entity-desc {
    position: relative;
    z-index: 1;
}

/* Stacked layout — logo on top, text+graphic below */
.entity-panel-stacked {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 100px;
    padding-bottom: 60px;
}

.entity-brand-row {
    text-align: center;
    margin-bottom: 60px;
}

.entity-brand-row .entity-number {
    display: block;
    margin-bottom: 28px;
}

.entity-logo-hero {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: invert(1);
    margin: 0 auto 20px;
}

.entity-brand-row .entity-tagline {
    margin-bottom: 0;
}

.entity-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .entity-detail-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .entity-logo-hero {
        width: 90%;
    }
}

.entity-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sail);
    opacity: 0.45;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(243,236,224,0.08);
}

.entity-info-branded .entity-desc {
    margin-bottom: 16px;
}

.entity-info-branded .entity-link {
    margin-top: 8px;
}

/* Expanded entity panel with services */
.entity-panel-expanded {
    min-height: auto;
}

.entity-services {
    padding: 80px 0;
    background: rgba(243,236,224,0.02);
    border-top: 1px solid rgba(255,255,255,0.04);
}

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

.entity-service-card {
    padding: 36px 28px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.entity-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243,236,224,0.04);
    opacity: 0;
    transition: opacity 0.4s;
}

.entity-service-card:hover::before {
    opacity: 1;
}

.entity-service-card:hover {
    border-color: rgba(243,236,224,0.1);
}

.entity-service-card > * {
    position: relative;
    z-index: 1;
}

.entity-service-icon {
    color: var(--sail);
    margin-bottom: 18px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.entity-service-card:hover .entity-service-icon {
    opacity: 0.8;
}

.entity-service-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
}

.entity-service-body {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

.entity-service-card:hover .entity-service-body {
    color: rgba(255,255,255,0.55);
}

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

@media (max-width: 768px) {
    .entity-services-grid { grid-template-columns: 1fr; }
    .entity-services { padding: 60px 0; }
}

/* Interactive Graphics Container */
.entity-graphic {
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
}

.entity-graphic canvas {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

/* Entity photo (brokers) */
.entity-photo-wrap {
    aspect-ratio: auto;
    overflow: hidden;
}

.entity-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}

.entity-photo-wrap:hover .entity-photo {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.03);
}

.entity-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* ═══════════════════════════════════════════════════
   BUILT DIFFERENT — Tone-setter after hero
   ═══════════════════════════════════════════════════ */
.bd { background: var(--black); position: relative; }

/* Hero wrap — provides scroll room for the sticky canvas to animate through */
.bd-hero-wrap {
    position: relative;
    height: 200vh;
}

/* Hero block — pins to top while wrap scrolls past, canvas draws against scroll progress */
.bd-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bd-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.bd-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.bd-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.bd-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 var(--container-padding);
}

.bd-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--sail);
    margin-bottom: 24px;
    opacity: 0.5;
}

.bd-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 32px;
}

.bd-title em {
    color: var(--sail);
    font-style: italic;
    text-shadow: 0 0 80px rgba(243,236,224,0.12);
}

.bd-intro {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

/* White intro block */
.bd-white {
    padding: 100px 0;
    background: var(--white);
}

.bd-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.bd-split-big {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--black);
}

.bd-split-body {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.9;
}

/* Value props grid — dark */
.bd-values {
    padding: 0;
    background: var(--charcoal);
}

.bd-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.bd-value {
    padding: 44px 36px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.bd-value::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243,236,224,0.04);
    opacity: 0;
    transition: opacity 0.4s;
}

.bd-value:hover::before {
    opacity: 1;
}

.bd-value:hover {
    border-color: rgba(243,236,224,0.12);
}

.bd-value > * {
    position: relative;
    z-index: 1;
}

.bd-value-num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--sail);
    opacity: 0.4;
    display: block;
    margin-bottom: 16px;
}

.bd-value-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 14px;
}

.bd-value-body {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
}

.bd-value:hover .bd-value-body {
    color: rgba(255,255,255,0.95);
}

/* Stats bar */
.bd-stats {
    padding: 80px 0;
    background: var(--sail);
}

.bd-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.bd-stat {
    text-align: center;
}

.bd-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 400;
    color: var(--black);
    display: block;
    line-height: 1;
}

.bd-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 10px;
    display: block;
}

.bd-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(0,0,0,0.1);
}

/* Closing — white */
.bd-close-white {
    padding: 80px 0;
    text-align: center;
    background: var(--white);
}

.bd-close-statement {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 400;
    color: var(--black);
    line-height: 1.4;
}

.bd-close-statement em {
    font-style: italic;
    position: relative;
}

.bd-close-statement em::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: -2%; right: -2%;
    height: 0.12em;
    background: var(--sail);
    z-index: -1;
}

@media (max-width: 768px) {
    .bd-values-grid { grid-template-columns: 1fr; }
    .bd-split { grid-template-columns: 1fr; gap: 24px; }
    .bd-stats-grid { flex-direction: column; gap: 28px; }
    .bd-stat-divider { width: 40px; height: 1px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bd-values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   PHILOSOPHY — Kaizen + Ma3lem — Full redesign
   ═══════════════════════════════════════════════════ */
.philosophy {
    position: relative;
    padding: 160px 0;
    background: var(--black);
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(243, 236, 224, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 70%, rgba(243, 236, 224, 0.02) 0%, transparent 50%);
}

.phil-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.philosophy-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

/* Opening */
.phil-opening {
    text-align: center;
    margin-bottom: 100px;
}

.phil-opening-text {
    font-family: var(--font-accent);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-top: 16px;
}

/* Unified symbol — centerpiece */
.phil-hero {
    text-align: center;
    margin: 60px auto 80px;
    max-width: 350px;
}

.phil-hero-img {
    width: 100%;
    height: auto;
    filter: invert(1) brightness(0.9);
    opacity: 0.85;
    transition: all 0.6s var(--ease-out);
}

.phil-hero:hover .phil-hero-img {
    opacity: 1;
    transform: scale(1.03);
    filter: invert(1) brightness(1);
}

.phil-hero-caption {
    font-family: var(--font-accent);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    font-style: italic;
    color: var(--sail);
    margin-top: 24px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Kaizen / Ma3lem blocks */
.phil-block {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.phil-block-reverse {
    grid-template-columns: 1.5fr 1fr;
}

.phil-symbol {
    text-align: center;
}

.phil-char {
    font-size: clamp(60px, 10vw, 120px);
    display: block;
    color: var(--sail);
    line-height: 1.1;
    text-shadow: 0 0 80px rgba(243, 236, 224, 0.1);
}

.phil-word {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    display: block;
    margin-top: 8px;
}

.phil-meaning {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--sail);
    margin-bottom: 20px;
    opacity: 0.6;
}

.phil-explain {
    /* text side */
}

.philosophy-text {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    line-height: 1.9;
    margin-bottom: 20px;
}

.philosophy-text em {
    color: var(--sail);
    font-style: italic;
}

/* Divider */
.phil-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sail), transparent);
    margin: 60px auto;
    transform: scaleX(0);
    transition: transform 1.5s var(--ease-out);
}

.phil-divider.visible {
    transform: scaleX(1);
}

/* How We Live It — pillars */
.phil-application {
    margin-top: 80px;
    position: relative;
    text-align: center;
}

.phil-quote-bg {
    font-family: var(--font-body);
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243,236,224,0.025);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.phil-app-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 50px;
}

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

.phil-pillar {
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.04);
    text-align: left;
    transition: all 0.4s var(--ease-out);
}

.phil-pillar:hover {
    border-color: rgba(243,236,224,0.12);
    background: rgba(243,236,224,0.02);
}

.phil-pillar-num {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--sail);
    opacity: 0.4;
    display: block;
    margin-bottom: 12px;
}

.phil-pillar-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
}

.phil-pillar-body {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

/* Closing */
.phil-closing {
    text-align: center;
    margin-top: 80px;
}

.phil-close-text {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 400;
    font-style: italic;
    color: var(--sail);
    line-height: 1.5;
    text-shadow: 0 0 40px rgba(243, 236, 224, 0.08);
}

.phil-close-text em {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(243,236,224,0.3);
}

@media (max-width: 768px) {
    .phil-block, .phil-block-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .phil-pillars {
        grid-template-columns: 1fr;
    }
    .phil-explain { text-align: center; }
}

/* ═══════════════════════════════════════════════════
   TEAM — Full redesign, featured layout
   ═══════════════════════════════════════════════════ */
.team {
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    bottom: -300px;
    left: -200px;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.02), transparent 70%);
}

.team .section-label {
    color: var(--gray);
}

/* Tabs */
.team-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 60px;
    position: relative;
}

.team-tab {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    padding: 12px 28px;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.team-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
}

.team-tab:hover {
    color: var(--black);
}

.team-tab.active {
    color: var(--white);
    border-color: var(--black);
}

.team-tab.active::before {
    transform: translateY(0);
}

/* Team Grid */
.team-section {
    display: none;
}

.team-section.active {
    display: block;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
    transition: transform 0.6s var(--ease-out);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card-img {
    aspect-ratio: 3/4;
    background: var(--white);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(30%);
    transition: all 0.6s var(--ease-out);
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--gray-lighter);
    background: var(--white);
    transition: transform 0.8s var(--ease-out);
}

.team-card:hover .team-card-placeholder {
    transform: scale(1.05);
}

.team-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.team-card:hover .team-card-img::after {
    opacity: 1;
}

.team-card-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.team-card-title {
    font-size: 13px;
    color: var(--gray);
    letter-spacing: 1px;
}

/* Team header */
.team-header {
    text-align: center;
    padding: 120px 0 40px;
}

/* Unified team grid */
.team-all {
    padding: 40px 0 100px;
}

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

.team-member {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--charcoal);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.team-member:hover {
    background: rgba(243,236,224,0.05);
}

.team-member-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(30%);
    transition: all 0.6s var(--ease-out);
}

.team-member:hover .team-member-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 36px;
    color: rgba(255,255,255,0.08);
    background: var(--charcoal);
}

/* Hover overlay */
.team-member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.team-member:hover .team-member-overlay {
    opacity: 1;
}

.team-member-view {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.4);
}

.team-member-info {
    padding: 20px 24px;
}

.team-member-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.team-member-role {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sail);
    opacity: 0.5;
}

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

@media (max-width: 768px) {
    .team-grid-new { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════
   FUTURE OF HOUSING — Cinematic scroll experience
   ═══════════════════════════════════════════════════ */
.foh {
    position: relative;
    background: var(--black);
}

.foh-scroll {
    height: 800vh; /* longer scroll = more time per stage */
    position: relative;
}

.foh-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.foh-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.foh-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.foh-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 400;
    color: var(--white);
    text-align: center;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 800px;
    padding: 0 40px;
    transition: opacity 0.5s;
}

.foh-headline em {
    color: var(--sail);
    font-style: italic;
}

.foh-sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 16px;
}

.foh-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.05);
    z-index: 3;
}

.foh-progress-bar {
    height: 100%;
    background: var(--sail);
    width: 0%;
    transition: width 0.05s linear;
    opacity: 0.4;
}

/* Keep old resources/blog classes for any remaining references */
.resources {
    padding: 160px 0;
    background: var(--white);
    position: relative;
}

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

.resource-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-lighter);
    transition: all 0.5s var(--ease-out);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out);
    z-index: 0;
}

.resource-card:hover::before {
    transform: translateY(0);
}

.resource-card > * {
    position: relative;
    z-index: 1;
}

.resource-card:hover {
    border-color: var(--black);
    color: var(--white);
    transform: translateY(-4px);
}

.resource-icon {
    margin-bottom: 24px;
    color: var(--black);
    transition: all 0.5s var(--ease-out);
}

.resource-card:hover .resource-icon {
    color: var(--sail);
    transform: scale(1.1);
}

.resource-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.resource-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    flex: 1;
    transition: color 0.5s;
}

.resource-card:hover .resource-desc {
    color: rgba(255,255,255,0.6);
}

.resource-arrow {
    font-size: 20px;
    margin-top: 24px;
    display: block;
    transition: transform 0.4s var(--ease-elastic);
}

.resource-card:hover .resource-arrow {
    transform: translateX(12px);
}

/* ═══════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════ */
.blog {
    padding: 160px 0;
    background: var(--sail);
}

.blog .section-label {
    color: var(--gray);
}

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

.blog-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.6s var(--ease-out);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.blog-card-featured {
    grid-row: span 2;
}

.blog-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-featured .blog-card-img {
    aspect-ratio: auto;
    height: 50%;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--charcoal), var(--gray-dark));
    transition: transform 0.8s var(--ease-out);
}

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

.blog-card-content {
    padding: 32px;
}

.blog-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
}

.blog-card-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--sail-dark);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.3s;
}

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

.blog-card-featured .blog-card-title {
    font-size: 28px;
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card-date {
    font-size: 12px;
    color: var(--gray-light);
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact {
    padding: 160px 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(243, 236, 224, 0.02), transparent 70%);
    animation: contactGlow 12s ease-in-out infinite;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: start;
    position: relative;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact-text {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    transition: transform 0.3s var(--ease-out);
}

.contact-info-item:hover {
    transform: translateX(8px);
}

.contact-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-light);
    display: block;
    margin-bottom: 4px;
}

.contact-info-value {
    font-family: var(--font-accent);
    font-size: 20px;
    color: var(--white);
    transition: color 0.3s;
}

a.contact-info-value:hover {
    color: var(--sail);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    position: relative;
    overflow: hidden;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--sail);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
}

.form-group:focus-within::after {
    transform: translateX(0);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    outline: none;
    transition: all 0.4s;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    color: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.form-group select {
    cursor: pointer;
    color: rgba(255,255,255,0.3);
}

.form-group select option {
    background: var(--black);
    color: var(--white);
}

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

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 16px;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    background: var(--sail);
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 0;
}

.form-submit:hover::before {
    transform: translateX(0);
}

.form-submit span,
.form-submit svg {
    position: relative;
    z-index: 1;
}

.form-submit:hover {
    gap: 18px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    filter: invert(1);
    margin-bottom: 16px;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 0.7;
}

.footer-tagline {
    font-family: var(--font-accent);
    font-size: 16px;
    font-style: italic;
    color: var(--gray-light);
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s var(--ease-out);
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: var(--gray);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--gray);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
    }

    .entity-panel-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .entity-graphic {
        max-width: 400px;
    }

    .entity-quote-art {
        font-size: clamp(40px, 10vw, 80px);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

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

    .team-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
        --nav-height: 70px;
    }

    .nav-logo-img {
        height: 50px;
    }

    .nav-links {
        display: none;
    }

    .hero-ticker-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-ticker-entities {
        justify-content: center;
    }

    .hero-ticker {
        bottom: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .entity-panel {
        min-height: auto;
    }

    .entity-panel-content {
        padding: 80px var(--container-padding);
    }

    .entity-graphic {
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stat::after {
        display: none;
    }

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

    .team-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .team-tabs {
        flex-wrap: wrap;
    }

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

    .blog-card-featured {
        grid-row: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-quote-art {
        font-size: 120px;
    }

    .hero-cta {
        margin-top: 28px;
        padding: 13px 22px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .hero-cta + .hero-cta {
        margin-top: 14px;
    }

    .hero-content {
        padding-bottom: 200px;
    }

    .philosophy {
        padding: 120px 0;
    }

    .intro {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .team-cards {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

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

    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
}
