/* ==========================================================================
   ECL MOCKUP SYSTEM
   Abstract, drawn-in-CSS placeholders for every creative slot on the site.
   Built 2026-08-23. Uses ONLY tokens from styles.css.

   Why: real screenshots aren't ready yet (and we haven't decided video vs
   image). These read as "designed", not as "missing asset" — the page can
   go in front of a client today.

   How it scales: each .mock is a container; everything inside is sized in
   cqw (1% of the mock's own width). Drop it in any slot, any size — it
   scales itself. No media queries needed.

   Markup:
     <div class="mock mock--site">          window with a site inside
     <div class="mock mock--site mock--old">  same, dated "before" look
     <div class="mock mock--dash">          app / dashboard
     <div class="mock mock--cms">           CMS editor
     <div class="mock mock--phone">         phone
     <div class="mock mock--stack">         3 overlapping windows (hero)
     <div class="mock mock--portrait">      portrait stand-in
   ========================================================================== */

.mock {
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--ecl-white);
  border: var(--ecl-border);
  overflow: hidden;
  font-style: normal;
  color: var(--ecl-ink);
  flex: 1 1 auto;
  align-self: stretch;
}

/* Optional corner tag — set with data-tag="Persado · Homepage" */
.mock[data-tag]::after {
  content: attr(data-tag);
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  font-family: var(--ecl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ecl-muted);
  background: var(--ecl-bg);
  border-top: var(--ecl-border-soft);
  border-left: var(--ecl-border-soft);
  padding: 6px 10px;
}


/* ── Browser chrome ─────────────────────────────────────────────────────── */

.mock-bar {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  height: 6cqw;
  min-height: 22px;
  padding: 0 2cqw;
  background: var(--ecl-cream);
  border-bottom: var(--ecl-border);
}
.mock-bar b {
  width: 1.4cqw;
  height: 1.4cqw;
  min-width: 5px;
  min-height: 5px;
  background: var(--ecl-rule);
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-bar b:first-child { background: var(--ecl-magenta); }
.mock-url {
  margin-left: 1.5cqw;
  flex: 1;
  height: 3.2cqw;
  min-height: 12px;
  background: var(--ecl-white);
  border: 1px solid var(--ecl-rule);
  display: flex;
  align-items: center;
  padding: 0 1.4cqw;
  font-family: var(--ecl-mono);
  font-size: 2.1cqw;
  color: var(--ecl-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
}


/* ── Page body ──────────────────────────────────────────────────────────── */

.mock-body {
  padding: 3cqw;
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  height: calc(100% - 6cqw);
}

/* Site nav row */
.m-nav {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding-bottom: 2cqw;
  border-bottom: 1px solid var(--ecl-rule);
}
.m-logo {
  width: 7cqw;
  height: 2.4cqw;
  background: var(--ecl-ink);
  flex-shrink: 0;
}
.m-links { display: flex; gap: 1.6cqw; margin-left: auto; }
.m-links i { display: block; width: 5cqw; height: 1.4cqw; background: var(--ecl-rule); }
.m-pill {
  width: 8cqw;
  height: 3cqw;
  background: var(--ecl-gradient);
  flex-shrink: 0;
}

/* Text lines — <i> children, width set by nth-child */
.m-lines { display: flex; flex-direction: column; gap: 1.2cqw; }
.m-lines i { display: block; height: 1.5cqw; background: var(--ecl-rule); width: 100%; }
.m-lines i:nth-child(2) { width: 82%; }
.m-lines i:nth-child(3) { width: 64%; }

/* Big headline blocks */
.m-head { display: flex; flex-direction: column; gap: 1.4cqw; }
.m-head i { display: block; height: 4.2cqw; background: var(--ecl-ink); width: 76%; }
.m-head i:nth-child(2) { width: 54%; background: var(--ecl-gradient); }

/* Gradient / image panel */
.m-art {
  flex: 1;
  min-height: 14cqw;
  background: var(--ecl-gradient);
  position: relative;
  overflow: hidden;
}
.m-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 6cqw);
}
.m-art--soft { background: var(--ecl-cream); border: 1px solid var(--ecl-rule); }
.m-art--soft::before { background: repeating-linear-gradient(90deg, var(--ecl-rule) 0 1px, transparent 1px 6cqw); opacity: 0.5; }

