/* ============================================================
   Alarmease — visual-led case study layer
   Extends editorial.css. Presentation-grade scenes: image-led,
   one insight per scene, short statements over paragraphs.
   ============================================================ */

:root {
  /* green = the personalisation / reviewed thread (semantic, used sparingly) */
  --green:      oklch(0.52 0.085 152);
  --green-2:    oklch(0.45 0.085 152);
  --green-soft: oklch(0.52 0.085 152 / 0.10);
  --green-line: oklch(0.52 0.085 152 / 0.32);
  --ink-on-dark:   #F4F1EA;
  --ink-on-dark-2: #C9C3B6;
  --ink-on-dark-3: #908A7E;
}

/* ---------- generic scene ---------- */
.am-scene { padding: 104px 0; border-top: 1px solid var(--line); }
.am-scene.tight { padding: 72px 0; }
.am-scene.dark {
  background: #14110D; color: var(--ink-on-dark); border-top: none;
}
.am-scene.dark h2, .am-scene.dark h3 { color: var(--ink-on-dark); }
.am-scene.dark .am-lead { color: var(--ink-on-dark-2); }

.am-kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 26px;
}
.am-kicker .num { color: var(--ink-3); }
.am-kicker .bar { flex: 0 0 28px; height: 1px; background: var(--accent); opacity: 0.5; }
.am-scene.dark .am-kicker { color: #D9885F; }
.am-scene.dark .am-kicker .num { color: var(--ink-on-dark-3); }

.am-h { font-family: var(--serif); font-weight: 500; line-height: 1.06;
  font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.015em; max-width: 17ch; }
.am-h em { font-style: italic; color: var(--accent); }
.am-h .g { color: var(--green); font-style: normal; }
.am-scene.dark .am-h .g { color: #6FB68A; }
.am-lead { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin-top: 22px; line-height: 1.55; }
.am-lead strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   1 — HERO (full-bleed photo, dark overlay, text left)
   ============================================================ */
.am-hero {
  position: relative; width: 100vw; left: 50%; margin-left: -50vw;
  min-height: 92vh; display: flex; align-items: center;
  background: #0b0a08 center/cover no-repeat;
  color: var(--ink-on-dark); overflow: hidden;
}
.am-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,7,5,0.92) 0%, rgba(8,7,5,0.74) 38%, rgba(8,7,5,0.30) 70%, rgba(8,7,5,0.12) 100%),
    linear-gradient(0deg, rgba(8,7,5,0.55), rgba(8,7,5,0) 40%);
}
.am-hero .am-hero-in {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px; width: 100%;
}
.am-hero .crumb {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-on-dark-2); margin-bottom: 34px;
}
.am-hero .crumb a { color: var(--ink-on-dark-2); text-decoration: none; }
.am-hero .crumb a:hover { color: #fff; }
.am-hero .ey {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
  color: #D9885F; margin-bottom: 22px;
}
.am-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.6vw, 86px); line-height: 1.0;
  letter-spacing: -0.02em; max-width: 15ch; color: #fff;
}
.am-hero h1 .sub { display: block; color: #E8A07C; font-style: italic; }
.am-hero .support {
  margin-top: 30px; max-width: 46ch; font-size: 18px; line-height: 1.55;
  color: var(--ink-on-dark-2);
}
.am-hero .support strong { color: #fff; font-weight: 600; }
.am-scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-on-dark-3); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.am-scroll-cue::after { content: ""; width: 1px; height: 30px; background: var(--ink-on-dark-3); animation: amcue 1.8s ease-in-out infinite; }
@keyframes amcue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1);} }

/* ---------- title hero (premium product case study) ---------- */
.am-titlehero { padding: 64px 0 52px; }
.am-titlehero .crumb {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 40px;
}
.am-titlehero .crumb a { color: var(--ink-3); text-decoration: none; }
.am-titlehero .crumb a:hover { color: var(--accent); }
.am-titlehero .ey {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 22px;
}
.am-titlehero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(66px, 13vw, 168px); line-height: 0.9; letter-spacing: -0.035em;
  color: var(--ink); margin: 0;
}
.am-titlehero .vp {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 36px); line-height: 1.28;
  color: var(--ink); max-width: 23ch; margin-top: 28px; text-wrap: balance;
}
.am-titlehero .vp .g { color: var(--green); }
.am-titlehero .ed-tags { margin-top: 30px; }

