/* v30: only the approved homepage cover, mobile reversions, project artwork,
   and the resume reading-path motion. Other v29 sections remain untouched. */

/* The selected desktop cover is a full-bleed halftone landscape, not a card. */
@media (min-width:1121px) {
  body.v30-preview.v20-home[data-page="home"] .hero {
    width:100%; max-width:none; min-height:100svh; margin:-70px 0 0;
    padding:85px 6.2vw 75px; grid-template-columns:minmax(0,1fr) minmax(480px,1fr);
    gap:38px; border:0; border-radius:0; box-shadow:none; background:#fafffb;
  }
  body.v30-preview.v20-home[data-page="home"] .hero::before {
    content:""; display:block!important; position:absolute; inset:-12px; z-index:0;
    background:url('assets/v30-approved-home-background.png') center/cover no-repeat;
    opacity:1; transform:translate3d(var(--v29-bg-x,0px),var(--v29-bg-y,0px),0) scale(1.02);
    transition:transform .55s cubic-bezier(.2,.75,.2,1); pointer-events:none;
  }
  body.v30-preview.v20-home[data-page="home"] .hero::after { content:none!important; display:none!important; }
  body.v30-preview.v20-home[data-page="home"] .hero h1 {
    font-size:clamp(62px,5.1vw,82px); line-height:1.16;
  }
  body.v30-preview.v20-home[data-page="home"] .hero-stage {
    min-height:600px; border:8px solid #fff; border-radius:39px;
    background:linear-gradient(150deg,#fff 0%,#fff 43%,#f1fae8 73%,#c7eeef 100%);
    box-shadow:0 25px 58px #2347462b,inset 0 0 0 1px #d9e5e1;
  }
}

/* Restore BOTH project illustrations' v28 colors, without touching the card
   copy, proof modules, or the existing illustration motion/geometry. */
body.v30-preview .project-visual.visual-agent {
  background:radial-gradient(circle at 50% 47%,#f4fca9 0,#d7f3ad 43%,#aadd85 100%);
  border-color:#d9e6dd;
}
body.v30-preview .visual-agent::before {
  background-image:radial-gradient(circle,#80b66a 1px,transparent 1.5px); opacity:.16;
}
body.v30-preview .visual-agent .agent-orbit,
body.v30-preview .visual-agent .agent-orbit::before { border-color:#4c986c62; }
body.v30-preview .visual-agent .agent-orbit b {
  background:#184634; border-color:#8ec35f; box-shadow:0 16px 35px #0000002e;
}
body.v30-preview .visual-agent .agent-orbit span {
  background:#ffffffE0; border-color:#b8d8b2; color:#333;
}
body.v30-preview .project-visual.visual-kb {
  background:radial-gradient(circle at 75% 20%,#edfcfb,#c9eff1 47%,#a7dfdf 100%);
  border-color:#d9e6dd;
}
body.v30-preview .visual-kb::before {
  background-image:radial-gradient(circle,#71b7b5 1px,transparent 1.5px); opacity:.16;
}
body.v30-preview .visual-kb::after {
  border-color:#7bbdb665; box-shadow:0 0 0 52px #94d9d41c,0 0 0 106px #94d9d412;
}
body.v30-preview .kb-console {
  border-color:#a6c9a5; background:#fbfff4ed; box-shadow:0 20px 38px #244c281e;
}
body.v30-preview .kb-console::after {
  background:radial-gradient(circle at 28% 25%,#80d9e1,#b8eeec 56%,#e1f7ee 100%);
  box-shadow:0 17px 27px #48989526;
}
body.v30-preview .kb-console i:first-child { background:#8fc959; }
body.v30-preview .kb-console p { color:#777; }
body.v30-preview .kb-console strong { color:#2f774c; }

/* Exact v23 sidebar path/dots; v30.js gives the one-shot drawing a reversible
   scroll progress instead. No extra decoration is added to the resume hero. */
body.v30-preview[data-page="resume"] .v30-resume-path path {
  fill:none; stroke:#78b366; stroke-width:2; stroke-linecap:round;
  stroke-dasharray:none; stroke-dashoffset:0;
}
body.v30-preview[data-page="resume"] .v30-resume-path circle {
  fill:#d8ecbf; stroke:#6dab5c; stroke-width:2; opacity:1;
}

@media (max-width:720px) {
  /* The mobile title cover returns to v28, not the rejected generated mockup. */
  body.v30-preview.v20-home[data-page="home"] .hero {
    background:#f7ffff url('assets/v28-halftone-landscape.png') 8% center/cover no-repeat!important;
    border:0; border-radius:0; box-shadow:none;
  }
  body.v30-preview.v20-home[data-page="home"] .hero::before,
  body.v30-preview.v20-home[data-page="home"] .hero::after { display:none!important; }
  body.v30-preview.v20-home[data-page="home"] .hero-copy {
    background:transparent!important; background-image:none!important;
    border:0; border-radius:0; box-shadow:none;
  }
  body.v30-preview.v20-home[data-page="home"] .hero-stage {
    margin-top:0; background:linear-gradient(145deg,#fff,#fff 57%,#ebf7f4);
  }

  /* In v28 the technical evidence panel was absent on phones. */
  body.v30-preview .tech-evidence { display:none!important; }

  /* Only the artwork ratio returns to v28; the project cards' lower content
     and current animations retain their v29 behavior. */
  body.v30-preview .project-visual.visual-agent,
  body.v30-preview .project-visual.visual-kb { min-height:175px; }
  body.v30-preview .visual-agent::before,
  body.v30-preview .visual-kb::before,
  body.v30-preview .visual-kb::after,
  body.v30-preview .kb-console::after { display:none; }
  body.v30-preview .kb-console {
    left:50%; top:50%; width:min(80%,280px); padding:12px;
    transform:translate(-50%,-50%) rotate(-2deg);
  }
  body.v30-preview .kb-console p { margin-top:7px; font-size:9px; }
  body.v30-preview .kb-console strong { margin-top:8px; font-size:10px; }
  body.v30-preview .v30-resume-path { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  body.v30-preview.v20-home[data-page="home"] .hero::before {
    transform:none!important; transition:none!important;
  }
}
