/* ===================================================================
   CARTFIT.AI · team.css
   section 03 — founder / team
   load order matters — see index.html
   =================================================================== */

/* =================================================================
   03 / TEAM
   ================================================================= */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-1);
}
.tm-member {
  padding: 48px 36px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tm-photo {
  position: relative;
  width: 70%;
  aspect-ratio: 3/4;
  margin-bottom: 36px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  overflow: hidden;
  flex-shrink: 0;
}
.tm-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15) contrast(1.05);
  display: block;
}
.tm-photo__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.tm-photo__cross { position: absolute; inset: 0; pointer-events: none; }
.tm-photo__cross::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: #161616;
}
.tm-photo__cross::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: #161616;
}
.tm-photo__label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.24em;
  color: #222;
  position: relative; z-index: 1;
}
.tm-corner {
  position: absolute;
  width: 8px; height: 8px;
  pointer-events: none; z-index: 2;
}
.tm-corner.c-tl { top: 7px; left: 7px; border-top: 1px solid var(--line-3); border-left: 1px solid var(--line-3); }
.tm-corner.c-tr { top: 7px; right: 7px; border-top: 1px solid var(--line-3); border-right: 1px solid var(--line-3); }
.tm-corner.c-bl { bottom: 7px; left: 7px; border-bottom: 1px solid var(--line-3); border-left: 1px solid var(--line-3); }
.tm-corner.c-br { bottom: 7px; right: 7px; border-bottom: 1px solid var(--line-3); border-right: 1px solid var(--line-3); }
.tm-photo__scan {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,255,0,.2), transparent);
  animation: tmscan 6s ease-in-out infinite;
  pointer-events: none; z-index: 3;
}
@keyframes tmscan {
  0%   { top: 8%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}
.tm-photo__tag {
  position: absolute; bottom: 8px; left: 10px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em;
  color: #2A2A2A; z-index: 4;
}
.tm-role {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 14px;
}
.tm-name-jp {
  font-family: var(--font-jp);
  font-weight: 300; font-size: 21px; letter-spacing: 0.1em;
  color: var(--fg-0); line-height: 1; margin-bottom: 7px;
}
.tm-name-en {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.24em;
  color: var(--fg-3); margin-bottom: 28px;
}
.tm-sep { width: 24px; height: 1px; background: var(--line-2); margin: 0 auto 24px; }
.tm-meta { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; width: 100%; }
.tm-meta-row {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.1em;
  color: var(--fg-3); text-align: center;
}
.tm-kicker {
  font-family: var(--font-jp);
  font-weight: 300; font-size: 11px; letter-spacing: 0.04em;
  color: #828282; line-height: 1.9;
  padding-top: 18px; border-top: 1px solid #0D0D0D;
  margin-top: auto; width: 100%;
}
.tm-footer {
  margin-top: 56px; padding-top: 20px;
  border-top: 1px solid var(--line-1);
  display: flex; justify-content: space-between;
}

/* =================================================================
   FOUNDER — single member layout (photo left / bio right)
   ================================================================= */
.tm-grid--single {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 0 0 120px; /* shifted right by half photo width */
  border-top: 1px solid var(--line-1);
}
.tm-grid--single .tm-member {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 44px;
  padding: 48px 0;
}
.tm-grid--single .tm-photo {
  width: 240px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.tm-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.tm-grid--single .tm-sep { margin: 4px 0 22px; }
.tm-bio {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  line-height: 1.9;
  color: #A6A6A6;
  margin: 0;
  text-wrap: pretty;
}
.tm-bio + .tm-bio { margin-top: 15px; }

/* photo vignette */
.tm-photo__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none; z-index: 2;
}

/* ── mobile (≤768) ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .tm-grid--single { max-width: 320px; margin: 0 auto; }
  .tm-grid--single .tm-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 40px 28px;
  }
  .tm-grid--single .tm-photo { width: 70%; margin-bottom: 32px; }
  .tm-body { align-items: center; }
  .tm-bio { text-align: left; font-size: 12px; }
  .tm-name-jp { font-size: 18px; }
}

