/* ============================================================
   The AI Disciple — Components
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header[data-scrolled='true'] {
  border-bottom-color: var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--color-text);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__tag {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.icon-btn .moon {
  display: none;
}
[data-theme='dark'] .icon-btn .sun {
  display: none;
}
[data-theme='dark'] .icon-btn .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .sun {
    display: none;
  }
  :root:not([data-theme='light']) .icon-btn .moon {
    display: block;
  }
}
.nav-toggle {
  display: none;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-grid;
  }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) clamp(var(--space-5), 5vw, var(--space-10)) var(--space-6);
    box-shadow: var(--shadow-lg);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: clip-path 0.35s var(--ease);
  }
  .nav[data-open='true'] {
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
  }
  .nav a {
    padding: 0.85rem 0.25rem;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0;
  }
  .nav .nav__cta {
    margin-top: var(--space-4);
  }
  .nav .nav__cta a {
    border: none;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-ink);
  color: var(--color-on-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      110% 90% at 18% 8%,
      rgb(217 172 92 / 0.13) 0%,
      transparent 58%
    ),
    linear-gradient(180deg, rgb(16 20 28 / 0.5) 0%, rgb(16 20 28 / 0.82) 72%, var(--color-ink) 100%);
}
.hero__inner {
  padding-block: clamp(var(--space-16), 11vw, var(--space-32));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.hero .eyebrow {
  color: var(--color-on-ink-accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-on-ink);
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--color-on-ink-accent);
}
.hero__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-on-ink-muted);
  max-width: 52ch;
}
.hero .btn-row {
  margin-top: var(--space-8);
}
.hero__note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-on-ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__note svg {
  color: var(--color-on-ink-accent);
  flex: none;
}

/* Hero portrait card */
.hero__card {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.4);
}
.hero__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__card-body {
  margin-top: var(--space-5);
}
.hero__card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-on-ink);
}
.hero__card-role {
  font-size: var(--text-sm);
  color: var(--color-on-ink-muted);
  margin-top: 2px;
}
.hero__card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.hero__card-stats div span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-on-ink-accent);
  line-height: 1.1;
}
.hero__card-stats div small {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-on-ink-muted);
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__card {
    max-width: 380px;
  }
  .hero h1 {
    max-width: 100%;
  }
}

/* ---------- Marquee / trust strip ---------- */
.trust {
  background: var(--color-ink-2);
  color: var(--color-on-ink-muted);
  border-top: 1px solid var(--color-ink-border);
  padding-block: var(--space-6);
  overflow: hidden;
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-16));
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--text-sm);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.trust__item svg {
  color: var(--color-on-ink-accent);
  flex: none;
}

/* ---------- Answer block (AI-extractable summary) ---------- */
.answer-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.answer-block h2 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.answer-block p {
  color: var(--color-text-muted);
}
.answer-block p + p {
  margin-top: var(--space-4);
}
.answer-block strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}
.card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  flex: none;
}
.card h3 {
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.015em;
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin: 0;
}
.card ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  display: grid;
  gap: var(--space-2);
}
.card__foot {
  margin-top: auto;
  padding-top: var(--space-2);
}

/* A trailing card that would otherwise sit alone in the last row of the grid.
   Spans the full width and lays out horizontally so the row reads as intentional. */
.card--span {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  column-gap: var(--space-8);
  row-gap: var(--space-3);
  align-items: start;
}
.card--span .card__icon {
  grid-column: 1;
  grid-row: 1;
}
.card--span h3 {
  grid-column: 1;
  grid-row: 2;
}
.card--span p {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 62ch;
}
.card--span .card__foot {
  grid-column: 2;
  grid-row: 3;
  margin-top: 0;
}
@media (max-width: 900px) {
  .card--span {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }
  .card--span p {
    max-width: none;
  }
  .card--span .card__foot {
    margin-top: auto;
    padding-top: var(--space-2);
  }
}
.card__foot a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
}
.card__foot a svg {
  flex: none;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}
.card__foot a:hover svg {
  transform: translate(3px, 1px);
}

