/* ===========================================================================
   /run/ — the Run side of the studio.

   Warm paper, three thin grid guides, a code-built robot fixed behind the
   first two sections, then a five-card mosaic and the detail sections.
   Reference treatments: "Nova Agent" (robot, grid, gradient outlines) and
   the automation feature mosaic, both rebuilt with Shahab's own content.
   ========================================================================= */

.page-run {
  --ink-r: var(--ink);
  --dim: rgba(28, 22, 18, 0.5);
  --guide: rgba(28, 22, 18, 0.09);
  --grad: linear-gradient(var(--coral), var(--coral)); /* brand: coral only, no gradient */
  --col: 17%;
  background: var(--paper);
  color: var(--ink-r);
}

/* Three fixed vertical guides at 17%, 50% and 83%. */
.guides {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(17% - 0.5px), var(--guide) calc(17% - 0.5px), var(--guide) calc(17% + 0.5px), transparent calc(17% + 0.5px)),
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--guide) calc(50% - 0.5px), var(--guide) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to right, transparent calc(83% - 0.5px), var(--guide) calc(83% - 0.5px), var(--guide) calc(83% + 0.5px), transparent calc(83% + 0.5px));
}

#robot {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.page-run main, .page-run .footer { position: relative; z-index: 2; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Hero --------------------------------------------------------------- */

.run-hero {
  position: relative;
  min-height: calc(100svh - 64px);
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(28px, 4vh, 48px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.run-hero__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: flex-start;
}

/* The incoming-enquiry box. */
.prompt {
  width: min(380px, 100%);
  margin-left: calc(var(--col) - var(--gutter));
}
.prompt__tab {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink-r);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.prompt__box {
  position: relative;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--ink-r);
  background: rgba(243, 238, 230, 0.7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.prompt__box::before,
.prompt__box::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink-r);
}
.prompt__box::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.prompt__box::after  { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.prompt__label { display: block; color: var(--dim); margin-bottom: 6px; }
.prompt__caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--ink-r);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.prompt__next {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(28, 22, 18, 0.28);
}

.features {
  width: min(300px, 26%);
  margin-right: calc(17% - var(--gutter));
  border-top: 1px solid var(--ink-r);
}
.features li {
  display: grid;
  grid-template-columns: 18% 1fr;
  align-items: center;
  height: 26px;
  border-bottom: 1px solid var(--guide);
}
.features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-r);
  justify-self: center;
}
.features li.dim { color: var(--dim); }
.features li.dim::before { background: var(--dim); }

.run-hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: end;
}
/* DOM order is kicker, H1, answer (so the H1 leads for search engines);
   visually the answer sits above, filling the gap under the enquiry box. */
.run-hero__copy {
  display: grid;
  grid-template-areas: "answer" "kicker" "title";
  justify-items: start;
}
.run-hero__copy .run-answer { grid-area: answer; max-width: 500px; margin: 0 0 var(--s-5) calc(var(--col) - var(--gutter)); }
.run-hero__copy .run-kicker { grid-area: kicker; }
.run-hero__copy .gradbox { grid-area: title; }
.run-kicker { margin: 0 0 14px; }

.gradbox {
  display: block;
  width: fit-content;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.gradbox span {
  display: block;
  width: fit-content;
  padding: 0.06em 0.18em 0.12em;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--grad) border-box;
}
.gradbox span + span { margin-top: -2px; }
.gradbox span:first-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.32em), calc(100% - 0.32em) 100%, 0 100%); }

.run-answer {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px;
  padding: 14px 16px;
  background: rgba(243, 238, 230, 0.82);
  border-left: 2px solid var(--ink-r);
}

.scrolllink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-3);
  padding: 8px 12px;
  text-decoration: none;
  position: relative;
}
.scrolllink::before,
.scrolllink::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink-r);
}
.scrolllink::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scrolllink::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scrolllink svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* --- Never miss an enquiry (robot close-up behind) --------------------- */

