/* ==========================================================================
   Case study pages (work/<product>/). Builds on styles.css tokens.
   Each product sets its own colours on body: .cs--lk is LISTඑක's Olive.
   ========================================================================== */
.cs--lk {
  --bg: #0f120c;
  --bg-2: #161a11;
  --accent: #b5cc4a;
  --accent-2: #d9e88f;
  --line: rgba(241, 237, 228, .11);
  --paper: #ebe6d8;
  --ink: #1e2516;
  --ink-mute: rgb(var(--ink-rgb) / .64);
  --ink-line: rgb(var(--ink-rgb) / .14);
  --olive: #5d7419;
  --acc-rgb: 181 204 74; --ol-rgb: 93 116 25; --ink-rgb: 30 37 22; --on-accent: #141a10;
  --c-bg: var(--paper); --c-fg: var(--ink);
}
/* PopKin: black ink on sun yellow, as on the landing page card; the app icon's blue is the accent on paper. */
.cs--pk {
  --bg: #0a0a0a;
  --bg-2: #151515;
  --accent: #ffd23f;
  --accent-2: #ffe9a8;
  --line: rgba(241, 237, 228, .12);
  --paper: #f3f1ea;
  --ink: #1b1606;
  --ink-mute: rgba(27, 22, 6, .64);
  --ink-line: rgba(27, 22, 6, .14);
  --olive: #1f5bff;
  --acc-rgb: 255 210 63; --ol-rgb: 31 91 255; --ink-rgb: 27 22 6; --on-accent: #1b1606;
  --c-bg: var(--paper); --c-fg: var(--ink);
}
.cs { background: var(--bg); }
.cs ::selection { background: var(--accent); color: var(--on-accent); }
.cs code { font-family: var(--f-mono); font-size: .86em; padding: .08em .36em; border-radius: 6px; background: rgb(var(--acc-rgb) / .12); color: var(--accent-2); white-space: nowrap; }
.cs .chap--paper code { background: rgb(var(--ol-rgb) / .12); color: var(--olive); }
.cs b { font-weight: 650; }
.cs .nav__links a { font-size: 14px; }

/* reveal on scroll (case.js adds .in) */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.cs-hero { padding: 84px var(--gut) 0; }
.cs-hero__card {
  position: relative; border-radius: clamp(22px, 2.2vw, 36px); overflow: hidden;
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 64px) clamp(22px, 2.6vw, 40px);
}
.cs-hero__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 85% 20%, rgb(var(--acc-rgb) / .45), transparent 65%);
}
.cs-hero__top { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 80px); align-items: end; }
.cs-hero__info { display: flex; flex-direction: column; }
.cs-hero__side { padding-bottom: 6px; }
.cs-hero__side .cs-hero__desc { margin-top: 0; }
.cs-hero__get { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 13px 20px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; transition: transform .5s var(--ease), background .3s; }
.cs-hero__get:hover { transform: translateY(-2px); background: var(--olive); }

/* App Store screenshots, all ten in one row like the store's product page */
.store { position: relative; z-index: 2; margin-top: clamp(36px, 4.4vw, 64px); padding-top: 18px; border-top: 1px solid var(--ink-line); }
.store__cap { display: flex; gap: 10px; color: var(--ink-mute); font-size: 10.5px; margin-bottom: 14px; }
.store__cap span:first-child { color: var(--ink); font-weight: 600; }
.store__cap span + span::before { content: "/"; margin-right: 10px; opacity: .5; }
.store__row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(6px, .7vw, 12px); }
.store__row li { border-radius: clamp(8px, .9vw, 14px); overflow: hidden; box-shadow: 0 16px 30px -22px rgb(var(--ink-rgb) / .7), 0 0 0 1px rgb(var(--ink-rgb) / .06); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.store__row li:hover { transform: translateY(-8px); box-shadow: 0 26px 40px -24px rgb(var(--ink-rgb) / .8), 0 0 0 1px rgb(var(--ink-rgb) / .08); }
.store__row img { display: block; width: 100%; height: auto; }
.js .store__row li { opacity: 0; transform: translateY(24px); }
.js .store.in .store__row li { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease), box-shadow .6s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.js .store.in .store__row li:hover { transform: translateY(-8px); transition-delay: 0s; }
.cs-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-mute); font-size: 11px; }
.cs-hero__meta span:first-child { color: var(--ink); font-weight: 600; }
.cs-hero__meta span:not(:first-child)::before { content: "/"; margin-right: 10px; opacity: .5; }
.cs-hero__brand { --ts: clamp(64px, 8.4vw, 150px); display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); margin-top: clamp(28px, 4vw, 56px); }
.cs-hero__title { font-size: var(--ts); font-weight: 800; line-height: .85; letter-spacing: -.06em; }
.cs-hero__tag { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; margin-top: 18px; }
.cs-hero__desc { color: var(--ink-mute); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; max-width: 48ch; margin-top: 18px; }
.cs-hero .roles { margin-top: 22px; }

.cs-mark {
  position: relative; flex: 0 0 auto; width: calc(var(--ts) * .98); aspect-ratio: 1; border-radius: 23%; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 95% at 72% 8%, #c8d47f 0%, #a0b843 42%, #86a12e 100%);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.cs-mark > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-mark.is-live > img { display: none; }
.cs-mark .lk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.cs-mark--xl { width: clamp(150px, 17vw, 250px); }
.cs-facts { display: grid; grid-template-columns: .8fr .9fr 1.6fr .7fr; border-bottom: 1px solid var(--line); margin-top: 8px; }
.cs-facts > div { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); }
.cs-facts > div + div { padding-left: 24px; }
.cs-facts > div:last-child { border-right: 0; }
.cs-facts dt { color: var(--accent); margin-bottom: 10px; }
.cs-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg); }
.cs-facts a { border-bottom: 1px solid rgba(241, 237, 228, .3); transition: border-color .3s; }
.cs-facts a:hover { border-color: var(--accent); }

