/* Tenira — visual system
   Display: EB Garamond. Interface/body: Archivo.
   ------------------------------------------------ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ivory: #FAFAF7;
  --ivory-2: #F3F1EA;
  --charcoal: #2C2C2C;
  --charcoal-2: #1B1A18;
  --gold: #B8975C;
  --gold-deep: #8C6C32;
  --muted: #6B6660;
  --rule: #DCD8CE;
  --rule-dark: rgba(250, 249, 245, 0.16);

  --shell: 1200px;
  --gap: 40px;

  --serif: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background-color: var(--ivory);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--charcoal); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

img { display: block; max-width: 100%; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.shell--narrow { max-width: 900px; }

/* ---------- Type primitives ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.display-xl {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.018em;
}
.display-l {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.014em;
}
.display-m {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 19px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 46ch;
}

.rule { height: 1px; background: var(--rule); border: 0; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--charcoal);
  border-bottom: 1px solid var(--rule-dark);
}
.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
  padding: 6px 0;
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 18px; width: auto; }
.wordmark:hover { color: var(--ivory); opacity: 0.85; }

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.nav-tabs a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.72);
  padding: 4px 0 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-tabs a:hover { color: var(--ivory); }
.nav-tabs a[aria-current="page"] {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--ghost { color: var(--gold); background: transparent; }
.btn--ghost:hover { background: var(--gold-deep); color: var(--ivory); border-color: var(--gold-deep); }
.btn--solid { background: var(--gold-deep); color: var(--ivory); border-color: var(--gold-deep); }
.btn--solid:hover { background: transparent; color: var(--gold); }
.btn--lg { padding: 17px 34px; font-size: 12px; }
.btn--dark { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn--dark:hover { background: var(--gold-deep); color: var(--ivory); border-color: var(--gold-deep); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(72px, 11vh, 132px) 0 clamp(64px, 9vh, 104px);
  background: var(--ivory) url('marble-banner.png') center / cover no-repeat;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(250,249,245,0.90) 0%, rgba(250,249,245,0.72) 48%, rgba(250,249,245,0.42) 100%);
}
.hero .shell { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: end;
}
.hero h1 { margin: 26px 0 0; max-width: 15ch; }
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding-bottom: 6px;
}
.hero-aside .lede { max-width: 38ch; font-size: 17px; }
.hero-credibility {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: var(--charcoal);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 34ch;
}

/* ---------- Section frame ---------- */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.section-head h2 { margin-top: 18px; }
.section-head .lede { max-width: 50ch; }

/* ---------- Numbered module list ---------- */

.list-rows { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 38px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.row-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.row h3 { font-size: 25px; line-height: 1.22; max-width: 18ch; }
.row p { font-size: 15.5px; color: var(--muted); line-height: 1.72; max-width: 62ch; }

/* ---------- Quote band ---------- */

.band {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(76px, 9vw, 124px) 0;
}
.band a { color: var(--gold); }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 940px;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 90px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.9;
}
.band blockquote p {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ivory);
}
/* Light variant, for pages whose closing band is already dark */
.band--quiet {
  background: var(--ivory-2);
  color: var(--charcoal);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band--quiet blockquote p { color: var(--charcoal); }
.band--quiet blockquote cite { color: var(--gold-deep); }

.band blockquote cite {
  display: block;
  margin-top: 30px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Prose (continuity) ---------- */

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.prose-grid h2 { margin-top: 18px; max-width: 16ch; }
.prose p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 66ch;
}
.prose p + p { margin-top: 22px; }
.prose .pull {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal);
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  max-width: 52ch;
}

/* ---------- Trio ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.trio > div { border-top: 1px solid var(--charcoal); padding-top: 24px; }
.trio h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.trio p { font-size: 15.5px; color: var(--muted); line-height: 1.72; }

/* ---------- Steps (approach) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.step {
  background: var(--ivory);
  padding: clamp(32px, 3.4vw, 52px);
  transition: background-color 0.25s ease;
}
.step:hover { background: var(--ivory-2); }
.step .num {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 26px; margin: 22px 0 12px; }
.step p { font-size: 15.5px; color: var(--muted); line-height: 1.72; }

/* ---------- Page header (subpages) ---------- */

.page-head {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.page-head h1 { margin-top: 24px; max-width: 20ch; }
.page-head .lede { max-width: 42ch; padding-bottom: 8px; }

/* ---------- Use cases ---------- */

.case { padding: clamp(48px, 5vw, 76px) 0; border-bottom: 1px solid var(--rule); }
.case:last-of-type { border-bottom: 0; }
.case-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: 44px;
}
.case-top h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.16; letter-spacing: -0.014em; }
.case-metric {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 34px 30px;
  margin-top: 22px;
}
.metric-big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.metric-big .arrow { color: var(--gold); padding: 0 4px; }
.metric-label {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(250, 249, 245, 0.66);
}
.case-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.case-detail h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-bottom: 12px;
}
.case-detail p { font-size: 15px; color: var(--muted); line-height: 1.74; }
.case-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 80px);
}
.member figure { margin: 0; }
.member .portrait {
  aspect-ratio: 4 / 5;
  background: var(--ivory-2);
  overflow: hidden;
  filter: saturate(0.92);
}
.member .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.member h3 { font-size: 30px; margin: 26px 0 6px; }
.member .role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.member p { font-size: 15.5px; color: var(--muted); line-height: 1.72; max-width: 44ch; }