/* metadata grid on paper */
.am-metagrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px;
  padding-top: 36px; margin-top: 40px; border-top: 1px solid var(--line);
}
.am-metagrid .m-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 10px; }
.am-metagrid .m-value { font-size: 16px; color: var(--ink); line-height: 1.5; }
.am-metagrid .m-value span { display: block; color: var(--ink-2); font-size: 14.5px; }

/* full-bleed hero image band */
.am-heroband { width: 100vw; position: relative; left: 50%; margin-left: -50vw; margin-top: 8px; }
.am-heroband img { display: block; width: 100%; height: clamp(440px, 64vh, 800px); object-fit: cover; object-position: center 35%; }
.am-herocap { max-width: var(--maxw); margin: 14px auto 0; padding: 0 40px; }
.am-herocap p { font-size: 13px; color: var(--ink-3); }

@media (max-width: 620px) {
  .am-metagrid { grid-template-columns: 1fr 1fr; }
}

/* meta strip — dark band attached under hero */
.am-metastrip { background: #14110D; color: var(--ink-on-dark); }
.am-metastrip .ed-wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 36px; padding: 38px 40px;
}
.am-metastrip .m-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: #D9885F; margin-bottom: 10px;
}
.am-metastrip .m-value { font-size: 16px; color: var(--ink-on-dark); line-height: 1.55; }
.am-metastrip .m-value span { display: block; color: var(--ink-on-dark-2); font-size: 14.5px; }

/* ============================================================
   2 — SYSTEM MAP
   ============================================================ */
.am-sysmap { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 56px; align-items: center; }
.am-chain { display: flex; flex-direction: column; gap: 0; }
.am-node {
  position: relative; border: 1px solid var(--line-2); background: var(--paper-2);
  border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 16px;
}
.am-node .ic { flex: 0 0 38px; height: 38px; display: grid; place-items: center;
  border-radius: 9px; background: var(--paper-3); font-size: 19px; }
.am-node .tx { font-size: 16px; color: var(--ink); font-weight: 500; }
.am-node .tx small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.am-link { width: 2px; height: 26px; margin-left: 39px; background: var(--line-2); position: relative; }
.am-link::after { content: "▾"; position: absolute; left: -5px; bottom: -3px; color: var(--ink-3); font-size: 12px; }
.am-node.hot { border-color: var(--green); background: var(--green-soft); }
.am-node.hot .ic { background: var(--green); color: #fff; }
.am-node.hot .tx { color: var(--green-2); }
.am-node.hot .tx small { color: var(--green-2); opacity: 0.8; }
.am-link.hot { background: var(--green-line); }
.am-link.hot::after { color: var(--green); }

.am-sysmap-aside .flag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green-2); border: 1px solid var(--green-line);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.am-sysmap-aside .big {
  font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; color: var(--ink);
}
.am-sysmap-aside .big em { font-style: italic; color: var(--green); }
.am-sysmap-aside p { font-size: 16px; color: var(--ink-2); margin-top: 18px; max-width: 38ch; }

/* ============================================================
   3 — RESEARCH DASHBOARD (60 / 40)
   ============================================================ */
.am-research { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: 48px; }
.am-evcards { display: grid; gap: 18px; }
.am-evcard {
  display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 20px; align-items: stretch;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-2);
}
.am-evcard .ph { background: var(--paper-3) center/cover no-repeat; min-height: 110px; }
.am-evcard .bd { padding: 18px 20px 18px 0; align-self: center; }
.am-evcard .tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 6px; }
.am-evcard h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.am-evcard p { font-size: 14px; color: var(--ink-2); }

.am-insightcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.am-ic {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff;
  display: flex; flex-direction: column; gap: 14px;
}
.am-ic .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 20px; }
.am-ic p { font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--ink); }

/* ============================================================
   4 — REFRAMING (dramatic)
   ============================================================ */
