/* Social & Co. Realty Group — public stylesheet
   Light palette per Mike's revisions: lots of white, gold (#c9a962) as accent,
   navy (#1a1a2e) for emphasis only. Typography: Playfair Display + Inter.
   ============================================================================= */

:root {
  /* Brand palette (per Brand Guide_SocialCo.pdf):
     BLK #140f10, WHT #FFFFFF, GOLD #C3922E */
  --c-bg: #ffffff;
  --c-bg-soft: #faf9f5;
  --c-bg-muted: #efece4;
  --c-ink: #140f10;
  --c-ink-soft: #4a4548;
  --c-ink-muted: #87828a;
  --c-line: #e6e2d8;
  --c-gold: #c3922e;
  --c-gold-deep: #a37a25;
  --c-navy: #140f10;
  --c-navy-soft: #2a2426;

  /* Brand fonts: Cinzel (headers) + Mulish (closest open-source Avenir Next equivalent) */
  --serif: "Cinzel", "Playfair Display", Georgia, serif;
  --sans:  "Mulish", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: 1.5rem;
  --radius: 4px;
  --t: 0.25s ease;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-gold-deep); }

/* Typography — Cinzel for display (serif Roman caps), Mulish for body */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; color: var(--c-ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: 0.02em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: 0.04em; text-transform: uppercase; }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: 0.03em; text-transform: uppercase; }
h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--sans); font-weight: 700; }
em { font-style: normal; color: var(--c-gold); font-family: var(--serif); }
p { margin: 0 0 1rem; color: var(--c-ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-deep);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-gold);
}
.eyebrow.no-rule { border: 0; padding: 0; }
.eyebrow.light { color: var(--c-gold); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(20, 15, 16, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.nav-links a { color: #fff; }
.nav-links a.active { color: var(--c-gold); }
.site-header.scrolled,
.site-header.solid {
  background: rgba(20, 15, 16, 1);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 64px; width: auto; max-width: 260px; object-fit: contain; }
.brand-logo.light { display: block; }
.brand-logo.dark { display: none; }
/* Both variants currently point at the same asset; show light by default.
   When a true dark-background variant is uploaded, swap which one shows
   on .scrolled/.solid below. */

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #fff !important;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--c-gold) !important; }
.nav-links a.active { color: var(--c-gold) !important; }
.nav-links a.nav-phone {
  background: var(--c-gold);
  color: #fff !important;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links a.nav-phone:hover { background: var(--c-gold-deep); color: #fff !important; }
.nav-toggle { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; cursor: pointer;
  color: var(--c-ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0;
    flex-direction: column; justify-content: center;
    background: #140f10;
    transform: translateX(100%); transition: transform var(--t);
    gap: 1.75rem; padding: 5rem 2rem;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.25rem; color: #fff !important; }
}

/* Hero — background-image is set inline by index.php via brand_asset_url('hero-bg').
   This rule provides the fallback color + layout when no hero image is set. */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: #fff;
  background-color: #140f10;
  padding: 9rem 0 5rem;
  overflow: hidden;
}
.hero h1, .hero p { color: #fff; }
.hero p { color: rgba(255,255,255,0.85); }
.hero .hero-search input { color: var(--c-ink); }
.hero-content { max-width: 720px; }
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; max-width: 560px; }
.hero-search {
  margin-top: 2rem;
  display: flex; gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 0.5rem;
  max-width: 640px;
}
.hero-search input {
  flex: 1; border: 0; padding: 0.85rem 1rem; font-family: var(--sans); font-size: 1rem;
  outline: 0; background: transparent;
}
.hero-search button {
  background: var(--c-gold); color: #fff; border: 0;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background var(--t);
}
.hero-search button:hover { background: var(--c-gold-deep); }

/* Section spacing */
section { padding: 5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: start; } }

/* Stats */
.stats { background: var(--c-bg-soft); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-value { font-family: var(--serif); font-size: 2.5rem; color: var(--c-ink); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; color: var(--c-ink-muted); letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }

/* IDX widget slots — pre-render fallback */
.idx-slot {
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-soft);
  border: 1px dashed var(--c-line);
  color: var(--c-ink-muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

/* CTA buttons */
.cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--c-gold); color: #fff;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: background var(--t), color var(--t), transform var(--t);
}
.cta:hover { background: var(--c-gold-deep); color: #fff; transform: translateY(-1px); }
.cta .arrow { transition: transform var(--t); }
.cta:hover .arrow { transform: translateX(2px); }
.cta-ghost-dark {
  background: transparent; color: var(--c-ink);
  border: 1px solid var(--c-ink);
}
.cta-ghost-dark:hover { background: var(--c-ink); color: #fff; }

/* CTA block */
.cta-block { background: var(--c-bg-soft); text-align: center; }
.cta-block p { max-width: 600px; margin: 1rem auto 2rem; }

/* Page hero (non-home) */
.page-hero { padding: 9rem 0 4rem; background: var(--c-bg-soft); position: relative; }
.page-hero.solid { background: #fff; border-bottom: 1px solid var(--c-line); }
.page-hero.has-image {
  color: #fff;
  background-color: #140f10;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  display: flex; align-items: center;
}
.page-hero.has-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,15,16,0.45), rgba(20,15,16,0.65));
  z-index: 1;
}
.page-hero.has-image > .container { position: relative; z-index: 2; }
.page-hero.has-image h1,
.page-hero.has-image p { color: #fff; }
.page-hero.has-image .eyebrow.no-rule { color: var(--c-gold); }

/* Agents grid */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 980px) { .agents-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .agents-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (max-width: 480px) { .agents-grid { grid-template-columns: 1fr; } }
.agent-card { display: block; }
.agent-card .frame {
  position: relative;
  aspect-ratio: 3/4; overflow: hidden; background: var(--c-bg-muted); border-radius: var(--radius); margin-bottom: 1rem;
}
.agent-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s ease; }
.agent-card:hover img { transform: scale(1.04); }

/* Bio overlay — fades in on hover with gradient over the photo */
.agent-bio-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem 1.25rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(20, 15, 16, 0.94) 0%,
    rgba(20, 15, 16, 0.82) 35%,
    rgba(20, 15, 16, 0.45) 70%,
    rgba(20, 15, 16, 0) 100%
  );
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.agent-bio-overlay p {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  letter-spacing: 0.01em;
  text-transform: none;
}
.agent-overlay-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.agent-overlay-cta .arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}
.agent-card:hover .agent-bio-overlay,
.agent-card:focus-visible .agent-bio-overlay {
  opacity: 1;
  transform: translateY(0);
}
.agent-card:hover .agent-overlay-cta .arrow { transform: translateX(3px); }
.agent-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.agent-card .agent-title { font-size: 0.875rem; color: var(--c-ink-muted); margin: 0; }

/* Footer */
.site-footer {
  background: var(--c-navy); color: #fff;
  padding: 4rem 0 2rem;
}
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.site-footer p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--c-gold); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 38px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.95rem; max-width: 320px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.5rem 0; font-size: 0.9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

