/* =====================================================================
   Parmenion, Wealt and İşCep PFM: additions to Direction B
   (b-shell.css + b.css). Same type, reveals, scenes and end block as
   İşCep and Saudia; each case has its own field colour and one or two
   tones of its own. Screens are frameless, rounded and shadowed as on
   İşCep: phone screens carry their own corners (9.4% of the width),
   desktop screens get 22px (14px on a phone).
   ===================================================================== */
body.b.pa[data-tone="field"] { --bg: #a92b1c; --fg: #fbefe9; }
body.b.pa[data-tone="navy"] { --bg: #23255c; --fg: #eceaf6; }
body.b.we[data-tone="field"] { --bg: #4f12a8; --fg: #f3ecff; }
body.b.we[data-tone="night"] { --bg: #0d0718; --fg: #efe9f7; }
body.b.pf[data-tone="field"] { --bg: #1d5c3b; --fg: #eef6f0; }
.cs p.k { margin-bottom: 22px; }
.cs-dec-txt .read.serif { font: 400 clamp(32px, 3vw, 48px)/1.08 var(--b-serif); letter-spacing: -.015em; }

/* ---------- screens ---------- */
.cs .shot figcaption { text-align: center; }
.dsk { margin: 0; }
.dsk img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 34px 60px -30px rgba(0,0,0,.55); }
[data-tone="cream"] .dsk img, .dsk.light img { box-shadow: 0 30px 60px -34px rgba(40,24,10,.45), 0 0 0 1px rgba(28,22,18,.06); }
.dsk figcaption { margin-top: 14px; font: 500 12px/1.3 var(--b-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.shot.muted img { filter: grayscale(.85) contrast(.95) brightness(.96) drop-shadow(0 30px 34px rgba(0,0,0,.42)); }
.shot.flat img { filter: drop-shadow(0 24px 30px rgba(0,0,0,.4)); border-radius: 14px; }
.shot.sq img { border-radius: 18px; }

/* a row of phone screens; each column is capped at its README display width */
.cs-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, var(--w, 300px))); gap: clamp(12px, 2.4vw, 36px); justify-content: center; align-items: start; }
.cs-row.stagger .shot:nth-child(even) { margin-top: 7%; }
.cs-row + .read, .read + .cs-row, .read + .dsk, .read + .cs-pair, .read + .cs-dsk2, .read + .cs-scrollrow { margin-top: 8vh; }
.cs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, var(--w, 560px))); gap: clamp(14px, 2.4vw, 36px); justify-content: center; align-items: start; }
.cs-dsk2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 36px); width: min(100%, var(--max, 1320px)); margin: 0 auto; align-items: start; }
.cs-one { width: min(100%, var(--w, 900px)); margin: 0 auto; }

/* text beside the visual, as Saudia's decisions */
.cs-dec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.cs-dec.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cs-dec.flip > .cs-dec-txt { order: 2; }
.cs-dec h3 { font-size: clamp(42px, 4.6vw, 78px); max-width: 12ch; }
.cs-dec-txt .read { font-size: clamp(19px, 1.55vw, 23px); }
.cs-dec-vis { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 28px); }
.cs-dec-vis .shot { width: min(100%, var(--w, 300px)); flex: 0 1 var(--w, 300px); }
.cs-dec-vis .shot + .shot { margin-top: 9%; }
.cs-dec-vis.col { flex-direction: column; align-items: stretch; }
.cs-dec-vis.col .dsk + .dsk { margin-top: 28px; }

/* captions written as notes (the copy sentence sits under its own screen) */
.cs-note { margin-top: 28px; font: italic 400 clamp(22px, 1.9vw, 30px)/1.12 var(--b-serif); letter-spacing: -.01em; text-align: center; text-wrap: balance; }

