/* ================================================
   TBROS GROUP — styles.css
   Premium Corporate Website — Elevated
   ================================================ */

/* ================================================
   1. CUSTOM PROPERTIES
   ================================================ */
:root {
    /* Navy */
    --navy-950: #020710;
    --navy-900: #040918;
    --navy-800: #060d1f;
    --navy-700: #081226;
    --navy-600: #0c1830;
    --navy-500: #0f2040;
    --navy-400: #1a2f4e;

    /* Gold — restrained, never garish */
    --gold-600: #8a6e28;
    --gold-500: #b8943f;
    --gold-400: #c9a84c;
    --gold-300: #d4b060;
    --gold-200: #e0c478;
    --gold-100: #ede4be;

    /* Neutrals */
    --white:      #ffffff;
    --off-white:  #f6f4ef;
    --cream:      #f0ece4;
    --warm-100:   #ebe7df;
    --warm-200:   #d8d3c9;
    --warm-400:   #aba49a;
    --warm-600:   #6b6560;
    --warm-900:   #2a2825;

    /* Text */
    --text-primary:   #151c2b;
    --text-secondary: #455268;
    --text-muted:     #7d8fa4;

    /* Text on dark */
    --on-dark-100: rgba(255, 255, 255, 0.96);
    --on-dark-200: rgba(255, 255, 255, 0.70);
    --on-dark-300: rgba(255, 255, 255, 0.45);
    --on-dark-400: rgba(255, 255, 255, 0.22);
    --on-dark-500: rgba(255, 255, 255, 0.10);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-py:    clamp(96px, 11vw, 160px);
    --container-max: 1240px;
    --container-px:  clamp(24px, 5vw, 64px);

    /* Shape */
    --radius-sm: 2px;
    --radius-md: 6px;
    --radius-lg: 10px;

    /* Motion */
    --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --duration:    320ms;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(184, 148, 63, 0.22);
    color: var(--text-primary);
}

:focus-visible {
    outline: 1.5px solid var(--gold-400);
    outline-offset: 3px;
}

a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
img { display: block; max-width: 100%; }

/* ================================================
   3. LAYOUT
   ================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}
.section + .section {
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ================================================
   4. TYPOGRAPHY UTILITIES
   ================================================ */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-500);
    display: block;
    margin-bottom: 1.375rem;
}

.eyebrow--gold { color: var(--gold-400); }

.heading-serif {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4.5vw, 3.875rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

.heading-serif--light { color: var(--on-dark-100); }

.body-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.88;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.body-text:last-child { margin-bottom: 0; }

/* Section header: centered, with decorative gold rule under heading */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header .heading-serif::after,
.section-header .heading-serif--light::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold-500);
    margin: 1.5rem auto 0;
}

.section-header .heading-serif--light::after {
    background: var(--gold-400);
}

.section-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.82;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}
.section-sub--light { color: var(--on-dark-200); }

/* ================================================
   5. BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background var(--duration) var(--ease),
        border-color var(--duration) var(--ease),
        color var(--duration) var(--ease),
        transform 280ms var(--ease-spring),
        box-shadow var(--duration) var(--ease);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}
.btn-gold:hover {
    background: var(--gold-300);
    border-color: var(--gold-300);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(184, 148, 63, 0.38);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ================================================
   6. NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.75rem 0;
    transition:
        padding 0.45s var(--ease),
        background 0.45s var(--ease),
        border-color 0.45s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(4, 9, 24, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 1.125rem 0;
    border-bottom-color: rgba(184, 148, 63, 0.12);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    flex-shrink: 0;
    transition: color var(--duration);
}
.nav-logo:hover { color: var(--gold-300); }
.nav-logo-img { height: 32px; display: block; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.75rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--duration);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.36s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link--cta { color: var(--gold-400); }
.nav-link--cta:hover { color: var(--gold-200); }
.nav-link--cta::after { background: var(--gold-300); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ================================================
   7. HERO
   ================================================ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--navy-800);
    overflow: hidden;
}

/* Subtle gold grid texture */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(184, 148, 63, 0.048) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 148, 63, 0.048) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    will-change: transform;
}

