/* ════════════════════════════════════════════════════════
   PROJECT TWO — ALIGN dark theme
   Loaded after style.css and project-one.css.
════════════════════════════════════════════════════════ */

/* ── CSS VARIABLE OVERRIDES ─────────────────────────── */
:root {
  --accent:          #A3EC3F;
  --bg:              #0F1514;
  --card:            #162019;
  --text:            #D3D4D2;
  --text-muted:      #919191;
  --text-mid:        #919191;
  --border-card:     rgba(255, 255, 255, 0.10);
  --border-light:    rgba(255, 255, 255, 0.07);
  --border-pill:     rgba(255, 255, 255, 0.18);
  --placeholder-bg:  #1e2d28;
  --placeholder-alt: #1a2822;
  --placeholder-lbl: #919191;
}

/* ── BODY BACKGROUND ────────────────────────────────── */
body {
  background: #0F1514;
}

/* ── SECTION PILL ───────────────────────────────────── */
.section-pill {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #919191;
}

/* ── CREATIVE BRIEF ─────────────────────────────────── */
.brief-headline {
  color: #D3D4D2;
}

.brief-accent {
  color: var(--accent);
}

.hmw-block {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.hmw-label {
  color: #919191;
}

.hmw-text {
  color: #D3D4D2;
}

/* ── TIMELINE ───────────────────────────────────────── */
.timeline-line {
  background: rgba(255, 255, 255, 0.12);
}

.node-dot {
  background: var(--accent);
}

.node-date {
  color: #919191;
}

.phase-num,
.phase-name {
  color: #D3D4D2;
}

.phase-sub {
  color: var(--accent);
}

/* ── AUDIENCE / TRAITS ──────────────────────────────── */
.section-title-centered {
  color: #D3D4D2;
}

.trait-title {
  color: #D3D4D2;
}

.trait-body {
  color: #919191;
}

/* ── DESIGN SYSTEM STATEMENT ────────────────────────── */
.centered-statement {
  color: #D3D4D2;
}

/* ── SIDEBAR NAV ────────────────────────────────────── */
.sidebar-nav-card {
  background: #162019;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.sidebar-nav-link {
  color: #919191;
}

.sidebar-nav-link:hover {
  color: #D3D4D2;
}

.sidebar-nav-link.is-active {
  color: #D3D4D2;
  border-left-color: var(--accent);
}

/* ── BACK BUTTON ────────────────────────────────────── */
.back-btn-float {
  background: rgba(15, 21, 20, 0.80);
  border-color: rgba(255, 255, 255, 0.15);
  color: #D3D4D2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.back-btn-float.sidebar-mode {
  background: #162019;
  border-color: rgba(255, 255, 255, 0.12);
  color: #D3D4D2;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ── CASE INTRO ─────────────────────────────────────── */
.case-intro {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.project-label {
  color: #919191;
}

.meta-sep {
  color: #919191;
}

.meta-muted {
  color: #919191;
}

.case-headline {
  color: #D3D4D2;
}

.accent-italic {
  color: var(--accent);
}

/* ── OVERVIEW CARD ──────────────────────────────────── */
.col-header {
  color: #919191;
}

.context-col p:not(.col-header) {
  color: #D3D4D2;
}

.context-col p:not(.col-header) span {
  color: #919191;
}

.card {
  box-shadow: none;
}

/* ── COVID SECTION ──────────────────────────────────── */
.covid-card {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  background: transparent;
  padding-top: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Image is in normal flex flow — natural height, nothing cropped */
.covid-card__img {
  display: block;
  width: 65%;
  height: auto;
  position: relative;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.covid-card.is-visible .covid-card__img {
  opacity: 1;
}

/* Gradient blends image into page background */
.covid-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #0F1514 28%,
    rgba(15, 21, 20, 0.78) 56%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Text — always visible, no animation */
.covid-card__text {
  position: absolute;
  bottom: 28px;
  left: 0;
  z-index: 2;
}

.covid-card__line1,
.covid-card__line2 {
  font-family: 'Inter', sans-serif;
  font-size: 23px;
  font-weight: 300;
  color: #D3D4D2;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.covid-card__line2 strong {
  font-weight: 700;
  color: #D3D4D2;
}

/* ── 48% STAT BLOCK ─────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 0 0 40px;
  margin-top: 100px;
  border-left: none;
}

.stat-block__top {
  font-size: 23px;
  font-weight: 400;
  color: #919191;
  line-height: 1.6;
  margin-bottom: 8px;
}

.stat-block__top strong {
  font-weight: 600;
  color: #D3D4D2;
}

.stat-block__num-wrap {
  position: relative;
  display: inline-block;
  margin: 12px 0 16px;
}

/* Dark green radial glow behind the number */
.stat-block__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(38, 110, 58, 0.52) 0%,
    rgba(22, 65, 35, 0.28) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.stat-block__num {
  font-family: 'Inter', sans-serif;
  font-size: 138px;
  font-weight: 700;
  color: #D3D4D2;
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
  display: inline-block;

  /* entrance: scale in from slightly small */
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-block.is-visible .stat-block__num {
  opacity: 1;
  transform: scale(1);
}

.stat-block__bottom {
  font-size: 23px;
  font-weight: 400;
  color: #919191;
  margin-top: 4px;
}

/* ── OUR SOLUTION LIST ──────────────────────────────────── */
.solution-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.solution-list li {
  font-size: 28px;
  font-weight: 400;
  color: #D3D4D2;
  line-height: 1.5;
  padding-left: 0;
  position: relative;
}

/* ── USER INSIGHTS SECTION ──────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  margin-top: 48px;
}

.insights-grid .insight-card:last-child {
  grid-column: 1 / -1;
}

/* Scroll-reveal for insight cards: land at 0.45, not 1 */
.anim-insight {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-insight.is-visible {
  opacity: 0.45;
  transform: translateY(0);
}

.insight-card {
  background: #162019;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease;
  cursor: default;
}

.insight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at bottom center,
    rgba(163, 236, 63, 0.11) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.insight-card:hover,
.anim-insight.is-visible.insight-card:hover {
  opacity: 1;
  transform: scale(1.03);
  border-color: var(--accent);
}

.insight-card:hover::after {
  opacity: 1;
}

.insight-num {
  display: none; /* title carries the label already */
}

.insight-title {
  font-size: 21px;
  font-weight: 600;
  color: #D3D4D2;
  line-height: 1.35;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.insight-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.insight-body {
  font-size: 16px;
  font-weight: 400;
  color: #919191;
  line-height: 1.7;
  margin-bottom: 20px;
}

.insight-body:last-child {
  margin-bottom: 0;
}

/* 64% stat layout (3rd card) */
.insight-card--stat {
  text-align: center;
}

.insight-stat-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-stat-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insight-stat-intro {
  font-size: 19px;
  font-weight: 300;
  color: #919191;
  line-height: 1.55;
  margin-bottom: 0;
}

.insight-big-num-wrap {
  position: relative;
  display: inline-block;
  margin: 4px 0 2px;
  line-height: 1;
}

.insight-big-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(38, 110, 58, 0.52) 0%,
    rgba(22, 65, 35, 0.28) 42%,
    transparent 70%
  );
  pointer-events: none;
}

.insight-big-num {
  font-family: 'Inter', sans-serif;
  font-size: 96px;
  font-weight: 700;
  color: #D3D4D2;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.insight-stat-sub {
  font-size: 19px;
  font-weight: 300;
  color: #D3D4D2;
  line-height: 1.55;
  margin-top: 4px;
}

.insight-stat-sub strong {
  font-weight: 600;
  color: #D3D4D2;
}

.insight-area-pills {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.insight-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 6px 16px;
}

/* ── CHALLENGE LIST ─────────────────────────────────────── */
.challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.challenge-list li {
  font-size: 16px;
  font-weight: 400;
  color: #919191;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.challenge-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.challenge-list li strong {
  color: #D3D4D2;
  font-weight: 600;
}

/* ── TRAIT CARDS (Audience section) ────────────────────── */
.trait-card {
  background: #162019;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

/* Accent gradient glow — hidden by default */
.trait-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at bottom center,
    rgba(163, 236, 63, 0.10) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.trait-card:hover {
  border-color: var(--accent);
}

.trait-card:hover::after {
  opacity: 1;
}

/* ── NEXT STEPS TABS ────────────────────────────────────── */
.nextsteps-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.nextsteps-tab {
  background: #162019;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: #919191;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nextsteps-tab:hover {
  color: #D3D4D2;
  border-color: rgba(255, 255, 255, 0.28);
}

.nextsteps-tab.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.nextsteps-panel {
  display: none;
  background: #162019;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 44px 48px;
  animation: panel-fade-in 0.3s ease;
}

.nextsteps-panel.is-active {
  display: block;
}

@keyframes panel-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .covid-card__img           { transition: none; opacity: 1; }
  .stat-block__num           { transition: none; transform: none; opacity: 1; }
  .anim-insight              { transition: none; opacity: 0.45; transform: none; }
  .anim-insight.is-visible   { opacity: 0.45; }
}
