/* ===== Hybrid Card Maker: second project, WhatsApp camp coordinator (v2, ten scenes) =====
   Header reuses the C4 second-project classes (.c4-gemini, .c4-gemini-kicker, .c4-gemini-title,
   .c4-gemini-meta). The phone is the drawn v5 "WhatsApp camp coordinator" illustration, recoloured
   with the portfolio tokens so it follows the light and dark themes. */

/* The C4 gallery gets its margin-top from .hybrid-gallery. On this page the gallery holds only the
   second project, so match the gap C4 has between its last website pair and the second project
   (the gallery's own flex gap). */
.hv-coord-gallery{margin-top:clamp(2.5rem,6vw,4.5rem)}

/* Header block (kicker, title, role/outcome, intro) is stacked full width exactly as on C4.
   Below it, a body row: the detail list and honesty note on the left, the drawn phone on the right
   (the approved offers-page arrangement). Stacked below 900px, phone after the details. */
.hv-coord-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}

.hv-coord-list{max-width:42rem;margin:0 0 1.2rem;padding:0;list-style:none;border-bottom:1px solid var(--line)}
.hv-coord-list li{display:flex;gap:.95rem;padding:.8rem 0;border-top:1px solid var(--line);line-height:1.5;font-size:clamp(.9375rem,1.4vw,1.0625rem)}
.hv-coord-list li:before{content:"";flex:none;width:7px;height:7px;margin-top:.62em;border-radius:50%;background:var(--accent)}

.c4-gemini-copy p.hv-coord-honest{padding:.9rem 1.1rem;border-left:3px solid var(--amber);background:color-mix(in srgb,var(--amber) 8%,transparent);border-radius:0 10px 10px 0;color:var(--ink)}
.hv-coord-honest b{font-weight:600}

