/* ===== PROJECT PAGE STYLES ===== */

/* ===== SECTION BADGE (small pill eyebrow) ===== */
.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ===== CHALLENGE LAYOUT (badge+heading left, text+goal right) ===== */
.challenge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}

.challenge-layout h2 {
  margin-bottom: 0;
}

.goal-callout {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
}

.goal-callout .section-badge {
  margin-bottom: 12px;
}

.goal-callout p {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ===== RESEARCH CARD HEADER (icon + label) ===== */
.research-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.research-card-head svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.research-card-head span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.research-quote {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

/* ===== CANVAS SHOWCASE (full-width dedicated image) ===== */
.canvas-showcase {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--divider);
}

.canvas-showcase .section-badge {
  margin-bottom: 12px;
}

.canvas-showcase h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.canvas-showcase p {
  max-width: 640px;
  margin-bottom: 24px;
}

.canvas-showcase img {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--card-border);
}

/* ===== PILLAR LIST (large zigzag image rows) ===== */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 40px;
}

.pillar-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.pillar-row:nth-child(even) {
  flex-direction: row-reverse;
}

.pillar-row-text {
  flex: 1;
  min-width: 0;
}

.pillar-row-media {
  flex: 1;
  min-width: 0;
}

.pillar-row-media img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.pillar-row-text h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.pillar-row-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

.pillar-icon-block {
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
}

.pillar-icon-block svg {
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
}

.pillar-icon-block .pillar-icon-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.pillar-icon-block .pillar-icon-status {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== IMPACT STAT GRID (big word + sublabel + text) ===== */
.impact-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.impact-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}

.impact-stat-card .stat-word {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.impact-stat-card .stat-sublabel {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.impact-stat-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== NEXT STEPS GRID (numbered cards) ===== */
.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.next-steps-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
}

.next-steps-card .step-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.next-steps-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.next-steps-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SPLIT GRID (two-column text blocks) ===== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}

.split-grid h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ===== NUMBERED ROW LIST (circular badge + heading + body) ===== */
.numbered-row-list {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.numbered-row {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--divider);
}

.numbered-row:first-child {
  border-top: none;
  padding-top: 0;
}

.row-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.numbered-row h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.numbered-row p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== IMPACT SPLIT (asymmetric two-column) ===== */
.impact-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  margin-top: 24px;
}

.impact-split h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.impact-split-triple {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.impact-split-triple > div {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
}

.impact-split-triple .meta-label {
  display: block;
  margin-bottom: 12px;
}

.impact-split-triple h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.impact-split-triple.impact-split-triple p {
  font-size: 12px;
  line-height: 1.6;
}

/* ===== CHECKLIST (3-up icon + text) ===== */
.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon svg {
  width: 13px;
  height: 13px;
  color: var(--text);
}

.checklist-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== TABLE OF CONTENTS (fixed left side nav) ===== */
.case-toc {
  position: fixed;
  left: 32px;
  top: 110px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  width: 130px;
}

.case-toc a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  opacity: 0.65;
  transition: opacity 0.3s var(--ease-out-quart), color 0.3s var(--ease-out-quart);
}

.case-toc a:hover {
  opacity: 1;
  color: var(--text);
}

.case-toc a.active {
  opacity: 1;
  color: var(--text);
  font-weight: 500;
}

/* When the fixed nav overlaps a light-background block (e.g. .insight-callout),
   force dark text so it stays legible regardless of theme. */
.case-toc.over-light a {
  color: #1a1a1a;
}

.case-toc.over-light a.active,
.case-toc.over-light a:hover {
  color: #000;
}

@media (max-width: 1100px) {
  .case-toc {
    display: none;
  }
}

/* ===== RESEARCH CARD GRID (3-up cards with optional image) ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.research-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.research-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}

.research-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.research-grid .research-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== RESEARCH LIST (stacked rows, image before text) ===== */
.research-list {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}

.research-list-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px;
  border-top: 1px solid var(--card-border);
}

.research-list-item:first-child {
  border-top: none;
}

.research-list-item:nth-child(even) {
  flex-direction: row-reverse;
}

