/* ============================================================
   COMPONENTS, buttons, chips, logo, video plate, hairline rows
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn__arrow {
  width: 14px; height: 14px;
  flex: none;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary:hover { --btn-bg: #26282C; --btn-bd: #26282C; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--sm { height: 40px; padding: 0 18px; font-size: var(--fs-xs); }
.btn--lg { height: 56px; padding: 0 30px; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* On dark surfaces */
.section--dark .btn--primary,
.on-dark .btn--primary { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.section--dark .btn--primary:hover,
.on-dark .btn--primary:hover { --btn-bg: #FFFFFF; --btn-bd: #FFFFFF; }
.section--dark .btn--ghost,
.on-dark .btn--ghost { --btn-fg: var(--on-dark); --btn-bd: var(--line-dark-2); }
.section--dark .btn--ghost:hover,
.on-dark .btn--ghost:hover { --btn-bd: rgba(255,255,255,0.45); }

/* Text link with underline that draws in */
.link-u {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.link-u:hover { background-size: 100% 1px; }
.section--dark .link-u { color: var(--on-dark); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.section--dark .chip {
  border-color: var(--line-dark-2);
  background: rgba(255,255,255,0.04);
  color: var(--on-dark-2);
}
.chip--accent {
  border-color: var(--bronze-wash);
  background: var(--bronze-wash);
  color: var(--bronze);
}
.section--dark .chip--accent {
  border-color: rgba(199,164,114,0.28);
  background: var(--bronze-wash-d);
  color: var(--bronze-lite);
}
.chip__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* ---------- Logo lockup ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.logo__img {
  height: 26px;
  width: auto;
  /* Source asset is black on transparent. Invert for dark surfaces. */
}
.logo--light .logo__img { filter: invert(1) brightness(1.9); }
.logo--sm .logo__img { height: 22px; }
.logo--lg .logo__img { height: 34px; }

/* ---------- Video plate (founder + hero) ---------- */
.plate {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--line);
  isolation: isolate;
}
.section--dark .plate { background: var(--ink-2); border-color: var(--line-dark-2); }

.plate__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(150,119,75,0.10) 0%, rgba(150,119,75,0) 62%),
    linear-gradient(180deg, #EFEBE3 0%, #DFDAD1 100%);
}
.section--dark .plate__media {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(199,164,114,0.14) 0%, rgba(199,164,114,0) 60%),
    linear-gradient(180deg, #1B1D20 0%, #101113 100%);
}
.plate__media img,
.plate__media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Play control */
.play {
  position: relative;
  z-index: 2;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(11,11,12,0.86);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}
.play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), inset var(--dur) var(--ease-out);
}
.play:hover { transform: scale(1.06); background: var(--ink); }
.play:hover::after { opacity: 1; inset: -14px; }
.play svg { width: 18px; height: 18px; margin-left: 3px; }
.play--sm { width: 52px; height: 52px; }
.play--sm svg { width: 14px; height: 14px; }

.play.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.play.is-loading::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: rgba(255,255,255,0.8);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Caption bar pinned to the bottom of a plate */
.plate__bar {
  position: absolute;
  z-index: 2;
  left: 14px; right: 14px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.10);
  color: #F4F2EE;
}
.plate__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #332E27, #1A1C20);
  color: var(--bronze-lite);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.14);
}
.plate__name { font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; }
.plate__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,242,238,0.62);
  line-height: 1.4;
}
.plate__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244,242,238,0.72);
}

/* ---------- Hairline row list ---------- */
.rows { border-top: 1px solid var(--line); }
.section--dark .rows { border-top-color: var(--line-dark); }

.row {
  display: grid;
  gap: 6px 2rem;
  padding-block: clamp(1.25rem, 2.6vw, 1.85rem);
  border-bottom: 1px solid var(--line);
}
.section--dark .row { border-bottom-color: var(--line-dark); }