.am-reframe { text-align: center; }
.am-reframe .pre { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-bottom: 40px; }
.am-reframe .pre .strike { text-decoration: line-through; text-decoration-color: var(--accent); }
.am-reframe .pre .arr { color: var(--accent); }
.am-reframe .mega {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(44px, 8vw, 104px); line-height: 1.0; color: var(--ink); max-width: 16ch; margin: 0 auto;
}
.am-reframe .mega .g { color: var(--green); font-style: italic; }
.am-reframe .mega .strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 2px; color: var(--ink-3); }
.am-reframe .quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35; color: var(--ink-2); max-width: 30ch; margin: 48px auto 0;
}
.am-reframe .quote-a { font-family: var(--sans); font-style: normal; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-3); margin-top: 20px; }

/* ============================================================
   5 — IDEAS WE REJECTED (2x2)
   ============================================================ */
.am-rejgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.am-rej { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-2); display: flex; flex-direction: column; }
.am-rej .ph { aspect-ratio: 16/9; background: var(--paper-3) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.am-rej .bd { padding: 20px 22px 22px; }
.am-rej .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.am-rej h4 { font-family: var(--serif); font-size: 22px; }
.am-rej .x { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.am-rej p { font-size: 15px; color: var(--ink-2); }
.am-rej p .lbl { color: var(--ink-3); }

/* ============================================================
   6 — DESIGN PRINCIPLES (5 cards)
   ============================================================ */
.am-princ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .am-princ { grid-template-columns: 1fr; } }
.am-pcard { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper-2); display: flex; flex-direction: column; }
.am-pcard .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.am-pcard .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.am-pcard .hd h4 { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.am-pcard .step { font-size: 14px; line-height: 1.4; }
.am-pcard .step .lbl { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 2px; }
.am-pcard .step.dec .lbl { color: var(--green-2); }
.am-pcard .step.dec { color: var(--green-2); font-weight: 600; }
.am-pcard .div { height: 1px; background: var(--line); margin: 12px 0; position: relative; }
.am-pcard .div::after { content: "↓"; position: absolute; left: 0; top: -9px; background: var(--paper-2); padding-right: 6px; color: var(--ink-3); font-size: 12px; }

/* ============================================================
   7 — FINAL CONCEPT (annotated)
   ============================================================ */
.am-concept-fig { position: relative; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #0a1020; }
.am-concept-fig img { display: block; width: 100%; }
.am-dot {
  position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 14px; display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(176,83,43,0.28), 0 2px 8px rgba(0,0,0,0.4); transform: translate(-50%,-50%);
}
.am-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-top: 28px; }
.am-co { display: flex; gap: 12px; align-items: flex-start; }
.am-co .n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.am-co .t { font-size: 15px; color: var(--ink); }
.am-co .t small { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }

/* behavioural loop */
.am-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; justify-content: center; }
.am-loop .node { font-family: var(--serif); font-size: 18px; color: var(--ink); border: 1px solid var(--line-2);
  background: var(--paper-2); border-radius: 999px; padding: 12px 26px; }
.am-loop .arr { color: var(--green); font-size: 18px; }
.am-loop .node.repeat { border-style: dashed; border-color: var(--green-line); color: var(--green-2); }

/* final-concept split — bedside cue + nurse-station dashboard */
.am-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; margin-top: 40px; }
.am-splitfig { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.am-splitfig .ph { display: block; height: 380px; padding: 0; background: var(--paper-2); }
.am-splitfig .ph img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.am-splitfig .lab { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 20px 22px; border-top: 1px solid var(--line); align-items: start; }
.am-splitfig .lab .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.am-splitfig .lab .t b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 4px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; }
.am-splitfig .lab .t span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 820px) { .am-split { grid-template-columns: 1fr; } }

/* ============================================================
   8 — BEFORE / AFTER
   ============================================================ */