.item-media {
  flex: 0 0 42%;
  max-width: 42%;
}

.item-media img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.image-frame {
  background: #55595e;
  border-radius: 14px;
  padding: 24px;
}

.image-frame img {
  border-radius: 6px;
}

.item-text {
  flex: 1;
  min-width: 0;
}

.research-list-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.research-list-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== STAT CALLOUT (wide number + description) ===== */
.stat-callout {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 28px;
}

.stat-callout-number {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  color: var(--text);
}

.stat-callout p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

/* ===== INTERVENTION LIST (alternating image + text cards) ===== */
.intervention-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.intervention-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
}

.intervention-card:nth-child(even) {
  flex-direction: row-reverse;
}

.intervention-card img {
  width: 150px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.intervention-text {
  flex: 1;
}

.intervention-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.intervention-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== BEHAVIORAL ANALYTICS PIPELINE CARD ===== */
.pipeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
}

.pipeline-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pipeline-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: none;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pipeline-metric {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
}

.pipeline-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.pipeline-metric-head h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pipeline-metric p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tag-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 9px;
  border-radius: 20px;
}

.ab-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
}

/* ===== LAPTOP DEVICE MOCKUP (scrollable full-flow preview) ===== */
.laptop-mockup {
  max-width: 820px;
  margin: 8px auto 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

.laptop-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #e4e4e4;
  border-radius: 10px 10px 0 0;
  padding: 12px 16px;
}

.laptop-toolbar .traffic-lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.laptop-toolbar .traffic-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b8b8b8;
}

.laptop-toolbar .url-pill {
  flex: 1;
  background: #f4f4f4;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  color: #777777;
  text-align: center;
}

.laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.laptop-screen.is-locked {
  overflow: hidden;
}

.explore-flow-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
  pointer-events: auto;
  cursor: default;
  touch-action: none;
  transition: opacity 0.6s var(--ease-out-quart);
}

.explore-flow-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  touch-action: auto;
}

.explore-flow-overlay .scroll-pill {
  margin-top: 0;
  background: #ffffff;
  border-color: transparent;
  color: #12151b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.explore-flow-overlay .scroll-dot {
  background: #12151b;
}

.laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.laptop-screen.laptop-screen-demo {
  aspect-ratio: 1000 / 490;
  overflow: hidden;
}

.laptop-screen-demo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laptop-chin {
  height: 14px;
  background: linear-gradient(180deg, #d8d8d8, #c4c4c4);
  border-radius: 0 0 12px 12px;
  position: relative;
}

.laptop-chin::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
}

.laptop-hint {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-quart);
}

.laptop-hint.is-visible {
  opacity: 1;
}

.laptop-hint .scroll-pill {
  margin-top: 0;
  cursor: default;
}

/* ===== PAGE LOAD ANIMATION ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Back button loads first */
header {
  animation: fadeIn 0.5s var(--ease-out-expo) both;
}

.project-hero .project-label {
  animation: fadeUp 0.6s var(--ease-out-expo) 0.1s both;
}

.project-hero h1 {
  animation: fadeUp 0.7s var(--ease-out-expo) 0.2s both;
}

.project-subtitle {
  animation: fadeUp 0.7s var(--ease-out-expo) 0.3s both;
}

.project-meta {
  animation: fadeUp 0.7s var(--ease-out-expo) 0.4s both;
}

.project-meta .meta-item:nth-child(1) {
  animation: fadeUp 0.6s var(--ease-out-expo) 0.45s both;
}

.project-meta .meta-item:nth-child(2) {
  animation: fadeUp 0.6s var(--ease-out-expo) 0.5s both;
}

.project-meta .meta-item:nth-child(3) {
  animation: fadeUp 0.6s var(--ease-out-expo) 0.55s both;
}

/* ===== HERO ===== */
.project-hero {
  padding: 80px 0 60px;
}

.project-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.project-hero h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.project-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 32px;
}

.project-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ===== APP ICONS ROW ===== */
.app-icons-row {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
}

/* ===== DOWNLOAD CARD ===== */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-top: 24px;
  transition: background 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart);
}

