/* 1448 — Team / Founders (editorial extension) */

.landing-editorial.team-page {
  --tm-accent: var(--green, #354b32);
  --tm-accent-soft: rgba(53, 75, 50, 0.08);
}

/* —— Hero —— */
.tm-hero {
  padding: clamp(72px, 10vw, 120px) var(--ed-gutter) clamp(56px, 8vw, 88px);
  border-bottom: 1px solid var(--ed-line);
}

.tm-hero__inner {
  max-width: 920px;
}

.tm-hero__eyebrow {
  margin: 0 0 28px;
  font-family: var(--ed-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

.tm-hero h1 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ed-ink);
  max-width: 14ch;
}

.tm-hero__lede {
  margin: clamp(24px, 3vw, 36px) 0 0;
  max-width: 42ch;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
  color: var(--ed-muted);
}

/* —— Founding idea —— */
.tm-idea {
  padding: clamp(56px, 8vw, 96px) var(--ed-gutter);
  border-bottom: 1px solid var(--ed-line);
}

.tm-idea__inner {
  max-width: 680px;
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 28px);
  border-left: 2px solid var(--tm-accent);
}

.tm-idea__label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-muted);
}

.tm-idea h2 {
  margin: 0 0 20px;
  font-family: var(--ed-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tm-idea p {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ed-muted);
}

/* —— Founders —— */
.tm-founders {
  border-bottom: 1px solid var(--ed-line);
}

.tm-founder {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding: clamp(64px, 9vw, 112px) var(--ed-gutter);
  border-bottom: 1px solid var(--ed-line);
}

.tm-founder:last-child {
  border-bottom: none;
}

.tm-founder--lead {
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  background: linear-gradient(180deg, var(--ed-paper) 0%, var(--ed-cream) 100%);
}

.tm-founder--alt {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 38%);
}

.tm-founder--alt .tm-founder__visual {
  order: 2;
}

.tm-founder--alt .tm-founder__copy {
  order: 1;
}

.tm-founder--center {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.tm-founder__index {
  display: block;
  margin: 0 0 20px;
  font-family: var(--ed-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ed-muted);
}

.tm-founder__index span {
  color: var(--tm-accent);
}

.tm-founder h3 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tm-founder__role {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tm-accent);
}

.tm-founder__discipline {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ed-muted);
}

.tm-founder__bio-wrap {
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 52ch;
}

.tm-founder__bio {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ed-muted);
}

.tm-founder--lead .tm-founder__bio {
  font-size: 18px;
}

.tm-founder__bio-full {
  margin-top: 16px;
}

.tm-founder__bio-full p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ed-muted);
}

.tm-founder__bio-full p:last-child {
  margin-bottom: 0;
}

.tm-founder__bio-toggle {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--ed-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tm-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-founder__bio-toggle:hover {
  color: var(--ed-ink);
}

.tm-founder__bio-toggle:focus-visible {
  outline: 2px solid var(--tm-accent);
  outline-offset: 3px;
}

/* Portrait placeholders (initials only) */
.tm-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  width: 100%;
  background: var(--ed-cream);
  border: 1px solid var(--ed-line);
  overflow: hidden;
}

/* Real photographs — natural aspect ratio, no crop frame */
.tm-portrait--photo {
  aspect-ratio: auto;
  max-width: min(440px, 100%);
  width: 100%;
  background: transparent;
  border: none;
  overflow: visible;
}

.tm-founder--center .tm-portrait--photo {
  max-width: min(520px, 100%);
  margin: 0 auto;
}

.tm-portrait--photo img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.tm-portrait__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ed-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(42, 32, 24, 0.12);
  user-select: none;
  pointer-events: none;
}

.tm-portrait__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-muted);
  background: rgba(255, 253, 248, 0.92);
  border-top: 1px solid var(--ed-line);
}

.tm-portrait:not(.tm-portrait--photo) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.tm-portrait:has(img)::before,
.tm-portrait:has(img)::after {
  display: none;
}

/* Discipline motifs (CSS only) */
.tm-portrait--build::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53, 75, 50, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 75, 50, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.tm-portrait--build::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 12%;
  width: 48%;
  height: 1px;
  background: rgba(53, 75, 50, 0.2);
  pointer-events: none;
}

.tm-portrait--protect::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(53, 75, 50, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.tm-portrait--protect::after {
  content: "";
  position: absolute;
  inset: 32%;
  border: 1px solid rgba(53, 75, 50, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.tm-portrait--experience::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 10%;
  right: 10%;
  height: 12%;
  border: 1px solid rgba(53, 75, 50, 0.12);
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}

.tm-portrait--experience::after {
  content: "";
  position: absolute;
  top: 28%;
  left: 10%;
  right: 10%;
  bottom: 16%;
  border: 1px solid rgba(53, 75, 50, 0.08);
  border-top: none;
  pointer-events: none;
}

/* —— Disciplines flow —— */
.tm-flow {
  padding: clamp(72px, 10vw, 120px) var(--ed-gutter);
  background: var(--ed-ink);
  color: var(--ed-paper);
}

.tm-flow__header {
  max-width: 520px;
  margin-bottom: clamp(48px, 7vw, 72px);
}

.tm-flow__header p {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.55);
}

.tm-flow__header h2 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tm-flow__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
}

.tm-flow__step {
  position: relative;
  padding: 0 0 clamp(36px, 5vw, 48px) clamp(36px, 5vw, 48px);
  border-left: 1px solid rgba(255, 253, 248, 0.2);
}

.tm-flow__step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.tm-flow__step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ed-paper);
}

.tm-flow__step--final::before {
  background: var(--yellow, #f6e26f);
  box-shadow: 0 0 0 4px rgba(246, 226, 111, 0.25);
}

.tm-flow__verb {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.5);
}

.tm-flow__step h3 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.tm-flow__step p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 253, 248, 0.68);
  max-width: 36ch;
}

.tm-flow__step--final h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  color: var(--yellow, #f6e26f);
}

/* —— Closing CTA —— */
.tm-close {
  padding: clamp(72px, 10vw, 112px) var(--ed-gutter);
  border-top: 1px solid var(--ed-line);
  text-align: center;
}

.tm-close h2 {
  margin: 0;
  font-family: var(--ed-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tm-close p {
  margin: 20px auto 0;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ed-muted);
}

.tm-close__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* —— Accessibility —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .tm-founder .tm-portrait {
    transition: transform 0.6s ease;
  }

  .tm-founder:hover .tm-portrait {
    transform: translateY(-4px);
  }

  .landing-editorial.team-page .reveal:nth-child(2) {
    transition-delay: 0.06s;
  }

  .landing-editorial.team-page .reveal:nth-child(3) {
    transition-delay: 0.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-founder .tm-portrait {
    transition: none;
  }

  .tm-founder:hover .tm-portrait {
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .tm-founder--lead,
  .tm-founder--alt {
    grid-template-columns: 1fr;
  }

  .tm-founder--alt .tm-founder__visual,
  .tm-founder--alt .tm-founder__copy {
    order: unset;
  }

  .tm-portrait {
    max-width: none;
  }

  .tm-founder__bio {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .tm-hero h1 {
    max-width: none;
  }

  .tm-close__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