/* Atmospheric glow */
.hero-glow {
    position: absolute;
    top: 40%;
    left: 35%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 120vh;
    background: radial-gradient(
        ellipse at center,
        rgba(13, 26, 53, 0.92) 0%,
        rgba(6, 13, 31, 0.6) 45%,
        transparent 72%
    );
    pointer-events: none;
    animation: glowPulse 12s ease-in-out infinite;
    will-change: opacity;
}

/* Vignette + gold breath in bottom-left */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(184, 148, 63, 0.055) 0%, transparent 52%),
        radial-gradient(ellipse at 100% 0%, rgba(4, 9, 26, 0.75) 0%, transparent 48%);
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 240px;
    background: linear-gradient(to bottom, transparent, rgba(4, 9, 24, 0.65));
    pointer-events: none;
    z-index: 1;
}

/* Main content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 100px var(--container-px) 2.5rem;
    width: 100%;
    will-change: transform;
}

/* Gold rule above headline — disabled */
.hero-content::before {
    display: none;
}

.hero-logo-mark {
    display: block;
    height: clamp(56px, 8vw, 80px);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.18s forwards;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.22s forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--on-dark-100);
    margin-bottom: 2.25rem;
    opacity: 0;
    animation: fadeUp 0.95s var(--ease-out) 0.38s forwards;
}

.hero-headline em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold-200);
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
    font-weight: 300;
    line-height: 1.88;
    color: rgba(255, 255, 255, 0.5);
    max-width: 540px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.95s var(--ease-out) 0.58s forwards;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.95s var(--ease-out) 0.74s forwards;
}

/* Hero footer: scroll indicator (left) + company list (right) */
.hero-footer {
    display: none;
}

.hero-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.4s forwards;
}

.hero-scroll-text {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.hero-scroll-line {
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 148, 63, 0.5), transparent);
}

/* Portfolio company strip — bottom right */
.hero-companies {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.6s forwards;
}

.hero-companies-label {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.24);
}

.hero-companies-divider {
    width: 24px;
    height: 1px;
    background: rgba(184, 148, 63, 0.3);
    flex-shrink: 0;
}

.hero-companies-item {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.26);
    white-space: nowrap;
    transition: color var(--duration);
}

.hero-companies-item:hover {
    color: rgba(255, 255, 255, 0.55);
}

.hero-companies-dot {
    color: rgba(184, 148, 63, 0.35);
    font-size: 0.625rem;
}

/* ================================================
   7b. BRAND MARQUEE
   ================================================ */
.brand-marquee {
    position: relative;
    z-index: 2;
    background: var(--navy-900);
    padding: 2.75rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}
.brand-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}
.brand-marquee-slide {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: clamp(2rem, 5vw, 5rem);
    min-width: 100vw;
    padding: 0 clamp(2rem, 4vw, 4rem);
}
.brand-marquee-logo {
    height: 48px;
    opacity: 0.4;
    filter: grayscale(100%) brightness(10);
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
    flex-shrink: 0;
}
.brand-marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(10);
    transform: scale(1.15);
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================
   8. ABOUT
   ================================================ */
.about {
    background: var(--white);
    border-top: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 5rem 7rem;
    align-items: start;
}

.about-col-left {
    position: sticky;
    top: 130px;
}

.about-col-left .eyebrow {
    margin-bottom: 1.5rem;
}

/* Larger heading in the about left column */
.about-col-left .heading-serif {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.08;
    margin-top: 0;
}

/* Subtle left rule on the right column — editorial separator */
.about-col-right {
    padding-left: 2.5rem;
    border-left: 1px solid var(--warm-100);
}

.about-rule {
    width: 44px;
    height: 1px;
    background: var(--gold-500);
    margin: 2.75rem 0;
}

