/* Sections 02-06. Loaded after style.css, so these rules win.
   Rhythm: 02 blue, 03 LIGHT, 04 dark, 05 LIGHT, 06 dark.
   Only transform and opacity animate (reveals come from style.css). */

:root {
  --paper: #f5f5f2;
  --ink: #0b0c10;
  --ink-muted: #565b67;
  --ink-faint: #8d919b;
  --paper-line: #e2e2dc;
  --deep: #2f5fe0;
  --card-dark: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 64px rgba(0, 0, 0, .6);
  --card-light: 0 1px 2px rgba(12, 14, 20, .04), 0 22px 50px -24px rgba(12, 14, 20, .22);
}

/* ── shared ─────────────────────────────────────────────────────────── */
.case .serif, .speed .serif, .work .serif, .funnel .serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: -.012em;
  line-height: .9;
  color: var(--accent-soft);
}
.case .line, .speed .line, .work .line, .funnel .line { padding-bottom: .1em; padding-right: .08em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

.speed .display.lg, .work .display.lg, .funnel .display.lg { font-size: clamp(40px, 11.4vw, 50px); }
.speed .note, .work .note, .funnel .note { font-size: 15.5px; max-width: 42ch; }

/* ── light bands ────────────────────────────────────────────────────── */
.scene.light { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--paper-line); }
.light .chrome { color: var(--ink-faint); }
.light .chrome .tag:first-child { color: var(--deep); }
.light .eyebrow, .light .serif { color: var(--deep); }
.light .note { color: var(--ink-muted); }

