/* SellSmarter — shared homepage styles
   Used by both variant A and variant B inside their own artboards. */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --navy: #002032;
  --navy-2: #00324d;
  --accent: #00a9d1;
  --accent-soft: rgba(0, 169, 209, 0.12);
  --ink: #0a1924;
  --muted: #5a6b78;
  --line: rgba(0, 32, 50, 0.08);
  --paper: #ffffff;
  --cream: #f7f6f3;
  --cream-2: #efece5;
}

/* Each variant scopes its styles under .v-a / .v-b so the artboards don't
   bleed into each other or into the design canvas chrome. The base type +
   link reset live on body too so any standalone page that loads this sheet
   gets the brand baseline. */
body {
  font-family:
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings:
    "ss01" on,
    "ss02" on;
  margin: 0;
}
body a {
  color: inherit;
  text-decoration: none;
}

.v-a,
.v-b {
  font-family:
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings:
    "ss01" on,
    "ss02" on;
}

.v-a *,
.v-b * {
  box-sizing: border-box;
}
.v-a a,
.v-b a {
  color: inherit;
  text-decoration: none;
}

/* ───────────────────────── Utility scaffolding ─────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  display: block;
}
.eyebrow.on-dark {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(0, 32, 50, 0.18);
}
.btn-ghost-dark:hover {
  border-color: var(--navy);
  background: rgba(0, 32, 50, 0.04);
}

.arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ───────────────────────── Navbar ─────────────────────────── */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 26px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Optional: sticky scroll-blur behavior for long-scrolling pages.
   At top: transparent + base padding. After scroll: blurred navy + tighter padding. */
.navbar.is-sticky {
  position: fixed;
  transition:
    background 0.2s ease,
    padding 0.2s ease,
    backdrop-filter 0.2s ease;
}
.navbar.is-sticky.scrolled {
  background: rgba(0, 32, 50, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg {
  width: 16px;
  height: 16px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a {
  color: inherit;
  opacity: 0.78;
  transition:
    opacity 0.15s,
    color 0.15s;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-links a.active {
  opacity: 1;
  color: var(--accent);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  font-size: 13px;
  padding: 11px 18px;
}

.on-dark .logo {
  color: #fff;
}
.on-dark .nav-links a {
  color: rgba(255, 255, 255, 0.78);
}
.on-dark .nav-links a:hover {
  color: #fff;
}

/* ───────────────────────── Section spacing ─────────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
}
.section-tight {
  padding: 96px 0;
}
.section.dark {
  background: var(--navy);
  color: #fff;
}
.section.dark .muted {
  color: rgba(255, 255, 255, 0.7);
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 18px 0 18px;
  text-wrap: balance;
}
.section.dark .section-head h2 {
  color: #fff;
}
.section-head p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  text-wrap: pretty;
}
.section.dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

/* ───────────────────────── Card primitives ─────────────────────────── */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0, 32, 50, 0.18);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ───────────────────────── Hero shared ─────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 130px;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.hero h1 {
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 22px 0 28px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Subtle decorative glow */
.hero-glow {
  position: absolute;
  pointer-events: none;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.18;
  filter: blur(40px);
  right: -200px;
  top: -200px;
}

/* ───────────────────────── Bars graphic (variant A) ─────────────────────────── */
.bars-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 36px;
  overflow: hidden;
}
.bars-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bars-label .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 169, 209, 0.18);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}
.bars-label .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.bars-canvas {
  position: relative;
  height: calc(100% - 30px);
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.bars-canvas .grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.bar {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  position: relative;
}
.bar.accent {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 169, 209, 0.4) 100%);
  box-shadow: 0 0 30px rgba(0, 169, 209, 0.4);
}
.bar.accent::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 169, 209, 0.2);
}
.bars-trend {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 36px;
  height: calc(100% - 90px);
  pointer-events: none;
}

/* ───────────────────────── Problems grid ─────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ───────────────────────── Solution band ─────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tag.accent {
  background: var(--accent);
  color: var(--navy);
  border-color: transparent;
}

/* Big numeric stat block on solution side */
.stat-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.stat-item .stat-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-wrap: pretty;
}