/* ---------- Alternating feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  align-items: center;
}
.feature-row + .feature-row {
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
.feature-row--flip .feature-row__media {
  order: -1;
}
@media (max-width: 800px) {
  .feature-row--flip .feature-row__media {
    order: 0;
  }
}
.feature-row__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.feature-row h2 {
  margin-bottom: var(--space-5);
}
.feature-row p {
  color: var(--color-text-muted);
}
.feature-row p + p {
  margin-top: var(--space-4);
}
.feature-row .btn-row {
  margin-top: var(--space-8);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: var(--space-8);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: var(--space-4);
  left: 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}
.step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ---------- Testimonials ---------- */
.section--ink {
  background: var(--color-ink);
  color: var(--color-on-ink);
}
.section--ink .section-head h2,
.section--ink h3 {
  color: var(--color-on-ink);
}
.section--ink .section-head p {
  color: var(--color-on-ink-muted);
}
.section--ink .eyebrow {
  color: var(--color-on-ink-accent);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-6);
  align-items: start;
}
.quote {
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.6;
  color: var(--color-on-ink-accent);
  display: block;
  margin-bottom: var(--space-5);
}
.quote blockquote {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-on-ink);
}
.quote blockquote p + p {
  margin-top: var(--space-4);
}
.quote figcaption {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--text-sm);
}
.quote figcaption strong {
  display: block;
  color: var(--color-on-ink);
  font-weight: 650;
}
.quote figcaption span {
  color: var(--color-on-ink-muted);
}

/* ---------- Video grid ---------- */
.video-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-3);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.video-card__body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.video-card__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ---------- Home video sample (six categories) ---------- */
.video-sample {
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
.video-sample__head {
  margin-bottom: var(--space-8);
}
.video-sample__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.video-sample__note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.video-card__body h3 {
  overflow-wrap: anywhere;
}
.video-card__cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.video-card__cat a {
  color: var(--color-accent);
  text-decoration: none;
}
.video-card__cat a:hover {
  text-decoration: underline;
}
.video-card__cat span {
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.btn-row--center {
  justify-content: center;
  margin-top: var(--space-10);
}

/* ---------- Category playlist links (videos page) ---------- */
.cat-links {
  margin-top: clamp(var(--space-16), 8vw, var(--space-20));
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-10);
}
.cat-links__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.cat-links__note {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}
.cat-links__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-5);
}
.cat-links__list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.cat-links__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  text-decoration: none;
}
.cat-links__name {
  font-weight: 700;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
.cat-links__list a:hover .cat-links__name {
  color: var(--color-accent);
}
.cat-links__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.cat-links__blurb {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


/* ---------- FAQ / accordion ---------- */
.faq-list {
  border-top: 1px solid var(--color-border);
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary:hover {
  color: var(--color-accent);
}
.faq-item__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  max-width: 68ch;
}
.faq-item__answer > * + * {
  margin-top: var(--space-4);
}
.faq-item__answer ul {
  display: grid;
  gap: var(--space-2);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 120% at 50% 0%, rgb(217 172 92 / 0.16) 0%, transparent 62%);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  color: var(--color-on-ink);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-band p {
  margin: var(--space-5) auto 0;
  color: var(--color-on-ink-muted);
  font-size: var(--text-lg);
  max-width: 54ch;
}
.cta-band .btn-row {
  margin-top: var(--space-8);
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
.footer-grid h3 {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.footer-grid a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--color-accent);
}
.footer-about p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 40ch;
}
.footer-about .brand {
  margin-bottom: 0;
}
.social-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.social-row a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-row a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.footer-bottom {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.page-hero .lede {
  margin-top: var(--space-6);
}
.breadcrumb {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--color-text-faint);
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-accent);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-sm);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.field label span {
  color: var(--color-accent);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: var(--text-base);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}
.field textarea {
  resize: vertical;
  min-height: 7rem;
}
.form__status {
  font-size: var(--text-sm);
  min-height: 1.2em;
}
.form__status[data-state='ok'] {
  color: #2e7d4f;
}
.form__status[data-state='err'] {
  color: #b3382c;
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* ---------- Contact info list ---------- */
.info-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}
.info-list li {
  display: flex;
  gap: var(--space-4);
}
.info-list svg {
  flex: none;
  color: var(--color-accent);
  margin-top: 3px;
}
.info-list h3 {
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: 2px;
}
.info-list p,
.info-list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.info-list a:hover {
  color: var(--color-accent);
}