.download-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.app-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1a1a;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 8px 14px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s var(--ease-out-quart);
}

.app-badge:hover {
  transform: translateY(-2px);
  opacity: 0.82;
  color: #1a1a1a;
}

.app-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.app-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-badge .badge-text .small {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.app-badge .badge-text .big {
  font-size: 13px;
  font-weight: 600;
}

/* ===== BACK BUTTON (nav logo) ===== */
header nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    background 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo),
    color 0.3s var(--ease-out-quart),
    padding-left 0.4s var(--ease-out-expo),
    letter-spacing 0s;
}

header nav .logo:hover {
  background: var(--card-bg);
  border-color: var(--accent);
  color: var(--accent);
  padding-left: 12px;
  letter-spacing: 0.02em;
}

header nav .logo:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ===== PROJECT SECTIONS ===== */
.project-section {
  padding: 48px 0;
}

.project-section h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.project-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: none;
}

.challenge-list {
  margin-top: 20px;
  padding-left: 20px;
  list-style: none;
}

.challenge-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 6px 0;
  position: relative;
  padding-left: 16px;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.js .challenge-list li {
  opacity: 0;
  transform: translateX(-10px);
}

.js .challenge-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.challenge-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--divider);
  transition: background 0.3s;
}

.challenge-list li:hover::before {
  background: var(--text);
}

/* ===== PROCESS GRID ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-expo);
}

.process-step:hover {
  transform: translateY(-3px);
  border-color: #414a5c;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.step-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.process-step:hover .step-number {
  color: var(--text);
}

.process-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== OUTCOMES GRID ===== */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.outcome-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-expo);
}

.outcome-card:hover {
  transform: translateY(-3px);
  border-color: #414a5c;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.outcome-number {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
  transition: transform 0.4s var(--spring);
}

.outcome-card:hover .outcome-number {
  transform: scale(1.08);
}

.outcome-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: none;
}

/* ===== PROJECT NAV ===== */
.project-nav {
  padding: 40px 0;
}

.nav-links-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-project,
.prev-project {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition:
    background 0.35s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-expo);
}

.next-project::before,
.prev-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease-out-expo);
  z-index: 0;
}

.next-project::before,
.prev-project::before {
  background: #e7eaf0;
}

.next-project::before {
  transform-origin: right;
}

.prev-project::before {
  transform-origin: left;
}

.next-project:hover::before,
.prev-project:hover::before {
  transform: scaleX(1);
}

.next-project span,
.prev-project span,
.next-project strong,
.prev-project strong {
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--ease-out-quart);
}

.next-project:hover span,
.prev-project:hover span,
.next-project:hover strong,
.prev-project:hover strong {
  color: #12151b;
}

.next-project {
  text-align: right;
  margin-left: auto;
}

.prev-project {
  text-align: left;
}

.next-project:hover,
.prev-project:hover {
  transform: translateY(-3px);
  border-color: #e7eaf0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.next-project:active,
.prev-project:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

.next-project span,
.prev-project span {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.next-project strong,
.prev-project strong {
  font-size: 16px;
  font-weight: 600;
}

/* ===== SCREEN GALLERY ===== */
.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.screen-gallery.two-up {
  grid-template-columns: repeat(2, 1fr);
  max-width: 480px;
}

.screen-gallery.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.screen-shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-expo);
}

.screen-shot:hover {
  transform: translateY(-3px);
  border-color: #414a5c;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

#selected-screens .screen-shot {
  transition: none;
}

#selected-screens .screen-shot:hover {
  transform: none;
  border-color: var(--card-border);
  box-shadow: none;
}

.screen-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-caption {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== VISUAL DESIGN GRID (Dribbble shots) ===== */
.visual-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.visual-design-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.visual-design-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-quart);
}

.visual-design-item:hover img {
  transform: translateY(-3px);
  border-color: #414a5c;
}

@media (max-width: 700px) {
  .visual-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out-quart);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-out-expo);
}

.lightbox.is-open .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #1a1a1a;
  cursor: pointer;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease-out-quart), border-color 0.2s var(--ease-out-quart);
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 700px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

.decision-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--divider);
}