.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.linkedin-cta svg { width: 18px; height: 18px; color: var(--gold); }
.linkedin-cta:hover { color: var(--gold-deep); }

/* ---------- FAQ ---------- */

.faq-block {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 4vw, 60px) 0;
  border-top: 1px solid var(--rule);
}
.faq-block:first-of-type { border-top: 0; padding-top: 8px; }
.faq-block > h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  position: sticky;
  top: 108px;
  align-self: start;
  line-height: 1.6;
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-of-type { border-top: 1px solid var(--rule); }
.faq-item summary {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 20px 48px 20px 0;
  transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 32px;
  width: 13px;
  height: 1px;
  background: var(--gold);
}
.faq-item summary::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 26px;
  width: 1px;
  height: 13px;
  background: var(--gold);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.faq-item[open] summary::before { opacity: 0; transform: scaleY(0); }
.faq-item[open] summary { color: var(--charcoal); }
.faq-item p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.78;
  max-width: 68ch;
  padding-bottom: 6px;
}
.faq-item p:last-child { padding-bottom: 24px; }
.faq-item p + p { margin-top: 14px; }

/* ---------- Closing (CTA + footer) ---------- */

.closing { background: var(--charcoal-2); color: var(--ivory); }
.closing a { color: var(--gold); }
.closing a.btn--solid { color: var(--ivory); }
.closing a.btn--solid:hover { color: var(--gold); }
.band a.btn--solid { color: var(--ivory); }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-block: clamp(72px, 8vw, 112px) clamp(56px, 6vw, 84px);
}
.cta-grid h2 { color: var(--ivory); max-width: 16ch; }
.cta-grid p { font-size: 17px; color: rgba(250, 249, 245, 0.72); max-width: 40ch; margin-bottom: 28px; }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 0 40px;
  border-top: 1px solid var(--rule-dark);
}
.foot p { font-size: 13px; line-height: 1.8; color: rgba(250, 249, 245, 0.6); }
.foot a { color: rgba(250, 249, 245, 0.6); }
.foot a:hover { color: var(--gold); }
.foot-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.72) !important;
}
.foot-linkedin svg { width: 18px; height: 18px; color: var(--gold); }
.foot-linkedin:hover { color: var(--gold) !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid,
  .section-head,
  .prose-grid,
  .page-head-grid,
  .case-top,
  .cta-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row p { grid-column: 2; }
  .trio, .steps, .case-detail, .team-grid { grid-template-columns: 1fr; }
  .steps { gap: 1px; }
  .faq-block { grid-template-columns: 1fr; }
  .faq-block > h2 { position: static; }
}

@media (max-width: 720px) {
  :root { --gap: 22px; }
  .site-head { position: static; }
  .site-head .shell { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; gap: 14px 24px; }
  .nav-tabs { order: 3; width: 100%; gap: 20px 22px; }
  .lede, .hero-aside .lede { font-size: 17px; }
  .prose p { font-size: 16.5px; }
  .faq-item summary { font-size: 19px; }
  .member h3 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- additions ---------- */
.head-simple { margin-bottom: clamp(40px, 4vw, 64px); }
.head-simple h2 { margin-top: 18px; max-width: 22ch; }
.case-detail { display: block; }

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.case h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.014em;
  margin: 16px 0 36px;
  max-width: 26ch;
}
.case-metric { margin-top: 0; position: sticky; top: 108px; }
.case-detail h3:first-child { padding-top: 0; border-top: 0; }
.case-detail p + h3 { margin-top: 26px; }
.faq-item { grid-column: 2; }

@media (max-width: 1000px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-metric { position: static; }
  .faq-item { grid-column: 1; }
}

/* ---------- Success stories ---------- */

.story {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
.story-who { position: sticky; top: 108px; }
.avatar {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ivory-2);
  filter: saturate(0.92);
  box-shadow: 0 0 0 1px var(--rule);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-who h2 { font-size: 30px; line-height: 1.15; margin: 30px 0 8px; }
.story-who .role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.story-who .org {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.6;
  margin-top: 10px;
}
.story-who .engagement {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 30ch;
}
.story .quote-mark { margin-bottom: 14px; }
.story blockquote p {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.52;
  letter-spacing: -0.008em;
  color: var(--charcoal);
  max-width: 54ch;
}
.story blockquote p + p { margin-top: 24px; }

.voices { border-top: 1px solid var(--rule); }
.voice {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 88px);
  align-items: start;
  padding: clamp(40px, 4.5vw, 68px) 0;
  border-bottom: 1px solid var(--rule);
}
.voice-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 8px;
}
.voice blockquote p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.008em;
  color: var(--charcoal);
  max-width: 52ch;
}
.voice blockquote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.voices-note {
  margin-top: 34px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 56ch;
}