.run-sec {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.run-sec--bot { min-height: 120svh; display: flex; align-items: center; }
.run-sec--bot .run-col {
  max-width: 560px;
  margin-left: calc(var(--col) - var(--gutter));
}
.run-col .chapter { margin-bottom: var(--s-3); }
.page-run .chapter__tab { background: var(--paper); font-family: var(--font-mono); }
.run-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-3);
}
.run-lead { font-size: 19px; line-height: 1.5; letter-spacing: -0.012em; margin: 0 0 var(--s-4); }
.run-panel {
  background: rgba(243, 238, 230, 0.86);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.facts-grid { border-top: 1px solid var(--ink-r); }
.fact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: 14px;
  border-bottom: 1px solid var(--guide);
  font-size: 15.5px;
  line-height: 1.5;
}
.fact-row > .mono { padding-top: 3px; color: var(--dim); }
.fact-row ul { display: grid; gap: 4px; }
.fact-row li { position: relative; padding-left: 14px; }
.fact-row li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--ink-r); }
.fact-row p { margin: 0; }

/* --- Mosaic ------------------------------------------------------------- */

.mosaic-sec {
  position: relative;
  background: var(--panel);
  border-top: 1px solid var(--ink-r);
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.mosaic-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: end;
  max-width: 1374px;
  margin: 0 auto var(--s-5);
}
.mosaic-head .run-h2 { margin: 0; }
.mosaic-head p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 520px; }

.mosaic-wrap { container-type: inline-size; max-width: 1374px; margin: 0 auto; }

.mosaic {
  --u: calc(100cqw / 1374);
  display: grid;
  grid-template-columns: calc(339 * var(--u)) calc(627 * var(--u)) calc(388 * var(--u));
  grid-template-rows: calc(149 * var(--u)) calc(343 * var(--u)) calc(156 * var(--u));
  column-gap: calc(10 * var(--u));
  row-gap: calc(9 * var(--u));
  font-family: var(--font-display);
  color: var(--ink);
}

.mcard {
  position: relative;
  overflow: hidden;
  border-radius: calc(22 * var(--u));
  border: calc(1.6 * var(--u)) solid rgba(251, 248, 243, 0.92);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}
.mcard:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mcard__go {
  position: absolute;
  right: calc(16 * var(--u));
  top: calc(14 * var(--u));
  font-family: var(--font-mono);
  font-size: max(11px, calc(10 * var(--u)));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 22, 18, 0.45);
  z-index: 4;
}

.m-notif   { grid-column: 1; grid-row: 1; }
.m-connect { grid-column: 1; grid-row: 2 / span 2; }
.m-auto    { grid-column: 2; grid-row: 1 / span 2; }
.m-numbers { grid-column: 3; grid-row: 1 / span 2; }
.m-search  { grid-column: 2 / span 2; grid-row: 3; }

