/* ==========================================================================
   LUMINA — team.css
   The roster on team.html.

   This file is deliberately thin. The team card IS the property card:
   team.html loads css/property-ui.css and builds each person with the
   same .prop-float → .depth → .lev → .card shell, the same reveal, the
   same levitation, the same pointer-tracked specular highlight and the
   same .kicker / h3 type. Everything here is the small amount that is
   genuinely person-shaped rather than property-shaped.

   An earlier version of this page had its own limestone-and-raking-light
   language borrowed from the printed cards. It was handsome on its own
   and read as a different website the moment you arrived from anywhere
   else, which is the thing being fixed.

   Tokens come from property-ui.css, which scopes them under
   .grid-props / .prop-float. Sections outside a card need their own
   copy — that is what .tm-scope is for.
   ========================================================================== */

.tm-scope {
  --lum-ink: #05070B;
  --lum-navy: #0B1018;
  --lum-navy-2: #121A24;
  --lum-navy-3: #1A2431;
  --lum-cream: #F7F2E9;
  --lum-gold: #FFB25A;
  --lum-gold-lt: #FFE0B0;
  --lum-c-70: rgba(247, 242, 233, .72);
  --lum-c-52: rgba(247, 242, 233, .54);
  --lum-c-38: rgba(247, 242, 233, .40);
  --lum-hair: rgba(247, 242, 233, .11);
  --lum-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --lum-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lum-ease: cubic-bezier(.22, .68, .16, 1);
  --lum-r: 18px;
}

/* ---- SECTION SHELLS ---- */

.tm-how,
.tm {
  background: var(--lum-ink);
  position: relative;
}

.tm-how { padding: 92px 0 78px; }
.tm { padding: 88px 0 104px; overflow: hidden; }

/* The same warm bloom the landing page puts behind its panels. */
.tm::before {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  width: 1000px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 178, 90, .09) 0%, transparent 66%);
  pointer-events: none;
}

.tm-inner { position: relative; z-index: 1; }

.tm-sec-head h2 {
  font-family: var(--lum-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 400;
  color: var(--lum-cream);
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.tm-sec-head p {
  font-family: var(--lum-sans);
  color: var(--lum-c-52);
  font-size: .98rem;
  line-height: 1.92;
  max-width: 640px;
  margin: 0;
}

/* ---- HOW WE WORK ---- */

.tm-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--lum-hair);
  border: 1px solid var(--lum-hair);
  border-radius: var(--lum-r);
  overflow: hidden;
}

.tm-principle {
  position: relative;
  background: var(--lum-navy);
  padding: 36px 30px 34px;
  transition: background-color .6s var(--lum-ease);
}

.tm-principle::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 178, 90, .10), transparent 70%);
  transition: opacity .6s var(--lum-ease);
}

.tm-principle:hover::before { opacity: 1; }

.tm-principle-n {
  display: block;
  font-family: var(--lum-display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--lum-gold);
  margin-bottom: 18px;
}

.tm-principle h3 {
  position: relative;
  font-family: var(--lum-display);
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--lum-cream);
  margin: 0 0 11px;
  line-height: 1.25;
}

.tm-principle p {
  position: relative;
  font-family: var(--lum-sans);
  font-size: .88rem;
  line-height: 1.85;
  color: var(--lum-c-52);
  margin: 0;
}

/* ---- TIERS ---- */

.tm-tier { margin-top: 54px; }
.tm-tier:first-of-type { margin-top: 42px; }

.tm-tier-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.tm-tier-head h3 {
  flex-shrink: 0;
  font-family: var(--lum-sans);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lum-gold);
  margin: 0;
}

.tm-tier-head span {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 178, 90, .34), transparent);
}

/* ---- THE PLATE ----
   No portraits exist, and stock faces under real names are not an
   option. This reuses .card-media.no-photo — the site's own honest
   empty-frame treatment, already used for listings without photography
   — with the monogram set in it. Shorter than a property's 4/3 cover. */

.prop-float .card-media.tm-plate {
  aspect-ratio: 16 / 6.5;
  display: grid;
  place-items: center;
}

.tm-mono {
  position: relative;
  z-index: 2;
  font-family: var(--lum-display);
  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: .04em;
  color: rgba(247, 242, 233, .13);
  transition: color .7s var(--lum-ease), transform .8s var(--lum-ease);
}

.prop-float .card:hover .tm-mono {
  color: rgba(255, 178, 90, .34);
  transform: translateY(-2px) scale(1.04);
}

.tm-num {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  font-family: var(--lum-sans);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lum-c-38);
  transition: color .5s var(--lum-ease);
}

.prop-float .card:hover .tm-num { color: var(--lum-gold); }

