/* ==========================================================================
   Food Miner case study: extends sync-case.css.
   Same room, type and panel voice; the accent shifts from sage to a soft
   mint that sits next to the prototype's Uber green without fighting it.
   ========================================================================== */

body.food { --sage: #9fd8b0; --sage-deep: #4f9468; }
body.food .shift .to { background: #1b261f; }

/* ---------- journey map ---------- */
.journey { margin-top: 64px; overflow-x: auto; padding-bottom: 6px; }
.journey svg { min-width: 920px; width: 100%; height: auto; }
.journey .hot { fill: rgba(159, 216, 176, 0.05); stroke: rgba(159, 216, 176, 0.28); stroke-dasharray: 3 5; }
.journey .hot-t { font: 400 14px var(--panel); letter-spacing: 0.06em; text-transform: uppercase; fill: var(--sage); }
.journey .k { font: 400 12.5px var(--panel); letter-spacing: 0.08em; fill: var(--mute); }
.journey .t { font: 500 25px var(--display); fill: var(--text); }
.journey .m { font: 600 16px var(--read); fill: var(--sage); }
.journey .d { font: 400 16px var(--read); fill: var(--body); }
.journey .axis { font: 400 12.5px var(--panel); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--mute); }
.journey .grid { stroke: var(--rule); stroke-dasharray: 2 6; fill: none; }
.journey .curve { fill: none; stroke: var(--text); stroke-width: 1.8; }
.journey .curve.up { stroke: var(--sage); }
.journey .curve.down { stroke: #6b7066; stroke-dasharray: 4 5; }
.journey .pt { fill: var(--room); stroke: var(--text); stroke-width: 1.6; }
.journey .pt.end { stroke: var(--sage); fill: var(--sage); }
.journey .pt.lost { stroke: #6b7066; }
.journey .lab { font: 600 16px var(--read); fill: var(--sage); }
.journey .lab.lost { fill: var(--mute); }

/* ---------- N → 6 → 1 ---------- */
.funnel { margin-top: 64px; overflow-x: auto; padding-bottom: 6px; }
.funnel svg { min-width: 760px; width: 100%; max-width: 1000px; height: auto; }
.funnel .many circle { fill: var(--mute); }
.funnel .six circle { fill: var(--sage); }
.funnel .one { fill: none; stroke: var(--sage); stroke-width: 2; }
.funnel .wire { fill: none; stroke: #5d6258; stroke-width: 1.4; }
.funnel .who { font: 400 12.5px var(--panel); letter-spacing: 0.08em; text-transform: uppercase; fill: var(--sage); }
.funnel .why { font: 400 14px var(--read); fill: var(--body); }
.funnel .big { font: 500 26px var(--display); fill: var(--text); }
.funnel .sm { font: 400 14px var(--read); fill: var(--mute); }

/* ---------- three-step loop ---------- */
.steps.three { grid-template-columns: 1fr 44px 1fr 44px 1fr; }
.loopback { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.loopback .icon { color: var(--sage); font-size: 18px; }

/* ---------- weighting ---------- */
.weights { display: flex; gap: 3px; height: 14px; margin-top: 24px; }
.weights i { flex: var(--w) 1 0; border-radius: 3px; background: var(--sage); opacity: var(--o); }
.weight-list { display: grid; grid-template-columns: 45fr 20fr 15fr 10fr 10fr; gap: 3px; margin-top: 16px; }
.weight-list li { padding-right: 14px; min-width: 0; }
.weight-list .n { display: block; font: 400 30px/1 var(--panel); color: var(--text); font-variant-numeric: tabular-nums; }
.weight-list strong { display: block; margin-top: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.weight-list p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--body); }

/* ---------- rules ---------- */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.rules li { padding: 26px 28px; border-radius: 10px; background: var(--well); }
.rules strong { display: block; margin-top: 10px; font: 500 21px/1.3 var(--display); color: var(--text); }
.rules p { margin-top: 8px; font-size: 15px; }

/* ---------- prototype ---------- */
.pair.phones { grid-template-columns: repeat(2, minmax(0, 260px)); gap: clamp(24px, 5vw, 72px); }
.pair.phones img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 0 0 1px var(--rule-strong), 0 24px 40px -24px rgba(0, 0, 0, 0.8); }
.pair.phones figcaption { margin-top: 18px; }

.demo.live .handset { width: clamp(250px, 24vw, 300px); aspect-ratio: 360 / 780; height: auto; padding: 9px; box-sizing: content-box; }
.demo.live .fit { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; }
.demo.live iframe { position: absolute; left: 0; top: 0; width: 360px; height: 780px; border: 0; transform: scale(var(--k, 0.8)); transform-origin: 0 0; }
.demo .open { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--sage); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.demo .open:hover { text-decoration: underline; }

/* ---------- hypotheses ---------- */
.hyp { margin-top: 12px; }
.hyp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.hyp-row.head { padding: 8px 0 12px; }
.hyp-row strong { font: 500 19px/1.3 var(--display); color: var(--text); }
.hyp-row p { font-size: 15px; }
.hyp-row .m { color: var(--sage); }

@media (max-width: 1180px) and (min-width: 641px) {
  .steps.three { grid-template-columns: 1fr 44px 1fr 44px 1fr; }
  .steps.three .join:nth-of-type(4) { display: block; }
}
@media (max-width: 960px) {
  .rules { grid-template-columns: 1fr; }
  .weight-list { grid-template-columns: 1fr; gap: 0; }
  .weight-list li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .weight-list .n { grid-row: span 2; font-size: 24px; }
  .weight-list strong { margin-top: 0; }
  .hyp-row { grid-template-columns: 1fr; gap: 6px; }
  .hyp-row.head { display: none; }
}
@media (max-width: 640px) {
  .steps.three { grid-template-columns: 1fr; }
  .pair.phones { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pair.phones img { border-radius: 16px; }
}

/* ---------- cover: one live phone instead of three stills ---------- */
.live-stage .live-phone { position: absolute; left: 50%; top: 50%; z-index: 2; box-sizing: content-box; width: clamp(200px, 17vw, 250px); aspect-ratio: 360 / 780; transform: translate(-50%, -50%); border: 8px solid #f4f2ec; border-radius: 42px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 36px 60px -20px rgba(0, 0, 0, 0.75); transition: transform 1.1s var(--ease), opacity 0.8s; }
.is-entering .live-stage .live-phone { transform: translate(-50%, -46%); opacity: 0; }
.live-phone img, .live-phone iframe { position: absolute; left: 0; top: 0; border: 0; }
.live-phone img { width: 100%; height: 100%; object-fit: cover; }
.live-phone iframe { width: 360px; height: 780px; transform: scale(var(--k, 0.7)); transform-origin: 0 0; pointer-events: none; background: #fff; }

/* ---------- opportunity photo + panel ---------- */
.fm-opp { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin-top: clamp(64px, 8vw, 104px); border-radius: 12px; overflow: hidden; background: var(--well); }
.fm-opp__photo { position: relative; margin: 0; min-height: 360px; }
.fm-opp__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-opp__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(17, 18, 17, 0.85)); color: var(--text); font-size: 14px; }
.fm-opp__panel { padding: clamp(28px, 4vw, 52px); }
.fm-opp__panel h3 { margin-top: 14px; font: 500 clamp(28px, 2.8vw, 40px)/1.08 var(--display); letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.fm-opp__panel ol { margin-top: 30px; border-top: 1px solid var(--rule-strong); }
.fm-opp__panel li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-strong); }
.fm-opp__panel strong { color: var(--text); font-weight: 600; font-size: 15px; }
.fm-opp__panel p { font-size: 15px; }


@media (max-width: 1180px) { .fm-opp__panel li { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 960px) { .fm-opp { grid-template-columns: 1fr; } .fm-opp__photo { min-height: 260px; } }
@media (max-width: 640px) { .live-stage .live-phone { width: 170px; border-width: 6px; border-radius: 32px; } }

/* ---------- journey: moods and thoughts ---------- */
.journey .m.warn { fill: #e6c26b; }
.journey .m.bad { fill: #e89a82; }
.journey .bub path { fill: #1f2420; stroke: #3b4238; }
.journey .bub text { font: 500 14.5px var(--read); fill: var(--text); }
.journey .bub.warn path { stroke: #6b5a2c; }
.journey .bub.bad path { stroke: #6e4234; }
.journey .axis.sm { font-size: 11.5px; }
.journey .mood { --fc: #9fd8b0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.journey .mood.ok { --fc: #cfe3b8; }
.journey .mood.warn { --fc: #e6c26b; }
.journey .mood.bad { --fc: #e89a82; }
.journey .mood.lost { --fc: #8d9189; }
.journey svg { min-width: 980px; }

/* ---------- cover: bigger live phone with the five picks floating round it ---------- */
.live-stage { height: clamp(560px, 52vw, 720px); }
.live-stage::before { display: none; }
.live-stage .blob { position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 193, 103, 0.34), rgba(6, 193, 103, 0.08) 45%, transparent 68%); }
.live-stage .live-phone { width: clamp(236px, 20.5vw, 300px); }
.live-stage .pick { position: absolute; left: auto; right: auto; top: auto; bottom: auto; transform: none; z-index: 3; width: clamp(64px, 6.4vw, 96px); height: auto; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55)); animation: bob 5.5s ease-in-out infinite; }
.live-stage .p1 { left: 1%; top: 12%; --r: -12deg; animation-delay: -0.4s; }
.live-stage .p2 { right: -1%; top: 6%; --r: 10deg; animation-delay: -1.6s; }
.live-stage .p3 { left: -2%; top: 64%; --r: 8deg; animation-delay: -2.8s; }
.live-stage .p4 { right: -2%; top: 60%; --r: -8deg; animation-delay: -3.5s; }
.live-stage .p5 { right: 4%; bottom: 1%; --r: 14deg; animation-delay: -4.4s; }
.live-stage .tag { position: absolute; z-index: 4; padding: 7px 12px; border-radius: 999px; background: #06c167; color: #0b0b0b; font-weight: 600; letter-spacing: 0.1em; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); }
.live-stage .t1 { left: 2%; top: 42%; transform: rotate(-6deg); }
.live-stage .t2 { right: 0; top: 36%; transform: rotate(5deg); background: var(--text); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -0.6)); } }
.is-entering .live-stage .pick, .is-entering .live-stage .tag { opacity: 0; }
.live-stage .pick, .live-stage .tag { transition: opacity 0.9s 0.3s; }

/* ---------- where it sits ---------- */
.sits { display: grid; grid-template-columns: minmax(0, 300px) auto minmax(0, 300px); justify-content: center; align-items: center; gap: clamp(20px, 5vw, 72px); margin-top: 32px; }
.sits img { display: block; width: 100%; height: auto; border-radius: 30px; box-shadow: 0 0 0 1px var(--rule-strong), 0 28px 44px -24px rgba(0, 0, 0, 0.85); }
.sits figcaption { margin-top: 18px; }
.sits .bridge { display: grid; justify-items: center; gap: 12px; color: var(--sage); text-align: center; }
.sits .bridge .icon { width: 34px; height: 34px; }
.sits .mark { position: relative; }
.sits .hl { position: absolute; left: -10px; right: -10px; top: 2%; height: 25%; border: 2px dashed var(--sage); border-radius: 18px; }
.sits .hl .panel { position: absolute; left: 14px; bottom: -14px; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--room); font-weight: 600; }

/* ---------- reflection ---------- */
.reflect .wrap { padding-block: clamp(20px, 3vw, 40px); }
.reflect h2 { margin-top: 18px; max-width: 14em; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.reflect-line { margin-top: 36px; max-width: 30em; font: 400 clamp(22px, 2.2vw, 32px)/1.35 var(--display); color: var(--body); letter-spacing: -0.01em; }

@media (max-width: 960px) {
  .sits { grid-template-columns: 1fr 1fr; }
  .sits .bridge { display: none; }
}
@media (max-width: 640px) {
  .live-stage { height: 520px; }
  .live-stage .live-phone { width: 210px; }
  .live-stage .pick { width: 58px; }
  .sits { gap: 16px; }
  .sits img { border-radius: 18px; }
  .sits .hl { left: -5px; right: -5px; }
}
@media (prefers-reduced-motion: reduce) { .live-stage .pick { animation: none; transform: rotate(var(--r)); } }

.reflect-notes { margin-top: clamp(48px, 6vw, 72px); }
.reflect-notes p { color: var(--body); }
