/* =========================================================
   JUICE — case study page styles.
   Self-contained: shares the homepage tokens + chrome so each
   /case/<slug>/ page reads as part of the same site.
   ========================================================= */
:root {
  --p1: 9.8vw;
  --p2: 2.7vw;
  --p4: 0.84vw;
  --s1: 0.76vw;
  --color: #000;
  --bg: #f0efef;
  --surface: #dededd;
  --hairline: rgba(0,0,0,0.15);
  --juice: #FBD403;
}
@media screen and (max-width: 1024px) and (orientation: portrait) {
  :root { --p1: 17vw; --p2: 5.9vw; --p4: 12px; --s1: 2.4vw; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; scroll-behavior: smooth; }
body {
  width: 100%;
  background: var(--bg);
  color: var(--color);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: lighter;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- NAV (matches the homepage) ---- */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vw 2vw;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  z-index: 100;
}
.nav__wordmark { display: inline-flex; align-items: center; gap: 0.6vw; }
.nav__wordmark img { height: 3vw; width: auto; }
.nav__back {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5vw;
}
.nav__back::before { content: "←"; }
.nav__cta {
  display: inline-block;
  border: 1px solid var(--color);
  border-radius: 9vw;
  padding: 0.6vw 1.6vw;
  font-size: var(--p4);
  text-transform: uppercase;
  line-height: 1;
  background: var(--juice);
  color: var(--color);
  transition: 0.3s ease;
}
.nav__cta:hover { background: var(--color); color: var(--bg); }
@media (max-width: 1024px) and (orientation: portrait) {
  .nav { padding: 3vw 4vw; }
  .nav__wordmark img { height: 9vw; }
}

/* ---- HERO ---- */
.cp-hero { padding: 7vw 4vw 4vw; max-width: 1600px; margin: 0 auto; }
.cp-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2.5vw;
  display: inline-flex; align-items: center; gap: 0.7vw;
}
.cp-eyebrow::before {
  content: "";
  width: 0.7vw; height: 0.7vw;
  background: var(--juice);
  border: 1px solid var(--color);
  border-radius: 50%;
}
.cp-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5vw;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  max-width: 18ch;
}
.cp-lede {
  max-width: 52ch;
  margin-top: 3vw;
  font-size: 1.9vw;
  font-weight: 300;
  line-height: 1.4;
  opacity: 0.85;
}

/* ---- VISIT LINK ---- */
.cp-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.6vw;
  margin-top: 3vw;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--p4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color);
  padding-bottom: 0.3vw;
  transition: border-color 0.25s ease;
}
.cp-visit:hover { border-color: var(--juice); }