/* a long capture inside a phone-shaped window that scrolls itself while on screen; touch takes over */
.cs-scroll { position: relative; aspect-ratio: var(--ar, 750 / 1334); border-radius: 9.4% / calc(9.4% * var(--ar-n, .5622)); overflow: hidden; background: #f4f6fa; isolation: isolate; filter: drop-shadow(0 30px 34px rgba(0,0,0,.42)); transform: translateZ(0); }
.cs-scroll img { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; filter: none !important; }
.cs-scroll.play img { animation: cs-scroll var(--t, 14s) cubic-bezier(.65,0,.35,1) infinite; }
@keyframes cs-scroll { 0%, 10% { transform: translateY(0); } 48%, 60% { transform: translateY(var(--end)); } 100% { transform: translateY(0); } }
.rm .cs-scroll { overflow-y: auto; } .rm .cs-scroll img { position: relative; animation: none; }
@media (prefers-reduced-motion: reduce) { .cs-scroll.play img { animation: none; } }
@media (hover: none) { .cs-scroll.touched { overflow-y: auto; -webkit-overflow-scrolling: touch; } .cs-scroll.touched img { position: relative; animation: none; } }

/* final screens: a quiet gallery */
.cs-gal { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 70px clamp(16px, 2.6vw, 40px); width: min(var(--max, 1240px), 100%); margin: 0 auto; align-items: start; }
.cs-gal .shot:nth-child(even) { margin-top: 70px; }
.cs-gal .shot img { filter: drop-shadow(0 34px 40px rgba(0,0,0,.6)); }
.cs-gal-d { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); width: min(1240px, 100%); margin: 0 auto; align-items: start; }
.cs-gal-d .dsk:nth-child(even) { margin-top: 80px; }

