/* ════════════════════════════════════════════════════════════════
   LYDIAN — Executive leadership (homepage)  ·  2026-10-15
   Editorial layout: no card boxes; portraits and text sit on the page,
   separated by thin rules. Extends .hp-section (lydian-home.css) and
   Warm Clay tokens. No JS, no new fonts.
   Order is the source order at every width:
   < 640px one column · 640–1023px two columns, the fifth profile centred on its own row ·
   ≥ 1024px Emrah | Ibrahim over Kevin | Lolita | Richard (six-track grid).
   ════════════════════════════════════════════════════════════════ */

.lyd-leadership {
  --lx-text: rgba(255, 255, 255, 0.92);
  --lx-muted: rgba(255, 255, 255, 0.62);
  --lx-rule: rgba(255, 255, 255, 0.1);
  --lx-accent: var(--brand-400, #f08a5d);
}

.lyd-leadership .hp-section-desc {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 60ch;
}

.lx-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  /* closing rule for the whole system */
  border-bottom: 1px solid var(--lx-rule);
}

@media (min-width: 640px) {
  .lx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* an odd last profile sits centred on its own row, same width as the others */
  .lx-exec:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(2rem, 5vw, 4.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .lx-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .lx-exec {
    grid-column: span 2;
  }
  /* leadership pair on the first row */
  .lx-exec:nth-child(-n + 2) {
    grid-column: span 3;
  }
  .lx-exec:last-child:nth-child(odd) {
    grid-column: span 2;
    justify-self: stretch;
    width: auto;
  }
}

.lx-exec {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--lx-rule);
}

@media (min-width: 640px) {
  .lx-exec {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lx-exec {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 1.25rem;
  }
  .lx-exec:nth-child(-n + 2) {
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 2rem;
  }
}

/* Founder: a warm rule and a slightly larger name — nothing else. */
.lx-exec--founder {
  border-top-color: var(--lx-accent);
}

.lx-photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md, 10px);
  background: #2a2420;
}

.lx-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lx-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 0.15rem;
}

.lx-name {
  margin: 0;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight, -0.02em);
  color: var(--lx-text);
  overflow-wrap: break-word;
}

.lx-exec--founder .lx-name {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
}

.lx-cred {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--lx-muted);
}

.lx-role {
  position: relative;
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lx-text);
}

.lx-role::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1.75rem;
  height: 2px;
  border-radius: 1px;
  background: var(--lx-accent);
}

.lx-function {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--lx-muted);
}

.lx-statement {
  margin: 0.9rem 0 0;
  max-width: 42ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--lx-muted);
}

.lx-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--touch-target-min, 44px);
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lx-text);
  text-decoration: none;
  border-radius: var(--radius-sm, 6px);
}

.lx-link svg:first-child {
  color: var(--lx-muted);
}

.lx-link span {
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-fast, 150ms) var(--ease-standard, ease);
}

.lx-arrow {
  color: var(--lx-accent);
  transition: transform var(--motion-fast, 150ms) var(--ease-standard, ease);
}

.lx-link:hover span {
  border-bottom-color: var(--lx-accent);
}

.lx-link:hover .lx-arrow {
  transform: translate(2px, -2px);
}

.lx-link:focus-visible {
  outline: 2px solid var(--lx-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lx-link span,
  .lx-arrow {
    transition: none;
  }
}

/* ── Light theme (same selector convention as lydian-home.css) ── */
[data-theme='light'] .lyd-leadership {
  --lx-text: #2b2a27;
  --lx-muted: #5c5a55;
  --lx-rule: rgba(53, 53, 50, 0.14);
  /* brand-700 on the light ground → AA for the accent rule and focus ring */
  --lx-accent: #8f3d21;
}

/* theme.css makes every light-theme <section> transparent (!important). The hero is
   position:fixed underneath, so this section needs its own opaque ground — same
   colour as the light page body (measured #f5f5f7), scoped to #leadership only. */
[data-theme='light'] #leadership.lyd-leadership {
  background: #f5f5f7 !important;
}