.about-tagline {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

/* ================================================
   9. PORTFOLIO
   ================================================ */
.portfolio {
    background: var(--navy-700);
    border-top: 2px solid var(--gold-500);
}

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

.portfolio-card {
    position: relative;
    background: var(--navy-600);
    border: 1px solid rgba(255, 255, 255, 0.052);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 540px;
    transition:
        transform 0.5s var(--ease-spring),
        border-color 0.42s var(--ease),
        box-shadow 0.5s var(--ease);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(184, 148, 63, 0.35);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(184, 148, 63, 0.12),
        0 0 60px rgba(184, 148, 63, 0.10),
        inset 0 1px 0 rgba(184, 148, 63, 0.08);
}

/* Large faded watermark number — gives depth and editorial quality */
.portfolio-card::before {
    content: attr(data-card);
    position: absolute;
    bottom: -0.12em;
    right: -0.04em;
    font-family: var(--font-serif);
    font-size: 11rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, 0.032);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transition: color 0.45s var(--ease), transform 0.6s var(--ease), opacity 0.45s var(--ease);
    letter-spacing: -0.04em;
}

.portfolio-card:hover::before {
    color: rgba(184, 148, 63, 0.075);
    transform: scale(1.05) translateY(-4px);
}

/* Gold accent top line — gradient shimmer */
.portfolio-card-line {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-200) 40%, rgba(255,255,255,0.6) 50%, var(--gold-200) 60%, transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background-position 0.8s var(--ease);
}
.portfolio-card:hover .portfolio-card-line {
    background-position: 0% 0;
}

.portfolio-card-body {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2.5rem 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-num {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: rgba(184, 148, 63, 0.42);
    margin-bottom: 1.25rem;
    display: block;
}

/* Brand logo in each card */
.portfolio-logo-wrap {
    height: 52px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.portfolio-logo {
    height: 100%;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

/* Invert dark logos to white for dark card backgrounds */
.portfolio-logo--invert {
    filter: brightness(0) invert(1);
    opacity: 0.88;
}

/* Text wordmark for brands without a graphic logo */
.portfolio-logo-wordmark {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--on-dark-100);
    line-height: 1;
}

.portfolio-category {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1rem;
    display: block;
}

.portfolio-name {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 2.5vw, 2.75rem);
    font-weight: 400;
    color: var(--on-dark-100);
    margin-bottom: 1.25rem;
    line-height: 1.14;
    letter-spacing: -0.01em;
}

.portfolio-desc {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.82;
    color: rgba(255, 255, 255, 0.48);
    flex: 1;
    margin-bottom: 1.75rem;
    transition: color 0.42s var(--ease);
}
.portfolio-card:hover .portfolio-desc {
    color: rgba(255, 255, 255, 0.56);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3125rem 0.8125rem;
    border: 1px solid rgba(184, 148, 63, 0.20);
    border-radius: 1px;
    color: rgba(184, 148, 63, 0.60);
    transition: border-color var(--duration), color var(--duration), background var(--duration);
}
.portfolio-card:hover .tag {
    border-color: rgba(184, 148, 63, 0.36);
    color: rgba(184, 148, 63, 0.82);
    background: rgba(184, 148, 63, 0.06);
}

.portfolio-cta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gold-400);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.375rem;
    margin-top: auto;
    cursor: pointer;
    transition: gap 0.32s var(--ease), color var(--duration);
    user-select: none;
}
.portfolio-cta:hover { color: var(--gold-200); gap: 1.125rem; }

.cta-arrow {
    display: inline-block;
    transition: transform 0.32s var(--ease);
}
.portfolio-card:hover .cta-arrow {
    transform: translateX(6px);
    animation: arrowPulse 1.2s var(--ease) infinite;
}
@keyframes arrowPulse {
    0%, 100% { transform: translateX(6px); }
    50% { transform: translateX(10px); }
}

/* ================================================
   10. LEADERSHIP
   ================================================ */
.leadership {
    background: var(--off-white);
    border-top: 2px solid var(--gold-500);
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.leader-card {
    background: var(--white);
    border: 1px solid var(--warm-100);
    border-radius: var(--radius-lg);
    padding: 3rem 2.75rem;
    transition:
        transform 0.38s var(--ease),
        box-shadow 0.38s var(--ease),
        border-color 0.38s var(--ease);
    position: relative;
    overflow: hidden;
}

/* Subtle gold accent that slides in from the top on hover */
.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-200), transparent);
    opacity: 0;
    transition: opacity 0.38s;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1);
    border-color: var(--warm-200);
}
.leader-card:hover::before { opacity: 1; }