/* ---------- Parmenion ---------- */
/* the problem: one client, four places, typed in again between each */
.pa-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: min(1100px, 100%); margin: 9vh auto 0; align-items: center; list-style: none; padding: 0; }
.pa-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pa-flow .box { width: min(190px, 82%); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px; border-radius: 16px; background: color-mix(in srgb, currentColor 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); font: 400 clamp(22px, 2vw, 30px)/1.05 var(--b-serif); letter-spacing: -.01em; }
.pa-flow .gap { position: absolute; left: calc(50% + min(95px, 41%)); width: calc(100% - 2 * min(95px, 41%)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.pa-flow .gap svg { width: 100%; height: 22px; overflow: visible; color: var(--b-amber); --ink-w: 2.2; }
.pa-flow .gap svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-flow .gap em { margin-top: 6px; font: italic 400 16px/1 var(--b-serif); color: var(--b-amber); white-space: nowrap; }
.pa-flow li:last-child .gap { display: none; }

/* the research: a laptop and a webcam window, the face a grey silhouette (no footage) */
.pa-setup { width: min(500px, 100%); margin: 7vh auto 0; }
.pa-setup svg { display: block; width: 100%; height: auto; overflow: visible; color: currentColor; --ink-w: 2.2; }
.pa-setup svg .ln { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pa-setup svg .soft { opacity: .45; }
.pa-setup figcaption { margin-top: 18px; text-align: center; font: 500 12px/1.3 var(--b-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .62; }

/* what we heard: the findings board */
.pa-board { list-style: none; padding: 0; margin: 6vh 0 0; font-size: clamp(21px, 1.85vw, 27px); width: min(100%, 30em); display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.pa-board li { width: calc((100% - 36px) / 3); max-width: 200px; aspect-ratio: 1; display: grid; place-items: center; padding: 16px; text-align: center; background: #f6efd8; color: #1c1612; border-radius: 4px; box-shadow: 0 22px 34px -18px rgba(0,0,0,.6); font: 400 clamp(22px, 2vw, 30px)/1.02 var(--b-serif); letter-spacing: -.01em; transform: rotate(var(--r, 0deg)); }
.pa-board li:nth-child(1) { --r: -2deg; background: #f6e6a6; } .pa-board li:nth-child(2) { --r: 1.4deg; } .pa-board li:nth-child(3) { --r: -1deg; } .pa-board li:nth-child(4) { --r: 1.8deg; } .pa-board li:nth-child(5) { --r: -1.4deg; }

/* 10% to 80%: the two viability cards side by side, a pencil arrow between */
.pa-scores { display: grid; grid-template-columns: minmax(0, 240px) 90px minmax(0, 240px); align-items: center; justify-content: center; gap: 10px; margin: 8vh auto 0; }
.pa-scores img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 34px 60px -30px rgba(0,0,0,.6); }
.pa-scores .ar { width: 90px; height: 40px; color: var(--b-amber); overflow: visible; --ink-w: 2.4; }
.pa-scores .ar path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* the report: the modal, then the pages it makes */
.pa-report { display: grid; grid-template-columns: minmax(0, 397px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: min(1240px, 100%); margin: 8vh auto 0; }
.pa-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); align-items: start; }
.pa-pages .dsk img { border-radius: 10px; }
.pa-pages .dsk:nth-child(even) { margin-top: 30px; }

.cs-dsk4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); width: min(1240px, 100%); margin: 0 auto; align-items: start; }
.pa-fin { width: min(1240px, 100%); margin: 0 auto; display: grid; gap: clamp(40px, 7vh, 80px); }
.pa-fin > div { display: grid; gap: clamp(16px, 2.6vw, 40px); align-items: start; }
.pa-fin .r1 { grid-template-columns: minmax(0, 640fr) minmax(0, 300fr); align-items: center; }
.pa-fin .r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pa-fin .r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Wealt ---------- */
/* dark screens on dark scenes: a quiet hairline keeps their edge, the shadow stays */
.we .shot img, .we .cs-scroll { outline: 1px solid rgba(255,255,255,.10); outline-offset: -1px; }
.we .shot img { border-radius: 9.4% / var(--rr, 5.6%); }
.we .cs-scroll { background: #05060f; }
.we .shot .cs-scroll img { border-radius: 0; outline: none; }
.we .shot.flat img, .we .we-states img, .we .dsk img { border-radius: 22px; }
.we .we-states img { filter: none; } /* strips: CSS radius and one box shadow, never a second baked corner */
@media (max-width: 860px) { .we .shot.flat img, .we .we-states img, .we .dsk img { border-radius: 14px; } }
.we .we-icon img { outline: 1px solid rgba(255,255,255,.10); outline-offset: -1px; }
.we .we-states figcaption, .we-sys-side figcaption { margin-top: 12px; text-align: center; font: 500 12px/1.3 var(--b-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.we-icon figcaption { margin-top: 14px; text-align: center; font: 500 12px/1.3 var(--b-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
.we-steps { position: relative; }
.we-steps .ul { position: absolute; left: 0; right: 0; height: 26px; color: var(--b-amber); overflow: visible; pointer-events: none; --ink-w: 2.6; }
.we-steps .ul path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.we-icon { width: min(220px, 40vw); margin: 0 auto; }
.we-icon img { width: 100%; height: auto; border-radius: 22.4%; box-shadow: 0 30px 50px -24px rgba(0,0,0,.7); }
.we-sys { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: center; width: min(1240px, 100%); margin: 8vh auto 0; }
.we-sys-side { display: grid; gap: clamp(20px, 3vw, 40px); justify-items: center; }
.we-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); gap: clamp(14px, 2.4vw, 36px); justify-content: center; align-items: start; margin-top: 7vh; }
.we-states { display: grid; gap: 14px; }
.we-steps .ul { top: calc(90.4% - 13px); }
.we-states img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 50px -28px rgba(0,0,0,.7); }
@media (max-width: 860px) { .strip img { border-radius: 14px; } }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .cs-dec, .cs-dec.flip { grid-template-columns: minmax(0, 1fr); gap: 7vh; }
  .cs-dec.flip > .cs-dec-txt { order: 0; }
  .cs-dec-txt .read { font-size: 19px; }
  .cs-row { grid-template-columns: repeat(min(var(--n, 3), var(--nm, 2)), minmax(0, var(--w, 300px))); gap: 12px; }
  .cs-row.stagger .shot:nth-child(even) { margin-top: 24px; }
  .cs-pair { gap: 10px; }
  .cs-dsk2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dsk img { border-radius: 14px; }
  .cs-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; }
  .cs-gal .shot:nth-child(even) { margin-top: 40px; }
  .cs-gal-d { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cs-gal-d .dsk:nth-child(even) { margin-top: 0; }
  .pa-flow { grid-template-columns: minmax(0, 1fr); gap: 46px; width: min(260px, 100%); }
  .pa-flow .box { width: 100%; aspect-ratio: auto; padding: 22px 14px; }
  .pa-flow .gap { left: 50%; top: 100%; width: auto; transform: translate(-50%, 4px); flex-direction: row; gap: 8px; }
  .pa-flow .gap svg { width: 22px; height: 36px; transform: rotate(90deg); }
  .pa-board { gap: 10px; }
  .pa-board li { width: calc((100% - 20px) / 3); font-size: 18px; padding: 8px; }
  .pa-scores { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 6px; }
  .pa-scores .ar { width: 44px; }
  .pa-report { grid-template-columns: minmax(0, 1fr); }
  .cs-dsk4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pa-fin .r1, .pa-fin .r2 { grid-template-columns: minmax(0, 1fr); }
  .pa-fin .r1 .dsk:nth-child(2) { max-width: 240px !important; }
  .pa-fin .r3 { grid-template-columns: minmax(0, 1fr); }
  .pa-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .we-sys { grid-template-columns: minmax(0, 1fr); }
  .we-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .we-flow .we-states { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .we-steps .ul { display: none; }
}
