/* Team pages (/team and /team/<slug>). Loads after /site.css and only adds
   what these pages need: the profile hero, in page tabs, about + side card,
   service area map, listing grids with a still skeleton when empty, reviews
   and the agent cards. Generated by .claude/redesign/team/build_team.py. */

/* Visually hidden, read by screen readers (unique link names). */
.tm-vh{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }

/* ---------- Hero ---------- */
.tm-hero .hero-card{ height:auto; min-height:0; background:var(--navy-grad); }
.tm-hero-glow{ position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(60% 80% at 85% 0%, rgba(201,164,92,.18) 0%, rgba(201,164,92,0) 60%),
             radial-gradient(50% 70% at 0% 100%, rgba(22,57,106,.9) 0%, rgba(22,57,106,0) 70%); }

/* Team hero: centred */
.tm-hero-team .hero-card{ padding-top:calc(var(--hd-h) + 72px); padding-bottom:80px; }
.tm-team-title{ margin-top:20px; font-size:clamp(2.8rem, 6vw, 5.4rem); font-weight:600; letter-spacing:-0.04em; line-height:.98; }
.tm-faces{ display:flex; justify-content:center; margin-top:28px; }
.tm-face{ width:64px; height:64px; border-radius:50%; overflow:hidden; border:3px solid #0B2446; margin-left:-12px; background:var(--navy-3); flex:none; }
.tm-face:first-child{ margin-left:0; }
.tm-face img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.tm-face.tm-initials{ display:grid; place-items:center; font-size:20px; }

/* Agent hero: photo + identity, facts strip under */
.tm-hero-agent .hero-card{ display:block; text-align:left; padding:calc(var(--hd-h) + 40px) 0 clamp(36px, 4vw, 52px); }
.tm-hero-in{ position:relative; }
.tm-profile-id .tm-crumbs{ margin-bottom:18px; }
/* Photo behind the left of the hero, fading into the navy to the right */
.tm-hero-bg{ position:absolute; inset:0 auto 0 0; width:52%; pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg, #000 0%, #000 52%, rgba(0,0,0,.55) 76%, transparent 100%);
          mask-image:linear-gradient(90deg, #000 0%, #000 52%, rgba(0,0,0,.55) 76%, transparent 100%); }
.tm-hero-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(7,25,49,.75) 0%, rgba(7,25,49,0) 34%), linear-gradient(180deg, rgba(7,25,49,.45) 0%, rgba(7,25,49,0) 22%); }
.tm-bg-photo, .tm-bg-photo img{ display:block; width:100%; height:100%; }
.tm-bg-photo img{ object-fit:cover; object-position:50% 24%; }
.tm-profile.has-bg{ grid-template-columns:1fr; padding-left:45%; min-height:min(46vw, 470px); margin-top:0; }
.tm-crumbs{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:14px; color:rgba(255,255,255,.72); }
.tm-crumbs a{ min-height:32px; display:inline-flex; align-items:center; }
.tm-crumbs a:hover{ color:#fff; }
.tm-crumbs i{ font-size:12px; opacity:.6; }
.tm-crumbs span{ color:#fff; }
.tm-profile{ display:grid; grid-template-columns:minmax(220px, 300px) 1fr; gap:clamp(28px, 4vw, 56px); align-items:center; margin-top:28px; }
.tm-photo{ display:block; aspect-ratio:1; border-radius:var(--r-card); overflow:hidden; background:var(--navy-3); box-shadow:0 30px 60px -30px rgba(0,0,0,.6); }
.tm-photo img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.tm-initials{ display:grid; place-items:center; background:linear-gradient(140deg, #1E4B85 0%, #0B2446 70%); color:var(--accent-tint); font-weight:600; letter-spacing:-0.02em; }
.tm-photo.tm-initials{ font-size:clamp(64px, 7vw, 104px); border:1px solid rgba(255,255,255,.14); }
.tm-title{ display:inline-flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:2px 8px; min-height:34px; padding:5px 16px; border-radius:17px; font-size:13.5px; font-weight:600;
  background:rgba(201,164,92,.16); color:var(--accent-tint); border:1px solid rgba(232,199,126,.3); }
.tm-name{ margin-top:16px; font-size:clamp(2.5rem, 5vw, 4.4rem); font-weight:600; letter-spacing:-0.04em; line-height:1; }
.tm-sub{ margin-top:14px; font-size:clamp(16px, 1.3vw, 18.5px); line-height:1.55; color:rgba(255,255,255,.88); max-width:52ch; }
.tm-quick{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.tm-q{ display:inline-flex; align-items:center; gap:12px; min-height:56px; padding:8px 18px 8px 8px; border-radius:16px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); transition:background-color .2s ease, border-color .2s ease; min-width:0; }
.tm-q:hover{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.3); }
.tm-q > i{ width:40px; height:40px; border-radius:12px; background:var(--accent); color:var(--ink); display:grid; place-items:center; font-size:18px; flex:none; }
.tm-q span{ display:flex; flex-direction:column; font-size:15px; font-weight:500; min-width:0; overflow-wrap:anywhere; }
.tm-q small{ font-size:12px; font-weight:500; opacity:.7; letter-spacing:.02em; }
.tm-hero-ctas{ display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.tm-facts{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:1px; margin:clamp(32px, 4vw, 48px) 0 0; border-radius:var(--r-card); overflow:hidden; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.14); }
.tm-facts > div{ padding:18px 20px; background:rgba(7,25,49,.55); min-width:0; }
.tm-facts dt{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-tint); }
.tm-facts dt i{ font-size:16px; }
.tm-facts dd{ margin:8px 0 0; font-size:15.5px; line-height:1.45; color:#fff; overflow-wrap:anywhere; }

[id="about"], [id="story"], [id="areas"], [id="listings"], [id="sold"], [id="reviews"], [id="contact"], [id="team"], [id="agents"]{ scroll-margin-top:calc(var(--hd-h) + 24px); }

/* ---------- About ---------- */
.tm-about{ display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(300px, 1fr); gap:clamp(28px, 4vw, 64px); align-items:start; }
.tm-about .h2{ font-size:clamp(1.7rem, 2.6vw, 2.5rem); line-height:1.15; max-width:28ch; }
.tm-bio p{ margin-top:18px; font-size:16.5px; line-height:1.7; color:var(--muted); max-width:62ch; }
.tm-bio p:first-child{ margin-top:24px; }
.tm-soon{ display:flex; gap:12px; align-items:flex-start; padding:18px 20px; border-radius:var(--r-card); background:var(--panel); color:var(--ink-2) !important; }
.tm-soon i{ font-size:22px; color:var(--accent-text); flex:none; margin-top:2px; }
.tm-motto{ margin:30px 0 0; }
.tm-motto::before{ content:""; display:block; width:40px; height:2px; border-radius:2px; background:var(--accent); margin-bottom:16px; }
.tm-motto p{ font-size:clamp(19px, 1.6vw, 22px); font-weight:500; letter-spacing:-0.02em; line-height:1.35; }
.tm-creds{ display:flex; flex-wrap:wrap; gap:8px; margin-top:26px; }
.tm-creds li{ display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:6px 16px 6px 12px; border-radius:999px; border:1px solid var(--line-2); font-size:14px; color:var(--ink-2); line-height:1.3; }
.tm-creds i{ font-size:18px; color:var(--accent-text); }
.tm-side{ position:sticky; top:calc(var(--hd-h) + 80px); background:var(--panel); border-radius:var(--r-card); padding:10px; display:grid; gap:10px; }
.tm-side-block{ background:#fff; border-radius:var(--r-img); padding:18px 20px; }
.tm-side-block h3{ font-size:12.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.tm-specs{ display:grid; gap:9px; }
.tm-specs li{ display:flex; gap:10px; align-items:flex-start; font-size:15px; line-height:1.4; }
.tm-specs i{ font-size:18px; color:var(--accent-text); flex:none; margin-top:1px; }
.tm-langs{ display:flex; flex-wrap:wrap; gap:6px; }
.tm-langs span{ display:inline-flex; align-items:center; height:32px; padding:0 14px; border-radius:999px; background:var(--panel); font-size:14px; font-weight:500; }
.tm-side-contact{ display:grid; gap:8px; }
.tm-side-contact .tm-q{ background:var(--panel); border-color:transparent; min-height:52px; padding:6px 14px 6px 6px; }
.tm-side-contact .tm-q:hover{ background:var(--panel-2); }
.tm-side-contact .tm-q > i{ background:var(--navy-grad); color:#fff; }
.tm-side-contact .tm-q span{ font-size:14.5px; }
.tm-side-cta{ width:100%; justify-content:space-between; }

/* ---------- Story ---------- */
.tm-story{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.4fr); gap:clamp(24px, 4vw, 64px); padding:clamp(28px, 4vw, 56px); border-radius:var(--r-sec); background:var(--navy-grad); color:#fff; }
.tm-story-body p{ font-size:17px; line-height:1.7; color:rgba(255,255,255,.86); }
.tm-story-body p + p{ margin-top:16px; }

/* ---------- Service areas ---------- */
.tm-areas{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr); gap:clamp(24px, 4vw, 56px); align-items:center; background:var(--panel); border-radius:var(--r-sec); padding:12px; }
.tm-areas-copy{ padding:clamp(16px, 3vw, 36px); }
.tm-area-list{ display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.tm-area{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px 0 14px; border-radius:999px; background:#fff; border:1px solid var(--line-2); font-size:14.5px; font-weight:500; }
a.tm-area:hover{ border-color:var(--ink); }
.tm-area i{ font-size:17px; color:var(--accent-text); }
.tm-map{ position:relative; min-height:380px; height:100%; border-radius:var(--r-card); overflow:hidden; background:var(--panel-2); }
.tm-map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; opacity:0; transition:opacity .5s ease; }
.tm-map.is-loaded iframe{ opacity:1; }
.tm-map-ph{ position:absolute; inset:0; display:grid; place-items:center; font-size:48px; color:var(--line-2); }

/* ---------- Listings ---------- */
.tm-count{ font-size:15px; color:var(--muted); font-weight:500; }
.tm-grid{ position:relative; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; }
.tm-lcard.is-hidden{ display:none; }
.tm-chip{ position:absolute; left:12px; top:12px; z-index:1; display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 13px 0 10px; border-radius:999px;
  background:var(--ink); color:#fff; font-size:12.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; box-shadow:0 8px 18px -8px rgba(4,13,27,.6); }
.tm-chip i{ font-size:15px; color:var(--accent-tint); }
.tm-chip.is-active{ background:#fff; color:var(--ink); }
.tm-chip.is-active i{ color:var(--accent-text); }
.tm-chip.is-soon{ background:var(--accent); color:var(--ink); }
.tm-chip.is-soon i{ color:var(--ink); }
/* Empty or failed: the skeletons stay as a still, faded backdrop and the
   message sits on top of them. */
.tm-grid[data-state="empty"] .card-sk, .tm-grid[data-state="error"] .card-sk{ opacity:.55; }
.tm-grid[data-state="empty"] .card-sk span, .tm-grid[data-state="empty"] .card-sk i,
.tm-grid[data-state="error"] .card-sk span, .tm-grid[data-state="error"] .card-sk i{ animation:none; background:var(--panel-2); }
.tm-empty{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); width:min(560px, calc(100% - 32px)); text-align:center;
  background:#fff; border-radius:var(--r-card); padding:clamp(24px, 3vw, 36px); box-shadow:0 30px 60px -30px rgba(7,25,49,.35), 0 0 0 1px rgba(7,25,49,.06); }
.tm-empty-ic{ width:56px; height:56px; border-radius:50%; background:var(--accent-soft); color:var(--accent-text); display:inline-grid; place-items:center; font-size:26px; }
.tm-empty h3, .tm-none h3{ margin-top:14px; font-size:20px; font-weight:600; letter-spacing:-0.02em; }
.tm-empty p, .tm-none p{ margin-top:8px; font-size:15.5px; line-height:1.55; color:var(--muted); }
.tm-empty-ctas{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:20px; }
.tm-more{ display:flex; justify-content:center; margin-top:28px; }

/* ---------- Reviews ---------- */
.tm-gpill{ display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:6px 16px 6px 6px; border-radius:999px; background:var(--panel); font-size:14.5px; }
.tm-gpill:hover{ background:var(--panel-2); }
.tm-gpill i{ font-size:16px; }
.tm-g{ width:36px; height:36px; border-radius:50%; background:#fff; display:grid; place-items:center; font-weight:700; color:#4285F4; }
.tm-gpill-dark{ margin-top:22px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); }
.tm-gpill-dark:hover{ background:rgba(255,255,255,.16); }
.tm-revs{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; align-items:start; }
.tm-rev{ background:var(--panel); border-radius:var(--r-card); padding:24px; }
.tm-stars{ display:flex; gap:2px; color:var(--accent); font-size:17px; }
.tm-rev blockquote{ margin:14px 0 0; font-size:15.5px; line-height:1.65; color:var(--ink-2); display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.tm-rev blockquote.is-open{ display:block; -webkit-line-clamp:unset; }
.tm-rev-more{ margin-top:8px; min-height:36px; font-size:14px; font-weight:600; color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; }
.tm-rev figcaption{ display:flex; align-items:center; gap:12px; margin-top:20px; padding-top:16px; border-top:1px solid var(--line-2); }
.tm-rev-av{ width:40px; height:40px; border-radius:50%; background:var(--navy-grad); color:#fff; display:grid; place-items:center; font-weight:600; flex:none; }
.tm-rev figcaption b{ display:block; font-size:15px; font-weight:600; }
.tm-rev figcaption small{ display:block; font-size:13px; color:var(--muted); }

/* ---------- Closing contact (photo or initials) ---------- */
.close-photo .tm-close-img{ position:absolute; inset:0; display:block; }
.close-photo .tm-close-img img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.close-photo .tm-close-img.tm-initials{ display:grid; font-size:clamp(90px, 10vw, 150px); border-radius:var(--r-card); }

/* ---------- Agent cards ---------- */
.tm-filters{ display:flex; flex-wrap:wrap; gap:10px; }
.tm-filter{ display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:500; color:var(--muted); }
.tm-filter select{ height:48px; min-width:210px; padding:0 40px 0 18px; border-radius:999px; border:1px solid var(--line-2); background:#fff; font:inherit; font-size:15px; color:var(--ink);
  -webkit-appearance:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071931' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 16px center; background-size:16px; }
.tm-filter select:focus{ outline:0; border-color:var(--accent); box-shadow:0 0 0 4px rgba(201,164,92,.28); }
.tm-cards{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
.tm-cards-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
.tm-card{ display:flex; flex-direction:column; background:var(--panel); border-radius:var(--r-card); padding:8px; transition:box-shadow .4s ease; }
.tm-card[hidden]{ display:none; }
.tm-card:hover{ box-shadow:0 22px 44px -28px rgba(7,25,49,.35); }
.tm-card-photo{ display:block; border-radius:var(--r-img); overflow:hidden; aspect-ratio:4/3.4; background:var(--panel-2); }
.tm-card-img{ display:block; width:100%; height:100%; }
.tm-card-img img{ width:100%; height:100%; object-fit:cover; object-position:50% 18%; transition:transform .9s var(--ease); }
.tm-card:hover .tm-card-img img{ transform:scale(1.04); }
.tm-card-img.tm-initials{ display:grid; font-size:clamp(56px, 5vw, 80px); }
.tm-card-body{ padding:16px 12px 8px; display:flex; flex-direction:column; flex:1; }
.tm-card-title{ font-size:13px; font-weight:600; color:var(--accent-text); }
.tm-card-name{ margin-top:6px; font-size:22px; font-weight:600; letter-spacing:-0.025em; line-height:1.2; }
.tm-card-name a:hover{ color:var(--accent-text); }
.tm-card-line{ margin-top:8px; font-size:15px; line-height:1.5; color:var(--muted); }
.tm-card-areas{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.tm-card-areas li{ display:inline-flex; align-items:center; height:30px; padding:0 12px; border-radius:999px; background:#fff; font-size:13px; font-weight:500; color:var(--ink-2); }
.tm-card-lang{ display:flex; align-items:center; gap:6px; margin-top:12px; font-size:14px; color:var(--ink-2); }
.tm-card-lang i{ font-size:17px; color:var(--muted); }
.tm-card-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:16px; }
.tm-card-body .tm-card-lang + .tm-card-foot, .tm-card-body .tm-card-areas + .tm-card-foot{ margin-top:18px; }
.tm-card-contact{ display:flex; gap:6px; }
.tm-card-ic{ width:44px; height:44px; border-radius:50%; background:#fff; display:grid; place-items:center; font-size:18px; transition:background-color .2s ease, color .2s ease; }
.tm-card-ic:hover{ background:var(--ink); color:#fff; }
.tm-none{ text-align:center; padding:40px 24px; border-radius:var(--r-card); background:var(--panel); margin-top:20px; }
.tm-none .pill{ margin-top:20px; }

/* ---------- Join ---------- */
.tm-join{ display:flex; align-items:center; justify-content:space-between; gap:24px 40px; flex-wrap:wrap; padding:clamp(28px, 4vw, 52px); border-radius:var(--r-sec); background:var(--accent-soft); }
.tm-join .lede{ max-width:56ch; }

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .tm-facts{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .tm-cards{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .tm-revs{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:1023px){
  .tm-about{ grid-template-columns:1fr; }
  .tm-side{ position:static; }
  .tm-grid, .tm-cards, .tm-cards-3{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .tm-areas, .tm-story{ grid-template-columns:1fr; }
  .tm-map{ min-height:320px; }
}
@media (max-width:760px){
  .tm-hero-team .hero-card{ padding-top:calc(var(--hd-h) + 48px); padding-bottom:56px; }
  /* site.css reorders hero parts on phones (and hides .hero-ctas, the sticky bar
     takes over): keep title, line, copy, faces, rating in reading order. */
  .tm-team-title{ order:1; } .tm-hero-team .hero-kicker{ order:2; } .tm-hero-team .hero-sub{ order:3; } .tm-faces{ order:4; } .tm-hero-team .tm-gpill{ order:5; }
  .tm-hero-agent .hero-card{ padding-top:calc(var(--hd-h) + 28px); }
  .tm-hero-agent .wrap{ padding:0; }
  .tm-profile{ grid-template-columns:1fr; gap:22px; margin-top:20px; text-align:center; justify-items:center; }
  .tm-profile-photo{ width:min(220px, 62vw); }
  .tm-profile-id{ display:flex; flex-direction:column; align-items:center; min-width:0; width:100%; }
  .tm-hero-bg{ inset:0 0 auto 0; width:100%; height:min(108vw, 440px);
    -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image:linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
  .tm-hero-bg::after{ background:linear-gradient(180deg, rgba(7,25,49,.5) 0%, rgba(7,25,49,0) 30%); }
  .tm-bg-photo img{ object-position:50% 18%; }
  .tm-profile.has-bg{ padding:min(74vw, 300px) 0 0; min-height:0; }
  .tm-quick{ flex-direction:column; width:100%; }
  .tm-q{ width:100%; }
  .tm-hero-ctas{ flex-direction:column; width:100%; }
  .tm-hero-ctas .pill{ width:100%; justify-content:space-between; }
  .tm-facts{ grid-template-columns:1fr; text-align:left; }
  .tm-crumbs{ justify-content:center; }
  .tm-grid, .tm-cards, .tm-cards-3, .tm-revs{ grid-template-columns:1fr; }
  /* Empty: one still skeleton behind the message is enough on a phone. */
  .tm-grid[data-state="empty"] .card-sk:nth-of-type(n+2), .tm-grid[data-state="error"] .card-sk:nth-of-type(n+2),
  .tm-grid[data-state="loading"] .card-sk:nth-of-type(n+2){ display:none; }
  .tm-grid[data-state="empty"], .tm-grid[data-state="error"]{ min-height:420px; }
  .tm-empty{ width:calc(100% - 24px); }
  .tm-filters, .tm-filter, .tm-filter select{ width:100%; }
  .tm-join{ text-align:left; }
  .tm-join .pill{ width:100%; justify-content:space-between; }
  .tm-faces .tm-face{ width:54px; height:54px; }
}
@media (prefers-reduced-motion: reduce){
  .tm-card-img img, .tm-map iframe{ transition:none; }
}
