/* IndiGo Story — case study page
   Fonts: distinctive pair (not Inter/Roboto) */

:root {
  --bg: #f7f5f0;
  --bg-elevated: #fffefb;
  --ink: #1a1d21;
  --ink-muted: #4a5058;
  --ink-faint: #6b7280;
  --accent: #0c5f6e;
  --accent-soft: rgba(12, 95, 110, 0.12);
  --border: #e2ddd4;
  --hero-bg: #0f1419;
  --hero-ink: #e8eaed;
  --focus: #c45c26;
  --max: 42rem;
  --max-wide: 60rem;
  --space: clamp(1rem, 4vw, 2rem);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--hero-bg);
  color: var(--hero-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.75rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__inner .site-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  max-width: none;
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header__brand:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  background: radial-gradient(120% 80% at 85% 20%, rgba(12, 95, 110, 0.35) 0%, transparent 55%),
    radial-gradient(80% 60% at 10% 90%, rgba(196, 92, 38, 0.12) 0%, transparent 45%), var(--hero-bg);
  color: var(--hero-ink);
  padding: clamp(2rem, 5vw, 3rem) var(--space) clamp(2.5rem, 7vw, 4rem);
  overflow: hidden;
}

.hero__shell {
  max-width: calc(var(--max-wide) + 2rem);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  gap: 2rem 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__copy {
  min-width: 0;
}

.hero__visual-column {
  min-width: 0;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3c0;
  margin: 0 0 0.65rem;
}

.hero__hook {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 5.5vw, 3.15rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero__hook em {
  font-style: italic;
  color: #9eeadb;
}

.hero__byline {
  font-size: 1rem;
  color: #b8c0cc;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.hero__name {
  font-weight: 700;
  color: #e8eaed;
}

.hero__byline-sep {
  opacity: 0.45;
  padding: 0 0.2em;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.hero__stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  min-width: 6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #7dd3c0;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3af;
}

.hero__teaser {
  font-size: 1.08rem;
  line-height: 1.55;
  color: #c5cad3;
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button--primary {
  background: #7dd3c0;
  color: #0f1419;
  border-color: #7dd3c0;
}

.button--primary:hover {
  background: #9eeadb;
  border-color: #9eeadb;
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: #e8eaed;
  border-color: rgba(255, 255, 255, 0.28);
}

.button--ghost:hover {
  border-color: #7dd3c0;
  color: #7dd3c0;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9375rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.hero__contacts--compact {
  font-size: 0.875rem;
  gap: 0.35rem 0.85rem;
}

.hero__contacts a {
  color: #7dd3c0;
  text-decoration: none;
  font-weight: 600;
}

.hero__contacts a:hover {
  text-decoration: underline;
}

.hero__contacts li {
  color: #9aa3af;
}

.hero__note {
  font-size: 0.875rem;
  color: #9aa3af;
  max-width: 38rem;
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  line-height: 1.5;
}

.hero__note code {
  font-size: 0.85em;
  color: #c5cad3;
}

/* Poster + abstract device mock */
.hero__poster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 1.5rem;
}

.hero__poster-img {
  position: relative;
  z-index: 3;
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 440px;
  border-radius: 28px;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 0 4px rgba(255, 255, 255, 0.08);
  transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (min-width: 900px) {
  .hero__poster-img {
    max-width: 260px;
    max-height: 520px;
  }
}

.hero__poster--loaded .hero__poster-img {
  opacity: 1;
}

.hero__poster--loaded .hero-mock,
.hero__poster--loaded .hero__poster-hint {
  opacity: 0;
  visibility: hidden;
}

.hero__poster--missing .hero__poster-img {
  display: none;
}

.hero__poster-hint {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.hero-mock {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-mock__glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 192, 0.15) 0%, transparent 70%);
  filter: blur(20px);
}

.hero-mock__stack {
  position: relative;
  width: 100%;
  max-width: 280px;
  transform: perspective(800px) rotateY(-6deg) rotateX(4deg);
}

.hero-mock__layer {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.hero-mock__layer--back {
  position: absolute;
  inset: 12% -6% -8% 10%;
  opacity: 0.5;
}

.hero-mock__layer--mid {
  position: relative;
  padding: 1rem 1.1rem;
  margin-bottom: -2.5rem;
  transform: translateX(8%) translateY(0);
}

.hero-mock__chips {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.hero-mock__chips span {
  height: 6px;
  border-radius: 3px;
  background: rgba(125, 211, 192, 0.45);
  width: 28%;
}

.hero-mock__chips span:last-child {
  width: 18%;
  opacity: 0.5;
}

.hero-mock__bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-mock__bars span {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-mock__bars span:nth-child(2) {
  width: 88%;
}

.hero-mock__bars span:nth-child(3) {
  width: 72%;
}

.hero-mock__layer--front {
  position: relative;
  padding: 1rem 1.15rem 1.25rem;
  background: rgba(26, 34, 44, 0.92);
  border-color: rgba(125, 211, 192, 0.25);
}

.hero-mock__nav {
  height: 5px;
  width: 40%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.hero-mock__title {
  height: 14px;
  width: 75%;
  border-radius: 3px;
  background: linear-gradient(90deg, #7dd3c0, rgba(125, 211, 192, 0.3));
  margin-bottom: 1rem;
  opacity: 0.85;
}

.hero-mock__block {
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
}

.hero-mock__block--short {
  width: 55%;
  height: 28px;
}

.hero-mock__cta {
  margin-top: 0.85rem;
  height: 32px;
  width: 45%;
  border-radius: 8px;
  background: rgba(125, 211, 192, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hero__poster-img {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
}

.resume-block {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.25rem 0;
}

.resume-block__org {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.resume-block__meta {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0 0 0.5rem;
}

.skills-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skills-block h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--accent);
}

.skills-block ul {
  margin-bottom: 0;
}

main {
  padding-bottom: 4rem;
}

main > section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--space);
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  color: var(--ink);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-muted);
}

li {
  margin-bottom: 0.35rem;
}

.pillars {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.pillar h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.pillar__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

.bridge {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}

.bridge ul {
  margin-bottom: 0;
}

.forward {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  margin-top: 1.5rem;
}

.forward__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}

.metrics {
  background: var(--ink);
  color: var(--hero-ink);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 0.5rem;
}

.metrics h2 {
  color: var(--hero-ink);
  font-size: 1.35rem;
}

.metrics p,
.metrics li {
  color: #c5cad3;
}

.metrics ul {
  margin-bottom: 0;
}

/* Optional approved metrics: add class metrics--has-numbers to <section class="metrics"> and show .metrics__quant */
.metrics__quant {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  color: #7dd3c0;
}

.metrics.metrics--has-numbers .metrics__quant {
  display: block;
}

.video-showcase {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .video-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.video-card {
  margin: 0;
}

.video-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.video-card__meta {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.video-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.video-card__player {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1419;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.video-card__player video {
  display: block;
  width: 100%;
  height: auto;
}

.video-card__iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 12rem;
  border: 0;
}

.video-card__hint {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0.65rem 0 0;
}

.section-note {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
  max-width: var(--max);
}

.disclosure {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-top: 1.5rem;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

/* Practice grid */
.practice-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.practice-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.practice-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(12, 95, 110, 0.1);
}

.practice-card__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.practice-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.practice-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* Metrics grid */
.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metrics-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.metrics-tile__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: #7dd3c0;
  line-height: 1;
}

.metrics-tile__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8eaed;
  margin-top: 0.25rem;
}

.metrics-tile__context {
  font-size: 0.78rem;
  color: #9aa3af;
  line-height: 1.4;
  margin-top: 0.35rem;
}

/* Process strip */
.process__subtitle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 2rem 0 1rem;
  color: var(--accent);
}

.process__subtitle:first-of-type {
  margin-top: 0.5rem;
}

.process-scroller {
  overflow-x: auto;
  margin: 0 -0.25rem 1.5rem;
  padding: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: min(100%, 52rem);
}

.process-step {
  flex: 1 1 8rem;
  max-width: 11rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1.35rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.process-step__dot {
  position: absolute;
  left: 0.65rem;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.process-step__tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}

.process-step__name {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.process-step__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.process-step--arrow {
  flex: 0 0 auto;
  align-self: center;
  padding: 0 0.15rem;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 1.1rem;
  max-width: none;
}

@media (max-width: 640px) {
  .process-step--arrow {
    display: none;
  }

  .process-step {
    flex: 1 1 100%;
    max-width: none;
  }
}

.process-ops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--accent-soft);
  border-radius: 14px;
  border: 1px solid rgba(12, 95, 110, 0.2);
  margin-bottom: 1rem;
}

.process-ops__item {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.process-ops__icon {
  color: var(--accent);
  font-size: 0.75rem;
}

.process-ops__join {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.85rem;
}

.process__footnote {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin: 0;
  font-style: italic;
}

/* Gallery + Figma */
.figma-block-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.visual-card {
  margin: 0;
}

.visual-card__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8e4dc 0%, #d4cfc5 100%);
  border: 1px solid var(--border);
}

.visual-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.visual-card--loaded .visual-card__img {
  opacity: 1;
}

.visual-card--missing .visual-card__img {
  display: none;
}

.visual-card__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.visual-card--loaded .visual-card__placeholder {
  opacity: 0;
  visibility: hidden;
}

.visual-card__ph-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: rgba(26, 29, 33, 0.22);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.visual-card__ph-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  width: 70%;
}

.visual-card__ph-grid span {
  aspect-ratio: 1.4;
  border-radius: 6px;
  background: rgba(26, 29, 33, 0.08);
}

.visual-card__ph-cols {
  display: flex;
  gap: 0.45rem;
  width: 75%;
  height: 45%;
}

.visual-card__ph-cols span {
  flex: 1;
  border-radius: 6px;
  background: rgba(12, 95, 110, 0.12);
  border: 1px dashed rgba(12, 95, 110, 0.25);
}

.visual-card__ph-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 72%;
}

.visual-card__ph-bars span {
  height: 10px;
  border-radius: 4px;
  background: rgba(26, 29, 33, 0.1);
}

.visual-card__ph-bars span:nth-child(2) {
  width: 85%;
}

.visual-card__ph-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: 80%;
}

.visual-card__ph-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(196, 92, 38, 0.25);
}