@media (max-width: 1000px) {
  .story, .voice { grid-template-columns: 1fr; }
  .story-who { position: static; }
  .voice { gap: 16px; }
}

/* ---------- Video pages (direct investments) ---------- */

.watch {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 5vw, 72px);
}
.watch .eyebrow { color: var(--gold); }
.watch .eyebrow a { color: var(--gold); }
.watch .eyebrow a:hover { color: var(--ivory); }
.watch-head { max-width: 880px; margin-bottom: clamp(36px, 4vw, 56px); }
.watch-head h1 { margin-top: 22px; color: var(--ivory); }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--charcoal-2);
  box-shadow: 0 0 0 1px var(--rule-dark), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.player-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: var(--ivory);
  font: inherit;
  text-align: left;
}
.player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transform: scale(1.01);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.player-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(27,26,24,0.10) 0%, rgba(27,26,24,0.45) 70%),
    linear-gradient(0deg, rgba(27,26,24,0.88) 0%, rgba(27,26,24,0.15) 45%, rgba(27,26,24,0.25) 100%);
}
.player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  margin: calc(clamp(72px, 8vw, 104px) / -2) 0 0 calc(clamp(72px, 8vw, 104px) / -2);
  border-radius: 50%;
  background: var(--gold-deep);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(184, 151, 92, 0.22), 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.player-play svg { width: 38%; height: 38%; margin-left: 6%; }
.player-caption {
  position: absolute;
  left: clamp(20px, 3vw, 44px);
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(18px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.player-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.player-stage:hover .player-poster { transform: scale(1.035); filter: saturate(1); }
.player-stage:hover .player-play,
.player-stage:focus-visible .player-play {
  transform: scale(1.08);
  box-shadow: 0 0 0 16px rgba(184, 151, 92, 0.26), 0 18px 40px -12px rgba(0, 0, 0, 0.5);
}
.player-stage:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--rule-dark);
}
.track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  align-items: baseline;
  padding: 22px clamp(20px, 2.4vw, 32px);
  background: var(--charcoal-2);
  color: var(--ivory);
  border: 0;
  border-top: 2px solid transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.track:hover { background: #24231F; }
.track.is-active { border-top-color: var(--gold); }
.track-time {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.track-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.track-desc { font-size: 14px; line-height: 1.6; color: rgba(250, 249, 245, 0.62); margin-top: 4px; }
.player-note {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(250, 249, 245, 0.6);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.facts > div { border-top: 1px solid var(--gold); padding-top: 24px; }
.facts-label {
  display: block;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(250, 249, 245, 0.66);
}

/* Link from a use case or module to its video page */
.watch-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.watch-link::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 7px solid var(--gold);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.case-metric .watch-link { color: var(--gold); margin-top: 22px; }
.case-metric .watch-link:hover { color: var(--ivory); }

@media (max-width: 1000px) {
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .player-tracks { grid-template-columns: 1fr; }
  .player-caption { display: none; }
}
.row > div p { max-width: 62ch; }
@media (max-width: 1000px) { .row > div { grid-column: 2; } }
/* Seven menu items: tighten spacing on mid-size screens */
@media (max-width: 1240px) and (min-width: 721px) {
  .site-head .shell { gap: 20px; }
  .nav-tabs { gap: 20px; }
  .nav-tabs a { letter-spacing: 0.12em; }
}
@media (max-width: 1060px) and (min-width: 721px) {
  .site-head .shell { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .nav-tabs { order: 3; width: 100%; }
}


/* ---------- AI avatar on the homepage (click to start) ---------- */
.avatar-stage {
  position: relative;
  max-width: 960px;  /* at 900px or wider the Tavus element keeps its landscape layout */
  aspect-ratio: 16 / 9;
  margin: 0 0 56px;
  background: var(--charcoal);
  overflow: hidden;
}
.avatar-stage[hidden] { display: none; }
.avatar-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
}
.avatar-veil {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 400px;
  padding: 28px 32px;
  background: rgba(38, 37, 35, 0.86);
  color: var(--ivory);
}
.avatar-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.avatar-note {
  font-size: 14px;
  line-height: 1.5;
  max-width: 52ch;
  margin: 0 0 18px;
  color: #E6E3DC;
}
.avatar-start {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 0;
  background: var(--gold-deep);
  color: var(--ivory);
  cursor: pointer;
}
.avatar-start:hover,
.avatar-start:focus-visible { background: var(--charcoal); outline: 2px solid var(--gold); outline-offset: 3px; }
.avatar-stage tavus-embed {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 640px) {
  .avatar-stage { aspect-ratio: 4 / 5; margin-bottom: 40px; }
  .avatar-poster { object-position: 45% 55%; }
  .avatar-stage.is-live { aspect-ratio: 9 / 16; }  /* Tavus uses its portrait layout on phones */
  .avatar-veil { max-width: none; right: 0; padding: 20px; }
  .avatar-title { font-size: 24px; }
}