/* Card row */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.m-grid > span {
  display: block;
  min-height: 12cqw;
  background: var(--ecl-cream);
  border: 1px solid var(--ecl-rule);
  position: relative;
}
.m-grid > span::after {
  content: "";
  position: absolute;
  left: 1.6cqw;
  right: 40%;
  bottom: 1.8cqw;
  height: 1.2cqw;
  background: var(--ecl-rule);
}
.m-grid > span:first-child { border-color: var(--ecl-ink); }
.m-grid > span:first-child::after { background: var(--ecl-magenta); }

/* Two-column split */
.m-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4cqw; flex: 1; }
.m-col { display: flex; flex-direction: column; gap: 2cqw; }
.m-pill--wide { width: 14cqw; height: 4cqw; }


/* ── "Before" variant — the dated site we replaced ──────────────────────── */

.mock--old { background: #F1EFE9; }
.mock--old .mock-bar { background: #E4E1D9; }
.mock--old .mock-bar b:first-child { background: var(--ecl-rule); }
.mock--old .m-logo { background: #8A857C; width: 12cqw; height: 3.4cqw; }
.mock--old .m-links i { background: #B9B4AA; width: 6.5cqw; }
.mock--old .m-pill { background: #6E8FBF; }
.mock--old .m-head i { height: 3cqw; background: #7C776E; width: 88%; }
.mock--old .mock-body { gap: 1.4cqw; padding: 2.2cqw; }
.mock--old .m-art { background: #D8D4CB; min-height: 10cqw; }
.mock--old .m-art::before { background: repeating-linear-gradient(135deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 8px); }
.mock--old .m-grid { gap: 1.2cqw; grid-template-columns: repeat(4, 1fr); }
.mock--old .m-grid > span { background: #E4E1D9; border-color: #C9C4BA; min-height: 8cqw; }
.mock--old .m-grid > span::after { background: #B9B4AA; }
.mock--old .m-grid > span:first-child { border-color: #C9C4BA; }
.mock--old .m-grid > span:first-child::after { background: #B9B4AA; }
.mock--old .m-lines i { background: #C4BFB5; height: 1.2cqw; }


/* ── Dashboard / product app ────────────────────────────────────────────── */

.mock--dash .mock-body { flex-direction: row; padding: 0; gap: 0; }
.m-side {
  width: 22%;
  background: var(--ecl-cream);
  border-right: var(--ecl-border-soft);
  padding: 2.4cqw 2cqw;
  display: flex;
  flex-direction: column;
  gap: 1.6cqw;
}
.m-side i { display: block; height: 1.6cqw; background: var(--ecl-rule); width: 100%; }
.m-side i:first-child { background: var(--ecl-ink); width: 60%; height: 2.2cqw; margin-bottom: 1cqw; }
.m-side i.on { background: var(--ecl-magenta); }
.m-main { flex: 1; padding: 2.6cqw; display: flex; flex-direction: column; gap: 2.2cqw; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; }
.m-kpis span {
  display: block;
  height: 9cqw;
  border: 1px solid var(--ecl-rule);
  background: var(--ecl-white);
  position: relative;
}
.m-kpis span::after {
  content: "";
  position: absolute;
  left: 1.4cqw;
  top: 2.4cqw;
  width: 45%;
  height: 2.6cqw;
  background: var(--ecl-ink);
}
.m-kpis span:first-child::after { background: var(--ecl-gradient); }
.m-chart {
  flex: 1;
  min-height: 16cqw;
  border: 1px solid var(--ecl-rule);
  display: flex;
  align-items: flex-end;
  gap: 1.6cqw;
  padding: 2cqw;
}
.m-chart i {
  display: block;
  flex: 1;
  background: var(--ecl-cream);
  border-top: 2px solid var(--ecl-rule);
}
.m-chart i:nth-child(1) { height: 38%; }
.m-chart i:nth-child(2) { height: 62%; }
.m-chart i:nth-child(3) { height: 48%; }
.m-chart i:nth-child(4) { height: 80%; background: var(--ecl-gradient); border-top-color: var(--ecl-magenta-deep); }
.m-chart i:nth-child(5) { height: 66%; }
.m-chart i:nth-child(6) { height: 92%; background: var(--ecl-gradient); border-top-color: var(--ecl-magenta-deep); }
.m-chart i:nth-child(7) { height: 54%; }


/* ── CMS editor ─────────────────────────────────────────────────────────── */

.mock--cms .mock-body { flex-direction: row; padding: 0; gap: 0; }
.m-cms-list {
  width: 30%;
  border-right: var(--ecl-border-soft);
  padding: 2.4cqw 2cqw;
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  background: var(--ecl-cream);
}
.m-cms-list i { display: block; height: 3.4cqw; background: var(--ecl-white); border: 1px solid var(--ecl-rule); }
.m-cms-list i.on { border-color: var(--ecl-magenta); border-left-width: 3px; }
.m-fields { flex: 1; padding: 2.6cqw; display: flex; flex-direction: column; gap: 2cqw; }
.m-field { display: flex; flex-direction: column; gap: 0.9cqw; }
.m-field b { display: block; width: 14cqw; height: 1.3cqw; background: var(--ecl-rule); }
.m-field span { display: block; height: 4.4cqw; border: 1px solid var(--ecl-rule); background: var(--ecl-white); }
.m-field.tall span { flex: 1; min-height: 12cqw; }


/* ── Phone ──────────────────────────────────────────────────────────────── */

.mock--phone { border-width: 2px; }
.mock--phone .mock-bar { height: 4.5cqw; justify-content: center; gap: 0; }
.mock--phone .mock-bar b { width: 18%; height: 1.2cqw; border-radius: 0; background: var(--ecl-rule); }
.mock--phone .mock-bar b:first-child { background: var(--ecl-rule); }
.mock--phone .mock-body { padding: 5cqw; gap: 4cqw; height: calc(100% - 4.5cqw); }
.mock--phone .m-nav { padding-bottom: 4cqw; }
.mock--phone .m-logo { width: 22cqw; height: 6cqw; }
.mock--phone .m-links { display: none; }
.mock--phone .m-pill { width: 12cqw; height: 8cqw; margin-left: auto; }
.mock--phone .m-head i { height: 9cqw; width: 92%; }
.mock--phone .m-head i:nth-child(2) { width: 68%; }
.mock--phone .m-lines i { height: 3cqw; }
.mock--phone .m-art { min-height: 40cqw; }
.mock--phone .m-grid { grid-template-columns: 1fr; gap: 4cqw; }
.mock--phone .m-grid > span { min-height: 26cqw; }
.mock--phone .m-grid > span::after { height: 3cqw; bottom: 4cqw; left: 4cqw; }


/* ── Stacked windows (hero montage) ─────────────────────────────────────── */

.mock--stack {
  border: none;
  background: transparent;
  overflow: hidden;
  container-type: inline-size;
}
.mock--stack .mock-layer {
  container-type: inline-size;
  position: absolute;
  background: var(--ecl-white);
  border: var(--ecl-border);
  overflow: hidden;
  box-sizing: border-box;
}
.mock--stack .mock-layer:nth-child(1) { left: 0;   top: 2%;  width: 56%; height: 72%; z-index: 1; }
.mock--stack .mock-layer:nth-child(2) { left: 22%; top: 22%; width: 56%; height: 72%; z-index: 2; }
.mock--stack .mock-layer:nth-child(3) { left: 44%; top: 8%;  width: 56%; height: 72%; z-index: 3; }
.mock--stack .mock-bar { height: 9%; min-height: 16px; }
.mock--stack .mock-body { height: 91%; padding: 4%; gap: 4%; }
/* last block always fills the window — no dead white space at the bottom */
.mock--stack .mock-body > *:last-child { flex: 1 1 auto; }
.mock--stack .m-grid { grid-auto-rows: 1fr; }


/* ── Portrait stand-in ──────────────────────────────────────────────────── */

.mock--portrait {
  background: var(--ecl-cream);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: var(--ecl-border);
}
.mock--portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 62%;
  height: 46%;
  background: var(--ecl-gradient);
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%);
  opacity: 0.9;
}
.mock--portrait .m-face {
  position: absolute;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ecl-ink);
}
.mock--portrait .m-cap {
  position: relative;
  z-index: 2;
  margin-bottom: 4%;
  font-family: var(--ecl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ecl-white);
}


/* ── Before / after pair helper ─────────────────────────────────────────── */

.mock-caption {
  font-family: var(--ecl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ecl-muted);
  margin-top: 10px;
  display: block;
}


/* ── Slot fitting ────────────────────────────────────────────────────────
   Every host slot on the site is position:relative already (they used to
   print a ::after label). Pin the mock to the slot's box so it can never
   spill past the border, whatever the slot's aspect ratio is.
   ──────────────────────────────────────────────────────────────────────── */

.hero-visual .mock,
.about-photo .mock,
.scrolly-media .mock,
.scrolly-banner .mock,
.cs-screenshot .mock,
.cs-full-image .mock,
.cs-gallery-item .mock {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

/* Softer portrait stand-in */
.mock--portrait::before { width: 54%; height: 38%; }
.mock--portrait .m-face { width: 20%; bottom: 33%; }


/* ── Real screenshots ────────────────────────────────────────────────────
   .shot fills its slot the way the mocks do — pinned to the box, cropped
   from the top. Drop-in replacement for a mock inside any slot wrapper.
   ──────────────────────────────────────────────────────────────────────── */

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Real screenshot inside a stacked browser window (below the title bar) */
.mock-layer .shot-win {
  position: absolute;
  left: 0;
  top: 9%;
  width: 100%;
  height: 91%;
  object-fit: cover;
  object-position: top center;
}

/* Corner tag on gallery items holding real screenshots (Before / After / Desktop / Mobile) */
.cs-gallery-item[data-tag]::after {
  content: attr(data-tag);
  top: auto;
  left: auto;
  bottom: 0;
  right: 0;
  font-family: var(--ecl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ecl-ink);
  background: var(--ecl-bg);
  border-top: var(--ecl-border-soft);
  border-left: var(--ecl-border-soft);
  padding: 6px 10px;
  z-index: 2;
}

/* Corner tag on gallery items holding real screenshots (Before / After / Desktop / Mobile) */
.cs-gallery-item[data-tag]::after {
  content: attr(data-tag);
  top: auto;
  left: auto;
  bottom: 0;
  right: 0;
  font-family: var(--ecl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ecl-ink);
  background: var(--ecl-bg);
  border-top: var(--ecl-border-soft);
  border-left: var(--ecl-border-soft);
  padding: 6px 10px;
  z-index: 2;
}

/* ── Scroll reel — a full-page screenshot that slowly rides through its slot.
   Looks like a product video; costs one JPEG. No player, no video file.
   Set --reel-end per slot: -(1 - slotRatio/imageRatio) * 100%.
   For a 16:9 slot with a 1400x3675 image: -(1 - 0.5625/2.625) = -78.6%. ── */

.shot-reel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.shot-reel img {
  display: block;
  width: 100%;
  height: auto;
  animation: reel-scroll 28s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  will-change: transform;
}
@keyframes reel-scroll {
  0%, 7%    { transform: translateY(0); }
  46%, 60%  { transform: translateY(var(--reel-end, -78.6%)); }
  95%, 100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .shot-reel img { animation: none; }
}

/* ══ CASE PRESENTATION (2026-08-26) ═══════════════════════════════════════
   Three blocks Rasul picked: video hero in space, before/after drag slider,
   component-evolution strip. Persado first; same classes reuse per client. */

/* ── 1. Hero: screens in space, desktop plays a real scroll video ── */
.hero-space { position: relative; aspect-ratio: 16/9; border: var(--ecl-border); background: var(--ecl-cream); overflow: hidden; perspective: 1600px; }
.hero-space .hs-ground { position: absolute; inset: auto 0 0 0; height: 46%; background: var(--ecl-gradient); }
.hero-space .hs-screen { position: absolute; left: 11%; top: 7%; width: 62%; aspect-ratio: 16/10; border: var(--ecl-border); overflow: hidden; transform: rotateY(-22deg) rotateX(6deg); transform-origin: left center; background: #fff; }
.hero-space .hs-screen video, .hero-space .hs-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-space .hs-phone { position: absolute; right: 11%; bottom: -5%; width: 17%; aspect-ratio: 430/932; border: var(--ecl-border-thick); overflow: hidden; transform: rotateY(-14deg) rotateX(4deg); background: #fff; }
.hero-space .hs-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ── 2. Before / after drag slider ── */
.ba-slider { position: relative; aspect-ratio: 16/9; border: var(--ecl-border); overflow: hidden; cursor: ew-resize; --pos: 50%; max-width: 1200px; margin-left: auto; margin-right: auto; touch-action: none; }
.ba-slider .ba-old { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); }
.ba-slider::before { content: ""; position: absolute; inset: 0; background: var(--ecl-gradient); opacity: .28; mix-blend-mode: multiply; pointer-events: none; }
.ba-slider .ba-new { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 var(--pos)); z-index: 2; background: #fff; }
.ba-slider .ba-new video, .ba-slider .ba-new img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-slider .ba-new iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; background: #fff; pointer-events: none; transform-origin: 0 0; } /* live page, look-only: fixed desktop viewport scaled by JS */
.ba-slider img { -webkit-user-drag: none; user-select: none; }
.ba-slider .ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ecl-ink); z-index: 3; pointer-events: none; }
.ba-slider .ba-handle::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--ecl-ink); color: var(--ecl-white); font-family: var(--ecl-mono); font-size: 12px; letter-spacing: .1em; padding: 10px 12px; white-space: nowrap; }
.ba-lbl { position: absolute; bottom: 0; z-index: 3; font-family: var(--ecl-mono); font-size: var(--ecl-fs-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ecl-bg); border: var(--ecl-border-soft); padding: 6px 10px; pointer-events: none; }
.ba-lbl--old { left: 0; border-left: none; border-bottom: none; }
.ba-lbl--new { right: 0; border-right: none; border-bottom: none; }

/* ── 3. Component evolution: wireframe → style → motion ── */
.evo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--ecl-border); margin-top: var(--ecl-sp-5); }
.evo { --ecl-ink: #111111; --ecl-muted: #6B6B68; --ecl-rule: #D4D1CC; --ecl-bg: #FAF8F5; --ecl-cream: #F2EFE8; --ecl-white: #FFFFFF; color: var(--ecl-ink); }   /* 2026-09-19 (Rasul: "not visible on dark mode"): the columns show the CLIENT's light design — they stay paper in both themes, so the light tokens are re-declared here */
.evo-col { padding: var(--ecl-sp-4); border-right: var(--ecl-border); display: flex; flex-direction: column; gap: 22px; background: var(--ecl-white); }
.evo-col:last-child { border-right: none; }
.evo-col .label { display: block; margin-bottom: 6px; }
/* demo widgets share geometry across all three stages */
.evo .w-nav { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ecl-rule); }
.evo .w-logo { width: 84px; height: 16px; }
.evo .w-link { width: 46px; height: 8px; }
.evo .w-cta { margin-left: auto; width: 92px; height: 30px; }
.evo .w-btns { display: flex; gap: 12px; align-items: center; }
.evo .w-btn { height: 44px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ecl-sans); font-size: 14px; font-weight: 600; }
.evo .w-card { border: 1px solid var(--ecl-rule); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.evo .w-line { height: 8px; width: 100%; }
.evo .w-line.short { width: 55%; }
/* stage 1 — wireframe */
.evo--wire .w-logo, .evo--wire .w-link, .evo--wire .w-cta, .evo--wire .w-line { background: #D8D5D0; }
.evo--wire .w-btn { border: 1.5px dashed #A8A5A0; color: #A8A5A0; background: transparent; }
.evo--wire .w-card { border-style: dashed; }
/* stage 2 — styled (client palette) */
.evo--style .w-logo { background: #10203A; }
.evo--style .w-link { background: #C9CDD4; }
.evo--style .w-cta, .evo--style .w-btn.primary { background: #10203A; color: #fff; border: none; }
.evo--style .w-btn.ghost { background: #fff; color: #10203A; border: 1px solid #C9CDD4; }
.evo--style .w-line { background: #E43B4A; }
.evo--style .w-line.short { background: #C9CDD4; }
/* stage 3 — motion */
.evo--live .w-logo { background: #10203A; }
.evo--live .w-link { background: #C9CDD4; }
.evo--live .w-cta { background: #10203A; }
.evo--live .w-btn.primary { background: #10203A; color: #fff; border: none; position: relative; overflow: hidden; }
.evo--live .w-btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent); animation: evo-sheen 2.6s ease-in-out infinite; }
.evo--live .w-btn.ghost { background: #fff; color: #10203A; border: 1px solid #C9CDD4; transition: var(--ecl-transition-smooth); }
.evo--live .w-btn.ghost:hover { border-color: #10203A; }
.evo--live .w-btn .arr { display: inline-block; margin-left: 8px; animation: evo-nudge 1.8s ease-in-out infinite; }
.evo--live .w-line { background: #E43B4A; transform-origin: left; animation: evo-grow 3.2s cubic-bezier(.4,0,.2,1) infinite; }
.evo--live .w-line.short { background: #C9CDD4; animation-delay: .4s; }
.evo--live .w-card { animation: evo-float 4s ease-in-out infinite; }
@keyframes evo-sheen { 0%,55% { left: -60%; } 85%,100% { left: 120%; } }
@keyframes evo-nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes evo-grow { 0% { transform: scaleX(.25); } 45%,100% { transform: scaleX(1); } }
@keyframes evo-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .evo *, .hero-space video { animation: none !important; } }
@media (max-width: 900px) {
  .evo { grid-template-columns: 1fr; }
  .evo-col { border-right: none; border-bottom: var(--ecl-border); }
  .evo-col:last-child { border-bottom: none; }
  .hero-space .hs-phone { bottom: -2%; }
}
@media (max-width: 600px) { .evo, .evo-col { min-width: 0; } .evo-col { padding: var(--ecl-sp-3); } }   /* 2026-09-21 (Rasul: "немного выходит за рамки, экран скроллится вправо"): the grid track was growing to the live column's min-content (383px in a 350px container) */

/* ── 1b. Hero v2 (2026-08-27): soft Mac window + phone, both hold the LIVE frozen site ──
   Replaces .hero-space on work-persado.html. Sizes in cqw so the block scales with the container. */
.mac-hero { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1312 / 760; background: var(--ecl-cream); border: var(--ecl-border-soft); overflow: hidden; }
.mac-hero .mh-win { position: absolute; left: 4.27cqw; top: 4.27cqw; width: 68.6cqw; height: 45.73cqw; background: #fff; border: 1px solid var(--ecl-rule); border-radius: 0.91cqw; overflow: hidden; display: flex; flex-direction: column; }
.mac-hero .mh-bar { height: 3.05cqw; min-height: 28px; flex: none; border-bottom: 1px solid var(--ecl-rule); background: var(--ecl-bg); display: flex; align-items: center; padding: 0 1.2cqw; gap: 0.6cqw; box-sizing: border-box; }
.mac-hero .mh-bar i { width: 0.84cqw; height: 0.84cqw; min-width: 8px; min-height: 8px; border-radius: 50%; display: block; }
.mac-hero .mh-url { margin: 0 auto; font-family: var(--ecl-mono); font-size: 11px; color: var(--ecl-muted); background: var(--ecl-cream); border-radius: 6px; padding: 4px 14px; }
.mac-hero .mh-view { position: relative; flex: 1 1 auto; min-height: 0; }
.mac-hero .mh-view iframe { display: block; width: 1280px; height: 800px; border: 0; background: #fff; transform-origin: 0 0; } /* fixed desktop viewport, scaled by JS — the site never reflows */
.mac-hero .mh-phone { position: absolute; right: 4.27cqw; bottom: 3.05cqw; width: 19.05cqw; height: 41.3cqw; box-sizing: border-box; background: #fff; border: 6px solid var(--ecl-ink); border-radius: 2.6cqw; overflow: hidden; }
.mac-hero .mh-phone iframe { display: block; width: 430px; height: 932px; border: 0; background: #fff; transform-origin: 0 0; }
.mac-hero .mh-hint { position: absolute; left: 4.27cqw; bottom: 2.4cqw; font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ecl-white); background: var(--ecl-ink); padding: 8px 12px; pointer-events: none; opacity: 1; transition: opacity .4s; }
.mac-hero.is-touched .mh-hint { opacity: 0; }
@media (max-width: 768px) {
  /* mobile: desktop window hidden, phone alone, centred */
  .mac-hero { aspect-ratio: auto; padding: 5cqw 0; }
  .mac-hero .mh-win, .mac-hero .mh-hint { display: none; }
  .mac-hero .mh-phone { position: relative; right: auto; bottom: auto; margin: 0 auto; width: min(86cqw, 380px); height: calc(min(86cqw, 380px) * 932 / 430 + 12px); border-radius: min(7cqw, 30px); }   /* 2026-09-21 (Rasul: "сделай шире и больше — вокруг много свободного места"): the phone fills the frame (was 56cqw) */
}
.cs-split .sp-vp .mh-tap, .cs-split .sp-vp .mh-done { display: none; }   /* the case pages' live window carries the same Tap to explore / Done as the phone (2026-09-21); they exist for touch only — see the coarse block below */
/* touch devices: the phone does not take the scroll until tapped */
@media (pointer: coarse) {
  .mac-hero .mh-phone iframe, .cs-split .sp-vp iframe { pointer-events: none; }
  .mac-hero .mh-phone.is-active iframe, .cs-split .sp-vp.is-active iframe { pointer-events: auto; }   /* 2026-09-21 (Rasul: "страница не скроллится"): the live page window on the case pages takes the finger only after a tap, like the phone — frame-lock.js is pointer-fine only, so on touch it was dead */
  .mac-hero .mh-tap, .cs-split .sp-vp .mh-tap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; background: linear-gradient(180deg, rgba(17,17,17,0) 55%, rgba(17,17,17,.45) 100%); cursor: pointer; }
  .mac-hero .mh-tap span, .cs-split .sp-vp .mh-tap span { font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ecl-white); background: var(--ecl-ink); padding: 10px 14px; }
  .mac-hero .mh-phone.is-active .mh-tap, .cs-split .sp-vp.is-active .mh-tap { display: none; }
  .mac-hero .mh-done, .cs-split .sp-vp .mh-done { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5%; z-index: 2; display: none; font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ecl-white); background: var(--ecl-ink); border: 0; padding: 10px 14px; }
  .mac-hero .mh-phone.is-active .mh-done, .cs-split .sp-vp.is-active .mh-done { display: block; }
}
@media (max-width: 768px) { .mac-hero { padding-bottom: 6cqw; } }


/* ── The work — split: rail + ONE live page window (Claude Design 7b, 2026-09-01) ── */
.cs-split .sp-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--ecl-sp-5); align-items: start; }
.cs-split .sp-h2 { margin: var(--ecl-sp-2) 0 var(--ecl-sp-3); font-size: clamp(38px, 3.4vw, 54px); line-height: .98; }
.cs-split .sp-lead { margin: 0 0 var(--ecl-sp-4); font-size: 16px; line-height: 1.65; color: var(--ecl-muted); }
.cs-split .sp-lead b { font-weight: 500; color: var(--ecl-ink); }
.cs-split .sp-list { border-top: 1px solid var(--ecl-ink); }
.cs-split .sp-it { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--ecl-rule); }
.cs-split .sp-it:last-child { border-bottom: 1px solid var(--ecl-ink); }
.cs-split .sp-n { padding-top: 6px; font-family: var(--ecl-mono); font-size: 13px; color: var(--ecl-ink); }
.cs-split .sp-it h3 { margin: 0 0 6px; font-family: var(--ecl-serif); font-weight: 400; font-size: 26px; line-height: 1.05; }
.cs-split .sp-it p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ecl-muted); }
.cs-split .sp-spec { margin-top: var(--ecl-sp-4); }
.cs-split .sp-sr { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--ecl-rule); font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.cs-split .sp-sr:last-child { border-bottom: 0; }
.cs-split .sp-sr i { font-style: normal; color: var(--ecl-muted); }
.cs-split .sp-win { border: 1px solid var(--ecl-ink); background: #fff; }
.cs-split .sp-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 44px; padding: 0 16px; background: var(--ecl-cream); border-bottom: 1px solid var(--ecl-ink); font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.cs-split .sp-bar i { font-style: normal; color: var(--ecl-muted); }
.cs-split .sp-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: middle; background: var(--ecl-magenta); }
.cs-split .sp-vp { position: relative; height: 900px; overflow: hidden; background: #fff; }   /* fixed height as in the approved mock — the 1280px page width is fitted by JS, so nothing is cut at the sides */
@media (max-width: 1200px) { .cs-split .sp-vp { height: 720px; } }
@media (max-width: 980px) { .cs-split .sp-vp { height: 560px; } }
.cs-split .sp-vp iframe { position: absolute; left: 0; top: 0; width: 1280px; border: 0; background: #fff; transform-origin: 0 0; }
.cs-split .sp-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: var(--ecl-sp-2); font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ecl-muted); }
.cs-split .sp-cap b { font-weight: 500; color: var(--ecl-ink); }
@media (max-width: 980px) { .cs-split .sp-grid { grid-template-columns: 1fr; gap: var(--ecl-sp-4); } }

/* ── Infrastructure: tool logo in a ring above each name ── */
.cs-deliverable .ts-mark { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: var(--ecl-sp-2); border: 1px solid var(--ecl-ink); border-radius: 50%; }
.cs-deliverable .ts-logo { width: 22px; height: 22px; color: var(--ecl-ink); }
.cs-infra .cs-content { max-width: none; }   /* the 960px reading measure is for prose; here it left a hole on the right once the drawn mocks went */
.cs-infra .cs-deliverable p { max-width: 42ch; }

/* ── Client review (before Next project) ── */
.cs-review .rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--ecl-sp-6); align-items: start; margin-top: var(--ecl-sp-4); padding-top: var(--ecl-sp-4); border-top: 1px solid var(--ecl-ink); }
.cs-review .rv-quote { margin: 0; font-family: var(--ecl-serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.28; letter-spacing: -.015em; color: var(--ecl-ink); }
.cs-review .rv-quote em { font-style: italic; background: var(--ecl-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cs-review .rv-by { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cs-review .rv-face { display: block; width: 64px; height: 64px; margin-bottom: var(--ecl-sp-2); overflow: hidden; border: 1px solid var(--ecl-ink); }
.cs-review .rv-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-review .rv-name { font-family: var(--ecl-serif); font-size: 22px; line-height: 1.1; }
.cs-review .rv-role { font-size: 14px; color: var(--ecl-muted); }
.cs-review .rv-meta { margin-top: 4px; font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ecl-muted); }
@media (max-width: 900px) { .cs-review .rv-grid { grid-template-columns: 1fr; gap: var(--ecl-sp-4); } }

/* ── Frame lock: a live client page is look-only until the visitor clicks into it ── */
[data-lock] { position: relative; }
[data-lock] > iframe { pointer-events: none; transition: filter .45s cubic-bezier(.4,0,.2,1); }
[data-lock].is-armed > iframe { filter: blur(4px); }
[data-lock].is-live > iframe { pointer-events: auto; filter: none; }
.fl-veil { position: absolute; inset: 0; z-index: 3; cursor: none; }
[data-lock].is-live .fl-veil { pointer-events: none; }
.fl-tip { position: fixed; left: 0; top: 0; z-index: 2147483646; padding: 8px 12px; font-family: var(--ecl-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; color: var(--ecl-white); background: var(--ecl-ink); pointer-events: none; opacity: 0; transition: opacity .3s cubic-bezier(.4,0,.2,1); }
.fl-tip.is-on { opacity: 1; }

/* ── Before/after with a LIVE page on the "before" side too ── */
.ba-slider .ba-old--live { position: absolute; inset: 0; overflow: hidden; filter: grayscale(1) contrast(1.05); }
.ba-slider .ba-old--live iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; background: #fff; pointer-events: none; transform-origin: 0 0; }
.cs-ba-wide .ba-slider { aspect-ratio: 5 / 4; }   /* same 1200px width, taller frame — 16/9 cropped too much of the page */

/* ── Two client reviews side by side ── */
.cs-review .rv-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ecl-sp-6); margin-top: var(--ecl-sp-4); padding-top: var(--ecl-sp-4); border-top: 1px solid var(--ecl-ink); }
.cs-review .rv-card { margin: 0; display: flex; flex-direction: column; gap: var(--ecl-sp-4); }
.cs-review .rv-card .rv-quote { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.34; }
.cs-review .rv-card .rv-by { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.cs-review .rv-card .rv-face { margin: 0; width: 56px; height: 56px; flex: none; }
.cs-review .rv-card .rv-name { font-size: 19px; }
.cs-review .rv-card .rv-role, .cs-review .rv-card .rv-meta { flex-basis: 100%; margin: 0; }
@media (max-width: 900px) { .cs-review .rv-two { grid-template-columns: 1fr; gap: var(--ecl-sp-5); } }