.visual-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.figma-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .figma-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.figma-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.figma-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(12, 95, 110, 0.12);
  transform: translateY(-2px);
}

.figma-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.figma-card--static {
  cursor: default;
}

.figma-card--static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.figma-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-card__icon--jam {
  width: 28px;
  height: 28px;
  font-size: 1.35rem;
  color: #a259ff;
  font-weight: 700;
}

.figma-card__badge-int {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(12, 95, 110, 0.3);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-card__body {
  flex: 1;
  min-width: 0;
}

.figma-card__title {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.figma-card__desc {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.figma-card__go {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  align-self: center;
}

.metrics__pull {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #7dd3c0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  color: #e8eaed;
}

.metrics__pull p {
  margin: 0;
  color: inherit;
}

.site-footer {
  background: var(--hero-bg);
  color: #9aa3af;
  padding: 2rem var(--space);
  text-align: center;
  font-size: 0.9375rem;
}

.site-footer a {
  color: #7dd3c0;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

/* =====================================================================
   GATE
   ===================================================================== */

/* Default: gate visible, site hidden */
.gate {
  display: flex;
}

#site {
  display: none;
}

/* After JS adds .site-unlocked to <html>: flip visibility */
.site-unlocked .gate {
  display: none;
}

.site-unlocked #site {
  display: block;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--hero-bg);
  align-items: center;
  justify-content: center;
  padding: var(--space);
}

.gate__inner {
  max-width: 26rem;
  width: 100%;
  text-align: center;
}

.gate__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3c0;
  margin: 0 0 1rem;
}