/* Card 1: notification */
.m-notif {
  background:
    var(--panel);
  padding: calc(37 * var(--u)) calc(12 * var(--u)) 0 calc(11 * var(--u));
}
.toast-wrap { position: relative; height: calc(70 * var(--u)); }
.toast-ledge {
  position: absolute;
  left: calc(24 * var(--u)); right: calc(20 * var(--u)); top: calc(55 * var(--u));
  height: calc(23 * var(--u));
  border-radius: calc(14 * var(--u));
  background: var(--panel);
  box-shadow: none;
}
.toast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  padding: 0 calc(12 * var(--u)) 0 calc(13 * var(--u));
  border-radius: calc(16 * var(--u));
  background: var(--paper);
  box-shadow: none;
}
.toast svg { width: calc(27 * var(--u)); height: calc(27 * var(--u)); flex: none; }
.toast__t { font-size: max(11px, calc(11.2 * var(--u))); font-weight: 600; letter-spacing: -0.012em; line-height: 1.1; color: var(--ink); margin: 0; }
.toast__s { font-size: max(11px, calc(10 * var(--u))); line-height: 1.28; color: var(--ink); margin: calc(3.6 * var(--u)) 0 0; max-width: calc(150 * var(--u)); }
.toast__time { align-self: flex-start; margin: calc(12 * var(--u)) 0 0 auto; font-size: max(11px, calc(7.4 * var(--u))); font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Card 2: connect */
.m-connect {
  background: var(--panel);
  padding: calc(32 * var(--u)) 0 0 calc(20 * var(--u));
}
.m-h {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--ink);
}
.m-connect .m-h { font-size: calc(28 * var(--u)); }
.m-sub { margin: calc(14 * var(--u)) 0 0; font-size: max(16px, calc(16 * var(--u))); line-height: 1.32; letter-spacing: -0.013em; color: var(--ink); max-width: calc(280 * var(--u)); }
.chips {
  position: absolute;
  left: calc(11 * var(--u)); right: calc(16 * var(--u)); bottom: calc(13 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  z-index: 2;
}
.chip-row { display: flex; gap: calc(9 * var(--u)); }
.chip-row.r2 { padding-left: calc(10 * var(--u)); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(40 * var(--u));
  padding: 0 calc(13 * var(--u));
  border-radius: 999px;
  background: var(--paper);
  box-shadow: none;
  font-size: max(11px, calc(15.5 * var(--u)));
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  white-space: nowrap;
}
.chip i {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--c, var(--ink));
  flex: none;
}
.chip--tilt {
  position: absolute;
  right: calc(6 * var(--u));
  bottom: calc(124 * var(--u));
  transform: rotate(-12deg);
  z-index: 3;
  box-shadow: none;
}

/* Card 3: automate (hero) */
.m-auto {
  background:
    var(--panel);
}
.m-auto__copy { position: relative; z-index: 3; padding: calc(37 * var(--u)) calc(40 * var(--u)) 0 calc(45 * var(--u)); }
.m-auto .m-h { font-size: calc(33 * var(--u)); line-height: 1.32; letter-spacing: -0.03em; color: var(--ink); }
.m-auto .m-h .g { color: var(--coral); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.m-auto .m-sub { color: var(--body); max-width: calc(440 * var(--u)); }

.illo { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.win {
  position: absolute;
  border-radius: calc(11 * var(--u));
  border: calc(3 * var(--u)) solid var(--paper);
  overflow: hidden;
  box-shadow: none;
}
.win__bar {
  height: calc(13.4 * var(--u));
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: calc(4.6 * var(--u));
  padding-left: calc(4.9 * var(--u));
}
.win__bar i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: var(--coral); }
.win__body { position: relative; height: 100%; }
.win__body::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--strip, 20%); background: var(--strip-c); }
.win__lines { position: absolute; left: calc(var(--strip, 20%) + 8%); right: 8%; top: 12%; display: grid; gap: calc(9 * var(--u)); }
.win__lines span { height: calc(7 * var(--u)); border-radius: 99px; background: rgba(28, 22, 18, 0.09); }
.win__lines span:nth-child(2) { width: 72%; }
.win__lines span:nth-child(3) { width: 86%; }
.win__lines span:nth-child(4) { width: 54%; }
.win--back {
  left: calc(121 * var(--u)); top: calc(245 * var(--u));
  width: calc(324 * var(--u)); height: calc(250 * var(--u));
  transform: rotate(-7deg);
  --strip: 23.7%; --strip-c: var(--coral);
}
.win--back .win__body { background: var(--panel); }
.win--front {
  left: calc(180 * var(--u)); top: calc(283 * var(--u));
  width: calc(322 * var(--u)); height: calc(250 * var(--u));
  transform: rotate(4.2deg);
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  --strip: 16%; --strip-c: var(--coral);
}
.win--front .win__body { background: var(--paper); }

.pill-wf {
  position: absolute;
  left: calc(395 * var(--u)); top: calc(349 * var(--u));
  height: calc(30 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(7 * var(--u));
  padding: 0 calc(14 * var(--u)) 0 calc(6 * var(--u));
  border-radius: 999px;
  background: var(--paper);
  box-shadow: none;
  transform: rotate(-1.2deg);
  font-size: max(11px, calc(11.5 * var(--u)));
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
  white-space: nowrap;
}
.pill-wf b {
  display: grid;
  place-items: center;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  border-radius: 50%;
  background: var(--panel);
}
.pill-wf svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }

.pill-ai {
  position: absolute;
  left: calc(68 * var(--u)); top: calc(404 * var(--u));
  width: calc(150 * var(--u)); height: calc(52 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(9 * var(--u));
  padding: 0 calc(16 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--paper);
  box-shadow: none;
  transform: rotate(-1deg);
}
.pill-ai__lines { flex: 1; display: grid; gap: calc(8 * var(--u)); }
.pill-ai__lines span { height: calc(6.5 * var(--u)); border-radius: 99px; background: var(--panel); }
.pill-ai__lines span:last-child { width: 70%; }
.pill-ai svg { width: calc(23 * var(--u)); height: calc(23 * var(--u)); flex: none; }

.cursor-ico { position: absolute; left: calc(490 * var(--u)); top: calc(454 * var(--u)); width: calc(30 * var(--u)); height: calc(35 * var(--u)); }

/* Card 4: numbers */
.m-numbers {
  display: flex;
  flex-direction: column;
  padding: calc(29 * var(--u)) calc(25 * var(--u)) calc(23 * var(--u)) calc(21 * var(--u));
  background:
    var(--paper);
}
.tagpill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: calc(31 * var(--u));
  padding: 0 calc(17 * var(--u));
  margin-left: calc(4 * var(--u));
  border-radius: 999px;
  background: var(--panel);
  border: calc(1.2 * var(--u)) solid rgba(251, 248, 243, 0.9);
  box-shadow: none;
  font-size: max(11px, calc(12 * var(--u)));
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.m-numbers .m-h { margin-top: calc(22 * var(--u)); font-size: calc(46 * var(--u)); letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.m-numbers .m-sub { margin-top: calc(12 * var(--u)); font-size: max(16px, calc(14.5 * var(--u))); color: var(--ink); }
.chart {
  margin-top: auto;
  height: calc(270 * var(--u));
  display: flex;
  align-items: flex-end;
  gap: calc(16 * var(--u));
}
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: stretch; }
.chart__bar {
  display: flex;
  justify-content: center;
  padding-top: calc(10 * var(--u));
  border-radius: calc(9 * var(--u));
  background: var(--panel);
  color: var(--muted);
  font-size: max(11px, calc(15 * var(--u)));
  font-weight: 600;
}
.chart__bar--hot {
  background: var(--coral);
  color: var(--ink);
  box-shadow: none;
}
.chart__bar--zero { min-height: calc(30 * var(--u)); }
.chart__day {
  margin-top: calc(10 * var(--u));
  text-align: center;
  font-family: var(--font-mono);
  font-size: max(11px, calc(10.4 * var(--u)));
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Card 5: search */
.m-search {
  display: flex;
  align-items: center;
  padding: 0 calc(25 * var(--u)) 0 calc(46 * var(--u));
  background: var(--panel);
}
.m-search .m-h { font-size: calc(23 * var(--u)); line-height: 1.39; color: var(--ink); }
.searchbar {
  margin-left: auto;
  width: calc(612 * var(--u));
  height: calc(64 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  padding: 0 calc(22 * var(--u)) 0 calc(10 * var(--u));
  border-radius: 999px;
  background: var(--paper);
  box-shadow: none;
}
.searchbar__mag { display: grid; place-items: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; background: var(--panel); flex: none; }
.searchbar__mag svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.searchbar__ph { font-size: max(16px, calc(16 * var(--u))); letter-spacing: -0.015em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mosaic entrance: the shared .rv reveal from motion.js (cards stay visible
   if scripts do not run, and in full-page captures). */

/* --- Detail sections ---------------------------------------------------- */

.run-detail {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--ink-r);
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.run-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  max-width: 1374px;
  margin: 0 auto;
}
.run-detail .run-lead { margin-bottom: 0; }

.run-close {
  position: relative;
  background: var(--ink-r);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.run-close .gradbox span { background: linear-gradient(var(--ink-r), var(--ink-r)) padding-box, var(--grad) border-box; }
.run-close p { max-width: 620px; font-size: 19px; line-height: 1.5; margin: var(--s-4) 0 var(--s-5); color: var(--panel); }
.run-close .textlink { border-color: var(--paper); }

.run-faq { background: var(--paper); border-top: 1px solid var(--ink-r); padding: clamp(64px, 8vw, 110px) var(--gutter); position: relative; }
.run-faq__inner { max-width: 1374px; margin: 0 auto; }

/* No WebGL: nothing to make room for. */
.no-webgl #robot { display: none; }

/* --- Narrow ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .features { display: none; }
}

@media (max-width: 900px) {
  .guides { display: none; }
  .prompt { margin-left: 0; width: 100%; }
  .run-hero__bottom { grid-template-columns: 1fr; gap: var(--s-3); }
  .run-hero__copy .run-answer { margin-left: 0; }
  .gradbox span { background: linear-gradient(rgba(243, 238, 230, 0.9), rgba(243, 238, 230, 0.9)) padding-box, var(--grad) border-box; }
  .run-kicker { display: inline-block; background: rgba(243, 238, 230, 0.88); padding: 2px 4px; }
  .run-sec--bot { min-height: 0; }
  .run-sec--bot .run-col { margin-left: 0; max-width: none; }
  .run-sec--bot .run-col { padding: var(--s-3); }
  .mosaic-head, .run-detail__grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .fact-row { grid-template-columns: 1fr; gap: 6px; }

  /* Mosaic as a single column at phone width. */
  .mosaic {
    --u: calc(100cqw / 375);
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: calc(13 * var(--u));
  }
  .m-notif, .m-connect, .m-auto, .m-numbers, .m-search { grid-column: 1; grid-row: auto; }
  .m-notif { height: calc(149 * var(--u)); }
  .m-connect { height: calc(470 * var(--u)); }
  .m-auto { height: calc(330 * var(--u)); }
  .m-auto .m-h { font-size: calc(24 * var(--u)); }
  .m-auto .m-sub { font-size: max(16px, calc(14 * var(--u))); }
  .m-auto__copy { padding: calc(24 * var(--u)) calc(22 * var(--u)) 0; }
  .illo { transform: scale(0.598); transform-origin: 0 0; width: calc(627 * var(--u)); height: calc(501 * var(--u)); top: calc(40 * var(--u)); }
  .m-numbers { height: calc(470 * var(--u)); }
  .m-search { flex-direction: column; align-items: stretch; justify-content: center; gap: calc(16 * var(--u)); padding: calc(24 * var(--u)) calc(18 * var(--u)); }
  .searchbar { width: 100%; margin-left: 0; height: calc(56 * var(--u)); }
}

/* ===========================================================================
   Run hero: split layout (reference: the "nuvo" split hero).
   Left: a Saturday-night scene drawn in CSS and SVG, with the system's cards
   floating over it. Right: headline, lede, coral CTA, facts.
   ========================================================================= */

.page-run { --coral-card: var(--coral); --dark-card: var(--ink); --serif: var(--font-serif); }

.run-split {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  min-height: calc(100svh - 64px);
  background: var(--panel);
}

/* --- Left: the scene --- */

.split-panel {
  position: relative;
  margin: 8px;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
}
.scene-sky {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.scene-sky::after {
  /* fine grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scene-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  background: rgba(251, 248, 243, 0.05);
}
.scene-cloud--a { width: 60%; height: 12%; top: 40%; left: -10%; }
.scene-cloud--b { width: 50%; height: 9%; top: 52%; right: -12%; background: rgba(251, 248, 243, 0.04); }
.scene-stars { position: absolute; top: 2%; left: 0; width: 100%; height: 30%; fill: var(--paper); opacity: 0.8; }
.scene-city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44%; }
.scene-city .far rect { fill: var(--body); opacity: .55; }
.scene-city .near rect { fill: var(--body); }
.scene-city .win rect { fill: var(--panel); }
.scene-city .win .far-win { fill: var(--coral); opacity: 0.7; }

/* --- Floating cards --- */

.fcard { position: absolute; border-radius: 18px; }
.fcard--coral {
  top: 8%;
  left: 7%;
  width: min(52%, 300px);
  padding: 18px 20px 16px;
  background: var(--coral-card);
  color: var(--ink);
  box-shadow: none;
  z-index: 3;
}
.fcard__k { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.fcard__big { margin: 8px 0 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -0.025em; }
.fcard__row { display: flex; align-items: center; justify-content: space-between; }
.chip-white { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 500; }
.fcard__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.fcard__link { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.fcard--glass {
  top: 30%;
  right: 6%;
  width: min(60%, 360px);
  padding: 8px;
  background: rgba(251, 248, 243, 0.16);
  border: 1px solid rgba(251, 248, 243, 0.32);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: none;
  color: var(--paper);
  z-index: 2;
}
.glass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(251, 248, 243, 0.16);
}
.glass-row:nth-child(3) { border-bottom: 0; }
.glass-row--white { margin-top: 6px; border-radius: 12px; background: var(--paper); color: var(--ink); border: 0; }
.chip-soft { flex: none; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 11px; font-weight: 500; }
.chip-coral { flex: none; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(228, 84, 43, 0.22); color: var(--panel); font-size: 11px; font-weight: 500; }
.fcard__mini { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.fcard--dark {
  top: 61%;
  left: 12%;
  width: min(40%, 220px);
  aspect-ratio: 1.58;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark-card);
  color: var(--paper);
  box-shadow: none;
  z-index: 4;
}
.dark-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251, 248, 243, 0.7); }
.dark-live { display: inline-flex; align-items: center; gap: 6px; }
.dark-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: none; }
.dark-word { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 4.6vw, 68px); line-height: 0.9; letter-spacing: -0.01em; }

.corner-type {
  position: absolute;
  left: 7%;
  bottom: 5%;
  margin: 0;
  z-index: 5;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(28, 22, 18, 0.25);
}
.corner-type em { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

/* --- Right: the copy --- */

.split-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 80px) clamp(56px, 6vw, 88px);
  background: var(--paper);
  text-align: center;
}
.split-eyebrow { margin: 0 0 var(--s-4); color: var(--muted); }
.split-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.split-h1 .ln { display: block; }
.split-h1 .ln--serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.015em; font-size: 1.08em; }
.split-lede { max-width: 440px; margin: var(--s-4) auto; font-size: 18px; line-height: 1.5; color: var(--muted); }

