/**
 * Long-read narrative layout for Percepto AIM / Remote ID.
 * Scoped under .aim-story to avoid clashes with case-study.css (.cs-hero, .cs-body, …).
 */

.aim-story {
  color: var(--body-text);
}

/* ── Hero ───────────────────────────────────────────────── */
.aim-story__hero {
  position: relative;
  min-height: clamp(420px, 58vh, 680px);
  background: #141414;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: var(--space-12) 0 var(--space-10);
  overflow: hidden;
}

.aim-story__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), transparent 55%);
  pointer-events: none;
}

.aim-story__hero-inner {
  position: relative;
  z-index: 2;
  max-width: min(52rem, 100%);
}

.aim-story__hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-4);
}

.aim-story__hero-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  color: #fff;
}

.aim-story__hero-lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.aim-story__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-8);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
}

/* Deck link under hero */
.aim-story__deck {
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* ── Sections ───────────────────────────────────────────── */
.aim-story__section {
  padding: var(--space-12) 0;
}

.aim-story__section--tint {
  background: var(--bg-off);
}

.aim-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  align-items: start;
}

@media (max-width: 768px) {
  .aim-story__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .aim-story__aside {
    position: static;
  }
}

.aim-story__aside {
  position: sticky;
  top: calc(var(--space-12) + var(--space-4));
}

.aim-story__kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--label-caps);
  margin-bottom: var(--space-3);
}

.aim-story__h2 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--heading-on-light);
  margin-bottom: var(--space-4);
}

.aim-story__subtext {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid);
  margin-bottom: var(--space-5);
}

.aim-story__p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--body-text);
  margin-bottom: var(--space-5);
}

.aim-story__p:last-child {
  margin-bottom: 0;
}

.aim-story__p strong {
  color: var(--heading-on-light);
  font-weight: 600;
}

.aim-story__list {
  list-style: none;
  margin: var(--space-6) 0 var(--space-8);
  padding: 0;
}

.aim-story__list li {
  font-size: 16px;
  line-height: 1.65;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  position: relative;
}

.aim-story__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--light);
  font-weight: 500;
}

.aim-story__list li strong {
  color: var(--heading-on-light);
}

.aim-story__h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--heading-on-light);
}

.aim-story__block {
  margin-bottom: var(--space-10);
}

.aim-story__block:last-child {
  margin-bottom: 0;
}

.aim-story__quote {
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-7);
  background: var(--surface-raised);
  border-left: 4px solid var(--ink);
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mid);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.aim-story__figure {
  margin: 0;
}

.aim-story__img {
  width: 100%;
  height: auto;
  display: block;
}

.aim-story__caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mid);
  margin-top: var(--space-4);
  max-width: 48rem;
}

/* Full-bleed band */
.aim-story__bleed {
  margin: var(--space-10) 0;
  background: var(--bg-off);
}

.aim-story__bleed .aim-story__figure {
  margin: 0;
}

/* Video */
.aim-story__video {
  background: linear-gradient(180deg, var(--bg-off), var(--bg));
  padding: var(--space-12) 0;
  margin: var(--space-10) 0 0;
}

.aim-story__video-caption {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid);
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.aim-story__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r, 12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.aim-story__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