.gate__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--hero-ink);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.gate__sub {
  font-size: 0.9375rem;
  color: #9aa3af;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.gate__err {
  display: none;
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gate__input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--hero-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.gate__input::placeholder {
  color: #6b7280;
}

.gate__input:focus {
  outline: none;
  border-color: #7dd3c0;
}

.gate__input--error {
  border-color: #f87171 !important;
}

.gate__btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #7dd3c0;
  color: #0f1419;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gate__btn:hover {
  background: #9eeadb;
  transform: translateY(-1px);
}

.gate__btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* =====================================================================
   HERO TAGS ROW
   ===================================================================== */

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.hero__tags li {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9aa3af;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin: 0;
}

.hero__tags li:first-child {
  border-color: rgba(125, 211, 192, 0.45);
  color: #7dd3c0;
}

.hero__tag--meta {
  opacity: 0.55;
}

/* =====================================================================
   SECTION LABEL (like SBR's "THE CHALLENGE" cap label)
   ===================================================================== */

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.section-label--light {
  color: #7dd3c0;
}

/* =====================================================================
   CHALLENGE LAYOUT — two-column with scale cards
   ===================================================================== */

.challenge-layout {
  display: grid;
  gap: 2rem 3rem;
  align-items: start;
}

@media (min-width: 760px) {
  .challenge-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.challenge-copy,
.challenge-scale {
  min-width: 0;
}

.scale-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scale-card {
  background: var(--ink);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.scale-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #7dd3c0;
  line-height: 1;
}

.scale-card__label {
  font-size: 0.8125rem;
  color: #9aa3af;
  line-height: 1.45;
}

/* =====================================================================
   SOLUTION FEATURE — wide UJM/journey-map slot
   ===================================================================== */

.solution-feature {
  margin: 1rem 0 0;
}

.solution-feature__frame {
  aspect-ratio: 2 / 1 !important;
  border-radius: 16px !important;
}

.visual-card__ph-ujm {
  display: flex;
  gap: 0.5rem;
  width: 85%;
  height: 40%;
}

.visual-card__ph-ujm span {
  flex: 1;
  border-radius: 8px;
  background: rgba(12, 95, 110, 0.09);
  border: 1px dashed rgba(12, 95, 110, 0.22);
}

.visual-card__ph-ujm span:nth-child(2),
.visual-card__ph-ujm span:nth-child(4) {
  flex: 1.5;
  background: rgba(12, 95, 110, 0.14);
}

.solution-feature figcaption,
.visual-card figcaption {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}

.solution-feature figcaption code,
.visual-card figcaption code {
  font-size: 0.85em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.solution-grid {
  margin-top: 1.5rem;
}

/* =====================================================================
   IMPACT SECTION — dark card, matches IndiGo brand
   ===================================================================== */

.impact {
  background: var(--ink);
  color: var(--hero-ink);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
}

.impact h2 {
  color: var(--hero-ink);
}

.impact p {
  color: #c5cad3;
}

.impact-hero {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .impact-hero {
    grid-template-columns: auto 1fr;
  }
}

.impact-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.impact-hero__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5rem);
  color: #7dd3c0;
  line-height: 1;
}