.decision-block:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.decision-block .screen-shot {
  margin: 0;
}

.decision-text h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.decision-text p {
  font-size: 15px;
}

/* ===== RESEARCH QUOTES ===== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.quote-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-expo);
}

.quote-card:hover {
  transform: translateY(-3px);
  border-color: #414a5c;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.quote-card blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

.quote-card blockquote::before {
  content: '\201C';
}

.quote-card blockquote::after {
  content: '\201D';
}

.quote-card cite {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-style: normal;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== PERSONA GRID (3-up static info cards) ===== */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.persona-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
}

.persona-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.persona-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
}

/* ===== QUOTE STACK (full-width stacked pull quotes with attribution) ===== */
.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.quote-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
}

.quote-block blockquote {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.quote-author-line {
  width: 16px;
  height: 1px;
  background: var(--divider);
  flex-shrink: 0;
}

.quote-author span {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== DECISION NUMBER LABEL ===== */
.decision-number {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.research-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== MEDIA PLACEHOLDER ===== */
.media-placeholder {
  height: 340px;
  border: 1px dashed var(--card-border);
  border-radius: 20px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: border-color 0.3s var(--ease-out-quart), background 0.3s var(--ease-out-quart);
}

.media-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}

/* ===== HERO IMAGE ===== */
.hero-image {
  border-radius: 20px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== HERO MARQUEE (continuous, non-interactive image loop) ===== */
.hero-marquee {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.hero-marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  animation: hero-marquee-scroll 40s linear infinite;
}

.hero-marquee-track img {
  height: 340px;
  width: auto;
  display: block;
  border-radius: 16px;
  flex-shrink: 0;
}

@keyframes hero-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@media (max-width: 600px) {
  .hero-marquee-track img {
    height: 200px;
  }

  .hero-marquee-track {
    animation-duration: 26s;
  }
}

/* ===== COMPANY LINK ===== */
.company-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 2px;
}

.company-link:hover {
  color: var(--link-hover);
}

/* ===== PRESS PLACEHOLDER ===== */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.press-placeholder-card {
  border: 1px dashed var(--card-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  background: var(--card-bg);
}

/* ===== PRESS FEATURE (video + article cards) ===== */
.press-video {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--card-border);
  max-width: 420px;
  aspect-ratio: 16 / 9;
}

.press-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.press-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 36px;
  background: rgba(17, 17, 17, 0.85);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-out-expo), background 0.3s var(--ease-out-quart);
}

.press-video-play svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  margin-left: 2px;
}

.press-video:hover .press-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #111111;
}

.press-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.press-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 18px;
  transition:
    transform 0.35s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-quart),
    box-shadow 0.35s var(--ease-out-expo);
}

.press-card:hover {
  transform: translateY(-3px);
  border-color: #414a5c;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.press-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.press-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.press-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.press-headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.press-date {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== CASE STUDY CARDS (coming soon) ===== */
.case-studies-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.case-study-card.coming-soon {
  cursor: default;
}

.case-study-card.coming-soon:hover {
  transform: none;
  border-color: var(--card-border);
  box-shadow: none;
  background: var(--card-bg);
}

.coming-soon-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 14px;
}

/* ===== BLUEPRINT TABLE ===== */
.blueprint-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.blueprint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.blueprint-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--card-bg);
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
}

.blueprint-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-secondary);
  vertical-align: top;
}

.blueprint-table tr:last-child td {
  border-bottom: none;
}

.blueprint-table td strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== CASE STUDY NARRATIVE (pull quotes, fear lists, figure captions) ===== */
p.problem-statement {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
  max-width: 640px;
  margin: 24px auto;
}