/* Reveal-on-scroll — default is visible; JS adds .reveal-init to enable the hidden→show animation
   only when JS has booted. This way no-JS users (and timing edge cases) still see content. */
.reveal-init .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-init .reveal.in { opacity: 1; transform: translateY(0); }

/* Container variant */
.container.narrow { max-width: 760px; }
.lead { font-size: 1.125rem; color: var(--c-ink); line-height: 1.6; }

/* Generic eyebrow numbering */
.diff-num, .step-num {
  font-family: var(--serif); font-size: 1.5rem; color: var(--c-gold-deep); margin-bottom: 1rem;
}

/* Developments grid */
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 880px) { .dev-grid { grid-template-columns: 1fr; gap: 2rem; } }
.dev-card { display: block; }
.dev-card .frame {
  aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-muted); border-radius: var(--radius); margin-bottom: 1rem;
}
.dev-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dev-card:hover img { transform: scale(1.04); }
.dev-card .meta-row { margin-bottom: 0.5rem; }
.dev-status {
  display: inline-block; padding: 0.25rem 0.6rem; background: var(--c-gold); color: #fff;
  font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; border-radius: 2px;
}
.dev-card h3 { margin-bottom: 0.25rem; }
.dev-card .location { font-size: 0.9rem; color: var(--c-ink-muted); }

