/* ===== Reset & Base ===== */
:root {
    --cream: #FAF8F3;
    --cream-mid: #F3F0E8;
    --navy: #1C2E4A;
    --navy-deep: #141C28;
    --tan: #9A7B4F;
    --tan-light: #C9B384;
    --tan-dark: #6E5736;
    --stone: #9A9488;
    --stone-light: #C5BFB3;
    --text: #2C3040;
    --text-mid: #555A66;
    --text-light: #6B6E78;
    --white: #FFFFFF;
    --focus: #4A7BB8;
    --success: #5A7A4F;
    --error: #A93B2B;

    --h1: 3rem;
    --h1-mobile: 2rem;
    --h2: 2rem;
    --h2-mobile: 1.6rem;
    --h3: 1.1rem;
    --body: 0.95rem;
    --small: 0.85rem;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    line-height: 1.45;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-variation-settings: "opsz" 60;
    line-height: 1.04;
    letter-spacing: -0.022em;
    color: var(--navy);
}

h3 {
    font-variation-settings: "opsz" 20;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.0);
    transition: all 0.35s ease;
    padding: 24px 0;
}

.header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    position: relative;
    margin-left: -32px;
}

.header-logo img {
    height: 88px;
    width: auto;
    transition: height 0.35s ease, opacity 0.35s ease;
}

.header-logo .logo-dark {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.header.scrolled .header-logo .logo-white {
    opacity: 0;
}

.header.scrolled .header-logo .logo-dark {
    opacity: 1;
}

.header.scrolled .header-logo img {
    height: 64px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.header-nav a:hover { color: var(--tan-light); }

.header.scrolled .header-nav a { color: var(--navy); }
.header.scrolled .header-nav a:hover { color: var(--tan); }

.header-nav a:last-child {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 10px 24px;
    margin-left: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.25s ease;
}

.header-nav a:last-child:hover { background: var(--tan); border-color: var(--tan); }

.header.scrolled .header-nav a:last-child {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.header.scrolled .header-nav a:last-child:hover { background: var(--tan); border-color: var(--tan); }

/* Interior pages: always-scrolled header */
.header.page-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header.page-header .header-logo .logo-white { opacity: 0; }
.header.page-header .header-logo .logo-dark { opacity: 1; }
.header.page-header .header-logo img { height: 64px; }
.header.page-header .header-nav a { color: var(--navy); }
.header.page-header .header-nav a:hover { color: var(--tan); }
.header.page-header .header-nav a:last-child {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.header.page-header .header-nav a:last-child:hover { background: var(--tan); border-color: var(--tan); }
.header.page-header .header-toggle span { background: var(--navy); }
.header.page-header .header-nav a.active { color: var(--tan); }

/* Mobile toggle */
.header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.header-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s ease; }
.header.scrolled .header-toggle span { background: var(--navy); }
.header-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header-toggle.active span:nth-child(2) { opacity: 0; }
.header-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: 'Source Serif 4', serif; font-size: 1.8rem; color: var(--navy); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-video {
        object-position: 60% 50%;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(20, 28, 40, 0.75) 0%, rgba(28, 46, 74, 0.35) 30%, rgba(28, 46, 74, 0.3) 60%, rgba(28, 46, 74, 0.6) 100%);
    z-index: 1;
}

.hero-inner {
    max-width: 780px;
    position: relative;
    z-index: 2;
    padding: 120px 32px 80px;
}

.hero h1 {
    font-size: var(--h1);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 44px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.btn:hover { background: var(--tan); border-color: var(--tan); }

.btn-light {
    background: var(--tan);
    border-color: var(--tan);
    color: var(--white);
}

.btn-light:hover { background: var(--tan-dark); border-color: var(--tan-dark); }

/* ===== Intro ===== */
.intro {
    padding: 88px 32px;
    background: var(--white);
}

.intro-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.intro-text {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.intro-text h2 {
    font-size: var(--h2);
    margin-bottom: 16px;
    text-wrap: balance;
}

.intro-text p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 12px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tan);
    letter-spacing: 0.04em;
    margin-top: 16px;
    transition: gap 0.25s ease;
}

.link-arrow:hover { gap: 14px; }

.link-arrow span { transition: transform 0.25s ease; }

/* ===== Pillars ===== */
.pillars {
    padding: 88px 32px;
    background: var(--cream);
}

.pillars-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.pillar {
    padding: 0;
}

.pillar h3 {
    font-size: var(--h3);
    margin-bottom: 8px;
    line-height: 1.25;
}

.pillar p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.55;
    margin-bottom: 16px;
}

.pillar .link-arrow {
    font-size: 0.78rem;
    margin-top: 0;
}

/* ===== Philosophy ===== */
.philosophy {
    padding: 88px 32px;
    background: var(--navy);
    color: var(--cream);
}

.philosophy-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.philosophy .label {
    color: var(--tan-light);
}

.philosophy h2 {
    font-size: var(--h2);
    color: var(--cream);
    margin-bottom: 16px;
    text-wrap: balance;
}

.philosophy-left p {
    font-size: 1rem;
    color: var(--stone-light);
    line-height: 1.6;
}

.basket {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.basket:first-child { padding-top: 0; }
.basket:last-child { border-bottom: none; padding-bottom: 0; }

.basket h3 {
    font-size: var(--h3);
    color: var(--tan-light);
    margin-bottom: 6px;
}

.basket p {
    font-size: 0.92rem;
    color: var(--stone-light);
    line-height: 1.55;
}

/* ===== Team ===== */
.team {
    padding: 88px 32px;
    background: var(--white);
}

.team-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.team h2 {
    font-size: var(--h2);
    margin-bottom: 40px;
    text-align: center;
    text-wrap: balance;
}

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

.team-card {
    background: var(--cream);
    padding: 32px;
    text-align: center;
}

.team-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin: 0 auto 16px;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

.team-card p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.55;
    text-align: left;
}

/* ===== Why Peckham ===== */
.why {
    padding: 88px 32px;
    background: var(--cream);
}

.why-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.why h2 {
    font-size: var(--h2);
    margin-bottom: 40px;
    text-align: center;
    text-wrap: balance;
}

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

.why-card {
    padding: 32px 28px;
    background: var(--white);
    border-top: 2px solid var(--tan);
}

.why-card h3 {
    font-size: var(--h3);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
    padding: 88px 32px;
    background: var(--cream);
    text-align: center;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: var(--h2);
    margin-bottom: 12px;
    text-wrap: balance;
}

.contact p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 560px;
    margin: 0 auto 10px;
    text-align: left;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    border: 1px solid rgba(28, 46, 74, 0.15);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--stone);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--tan);
}