/* ---------- Story library ---------- */
.library-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-5);
}
.library-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: var(--text-sm);
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}
.chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Small screens: one horizontally scrolling row, YouTube-style, so the
   sticky bar stays shallow instead of stacking four rows of chips. */
@media (max-width: 720px) {
  .chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scroll-padding-inline: var(--space-6);
  }
  .chips--scroll::-webkit-scrollbar {
    display: none;
  }
  .chips--scroll > .chip {
    flex: 0 0 auto;
  }
}
.chip {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: all 0.2s var(--ease);
}
.chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.chip[aria-pressed='true'] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
[data-theme='dark'] .chip[aria-pressed='true'] {
  color: #16120a;
}
.results-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: var(--space-6);
  list-style: none;
  padding: 0;
}
.story {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.story:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}
.story a.story__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.story__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-3);
  overflow: hidden;
}
.story__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.story:hover .story__thumb img {
  transform: scale(1.04);
}
.story__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(16 20 28 / 0.25);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.story:hover .story__play {
  opacity: 1;
}
.story__play span {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  color: #10141c;
}
.story__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.story__title {
  font-size: var(--text-base);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.story__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.story[data-lang='ur'] .story__title {
  font-family: 'Noto Naskh Arabic', 'Satoshi', serif;
  direction: rtl;
  text-align: right;
  line-height: 1.75;
}
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.empty-state h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
[hidden] {
  display: none !important;
}

/* ---------- Misc ---------- */
.divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.check-list li {
  display: flex;
  gap: var(--space-3);
  color: var(--color-text-muted);
}
.check-list svg {
  flex: none;
  color: var(--color-accent);
  margin-top: 5px;
}
.check-list strong {
  color: var(--color-text);
  font-weight: 650;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
  margin-top: var(--space-10);
}
.stat span {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
}
.stat small {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form-wrap > h2,
.contact-aside h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}
.form-intro {
  color: var(--color-text-muted);
  margin: var(--space-3) 0 var(--space-6);
  max-width: 46ch;
}
.form-fine {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 46ch;
}
.form__group {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}
.form__group legend {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding: 0;
  width: 100%;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-3);
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.checklist li::before {
  content: '';
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 2px;
}
.contact-aside {
  display: grid;
  gap: var(--space-6);
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
}
.info-card > h2 { margin-bottom: var(--space-6); font-size: var(--text-lg); }
.info-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.info-card p + p { margin-top: var(--space-3); }
.info-card .btn { margin-top: var(--space-5); }
.info-card--accent {
  background: var(--color-accent-soft);
  border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
}
.info-card--accent p { color: var(--color-text); }
.info-card .social-row { margin-top: var(--space-6); }

/* ---------- Card lists ---------- */
.card ul {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.card ul li {
  position: relative;
  padding-left: var(--space-5);
  line-height: 1.55;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* ---------- Inline video frame (click to load) ---------- */
.video-frame {
  cursor: pointer;
}
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.video-frame:hover img { transform: scale(1.03); }
.video-frame__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(16 20 28 / 0.22);
  transition: background 0.3s var(--ease);
}
.video-frame:hover .video-frame__play { background: rgb(16 20 28 / 0.34); }
.video-frame__play span {
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.95);
  color: #10141c;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease);
}
.video-frame:hover .video-frame__play span { transform: scale(1.07); }
.video-frame[data-loaded='true'] img,
.video-frame[data-loaded='true'] .video-frame__play { display: none; }

/* ---------- Story language badge ---------- */
.story__thumb .badge {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 2;
  background: rgb(255 255 255 / 0.94);
  color: #10141c;
}
.story__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story[data-lang='ur'] .story__desc {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Naskh Arabic', 'Satoshi', serif;
  line-height: 1.9;
}
.story__meta a { color: inherit; }
.story__meta a:hover { color: var(--color-accent); }

/* ---------- Small CTA ---------- */
.cta-band--sm { padding: clamp(var(--space-8), 4vw, var(--space-12)); }
.cta-band--sm h2 { font-size: var(--text-xl); }
.cta-band--sm p { font-size: var(--text-base); }
.cta-band a:not(.btn) { color: var(--color-accent); }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Nav CTA visibility ---------- */
.nav__cta { display: none; }
@media (max-width: 940px) {
  .nav__cta { display: block; }
  [data-desktop-cta] { display: none; }
}