.leader-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--navy-800);
    border: 1.5px solid var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(184, 148, 63, 0.16), 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.38s var(--ease), border-color 0.38s var(--ease);
    overflow: hidden;
}
.leader-card:hover .leader-portrait {
    box-shadow: 0 6px 32px rgba(184, 148, 63, 0.28), 0 2px 8px rgba(0,0,0,0.3);
    border-color: var(--gold-400);
}

.leader-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-monogram {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold-400);
    letter-spacing: 0.08em;
}

.leader-name {
    font-family: var(--font-serif);
    font-size: 2.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.leader-title {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.leader-rule {
    width: 36px;
    height: 1px;
    background: var(--gold-500);
    margin: 1.5rem 0;
}

.leader-bio {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.86;
    color: var(--text-secondary);
}

/* ================================================
   11. WHY TBROS
   ================================================ */
.why-tbros {
    background: var(--navy-800);
    border-top: 2px solid var(--gold-500);
}

/* Grid of bordered cells */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.pillar {
    padding: 2.75rem 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: background 0.38s var(--ease), transform 0.38s var(--ease);
}

/* Gold reveal line on pillar hover */
.pillar::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-200), transparent);
    opacity: 0;
    transition: opacity 0.38s var(--ease), height 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.pillar:hover {
    background: rgba(184, 148, 63, 0.05);
    transform: translateY(-3px);
}
.pillar:hover::after {
    opacity: 1;
    height: 3px;
    box-shadow: 0 0 12px rgba(184, 148, 63, 0.25);
}

.pillar-num {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: var(--gold-500);
    margin-bottom: 1.375rem;
    display: block;
    opacity: 0.8;
    transition: color 0.38s var(--ease), letter-spacing 0.38s var(--ease), opacity 0.38s var(--ease);
}
.pillar:hover .pillar-num {
    color: var(--gold-400);
    letter-spacing: 0.32em;
    opacity: 1;
}

.pillar-heading {
    font-family: var(--font-serif);
    font-size: 1.4375rem;
    font-weight: 400;
    color: var(--on-dark-100);
    margin-bottom: 1.125rem;
    line-height: 1.26;
    letter-spacing: -0.005em;
    transition: color 0.38s var(--ease);
}
.pillar:hover .pillar-heading {
    color: var(--white);
}

.pillar-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.82;
    color: rgba(255, 255, 255, 0.44);
    transition: color 0.38s var(--ease);
}
.pillar:hover .pillar-text {
    color: rgba(255, 255, 255, 0.56);
}

/* ================================================
   12. METRICS
   ================================================ */
.metrics {
    background: var(--navy-900);
    padding: clamp(72px, 10vw, 120px) 0;
    border-top: 1px solid rgba(184, 148, 63, 0.11);
    border-bottom: 1px solid rgba(184, 148, 63, 0.11);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.metric {
    text-align: center;
    padding: 3rem 1.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: background 0.35s var(--ease);
}
.metric:hover { background: rgba(184, 148, 63, 0.03); }

/* Top accent line on hover */
.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}
.metric:hover::before { opacity: 1; }

.metric-val {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 6.5vw, 7rem);
    font-weight: 300;
    color: var(--gold-400);
    line-height: 1;
    margin-bottom: 0.875rem;
    letter-spacing: -0.03em;
}

.metric-label {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--on-dark-100);
    margin-bottom: 1rem;
}

.metric-desc {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.34);
}

/* ================================================
   13. CONTACT
   ================================================ */
.contact {
    background: var(--off-white);
    border-top: 2px solid var(--gold-500);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 5rem 6rem;
    align-items: start;
}

.contact-col-left .heading-serif {
    margin-top: 0.375rem;
    margin-bottom: 1.375rem;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.contact-detail-label {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.4375rem;
    display: block;
}

.contact-detail-value {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-primary);
    transition: color var(--duration);
    display: block;
}
a.contact-detail-value:hover { color: var(--gold-500); }

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

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

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