.impact-hero__label {
  font-size: 0.9375rem;
  color: #9aa3af;
  max-width: 14rem;
}

.impact-hero__quote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #7dd3c0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: #e8eaed;
}

.impact-hero__quote p {
  margin: 0;
  color: inherit;
}

.impact .metrics-grid {
  margin-bottom: 1.75rem;
}

.impact-blocks {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .impact-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .impact-blocks {
    grid-template-columns: repeat(4, 1fr);
  }
}

.impact-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
}

.impact-block__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}

.impact-block__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #e8eaed;
  margin: 0 0 0.5rem;
}

.impact-block__desc {
  font-size: 0.875rem;
  color: #9aa3af;
  line-height: 1.5;
  margin: 0;
}

.impact .metrics__quant {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  font-weight: 600;
  color: #7dd3c0;
}

/* =====================================================================
   HERO WITH PHOTO BACKGROUND
   ===================================================================== */

.hero--photo {
  padding: clamp(3rem, 8vw, 5rem) var(--space) clamp(3.5rem, 10vw, 6rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 20, 25, 0.94) 0%,
    rgba(15, 20, 25, 0.88) 45%,
    rgba(15, 20, 25, 0.55) 100%
  );
}

.hero__shell {
  position: relative;
  z-index: 1;
}

/* Single-column hero copy — wider max width without the phone column */
.hero__copy--wide {
  max-width: 46rem;
}

/* =====================================================================
   CHALLENGE — mandate line
   ===================================================================== */

.challenge-mandate {
  font-size: 1.05rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--ink);
  margin-top: 1.5rem;
}