/* ---- CARD BODY ----
   .kicker and h3 come straight from property-ui.css, so the role and
   name match a listing's area-kicker and title exactly. */

.tm-rule {
  height: 1px;
  margin: 2px 0 0;
  background: linear-gradient(90deg, var(--lum-gold), rgba(255, 178, 90, .05));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--lum-ease);
}

.prop-float .card:hover .tm-rule,
.prop-float .card:focus-within .tm-rule { transform: scaleX(1); }

.tm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}

.tm-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--lum-hair);
  border-radius: 999px;
  font-family: var(--lum-sans);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lum-c-52);
  text-decoration: none;
  transition: color .3s var(--lum-ease), border-color .3s var(--lum-ease),
              background-color .3s var(--lum-ease), transform .3s var(--lum-ease);
}

.tm-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-link:hover {
  color: #0A0E14;
  background: var(--lum-gold);
  border-color: var(--lum-gold);
  transform: translateY(-1px);
}

.tm-link:focus-visible {
  outline: 2px solid var(--lum-gold);
  outline-offset: 2px;
}

/* The QR that opens this person's card on the site. */
.tm-link--qr {
  border-color: rgba(255, 178, 90, .34);
  color: var(--lum-gold);
}

/* ---- ARRIVED FROM A QR ----
   A scanned card lands on team.html#<slug>. The ring says "this one",
   then gets out of the way. */
.prop-float.tm-arrived .card {
  border-color: rgba(255, 178, 90, .55);
  box-shadow: var(--lum-shadow-lift), 0 0 74px -18px rgba(255, 178, 90, .5);
}

.prop-float.tm-arrived .tm-rule { transform: scaleX(1); }

/* ---- CLOSING ---- */

.tm-close {
  position: relative;
  border: 1px solid var(--lum-hair);
  border-radius: var(--lum-r);
  background: linear-gradient(150deg, var(--lum-navy-2), var(--lum-navy) 74%);
  box-shadow: 0 42px 84px -30px rgba(0, 0, 0, .9);
  padding: 48px 40px;
  margin-top: 62px;
  text-align: center;
}

.tm-close h3 {
  font-family: var(--lum-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 400;
  color: var(--lum-cream);
  margin: 0 0 12px;
}

.tm-close p {
  font-family: var(--lum-sans);
  font-size: .9rem;
  line-height: 1.85;
  color: var(--lum-c-52);
  max-width: 560px;
  margin: 0 auto 26px;
}

.tm-close .btn-gold {
  background: var(--lum-gold);
  border-color: var(--lum-gold);
  color: #0A0E14;
  border-radius: 999px;
  font-family: var(--lum-sans);
  letter-spacing: .18em;
  transition: background .4s var(--lum-ease), transform .3s var(--lum-ease);
}

.tm-close .btn-gold:hover {
  background: var(--lum-gold-lt);
  border-color: var(--lum-gold-lt);
  transform: translateY(-2px);
}

/* ---- WHATSAPP FLOAT ----
   The pill was only ever declared inside listings.html's inline
   <style>, so every other page using this markup fell back to the round
   green base button with its label overflowing. It belongs in style.css
   eventually, next to the base .whatsapp-float. */
.whatsapp-float.advisor-float {
  width: auto;
  height: 52px;
  padding: 0 18px;
  gap: 10px;
  border-radius: 999px;
  background: #FFB25A;
  color: #0A0E14;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .45);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.22, .68, .16, 1),
              background-color .3s cubic-bezier(.22, .68, .16, 1),
              box-shadow .3s cubic-bezier(.22, .68, .16, 1);
}

.whatsapp-float.advisor-float:hover {
  background: #FFE0B0;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55);
  transform: translateY(-2px);
}

.whatsapp-float.advisor-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- NARROW ---- */

@media (max-width: 860px) {
  .tm { padding: 66px 0 82px; }
  .tm-how { padding: 68px 0 60px; }
  .whatsapp-float.advisor-float {
    height: 46px;
    padding: 0 14px;
    font-size: .62rem;
  }
}

@media (max-width: 560px) {
  .tm-close { padding: 34px 24px; }
  .prop-float .card-media.tm-plate { aspect-ratio: 16 / 7.5; }
}

/* ---- REDUCED MOTION ----
   property-ui.css already stops the levitation and reveal; this covers
   what is declared in this file. */
@media (prefers-reduced-motion: reduce) {
  .tm-rule { transform: scaleX(1); }
  .tm-mono,
  .tm-num,
  .tm-link,
  .tm-principle,
  .tm-principle::before,
  .whatsapp-float.advisor-float {
    transition-duration: .01ms !important;
  }
}