/* ---------- chapters ---------- */
.chap { padding: clamp(80px, 10vw, 160px) var(--gut); border-top: 1px solid var(--line); }
.chap--paper { background: var(--paper); color: var(--ink); border-top: 0; border-radius: clamp(24px, 3vw, 48px); margin: 0 clamp(6px, 1vw, 14px); }
.chap--paper .kicker { color: var(--ink-mute); }
.chap--paper .kicker .num { color: var(--olive); }
.chap--paper .chap__title em, .chap--paper .chap__sub em { color: var(--olive); }
.chap--paper .chap__text p:not(.lead) { color: var(--ink-mute); }
.chap--paper .chap__text b { color: var(--ink); }
.chap__head { margin-bottom: clamp(40px, 5vw, 80px); }
.chap__title { font-size: clamp(40px, 6vw, 104px); font-weight: 700; line-height: .94; letter-spacing: -.05em; max-width: 14em; }
.chap__title em { color: var(--accent); letter-spacing: -.02em; padding-right: .06em; }
.chap__sub { font-size: clamp(28px, 3vw, 48px); font-weight: 650; line-height: 1; letter-spacing: -.04em; margin-bottom: 22px; }
.chap__sub em { color: var(--accent); }
.chap__lede { color: var(--mute); font-size: clamp(16px, 1.3vw, 20px); max-width: 52ch; margin-top: 24px; }
.chap__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.chap__cols--wide { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.chap__text p { color: var(--mute); font-size: clamp(15px, 1.12vw, 18px); line-height: 1.6; max-width: 56ch; margin-bottom: 18px; }
.chap__text b { color: var(--fg); }
.chap__text .lead, .chap--paper .chap__text .lead { color: inherit; font-size: clamp(21px, 1.9vw, 30px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; margin-bottom: 28px; }
.chap__text .aside { font-size: 14px; padding: 16px 18px; border-left: 2px solid var(--accent); background: rgb(var(--acc-rgb) / .06); border-radius: 0 12px 12px 0; }
.chap--paper .chap__text .aside { border-left-color: var(--olive); background: rgb(var(--ol-rgb) / .07); }

/* idea pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillars li { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 0; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.pillars .mono { color: var(--accent); }
.pillars b { font-size: 20px; letter-spacing: -.03em; }
.pillars span:not(.mono) { color: var(--mute); font-size: 13.5px; line-height: 1.45; min-height: 4.4em; }
.pillars img { margin: 10px -4px 0; width: calc(100% + 8px); max-width: none; aspect-ratio: 440 / 600; object-fit: cover; object-position: top; border-radius: 14px 14px 0 0; }

/* ---------- type / runs ---------- */
.type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink-line); align-items: center; }
.type__text p { color: var(--ink-mute); font-size: clamp(15px, 1.12vw, 18px); line-height: 1.6; max-width: 56ch; }
.runs { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px -40px rgb(var(--ink-rgb) / .5); }
.runs label { display: block; color: var(--ink-mute); margin-bottom: 10px; }
.runs__in { width: 100%; font: 500 16px/1.4 var(--f-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink-line); border-radius: 12px; padding: 12px 14px; outline: none; }
.runs__in:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgb(var(--ol-rgb) / .16); }
.runs__out { margin: 20px 0 16px; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.25; letter-spacing: -.02em; min-height: 1.3em; word-break: break-word; }
.runs__out .r { border-radius: 8px; padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.runs__out .r-l { font-family: "Geist", var(--f-sans); font-weight: 500; background: rgb(var(--ol-rgb) / .1); }
.runs__out .r-s { font-family: "Noto Sans Sinhala", var(--f-sans); font-weight: 500; background: rgba(255, 91, 31, .13); }
.runs__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink-mute); font-size: 10.5px; }
.runs__key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -6px; }
.runs__key .k-l { background: rgb(var(--ol-rgb) / .3); }
.runs__key .k-s { background: rgba(255, 91, 31, .35); }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.swatches li { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; aspect-ratio: 2.4; border-radius: 18px; background: var(--s); color: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); }
.swatches li:nth-child(2), .swatches li:nth-child(4) { color: var(--ink); }
.swatches b { font: 500 14px/1 var(--f-mono); }
.swatches .mono { opacity: .7; font-size: 10px; }

