/* ============================================================
   PRATT SUTTHIPITAK — DIRECTOR VERSION
   director.css: new sections layered on top of global/layout/animations
   WCAG 2.1 AA compliant
   ============================================================ */


/* ── Hero padding override ──────────────────────────────────── */
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* ── Hero Headline — no wrapping, <br> controls line breaks ── */
.hero-headline {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.75rem, 4vw, 4rem);
}

/* ── Hero Sub — let container width control wrapping ────────── */
.hero-sub {
  max-width: 75%;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

/* Allow wrap on tablet and below so headline doesn't overflow */
@media (max-width: 1024px) {
  .hero-headline {
    white-space: normal;
  }
}

/* ── Hero CTA Group ─────────────────────────────────────────── */
.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  animation: heroFadeUp 0.8s var(--ease-out) 0.50s both;
}

/* ── Case body h4 — numbered sub-section heading ────────────── */
.case-body h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: #222222;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

/* ── Case body paragraph style ──────────────────────────────── */
.case-body p {
  font-size: 16px;
  line-height: 24px;
  color: #222222;
}

/* ── Case body list — paragraph style + centered bullet ─────── */
.case-body ul.list-stacked li {
  display: flex;
  align-items: center;
  padding-left: 0;
  gap: var(--space-3);
}

.case-body ul.list-stacked li::before {
  position: static;
  flex-shrink: 0;
  top: auto;
  margin-top: 0;
}

.case-body ul.list-stacked li span {
  font-size: 16px;
  line-height: 24px;
  color: #222222;
}

/* ── Credibility Strip ──────────────────────────────────────── */
/* Matches the original stats strip layout exactly */
.cred-strip {
  border-bottom: 1px solid var(--color-border);
  padding-top: 0;
  padding-bottom: 60px;
  margin-bottom: 0;
}

.cred-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.cred-item {
  display: flex;
  flex-direction: column;
  padding-right: var(--space-6);
  border-right: 1px solid var(--color-border);
}

.cred-item:last-child {
  border-right: none;
  padding-right: 0;
}


/* ── Case Studies Grid (3-col) ──────────────────────────────── */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* Each card inherits .discipline-card — just enforce aspect ratio */
.case-study-card {
  aspect-ratio: 4 / 3;
}

/* Impact line inside card overlay */
.case-card-impact {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* RSUI cards — no image, gradient background fills the card */
.case-card-placeholder {
  background:
    radial-gradient(circle at 20% 80%, rgba(245, 118, 0, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, #26343F 0%, #1c2b35 55%, #15212a 100%);
}

.case-card-ai {
  background:
    radial-gradient(circle at 75% 25%, rgba(245, 118, 0, 0.08) 0%, transparent 50%),
    linear-gradient(140deg, #1a2030 0%, #0f1e2e 50%, #1a1830 100%);
}


/* ── Leadership Impact Section ──────────────────────────────── */
.leadership-impact {
  padding-top: 80px;
  padding-bottom: clamp(var(--space-16), 6vw, var(--space-24));
}

.leadership-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

.leadership-heading {
  color: #26343F;
  font-size: 40px;
  margin-top: 0;
  margin-bottom: var(--space-6);
}

.leadership-intro {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 36ch;
}

.leadership-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: var(--space-2);
  padding-left: 40px; /* room for the absolutely-positioned number */
}

.leadership-list-item {
  position: relative;
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding-block: var(--space-5);
  border-left: 2px solid transparent;
  padding-left: var(--space-5);
  transition: border-color var(--dur-base) var(--ease);
}

.leadership-list-item:first-child {
  padding-top: 0;
}

.leadership-list-item:hover {
  border-left-color: var(--color-accent);
}

.leadership-item-num {
  position: absolute;
  left: -36px; /* sits to the left of the border line */
  top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.leadership-list-item:first-child .leadership-item-num {
  top: 0;
}

.leadership-list-item:hover .leadership-item-num {
  opacity: 1;
  transform: translateX(0);
}


.leadership-list-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-fg);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.leadership-list-item p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: #26343F;
  margin: 0;
}


/* ── Design Philosophy Section — dark bg ───────────────────── */
.philosophy-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: #0E1418;
}

.philosophy-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.philosophy-section .label {
  color: var(--color-accent);
  letter-spacing: 0.14em;
}

.philosophy-quote {
  /* Reset blockquote defaults */
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FAFAF8;
  border: none;
  padding: 0;
  margin: var(--space-4) 0 0;
}

.philosophy-body {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-md));
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 68ch;
}

.philosophy-cite {
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* ── Footer color override ──────────────────────────────────── */
.footer {
  background: #26343F;
  border-top-color: rgba(255, 255, 255, 0.06);
  margin-top: 60px;
}



/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cred-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .cred-item:nth-child(3) {
    border-right: none;
  }

  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .leadership-intro {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .cred-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .cred-item {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-6);
  }

  .cred-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
    padding-right: var(--space-6);
  }

  .cred-item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 300px;
  }


}


/* ── Image Rows (2-up and 3-up) ─────────────────────────────── */
.image-row-2,
.image-row-3 {
  display: flex;
  gap: 24px;
  width: 100%;
}

.image-row-2 img,
.image-row-3 img {
  border-radius: var(--radius-xl);
  display: block;
}

@media (max-width: 768px) {
  .image-row-2,
  .image-row-3 {
    flex-direction: column;
    gap: 16px;
  }

  .image-row-2 img,
  .image-row-3 img {
    width: 100% !important;
    height: auto !important;
  }
}

/* ── Responsive Image Swap (desktop single / mobile stacked) ── */
.ds-mobile-stack { display: none; }

@media (max-width: 768px) {
  .ds-desktop-only { display: none !important; }
  .ds-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .ds-mobile-stack img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
  }
}

/* ── Reduced Motion Overrides ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-cta-group {
    animation: none;
    opacity: 1;
  }
}