/* =====================================================================
   PILLAR ICON
   ===================================================================== */

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* =====================================================================
   IFE FEATURE SECTION — full-bleed photo section
   ===================================================================== */

.feature-section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) var(--space);
  overflow: hidden;
  /* Override main > section max-width constraint */
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.feature-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}

.feature-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 20, 25, 0.88) 0%,
    rgba(15, 20, 25, 0.7) 55%,
    rgba(15, 20, 25, 0.4) 100%
  );
}

.feature-section__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-wide);
  margin: 0 auto;
  color: var(--hero-ink);
}

.feature-section__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--hero-ink);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.feature-section__body {
  font-size: 1.05rem;
  color: #c5cad3;
  max-width: 34rem;
  margin: 0;
  line-height: 1.6;
}

/* =====================================================================
   MARKETPLACE DS FACTS
   ===================================================================== */

.mds-facts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5rem 0 2rem;
}

@media (max-width: 600px) {
  .mds-facts {
    grid-template-columns: 1fr;
  }
}

.mds-fact {
  background: var(--accent-soft);
  border: 1px solid rgba(12, 95, 110, 0.2);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mds-fact__val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

.mds-fact__desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* =====================================================================
   UJM CROPS — 3 zoomed crop cards
   ===================================================================== */

.ujm-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.ujm-header__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}

.ujm-header__sub {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0;
}

.ujm-header__sub a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.9em;
  border: 1.5px solid #4ec5d4;
  border-radius: 20px;
  background: transparent;
  color: #4ec5d4;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.ujm-header__sub a:hover {
  background: #4ec5d4;
  color: #0f1419;
  transform: translateY(-1px);
}

.ujm-crops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .ujm-crops {
    grid-template-columns: 1fr;
  }
}

.ujm-crop__frame {
  aspect-ratio: 3 / 2 !important;
}

/* =====================================================================
   UJM CAROUSEL — one layer at a time
   ===================================================================== */

.ujm-carousel {
  margin-bottom: 2rem;
}

.ujm-carousel__viewport {
  overflow: hidden;
  border-radius: 14px;
}

.ujm-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ujm-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* Image wrapper */
.ujm-slide__img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ujm-slide__img-wrap:hover {
  box-shadow: 0 0 0 2px var(--accent), 0 16px 48px rgba(0, 0, 0, 0.35);
  border-color: var(--accent);
}

.ujm-slide__img-wrap img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
}

.ujm-slide__zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 20, 25, 0.75);
  color: #e0e6ea;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  letter-spacing: 0.03em;
}

.ujm-slide__img-wrap:hover .ujm-slide__zoom-hint {
  opacity: 1;
}

/* Narration below image */
.ujm-slide__narration {
  padding: 1rem 0.25rem 0;
}

.ujm-slide__tag {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ec5d4;
  margin-bottom: 0.4rem;
}

.ujm-slide__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hero-ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ujm-slide__narration p {
  font-size: 0.9375rem;
  color: #c2d0da;
  margin: 0;
  line-height: 1.7;
  max-width: 72ch;
}

.ujm-slide__narration em {
  color: #7dd3c0;
  font-style: normal;
  font-weight: 600;
}

/* Controls */
.ujm-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ujm-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--hero-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.ujm-carousel__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.ujm-carousel__btn:active {
  transform: scale(0.94);
}

.ujm-carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.ujm-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(232, 234, 237, 0.5);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ujm-dot:hover {
  border-color: var(--accent);
  color: var(--hero-ink);
}

.ujm-dot--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scaleX(1.15);
}

/* =====================================================================
   LIGHTBOX — full-screen image viewer
   ===================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.95);
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-ink);
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 1280px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7);
}

.lightbox__caption {
  color: #a0aab8;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.4;
}

.lightbox__caption strong {
  color: var(--hero-ink);
  display: block;
  margin-bottom: 0.2rem;
}

.lightbox__note {
  font-size: 0.78rem;
  color: #5a6472;
  font-style: italic;
  margin: 0.35rem 0 0;
  letter-spacing: 0.01em;
}

/* UJM-specific lightbox caption layout */
.lightbox__tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ec5d4;
  margin-bottom: 0.35rem;
}