/* ---------- offline ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; margin: 8px 0 26px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--mute); font-size: clamp(15px, 1.08vw, 17px); line-height: 1.55; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .15em; font: 500 11px/1 var(--f-mono); color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 5px 6px; }
.steps b { color: var(--fg); }

.sim { position: sticky; top: 90px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 2vw, 26px); }
.sim__hint { color: var(--accent); font-size: 10.5px; margin-bottom: 18px; line-height: 1.5; }
.sim__phones { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; gap: 10px; }
.sim__phone { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 14px; display: flex; flex-direction: column; min-height: 330px; box-shadow: inset 0 0 0 4px #1d2416, 0 20px 40px -24px #000; transition: filter .4s, opacity .4s; }
.sim__phone.is-off { background: #dcd6c6; }
.sim__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 12px; border-bottom: 1px solid var(--ink-line); }
.sim__bar b { font-size: 16px; letter-spacing: -.02em; }
.net { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; background: rgb(var(--ol-rgb) / .14); color: var(--olive); font: 500 10.5px/1 var(--f-mono); text-transform: uppercase; transition: background .3s, color .3s; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.net[aria-pressed="false"] { background: #1e2516; color: #ffb38f; }
.sim__list { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 6px; border-radius: 10px; font-size: 14px; transition: background .2s; }
.it:hover { background: rgb(var(--ink-rgb) / .05); }
.it__box { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid rgb(var(--ink-rgb) / .35); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.it.done .it__box { background: var(--olive); border-color: var(--olive); }
.it.done .it__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.it__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it.done .it__t { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgb(var(--ink-rgb) / .35); }
.it__by { font: 500 9.5px/1 var(--f-mono); text-transform: uppercase; color: var(--ink-mute); }
.it.pending .it__by { color: #c2410c; }
.it.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { background: rgb(var(--acc-rgb) / .55); } 100% { background: transparent; } }
.sim__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--ink-line); }
.sim__add { font-size: 12.5px; font-weight: 600; color: var(--olive); padding: 6px 4px; }
.sim__q { font-size: 10px; color: var(--ink-mute); padding: 5px 8px; border-radius: 99px; background: rgb(var(--ink-rgb) / .06); transition: background .3s, color .3s; }
.sim__q.has { background: #ffb38f; color: #1e2516; }
.sim__server { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--mute); }
.sim__server .mono { font-size: 9.5px; }
.sim__pulse { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); position: relative; }
.sim__pulse::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--accent); }
.sim__pulse.go { animation: ping .7s var(--ease); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / .6); } 100% { box-shadow: 0 0 0 22px rgb(var(--acc-rgb) / 0); } }
.sim__rev { color: var(--fg) !important; }
.sim__log { margin-top: 16px; height: 150px; overflow-y: auto; padding: 12px 14px; border-radius: 14px; background: #0b0d09; font-size: 10.5px; line-height: 1.75; text-transform: none; letter-spacing: 0; color: rgba(241, 237, 228, .6); display: flex; flex-direction: column; }
.sim__log li { white-space: pre-wrap; word-break: break-word; }
.sim__log .w { color: #ffb38f; }
.sim__log .g { color: var(--accent); }
.sim__log .o { color: var(--fg); }
.sim__tools { display: flex; gap: 10px; margin-top: 12px; }
.sim__btn { font: 500 11px/1 var(--f-mono); text-transform: uppercase; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--fg); transition: border-color .3s, opacity .3s; }
.sim__btn:hover:not(:disabled) { border-color: var(--accent); }
.sim__btn:disabled { opacity: .35; cursor: default; }

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story { padding: clamp(22px, 2.4vw, 36px); border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease); }
.story:hover { border-color: rgb(var(--acc-rgb) / .45); transform: translateY(-4px); }
.story__meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--mute); font-size: 10.5px; }
.story__meta span { padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line); }
.story h3 { font-size: clamp(24px, 2.2vw, 36px); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; margin: 20px 0 22px; }
.story dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; margin: 0; }
.story dt { font: 500 10.5px/1.9 var(--f-mono); text-transform: uppercase; color: var(--mute); }
.story dd { margin: 0; color: rgba(241, 237, 228, .8); font-size: 14.5px; line-height: 1.55; }
.story dt:nth-of-type(3) { color: var(--accent); }

/* ---------- next ---------- */
.cs-next { padding: 0 var(--gut); }
.cs-next__card { display: flex; flex-direction: column; gap: 14px; padding: clamp(40px, 6vw, 90px) clamp(24px, 4vw, 64px); border-radius: clamp(24px, 3vw, 48px); background: #1f5bff; color: #fff; transition: transform .8s var(--ease); }
.cs-next__card:hover { transform: scale(.99); }
.cs-next__card .mono { opacity: .7; }
.cs-next__card b { font-size: clamp(48px, 8vw, 140px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.cs-next__card b em { font-size: .32em; letter-spacing: -.01em; opacity: .8; font-weight: 400; }
.cs-next__go { font-weight: 600; margin-top: 10px; }
.cs .contact__base { color: var(--mute); border-top-color: var(--line); }


/* ==========================================================================
   STORY COMPONENTS (LISTඑක 2nd pass: story first, code stats out)
   ========================================================================== */

/* ---------- shop-hopping strip ---------- */
.hop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 34px 0 10px; }
.hop__card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.hop__card .mono { color: var(--mute); font-size: 10px; }
.hop__card b { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.hop__card > span:not(.mono) { color: var(--mute); font-size: 13px; }
.hop__card i { font-style: normal; font-size: 10px; margin-top: 10px; color: #ffb38f; }
.hop__card--paid i { color: var(--accent); }
.hop__card + .hop__card::before { content: ""; position: absolute; left: -28px; top: 50%; width: 22px; height: 1.3px; background: rgba(241, 237, 228, .35); }
.hop__card + .hop__card::after { content: ""; position: absolute; left: -8px; top: calc(50% - 4px); border: 4.5px solid transparent; border-left: 6px solid rgba(241, 237, 228, .5); border-right: 0; }
.hop__note { color: var(--mute); font-size: 10px; opacity: .8; margin-top: 14px; }
.hopbox { position: sticky; top: 90px; padding: clamp(18px, 2.2vw, 30px); border-radius: 28px; background: linear-gradient(180deg, rgb(var(--acc-rgb) / .06), transparent 70%); border: 1px solid var(--line); }
.hopbox__cap { color: var(--accent); font-size: 10.5px; }
.hop--col { grid-template-columns: 1fr; gap: 26px; margin: 20px 0 0; }
.hop--col .hop__card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: baseline; column-gap: 14px; row-gap: 2px; padding: 16px 18px; }
.hop--col .hop__card .mono { grid-row: 1 / 3; align-self: center; }
.hop--col .hop__card b { margin: 0; }
.hop--col .hop__card > span:not(.mono) { grid-column: 2; }
.hop--col .hop__card i { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; }
.hop--col .hop__card + .hop__card::before { left: 49px; top: -26px; width: 1.3px; height: 20px; }
.hop--col .hop__card + .hop__card::after { left: 45px; top: -9px; border: 4.5px solid transparent; border-top: 6px solid rgba(241, 237, 228, .5); border-bottom: 0; }

/* ---------- research ---------- */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain { padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.pain svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pain b { display: block; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; margin: 22px 0 10px; }
.pain p { color: var(--mute); font-size: 15px; line-height: 1.55; }
.hmw { margin: clamp(40px, 5vw, 72px) 0 0; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--accent); color: var(--on-accent); }
.hmw .mono { opacity: .65; }
.hmw p { font-size: clamp(24px, 2.8vw, 44px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; max-width: 30ch; margin-top: 14px; }
.hmw em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.intel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, .8fr); gap: 16px; margin-top: 16px; }
.intel__card { padding: clamp(20px, 2.2vw, 28px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.intel__h { display: flex; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 10.5px; margin-bottom: 16px; }
.intel__h span + span { color: var(--mute); }
.intel__note, .intel__q { color: var(--mute); font-size: 14px; line-height: 1.55; }
.intel__note { margin-top: 16px; color: rgba(241, 237, 228, .8); }
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font: 500 9.5px/1.3 var(--f-mono); text-transform: uppercase; color: var(--mute); vertical-align: bottom; }
.matrix tbody th { text-align: left; font-weight: 550; white-space: nowrap; }
.matrix .y { color: var(--accent); }
.matrix .n { color: rgba(241, 237, 228, .28); }
.matrix .p { font: 500 9.5px var(--f-mono); text-transform: uppercase; color: #ffb38f; }
.matrix tr.me th, .matrix tr.me td { border-bottom: 0; background: rgb(var(--acc-rgb) / .1); }
.matrix tr.me th { border-radius: 10px 0 0 10px; }
.matrix tr.me td:last-child { border-radius: 0 10px 10px 0; }
.scope { margin: 0; display: grid; gap: 6px; }
.scope dt { font-size: 10px; color: var(--accent); margin-top: 10px; }
.scope dt:first-child { margin-top: 0; }
.scope dt:nth-of-type(3) { color: var(--mute); }
.scope dd { margin: 0; color: rgba(241, 237, 228, .8); font-size: 14px; line-height: 1.55; }
.filter { counter-reset: f; display: grid; gap: 10px; margin: 14px 0; }
.filter li { counter-increment: f; position: relative; padding-left: 30px; font-size: 14px; line-height: 1.45; color: rgba(241, 237, 228, .85); }
.filter li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 11px/20px var(--f-mono); text-align: center; }
.flowbox--slim { margin-top: 16px; }
.flow-scroll .flow--steps { min-width: 760px; }
.f-t--xs { font-size: 14.5px; }
.f-s--xs { font-size: 11px; }

/* ---------- flow diagrams (orthogonal lines, a dot that walks them) ---------- */
.flowbox { margin-top: clamp(56px, 7vw, 110px); padding: clamp(18px, 2.4vw, 36px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgb(var(--acc-rgb) / .05), transparent 60%); }
.flowbox__cap { color: var(--accent); font-size: 10.5px; margin-bottom: 20px; }
.flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.flow { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-sans); }
.flow-scroll .flow { min-width: 660px; }
.f-node { transition: opacity .6s var(--ease); }
.js .flow[data-flow] .f-node:not(.on) { opacity: .42; }
.f-node rect { fill: var(--bg-2); stroke: rgba(241, 237, 228, .18); stroke-width: 1; transition: fill .6s, stroke .6s; }
.f-node.on rect { stroke: var(--accent); fill: rgb(var(--acc-rgb) / .08); }
.f-node--hot rect { fill: rgb(var(--acc-rgb) / .12); stroke: var(--accent); }
.f-node--db rect { fill: rgba(241, 237, 228, .06); }
.f-node--api rect, .f-node--next rect { stroke-dasharray: 5 5; }
.f-node--next rect { fill: transparent; }
.f-t { fill: var(--fg); font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.f-t--sm { font-size: 15px; }
.f-s { fill: var(--mute); font-size: 12.5px; }
.f-cap { font: 500 10.5px var(--f-mono); fill: var(--accent); letter-spacing: .08em; }
.f-chip { font: 500 9.5px var(--f-mono); fill: var(--mute); letter-spacing: .08em; }
.f-chip--live { fill: var(--accent); }
.f-chip--next { fill: #ffb38f; }
.f-e { font: 500 10px var(--f-mono); fill: rgba(241, 237, 228, .45); text-transform: uppercase; letter-spacing: .06em; }
.f-l { fill: none; stroke: rgba(241, 237, 228, .24); stroke-width: 1.4; }
.f-l--dash { stroke-dasharray: 4 5; }
.f-l--hot { stroke: rgb(var(--acc-rgb) / .45); }
.f-head { fill: rgba(241, 237, 228, .5); }
.f-trail { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.f-dot { fill: var(--accent-2); filter: drop-shadow(0 0 6px rgb(var(--acc-rgb) / .95)); }

/* route concept map */
.route { position: sticky; top: 90px; margin: 0; padding: clamp(14px, 1.8vw, 24px); border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); }
.route figcaption { color: var(--mute); font-size: 10px; margin-top: 10px; text-align: center; }


/* ---------- version one ---------- */
.oldkit { padding: clamp(20px, 2.4vw, 32px); border-radius: 26px; background: #fff; color: #1a2e2d; }
.oldkit__logo { display: block; width: min(100%, 360px); height: auto; }
.oldkit__sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.oldkit__sw li { display: flex; flex-direction: column; gap: 3px; }
.oldkit__sw li::before { content: ""; aspect-ratio: 1.3; border-radius: 12px; background: var(--s); box-shadow: inset 0 0 0 1px rgba(26, 46, 45, .1); margin-bottom: 8px; }
.oldkit__sw b { font: 500 12px var(--f-mono); }
.oldkit__sw .mono { font-size: 9.5px; color: rgba(26, 46, 45, .55); }
.oldkit__type { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 30px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(26, 46, 45, .1); }
.oldkit__type .mono { font-size: 10px; color: rgba(26, 46, 45, .55); margin-left: auto; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.2vw, 36px); margin-top: clamp(48px, 6vw, 90px); }
.shots figure { margin: 0; }
.shots figure:nth-child(even) { margin-top: 36px; }
.shots figcaption, .ba-grid figcaption { text-align: center; color: var(--mute); font-size: 10.5px; margin-top: 16px; }

/* ---------- rebrand ---------- */
.chap--paper .chap__sub { margin-bottom: 22px; }
.sketches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 4 / 3; border-radius: 20px; border: 1.5px dashed rgb(var(--ink-rgb) / .28); color: var(--ink-mute); background: repeating-linear-gradient(-45deg, rgb(var(--ink-rgb) / .035) 0 10px, transparent 10px 20px); }
.ph svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ph .mono { font-size: 10px; }
.ph--wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

.evo { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 14px; }
.evo__icons { margin: 0; display: grid; grid-template-columns: auto 64px auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 48px); padding: clamp(24px, 3.4vw, 56px); border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -40px rgb(var(--ink-rgb) / .55); }
.evo__icon { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.evo__icon > img { width: clamp(96px, 10vw, 150px); height: auto; border-radius: 23%; box-shadow: 0 14px 30px -18px rgb(var(--ink-rgb) / .6); }
.evo__icon .mono { font-size: 10px; color: var(--ink-mute); max-width: 22ch; }
.evo__icons .cs-mark { box-shadow: 0 30px 60px -24px rgb(var(--ol-rgb) / .65), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.evo__note { color: var(--ink-mute); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; max-width: 36ch; justify-self: end; }
.evo__logos { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.evo__tile { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -36px rgb(var(--ink-rgb) / .55); }
.evo__tile img { display: block; width: min(100%, 220px); height: auto; margin: auto 0; }
.evo__tile figcaption { color: var(--ink-mute); font-size: 9.5px; }
.evo__tile--dark { background: #0d110b; }
.evo__tile--dark figcaption { color: rgba(244, 245, 239, .5); }
.evo__arrow { position: relative; align-self: center; height: 1.4px; background: var(--ink); }
.evo__arrow::after { content: ""; position: absolute; right: -1px; top: -4.5px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }

.morphwrap, .slimwrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink-line); }
.morph {
  --m-brand: #4ecdc4; --m-act: #ff6b6b; --m-ink: #1a2e2d; --m-page: #f8fffe; --m-headbg: #4ecdc4; --m-headfg: #fff; --m-em: #fff; --m-sub: rgba(255, 255, 255, .85);
  --m-barbg: rgba(255, 255, 255, .35); --m-barfg: #fff; --m-cb: 6px; --m-btn: 14px; --m-hf: Anton, sans-serif; --m-hw: 400; --m-bf: "Inter Tight", sans-serif;
  background: #fff; border-radius: 28px; padding: 18px; box-shadow: 0 30px 60px -40px rgb(var(--ink-rgb) / .5);
}
.morph[data-theme="olive"] {
  --m-brand: #b5cc4a; --m-act: #5d7419; --m-ink: #1f2618; --m-page: #f4f5ef; --m-headbg: #e4e9cf; --m-headfg: #1f2618; --m-em: #6e8714; --m-sub: #4f5746;
  --m-barbg: rgba(31, 38, 24, .1); --m-barfg: #b5cc4a; --m-cb: 50%; --m-btn: 99px; --m-hf: "Geist", sans-serif; --m-hw: 300; --m-bf: "Geist", sans-serif;
}
.morph[data-theme="teal"] .o, .morph[data-theme="olive"] .t { display: none; }
.morph__seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--paper); }
.morph__seg button { padding: 9px 14px; border-radius: 99px; font: 500 10.5px/1 var(--f-mono); text-transform: uppercase; color: var(--ink-mute); transition: background .4s, color .4s; }
.morph__seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.morph__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 16px; }
.morph__roles li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-line); }
.morph__roles li:last-child { border-bottom: 0; }
.morph__roles i { width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: background-color .9s var(--ease); }
.morph__roles .aa { display: grid; place-items: center; font: var(--m-hw) 15px var(--m-hf); font-style: normal; background: var(--paper); color: var(--ink); }
.morph__roles .mono { font-size: 10px; color: var(--ink-mute); }
.morph__roles b { font: 500 11.5px var(--f-mono); text-align: right; }
.mock { overflow: hidden; padding-bottom: 14px; border-radius: 24px; background: var(--m-page); color: var(--m-ink); font-family: var(--m-bf); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); transition: background-color .9s var(--ease), color .9s; }
.mock__head { display: flex; flex-direction: column; gap: 7px; padding: 22px 16px 16px; background: var(--m-headbg); color: var(--m-headfg); transition: background-color .9s var(--ease), color .9s; }
.mock__k { font: 600 9px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.mock__h { font-family: var(--m-hf); font-weight: var(--m-hw); font-size: 25px; line-height: 1.05; letter-spacing: -.01em; }
.mock__h em { font: inherit; color: var(--m-em); transition: color .9s; }
.mock__m { font-size: 11px; color: var(--m-sub); }
.mock__bar { height: 6px; border-radius: 99px; overflow: hidden; background: var(--m-barbg); transition: background-color .9s; }
.mock__bar i { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--m-barfg); transition: background-color .9s; }
.mock__list { padding: 6px 14px; }
.mock__list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.mock__list i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: var(--m-cb); border: 1.6px solid rgba(0, 0, 0, .25); transition: border-radius .9s var(--ease), background-color .9s, border-color .9s; }
.mock__list li.on { opacity: .55; text-decoration: line-through; }
.mock__list li.on i { background: var(--m-brand); border-color: var(--m-brand); }
.mock__btn { display: block; margin: 10px 14px 0; padding: 12px; text-align: center; border-radius: var(--m-btn); background: var(--m-act); color: #fff; font-size: 13px; font-weight: 600; transition: background-color .9s var(--ease), border-radius .9s var(--ease); }

.ba-row { margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink-line); }
.ba-row__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); align-items: end; margin-bottom: clamp(36px, 4vw, 60px); }
.ba-row__head p { color: var(--ink-mute); font-size: clamp(15px, 1.12vw, 18px); line-height: 1.6; max-width: 48ch; }
.ba-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 56px); }
.ba-grid figure { margin: 0; }
.chap--paper .ba-grid figcaption { color: var(--ink-mute); }
.ba { --x: 50%; position: relative; width: 100%; height: 100%; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba__old { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 2; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); pointer-events: none; }
.ba__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font: 700 14px/1 var(--f-sans); letter-spacing: 2px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); }
.ba:has(input:focus-visible) .ba__line::after { outline: 2px solid var(--olive); outline-offset: 3px; }
.ba::before, .ba::after { position: absolute; bottom: 12px; z-index: 2; padding: 5px 9px; border-radius: 99px; font: 500 9px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; pointer-events: none; }
.ba::before { content: "Before"; left: 10px; background: #4ecdc4; color: #fff; }
.ba::after { content: "After"; right: 10px; background: #1f2618; color: #dceb86; }
.ba input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

.slim { background: #fff; border-radius: 24px; padding: clamp(18px, 2vw, 26px); box-shadow: 0 30px 60px -40px rgb(var(--ink-rgb) / .5); }
.slim__row { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
.slim__row > .mono { font-size: 10.5px; color: var(--ink-mute); }
.slim__bar { display: grid; grid-template-columns: minmax(0, 1fr) 70px; align-items: center; gap: 12px; }
.slim__bar i { display: block; height: 14px; border-radius: 5px; background: var(--olive); width: calc(var(--v) / 11.2 * 100%); transform-origin: left; transition: transform 1.4s var(--ease); }
.slim__bar--old i { background: #c9cdbe; }
.slim__bar b { font: 500 12px var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.js .slim:not(.in) .slim__bar i { transform: scaleX(0); }
.slim__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 10px; color: var(--ink-mute); }
.slim__key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -6px; }
.slim__key .k-old { background: #c9cdbe; }
.slim__key .k-new { background: var(--olive); }

/* ---------- build ---------- */
.offline { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 96px); align-items: start; margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }

/* ---------- what's next ---------- */
.road { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 40px; }
.road::before, .road::after { content: ""; position: absolute; top: 9px; left: 0; height: 2px; }
.road::before { right: 0; background: var(--line); }
.road::after { width: calc(40% + 10px); background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.road.in::after { transform: none; }
.road__step { position: relative; padding-right: 20px; }
.road__step::before { content: ""; position: absolute; top: -40px; left: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(241, 237, 228, .25); background: var(--bg); box-sizing: border-box; }
.road__step.is-done::before { background: var(--accent); border-color: var(--accent); }
.road__step.is-now::before { border-color: var(--accent); box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / .5); animation: now 2s infinite; }
@keyframes now { 70% { box-shadow: 0 0 0 12px rgb(var(--acc-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / 0); } }
.road__step .mono { color: var(--mute); font-size: 10.5px; }
.road__step.is-now .mono { color: var(--accent); }
.road__step b { display: block; font-size: clamp(19px, 1.7vw, 26px); letter-spacing: -.03em; margin: 10px 0 8px; }
.road__step p { color: var(--mute); font-size: 14.5px; line-height: 1.5; max-width: 22ch; }
.outro { margin-top: clamp(64px, 8vw, 120px); font-size: clamp(22px, 2.4vw, 38px); line-height: 1.25; letter-spacing: -.02em; max-width: 34ch; }
.outro b { color: var(--accent); font-weight: 550; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-facts > div:nth-child(2) { border-right: 0; }
  .cs-facts > div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .cs-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .chap__cols--wide, .offline, .morphwrap { grid-template-columns: 1fr; }
  .intel { grid-template-columns: 1fr 1fr; }
  .intel__card--wide { grid-column: 1 / -1; }
  .evo__icons { grid-template-columns: auto 64px auto; }
  .evo__note { grid-column: 1 / -1; justify-self: start; max-width: none; }
  .sim, .hopbox, .route { position: relative; top: 0; }
  .stories { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cs-hero { padding-top: 76px; }
  .cs-hero__top { grid-template-columns: 1fr; align-items: start; }
  .store__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 14px; margin: 0 calc(clamp(28px, 4vw, 64px) * -1); padding-left: clamp(28px, 4vw, 64px); padding-right: clamp(28px, 4vw, 64px); scroll-padding: 0 clamp(28px, 4vw, 64px); }
  .store__row li { flex: 0 0 clamp(130px, 30vw, 200px); scroll-snap-align: start; }
  .chap__cols, .type, .slimwrap, .ba-row__head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li:nth-child(3) { grid-column: 1 / -1; }
  .pillars li:nth-child(3) img { aspect-ratio: 440 / 420; }
  .stories, .pains, .intel { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .shots figure:nth-child(even) { margin-top: 0; }
  .road { grid-template-columns: 1fr; gap: 26px; padding: 0 0 0 40px; }
  .road::before, .road::after { top: 0; left: 9px; width: 2px; height: auto; }
  .road::before { bottom: 0; right: auto; }
  .road::after { height: calc(40% + 10px); transform-origin: top; }
  .road__step::before { top: 2px; left: -40px; }
  .road__step p { max-width: none; }
}
@media (max-width: 640px) {
  .cs-facts { grid-template-columns: 1fr; }
  .cs-facts > div, .cs-facts > div + div { padding: 20px 0; border-right: 0; border-top: 1px solid var(--line); }
  .cs-facts > div:first-child { border-top: 0; }
  .hop { grid-template-columns: 1fr; gap: 18px; }
  .hop__card + .hop__card::before { left: 28px; top: -18px; width: 1.3px; height: 18px; }
  .hop__card + .hop__card::after { display: none; }
  .evo__icons { grid-template-columns: 1fr; justify-items: center; }
  .evo__icons > .evo__arrow { width: 1.4px; height: 40px; justify-self: center; }
  .evo__icons > .evo__arrow::after { right: auto; top: auto; left: -4.5px; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; }
  .evo__note { text-align: center; }
  .evo__logos { grid-template-columns: 1fr; }
  .evo__logos > .evo__arrow { display: none; }
  .hop--col .hop__card { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .morph__body { grid-template-columns: 1fr; }
  .oldkit__sw { grid-template-columns: 1fr 1fr; }
  .sim__phones { grid-template-columns: 1fr; }
  .sim__server { flex-direction: row; padding: 4px 0; }
  .sim__phone { min-height: 0; }
  .story dl { grid-template-columns: 1fr; gap: 4px; }
  .story dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .slim__bar i, .road::after { transition: none; }
  .js .slim:not(.in) .slim__bar i { transform: none; }
  .road::after { transform: none; }
  .road__step.is-now::before { animation: none; }
}

/* ==========================================================================
   POPKIN
   ========================================================================== */
.cs--pk .cs-hero__card { background: #ffd23f; color: var(--ink); }
.cs--pk .cs-hero__card::before { background: radial-gradient(55% 60% at 85% 15%, rgba(255, 255, 255, .55), transparent 65%); }
.cs-mark.case__logo--popkin { background: #1f5bff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.cs-mark--lg { width: clamp(120px, 12vw, 180px); }
.cs-hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cs-hero__links .cs-hero__get { margin-top: 0; }
.cs-hero__get--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cs-hero__get--ghost:hover { color: var(--paper); }
.store--8 .store__row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.cs--pk .roles li { background: var(--ink); color: #ffd23f; }
.cs--pk .roles li::before { background: #ffd23f; color: var(--ink); }

/* a phone with a video beside the text */
.vid { position: sticky; top: 90px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vid__store { width: clamp(200px, 20vw, 290px); height: auto; border-radius: 22px; box-shadow: 0 40px 70px -40px #000; }
.names .type__text p + p, .daynight .type__text p + p { margin-top: 14px; }
.vid figcaption { color: var(--mute); font-size: 10.5px; text-align: center; max-width: 34ch; }

/* upright and sideways */
.turn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: center; }
.turn figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.turn figcaption { color: var(--mute); font-size: 10.5px; }
.turn__land { width: 100%; }

.pillars--vid { margin-top: clamp(48px, 6vw, 90px); }
.pillars video { margin: 10px -4px 0; width: calc(100% + 8px); max-width: none; aspect-ratio: 9 / 16; object-fit: cover; object-position: 50% 60%; border-radius: 14px 14px 0 0; display: block; background: #000; }

.matrix td.t { text-align: left; font-size: 12.5px; color: var(--mute); }
.flowbox__note { color: var(--mute); font-size: 14.5px; line-height: 1.6; max-width: 80ch; margin-top: 18px; }

/* design: principles and the glass kit */
.principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.principles li { padding: 7px 12px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 10.5px; box-shadow: 0 6px 16px -10px rgb(var(--ink-rgb) / .5); }
.glass { position: sticky; top: 90px; }
.glass__sky {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 28px; min-height: 420px; justify-content: flex-end; overflow: hidden;
  background: radial-gradient(60% 40% at 80% 18%, rgba(255, 233, 168, .95), transparent 60%), linear-gradient(180deg, #4aa8ee 0%, #8fd0f7 45%, #9fde7a 46%, #6fbf4b 100%);
  box-shadow: 0 40px 70px -40px rgb(var(--ink-rgb) / .7);
}
.glass__lbl { position: absolute; top: 22px; left: 22px; }
.glass__row { display: flex; align-items: center; gap: 10px; }
.glass__row--end { justify-content: space-between; }
.g { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 99px; color: #fff; font-weight: 700; background: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 20px -12px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.g--pill { font-size: 13px; letter-spacing: .02em; }
.gd { padding: 7px 12px; border-radius: 99px; color: #fff; font-size: 10px; background: rgba(0, 0, 0, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gm { margin: 0; padding: 16px 18px; border-radius: 22px; color: var(--ink); font-size: 17px; line-height: 1.45; font-weight: 500; background: rgba(255, 255, 255, .72); box-shadow: inset 0 1px 1px #fff, 0 16px 30px -18px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gm mark { background: #ffd23f; color: var(--ink); border-radius: 6px; padding: 0 4px; }
.sunb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--ink); font-size: 20px; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd23f 45%, #f2a900); box-shadow: 0 0 0 6px rgba(255, 255, 255, .35), 0 16px 30px -12px rgba(242, 169, 0, .8); }
.glass__key { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 18px; color: var(--ink-mute); font-size: 10px; }
.glass__key li { display: flex; align-items: center; gap: 8px; }
.glass__key i { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.glass__key .k-g { background: #bfe3fb; box-shadow: inset 0 0 0 1.5px #76c2f4; }
.glass__key .k-gd { background: #2b2b2b; }
.glass__key .k-gm { background: #fff; box-shadow: inset 0 0 0 1px var(--ink-line); }
.glass__key .k-sun { background: #ffd23f; }

/* round one / round two */
.r1 { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.ph--r1 { aspect-ratio: auto; min-height: 220px; }
.r1__board { margin: 0; padding: 14px; border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -36px rgb(var(--ink-rgb) / .55); }
.r1__board img { display: block; width: 100%; height: auto; border-radius: 12px; }
.r1__board figcaption { color: var(--ink-mute); font-size: 10px; margin-top: 10px; }

/* day and night */
.daynight, .names { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink-line); }
.daynight__phones { display: flex; justify-content: center; gap: clamp(14px, 2vw, 32px); }
.daynight__phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.daynight__phones figure:nth-child(2) { margin-top: 40px; }
.daynight__phones figcaption { color: var(--ink-mute); font-size: 10.5px; }
.pal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.pal li { display: flex; align-items: flex-end; aspect-ratio: 1.6; padding: 10px; border-radius: 14px; background: var(--s); box-shadow: inset 0 0 0 1px var(--ink-line); }
.pal b { font: 500 10px var(--f-mono); text-transform: uppercase; color: #fff; }
.pal li:nth-child(2) b, .pal li:nth-child(8) b, .pal li:nth-child(1) b, .pal li:nth-child(3) b { color: var(--ink); }

/* three scripts */
.lang { background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px -40px rgb(var(--ink-rgb) / .5); }
.lang__seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--paper); }
.lang__seg button { padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-mute); transition: background .4s, color .4s; }
.lang__seg button[data-l="si"] { font-family: var(--f-si); }
.lang__seg button[aria-pressed="true"] { background: var(--ink); color: #ffd23f; }
.lang__stage { display: grid; place-items: center; min-height: 220px; margin-top: 14px; padding: 24px; border-radius: 18px; background: linear-gradient(180deg, #8fd0f7 0%, #b9e6fb 55%, #8ccf63 56%, #6fbf4b 100%); text-align: center; }
.lang__t { margin: 0; color: #fff; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.15; text-shadow: 0 5px 0 #3f8a2b; animation: pop-in .6s var(--ease); }
.lang__t[lang="si"] { font-family: "Noto Serif Sinhala", serif; font-weight: 900; }
.lang__t[lang="ta"] { font-family: "Noto Serif Tamil", serif; font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); }
.lang__t[lang="en"] { font-family: "Noto Serif", serif; font-weight: 700; font-style: italic; letter-spacing: -.01em; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }

/* the name */
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, .8fr) 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.funnel__col { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -36px rgb(var(--ink-rgb) / .55); }
.funnel__col > .mono { font-size: 10px; color: var(--olive); }
.funnel__col ul { display: grid; gap: 6px; }
.funnel__col li { font-weight: 600; font-size: 15px; }
.funnel__col li i { display: block; font: 500 9.5px var(--f-mono); text-transform: uppercase; color: var(--ink-mute); font-style: normal; text-decoration: none; }
.funnel__col li.x { color: var(--ink-mute); }
.funnel__col li.x s { text-decoration-color: rgb(var(--ink-rgb) / .45); }
.funnel__col li.win { color: var(--olive); }
.funnel__col--win { align-items: center; text-align: center; background: #ffd23f; }
.funnel__col--win > .mono { color: var(--ink); max-width: 20ch; }
.funnel__arrow { position: relative; height: 1.4px; background: var(--ink); }
.funnel__arrow::after { content: ""; position: absolute; right: -1px; top: -4.5px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }

/* 3D */
.models { display: grid; gap: 14px; }
.models figure { margin: 0; border-radius: 22px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.models img { display: block; width: 100%; height: auto; }
.models figcaption { padding: 12px 16px; color: var(--mute); font-size: 10.5px; }
.shelf { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 90px); }
.shelf li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.shelf img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 34px -22px #000; transition: transform .6s var(--ease); }
.shelf li:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.shelf b { font-size: 12.5px; font-weight: 550; line-height: 1.3; color: rgba(241, 237, 228, .85); }
.shelf i { position: absolute; top: 8px; right: 8px; padding: 4px 7px; border-radius: 99px; background: #ffd23f; color: var(--ink); font-size: 9px; font-style: normal; }

.quiet { margin-top: clamp(56px, 7vw, 100px); padding: clamp(22px, 2.6vw, 36px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(var(--acc-rgb) / .08), transparent 60%); }
.quiet .kicker { margin-bottom: 14px; }
.quiet p:not(.kicker) { color: rgba(241, 237, 228, .8); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; max-width: 70ch; }

.cs-next__card--lk { background: #b5cc4a; color: #141a10; }
.cs-next__card--pk { background: #ffd23f; color: #1b1606; }

@media (max-width: 1100px) {
  .vid, .glass { position: relative; top: 0; }
  .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .funnel { grid-template-columns: 1fr; }
  .funnel__arrow { width: 1.4px; height: 26px; justify-self: center; }
  .funnel__arrow::after { right: auto; top: auto; left: -4.5px; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; }
}
@media (max-width: 900px) {
  .daynight, .names, .r1 { grid-template-columns: 1fr; }
  .turn { grid-template-columns: 1fr; }
  .store--8 .store__row { display: flex; }
}
@media (max-width: 640px) {
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glass__key { grid-template-columns: 1fr; }
  .daynight__phones figure:nth-child(2) { margin-top: 0; }
}
.cs-hero__get .cs-ic { width: 16px; height: 16px; flex: 0 0 auto; }