.am-ba { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr); gap: 48px; align-items: center; }
.am-ba .fig { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper-3); }
.am-ba .fig img { display: block; width: 100%; }
.am-baswitch { display: grid; gap: 16px; margin-bottom: 26px; }
.am-baswitch .row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
.am-baswitch .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.am-baswitch .b .lbl { color: var(--ink-3); }
.am-baswitch .a .lbl { color: var(--green-2); }
.am-baswitch .v { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.am-baswitch .b .v { color: var(--ink-3); }
.am-baswitch .a .v { color: var(--ink); }
.am-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.am-chip { font-size: 13px; font-weight: 500; color: var(--green-2); border: 1px solid var(--green-line);
  background: var(--green-soft); border-radius: 999px; padding: 7px 15px; }

/* ============================================================
   9 — DATAVIZ EVOLUTION
   ============================================================ */
.am-evo { display: grid; grid-template-columns: 30fr 44px 70fr; gap: 0; align-items: center; }
.am-evo .stage { display: flex; flex-direction: column; gap: 16px; }
.am-evo .fig { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-3); }
.am-evo .fig img { display: block; width: 100%; }
/* Equal height, different width (V1 ≈30% / V2 ≈70%). V2 keeps its natural landscape ratio;
   V1's box ratio is derived so its height equals V2's, and the COMPLETE portrait image is
   shown via object-fit:contain. --v1-ar is recomputed by the Tweaks panel if the split changes. */
.am-evo .v2 .fig { aspect-ratio: 1440 / 1024; }
.am-evo .v2 .fig img { height: 100%; object-fit: cover; }
.am-evo .v1 .fig { aspect-ratio: var(--v1-ar, 0.6027); display: grid; place-items: center; }
.am-evo .v1 .fig img { width: 100%; height: 100%; object-fit: contain; }
.am-evo .vlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.am-evo .v1 .vlabel { color: var(--ink-3); }
.am-evo .v2 .vlabel { color: var(--green-2); }
.am-evo h4 { font-family: var(--serif); font-size: 22px; }
.am-evo .arrowcol { display: grid; place-items: center; color: var(--accent); font-size: 28px; }
.am-evo .note { font-size: 14px; color: var(--ink-2); }
.am-evo ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.am-evo li { font-size: 13px; font-weight: 500; color: var(--green-2); border: 1px solid var(--green-line); background: var(--green-soft); border-radius: 999px; padding: 5px 12px; }
.am-bedlevel { margin-top: 44px; }
.am-bedlevel .vlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green-2); margin-bottom: 14px; }
.am-bedlevel .fig { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-3); }
.am-bedlevel .fig img { display: block; width: 100%; }

/* ============================================================
   10 — CONTRIBUTION TIMELINE
   ============================================================ */
.am-ctl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; position: relative; }
.am-ctl::before { content: ""; position: absolute; top: 6px; left: 6px; right: 6px; height: 2px; background: var(--green-line); z-index: 0; }
.am-cstage { padding: 0 22px; border-left: 1px solid var(--line); position: relative; }
.am-cstage:first-child { padding-left: 0; border-left: none; }
.am-cstage .dot { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--green); margin-bottom: 16px; box-shadow: 0 0 0 4px var(--paper); }
.am-cstage .ph { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 6px; }
.am-cstage h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }
.am-cstage ul { list-style: none; display: grid; gap: 8px; }
.am-cstage li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; }
.am-cstage li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.am-cstage.lead h4 { color: var(--green-2); }

/* ============================================================
   11 — VALIDATION
   ============================================================ */
.am-valgrid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 48px; align-items: start; }
.am-valgrid .fig { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper-3); position: sticky; top: 96px; }
.am-valgrid .fig img { display: block; width: 100%; }
.am-vcards { display: grid; gap: 16px; }
.am-vcard { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--paper-2); }
.am-vcard .q { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); line-height: 1.3; }
.am-vcard .step { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; padding-left: 20px; position: relative; }
.am-vcard .step::before { content: "↳"; position: absolute; left: 0; color: var(--ink-3); }
.am-vcard .step.impl { color: var(--green-2); font-weight: 600; }
.am-vcard .step.impl::before { color: var(--green); }

/* ============================================================
   12 — ROADMAP
   ============================================================ */