.lightbox__body {
  font-size: 0.9rem;
  color: #a0aab8;
  line-height: 1.65;
  margin: 0.5rem 0 0;
  text-align: left;
  max-width: 72ch;
}

.lightbox__body em {
  color: #7dd3c0;
  font-style: normal;
  font-weight: 600;
}

.lightbox__caption {
  text-align: left;
  padding: 0 0.25rem;
}

/* Prev / Next navigation inside lightbox */
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-ink);
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.92);
}

/* Make gallery images show zoom cursor */
.gallery-grid .visual-card--loaded {
  cursor: zoom-in;
}

/* =====================================================================
   TEXT LEGIBILITY FIXES ON DARK SECTIONS
   ===================================================================== */

/* Core body text — was #b0b8c4, too dim */
.section--dark p,
.section--dark .lead {
  color: #c8d4dc;
}

/* Links on dark — was var(--accent) #0c5f6e, too dark for dark bg */
.section--dark a {
  color: #4ec5d4;
}

.section--dark a:hover {
  color: #7dd3c0;
}

/* Gallery card figcaptions sitting below images in dark section */
.section--dark .gallery-grid figcaption {
  color: #b0bcc8;
}

.section--dark .gallery-grid figcaption strong {
  color: #dde5ec;
}

/* Pattern grid column headers */
.section--dark .pattern-grid__header {
  color: #6a7888 !important;
}

/* UJM header sub text */
.section--dark .ujm-header__sub {
  color: #8a9aaa;
}

.section--dark .ujm-header__title {
  color: var(--hero-ink);
}

/* Feature section body text */
.feature-section__body {
  color: #c8d4dc;
}

/* =====================================================================
   PATTERN COMPARISON GRID
   ===================================================================== */