.form-label {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--warm-200);
    border-radius: var(--radius-sm);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--duration), box-shadow var(--duration);
}
.form-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(184, 148, 63, 0.10);
}
.form-input::placeholder { color: var(--warm-400); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23aba49a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.125rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

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

.form-success {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--gold-600);
    padding: 1.125rem 1.375rem;
    border: 1px solid rgba(184, 148, 63, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(184, 148, 63, 0.05);
    text-align: center;
    line-height: 1.6;
}

.hidden { display: none; }

/* ================================================
   14. FOOTER
   ================================================ */
.footer {
    background: var(--navy-950);
    padding: 6rem 0 2.75rem;
    position: relative;
}

/* Thin gold gradient at very top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 148, 63, 0.5) 25%,
        rgba(201, 168, 76, 0.7) 50%,
        rgba(184, 148, 63, 0.5) 75%,
        transparent 100%
    );
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 4rem;
    margin-bottom: 2.75rem;
    border-bottom: 1px solid var(--on-dark-500);
}

.footer-logo-img { height: 36px; display: block; margin-bottom: 0.5rem; }
.footer-logo {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.3);
}

.footer-nav {
    display: flex;
    gap: 5.5rem;
    flex-shrink: 0;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-nav-heading {
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 0.5rem;
}

.footer-nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.48);
    transition: color var(--duration);
}
.footer-nav-link:hover { color: var(--gold-400); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    transition: color var(--duration);
}
.footer-legal-link:hover { color: rgba(255, 255, 255, 0.45); }

/* ================================================
   15. SCROLL ANIMATIONS
   ================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.78s var(--ease-out),
        transform 0.78s var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay tiers */
[data-animate][data-delay="80"]  { transition-delay:  80ms; }
[data-animate][data-delay="100"] { transition-delay: 100ms; }
[data-animate][data-delay="150"] { transition-delay: 150ms; }
[data-animate][data-delay="160"] { transition-delay: 160ms; }
[data-animate][data-delay="200"] { transition-delay: 200ms; }
[data-animate][data-delay="240"] { transition-delay: 240ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-ctas,
    .hero-scroll-indicator,
    .hero-companies,
    .hero-content::before {
        opacity: 1;
        animation: none;
    }
    .hero-glow { animation: none; }
    .brand-marquee-track { animation: none; }
    .portfolio-card,
    .pillar {
        transition: none;
    }
    .portfolio-card:hover,
    .pillar:hover {
        transform: none;
    }
    .portfolio-card:hover .cta-arrow {
        animation: none;
    }
    .portfolio-card-line {
        transition: none;
    }
}

/* ================================================
   16. KEYFRAMES
   ================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ruleGrow {
    from { width: 0;   opacity: 0; }
    to   { width: 64px; opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.88; }
    50%       { opacity: 1;   }
}

/* ================================================
   17. RESPONSIVE
   ================================================ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1060px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-grid .portfolio-card:last-child {
        grid-column: 1 / -1;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

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

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        border-left: none;
    }

    .metrics-grid .metric {
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-col-left { position: static; }
    .about-col-right { padding-left: 0; border-left: none; border-top: 1px solid var(--warm-100); padding-top: 2rem; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .footer-nav { gap: 3.5rem; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    :root {
        --section-py: clamp(72px, 12vw, 100px);
    }

    /* Nav */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(4, 9, 24, 0.98);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-bottom: 1px solid rgba(184, 148, 63, 0.12);
        padding: 0.5rem 0;
    }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }

    .nav-link {
        padding: 0.9375rem var(--container-px);
        width: 100%;
        font-size: 0.875rem;
    }
    .nav-link::after { display: none; }

    /* Hero */
    .hero-headline {
        font-size: clamp(2.625rem, 9vw, 4.5rem);
    }
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }
    .hero-ctas .btn { width: 100%; }

    .hero-companies { display: none; }
    .hero-footer { padding-bottom: 2rem; }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid .portfolio-card:last-child {
        grid-column: auto;
        max-width: none;
    }
    .portfolio-card { min-height: auto; }

    /* Leadership */
    .leadership-grid { grid-template-columns: 1fr; }

    /* Pillars */
    .pillars-grid {
        grid-template-columns: 1fr;
        border: none;
    }
    .pillar {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 2.25rem 0;
    }
    .pillar::after { display: none; }

    /* Metrics */
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        border-left: none;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-nav { gap: 2.5rem; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ---- Small mobile ---- */
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .footer-nav { flex-direction: column; gap: 2rem; }
    .section-header { margin-bottom: 3.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