.contact-form textarea {
    margin-bottom: 10px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.contact-alt {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
}

.contact-alt a {
    color: var(--tan);
    font-weight: 500;
}

.contact-alt a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-deep);
    padding: 48px 32px 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 14px;
}

.footer-logo {
    height: 64px;
    width: auto;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

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

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--cream);
    opacity: 0.6;
    line-height: 1.45;
    max-width: 720px;
    margin-bottom: 6px;
}

.footer-copy {
    font-size: 0.73rem;
    color: var(--cream);
    opacity: 0.45;
}

/* ===== Shared ===== */
.label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tan);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .pillars-inner .fade-in:nth-child(2) { transition-delay: 0.07s; }
    .pillars-inner .fade-in:nth-child(3) { transition-delay: 0.14s; }
    .pillars-inner .fade-in:nth-child(4) { transition-delay: 0.21s; }
    .pillars-inner .fade-in:nth-child(5) { transition-delay: 0.28s; }
    .team-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.4rem; }
    .intro-text h2, .philosophy h2, .team h2, .contact h2 { font-size: 1.75rem; }

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

    .philosophy-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
}

@media (max-width: 880px) {
    .header-nav { display: none; }
    .header-toggle { display: flex; }
    .mobile-menu { display: flex; }
}

@media (max-width: 768px) {
    .hero { padding: 80px 20px 56px; }
    .hero h1 { font-size: var(--h1-mobile); line-height: 1.1; }
    .hero p { font-size: 1rem; }
    .hero-inner { padding: 100px 20px 56px; }

    .founder-statement { padding: 56px 20px; }
    .founder-quote { font-size: 1.05rem; line-height: 1.5; }
    .founder-attribution { font-size: 0.85rem; }

    .intro, .pillars, .philosophy, .team, .why, .contact { padding: 56px 20px; }
    .header-inner { padding: 0 20px; }
    .header-logo { margin-left: -20px; }
    .footer { padding: 40px 20px 28px; }
    .footer-inner { padding: 0; }

    .pillars-inner { display: grid; grid-template-columns: 1fr; gap: 32px; }

    .pillar {
        width: 100%;
        opacity: 1 !important;
        transform: none !important;
    }

    .pillar.fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

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

    .header-logo img { height: 56px; }
    .header.scrolled .header-logo img { height: 48px; }

    .footer-nav { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   ===== 2026 UPGRADE LAYER (shared across all pages) =========
   Added for the site refresh. Revert by restoring the file in
   _backup-pre-upgrade/. Uses the existing brand tokens above.
   ============================================================ */

/* Refined button motion */
.btn { transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.btn:hover { transform: translateY(-2px); }

/* --- Animated hero entrance (homepage + interior banners) --- */
@keyframes pcm-rise { to { opacity: 1; transform: translateY(0); } }

.hero-reveal > * {
    opacity: 0;
    transform: translateY(18px);
    animation: pcm-rise 0.85s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero-reveal > *:nth-child(1) { animation-delay: 0.10s; }
.hero-reveal > *:nth-child(2) { animation-delay: 0.25s; }
.hero-reveal > *:nth-child(3) { animation-delay: 0.40s; }
.hero-reveal > *:nth-child(4) { animation-delay: 0.55s; }

.hero-eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tan-light);
    margin-bottom: 20px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Scroll cue (homepage hero) */
.scrollcue {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px; height: 38px;
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 14px;
    display: flex; justify-content: center; padding-top: 7px;
}
.scrollcue::before {
    content: "";
    width: 3px; height: 7px; border-radius: 3px;
    background: rgba(255,255,255,0.8);
    animation: pcm-cue 1.6s ease-in-out infinite;
}
@keyframes pcm-cue {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { opacity: 0; }
}

/* --- Interactive strategy explorer (navy section) --- */
.philosophy-explorer { display: block; }
.pcm-head { max-width: 660px; margin: 0 auto 36px; text-align: center; }
.pcm-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pcm-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 11px 20px;
    border: 1px solid rgba(255,255,255,0.22);
    background: transparent; color: var(--cream);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.pcm-tab:hover { border-color: var(--tan-light); }
.pcm-tab.active { background: var(--tan); border-color: var(--tan); color: #fff; }
.pcm-panel { display: none; }
.pcm-panel.active {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
    animation: pcm-fade 0.4s ease;
}
@keyframes pcm-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pcm-panel h3 { color: var(--tan-light); font-size: 1.5rem; margin-bottom: 12px; }
.pcm-panel p { color: var(--stone-light); line-height: 1.65; font-size: 0.98rem; margin-bottom: 18px; }
.pcm-spec {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
    padding: 8px 30px;
}
.pcm-spec-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
    padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pcm-spec-row:last-child { border-bottom: none; }
.pcm-spec .k {
    font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--tan-light); font-weight: 600; font-family: 'Inter', sans-serif;
}
.pcm-spec .v { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; color: var(--cream); text-align: right; }

/* --- Card lift on hover (site-wide) --- */
.pillar, .why-card, .pillar-expanded-card, .risk-card, .belief-card, .team-card, .team-bio-card {
    transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s cubic-bezier(0.23,1,0.32,1);
}
.why-card:hover, .pillar-expanded-card:hover, .belief-card:hover, .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 28, 40, 0.10);
}
.risk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    border-top-color: var(--tan-light);
}
.pillar-num {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2rem; font-weight: 600; color: var(--tan);
    line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px;
    transition: color 0.25s ease;
}
.pillar:hover .pillar-num { color: var(--tan-dark); }
.pillar-num-rule { width: 26px; height: 2px; background: var(--tan); opacity: 0.85; margin-bottom: 16px; }
.pillars-cta { text-align: center; margin-top: 44px; }
.pillars-cta .link-arrow { justify-content: center; margin-top: 0; }

/* --- Process steps polish (approach page) --- */
.process-step:hover .step-number { color: var(--tan); }

/* Reduced motion: disable entrance + cue animations */
@media (prefers-reduced-motion: reduce) {
    .hero-reveal > * { opacity: 1; transform: none; animation: none; }
    .scrollcue::before { animation: none; }
    .btn:hover { transform: none; }
}

/* Upgrade-layer responsive */
@media (max-width: 900px) {
    .pcm-panel.active { grid-template-columns: 1fr; gap: 24px; }
}