/* ───────────────────────── Method roadmap ─────────────────────────── */
.method-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.method-row::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.method-step {
  position: relative;
  z-index: 1;
}
.method-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.method-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.method-step p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 320px;
}

/* ───────────────────────── Levels (3 niveaus) ─────────────────────────── */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.level-card {
  border-radius: 24px;
  padding: 36px;
  background: var(--cream);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.level-card .level-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 32, 50, 0.05);
  margin-bottom: 24px;
}
.level-card h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.level-card p {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 24px;
}
.level-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.level-card li {
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.level-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.level-card .level-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 28px;
}
.level-card .level-icon svg {
  width: 26px;
  height: 26px;
}
.level-card.featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.level-card.featured .level-tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}
.level-card.featured p {
  color: rgba(255, 255, 255, 0.7);
}
.level-card.featured li {
  color: rgba(255, 255, 255, 0.9);
}
.level-card.featured .level-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ───────────────────────── Peter section ─────────────────────────── */
.peter-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}
.peter-photo {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
}
.peter-photo .photo-placeholder {
  text-align: center;
  padding: 0 24px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.peter-photo .photo-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 96px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.04em;
}
.peter-photo::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  right: -1px;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}
.peter-meta {
  display: flex;
  gap: 36px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.peter-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.peter-meta .meta-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.peter-meta .meta-label {
  font-size: 13px;
  color: var(--muted);
}

/* ───────────────────────── Final CTA ─────────────────────────── */
.final-cta {
  background: var(--navy);
  color: #fff;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.final-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.final-cta h2 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 24px;
  text-wrap: balance;
}
.final-cta h2 em {
  font-style: normal;
  color: var(--accent);
}
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 500;
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 169, 209, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .ico svg {
  width: 16px;
  height: 16px;
}
.contact-row .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
}