.problem-statement + p {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.pull-quote {
  border-left: 3px solid var(--card-border);
  padding-left: 20px;
  margin: 24px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

.fear-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.fear-list li {
  font-style: italic;
  color: var(--text-secondary);
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 15px;
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.narrative-divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 36px 0;
}

/* ===== LOGO STRIP ("Trusted By") ===== */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.logo-strip img {
  height: 36px;
  width: 108px;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s var(--ease-out-quart);
}

.logo-strip img.logo-sm {
  height: 26px;
  width: 84px;
}

.logo-strip img.logo-xs {
  height: 20px;
  width: 64px;
}

.logo-strip img:hover {
  opacity: 0.8;
}

/* ===== DATA CALLOUT (bordered stat card, 2x2 grid) ===== */
.data-callout {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 28px;
}

.data-callout h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.data-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.data-point {
  background: var(--tag-bg);
  border-radius: 12px;
  padding: 20px;
}

.data-point .data-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.data-point .data-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== PROCESS FLOW (numbered horizontal steps) ===== */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.process-flow-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}

.process-flow-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.process-flow-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FEATURE LIST (zigzag phone-mockup rows) ===== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 40px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-row-media {
  flex: 0 0 260px;
}

.feature-row-media img {
  width: 100%;
  display: block;
}

.feature-row-text {
  flex: 1;
  min-width: 0;
}

.feature-row-text .section-badge {
  margin-bottom: 16px;
}

.feature-row-text h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.feature-row-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== INSIGHT BOX ===== */
.insight-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 28px;
}

.insight-box p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  max-width: none;
}

/* ===== REFLECTION PULL QUOTE ===== */
.reflection-quote {
  border-left: 2px solid var(--text);
  padding-left: 24px;
  margin-bottom: 28px;
}

.reflection-quote p {
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: none;
}

/* ===== DESIGN SYSTEM SWATCHES ===== */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.color-swatch {
  width: 108px;
}

