/* ── v3 overrides — loaded after global.css ──
   Frames stretch to the prose height and the screens cover them; the engines
   get their own section; the closing CTA is a real message form. */

/* Crop: a glimpse, not a demo. Fade the bottom edge so the cut reads as
   intentional rather than as a viewport that ran out. */
.svcv-frame-body::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(31, 38, 42, 0) 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 2;
}
/* the side column sits at the top; height follows the frame's own aspect, not
   the prose — a wide screen recording stays wide, it doesn't get stretched
   tall to match a long paragraph */
.svcv-side { grid-column: 1; align-self: start; min-width: 0; display: flex; flex-direction: column; }
.svcv-side .svcv-frame { grid-column: auto; display: flex; flex-direction: column; }
.svcv-frame-body { flex: none; aspect-ratio: 1.6 / 1; }
/* square corners — a drawing sheet, not an app window */
.svcv-frame, .svcv-frame-body, .svcv-frame-bar { border-radius: 0; }
/* all screens run edge to edge — the frame body's own padding is the wall gap */
jm-frame[data-kind='report'] { inset: 0; }
@media (max-width: 999px) {
  .svcv-frame-body { aspect-ratio: 16 / 9; }
}
/* the "lift to meet the pointer" hover was fine on a demo; on a glimpse it asks
   for a click that goes nowhere */
.svcv-frame:hover { transform: none; border-color: var(--tile-border); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55); }

/* Frame bar: kind tag + engine instead of a fake URL */
.svcv-frame-url {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.svcv-frame-url b { font-weight: 400; color: var(--cyan); }

/* Row header: number + name left, scope-outline trigger top-right, natural
   baseline alignment — not a separate row buried in the prose */
.svcv-rowhead {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.svcv-rowhead-title { display: flex; align-items: baseline; gap: clamp(0.85rem, 2vw, 1.5rem); min-width: 0; }
.svcv-rowhead-title .svcv-copy-num { position: static; flex: 0 0 auto; }
.svcv-rowhead-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

/* The lead is the row's opening statement, not a caption */
.svcv-copy-lead {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.38rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.1rem;
}


/* Footer bar: copyright left, contact links right */
.hero-footer { justify-content: space-between; gap: 1.25rem; }
/* Phones: the 64px bar must not wrap — Send Message carries contact there */
@media (max-width: 999px) {
  .hero-footer a[href^="mailto"],
  .hero-footer a[href*="linkedin"] { display: none; }
}

/* Section head can wrap now that it's a sentence */
.svcv-sechead-title { white-space: normal; text-wrap: balance; }
/* Question leads are sentences, not one-liners — let them wrap at every width */
.svcv-copy-lead { white-space: normal; text-wrap: pretty; }

/* One CTA in the hero: the button, at every width (global.css hides it on the
   split layout because the scroll cue used to carry that role) */
@media (min-width: 1000px) {
  .hero-cta { display: flex; }
}


@media (max-width: 999px) {
  .svcv-side { grid-column: 1; }
}

/* Inline message form (classes from the source dialog, sized for the page) */
.svcv-contact .msg-form { height: auto; min-height: 0; }
.svcv-contact .msg-form-wrap { width: auto; margin: 0; }
.svcv-contact .msg-textarea { min-height: 9rem; max-height: none; }

/* Engines: three columns collapse to a ruled stack on phones */
@media (max-width: 999px) {
  .svcv-engine-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .svcv-engine-grid > article { border-left: none !important; padding-left: 0 !important; }
  .svcv-engine-grid > article + article { border-top: 1px solid var(--frame); padding-top: 1.5rem !important; }
}
/* phone-ground:start (generated, see phoneground.py) */
@media (max-width: 999px){
.svcv-frame-body::after{background: linear-gradient(to bottom, rgba(28, 32, 36, 0) 0%, var(--bg) 100%)}
}
/* phone-ground:end */