.coral-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 6px 0 22px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s;
}
.coral-cta:hover { transform: translateY(-2px); box-shadow: none; }
.coral-cta__arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--paper); }

.split-facts {
  position: absolute;
  bottom: clamp(18px, 3vh, 32px);
  left: 0;
  right: 0;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* The robot section is now the second screen. */
.run-split + .run-hero { min-height: 100svh; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes drift-a { from { transform: translateX(0); } to { transform: translateX(14%); } }
  @keyframes drift-b { from { transform: translateX(0); } to { transform: translateX(-12%); } }
  @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  .scene-cloud--a { animation: drift-a 38s ease-in-out infinite alternate; }
  .scene-cloud--b { animation: drift-b 44s ease-in-out infinite alternate; }
  .scene-city .tw { animation: twinkle 5s ease-in-out infinite; }
  .scene-city .tw:nth-child(4) { animation-delay: -1.7s; }
  .scene-city .tw:nth-child(7) { animation-delay: -3.1s; }
}

@media (max-width: 900px) {
  .run-split { grid-template-columns: 1fr; min-height: 0; }
  .split-copy { order: -1; padding: 40px 20px 56px; }
  .split-facts { position: static; margin-top: var(--s-4); }
  .split-panel { min-height: 580px; }
  .fcard--coral { width: 70%; }
  .fcard--glass { width: 82%; top: 31%; }
  .fcard--dark { width: 52%; top: 66%; }
}