/* ───────────────────────── Footer ─────────────────────────── */
.footer {
  background: #001825;
  color: rgba(255, 255, 255, 0.5);
  padding: 40px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ───────────────────────── Variant B overrides ─────────────────────────── */
.v-b .hero h1 {
  font-size: 84px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.v-b .hero {
  padding: 180px 0 140px;
}
.v-b .section-head h2 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Variant B: 'index pill' design for problems */
.v-b .problems-grid {
  grid-template-columns: 1fr;
  gap: 0;
}
.v-b .problem-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding-left 0.2s ease;
}
.v-b .problem-row:last-child {
  border-bottom: 1px solid var(--line);
}
.v-b .problem-row:hover {
  padding-left: 12px;
}
.v-b .problem-row .pnum {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.v-b .problem-row h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.v-b .problem-row p {
  font-size: 16px;
  color: var(--muted);
}

/* Variant B: vertical method timeline */
.v-b .method-row {
  grid-template-columns: 1fr;
  gap: 0;
}
.v-b .method-row::before {
  display: none;
}
.v-b .method-vstep {
  display: grid;
  grid-template-columns: 100px 1fr 1.2fr;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
  border-top: 1px solid var(--line);
  position: relative;
}
.v-b .method-vstep:last-child {
  border-bottom: 1px solid var(--line);
}
.v-b .method-vstep .num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.v-b .method-vstep h3 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.v-b .method-vstep p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
}

/* Variant B: hero numbers strip */
.v-b .hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.v-b .hero-stat .num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.v-b .hero-stat .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Variant B "skyline" bars graphic — narrower bars, more of them */
.v-b .bars-canvas {
  gap: 8px;
}
.v-b .bars-canvas .bar {
  border-radius: 4px 4px 2px 2px;
}

/* Final CTA variation in B — center-aligned */
.v-b .final-cta-grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  gap: 40px;
}
.v-b .final-cta h2 {
  font-size: 80px;
}
.v-b .final-cta .hero-ctas {
  justify-content: center;
}
.v-b .contact-strip {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 40px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.v-b .contact-strip .row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.v-b .contact-strip .row .ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0, 169, 209, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-b .contact-strip .row .ico svg {
  width: 14px;
  height: 14px;
}

/* ─────────────────────────────────────────────────────────────────────
   Animations — shared across all pages
   ───────────────────────────────────────────────────────────────────── */

/* Reveal-on-scroll: opacity 0 + 24px translate, toggled by .in.
   JS uses IntersectionObserver to add .in when the element scrolls into view,
   with a setTimeout fallback so nothing stays invisible if the observer misses. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Stagger helpers — use on grid children to make a "wave" reveal. */
.reveal.d-1 {
  transition-delay: 0.08s;
}
.reveal.d-2 {
  transition-delay: 0.16s;
}
.reveal.d-3 {
  transition-delay: 0.24s;
}
.reveal.d-4 {
  transition-delay: 0.32s;
}
.reveal.d-5 {
  transition-delay: 0.4s;
}

/* On-mount fade-up: pure CSS animation, runs immediately. Use on hero items. */
@keyframes om-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.om-fade-up {
  animation: om-fade-up 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* Bar chart rise — scaleY from 0 → 1 anchored at bottom. */
.bar {
  transform-origin: bottom center;
}
.bar.rise {
  animation: bar-rise 1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes bar-rise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* The peak-marker dot above the accent bar — fades in after the bars settle. */
.bar.accent.rise::after {
  animation: dot-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.9s both;
}
@keyframes dot-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Trend line: dashes animate in after bars. */
.bars-trend path {
  stroke-dasharray: 2 2;
  stroke-dashoffset: 0;
}
.bars-trend.rise path {
  animation: trend-in 1.2s ease 1.1s both;
}
@keyframes trend-in {
  from {
    opacity: 0;
    stroke-dashoffset: 200;
  }
  to {
    opacity: 0.5;
    stroke-dashoffset: 0;
  }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .om-fade-up,
  .bar.rise,
  .bar.accent.rise::after,
  .bars-trend.rise path {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   Continuous micro-animations — bring the page to life
   ───────────────────────────────────────────────────────────────────── */

/* Pulsing dot for "live" pills (pipeline header, status indicators) */
.bars-label .pill .dot {
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 169, 209, 0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 169, 209, 0);
    opacity: 0.7;
  }
}

/* Accent bar — subtle shimmer once risen */
.bar.accent {
  position: relative;
  overflow: hidden;
}
.bar.accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 30%);
  transform: translateY(-100%);
  animation: bar-shimmer 3.6s ease-in-out 1.4s infinite;
}
@keyframes bar-shimmer {
  0% {
    transform: translateY(-100%);
  }
  60% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* Hero glow — slow drift */
.hero-glow {
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.18;
  }
  100% {
    transform: translate(-3%, 2%) scale(1.08);
    opacity: 0.24;
  }
}

/* Solution accent tag — micro hover pop */
.tag {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.tag:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}
.tag.accent:hover {
  background: var(--accent);
  color: var(--navy);
  filter: brightness(1.05);
}

/* Method roadmap connector — draw in when the row enters view */
.method-row {
  position: relative;
}
.method-row.in::before {
  animation: method-line 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both;
}
.method-row::before {
  transform-origin: left center;
  transform: scaleX(0);
}
.method-row.in::before {
  transform: scaleX(1);
}
@keyframes method-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.method-row::before {
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s;
}

/* Card hover — add a soft accent edge */
.card {
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px transparent inset;
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}
.card:hover::after {
  box-shadow: 0 0 0 1px rgba(0, 169, 209, 0.25) inset;
}

/* Level card — subtle inner accent line on hover */
.level-card {
  position: relative;
}
.level-card::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.level-card:hover::after {
  transform: scaleX(1);
}
.level-card.featured::after {
  background: var(--accent);
}

/* Stat numbers — entrance "pop" when revealed */
.stat-num {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.reveal .stat-num {
  transform: scale(0.8);
}
.reveal.in .stat-num {
  transform: scale(1);
}

/* Buttons — slight arrow nudge on hover */
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* Peter photo wrapper for image-slot — keeps the reveal animation, the
   slot itself handles its empty/filled appearance. */
.peter-slot-wrap {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.peter-slot-wrap image-slot {
  display: block;
  width: 100%;
  height: 100%;
}
.peter-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
