/* ============================================================
   TEAM PAGE — team.css
   Palette: off-white #FAF9F7 · warm parchment #EDE6D8
           dark ink #1C1A16 · brand red #b01c0a
           muted taupe #6A6058 · gold accent #C8A96A
   ============================================================ */

/* ─── HERO ─────────────────────────────────────────────────── */
.tm-hero {
    padding: 8rem 0 6rem;
    background: #1C1A16;
    position: relative;
    overflow: hidden;
}

.tm-hero .section-label {
    color: #C8A96A;
    letter-spacing: 0.3em;
}

.tm-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.4rem, 6.5vw, 6.2rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #FAF9F7;
    margin: 1.4rem 0 2rem;
}

.tm-hero-title em {
    font-style: italic;
    color: #C8A96A;
}

.tm-hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: rgba(250, 249, 247, 0.5);
    line-height: 1.9;
    max-width: 520px;
}

/* Decorative animated lines */
.tm-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tm-hero-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(200, 169, 106, 0.18), transparent);
    animation: heroLinePulse 6s ease-in-out infinite;
}

.tm-line-1 { right: 30%;  animation-delay: 0s; }
.tm-line-2 { right: 20%;  animation-delay: 1.5s; }
.tm-line-3 { right: 10%;  animation-delay: 3s; }

@keyframes heroLinePulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 1; }
}

/* ─── COUNT BAR ─────────────────────────────────────────────── */
.tm-count-bar {
    background: #EDE6D8;
    padding: 4rem 0;
}

.tm-count-row {
    display: flex;
    align-items: center;
}

.tm-count-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tm-count-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    color: #1C1A16;
    line-height: 1;
    letter-spacing: -0.02em;
}

.tm-count-lbl {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #B0A090;
}

.tm-count-divider {
    width: 1px;
    height: 52px;
    background: #C9BEB0;
    margin: 0 3.5rem;
    flex-shrink: 0;
}

/* ─── MEMBERS WRAP ──────────────────────────────────────────── */
.tm-members-wrap {
    background: #FAF9F7;
}

/* ─── SINGLE MEMBER SECTION ─────────────────────────────────── */
.tm-member {
    padding: 0;
    border-bottom: 1px solid #E8E2DA;
    /* scroll-reveal: hidden until JS fires */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.tm-member--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inner two-column grid */
.tm-member-inner {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    min-height: 600px;
    align-items: stretch;
}

/* Alt: swap columns */
.tm-member--alt .tm-member-inner {
    grid-template-columns: 1.35fr 1fr;
}

/* Alternate background rhythm */
.tm-member:nth-child(even) {
    background: #F4EFE7;
}

/* ─── PHOTO COLUMN ──────────────────────────────────────────── */
.tm-photo-col {
    position: relative;
    overflow: hidden;
}

.tm-photo-frame {
    width: 100%;
    height: 100%;
    min-height: 580px;
    overflow: hidden;
    position: relative;
}

.tm-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.9s ease, filter 0.6s ease;
    filter: grayscale(12%);
    transform: scale(1.08) translateY(0);
    will-change: transform;
}

.tm-member:hover .tm-photo-frame img {
    filter: grayscale(0%);
}

/* Corner accent overlay — a subtle gradient stripe */
.tm-photo-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(28, 26, 22, 0.55), transparent);
    pointer-events: none;
}

/* Initials placeholder for Chef (no photo) */
.tm-photo-frame--chef {
    background: linear-gradient(135deg, #2C2A24 0%, #1C1A16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.tm-photo-initials {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 7rem;
    color: rgba(200, 169, 106, 0.35);
    letter-spacing: -0.04em;
    user-select: none;
}

/* Badge — overlaid on the bottom of the photo column */
.tm-photo-badge {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 10;
}

.tm-badge-role {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(250, 249, 247, 0.9);
    background: rgba(176, 28, 10, 0.85);
    padding: 0.3rem 0.75rem;
    display: inline-block;
    backdrop-filter: blur(6px);
}

.tm-badge-exp {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.2rem;
    color: #C8A96A;
    padding-left: 0.2rem;
}

/* ─── TEXT COLUMN ───────────────────────────────────────────── */
.tm-text-col {
    padding: 5.5rem 5rem 5.5rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

/* For alt layout, adjust padding sides */
.tm-member--alt .tm-text-col {
    padding: 5.5rem 5rem 5.5rem 5.5rem;
}

/* Large index number watermark */
.tm-member-tag {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    color: #C8A96A;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Designation label */
.tm-role-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.57rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b01c0a;
    margin-bottom: 1rem;
}

/* Person name — large serif */
.tm-member-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 3.8vw, 3.6rem);
    color: #1C1A16;
    letter-spacing: -0.015em;
    line-height: 1.06;
    margin: 0 0 0;
}

/* Thin rule under name */
.tm-name-rule {
    width: 40px;
    height: 1px;
    background: #b01c0a;
    margin: 1.6rem 0 2.4rem;
    opacity: 0.7;
    transition: width 0.5s ease;
}

.tm-member:hover .tm-name-rule {
    width: 80px;
}

/* Bio paragraphs */
.tm-bio {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tm-bio p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #5A5048;
    line-height: 1.92;
    margin: 0 0 1.4rem;
}

.tm-bio p:last-child {
    margin-bottom: 0;
}

/* First para slightly larger — lead paragraph */
.tm-bio p:first-child {
    font-size: 0.95rem;
    color: #3E3830;
    font-weight: 300;
}

/* ─── PHILOSOPHY STRIP ──────────────────────────────────────── */
.tm-quote {
    background: #111110;
    padding: 9rem 0;
}

.tm-pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    letter-spacing: -0.01em;
    margin: 0 0 2rem;
    max-width: 840px;
    border: none;
    padding: 0;
}

.tm-pull-cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    font-style: normal;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tm-member-inner,
    .tm-member--alt .tm-member-inner {
        grid-template-columns: 1fr;
    }

    .tm-photo-col {
        order: 1;
    }
    .tm-photo-frame,
    .tm-photo-frame--chef {
        min-height: 400px;
    }

    .tm-photo-badge {
        bottom: 1.8rem;
        left: 1.8rem;
    }

    .tm-text-col,
    .tm-member--alt .tm-text-col {
        order: 2;
        padding: 3.5rem 2rem 4rem;
    }
}

@media (max-width: 768px) {
    .tm-hero { padding: 5.5rem 0 4.5rem; }

    .tm-count-row {
        flex-wrap: wrap;
        gap: 0;
    }
    .tm-count-item {
        flex: 1 1 45%;
        padding: 1.2rem 0;
        border-bottom: 1px solid #C9BEB0;
    }
    .tm-count-item:nth-child(n+4) { border-bottom: none; }
    .tm-count-divider { display: none; }

    .tm-photo-frame,
    .tm-photo-frame--chef {
        min-height: 280px;
    }

    .tm-text-col,
    .tm-member--alt .tm-text-col {
        padding: 3rem 1.5rem 3.5rem;
    }

    .tm-member-name { font-size: 2.2rem; }

    .tm-bio p      { font-size: 0.88rem; }
    .tm-bio p:first-child { font-size: 0.93rem; }

    .tm-quote { padding: 5rem 0; }

    /* Footer clearance for floating nav */
    footer {
        padding-bottom: calc(3rem + 90px + env(safe-area-inset-bottom, 0px));
    }
}