/* Differentiators */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 880px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card { padding: 2rem 1.5rem; background: var(--c-bg-soft); border-radius: var(--radius); }
.diff-card h3 { margin-bottom: 0.75rem; font-size: 1.125rem; }
.diff-card p { font-size: 0.95rem; }

/* Testimonials */
.testimonials { background: var(--c-bg-soft); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--c-line);
}
.testimonial-card blockquote {
  margin: 0 0 1rem; font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; color: var(--c-ink); font-style: italic;
}
.testimonial-card figcaption { font-size: 0.9rem; color: var(--c-ink-soft); }
.caption-meta { color: var(--c-ink-muted); font-size: 0.85rem; }

/* About */
.about-story, .about-mission { padding: 4rem 0; }
.about-mission { background: var(--c-bg-soft); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 2rem; background: var(--c-bg-soft); border-radius: var(--radius); }

/* Sell process */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 480px)  { .process-grid { grid-template-columns: 1fr; } }
.process-step { padding: 1.5rem; }
.process-step h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.process-step p { font-size: 0.9rem; }

/* Careers perks + positions */
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 880px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .perks-grid { grid-template-columns: 1fr; } }
.perk-card { padding: 1.5rem 0; }
.perk-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }

.positions-list { display: flex; flex-direction: column; gap: 1rem; }
.position-card {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.75rem 2rem; background: var(--c-bg-soft); border-radius: var(--radius);
}
.position-card h3 { margin-bottom: 0.25rem; }
.position-meta { font-size: 0.85rem; color: var(--c-ink-muted); display: block; margin-bottom: 0.5rem; }
.position-card p { margin: 0; }
@media (max-width: 720px) { .position-card { flex-direction: column; align-items: stretch; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-side h3 { margin-bottom: 0.75rem; margin-top: 1.5rem; font-size: 1rem; }
.contact-side h3:first-of-type { margin-top: 0; }
.office-card { padding: 1rem 0; border-bottom: 1px solid var(--c-line); font-size: 0.95rem; line-height: 1.6; }
.office-card:last-child { border-bottom: 0; }

/* FAQs */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--c-bg-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--c-ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; float: right; font-size: 1.25rem; color: var(--c-gold-deep);
  transition: transform var(--t);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 1rem 0 0; font-size: 0.95rem; }

/* Lead form */
.lead-form-wrap h2 { margin-bottom: 0.75rem; }
.form-subhead { color: var(--c-ink-soft); margin-bottom: 2rem; }
.lead-form { display: flex; flex-direction: column; gap: 1.25rem; }
.lead-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--c-ink); }
.lead-form label span { letter-spacing: 0.04em; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 0.75rem 0.9rem; border: 1px solid var(--c-line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--c-ink);
  outline: 0; transition: border-color var(--t);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--c-gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.lead-form button { align-self: start; }
.form-note { font-size: 0.85rem; color: var(--c-ink-muted); margin: 0; }

/* Agent single */
.agent-single { padding-top: 6rem; }
.agent-single-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
@media (max-width: 880px) { .agent-single-grid { grid-template-columns: 1fr; gap: 2rem; } }
.agent-single-photo {
  aspect-ratio: 3/4; background: var(--c-bg-muted); border-radius: var(--radius); overflow: hidden;
}
.agent-single-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; padding: 1.5rem 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.agent-stats .stat-value { font-size: 1.5rem; }
.agent-stats .stat-label { font-size: 0.75rem; }
.agent-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.tag { display: inline-block; padding: 0.35rem 0.75rem; background: var(--c-bg-soft); color: var(--c-ink-soft); font-size: 0.8rem; border-radius: 2px; letter-spacing: 0.04em; }
.agent-contact-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.agent-social { margin-top: 1.5rem; display: flex; gap: 1rem; font-size: 0.9rem; }
.agent-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--c-gold); color: #fff; font-family: var(--serif); font-size: 4rem;
}
.agent-placeholder.large { font-size: 8rem; }