.swatch-color {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

.swatch-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.swatch-value {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.neutral-swatch {
  width: 64px;
}

.neutral-swatch .swatch-color {
  height: 48px;
  border-radius: 6px;
}

.semantic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.semantic-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.semantic-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.semantic-chip-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.semantic-chip-token {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.radius-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.radius-swatch {
  width: 72px;
  text-align: center;
}

.radius-swatch .radius-box {
  display: block;
  width: 56px;
  height: 56px;
  background: var(--tag-bg);
  border: 1px solid var(--card-border);
  margin: 0 auto 10px;
}

.radius-swatch .radius-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.radius-swatch .radius-value {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.type-scale-list {
  margin-top: 20px;
  border-top: 1px solid var(--divider);
}

.type-scale-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}

.type-scale-meta {
  flex: 0 0 160px;
}

.type-scale-meta .ts-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.type-scale-meta .ts-spec {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.type-scale-sample {
  flex: 1;
  color: var(--text);
}

/* ===== SHIFT PANEL (bullet list -> arrow -> statement) ===== */
.shift-panel {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.shift-list {
  flex: 0 1 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shift-list li {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-left: 18px;
}

.shift-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.shift-arrow {
  flex-shrink: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.shift-arrow svg {
  width: 32px;
  height: 16px;
}

.shift-statement {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ===== FRICTION LIST (stacked bold label + paragraph pairs) ===== */
.friction-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.friction-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* ===== TRIPLE GRID (plain 3-up text columns, no cards) ===== */
.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}

.triple-grid h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ===== NUMBERED TRIPLE GRID (horizontal, big 1/2/3 numerals) ===== */
.numbered-triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}

.numbered-triple-grid .num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.35;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.numbered-triple-grid h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* ===== STAT PLAIN GRID (big number + label, no card box) ===== */
.stat-plain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 24px;
}

.stat-plain-item .stat-number {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stat-plain-item .stat-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-top: 2px;
}

.stat-plain-item p:not(.stat-number):not(.stat-label) {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

/* ===== INSIGHT CALLOUT (white quote card for data insights) ===== */
.insight-callout {
  background: #fff;
  padding: 64px 48px 80px;
  text-align: center;
  margin-top: 24px;
  border-radius: 16px;
}

.insight-callout .insight-label {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 21px;
}

.insight-callout .insight-quote {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #0d0d0d;
}

/* ===== FLOW STEPS (horizontal step diagram with arrows) ===== */
.flow-diagram {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
}

.flow-diagram-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.flow-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-step {
  background: var(--tag-bg);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.flow-step-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.flow-step-arrow svg {
  width: 16px;
  height: 12px;
}

.flow-diagram p {
  margin-top: 16px;
}

/* ===== IMAGE FLOW (frames connected by arrows, for real design screens) ===== */
.image-flow-steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.image-flow-connector {
  display: flex;
  justify-content: center;
  color: var(--text-secondary);
}

.image-flow-connector svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

.image-flow-frame {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.image-flow-frame:has(img) {
  border-style: solid;
  padding: 0;
}

.image-flow-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.image-flow-frame svg {
  width: 26px;
  height: 26px;
  opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .project-hero h1 {
    font-size: 30px;
  }

  .project-meta {
    gap: 20px;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .challenge-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shift-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }

  .shift-arrow svg {
    transform: rotate(90deg);
  }

  .triple-grid,
  .numbered-triple-grid,
  .stat-plain-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .insight-callout {
    padding: 40px 24px 48px;
  }

  .insight-callout .insight-quote {
    font-size: 26px;
  }

  .flow-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-step-arrow svg {
    transform: rotate(90deg);
  }

  .pillar-row {
    flex-direction: column !important;
    gap: 24px;
  }

  .impact-stat-grid {
    grid-template-columns: 1fr;
  }

  .next-steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .impact-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .numbered-row {
    gap: 16px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

  .quote-block {
    padding: 24px;
  }

  .quote-block blockquote {
    font-size: 17px;
  }

  .data-callout {
    padding: 24px;
  }

  .data-points-grid {
    grid-template-columns: 1fr;
  }

  .process-flow {
    grid-template-columns: 1fr 1fr;
  }

  .feature-row {
    flex-direction: column !important;
    gap: 24px;
  }

  .feature-row-media {
    flex: none;
    max-width: 220px;
  }

  .type-scale-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .type-scale-meta {
    flex: none;
  }

  .research-list-item {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .item-media {
    flex: none;
    max-width: 100%;
  }

  .intervention-card {
    flex-direction: column !important;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .intervention-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-card {
    padding: 24px 20px;
  }

  .stat-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links-project {
    flex-direction: column;
    gap: 12px;
  }

  .next-project,
  .prev-project {
    width: 100%;
    text-align: center;
  }

  .next-project {
    margin-left: 0;
  }

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

  .decision-block {
    grid-template-columns: 1fr;
  }

  .decision-block .screen-shot {
    max-width: 220px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .press-grid {
    grid-template-columns: 1fr;
  }

  .press-card {
    align-items: flex-start;
  }

  .press-logo {
    width: 48px;
    height: 48px;
  }

  .media-placeholder {
    height: 220px;
  }

  .logo-strip {
    gap: 24px;
  }

  .logo-strip img {
    height: 24px;
  }
}

/* ===== DASHBOARD DEEP-DIVE (placeholder principle rows) ===== */
.dashboard-deep-dive {
  background: var(--bg);
  color: var(--text);
  padding: 96px 0;
}

.deep-dive-header {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 40px;
}

.deep-dive-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
}

.deep-dive-copy {
  padding-top: 8px;
}

.deep-dive-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.deep-dive-copy p:last-child {
  margin-bottom: 0;
}

.deep-dive-copy strong {
  color: var(--text);
  font-weight: 600;
}

.principle-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid var(--card-border);
}

.principle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.principle-row:first-of-type {
  padding-top: 48px;
}

.principle-row.reverse {
  flex-direction: row-reverse;
}

.principle-icon {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  color: var(--accent);
}

.principle-icon svg {
  width: 64px;
  height: 64px;
}

/* Instant Clarity icon: a circular progress ring fills in, then resolves
   into a green checkmark — "clarity" as a task reaching completion. */
.clarity-progress {
  width: 144px;
  height: 144px;
}

.principle-icon-wide .clarity-progress {
  width: 180px;
  height: 180px;
}

.cp-track {
  opacity: 0.15;
  animation: cp-track-fade 3.6s ease-in-out infinite;
}

.cp-ring {
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  animation: cp-fill 3.6s ease-in-out infinite;
}

.cp-check {
  fill: none;
  stroke-dasharray: 37;
  stroke-dashoffset: 37;
  opacity: 0;
  animation: cp-check-draw 3.6s ease-in-out infinite;
}

@keyframes cp-track-fade {
  0%,
  45% {
    opacity: 0.15;
  }
  58%,
  85% {
    opacity: 0;
  }
  100% {
    opacity: 0.15;
  }
}

@keyframes cp-fill {
  0% {
    stroke-dashoffset: 138;
    opacity: 1;
  }
  45% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  58%,
  85% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 138;
    opacity: 1;
  }
}

@keyframes cp-check-draw {
  0%,
  48% {
    opacity: 0;
    stroke-dashoffset: 37;
  }
  60% {
    opacity: 1;
  }
  68%,
  85% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  95%,
  100% {
    opacity: 0;
    stroke-dashoffset: 37;
  }
}

/* Actionable Insights icon: the real "Units with lowest productivity" bar
   chart (exact bars/colors/target line) — bars grow in, then the one bar
   that breaks past the target line keeps rising through the hatch. */
.actionable-chart {
  width: 160px;
  height: 120px;
  overflow: visible;
}

.principle-icon-wide {
  flex-basis: 240px;
  height: 180px;
}

.principle-icon-wide .actionable-chart {
  width: 200px;
  height: 150px;
}

.principle-icon-wide .flow-icon {
  width: 220px;
  height: 138px;
}

.principle-icon-wide .anticipate-icon {
  width: 220px;
  height: 138px;
}

.cw-target {
  opacity: 0;
  animation: cw-target-fade 3.6s ease-in-out infinite;
}

.cw-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: cw-grow 3.6s ease-in-out infinite;
}

.cw-bar-exceed {
  opacity: 0;
  animation: cw-grow-exceed 3.6s ease-in-out infinite;
}

@keyframes cw-grow {
  0% {
    transform: scaleY(0);
  }
  30%,
  85% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

@keyframes cw-grow-exceed {
  0%,
  40% {
    opacity: 0;
    transform: scaleY(0);
  }
  55% {
    opacity: 1;
    transform: scaleY(1);
  }
  62% {
    transform: scaleY(1.08);
  }
  70%,
  85% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(0);
  }
}

@keyframes cw-target-fade {
  0%,
  38% {
    opacity: 0;
  }
  50%,
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Frictionless Execution icon: friction points along the path fade away,
   then a glider sails smoothly from start to end — uninterrupted flow. */
.flow-icon {
  width: 220px;
  height: 138px;
  overflow: visible;
}

.flow-tick {
  opacity: 0.5;
  animation: flow-ticks-fade 3.8s ease-in-out infinite;
}

.flow-glider {
  animation: flow-glide 3.8s ease-in-out infinite;
}

@keyframes flow-ticks-fade {
  0%,
  15% {
    opacity: 0.5;
  }
  30%,
  85% {
    opacity: 0;
  }
  95%,
  100% {
    opacity: 0.5;
  }
}

@keyframes flow-glide {
  0%,
  32% {
    transform: translateX(0);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  75% {
    transform: translateX(136px);
    opacity: 1;
  }
  85%,
  100% {
    transform: translateX(136px);
    opacity: 0;
  }
}

/* Anticipatory Design icon: a radar ping expands outward from a source
   point, and right as it reaches the target, the target lights up —
   the system sensing a need before it's asked for. */
.anticipate-icon {
  width: 144px;
  height: 90px;
  overflow: visible;
}

.ap-ping {
  transform-box: fill-box;
  transform-origin: center;
  r: 5;
  opacity: 0;
  animation: ap-ping-expand 3.4s ease-out infinite;
}

.ap-target-ring {
  opacity: 0.4;
}

.ap-target-fill {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.3);
  animation: ap-target-pop 3.4s ease-in-out infinite;
}

@keyframes ap-ping-expand {
  0% {
    r: 5;
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  70%,
  100% {
    r: 85;
    opacity: 0;
  }
}

@keyframes ap-target-pop {
  0%,
  62% {
    opacity: 0;
    transform: scale(0.3);
  }
  68% {
    opacity: 1;
    transform: scale(1.15);
  }
  75%,
  90% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

.principle-content {
  flex: 1;
}

.principle-title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.principle-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
}

@media (max-width: 700px) {
  .principle-row,
  .principle-row.reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 40px 0;
  }

  .principle-icon {
    height: auto;
  }

  .principle-icon-wide {
    flex-basis: auto;
    width: 100%;
    height: auto;
  }

  .principle-icon-wide .actionable-chart {
    width: 100%;
    height: auto;
    max-width: 340px;
  }

  .principle-icon-wide .flow-icon {
    width: 100%;
    height: auto;
    max-width: 240px;
  }

  .principle-icon-wide .anticipate-icon {
    width: 100%;
    height: auto;
    max-width: 240px;
  }

  .principle-icon-wide .clarity-progress {
    width: 180px;
    height: 180px;
  }

  .principle-title {
    font-size: 28px;
  }

  .deep-dive-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .deep-dive-title {
    font-size: 28px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .project-hero .project-label,
  .project-hero h1,
  .project-subtitle,
  .project-meta,
  .project-meta .meta-item,
  header {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .challenge-list li {
    opacity: 1;
    transform: none;
  }

  .cp-track {
    animation: none;
    opacity: 0;
  }

  .cp-ring {
    animation: none;
    opacity: 0;
    stroke-dashoffset: 0;
  }

  .cp-check {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .cw-bar,
  .cw-bar-exceed {
    animation: none;
    opacity: 1;
    transform: scaleY(1);
  }

  .cw-target {
    animation: none;
    opacity: 1;
  }

  .flow-tick {
    animation: none;
    opacity: 0.5;
  }

  .flow-glider {
    animation: none;
    opacity: 0;
  }

  .ap-ping {
    animation: none;
    opacity: 0;
  }

  .ap-target-fill {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================================
   CASE-STUDY TYPE SCALE (body.case-study)
   One hierarchy for Quinyx Insights, Quinyx Compliance, Memmo, iBazzar:
   Primary   — h1 48px, one per page
   Secondary — h2 28px, pull statements 28px, stats 40px
   Tertiary  — h3 18px, labels/meta 12–13px
   Body      — 17px / 1.7
   ===================================================================== */
:root:not([data-theme="light"]) .case-study {
  --text-secondary: #c3c8d1;
}

.case-study .project-hero {
  padding: 32px 0 56px;
}

.case-study .project-section.hero-media {
  padding: 24px 0 0;
}

.case-study .project-hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.case-study .project-subtitle {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 32px;
}

.case-study .project-section {
  padding: 64px 0;
}

.case-study .project-section h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.case-study .project-section h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.case-study .project-section h3.subhead {
  margin-top: 40px;
  margin-bottom: 8px;
}

.case-study .project-section p {
  font-size: 17px;
  line-height: 1.7;
}

/* Pull statements: secondary level, left-aligned with the text column */
.case-study p.problem-statement {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  max-width: none;
  margin: 24px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  text-wrap: pretty;
}

.case-study .problem-statement + p {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Stats lead within their own section */
.case-study .impact-stat-card .stat-word,
.case-study .stat-plain-item .stat-number {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Insight callout: a card, not a white spotlight */
.case-study .insight-callout {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px 40px 48px;
}

.case-study .insight-callout .insight-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-study .insight-callout .insight-quote {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* Quinyx Insights deep-dive: section heading + tertiary principle titles */
.case-study .deep-dive-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.case-study .principle-title {
  font-size: 24px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .case-study .project-hero h1 {
    font-size: 32px;
  }

  .case-study .project-section {
    padding: 40px 0;
  }

  .case-study .project-section h2,
  .case-study .deep-dive-title {
    font-size: 24px;
  }

  .case-study .principle-title {
    font-size: 20px;
  }

  .case-study p.problem-statement {
    font-size: 22px;
    padding-left: 16px;
  }

  .case-study .impact-stat-card .stat-word,
  .case-study .stat-plain-item .stat-number {
    font-size: 32px;
  }

  .case-study .insight-callout .insight-quote {
    font-size: 20px;
  }
}