.pattern-grid {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.pattern-grid__header {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr;
  gap: 0.5rem;
  padding: 0 1.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pattern-row {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.pattern-row:hover {
  border-color: var(--accent);
}

.pattern-cell--from {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.pattern-cell--arrow {
  text-align: center;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 1rem;
}

.pattern-cell--to {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 560px) {
  .pattern-grid__header {
    display: none;
  }

  .pattern-row {
    grid-template-columns: 1fr auto 1fr;
  }

  .pattern-cell--from,
  .pattern-cell--to {
    font-size: 0.875rem;
  }
}

/* =====================================================================
   DARK SECTIONS
   ===================================================================== */

.section--dark {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.section--dark .section-label {
  color: #ffffff;
}

.section--dark h2,
.section--dark h3 {
  color: var(--hero-ink);
}

.section--dark p,
.section--dark .lead {
  color: #c8d4dc;
}

.section--dark a {
  color: #4ec5d4;
}

.section--dark a:hover {
  color: #7dd3c0;
}

.section--dark .ujm-header__title {
  color: var(--hero-ink);
}

.section--dark .ujm-header__sub {
  color: #9aaab8;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cards stay light on dark background — creates strong contrast */
.section--dark .visual-card {
  background: transparent;
}

.section--dark .pattern-grid__header {
  color: #5a6470;
}

.section--dark .pattern-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.section--dark .pattern-row:hover {
  border-color: var(--accent);
  background: rgba(12, 95, 110, 0.18);
}

.section--dark .pattern-cell--from {
  color: #4ec5d4;
}

.section--dark .pattern-cell--arrow {
  color: #3d4955;
}

.section--dark .pattern-cell--to {
  color: var(--hero-ink);
}

/* =====================================================================
   SCROLL-TRIGGERED ANIMATIONS
   ===================================================================== */

.animate-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-ready.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.animate-ready:nth-child(1) { transition-delay: 0s; }
.animate-ready:nth-child(2) { transition-delay: 0.08s; }
.animate-ready:nth-child(3) { transition-delay: 0.16s; }
.animate-ready:nth-child(4) { transition-delay: 0.24s; }
.animate-ready:nth-child(5) { transition-delay: 0.32s; }
.animate-ready:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .animate-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =====================================================================
   MICRO-INTERACTIONS — hover lifts & press feedback
   ===================================================================== */

/* Pillar cards */
.pillar {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease !important;
}

.pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border-color: var(--accent) !important;
}

/* Gallery cards */
.visual-card {
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease !important;
}

.visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Scale cards in challenge */
.scale-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scale-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* MDS fact cards */
.mds-fact {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

.mds-fact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(12, 95, 110, 0.15);
}

/* Impact blocks */
.impact-block {
  transition: transform 0.2s ease, background 0.2s ease;
}

.impact-block:hover {
  transform: translateY(-3px);
}

/* Pattern rows */
.pattern-row {
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.pattern-row:hover {
  transform: translateX(2px);
}

/* Buttons — press scale */
.button {
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease !important;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.button--pressing,
.button:active {
  transform: scale(0.96) translateY(0) !important;
  box-shadow: none !important;
}

/* Nav links — slide underline */
.site-nav a {
  position: relative;
  overflow: hidden;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: translateX(-102%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover::after,
.site-nav a.nav-active::after {
  transform: translateX(0);
}

.site-nav a.nav-active {
  color: var(--accent);
}

/* Feature section — subtle parallax feel */
.feature-section__bg {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* UJM crop cards */
.ujm-crop {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.ujm-crop:hover {
  transform: translateY(-5px) scale(1.01) !important;
}

/* Pillar icon subtle spin on card hover */
.pillar:hover .pillar__icon {
  transform: rotate(8deg) scale(1.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar__icon {
  transition: transform 0.2s ease;
}

/* =====================================================================
   DELIVERY DENSITY BANNER
   ===================================================================== */

.density-banner {
  background: var(--accent-soft);
  border-top: 1px solid rgba(12, 95, 110, 0.2);
  border-bottom: 1px solid rgba(12, 95, 110, 0.2);
  padding: 1.5rem var(--space);
}

.density-banner__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.density-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.density-stat__val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.density-stat__label {
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 10rem;
  line-height: 1.3;
}

.density-sep {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.3;
  flex-shrink: 0;
}

.density-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
  min-width: 16rem;
  line-height: 1.5;
  border-left: 2px solid rgba(12, 95, 110, 0.3);
  padding-left: 1rem;
}

@media (max-width: 640px) {
  .density-note {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(12, 95, 110, 0.2);
    padding-top: 0.75rem;
  }

  .density-sep {
    display: none;
  }
}

/* =====================================================================
   SECTION NOTE (small inline helper text)
   ===================================================================== */

.section-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0.5rem 0 1.5rem;
  line-height: 1.5;
}

.section-note code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.8em;
}

/* =====================================================================
   HERO SCOPE NOTE
   ===================================================================== */

.hero__scope-note {
  font-size: 0.8125rem;
  color: rgba(232, 234, 237, 0.55);
  margin: 0.5rem 0 0;
  letter-spacing: 0.01em;
}

/* =====================================================================
   PRINT
   ===================================================================== */

@media print {
  .site-header,
  .skip-link {
    position: static;
    transform: none;
  }

  .site-nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero {
    background: #fff;
    color: #000;
    padding: 1rem 0;
    border-bottom: 2pt solid #000;
  }

  .hero__eyebrow,
  .hero__hook,
  .hero__byline,
  .hero__teaser,
  .hero__note,
  .hero__poster-hint {
    color: #222;
  }

  .hero__hook em {
    color: #0c5f6e;
  }

  .hero__stat {
    border-color: #ccc;
    background: #f5f5f5;
  }

  .hero__stat-value {
    color: #0c5f6e;
  }

  .hero__stat-label {
    color: #444;
  }

  .hero-mock,
  .button {
    display: none !important;
  }

  .hero__poster {
    border: 1pt dashed #999;
    min-height: 120pt;
    box-shadow: none;
  }

  .hero__poster-img {
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    max-height: 180pt;
  }

  .metrics {
    background: #f5f5f5;
    color: #000;
    border: 1pt solid #ccc;
  }

  .metrics h2,
  .metrics p,
  .metrics li,
  .metrics__quant {
    color: #000;
  }

  .pillar,
  .bridge,
  .forward,
  .video-card,
  .visual-card,
  .figma-card,
  .process-step {
    break-inside: avoid;
  }

  .video-card__player {
    box-shadow: none;
  }
}