/* ---- FIGURE ---- */
.cp-figure {
  margin: 6vw auto 0;
  max-width: 1600px;
  padding: 0 4vw;
}
.cp-figure__inner {
  border: 1px solid var(--color);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.cp-figure__inner img { width: 100%; height: 100%; object-fit: cover; }
.cp-figcap {
  margin-top: 1.2vw;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---- GALLERY (extra examples) ---- */
.cp-gallery { margin-top: 2vw; }
.cp-gallery .cp-figure { margin-top: 4vw; }

/* ---- META BAR ---- */
.cp-meta {
  max-width: 1600px;
  margin: 5vw auto 0;
  padding: 4vw 4vw 0;
  border-top: 1px solid var(--color);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2vw;
}
.cp-meta__k {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.8vw;
}
.cp-meta__v {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 1.9vw;
  font-weight: 300;
  line-height: 1.05;
}

/* ---- BODY (narrative blocks) ---- */
.cp-body { max-width: 1600px; margin: 8vw auto 0; padding: 0 4vw; }
.cp-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4vw;
  padding: 4vw 0;
  border-top: 1px solid var(--hairline);
}
.cp-block:first-child { border-top: 0; }
.cp-block__h {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}
.cp-block__body p {
  font-size: 1.45vw;
  font-weight: 300;
  line-height: 1.65;
  max-width: 60ch;
}
.cp-block__body p + p { margin-top: 1.6vw; }

/* ---- SPEC ---- */
.cp-spec { max-width: 1600px; margin: 4vw auto 0; padding: 0 4vw; }
.spec {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--p4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 1px solid var(--color);
  border-bottom: 1px solid var(--color);
  padding: 1.5vw 0;
  max-width: 40vw;
}
.spec__row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.5vw 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row--head { font-weight: 400; border-bottom: 1px solid var(--color); padding-bottom: 0.8vw; margin-bottom: 0.4vw; }

/* ---- CTA / NEXT ---- */
.cp-cta {
  max-width: 1600px;
  margin: 9vw auto 0;
  padding: 6vw 4vw;
  border-top: 1px solid var(--color);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4vw;
}
.cp-cta__lead {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.4vw;
  font-weight: 400;
  line-height: 1.05;
  text-transform: none;
  max-width: 60vw;
}
.cp-cta__btn {
  display: inline-flex; align-items: center; gap: 0.8vw;
  background: var(--juice);
  border: 1px solid var(--color);
  border-radius: 9vw;
  padding: 1.1vw 2.4vw;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--p4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.25s ease;
}
.cp-cta__btn:hover { transform: translateY(-0.3vw); }

/* ---- FOOTER ---- */
footer {
  width: 100%;
  padding: 4vw 2vw 2vw;
  border-top: 1px solid var(--color);
  background: var(--bg);
}
.cp-next {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 2vw;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4vw;
}
.cp-next a:hover { color: #000; border-bottom: 1px solid var(--juice); }
.footer__wordmark {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 22vw;
  font-weight: lighter;
  line-height: 0.7;
  letter-spacing: -0.02em;
}

/* ---- Glyph interactive widgets ---- */
.cp-react { width: 100%; }
.gx, .gm {
  border: 1px solid var(--color);
  background: #faf9f8;
  padding: 2vw;
  font-family: "Inter", system-ui, sans-serif;
}
.gx__head, .gm__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6vw; }
.gx__label { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.2em; text-transform: uppercase; }
.gx__note { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; }
.gx__sub { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; margin-right: 0.8vw; }

.gx__flow { display: flex; align-items: center; gap: 1.2vw; flex-wrap: wrap; }
.gx__node { border: 1px solid var(--color); padding: 0.9vw 1.3vw; text-align: center; line-height: 1.25; }
.gx__node b { display: block; font-family: "Inter Tight", sans-serif; font-weight: 500; }
.gx__node small { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.gx__node--gw { background: var(--juice); }
.gx__arrow { font-size: var(--p2); opacity: 0.45; }
.gx__modes { display: flex; flex-wrap: wrap; gap: 0.6vw; }
.gx__mode { font-family: "Inter", sans-serif; font-size: var(--p4); border: 1px solid var(--color); background: transparent; color: var(--color); padding: 0.7vw 1.1vw; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.gx__mode:hover { background: var(--surface); }
.gx__mode.is-active { background: var(--color); color: var(--bg); }
.gx__detail { margin-top: 1.6vw; border-top: 1px solid var(--hairline); padding-top: 1.4vw; }
.gx__role { font-family: "Inter Tight", sans-serif; font-size: var(--p2); font-weight: 300; margin-bottom: 1vw; }
.gx__tools, .gx__ints { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6vw; }
.gx__ints { margin-top: 1.6vw; }
.gx__chip { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--color); border-radius: 3vw; padding: 0.4vw 0.9vw; }
.gx__chip--int { background: var(--juice); }

.gm__tabs { display: flex; gap: 0.6vw; margin-bottom: 1.4vw; }
.gm__tab { flex: 1; font-family: "Inter", sans-serif; font-size: var(--p4); border: 1px solid var(--color); background: transparent; color: var(--color); padding: 0.7vw; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.gm__tab:hover { background: var(--surface); }
.gm__tab.is-active { background: var(--juice); }
.gm__chat { display: flex; flex-direction: column; gap: 1vw; }
.gm__msg { max-width: 82%; padding: 1vw 1.3vw; font-size: var(--p4); line-height: 1.5; }
.gm__msg--user { align-self: flex-end; background: var(--surface); }
.gm__msg--bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--color); }
.gm__who { display: block; font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.55; margin-bottom: 0.5vw; }
.gm__register { margin-top: 1.4vw; border-top: 1px solid var(--hairline); padding-top: 1.2vw; font-size: var(--p4); }

/* ---- Glyph hero: interactive iPhone (daily briefing feed) ---- */
.cp-phone-hero { max-width: 1600px; margin: 6vw auto 0; padding: 0 4vw; }
.cp-phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #f3f1ec 0%, #e7e5e0 100%);
  border: 1px solid var(--color);
  padding: 4vw 0;
  overflow: hidden;
}
.cp-phone-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cp-phone-tag {
  position: absolute;
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--juice);
  border: 1px solid var(--color);
  border-radius: 4vw;
  padding: 0.45vw 1.1vw;
}
.cp-phone-tag--a { top: 9%; left: 16%; }
.cp-phone-tag--b { bottom: 16%; right: 14%; }
.cp-phone-tag--c { top: 22%; right: 18%; }
.ph__frame {
  width: 300px; max-width: 76vw;
  aspect-ratio: 300 / 620;
  background: #141414;
  border-radius: 44px;
  padding: 11px;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.ph__island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; background: #000; border-radius: 14px; z-index: 4; }
.ph__screen { background: #f6f5f3; border-radius: 33px; height: 100%; overflow: hidden; display: flex; flex-direction: column; font-family: "Inter", system-ui, sans-serif; }
.ph__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 4px; font-size: 11px; font-weight: 600; color: var(--color); }
.ph__bars { width: 26px; height: 11px; border: 1.5px solid var(--color); border-radius: 3px; opacity: 0.8; }
.ph__head { display: flex; align-items: center; gap: 9px; padding: 8px 14px 10px; border-bottom: 1px solid var(--hairline); }
.ph__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--juice); border: 1px solid var(--color); display: flex; align-items: center; justify-content: center; font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 15px; }
.ph__name { font-weight: 600; font-size: 13px; }
.ph__status { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.ph__badge { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--surface); border: 1px solid var(--color); border-radius: 20px; padding: 3px 8px; }
.ph__feed { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ph__item { text-align: left; background: #fff; border: 1px solid var(--color); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--color); transition: box-shadow 0.2s ease; }
.ph__item.is-open { box-shadow: inset 3px 0 0 var(--juice); }
.ph__itemtop { display: flex; gap: 8px; align-items: baseline; }
.ph__time { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.08em; opacity: 0.5; }
.ph__title { font-weight: 600; font-size: 12px; }
.ph__sum { font-size: 11px; opacity: 0.7; margin-top: 3px; line-height: 1.35; }
.ph__detail { margin: 9px 0 0; padding-left: 15px; font-size: 11px; line-height: 1.55; }
.ph__detail li { margin-bottom: 3px; }

/* ---- Career Coach: relational graph + ask-the-graph ---- */
.cp-live { width: 100%; }
.cg, .ca { border: 1px solid var(--color); background: #faf9f8; padding: 2vw; }
.cg__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2vw; }
.cg__svg { width: 100%; height: auto; display: block; }
.cg__edges line { stroke: #cfcdc8; stroke-width: 1.5; opacity: 0; transition: opacity 0.6s ease; }
.cg__edges.is-on line { opacity: 1; }
.cg__edges line.is-lit { stroke: #E6B400; stroke-width: 3; opacity: 1; }
.cg__node circle { fill: #d6d4cf; stroke: #1f1f1f; stroke-width: 1.5; transition: fill 0.3s ease, opacity 0.3s ease; }
.cg__node text { font-family: "JetBrains Mono", monospace; font-size: 11px; fill: var(--color); }
.cg__node.is-live { cursor: pointer; }
.cg__node--note.is-live circle { fill: #FBD403; }
.cg__node--resource.is-live circle { fill: #ffffff; }
.cg__node--project.is-live circle { fill: #1f1f1f; }
.cg__node.is-dim { opacity: 0.28; }
.cg__node.is-sel circle { fill: #FBD403; stroke-width: 3; }
.cg__node.is-sel text { font-weight: 700; }
.cg__foot { display: flex; align-items: center; justify-content: space-between; gap: 2vw; margin-top: 1.2vw; border-top: 1px solid var(--hairline); padding-top: 1.2vw; }
.cg__cap { font-size: var(--p4); line-height: 1.5; }
.cg__btn { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.1em; text-transform: uppercase; background: var(--juice); border: 1px solid var(--color); color: var(--color); padding: 0.7vw 1.2vw; cursor: pointer; white-space: nowrap; }
.cg__btn--ghost { background: transparent; }
.ca__qs { display: flex; flex-wrap: wrap; gap: 0.6vw; margin-top: 1vw; }
.ca__q { font-family: "Inter", system-ui, sans-serif; font-size: var(--p4); border: 1px solid var(--color); background: transparent; color: var(--color); padding: 0.6vw 1vw; cursor: pointer; border-radius: 4vw; transition: background 0.2s ease, color 0.2s ease; }
.ca__q:hover { background: var(--surface); }
.ca__q.is-active { background: var(--color); color: var(--bg); }
.ca__out { border-top: 1px solid var(--hairline); margin-top: 1.4vw; padding-top: 1.4vw; min-height: 5vw; font-size: var(--p4); line-height: 1.55; }
.ca__src { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5vw; font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.8vw; }
.ca__hint { opacity: 0.55; }

/* graph rendered inside the phone screen */
.ph__frame--graph .ph__screen { background: #faf9f8; }
.cgp { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 4px 8px 12px; }
.cgp__svg { width: 100%; height: auto; }
.cgp .cg__node text { font-size: 12px; }
.cgp__foot { margin-top: auto; border-top: 1px solid var(--hairline); padding-top: 9px; }
.cgp__cap { font-size: 10.5px; line-height: 1.4; min-height: 30px; margin-bottom: 8px; }
.cgp__btn { width: 100%; font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--juice); border: 1px solid var(--color); color: var(--color); padding: 9px; cursor: pointer; }
.cgp__btn--ghost { background: transparent; }

@media (max-width: 1024px) and (orientation: portrait) {
  .cp-title { font-size: 9vw; max-width: 100%; }
  .cg, .ca { padding: 6vw; }
  .cg__node text { font-size: 14px; }
  .cgp .cg__node text { font-size: 13px; }
  .cg__foot { flex-direction: column; align-items: flex-start; gap: 4vw; }
  .gx, .gm { padding: 6vw; }
  .gx__arrow { display: none; }
  .gx__node { flex: 1; }
  .gm__msg { max-width: 92%; }
  .cp-phone-stage { padding: 12vw 0; }
  .cp-phone-tag--a { left: 5%; } .cp-phone-tag--b { right: 5%; } .cp-phone-tag--c { right: 6%; }
  .cp-lede { font-size: 5vw; line-height: 1.35; margin-top: 6vw; }
  .cp-meta { grid-template-columns: 1fr 1fr; gap: 6vw; padding-top: 8vw; }
  .cp-meta__v { font-size: 5.5vw; }
  .cp-block { grid-template-columns: 1fr; gap: 3vw; padding: 8vw 0; }
  .cp-block__body p { font-size: 4.4vw; line-height: 1.6; }
  .spec { max-width: 100%; }
  .cp-cta { flex-direction: column; align-items: flex-start; }
  .cp-cta__lead { font-size: 9vw; max-width: 100%; }
  .nav__back { display: none; }
}

/* =========================================================
   Career Coach — visual-demo redesign (lean copy, dark demo
   panels in the light editorial page). All classes new, so
   the other /case/ pages are unaffected.
   ========================================================= */

/* ---- shared demo framing ---- */
.cv-wrap, .cp-demo { max-width: 1600px; margin: 6vw auto 0; padding: 0 4vw; }
.cv-wrap { margin-top: 4.5vw; }
.cp-demo-label {
  display: flex; align-items: center; gap: 0.9vw;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1); letter-spacing: 0.25em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 1.6vw;
}
.cp-demo-label span {
  background: var(--juice); border: 1px solid var(--color);
  color: var(--color); padding: 0.25vw 0.7vw; letter-spacing: 0.15em; opacity: 1;
}
.cp-demo-cap {
  margin-top: 1.3vw; max-width: 70ch;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--s1); letter-spacing: 0.05em; text-transform: uppercase;
  opacity: 0.55; line-height: 1.6;
}

/* ---- feature strip: two-word headers, one line each ---- */
.cp-feat {
  max-width: 1600px; margin: 7vw auto 0; padding: 4vw;
  border-top: 1px solid var(--color); border-bottom: 1px solid var(--color);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw;
}
.cp-feat__h {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.7vw; font-weight: 400; line-height: 1.0;
}
.cp-feat__h span { display: block; font-style: italic; opacity: 0.8; }
.cp-feat__item p {
  margin-top: 1.3vw; font-size: 1.15vw; font-weight: 300;
  line-height: 1.55; max-width: 34ch; opacity: 0.85;
}

/* ---- nightly-sync vault demo (light desktop window) ---- */
.cv { border: 1px solid var(--color); background: #faf9f8; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.10); }
.cv__bar {
  display: flex; align-items: center; gap: 1vw;
  padding: 0.8vw 1.2vw; border-bottom: 1px solid var(--hairline); background: #efeee9;
}
.cv__dots { display: inline-flex; gap: 0.45vw; }
.cv__dot { width: 0.7vw; height: 0.7vw; min-width: 8px; min-height: 8px; border-radius: 50%; background: #cfccc4; border: 1px solid rgba(0,0,0,0.22); }
.cv__dot--y { background: var(--juice); }
.cv__title { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.1em; opacity: 0.55; }
.cv__state { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; }

.cv__stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(130% 130% at 50% 0%, #f5f3ee 0%, #eae8e2 70%, #e4e1da 100%);
}
.cv__scan {
  position: absolute; top: 0; bottom: 0; left: -22%; width: 16%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(230,180,0,0.30), transparent);
}
.cv.is-filed .cv__scan { animation: cvscan 0.9s ease forwards; }
@keyframes cvscan { 0% { left: -22%; opacity: 1; } 100% { left: 112%; opacity: 0; } }

.cv__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.cv__links line { stroke: #E6B400; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.5s ease; }
.cv__links.is-on line { opacity: 0.9; }

/* feed lines: source app -> scattered file (fade out once filed) */
.cv__feeds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.cv__feeds line { stroke: #bdbab2; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; opacity: 0.6; transition: opacity 0.4s ease; }
.cv.is-filed .cv__feeds line { opacity: 0; }

/* source-app origin badges (scattered state) */
.cv__origin {
  position: absolute; transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5vw;
  background: #fff; border: 1px solid var(--color); border-radius: 3vw;
  padding: 0.4vw 0.9vw 0.4vw 0.55vw; box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  opacity: 1; transition: opacity 0.45s ease;
}
.cv.is-filed .cv__origin { opacity: 0; }
.cv__origin span { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.04em; white-space: nowrap; }
.cv__srcico { width: 1.1vw; min-width: 15px; max-width: 18px; height: auto; display: block; flex: none; }

.cv__concept {
  position: absolute; transform: translate(-50%, -50%); z-index: 3;
  font-family: "JetBrains Mono", monospace; font-size: var(--s1);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #16151a; background: var(--juice); border: 1px solid #000;
  padding: 0.45vw 0.85vw; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0; transition: opacity 0.4s ease 0.5s;
}
.cv__concept.is-on { opacity: 1; }

.cv__file {
  position: absolute; z-index: 4;
  width: 13vw; min-width: 130px; max-width: 186px; padding: 0.7vw 0.85vw;
  background: #fff; border: 1px solid var(--color); box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: left 0.9s cubic-bezier(.6,.02,.2,1), top 0.9s cubic-bezier(.6,.02,.2,1),
              transform 0.9s cubic-bezier(.6,.02,.2,1), opacity 0.5s ease;
}
.cv__ftop { display: flex; align-items: center; gap: 0.5vw; }
.cv__fdot { width: 0.6vw; height: 0.6vw; min-width: 8px; min-height: 8px; border-radius: 2px; flex: none; border: 1px solid rgba(0,0,0,0.4); }
.cv__fname { font-family: "JetBrains Mono", monospace; font-size: var(--s1); letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv__fprev { font-size: 0.8vw; opacity: 0.5; margin-top: 0.3vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv__file--dup { opacity: 0.6; }
.cv__file--dup .cv__fname { text-decoration: line-through; }
.cv.is-filed .cv__file--dup { opacity: 0; }

.cv__bin {
  position: absolute; right: 2.4%; bottom: 6%; z-index: 2;
  font-family: "JetBrains Mono", monospace; font-size: var(--s1);
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,0,0,0.4);
  border: 1px dashed rgba(0,0,0,0.3); padding: 0.5vw 0.9vw;
  opacity: 0; transition: opacity 0.4s ease;
}
.cv.is-filed .cv__bin { opacity: 1; }

.cv__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2vw;
  padding: 1.1vw 1.4vw; border-top: 1px solid var(--hairline); background: #efeee9;
}
.cv__cap { font-size: var(--p4); line-height: 1.5; opacity: 0.85; display: flex; gap: 1.6vw; align-items: baseline; flex-wrap: wrap; }
.cv__stat b { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 1.5vw; margin-right: 0.3vw; }
.cv__btn {
  font-family: "JetBrains Mono", monospace; font-size: var(--s1);
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--juice); border: 1px solid #000; color: #16151a;
  padding: 0.8vw 1.4vw; cursor: pointer; white-space: nowrap; transition: transform 0.2s ease;
}
.cv__btn:hover { transform: translateY(-0.2vw); }
.cv__btn--ghost { background: transparent; }

/* ---- phone wrap (centers the chat phone on a light stage) ---- */
.cp-phone-wrap {
  display: flex; justify-content: center;
  background: linear-gradient(180deg, #f3f1ec 0%, #e7e5e0 100%);
  border: 1px solid var(--color); padding: 4vw 0;
}

/* ---- chat demo: the real "using it" surface (light phone) ---- */
.ph__frame--chat .ph__screen { background: #f6f5f3; }
.cc__thread { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.cc__msg { max-width: 84%; padding: 8px 10px; font-size: 11.5px; line-height: 1.42; border-radius: 14px; }
.cc__msg--user { align-self: flex-end; background: var(--juice); color: #16151a; border-bottom-right-radius: 4px; }
.cc__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--hairline); color: var(--color); border-bottom-left-radius: 4px; }
.cc__reading { display: inline-flex; align-items: center; gap: 5px; font-style: italic; opacity: 0.6; font-size: 11px; }
.cc__spin { display: inline-block; animation: ccspin 0.9s linear infinite; }
@keyframes ccspin { to { transform: rotate(360deg); } }
.cc__ans p { animation: ccrise 0.4s ease both; margin: 0; }
.cc__ans p + p { margin-top: 4px; }
@keyframes ccrise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cc__cites { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--hairline); }
.cc__cite-label { font-family: "JetBrains Mono", monospace; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
.cc__cite { font-family: "JetBrains Mono", monospace; font-size: 8.5px; background: #f0efef; border: 1px solid var(--hairline); border-radius: 4px; padding: 2px 5px; }
.cc__sugg { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; border-top: 1px solid var(--hairline); background: #faf9f8; }
.cc__chip { font-family: "Inter", system-ui, sans-serif; font-size: 10.5px; background: #fff; border: 1px solid var(--color); color: var(--color); border-radius: 20px; padding: 5px 9px; cursor: pointer; transition: background 0.2s ease; }
.cc__chip:hover { background: var(--juice); }
.cc__chip--reset { border-style: dashed; opacity: 0.7; }

@media (max-width: 1024px) and (orientation: portrait) {
  .cp-feat { grid-template-columns: 1fr; gap: 7vw; padding: 8vw 4vw; }
  .cp-feat__h { font-size: 8vw; }
  .cp-feat__item p { font-size: 4vw; max-width: 100%; }
  .cp-demo-cap, .cp-demo-label { font-size: 2.6vw; }
  .cv__stage { aspect-ratio: 10 / 14; }
  .cv__file { min-width: 92px; width: 27vw; padding: 1.6vw 1.8vw; }
  .cv__fname { font-size: 2.3vw; }
  .cv__fprev { display: none; }
  .cv__cap { font-size: 2.8vw; max-width: 100%; gap: 4vw; }
  .cv__stat b { font-size: 4.5vw; }
  .cv__btn, .cv__state, .cv__title, .cp-demo-label span { font-size: 2.4vw; }
  .cv__concept { font-size: 2.1vw; }
  .cv__origin span { display: none; }
  .cv__origin { padding: 1.4vw; }
  .cv__srcico { min-width: 18px; }
}
