/* ==========================================================================
   Our Team — intro / person card on the left, photo wall on the right
   ========================================================================== */
.tm { position: relative; background: var(--white); padding: calc(var(--nav-height) + 8px) 0 var(--section-bottom); overflow: hidden; }
.tm-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(4,4,4,0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(4,4,4,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 70% at 15% 50%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 15% 50%, black 30%, transparent 85%);
}
.tm-inner {
  position: relative; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--container-pad);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}

/* ---- left: one box, two states (intro text / person card) ---- */
.tm-side { position: relative; display: grid; align-self: stretch; align-content: start; }
.tm-intro, .tm-person { grid-area: 1 / 1; align-self: start; transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.tm-person { opacity: 0; transform: translateY(10px); pointer-events: none; }
.tm-side.is-person .tm-intro { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.tm-side.is-person .tm-person { opacity: 1; transform: none; pointer-events: auto; }

.tm-eyebrow {
  margin: 0 0 var(--label-gap); display: flex; align-items: center; gap: 16px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--maroon);
}
.tm-eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--maroon); }
.tm-title { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.tm-sub { margin: 18px 0 0; font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 400; letter-spacing: -0.01em; color: #8a8480; }
.tm-hint { margin: 36px 0 0; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-400); }
.tm-hint::before { content: ''; width: 18px; height: 1px; background: var(--grey-400); }

/* person card */
.tm-person { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.tm-pphoto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grey-050); display: grid; place-items: center; }
.tm-pphoto::before, .tm-face::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(4,4,4,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(4,4,4,0.045) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.tm-pphoto::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--maroon); }
.tm-pphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-pphoto .tm-ini { position: relative; font-size: clamp(40px, 4vw, 64px); color: var(--maroon); }
.tm-ptext { padding-bottom: 4px; }
.tm-prole { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--maroon); }
.tm-pname { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.tm-pcontact { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(4,4,4,0.1); display: grid; gap: 10px; }
.tm-pcontact dt { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-400); }
.tm-pcontact dd { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.tm-pcontact a { color: inherit; text-decoration: underline; text-decoration-color: rgba(103,13,33,0.3); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.tm-pcontact a:hover { color: var(--maroon); text-decoration-color: var(--maroon); }
.tm-close { display: none; }

/* ---- right: photo wall ---- */
.tm-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tm-tile { position: relative; aspect-ratio: 1; cursor: pointer; outline: none; }
.tm-face { position: absolute; inset: 0; overflow: hidden; background: var(--grey-050); display: grid; place-items: center; transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease; }
.tm-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-ini { position: relative; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; color: var(--grey-400); transition: color 0.25s ease; }
.tm-face .tm-ini { font-size: clamp(16px, 1.6vw, 24px); }
.tm-tile::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--maroon); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.tm-tile.is-on::after, .tm-tile:focus-visible::after { opacity: 1; }
.tm-tile.is-on .tm-ini { color: var(--maroon); }
.tm-wall.is-active .tm-tile:not(.is-on) .tm-face { opacity: 0.55; }

@media (min-width: 861px) { .tm { padding: var(--section-top) 0 var(--section-bottom); } }
@media (max-width: 980px) {
  .tm-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 680px) {
  .tm-eyebrow { font-size: 13px; margin-bottom: 18px; }
  .tm-hint { margin-top: 20px; }
  .tm-person { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  .tm-pphoto .tm-ini { font-size: 30px; }
  .tm-pname { font-size: 18px; padding-right: 36px; }
  .tm-prole { font-size: 10px; margin-bottom: 6px; padding-right: 36px; }
  .tm-pcontact { margin-top: 12px; padding-top: 10px; gap: 6px; }
  .tm-pcontact dd { font-size: 13px; }
  .tm-close {
    display: grid; place-items: center; position: absolute; top: 0; right: 0; width: 32px; height: 32px; padding: 0;
    background: none; border: 1px solid rgba(4,4,4,0.14); color: var(--black); cursor: pointer;
  }
  .tm-close svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.6; fill: none; }
  .tm-wall { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .tm-intro, .tm-person, .tm-face { transition: none; } }