.am-roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.am-rm { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--paper-2); position: relative; }
.am-rm .num { font-family: var(--serif); font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.am-rm h4 { font-family: var(--serif); font-size: 20px; line-height: 1.15; margin-bottom: 10px; }
.am-rm p { font-size: 14px; color: var(--ink-2); }
.am-rm.now { border-color: var(--green); background: var(--green-soft); }
.am-rm.now .num { color: var(--green-2); }
.am-rm .arr { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--ink-3); font-size: 18px; background: var(--paper); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.am-rm:last-child .arr { display: none; }

/* ============================================================
   13 — WHAT WE LEARNED
   ============================================================ */
.am-learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.am-lcard { border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; background: var(--paper-2); }
.am-lcard .n { font-family: var(--serif); font-size: 15px; color: var(--accent); margin-bottom: 16px; }
.am-lcard h4 { font-family: var(--serif); font-size: clamp(24px,2.4vw,30px); line-height: 1.1; }
.am-closing { text-align: center; margin-top: 64px; }
.am-closing p { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; color: var(--ink); max-width: 24ch; margin: 0 auto; }
.am-closing p em { font-style: italic; color: var(--accent); }

/* ============================================================
   14 — REFLECTION (dark full-bleed)
   ============================================================ */
.am-reflect {
  position: relative; width: 100vw; left: 50%; margin-left: -50vw;
  min-height: 78vh; display: flex; align-items: center; color: var(--ink-on-dark);
  background: #0b0a08 center/cover no-repeat;
}
.am-reflect::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,7,5,0.94) 0%, rgba(8,7,5,0.78) 42%, rgba(8,7,5,0.30) 80%, rgba(8,7,5,0.12) 100%); }
.am-reflect .in { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 80px 40px; width: 100%; }
.am-reflect .am-kicker { color: #D9885F; }
.am-reflect h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px,4vw,52px); line-height: 1.06; color: #fff; max-width: 18ch; }
.am-refba { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 720px; margin-top: 40px; }
.am-refba .col .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.am-refba .b .lbl { color: var(--ink-on-dark-3); }
.am-refba .a .lbl { color: #6FB68A; }
.am-refba .b p { color: var(--ink-on-dark-2); font-size: 17px; }
.am-refba .a ul { list-style: none; display: grid; gap: 8px; }
.am-refba .a li { color: var(--ink-on-dark); font-size: 16px; padding-left: 18px; position: relative; }
.am-refba .a li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #6FB68A; }
.am-reflect .close { font-family: var(--serif); font-size: clamp(20px,2.2vw,26px); line-height: 1.4; color: #fff; max-width: 40ch; margin-top: 44px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.16); }

/* ---------- captions on figures ---------- */
.am-cap { font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; max-width: 60ch; }
.am-cap .ed-flag { vertical-align: middle; }

/* ============================================================
   ENTRANCE ANIMATIONS — base state is visible (print/PDF safe)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .am-anim { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .am-anim.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .am-scene { padding: 72px 0; }
  .am-sysmap, .am-research, .am-ba, .am-valgrid { grid-template-columns: 1fr; gap: 36px; }
  .am-evo { grid-template-columns: 1fr; gap: 24px; }
  .am-evo .arrowcol { transform: rotate(90deg); }
  .am-ctl, .am-roadmap, .am-learn { grid-template-columns: 1fr 1fr; }
  .am-rejgrid { grid-template-columns: 1fr; }
  .am-cstage { border-left: none; padding: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .am-cstage:first-child { border-top: none; padding-top: 0; }
  .am-rm .arr { display: none; }
  .am-valgrid .fig { position: static; }
}
@media (max-width: 620px) {
  .am-metastrip .ed-wrap { grid-template-columns: 1fr 1fr; }
  .am-insightcards, .am-ctl, .am-roadmap, .am-learn, .am-refba { grid-template-columns: 1fr; }
  .am-evcard { grid-template-columns: 96px 1fr; }
  .am-reframe .mega { font-size: 13vw; }
}

/* ============================================================
   POLISH PASS — blueprint, 40/20/40 concept, decision frames
   ============================================================ */

/* P2 — concept hierarchy: reminder → loop → dashboard */
.am-split3 { display: grid; grid-template-columns: 38fr 24fr 38fr; gap: 16px; align-items: stretch; margin-top: 40px; }
.am-bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 8px 2px; }
.am-bridge .bn { width: 100%; max-width: 150px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 12px; }
.am-bridge .bn.mid { border-color: var(--green-line); background: var(--green-soft); color: var(--green-2); }
.am-bridge .ba { color: var(--accent); font-size: 15px; line-height: 1; }
.am-bridge .ba.loop { color: var(--green); font-size: 18px; }

/* P2 — circular loop diagram */
.am-split3 .am-loop { align-self: center; justify-self: center; width: 100%; max-width: 230px; }
.am-loop .loopsvg { display: block; width: 100%; height: auto; overflow: visible; }
.am-loop .loopsvg .nd { r: 6; fill: var(--paper); stroke: var(--line-2); stroke-width: 2; }
.am-loop .loopsvg .nd.act { fill: var(--green); stroke: var(--green); }
.am-loop .loopsvg .nl { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.am-loop .loopsvg .nl.act { fill: var(--green-2); }
.am-loop .loopsvg .loop-center { font-size: 30px; fill: var(--green); text-anchor: middle; dominant-baseline: central; }

/* P1 — behavioural blueprint */
.am-blueprint { display: grid; gap: 14px; margin-top: 40px; }
.am-bprow { display: grid; grid-template-columns: 188px 1fr; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); padding: 20px 24px; }
.am-bprow .rlabel { display: flex; flex-direction: column; gap: 3px; }
.am-bprow .rlabel .rt { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); }
.am-bprow .rlabel .rs { font-size: 12px; color: var(--ink-3); }
.am-bprow .rdot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); display: inline-block; margin-right: 8px; }
.am-bprow.layer .rdot { background: var(--accent); }
.am-bprow.effect .rdot { background: var(--green); }
.am-bpsteps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.am-bpnode { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 15px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.am-bpnode .ic { font-size: 15px; line-height: 1; }
.am-bprow.layer .am-bpnode { border-color: color-mix(in oklab, var(--accent) 45%, var(--line-2)); }
.am-bprow.effect .am-bpnode { border-color: var(--green-line); color: var(--green-2); }
.am-bparr { color: var(--ink-3); font-size: 15px; }
.am-bprow.layer .am-bparr { color: var(--accent); }
.am-bprow.effect .am-bparr { color: var(--green); }
.am-bpflag { margin-top: 4px; }

/* P5 — decision framework (feedback → interpretation → change) */
.am-decide { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 40px; position: relative; }
.am-dcard { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--paper-2); }
.am-dcard .dl { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 12px; }
.am-dcard .dl .step-n { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-3); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; }
.am-dcard p { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.am-dcard.change { border-color: var(--green-line); background: var(--green-soft); }
.am-dcard.change .dl { color: var(--green-2); }
.am-dcard.change .dl .step-n { background: var(--green); color: #fff; }
.am-dcard.change p { color: var(--ink); font-weight: 500; }

/* P6 — what changed (keep / change / remove) */
.am-changed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.am-chcard { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--paper-2); }
.am-chcard .ch-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.am-chcard.keep .ch-h { color: var(--green-2); }
.am-chcard.change .ch-h { color: var(--accent); }
.am-chcard.remove .ch-h { color: var(--ink-3); }
.am-chcard ul { list-style: none; display: grid; gap: 10px; }
.am-chcard li { font-size: 14.5px; color: var(--ink); padding-left: 24px; position: relative; }
.am-chcard.keep li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.am-chcard.change li::before { content: "↻"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.am-chcard.remove li { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.am-chcard.remove li::before { content: "✕"; position: absolute; left: 0; color: var(--ink-3); text-decoration: none; }

/* P8 — Philips relevance card */
.am-philips { margin-top: 28px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--paper-2);
  padding: 28px 30px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 32px; align-items: center; }
.am-philips .pt { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 600; font-size: clamp(20px,2vw,26px); color: var(--ink); line-height: 1.15; }
.am-philips .pt .em { color: var(--accent); }
.am-philips ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.am-philips li { font-size: 15px; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.4; }
.am-philips li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 980px) {
  .am-split3 { grid-template-columns: 1fr; }
  .am-bridge { flex-direction: row; flex-wrap: wrap; padding: 4px 0; }
  .am-bridge .bn { width: auto; }
  .am-bridge .ba { transform: none; }
  .am-bprow { grid-template-columns: 1fr; gap: 14px; }
  .am-decide, .am-changed { grid-template-columns: 1fr; }
  .am-philips { grid-template-columns: 1fr; gap: 18px; }
  .am-philips ul { grid-template-columns: 1fr; }
}