/* Drawn phone */
.hv-coord-visual{margin:0;display:flex;flex-direction:column;align-items:center;justify-self:center}
.hv-coord .wa-phone{width:min(100%,21.5rem);background:color-mix(in srgb,var(--paper) 70%,#000);border:2px solid var(--accent);border-radius:26px;padding:10px;box-shadow:0 0 28px color-mix(in srgb,var(--accent) 22%,transparent)}
.hv-coord .wa-head{display:flex;align-items:center;gap:.6rem;padding:.55rem .6rem;background:color-mix(in srgb,var(--paper) 82%,var(--accent));border-radius:16px 16px 6px 6px}
.hv-coord .wa-avatar{flex:none;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#1f4fd1,var(--accent))}
.hv-coord .wa-head-txt{min-width:0;flex:1;color:var(--ink)}
.hv-coord .wa-head-txt b{display:block;font-weight:500;font-size:.92rem}
.hv-coord .wa-head-txt small{display:block;color:var(--muted);font-size:.72rem}
.hv-coord .wa-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .6rem;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--accent) 60%,transparent);color:var(--accent);font-size:.72rem;font-weight:600;white-space:nowrap}
.hv-coord .wa-chip.is-due{border-color:var(--amber);color:var(--amber-text)}
.hv-coord .wa-clk{color:inherit;flex:none}
.hv-coord .wa-tabs{display:flex;gap:.35rem;padding:.5rem .2rem .2rem}
.hv-coord .wa-tabs span{flex:1 1 auto;text-align:center;font-size:.62rem;padding:.3rem .35rem;border-radius:999px;color:var(--muted);border:1px solid var(--line);white-space:nowrap}
.hv-coord .wa-tabs span.on{color:#1f2328;background:#7aa7ff;border-color:#7aa7ff;font-weight:600}
.hv-coord .wa-chat{display:flex;flex-direction:column;gap:.6rem;padding:.7rem .35rem .4rem;height:18.5rem;overflow:hidden}
.hv-coord .wa-msg{align-self:flex-start;max-width:92%;padding:.6rem .8rem;border-radius:12px;border-bottom-left-radius:4px;background:color-mix(in srgb,var(--paper) 78%,var(--accent));border:1px solid color-mix(in srgb,var(--accent) 24%,transparent);font-size:.82rem;line-height:1.4;color:var(--ink)}
.hv-coord .wa-msg b{font-weight:600}
.hv-coord .wa-from{display:block;font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--accent);margin-bottom:.2rem}
.hv-coord .wa-from-p{color:var(--muted)}
.hv-coord .wa-opt{display:grid;grid-template-columns:7.2rem 1fr;align-items:center;gap:.5rem;margin-top:.4rem;font-size:.76rem}
.hv-coord .wa-bar{display:block;height:8px;border-radius:999px;background:color-mix(in srgb,var(--ink) 10%,transparent);overflow:hidden}
.hv-coord .wa-bar b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1f4fd1,var(--accent));transform-origin:left center}
.hv-coord .wa-poll-note{display:block;margin-top:.45rem;color:var(--muted);font-size:.66rem}
.hv-coord .wa-urgent{border-color:color-mix(in srgb,var(--amber) 75%,transparent);background:color-mix(in srgb,var(--amber) 10%,transparent)}
.hv-coord .wa-flag{display:table;margin-bottom:.3rem;padding:.12rem .5rem;border-radius:999px;background:var(--amber);color:#1f2328;font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.hv-coord .wa-route{align-self:flex-end;display:inline-flex;align-items:center;gap:.5rem;padding:.45rem .8rem;border-radius:999px;border:1.5px solid var(--amber);background:color-mix(in srgb,var(--paper) 70%,#000);color:var(--ink);font-size:.78rem}
.hv-coord .wa-route b{color:var(--amber-text);font-weight:600}
.hv-coord .wa-route-ico{width:9px;height:9px;border-radius:50%;background:var(--amber);box-shadow:0 0 10px color-mix(in srgb,var(--amber) 80%,transparent)}
.hv-coord .wa-cap{margin:.8rem 0 0;color:var(--muted);font-size:.78rem;text-align:center}

/* Light theme: the phone keeps a soft charcoal shell so the drawn chat stays legible and
   matches the drawn-illustration look, but uses the portfolio cobalt and amber. */
:root[data-theme="light"] .hv-coord .wa-phone,
:root.theme-light .hv-coord .wa-phone{background:#1f2328;border-color:#1f4fd1}
:root[data-theme="light"] .hv-coord .wa-phone *,
:root.theme-light .hv-coord .wa-phone *{--ink:#f5f3ee;--muted:#c8c5be;--line:#f5f3ee24;--accent:#7aa7ff;--amber:#e8a33d;--amber-text:#e8a33d;--paper:#1f2328}

/* Between 900 and 1100px the two-column body squeezes the phone; tighten the phone header so
   "Camp week group" stays on one line. */
@media(min-width:900px) and (max-width:1100px){
  .hv-coord .wa-head{gap:.45rem;padding:.55rem .45rem}
  .hv-coord .wa-avatar{width:28px;height:28px}
  .hv-coord .wa-chip{padding:.25rem .45rem}
}
@media(max-width:380px){
  .hv-coord .wa-head{gap:.45rem;padding:.55rem .45rem}
  .hv-coord .wa-avatar{width:28px;height:28px}
  .hv-coord .wa-chip{padding:.25rem .45rem}
}
@media(max-width:899px){
  .hv-coord-body{grid-template-columns:1fr}
  .hv-coord-visual{margin-top:.25rem}
}
@media(max-width:480px){
  .hv-coord .wa-phone{padding:8px}
  .hv-coord .wa-tabs{gap:.25rem}
  .hv-coord .wa-tabs span{font-size:.58rem;padding:.28rem .2rem;white-space:normal;line-height:1.2;display:flex;align-items:center;justify-content:center}
  .hv-coord .wa-tabs span:first-child{flex:1.2 1 auto}
  .hv-coord .wa-tabs span:nth-child(2){flex:.9 1 auto}
  .hv-coord .wa-tabs span:last-child{flex:1.55 1 auto}
  .hv-coord .wa-chat{height:19rem}
}
@media(max-width:380px){.hv-coord .wa-opt{grid-template-columns:6rem 1fr}}

/* ===== v2: ten scenes, controls, simulated chips ===== */
.hv-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hv-coord .wa-chip[data-kind="admin"],.hv-coord .wa-chip[data-kind="test"]{color:var(--ink);border-color:var(--line)}
.hv-coord .wa-chip[data-kind="sim"]{border-style:dashed;border-color:var(--amber);color:var(--amber-text)}
.hv-coord .wa-chip:not([data-kind="sched"]) .wa-clk{display:none}
.hv-coord .wa-tabs span{transition:background .25s,color .25s}
.hv-coord .wa-it{will-change:opacity,transform}
.hv-coord .wa-k-sys{align-self:center;max-width:94%;text-align:center;padding:.35rem .75rem;border-radius:10px;background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--muted);font-size:.72rem;line-height:1.35}
.hv-coord .wa-k-note{align-self:center;max-width:94%;text-align:center;color:var(--muted);font-size:.7rem;line-height:1.35;font-style:italic}
.hv-coord .wa-k-pin{align-self:stretch;display:flex;align-items:center;gap:.4rem;padding:.35rem .6rem;border-radius:8px;border-left:3px solid var(--accent);background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--muted);font-size:.7rem}
.hv-coord .wa-k-pin svg{width:12px;height:12px;color:var(--accent);flex:none}
.hv-coord .wa-k-req{align-self:stretch;display:flex;align-items:center;gap:.55rem;padding:.55rem .6rem;border-radius:12px;border:1px solid color-mix(in srgb,var(--accent) 24%,transparent);background:color-mix(in srgb,var(--paper) 78%,var(--accent))}
.hv-coord .wa-req-av{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:.75rem;font-weight:700;color:#1f2328;background:#c8d8ff}
.hv-coord .wa-req-txt{flex:1;min-width:0;color:var(--ink);font-size:.8rem;line-height:1.25}
.hv-coord .wa-req-txt b{display:block;font-weight:600}
.hv-coord .wa-req-txt small{color:var(--muted);font-size:.68rem}
.hv-coord .wa-req-btns{display:flex;gap:.3rem;flex:none}
.hv-coord .wa-req-btns i{font-style:normal;font-size:.66rem;font-weight:600;padding:.28rem .5rem;border-radius:999px;border:1px solid var(--line);color:var(--muted);transition:background .3s,color .3s,border-color .3s}
.hv-coord .wa-k-req.is-ok .wa-yes{background:#7aa7ff;border-color:#7aa7ff;color:#1f2328}
.hv-coord .wa-k-req.is-ok .wa-no{opacity:.4}
.hv-coord .wa-k-req.is-ok .wa-yes:before{content:"\2713\00a0"}
.hv-coord .wa-ai{border-style:dashed;border-color:color-mix(in srgb,var(--amber) 70%,transparent)}
.hv-coord .wa-ai-tag{display:table;margin-bottom:.3rem;padding:.1rem .45rem;border-radius:999px;border:1px dashed var(--amber);color:var(--amber-text);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.hv-coord .wa-src{display:block;margin-top:.35rem;color:var(--muted);font-size:.66rem}
.hv-coord .wa-src:before{content:"";display:inline-block;width:6px;height:6px;margin-right:.35rem;border-radius:50%;background:var(--accent);vertical-align:middle}
.hv-coord .wa-k-draft{align-self:flex-end;max-width:86%;padding:.55rem .75rem;border-radius:12px;border:1.5px dashed var(--line);color:var(--ink);font-size:.76rem;line-height:1.4;background:color-mix(in srgb,var(--ink) 4%,transparent)}
.hv-coord .wa-ico-b{background:#7aa7ff;box-shadow:0 0 10px color-mix(in srgb,#7aa7ff 70%,transparent)}
.hv-coord .wa-route .wa-b{color:#7aa7ff}
.hv-coord .wa-week{display:grid;grid-template-columns:1fr 1fr;gap:.4rem .5rem;padding:.2rem 0}
.hv-coord .wa-wk{display:flex;align-items:center;gap:.45rem;padding:.38rem .55rem;border-radius:9px;background:color-mix(in srgb,var(--paper) 78%,var(--accent));border:1px solid color-mix(in srgb,var(--accent) 24%,transparent);color:var(--ink);font-size:.74rem}
.hv-coord .wa-tick{flex:none;width:14px;height:14px;border-radius:50%;border:1.5px solid var(--line);position:relative;transition:background .25s,border-color .25s}
.hv-coord .wa-wk.is-done .wa-tick{background:#7aa7ff;border-color:#7aa7ff}
.hv-coord .wa-wk.is-done .wa-tick:after{content:"";position:absolute;left:3.5px;top:1px;width:3.5px;height:7px;border:solid #1f2328;border-width:0 1.8px 1.8px 0;transform:rotate(45deg)}
.hv-coord .wa-foot{margin:.2rem .2rem 0;padding:.45rem .6rem;border-radius:999px;text-align:center;font-size:.66rem;color:var(--muted);background:color-mix(in srgb,var(--ink) 6%,transparent);visibility:hidden}
.hv-coord .wa-foot.is-on{visibility:visible}

/* Controls (mirrors the globe tour controls) */
.hv-coord .wa-ctl{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;margin-top:.9rem;width:min(100%,21.5rem)}
.hv-coord .wa-btn{appearance:none;font:inherit;width:40px;min-height:40px;padding:.35rem;display:inline-flex;align-items:center;justify-content:center;border-radius:.4rem;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));background:transparent;color:var(--accent);cursor:pointer;transition:background .2s,border-color .2s}
.hv-coord .wa-btn:hover{background:color-mix(in srgb,var(--accent) 12%,transparent);border-color:var(--accent)}
.hv-coord .wa-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hv-coord .wa-btn svg{width:12px;height:12px;display:block}
.hv-coord .wa-btn .i-play{display:none}
.hv-coord .wa-btn.is-paused .i-play{display:block;color:var(--amber-text)}
.hv-coord .wa-btn.is-paused .i-pause{display:none}
.hv-coord .wa-count{font-size:.8125rem;color:var(--muted);font-variant-numeric:tabular-nums;margin-left:.15rem}
.hv-coord .wa-scene{flex-basis:100%;font-size:.86rem;color:var(--ink);font-weight:500;min-height:2.6em;line-height:1.3}
.hv-coord .wa-dots{display:flex;gap:.3rem;width:min(100%,21.5rem);margin-top:.1rem}
.hv-coord .wa-dots i{flex:1;height:3px;border-radius:2px;background:var(--line);transition:background .3s}
.hv-coord .wa-dots i.on{background:var(--accent)}
@media(prefers-reduced-motion:reduce){.hv-coord .wa-tabs span,.hv-coord .wa-req-btns i,.hv-coord .wa-tick,.hv-coord .wa-dots i{transition:none}}

/* v3: lock the figure to the phone's width so the scene title cannot resize it.
   (Before, the figure shrink-wrapped its widest line, so its width changed with each scene title
   and the centred phone slid sideways between scenes.) */
.hv-coord-visual{width:min(100%,21.5rem);box-sizing:border-box}
.hv-coord .wa-phone,.hv-coord .wa-ctl,.hv-coord .wa-dots{width:100%;box-sizing:border-box}
.hv-coord .wa-phone{contain:layout paint}
.hv-coord .wa-chat{flex:none}
.hv-coord .wa-scene{overflow-wrap:anywhere}

/* ===== v4: What the AI does + Planned add-ons (night panels, static) ===== */
.hv-coord-more{margin-top:clamp(1.75rem,3.5vw,2.75rem)}
.hv-ai-purpose{margin:0 0 1.15rem;max-width:46rem;color:var(--ink);font-size:clamp(1.02rem,1.7vw,1.2rem);font-weight:500;line-height:1.5;text-wrap:balance}
.hv-coord-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1rem,2.4vw,1.6rem);align-items:stretch}
.hv-ai-panel{box-sizing:border-box;display:flex;flex-direction:column;min-width:0;padding:clamp(1.15rem,2vw,1.55rem) clamp(1.15rem,2vw,1.6rem) clamp(1.05rem,1.8vw,1.4rem);border-radius:1rem;border:1px solid rgba(122,167,255,.22);color:#f5f3ee;background:linear-gradient(160deg,rgba(31,79,209,.2),rgba(31,79,209,0) 60%),linear-gradient(#0e1627,#0b1222);box-shadow:0 30px 80px -40px rgba(0,0,0,.8),inset 0 1px 0 rgba(245,243,238,.06)}
.hv-ai-kicker{margin:0 0 .45rem;color:#e8a33d;letter-spacing:.14em;text-transform:uppercase;font-size:.6875rem;font-weight:700;line-height:1.4}
.hv-ai-title{margin:0 0 .7rem;color:#f5f3ee;letter-spacing:-.03em;font-size:clamp(1.35rem,2.2vw,1.75rem);font-weight:400;line-height:1.15;text-wrap:balance}
.hv-ai-lead{margin:0 0 1rem;color:rgba(245,243,238,.78);font-size:clamp(.875rem,1.3vw,1rem);line-height:1.55;max-width:38rem}
.hv-ai-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.85rem}
.hv-ai-list li{display:grid;grid-template-columns:1.7rem minmax(0,1fr);gap:.7rem;align-items:start}
.hv-ai-ico{flex:none;width:1.7rem;height:1.7rem;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(122,167,255,.38);color:#7aa7ff;background:rgba(122,167,255,.08)}
.hv-ai-ico svg{display:block}
.hv-ai-list b{display:block;margin:0 0 .15rem;color:#f5f3ee;font-size:.9375rem;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.hv-ai-list span:not(.hv-ai-ico){display:block;color:rgba(245,243,238,.72);font-size:.875rem;line-height:1.45}
.hv-ai-human{margin:1.15rem 0 0;padding:.75rem .9rem;border-left:3px solid #e8a33d;border-radius:0 10px 10px 0;background:rgba(232,163,61,.1);color:#f5f3ee;font-size:.875rem;line-height:1.5}
.hv-ai-plan li{padding-top:.15rem}
@media(max-width:699px){
  .hv-coord-panels{grid-template-columns:1fr}
}
