/* =============================================================================
   WHY TINITIATE AI SLIDESHOW (home page)
   Ten photo-led reasons on a charcoal + gold stage that matches the header.
   Markup: #why-tinitiate-slides; behaviour: assets/js/why-slides.js
   ============================================================================= */
.why-slides-wrap {
  --ws-bg: #1b1e23;
  --ws-bg-2: #262a31;
  --ws-ink: #f4f5f7;
  --ws-muted: #aab2bd;
  --ws-line: rgba(255, 255, 255, 0.08);
  --ws-gold: #c9a24a;
  --ws-gold-soft: #e6c879;
  max-width: 1280px;
  margin: 8px auto 72px;
  padding: 0 24px;
  scroll-margin-top: 90px;
}

/* ---- Section heading ---- */
.why-slides-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.why-slides-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7a2e;
  margin-bottom: 8px;
}
.why-slides-eyebrow::before { content: ""; width: 24px; height: 2px; background: #c9a24a; }
.why-slides-heading {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1b1e23;
}
.why-slides-heading em { font-style: normal; color: #9a7a2e; }
.why-slides-motto {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4b5563;
}
.why-slides-motto li { display: inline-flex; align-items: center; gap: 14px; }
.why-slides-motto li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9a24a; }

/* Dark-page variant (why-tinitiate.html): section sits inside the page's own .wrap */
.why-slides-wrap.is-dark { max-width: none; margin: 0; padding: 0; }
.why-slides-wrap.is-dark .why-slides-eyebrow { color: #e6c879; }
.why-slides-wrap.is-dark .why-slides-heading { color: #fff; }
.why-slides-wrap.is-dark .why-slides-heading em { color: #e6c879; }
.why-slides-wrap.is-dark .why-slides-motto { color: #c9cfd8; }
.why-slides-wrap.is-dark .why-stage { border-color: rgba(201, 162, 74, 0.35); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }

/* ---- Buttons ---- */
.why-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.why-btn svg { width: 17px; height: 17px; }
.why-btn-gold {
  color: #1b1e23;
  background: linear-gradient(135deg, var(--ws-gold-soft, #e6c879), var(--ws-gold, #c9a24a));
  box-shadow: 0 8px 20px -10px rgba(201, 162, 74, 0.9);
}
.why-btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.why-btn-ghost {
  color: #f4f5f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.why-btn-ghost:hover { border-color: var(--ws-gold); background: rgba(201, 162, 74, 0.1); }

/* ---- Stage ---- */
.why-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(800px 420px at 100% 0%, rgba(201, 162, 74, 0.13), transparent 60%),
    linear-gradient(160deg, var(--ws-bg-2) 0%, var(--ws-bg) 70%);
  color: var(--ws-ink);
  border: 1px solid rgba(201, 162, 74, 0.25);
  box-shadow: 0 30px 70px -30px rgba(15, 17, 21, 0.6);
  outline: none;
}
.why-stage:focus-visible { box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.6); }

.why-track { position: relative; min-height: 500px; }

.why-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 44px 52px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.why-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s;
}

/* Photo column */
.why-photo {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #111;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
  transform: translateX(-24px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-slide.is-active .why-photo { transform: none; }
.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}
.why-slide.is-active .why-photo img { animation: why-kenburns 9s ease-out forwards; }
.why-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(10, 11, 14, 0.75) 100%);
  pointer-events: none;
}
.why-photo-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(15, 17, 21, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.why-photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1b1e23;
  background: linear-gradient(135deg, var(--ws-gold-soft), var(--ws-gold));
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.7);
}
.why-photo-tag svg { width: 15px; height: 15px; }
@keyframes why-kenburns { from { transform: scale(1.02); } to { transform: scale(1.09); } }

/* Copy column */
.why-copy > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-slide.is-active .why-copy > * { opacity: 1; transform: none; }
.why-slide.is-active .why-copy > :nth-child(2) { transition-delay: 0.08s; }
.why-slide.is-active .why-copy > :nth-child(3) { transition-delay: 0.16s; }
.why-slide.is-active .why-copy > :nth-child(4) { transition-delay: 0.24s; }
.why-slide.is-active .why-copy > :nth-child(5) { transition-delay: 0.32s; }

.why-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ws-gold-soft);
}
.why-kicker::before { content: ""; width: 28px; height: 2px; background: var(--ws-gold); }
.why-audience {
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #1b1e23;
  background: #e6c879;
}
.why-title {
  margin: 14px 0 14px;
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.why-title em { font-style: normal; color: var(--ws-gold-soft); }
.why-text {
  margin: 0 0 20px;
  color: var(--ws-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 560px;
}
.why-note { display: block; margin-top: 8px; font-size: 0.8rem; color: #8a929e; }

/* Chips */
.why-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.why-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e6e9ee;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.why-chips svg { width: 15px; height: 15px; color: var(--ws-gold); }

/* Flow: Learn -> Practice -> Build */
.why-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.why-flow span {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ws-gold-soft);
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: rgba(201, 162, 74, 0.08);
}
.why-flow span:last-child { color: #1b1e23; background: linear-gradient(135deg, var(--ws-gold-soft), var(--ws-gold)); border-color: transparent; }
.why-flow svg { width: 18px; height: 18px; color: #8a929e; }

/* Prime timeline */
.why-timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.why-timeline div {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.why-timeline div:last-child { border-color: rgba(201, 162, 74, 0.55); background: rgba(201, 162, 74, 0.1); }
.why-timeline small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a929e; }
.why-timeline strong { display: block; margin: 4px 0 2px; font-size: 1.02rem; color: #fff; }
.why-timeline span { font-size: 0.86rem; color: var(--ws-gold-soft); font-weight: 600; }

/* Roadmap stepper */
.why-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
  counter-reset: step;
}
.why-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #e6e9ee;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.why-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1b1e23;
  background: var(--ws-gold);
}

.why-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ---- Bottom bar: reason tabs with progress line, plus arrows ---- */
.why-bar {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--ws-line);
  background: rgba(0, 0, 0, 0.2);
}
.why-tabs {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.why-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 13px 12px 15px;
  background: none;
  border: 0;
  border-right: 1px solid var(--ws-line);
  color: #87909c;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.why-tab:hover { color: #e6e9ee; background: rgba(255, 255, 255, 0.03); }
.why-tab b { font-size: 0.7rem; letter-spacing: 0.1em; color: inherit; opacity: 0.8; }
.why-tab span { font-size: 0.8rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.why-tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: var(--p, 0%);
  background: var(--ws-gold);
}
.why-tab.is-active { color: #fff; background: rgba(201, 162, 74, 0.06); }
.why-tab.is-active b { color: var(--ws-gold-soft); opacity: 1; }
.why-tab:focus-visible { outline: 2px solid var(--ws-gold); outline-offset: -2px; }

.why-arrows { display: flex; }
.why-arrow {
  width: 54px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-left: 1px solid var(--ws-line);
  color: #e6e9ee;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.why-arrow:hover { background: rgba(201, 162, 74, 0.14); color: var(--ws-gold-soft); }
.why-arrow svg { width: 20px; height: 20px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .why-tab span { display: none; }
  .why-tab { align-items: center; padding: 14px 4px; }
}
@media (max-width: 960px) {
  .why-slide { grid-template-columns: 1fr; gap: 24px; padding: 24px 24px 28px; align-items: start; }
  .why-photo { aspect-ratio: 16 / 9; transform: none; }
  .why-track { min-height: 0; }
}
@media (max-width: 640px) {
  .why-slides-wrap { padding: 0 16px; }
  .why-slide { padding: 16px 16px 24px; }
  .why-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-timeline { grid-template-columns: 1fr; }
  .why-arrow { width: 42px; }
  .why-tab { padding: 12px 0; }
  .why-tab b { font-size: 0.66rem; letter-spacing: 0.02em; }
}
@media (prefers-reduced-motion: reduce) {
  .why-slide, .why-slide.is-active, .why-copy > *, .why-photo { transition: opacity 0.2s ease; transform: none; }
  .why-slide.is-active .why-photo img { animation: none; }
}