/* IDX page */
.idx-page { padding: 3rem 0 5rem; min-height: 60vh; }

/* Legal pages */
.legal { padding: 3rem 0 5rem; }
.legal h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.25rem; }

/* Section head share */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: start; } }

/* Featured listings + IDX slot polish */
.featured-listings { padding: 5rem 0; }
/* ===== Teams section on /agents ===== */
.teams-page{padding:5rem 0 3rem;background:#fafaf7;}
/* Override site-wide .section-head flex layout for this section only */
.teams-page .section-head{display:block !important;margin-bottom:2.5rem;max-width:none;}
.teams-page .section-head .eyebrow{display:inline-block;margin-bottom:.5rem;}
.teams-page .section-head h2{margin-bottom:.75rem;}
.teams-page .section-head p{color:var(--muted);max-width:640px;margin:0;}

.teams-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:2rem;}
.team-link-card{
  display:grid;grid-template-columns:auto 1fr;gap:2rem;align-items:center;
  background:#fff;padding:2rem;border:1px solid var(--c-line);border-radius:2px;
  text-decoration:none;color:var(--dark);
  transition:transform .25s,box-shadow .25s,border-color .25s;
}
.team-link-card:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  border-color:var(--gold);
}
.team-link-photos{
  position:relative;width:160px;height:100px;flex-shrink:0;
}
.team-link-photos img{
  position:absolute;top:5px;width:90px;height:90px;border-radius:50%;
  object-fit:cover;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.team-link-photos img:first-child{left:0;z-index:2;}
.team-link-photos img:last-child{left:65px;z-index:1;}
.team-link-body h3{
  font-family:'Cinzel',serif;font-size:1.5rem;font-weight:500;letter-spacing:.04em;
  margin:0 0 .25rem;
}
.team-link-members{
  font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold);font-weight:600;margin:0 0 1rem;
}
.team-link-bio{
  color:var(--muted);font-size:.95rem;margin:0 0 1rem;line-height:1.55;
}
.team-link-cta{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.85rem;font-weight:600;letter-spacing:.05em;
  color:var(--gold);transition:gap .2s;
}
.team-link-card:hover .team-link-cta{gap:.7rem;}
@media (max-width:560px){
  .teams-grid{grid-template-columns:1fr;}
  .team-link-card{grid-template-columns:1fr;text-align:center;padding:1.5rem;}
  .team-link-photos{margin:0 auto;}
}

/* ===== /agents tabbed view ===== */
.view-tabs{
  display:flex;justify-content:center;gap:0;
  border-bottom:1px solid var(--c-line);
  margin-bottom:3rem;
}
.view-tab{
  background:transparent;border:none;cursor:pointer;
  padding:1rem 2rem;
  font-family:'Mulish',sans-serif;
  font-size:.8rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--muted);
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  transition:color .2s,border-color .2s;
}
.view-tab:hover{color:var(--dark);}
.view-tab.active{color:var(--dark);border-bottom-color:var(--gold);}
.view-tab:focus{outline:none;}
.view-tab:focus-visible{outline:2px solid var(--gold);outline-offset:4px;}
.view-panel[hidden]{display:none;}
.view-panel .teams-grid{max-width:760px;margin:0 auto;}