/* ── 02 case study ──────────────────────────────────────────────────── */
.case {
  background:
    radial-gradient(80% 60% at 88% 8%, rgba(255, 255, 255, .16), transparent 62%),
    linear-gradient(165deg, #5585ff 0%, #4d7cfe 40%, #3563e8 100%);
}
.case-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.case .eyebrow { color: rgba(6, 7, 10, .7); }
.case .display.xl { font-size: clamp(76px, 20vw, 250px); letter-spacing: -.055em; line-height: .88; }
.case .serif { color: #fff; letter-spacing: -.02em; font-size: 1.1em; }
.case-foot {
  margin-top: clamp(40px, 8vh, 96px);
  padding-top: 24px;
  border-top: 1px solid rgba(6, 7, 10, .24);
  display: grid;
  gap: 28px;
}
.case-sub { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: rgba(6, 7, 10, .76); text-align: left; }
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; }
.case-meta div { display: flex; flex-direction: column; padding: 0 14px; border: 0; border-left: 1px solid rgba(6, 7, 10, .2); border-radius: 0; background: none; }
.case-meta div:first-child { padding-left: 0; border-left: 0; }
.case-meta dt { font-size: 10px; letter-spacing: .16em; color: rgba(6, 7, 10, .62); }
.case-meta dd { margin-top: auto; padding-top: 10px; font-size: clamp(21px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }

/* ── 03 speed (light) ───────────────────────────────────────────────── */
.light .ruler {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  box-shadow: var(--card-light);
  padding: clamp(22px, 3.2vw, 38px);
}
.ruler-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.light .ruler-row { margin-bottom: 14px; }
.light .ruler-k { color: var(--ink-muted); }
.light .ruler-track { height: 46px; border-radius: 12px; background: #f0f0eb; }
.light .ruler-fill { border-radius: 12px; }
.light .ruler-fill.slow { background: linear-gradient(90deg, #d6d8de, #c4c8d0); }
.light .ruler-fill.fast { background: linear-gradient(90deg, var(--deep), var(--accent)); }
.light .ruler-v { font-size: 15px; color: var(--ink); }
.light .ruler-v.accent { color: var(--deep); }
.light .ruler-scale { margin-top: 10px; color: var(--ink-faint); }

/* ── 04 workload (dark) ─────────────────────────────────────────────── */
.work { background: radial-gradient(60% 70% at 80% 50%, rgba(77, 124, 254, .07), transparent 70%); }
.work .squares {
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #0e1117, #0a0c10);
  box-shadow: var(--card-dark);
}
.work .squares i { border-radius: 5px; background: #1c212b; }
.work .squares i.us { background: linear-gradient(160deg, var(--accent-soft), var(--accent)); }
.work .sw.him { background: #1c212b; box-shadow: 0 0 0 1px #2a303c inset; }
.work .legend { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ── 05 funnel (light) ──────────────────────────────────────────────── */
.light .chart {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  box-shadow: var(--card-light);
  padding: clamp(22px, 3vw, 34px);
}
.light .chart-head { color: var(--ink-faint); font-size: 10.5px; letter-spacing: .16em; font-weight: 600; }
.light .chart-tot { color: var(--ink); font-size: clamp(26px, 3.4vw, 38px); }
.light .curve .stroke { stroke: var(--deep); stroke-width: 2.4; }
.light .chart-axis { color: var(--ink-faint); border-top: 1px solid var(--paper-line); padding-top: 10px; }
.light .costs { gap: 14px; margin-top: clamp(28px, 5vw, 56px); }
.light .cost {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  box-shadow: var(--card-light);
  padding: 22px 22px 24px;
}
.light .cost-k { color: var(--ink-faint); }
.light .cost-v { margin-top: 14px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.light .cost-v s { color: #a6aab3; font-size: .62em; font-weight: 600; vertical-align: .18em; }
.light .cost-d { top: 18px; right: 18px; background: rgba(63, 184, 115, .12); border-color: rgba(38, 150, 88, .3); color: #1d8049; }

/* ── 06 the money (dark) ────────────────────────────────────────────── */
.money { background: radial-gradient(70% 55% at 50% 45%, rgba(77, 124, 254, .13), transparent 70%); }
.money-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.money .kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--accent-soft); }
.money .kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.money-grid { display: grid; gap: 14px; }
.money-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #0e1117, #0a0c10);
  box-shadow: var(--card-dark);
  min-width: 0;
  container-type: inline-size;
}
.money-cell:last-child { background: linear-gradient(180deg, rgba(63, 184, 115, .07), #0a0c10 70%); border-color: rgba(63, 184, 115, .18); }
.money .big { line-height: .9; }
.money-grid .display.xxl { font-size: clamp(44px, 19cqi, 132px); letter-spacing: -.05em; }
.money .big-k { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.money-cell:last-child .big-k { border-top-color: rgba(63, 184, 115, .2); color: var(--green-soft); }
.money .note { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: none; }

/* ── phone ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .case .display.xl { font-size: clamp(64px, 21.5vw, 110px); }
  .money-cell { min-height: 0; }
  .case-meta dd { font-size: clamp(19px, 5.6vw, 24px); }
  .case-meta div { padding: 0 10px; flex: none; }
  .case-meta div:first-child { padding-left: 0; }
  .ruler-head { margin-bottom: 18px; }
  .light .ruler-track { height: 42px; }
}

/* ── desktop ────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .case-foot { grid-template-columns: 1fr 1.25fr; align-items: end; gap: 48px; padding-top: 30px; }
  .case-meta div { padding: 0 24px; }
  .money-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .money-cell { min-height: clamp(240px, 34vh, 340px); }
  .speed .display.lg, .work .display.lg, .funnel .display.lg { font-size: clamp(48px, 6vw, 80px); }
  .speed .split, .work .split { grid-template-columns: 1fr 1.08fr; }
}
@media (min-width: 1280px) {
  .speed .display.lg, .work .display.lg, .funnel .display.lg { font-size: 80px; }
}

/* ═══ service pass (09-27): "we run the sales side of your Instagram" ═══ */

/* section numbers read like a product doc; the labels alone are enough */
.chrome .tag:first-child { display: none; }
.chrome { justify-content: flex-end; }

/* hero accent word in the serif, matched to the sans cap height */
.hero .display .serif { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -.01em; }

/* ── what we run ── */
.svc h2 { margin-bottom: clamp(36px, 6vw, 72px); }
.svc .serif { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; color: var(--accent-soft); font-size: 1.1em; }
.job {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.job-n { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent-soft); margin-bottom: 10px; }
.job-h { font-size: clamp(30px, 7.4vw, 52px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.job-p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 30ch; }
.job-close { margin-top: 18px; font-size: clamp(30px, 7.4vw, 52px); font-weight: 800; letter-spacing: -.035em; }
@media (min-width: 768px) {
  .job { grid-template-columns: 1fr 1fr; gap: 56px; }
  .job:nth-of-type(even) .job-copy { order: 2; }
}

/* 01: an Instagram feed post */
.ig-post {
  margin: 0;
  width: min(100%, 380px);
  justify-self: center;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid #22262f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 64px rgba(0, 0, 0, .6);
}
.ig-top { display: flex; align-items: center; gap: 10px; padding: 11px 12px; font-size: 13.5px; }
.ig-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #d6457a; }
.ig-name { display: grid; line-height: 1.2; font-weight: 700; }
.ig-name em { font-style: normal; font-weight: 400; font-size: 11.5px; color: #a1a7b3; }
.ig-dots { margin-left: auto; color: #a1a7b3; letter-spacing: 1px; }
.ig-media { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ig-cta { display: flex; justify-content: space-between; padding: 13px 14px; background: #3d6bf0; color: #fff; font-size: 14px; font-weight: 700; }

/* 02: the reply. Clean rows, one clock. Driven by app.js (.go, .done, .rep) */
.reply { width: min(100%, 420px); justify-self: center; display: grid; gap: 22px; }
.inbox { display: grid; gap: 6px; }
.dm {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: #0f1218; border: 1px solid #191d26;
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .45s var(--ease), transform .55s cubic-bezier(.34, 1.3, .64, 1), border-color .4s var(--ease), background .4s var(--ease);
}
.reply.go .dm { opacity: 1; transform: none; }
.reply.go .dm:nth-child(2) { transition-delay: .06s; } .reply.go .dm:nth-child(3) { transition-delay: .12s; }
.reply.go .dm:nth-child(4) { transition-delay: .18s; } .reply.go .dm:nth-child(5) { transition-delay: .24s; }
.reply.go .dm:nth-child(6) { transition-delay: .30s; } .reply.go .dm:nth-child(7) { transition-delay: .36s; }
.reply.go .dm:nth-child(8) { transition-delay: .42s; }
.av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #1c212b; }
.dm-t { display: grid; min-width: 0; line-height: 1.25; }
/* unread, the way Instagram shows it: heavy name, bright bold preview, blue dot */
.dm-t b { font-size: 14px; font-weight: 800; letter-spacing: .02em; color: #fff; transition: font-weight .3s, color .3s var(--ease); }
.dm-t small { font-size: 13px; font-weight: 600; color: #e9edf5; transition: color .3s var(--ease); }
.dm.rep .dm-t b { font-weight: 500; color: #c9ceda; }
.dm-r { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: transform .3s var(--ease), opacity .3s var(--ease); }
/* a row gets answered: text flips, dot pops away, the row settles */
.dm.rep { border-color: #151920; background: #0c0e13; animation: settle .5s cubic-bezier(.34, 1.4, .64, 1); }
.dm.rep small { color: var(--muted); font-weight: 400; }
.dm.rep .dm-r { opacity: 0; }
.dm.rep .unread { transform: scale(0); opacity: 0; }
@keyframes settle { 40% { transform: scale(1.025); } }
.clock { text-align: center; }
.clock-n { display: block; font-size: clamp(56px, 16vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-k { display: block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.reply.landed .clock-n { color: var(--accent-soft); animation: settle .6s cubic-bezier(.34, 1.4, .64, 1); }

/* 03: buyers, each with a brief. Auto-cycles; tap any row to open it */
.leads {
  width: min(100%, 440px); justify-self: center;
  border-radius: 22px; padding: 10px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 64px rgba(0, 0, 0, .6);
}
.leads-top { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 10px 14px; font-weight: 800; font-size: 16px; }
.leads-n { font-size: 12px; font-weight: 600; color: var(--green-soft); }
.lead { border-radius: 16px; transition: background .35s var(--ease); cursor: pointer; }
.lead + .lead { margin-top: 4px; }
.lead.open { background: #121722; }
.lead-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; }
.lead-t { display: grid; min-width: 0; line-height: 1.25; }
.lead-t b { font-size: 14px; }
.lead-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { margin-left: auto; flex: none; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #b9c3d6; background: #1a1f2a; transition: color .3s var(--ease), background .3s var(--ease); }
.chip.ok { color: #0b2417; background: var(--green-soft); animation: settle .5s cubic-bezier(.34, 1.4, .64, 1); }
/* the brief opens with grid-rows 0fr -> 1fr: smooth height with no measuring */
.brief { display: grid; grid-template-rows: 0fr; margin: 0; padding: 0 12px; transition: grid-template-rows .35s var(--ease), padding .35s var(--ease); }
.brief > .brief-in { overflow: hidden; display: grid; gap: 8px; }
.lead.open .brief { grid-template-rows: 1fr; padding: 0 12px 14px 54px; }
.brief div { display: flex; gap: 12px; font-size: 13.5px; }
.brief dt { flex: none; width: 70px; color: var(--muted); }
.brief dd { margin: 0; color: var(--fg); }
.brief div { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lead.open .brief div { opacity: 1; transform: none; }
.lead.open .brief div:nth-child(2) { transition-delay: .06s; } .lead.open .brief div:nth-child(3) { transition-delay: .12s; }
.lead.open .brief div:nth-child(4) { transition-delay: .18s; }
.leads-note { margin: 10px 10px 4px; font-size: 11px; color: #5a6273; }

/* ── plain before / after numbers (replaces charts and grids) ── */
.ba { display: grid; gap: 18px; }
.ba-row { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.light .ba-row { border-color: rgba(0, 0, 0, .1); }
.ba-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ba-old, .ba-new, .ba-plain { font-size: clamp(44px, 12vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ba-old { color: var(--muted); opacity: .6; text-decoration-thickness: 3px; }
.ba-new { color: var(--accent-soft); }
.light .ba-new { color: #2f5fe0; }
.funnel .ba-new { color: var(--green); }
.ba-line { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; color: var(--muted); }
.ba-line s { opacity: .6; }
.ba-line b { color: inherit; font-weight: 800; }
.light .ba-line b { color: #0b0d12; }

@media (prefers-reduced-motion: reduce) {
  .dm, .brief div { transform: none; }
  .dm.rep, .reply.landed .clock-n, .chip.ok { animation: none; }
}

/* ── case study in HIS brand (Logan 09-27: the blue was too loud) ── */
.case.dd {
  background: radial-gradient(90% 60% at 50% 35%, #16171b 0%, #050506 70%), #000;
  color: #fff;
  border-bottom: 1px solid #1a1b1f;
}
.case.dd .eyebrow, .case.dd .chrome .tag { color: #8b8f98; }
.case.dd .eyebrow::before { background: #3a3d44; }
.dd-mark {
  display: block;
  width: clamp(120px, 26vw, 220px);
  height: auto;
  margin: clamp(18px, 3vw, 32px) 0 clamp(18px, 3vw, 28px);
  mix-blend-mode: screen; /* drops the file's black field onto our black */
}
.dd-name {
  font-size: clamp(38px, 9.6vw, 112px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}
.case.dd .case-foot { border-top-color: #24262c; }
.case.dd .case-sub { color: #a4a8b1; }
.case.dd .case-meta dt { color: #7d818b; }
.case.dd .case-meta dd { color: #fff; }
.case.dd .case-meta div { border-color: #24262c; }

/* ── the money, bigger (Logan 09-27) ── */
/* stacked full width, and each figure sized to its own card (container
   units), so "$340,000+" is as big as the card allows and never spills */
.money .money-grid { grid-template-columns: 1fr !important; }
.money .money-cell { container-type: inline-size; }
.money .num.display.xxl { font-size: 18.2cqi; letter-spacing: -.05em; line-height: .95; white-space: nowrap; }

@media (max-width: 767px) { .money .money-cell { padding-left: 18px; padding-right: 18px; } }

/* ── case study as his Instagram profile (Logan 09-28: "a different vibe") ── */
.case.ddig { background: #000; color: #fff; border-bottom: 1px solid #16171b; }
.case.ddig .eyebrow { color: #8b8f98; }
.igp { width: min(100%, 560px); margin: 18px auto 0; }
.igp-top { display: flex; align-items: center; gap: clamp(18px, 5vw, 36px); }
.igp-av { flex: none; width: clamp(84px, 22vw, 128px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #000, 0 0 0 5.5px #d6457a; }
.igp-nums { flex: 1; display: flex; justify-content: space-around; margin: 0; text-align: center; }
.igp-nums div { display: flex; flex-direction: column; }
.igp-nums dd { margin: 0; font-size: clamp(17px, 4.8vw, 24px); font-weight: 800; letter-spacing: -.02em; }
.igp-nums dt { font-size: clamp(12px, 3.2vw, 14px); color: #a8adb7; }
.igp-bio { margin-top: 14px; line-height: 1.4; }
.igp-bio b { font-size: 15px; }
.igp-bio p { margin-top: 2px; font-size: 15px; color: #dfe3ea; max-width: 40ch; }
.igp-handle { font-size: 15px; color: #a9c1ff; }
.igp-btns { display: flex; gap: 6px; margin-top: 16px; }
.igp-btns span { flex: 1; padding: 10px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 700; background: #1f2229; }
.igp-btns span.pri { background: #4d7cfe; }
.igp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 18px; }
.igp-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 767px) { .igp-grid { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); } }
@media (min-width: 768px) { .igp-grid { border-radius: 14px; overflow: hidden; } }
.igp .eyebrow { margin-bottom: 22px; }

/* ── workload + funnel meters (09-28): dark cards that play themselves ── */
.work, .funnel { background: var(--bg); color: var(--fg); }
.funnel .note, .work .note { color: var(--muted); }
.funnel .serif, .work .serif { color: var(--accent-soft); }
.meter {
  width: min(100%, 460px); justify-self: center;
  display: grid; gap: 26px;
  padding: 24px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 64px rgba(0, 0, 0, .6);
}
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); }
.m-n { font-size: clamp(34px, 9vw, 48px); font-weight: 800; letter-spacing: -.04em; color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1; }
.m-n.green { color: var(--green); }
.m-track { margin-top: 12px; height: 10px; border-radius: 999px; background: #161a22; overflow: hidden; }
.m-bar { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.22, 1, .36, 1); }
.m-bar.drain { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform: scaleX(1); }
.m-bar.grow { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform: scaleX(.57); } /* 2,659 of 4,676 */
.m-bar.spend { background: #3a4150; transform: scaleX(0); }
.m-bar.profit { background: linear-gradient(90deg, #2e9d5e, var(--green)); transform: scaleX(0); }
.meter.on .m-bar.drain { transform: scaleX(.15); }
.meter.on .m-bar.grow { transform: scaleX(1); }
.meter.on .m-bar.spend { transform: scaleX(.227); } /* 14,927 / 65,760 */
.meter.on .m-bar.profit { transform: scaleX(1); transition-delay: .15s; }
.m-sub { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #5f6778; }
.m-ratio { font-size: 17px; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.m-ratio b { color: var(--fg); font-size: 22px; font-weight: 800; }
.meter.landed .m-ratio { opacity: 1; transform: none; }
.m-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.m-foot s { opacity: .6; } .m-foot b { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .m-ratio { transform: none; } }

/* ── leads, smoothed (09-28): one easing for open and close, equal-height
   briefs so the card never changes size, chip labels cross-fade in place ── */
.leads { --glide: .6s cubic-bezier(.4, 0, .2, 1); }
.lead { transition: background var(--glide); }
.brief { transition: grid-template-rows var(--glide), padding var(--glide); }
.brief div { white-space: nowrap; transition: opacity .3s ease; transform: none; }
.lead.open .brief div { transition: opacity .45s ease .15s; }
.lead.open .brief div:nth-child(n) { transition-delay: .15s; }
.chip { display: grid; padding: 5px 10px; transition: background var(--glide), color var(--glide); }
.chip.ok { animation: none; }
.chip > span { grid-area: 1 / 1; text-align: center; transition: opacity .35s ease; }
.chip .c-b { opacity: 0; }
.chip.ok .c-a { opacity: 0; }
.chip.ok .c-b { opacity: 1; }
.ig-cap { padding: 11px 14px 14px; font-size: 13.5px; line-height: 1.4; color: #e6e9ef; }
.ig-cap b { margin-right: 5px; }

/* desktop: side by side and capped, the full-width stack was too loud (Logan 09-28) */
@media (min-width: 768px) {
  .money .money-grid { grid-template-columns: 1fr 1fr !important; }
  .money .num.display.xxl { font-size: min(15cqi, 92px); }
}
@media (min-width: 768px) { .money .money-cell { min-height: 0; } }

/* clock landing, smoothed (09-30): no bounce, a short cross-fade into "91 SEC" */
.reply .clock-n { transition: opacity .22s ease, color .5s ease; }
.reply .clock-n.swap { opacity: 0; }
.reply.landed .clock-n { animation: none; }

/* DM flip, steadied (09-30): no bounce, and the name keeps its weight so the
   text never re-flows; unread vs replied is carried by colour and the dot */
.dm.rep { animation: none; }
.dm-t b, .dm.rep .dm-t b { font-weight: 700; }
.dm.rep .dm-t b { color: #9aa1ae; }
