/* ==========================================================
   Muhammad Maavia · Sky & Sea
   ========================================================== */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #3A404A;
  --muted: #565C66;   /* ~6.3:1 on --bg; a step darker so long pages read clearly */
  --line: rgba(14, 17, 22, .09);
  --line-2: rgba(14, 17, 22, .16);

  --sky: #04060D;
  --sky-2: #0A1024;
  --sea: #04283A;
  --sea-2: #010B12;
  --glow: #9ADCEB;
  --heart: #FF4D5E;

  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Headings and display numbers use Inter Tight; all other text uses Manrope */
h1, h2, h3, h4, .nav__logo, .stat b, .facts b, .captcha__q, .big-quote, .marquee__track span, .type-spec .aa, .aa { font-family: var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.muted { color: var(--muted); }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Page transition ---------- */
.transition-fade { transition: opacity .3s var(--ease), transform .3s var(--ease); }
html.is-animating .transition-fade { opacity: 0; transform: translateY(12px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, color .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-dark { color: #fff; }
.nav.is-scrolled {
  background: rgba(246, 245, 241, .72); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav.is-scrolled.is-deep { background: rgba(2, 16, 24, .6); color: #fff; border-bottom-color: rgba(255,255,255,.08); }
.nav.is-deep .nav__links a.is-active span { color: var(--sea); }
.nav__logo { font-family: var(--serif) !important; font-style: italic; font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: -.01em; }
.nav__logo span { font-family: inherit; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500;
  opacity: .72; transition: opacity .25s, background .25s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active { opacity: 1; background: currentColor; }
.nav__links a.is-active span { color: var(--bg); }
.nav.is-dark:not(.is-scrolled) .nav__links a.is-active span { color: var(--sky); }
.nav__menu { display: none; }

@media (max-width: 760px) {
  .nav__menu {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid currentColor; opacity: .8;
  }
  .nav__menu i { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
  .nav__menu i::after { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 1.5px; background: currentColor; }
  .nav__menu i::before { content: ''; position: absolute; left: 0; top: -5px; width: 16px; height: 1.5px; background: currentColor; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: var(--sky); color: #fff; opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links a { font-size: 28px; padding: 10px 24px; }
  .nav__links a.is-active { background: #fff; }
  .nav__links a.is-active span { color: var(--sky) !important; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__menu { position: relative; z-index: 2; color: #fff; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 99px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  background: var(--ink); color: var(--bg);
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.btn svg { width: 16px; height: 16px; }
.btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .9; }
.btn--light { background: #fff; color: var(--sky); }

/* ---------- Sky hero ---------- */
.sky {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #111a3a 0%, var(--sky-2) 38%, var(--sky) 75%);
}
.sky::after { /* horizon: sky meets our world */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(154, 220, 235, .06));
  pointer-events: none;
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 96px;   /* clears the fixed music player (48px + 20px offset) */
}
.hero .wrap { position: relative; z-index: 2; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; font-size: 13px; color: rgba(255,255,255,.66); }
.hero__meta .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5CE39A; margin-right: 8px; box-shadow: 0 0 0 4px rgba(92, 227, 154, .16); }
.hero h1 {
  margin: 0; font-weight: 500; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(46px, 8.4vw, 132px);
}
.hero h1 .serif { font-size: 1.08em; color: var(--glow); }
.line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; }   /* room for descenders (p, g, y) while the headline reveals */
.line > span { display: inline-block; }
.hero__foot {
  margin-top: 44px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.hero__left { max-width: 520px; }
.hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 18px; padding: 0; font-size: 14px; color: rgba(255,255,255,.62); }
.hero__proof b { color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin-right: 4px; }
.marquee__label { text-align: center; margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 640px) { .hero__proof { gap: 4px 16px; margin-bottom: 12px; font-size: 13px; } .hero__proof b { font-size: 15px; } }
.hero__foot p { max-width: 520px; margin: 0; color: rgba(255,255,255,.72); font-size: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { display: none;
  position: absolute; right: var(--gutter); top: 50%; z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.hero__scroll::after {
  content: ''; display: block; width: 1px; height: 60px; margin: 14px auto 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero { padding: 170px 0 80px; }
.page-hero h1 { margin: 18px 0 0; font-size: clamp(44px, 7vw, 104px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.page-hero h1 .serif { color: var(--glow); }
.page-hero p { max-width: 640px; margin: 28px 0 0; font-size: 19px; color: rgba(255,255,255,.72); }
.page-hero--light { color: var(--ink); }
.page-hero--light h1 .serif { color: var(--ink-2); }
.page-hero--light p { color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 52px; }
.section__head h2, .h2 {
  margin: 14px 0 0; font-size: clamp(34px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02;
}
.section__head p { max-width: 420px; margin: 0; color: var(--ink-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: gap .3s var(--ease); }
.link-arrow:hover { gap: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(38px, 5vw, 68px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.live { width: 6px; height: 6px; border-radius: 50%; background: #2EBE77; box-shadow: 0 0 0 0 rgba(46,190,119,.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(46,190,119,0); } 100% { box-shadow: 0 0 0 0 rgba(46,190,119,0); } }
.stats--proof a.stat { color: inherit; transition: background .3s; }
.stats--proof a.stat:hover b { color: var(--ink-2); }
.stats--proof .stat span { max-width: 22ch; line-height: 1.45; }
.stats--dark { border-color: rgba(255,255,255,.12); }
.stats--dark .stat + .stat { border-color: rgba(255,255,255,.12); }
.stats--dark .stat span { color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats--dark .stat:nth-child(n+3) { border-color: rgba(255,255,255,.12); }
}

/* ---------- Project cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid--3 { grid-template-columns: 1fr; } }

.card { display: block; }
.card__media {
  position: relative; aspect-ratio: 808 / 632; border-radius: var(--radius); overflow: hidden;
  background: #E9E8E3;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.025); }
.card__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 2px 0; }
.card__body h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.card__body p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.counts { display: flex; gap: 14px; flex-shrink: 0; font-size: 13px; color: var(--muted); padding-top: 3px; }
.counts span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.counts svg { width: 15px; height: 15px; }
.counts .is-liked { color: var(--heart); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip sup { font-size: 12px; margin-left: 3px; opacity: .6; }

/* ---------- Now / Currently ---------- */
.now { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 860px) { .now { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 44px); }
.panel h3 { margin: 16px 0 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.panel p { margin: 0; color: var(--ink-2); }
.panel--dark { background: var(--sky); color: #fff; border-color: transparent; position: relative; overflow: hidden; }
.panel--dark p { color: rgba(255,255,255,.7); }
.panel--dark .eyebrow { color: rgba(255,255,255,.55); }
.panel--dark .stars { opacity: .7; }
.panel--dark > * { position: relative; }
.panel--dark > .stars { position: absolute; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .marquee__track { width: auto; animation: none; } .marquee__row { flex-wrap: wrap; justify-content: center; gap: 14px 48px; padding: 0 var(--gutter); } .marquee__row[aria-hidden] { display: none; } }
.marquee__track span { font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -.03em; color: var(--ink-2); white-space: nowrap; }
.marq-l { display: block; height: var(--h); width: auto; flex: none; filter: brightness(0); opacity: .6; transition: opacity .3s, filter .3s; }   /* one calm ink tone, sized to equal visual area; colour on hover */
.marq-l--thin { opacity: .88; }   /* fine, thin lettering needs more weight to read at the same tone */
.marq-l:hover { filter: none; opacity: 1; }
.marq-t { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); opacity: .85; white-space: nowrap; font-family: var(--sans); }
@media (max-width: 640px) { .marq-l { height: calc(var(--h) * .8); } .marquee__row { gap: 40px; padding-right: 40px; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.tl__logo { display: block; width: auto; height: auto; max-width: 120px; max-height: 30px; margin: 0 0 14px; }
.tl__when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__when b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.tl h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.tl h3 em { font-family: var(--serif); font-weight: 400; color: var(--muted); }
.tl ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.tl li { position: relative; padding-left: 20px; }
.tl li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--muted); }
.tl .tag { display: inline-block; margin-left: 10px; vertical-align: middle; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: #E4F5EC; color: #1B7A4B; }
@media (max-width: 760px) { .tl { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; } }

.compact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.compact li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.compact li span:last-child { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) { .compact { grid-template-columns: 1fr; } .compact li { flex-direction: column; gap: 2px; } }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.certs li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.certs li span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- Like button ---------- */
.like-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 500;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.like-btn svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.like-btn:hover { border-color: var(--heart); color: var(--heart); }
.like-btn:hover svg { transform: scale(1.15); }
.like-btn.is-liked { background: var(--heart); border-color: var(--heart); color: #fff; cursor: default; }
.like-btn.is-liked svg path { fill: currentColor; }

.next { display: block; padding: 80px 0; border-top: 1px solid var(--line); margin-top: 120px; }
.next h2 { margin: 12px 0 0; font-size: clamp(38px, 6vw, 86px); font-weight: 500; letter-spacing: -.045em; line-height: 1; transition: letter-spacing .5s var(--ease); }
.next:hover h2 { letter-spacing: -.035em; }

/* ---------- Modal (like captcha) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(4, 6, 13, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box {
  width: min(400px, 100%); background: var(--surface); border-radius: 22px; padding: 32px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  transform: translateY(16px) scale(.97); transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__box h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.modal__box p { margin: 8px 0 24px; color: var(--ink-2); font-size: 15px; }
.captcha { display: flex; align-items: center; gap: 14px; }
.captcha__q { font-size: 34px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.captcha input {
  width: 100%; min-width: 0; height: 56px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg);
  font: 500 24px var(--body); text-align: center; color: var(--ink); outline: none;
}
.captcha input:focus { border-color: var(--ink); background: #fff; }
.modal__err { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--heart); }
.modal__actions { display: flex; gap: 10px; margin-top: 8px; }
.modal__actions .btn { flex: 1; justify-content: center; }
.modal__actions .btn--ghost { color: var(--ink); border-color: var(--line-2); }

/* ---------- About ---------- */
.chapter { display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; gap: 16px; } }
.chapter__num { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.3; letter-spacing: 0; color: var(--muted); }
.big-quote { margin: 0; font-size: clamp(28px, 3.8vw, 52px); font-weight: 400; letter-spacing: -.035em; line-height: 1.16; }
.big-quote em { font-family: var(--serif); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.realm { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.realm h3 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.035em; }
.realm p { margin: 8px 0 0; color: rgba(255,255,255,.72); max-width: 360px; }
.realm > *:not(canvas):not(.rays) { position: relative; z-index: 2; }
.realm--sky { background: radial-gradient(100% 90% at 80% 0%, #1b2656, var(--sky) 70%); }
.realm--sea { background: linear-gradient(to bottom, #0B4A63, var(--sea) 45%, var(--sea-2)); }

.quote-rot { position: relative; min-height: 300px; }
.quote-rot blockquote { margin: 0; position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.quote-rot blockquote.is-on { opacity: 1; position: relative; }
.quote-rot p { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 56px); line-height: 1.14; letter-spacing: -.02em; }
.quote-rot footer { margin-top: 24px; font-size: 14px; color: var(--muted); }
.quote-dots { display: flex; gap: 8px; margin-top: 28px; }
.quote-dots button { width: 28px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background .3s, width .3s; }
.quote-dots button { position: relative; height: 24px; background: transparent; }
.quote-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.quote-dots button.is-on::before { background: var(--ink); }   /* 24px tall tap target, still drawn as a thin bar */
.quote-dots button.is-on { width: 48px; }

.garage { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .garage { grid-template-columns: 1fr; } }
.specs { margin: 0; display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 500; text-align: right; }

.placeholder {
  display: grid; place-items: center; text-align: center; min-height: 260px; padding: 24px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: 14px;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(14,17,22,.02) 12px 24px);
}
.placeholder b { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.todo { color: var(--muted); font-style: italic; }

.ld { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .ld { grid-template-columns: 1fr; } }
.ld ul { list-style: none; margin: 18px 0 0; padding: 0; }
.ld li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.ld li i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--bg); flex-shrink: 0; }

.moments { list-style: none; margin: 0; padding: 0; position: relative; }
.moments::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.moments li { position: relative; padding: 0 0 44px 44px; }
.moments li::before { content: ''; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.moments time { font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.moments h3 { margin: 4px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.moments p { margin: 6px 0 0; color: var(--ink-2); max-width: 560px; }

/* ---------- Sea footer ---------- */
.sea {
  position: relative; overflow: hidden; color: #fff; margin-top: 40px;
  background: linear-gradient(to bottom, var(--bg) 0%, #0C3446 22%, var(--sea) 50%, var(--sea-2) 100%);
  padding: 200px 0 36px;
}
@media (max-width: 640px) { .sea { padding-bottom: 84px; } }   /* last line clears the floating player */
.rays { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,.08) 22%, transparent 26%),
    linear-gradient(80deg, transparent 50%, rgba(255,255,255,.07) 53%, transparent 57%),
    linear-gradient(95deg, transparent 68%, rgba(255,255,255,.06) 71%, transparent 75%);
  -webkit-mask: linear-gradient(to bottom, transparent 10%, #000 30%, transparent 85%);
  mask: linear-gradient(to bottom, transparent 10%, #000 30%, transparent 85%);
  animation: sway 12s ease-in-out infinite alternate;
}
@keyframes sway { to { transform: translateX(-4%) skewX(-3deg); } }
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles i { position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); animation: rise linear infinite; }
@keyframes rise { to { transform: translateY(-900px) translateX(20px); opacity: 0; } }
.sea .wrap { position: relative; z-index: 2; }
.sea__cta h2 { margin: 16px 0 0; font-size: clamp(44px, 7.6vw, 108px); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.sea__cta h2 .serif { color: var(--glow); }
.sea__mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; font-size: clamp(18px, 2.2vw, 28px); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 8px; transition: gap .3s var(--ease), border-color .3s; word-break: break-all; }
.sea__mail:hover { gap: 22px; border-color: #fff; }
.sea .eyebrow { color: rgba(255,255,255,.6); }
.sea__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: 120px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.62); }
.sea__grid h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.62); }
.sea__grid a { display: block; padding: 4px 0; color: rgba(255,255,255,.85); }
.sea__grid a:hover { color: #fff; }
.sea__grid blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; color: rgba(255,255,255,.8); max-width: 420px; }
.sea__grid blockquote cite { display: block; margin-top: 10px; font: 400 13px var(--body); font-style: normal; color: rgba(255,255,255,.68); }
.sea__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; font-size: 13px; color: rgba(255,255,255,.64); }
@media (max-width: 860px) { .sea__grid { grid-template-columns: 1fr; } .sea { padding-top: 200px; } }

/* ---------- Music player ---------- */
.player {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 6px;
  border-radius: 99px; background: rgba(14, 17, 22, .82); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,.45);
  transition: opacity .5s, transform .5s var(--ease);
}
.player__btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background .25s; }
.player__btn:hover { background: rgba(255,255,255,.12); }
.player__btn svg { width: 16px; height: 16px; }
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.eq i { width: 2.5px; height: 30%; background: currentColor; border-radius: 2px; }
.player.is-playing .eq i { animation: eq 1.1s ease-in-out infinite; }
.player.is-playing .eq i:nth-child(2) { animation-delay: -.4s; }
.player.is-playing .eq i:nth-child(3) { animation-delay: -.8s; }
.player.is-playing .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.player .icon-play { display: block; }
.player .icon-pause { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }
.player__label { font-size: 12px; padding: 0 8px 0 4px; color: rgba(255,255,255,.7); white-space: nowrap; }
.player__vol { display: flex; align-items: center; width: 0; overflow: hidden; transition: width .4s var(--ease); }
.player:hover .player__vol, .player:focus-within .player__vol { width: 104px; }
.player__vol input { width: 88px; margin: 0 8px 0 4px; accent-color: var(--glow); }
@media (max-width: 640px) {
  .player { bottom: 14px; left: 16px; }
  .player__label { display: none; }
  .player__vol { display: none; }   /* phones use hardware volume; keeps the floating player small */
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95; translate: -50% 20px; opacity: 0;
  padding: 12px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px;
  transition: opacity .3s, translate .4s var(--ease); pointer-events: none;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Reveal ---------- */
[data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================
   Case studies
   ========================================================== */
.cs { --accent: var(--ink); --accent-soft: #EFEDE7; }
.cs--iapts { --accent: #EA6953; --accent-soft: #FCEDEA; }
.cs--bling { --accent: #01B37E; --accent-soft: #E6FBF4; }

.cs-hero { padding: 150px 0 56px; }   /* same 56px below the cover as above it (.cs-cover margin-top) */
.cs-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-back { font-size: 14px; color: var(--muted); }
.cs-back:hover { color: var(--ink); }
.cs-hero h1 { margin: 36px 0 0; font-size: clamp(48px, 7.6vw, 112px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.cs-hero__tag { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.1; color: var(--accent); }
.cs-result { display: flex; flex-wrap: wrap; gap: 22px 0; margin: 32px 0 0; }
.cs-result > div { padding: 0 clamp(22px, 3.4vw, 46px); border-left: 1px solid var(--line); }
.cs-result > div:first-child { padding-left: 0; border-left: 0; }
.cs-result b { display: block; font-size: clamp(38px, 5vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--accent-ink, var(--accent)); }
.cs-result span { display: block; margin-top: 10px; max-width: 190px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.cs-result + .cs-hero__intro { margin-top: 30px; }
@media (max-width: 640px) { .cs-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } .cs-result > div { padding: 0 12px; } .cs-result b { font-size: 30px; } .cs-result span { font-size: 12px; } }
.cs-hero__intro { max-width: 620px; margin: 24px 0 0; font-size: 19px; color: var(--ink-2); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 56px 0 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-meta dd { margin: 8px 0 0; font-size: 15px; line-height: 1.45; }
.cs-meta dd small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .cs-meta { grid-template-columns: 1fr 1fr; } }

.cs-engage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cs-engage .counts { font-size: 14px; padding: 0; }
.cs-engage .like-btn { height: 42px; padding: 0 18px; font-size: 14px; }
.cs-engage .like-btn svg { width: 17px; height: 17px; }

.cs-cover { margin-top: 56px; padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 56px) 0; border-radius: 28px 28px 0 0; background: var(--accent-soft); overflow: hidden; }

/* Section layout */
.cs-sec { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.cs-sec:first-of-type { border-top: 0; }
.cs-sec__head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 48px; }
.cs-sec__num { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.cs-sec__num b { color: var(--accent-ink, var(--accent)); font-weight: 500; margin-right: 8px; }
.cs-sec h2 { margin: 0; font-size: clamp(32px, 4.2vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
.cs-sec h2 span { color: var(--muted); }
.cs-lead { max-width: 640px; margin: 18px 0 0; font-size: 18px; color: var(--ink-2); }
.cs-body { margin-left: 252px; }
@media (max-width: 900px) { .cs-sec__head { grid-template-columns: 1fr; gap: 8px; } .cs-sec__num { padding: 0; } .cs-body { margin-left: 0; } }
.cs-note { margin: 28px 0 0; font-size: 13px; color: var(--muted); max-width: 720px; }
.cs-sub { margin: 64px 0 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Points */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.points > div { border-top: 1.5px solid var(--accent); padding-top: 18px; }
.points b { display: block; font-size: 13px; color: var(--accent-ink, var(--accent)); font-weight: 500; }
.points h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.points p { margin: 0; color: var(--ink-2); font-size: 15px; }
.points--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .points, .points--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points, .points--4 { grid-template-columns: 1fr; } }

/* Devices */
.devices { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 28px); }
.devices--left { justify-content: flex-start; }
.phone {
  flex: 0 1 240px; min-width: 0; padding: 7px; border-radius: 40px; background: #16181D;
  box-shadow: 0 30px 60px -30px rgba(14,17,22,.45), inset 0 0 0 1.5px #2C2F36;
}
.phone img { width: 100%; height: auto; border-radius: 33px; background: #fff; }
.phone--sm { flex-basis: 190px; border-radius: 32px; padding: 6px; }
.phone--sm img { border-radius: 27px; }
figure { margin: 0; }
.devices figure { flex: 0 1 240px; min-width: 0; text-align: center; }
.devices figure .phone { width: 100%; }
.devices figcaption, .shot figcaption { margin-top: 12px; font-size: 14.5px; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2); }
.devices figcaption b, .shot figcaption b { color: var(--accent-ink, var(--accent)); font-weight: 500; margin-right: 6px; }
.devices--scroll { overflow-x: auto; justify-content: flex-start; padding: 8px 2px 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.devices--scroll figure { flex: 0 0 min(190px, 42vw); scroll-snap-align: start; }
@media (max-width: 640px) {
  .devices:not(.devices--scroll) { flex-wrap: wrap; }
  .devices:not(.devices--scroll) > .phone, .devices:not(.devices--scroll) > figure { flex-basis: calc(50% - 10px); }
}

.browser { border-radius: 14px; background: #fff; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(14,17,22,.4); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: #F3F2EE; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9D7D0; }
.browser__bar span { flex: 1; max-width: 360px; margin: 0 auto; height: 22px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 22px; text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; }

.hub { padding: 14px; border-radius: 30px; background: linear-gradient(145deg, #F4F3F0, #DEDCD6); box-shadow: 0 30px 60px -34px rgba(14,17,22,.45), inset 0 1px 0 #fff; }
.hub img { border-radius: 16px; width: 100%; }
.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 32px); }
@media (max-width: 640px) { .hubs { grid-template-columns: 1fr 1fr; } }

.mails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.mail { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(14,17,22,.4); }
@media (max-width: 860px) { .mails { grid-template-columns: 1fr 1fr; } }

.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .shots2 { grid-template-columns: 1fr; } }

/* Evolution (then → now) */
.evo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.evo figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }   /* same as every other image caption */
.evo figcaption b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); font-weight: 500; margin-bottom: 4px; }
.evo .browser img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.old-ui { aspect-ratio: 3 / 2; padding: 12px; font: 11px/1.4 Arial, sans-serif; color: #333; background: #fff; overflow: hidden; }
.old-ui__top { display: flex; justify-content: space-between; border-bottom: 1px solid #ccc; padding-bottom: 6px; font-weight: bold; }
.old-ui__menu { display: flex; flex-wrap: wrap; gap: 3px 9px; margin: 6px 0; color: #0645AD; text-decoration: underline; font-size: 10px; }
.old-ui table { width: 60%; border-collapse: collapse; font-size: 10px; float: left; }
.old-ui td, .old-ui th { border: 1px solid #ccc; padding: 2px 5px; text-align: left; }
.old-ui ul { float: right; width: 34%; margin: 0; padding-left: 14px; color: #0645AD; font-size: 10px; }
@media (max-width: 860px) { .evo { grid-template-columns: 1fr; } }

/* Stats */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts > div { min-width: 0; }
.facts > div { padding: 28px 24px 8px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(36px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.facts p { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.facts small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .facts, .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Cards: personas, goals, assumptions */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.box { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.box h3 { margin: 0 0 6px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.box p { margin: 0; font-size: 15px; color: var(--ink-2); }
.box .k { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); font-weight: 500; }
.box .rule { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.box .rule span { color: var(--muted); margin-right: 6px; }
.box--soft { background: var(--accent-soft); border-color: transparent; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent-ink, var(--accent)); font-weight: 600; }
.persona blockquote { margin: 14px 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; }
.persona dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }
.persona dt { color: var(--muted); }
.persona dd { margin: 0; }
.persona .moment { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.persona .moment b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); font-weight: 500; margin-bottom: 4px; }

/* Steps (journey, timeline) */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; counter-reset: s; }
.steps > div { position: relative; padding: 22px 18px 0 0; border-top: 1.5px solid var(--line-2); }
.steps > div::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.steps h3 { margin: 6px 0 4px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-2); }
.steps em { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--accent-ink, var(--accent)); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.flowline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.flowline span { padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.flowline span + span::before { content: '→'; margin-right: 8px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { padding: 7px 13px; border-radius: 99px; background: var(--accent-soft); color: var(--ink-2); font-size: 13px; }

/* Bars */
.bars { display: grid; gap: 14px; max-width: 760px; }
.bar { display: grid; grid-template-columns: 220px 1fr 44px; align-items: center; gap: 16px; font-size: 14px; }
.bar i { display: block; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i::after { content: ''; display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.bar.is-grey i::after { background: #B9BCC2; }
.bar b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr 44px; } .bar i { grid-column: 1 / -1; grid-row: 2; } }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.cmp th, .cmp td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { font-weight: 500; font-size: 13px; }
.cmp thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .us { background: var(--accent-soft); }
.y, .pp, .n { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.y { background: var(--accent); }
.pp { background: linear-gradient(90deg, var(--accent) 50%, var(--line-2) 50%); }
.n { border: 1.5px solid var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* Design system */
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.swatches > div { min-width: 0; }
.swatches > div > i { display: block; aspect-ratio: 1.3; border-radius: 14px; border: 1px solid var(--line); }
.swatches b { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; }
.swatches small { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .swatches { gap: 10px; } .swatch-tile { padding: 10px; font-size: 11px; } .swatches b { font-size: 12px; } }
.type-spec { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.type-spec .aa { font-size: 120px; line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.type-spec ul { list-style: none; margin: 0; padding: 0; }
.type-spec li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.type-spec li span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) { .type-spec { grid-template-columns: 1fr; } .type-spec .aa { font-size: 80px; } }

/* Lessons / measure */
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pairs { grid-template-columns: 1fr; } }
.challenge { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.challenge:first-child { border-top: 1px solid var(--line); }
.challenge--2 { grid-template-columns: 60px minmax(0, 720px); }
.challenge > b { font-size: 14px; color: var(--accent-ink, var(--accent)); font-weight: 500; }
.challenge h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.challenge p { margin: 0; color: var(--ink-2); font-size: 15px; }
.challenge .sol { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .challenge { grid-template-columns: 1fr; gap: 10px; } }

/* End block */
.cs-end { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 24px; }
@media (max-width: 860px) { .cs-end { grid-template-columns: 1fr; } }
.cs-end .panel h3 { margin-top: 10px; }
.cs-end .like-btn { margin-top: 24px; max-width: 320px; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store-links .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.store-links .btn--ghost { color: var(--ink); border-color: var(--line-2); }
.cs-disclaimer { margin-top: 28px; font-size: 13px; color: var(--muted); }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .cards--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cards--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .cs-cover { border-radius: 20px 20px 0 0; padding-top: 24px; }
  .cs-cover .devices { flex-wrap: wrap; gap: 12px; }
  .cs-cover .devices > div:not(.phone) { flex: 1 1 100% !important; order: -1; }
  .cs-cover .devices > .phone { flex: 0 1 31% !important; border-radius: 24px; padding: 4px; }
  .cs-cover .devices > .phone img { border-radius: 20px; }
}

/* Testimonial */
.testimonial { max-width: 980px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.testimonial figcaption { margin-top: 24px; font-size: 14px; color: var(--muted); }
.testimonial figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.cs-body .testimonial { text-align: left; margin: 0; padding: 36px; border-radius: var(--radius); background: var(--accent-soft); }
.cs-body .testimonial blockquote { font-size: clamp(22px, 2.4vw, 30px); }
.testimonial--left { margin: 0; max-width: 900px; text-align: left; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.testimonial--left blockquote { font-size: clamp(22px, 2.4vw, 32px); }
.testimonial .link-arrow { color: var(--ink); font-size: 14px; }

/* ==========================================================
   iApartments: device mockups ported from the Behance case study
   (html/styles.css in the case study folder)
   ========================================================== */
.cs--iapts .phone { padding: 0; background: none; box-shadow: none; border-radius: 0; container-type: inline-size; }
.cs--iapts .cs-cover .devices > .phone { padding: 0 !important; }
.iph { position: relative; width: 100%; font-size: calc(100cqw / 393); padding: 10em; border-radius: 66em;
  background: linear-gradient(140deg,#F4F2EF 0%,#CFCBC5 14%,#9C9892 38%,#D9D5CF 52%,#8F8B85 72%,#E6E3DE 100%);
  box-shadow: inset 0 0 0 1.2em rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.14), 0 30px 44px -26px rgba(60,40,30,.40), 0 10px 18px -12px rgba(29,34,48,.22); }
.iph > img { width: 100%; border-radius: 56em !important; box-shadow: 0 0 0 6.6em #0A0A0B; background: #fff; }
.iph::before { content: ""; position: absolute; left: 50%; top: 22em; width: 116em; height: 34em; margin-left: -58em; background: #0A0A0B; border-radius: 40em; z-index: 2; }
.iph::after { content: ""; position: absolute; right: -3em; top: 230em; width: 4em; height: 100em; background: linear-gradient(180deg,#C8C4BE,#8F8B85); border-radius: 0 4em 4em 0; }
.iph .btn-l { position: absolute; left: -3em; top: 190em; width: 4em; height: 62em; background: linear-gradient(180deg,#C8C4BE,#8F8B85); border-radius: 4em 0 0 4em; box-shadow: 0 80em 0 #A9A5A0; }

.lap { container-type: inline-size; width: 100%; padding: 0 6.5%; }
.laptop { position: relative; width: 100%; font-size: calc(100cqw / 1000); }
.laptop .lid { position: relative; padding: 18em 18em 22em; border-radius: 34em 34em 6em 6em; background: linear-gradient(180deg,#E8E6E3 0%,#C9C6C1 100%);
  box-shadow: inset 0 0 0 1.2em #F4F2EF, inset 0 0 0 5em #0A0A0B, 0 30px 50px -30px rgba(29,34,48,.35); }
.laptop .lid::before { content: ""; position: absolute; left: 50%; top: 5.5em; width: 60em; height: 9em; margin-left: -30em; background: #0B0B0C; border-radius: 0 0 6em 6em; z-index: 2; }
.laptop .lid::after { content: ""; position: absolute; left: 50%; top: 7.5em; width: 4.5em; height: 4.5em; margin-left: -2.25em; border-radius: 50%; background: radial-gradient(circle at 40% 35%,#3C4A66,#101218 70%); z-index: 3; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 10em 10em 2em 2em; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.laptop .tb { flex: none; height: 30.5em; display: flex; align-items: center; gap: 6em; padding: 0 16em; background: #F4F3F1; border-bottom: 1px solid #E4E1DC; }
.laptop .tb .tlight { flex: none; width: 10em; height: 10em; border-radius: 50%; background: #FF5F57; }
.laptop .tb .tlight:nth-child(2) { background: #FEBC2E; } .laptop .tb .tlight:nth-child(3) { background: #28C840; }
.laptop .tb .addr { margin: 0 auto; height: 20em; min-width: 320em; padding: 0 14em; border-radius: 6em; background: #fff; border: 1px solid #E4E1DC; display: flex; align-items: center; justify-content: center; }
.laptop .tb .addr span { font-size: max(8px, 12.5em); color: #5F6470; font-weight: 600; white-space: nowrap; }
.laptop .tb .sp { flex: none; width: 42em; }
.laptop .screen > img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.laptop .base { position: relative; height: 24em; margin: 0 -60em; border-radius: 1em 1em 22em 22em / 1em 1em 14em 14em;
  background: linear-gradient(180deg,#F2F0ED 0%,#D6D2CC 30%,#B8B4AE 75%,#9F9B95 100%);
  box-shadow: 0 40px 60px -30px rgba(29,34,48,.45), 0 12px 24px -14px rgba(29,34,48,.35); }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 150em; height: 8em; margin-left: -75em; border-radius: 0 0 10em 10em; background: linear-gradient(180deg,#A9A5A0,#D6D2CC); }

.g2hub { position: relative; width: 100%; aspect-ratio: 635 / 398; filter: drop-shadow(0 26px 30px rgba(60,40,30,.22)) drop-shadow(0 6px 10px rgba(29,34,48,.12)); }
.g2hub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.g2hub .hscr { position: absolute; left: 27%; top: 13%; width: 41%; aspect-ratio: 1; border-radius: 4%; overflow: hidden; background: #000; }
.g2hub .hscr img { width: 100%; height: 100%; }
.cs--iapts .hubs { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 640px) { .cs--iapts .hubs { grid-template-columns: 1fr 1fr; gap: 28px 14px; } }

.cs--iapts .mail { border-radius: 8px; border: 0; box-shadow: 0 1px 2px rgba(29,34,48,.06), 0 30px 50px -28px rgba(29,34,48,.35); }
.mail .mbar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #F4F3F1; border-bottom: 1px solid #E7E4DF; }
.mail .mbar span { width: 7px; height: 7px; border-radius: 999px; background: #D9D5CF; }
.mail .mview { aspect-ratio: 260 / 600; overflow: hidden; position: relative; }
.mail .mview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(0deg,#fff,rgba(255,255,255,0)); }

.cs--iapts .browser { border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px rgba(29,34,48,.07), 0 1px 2px rgba(29,34,48,.06), 0 22px 40px -24px rgba(29,34,48,.34); }
.lofi-wrap { container-type: inline-size; }

.dev-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2.4vw, 36px); }
.dev-row > figure { min-width: 0; text-align: center; }
.dev-row figcaption { margin-top: 18px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .dev-row { flex-wrap: wrap; }
  .dev-row > figure.is-wide { flex: 1 1 100% !important; order: -1; }
  .dev-row > figure:not(.is-wide) { flex: 0 1 29% !important; }
}

.ds-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 860px) { .ds-cards { grid-template-columns: 1fr; } }
.swatch-tile { display: flex; align-items: flex-end; height: 110px; padding: 14px 16px; border-radius: 16px; color: #fff; font-weight: 700; font-size: 14px; }
.cs--iapts .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aa-coral { font-family: var(--sans); font-size: 88px; line-height: 1; font-weight: 600; color: #EA6953; }
.cs--iapts .lofi2{font-size:calc(100cqw / 380 * 7) !important;aspect-ratio:3/2;width:100%;border:1px solid #C9CDD3;border-radius:1.143em;background:#F4F5F7;overflow:hidden;display:flex;flex-direction:column;line-height:1.286em;color:#444;font-weight:500}
.cs--iapts .lofi2 .l2head{display:flex;align-items:center;gap:1.143em;padding:0.857em 1.429em;background:#fff;border-bottom:1px solid #D5D8DD}
.cs--iapts .lofi2 .l2logo{height:1.571em;width:auto}
.cs--iapts .lofi2 .l2app{font-size:1.143em;font-weight:600;color:#595959;padding-left:1.143em;border-left:1px solid #D5D8DD}
.cs--iapts .lofi2 .l2user{margin-left:auto;color:#1A5FB4}
.cs--iapts .lofi2 .l2menu{display:flex;background:#3D4450}
.cs--iapts .lofi2 .l2menu span{padding:0.571em 1.000em;color:#E6E8EB;border-right:1px solid #515967}
.cs--iapts .lofi2 .l2menu span:first-child{background:#C8452F;color:#fff;font-weight:700}
.cs--iapts .lofi2 .l2body{flex:1;padding:1.000em 1.429em;display:flex;flex-direction:column;gap:0.857em}
.cs--iapts .lofi2 .l2crumb{color:#666}
.cs--iapts .lofi2 .l2cols{display:grid;grid-template-columns:1.25fr 1fr;gap:1.143em;flex:1;min-height:0}
.cs--iapts .lofi2 .l2box{border:1px solid #C9CDD3;background:#fff;display:flex;flex-direction:column;min-height:0}
.cs--iapts .lofi2 .l2bt{background:linear-gradient(180deg,#F7F8FA,#E4E7EB);border-bottom:1px solid #C9CDD3;padding:0.429em 0.857em;font-weight:700;color:#333}
.cs--iapts .lofi2 table{border-collapse:collapse;width:100%}
.cs--iapts .lofi2 th,.lofi2 td{line-height:1.286em;padding:0.429em 0.857em;border-bottom:1px solid #E3E5E8;text-align:left;color:#444;letter-spacing:0;text-transform:none;font-weight:500}
.cs--iapts .lofi2 th{font-weight:700;color:#333;background:#F1F2F4}
.cs--iapts .lofi2 tr:nth-child(odd) td{background:#FAFAFB}
.cs--iapts .lofi2 td:first-child,.lofi2 th:first-child{padding-left:0.857em}
.cs--iapts .lofi2 .l2n{display:inline-block;min-width:1.714em;text-align:center;padding:0 0.429em;border-radius:142.714em;font-weight:700;color:#fff;background:#D9534F}
.cs--iapts .lofi2 .l2n.z{background:#B5BAC1}
.cs--iapts .lofi2 ul{list-style:none;padding:0.571em 0.857em;display:flex;flex-direction:column;gap:0.429em}
.cs--iapts .lofi2 li{line-height:1.286em}
.cs--iapts .lofi2 u{text-decoration:underline;color:#1A5FB4}
.cs--iapts .lofi2 .l2foot{border-top:1px solid #D5D8DD;padding-top:0.571em;color:#666}
.cs--iapts .cs-cover { padding-bottom: clamp(24px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(60% 55% at 50% 70%, rgba(234,105,83,.14), rgba(234,105,83,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #FFF6F1 100%); border: 1px solid var(--line); }
.cs--iapts .lofi2 .l2logo { flex: none; width: auto; max-width: none; }
.swatches--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .swatches--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swatch-tile { height: 84px; } }




/* ==========================================================
   Blingram: same case study pattern as iApartments,
   with Blingram's own graphite phone and green accent
   ========================================================== */
.cs--bling .phone { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.cs--bling .cs-cover .devices > .phone, .cs--bling .cs-cover .dev-row .phone { padding: 0 !important; }
.bph { container-type: inline-size; width: 100%; }
.bph-f { position: relative; width: 100%; padding: 3.5cqw; border-radius: 17cqw; background: linear-gradient(145deg,#2B302F,#0B0D0C 40%,#1C201F);
  box-shadow: 0 0 0 1.5px #5E6563 inset, 0 0 0 .8cqw #9AA3A0, 0 40px 80px -30px rgba(6,59,44,.45), 0 18px 36px -18px rgba(13,21,19,.35); }
.bph-f .scr { position: relative; width: 100%; aspect-ratio: 393 / 852; border-radius: 13.5cqw; overflow: hidden; background: #fff; }
.bph-f .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0 !important; }
.bph-f .isl { position: absolute; z-index: 3; top: 5.8cqw; left: 50%; transform: translateX(-50%); width: 32%; height: 8.5cqw; border-radius: 99px; background: #050606; }
.bph-f .side { position: absolute; right: -1.2cqw; top: 24%; width: 1.2cqw; height: 12%; border-radius: 0 3px 3px 0; background: #3A403E; }
.cs--bling .cs-cover { padding-bottom: clamp(24px, 4vw, 48px); border-radius: 28px; border: 1px solid #DDF3EB;
  background: radial-gradient(60% 55% at 50% 60%, rgba(1,214,150,.22), rgba(1,214,150,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #F0FDF9 100%); }
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.mk svg, .cs svg.i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk.y { background: #01D696; color: #fff; } .mk.p { background: #FFF1C9; color: #D9A400; } .mk.n { background: #EFEFEF; color: #9A9A9A; }
.cs--bling .legend .y { background: #01D696; }
.cs--bling .cmp thead th.us { background: #01D696; color: #000; } .cs--bling .cmp thead th.us small { color: rgba(0,0,0,.6); }
.avatar.o { background: #FFF1DE; color: #E8900C; }
.persona .mot { display: grid; gap: 9px; margin-top: 8px; }
.persona .mot div { font-size: 13px; font-weight: 600; }
.persona .mot div span { float: right; font-weight: 500; color: var(--muted); }
.persona .mot i { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 5px; }
.persona .mot s { height: 4px; border-radius: 4px; background: var(--line-2); }
.persona .mot s.on { background: var(--accent); }
.persona > p { margin-top: 8px; }
.swatches .swatch-tile { font-size: 13px; }
.cards > * { min-width: 0; } .persona dd { overflow-wrap: anywhere; }
.persona .certs li span:last-child { white-space: normal; }

/* Recommendations */
.recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rec { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rec blockquote { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.rec figcaption { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.rec figcaption b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.rec figcaption small { display: block; margin-top: 2px; font-size: 12.5px; }
.rec__av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; }
.rec--lead { grid-column: 1 / -1; }
.rec--lead blockquote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; color: var(--ink); }
.cs .rec__av { background: var(--accent-ink, var(--accent)); color: #fff; }
@media (max-width: 760px) { .recs { grid-template-columns: 1fr; } }
.recs > .rec--lead ~ .rec:last-child:nth-child(even) { grid-column: 1 / -1; }
.recs > .rec:only-child { grid-column: 1 / -1; }

/* Full-page preview inside a browser frame */
.scrollshot { max-height: min(78vh, 900px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.scrollshot img { width: 100%; height: auto; }
.cs .avatar.o { background: #FFF1DE; }

/* Case study end panels: consistent spacing */
.cs-end .panel { display: flex; flex-direction: column; }
.cs-end .panel h3 { margin: 14px 0 10px; }
.cs-end .store-links { margin-top: 28px; }
.cs-end .panel .cs-disclaimer { margin-top: auto; padding-top: 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cs-end .counts { margin-top: 24px !important; }
.cs-end .like-btn { margin-top: 20px; }

/* ==========================================================
   Full-bleed project covers (Work and Home cards)
   ========================================================== */
.card__media--cover { background: #EEF7F2; }
.pc { container-type: inline-size; position: absolute; inset: 0; overflow: hidden; }
.pc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .pc__photo { transform: scale(1.025); }
.pc__scene { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.card:hover .pc__scene { transform: scale(1.02); }
.card__media--cover .bph-f .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: none !important; }
.pc__phone { position: absolute; top: 50%; translate: -50% -50%; }
.pc__phone .bph-f { box-shadow: 0 0 0 1.5px #5E6563 inset, 0 0 0 .8cqw #9AA3A0, 0 5cqw 7cqw -3cqw rgba(6,59,44,.42); }
.pc__phone--0 { left: 28%; width: 25%; rotate: -8deg; top: 54%; }
.pc__phone--1 { left: 50%; width: 30%; z-index: 2; top: 50%; }
.pc__phone--2 { left: 72%; width: 25%; rotate: 8deg; top: 54%; }
.pc__chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 1.4cqw; padding: 1.1cqw 2.2cqw 1.1cqw 1.1cqw; border-radius: 99px; background: rgba(255,255,255,.96); box-shadow: 0 2.2cqw 4.5cqw -2cqw rgba(6,59,44,.40), 0 0 0 1px rgba(13,21,19,.04); white-space: nowrap; line-height: 1.15; }
.pc__chip b { display: block; font-size: max(8px, 1.9cqw); font-weight: 700; color: #12141A; letter-spacing: -.01em; }
.pc__chip small { display: block; margin-top: .2cqw; font-size: max(7px, 1.4cqw); font-weight: 500; color: #8A8F99; }
.pc__ci { display: grid; place-items: center; flex: none; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: #E3F8EF; color: #00915F; }
.pc__ci svg, .pc__float svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc__ci--coin { background: #FFF3D6; color: #D98A00; }
.pc__ci--live { background: #F13F3F; color: #fff; }
.pc__chip--0 { left: 4.5%; top: 9%; rotate: -3deg; }
.pc__chip--1 { right: 4.5%; bottom: 10%; rotate: 3deg; }
/* floating "funky" badges */
.pc__float { position: absolute; z-index: 3; display: grid; place-items: center; width: 5.2cqw; height: 5.2cqw; border-radius: 1.6cqw; color: #fff; box-shadow: 0 1.6cqw 3cqw -1.2cqw rgba(6,59,44,.45); animation: pcfloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.pc__float--music { left: 13%; top: 64%; background: #8B5CF6; rotate: -12deg; }
.pc__float--heart { left: 39%; top: 6%; background: #FF4D6D; rotate: 10deg; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; }
.pc__float--heart svg { fill: currentColor; stroke: none; }
.pc__float--play { right: 13%; top: 30%; background: #111; color: #01D696; rotate: 8deg; }
.pc__float--play svg { fill: currentColor; stroke: none; width: 46%; }
.pc__float--gift { right: 26%; bottom: 4%; background: #F5B400; rotate: -10deg; }
.pc__float--sparkle { left: 6%; bottom: 8%; background: transparent; color: #01B67F; box-shadow: none; width: 4.4cqw; height: 4.4cqw; }
.pc__float--sparkle svg { fill: currentColor; stroke: none; width: 100%; height: 100%; }
.pc__float--video { right: 2.5%; top: 57%; background: #01D696; color: #00341F; rotate: -8deg; width: 4.6cqw; height: 4.6cqw; }
.pc__float--chat { left: 61%; top: 3%; background: #fff; color: #00915F; rotate: -6deg; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; }
@keyframes pcfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.9cqw; } }
@media (prefers-reduced-motion: reduce) { .pc__float { animation: none; } }
@container (max-width: 300px) { .pc__chip, .pc__float { display: none; } }

/* iApartments cover: titanium iPhone and coral palette */
.pc__dev { container-type: inline-size; }
.pc__dev .iph > img { border-radius: 56em !important; transform: none !important; }
.pc--iapts .pc__phone .iph { box-shadow: inset 0 0 0 1.2em rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.14), 0 5cqw 7cqw -3cqw rgba(120,50,30,.38); }
.pc--iapts .pc__ci { background: #FFE9E3; color: #E25A43; }
.pc--iapts .pc__ci--box { background: #FFF1DB; color: #D98A00; }
.pc--iapts .pc__float--thermo { left: 13%; top: 64%; background: #E25A43; rotate: -12deg; }
.pc--iapts .pc__float--drop { left: 39%; top: 6%; background: #009BDF; rotate: 10deg; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; }
.pc--iapts .pc__float--drop svg { fill: currentColor; stroke: none; }
.pc--iapts .pc__float--key { right: 13%; top: 30%; background: #234385; rotate: 8deg; }
.pc--iapts .pc__float--bell { right: 26%; bottom: 4%; background: #FF7A1A; rotate: -10deg; }
.pc--iapts .pc__float--sparkle { left: 6%; bottom: 8%; color: #E25A43; }
.pc--iapts .pc__float--wifi { right: 2.5%; top: 57%; background: #fff; color: #E25A43; rotate: -8deg; width: 4.6cqw; height: 4.6cqw; }
.pc--iapts .pc__float--chat { left: 61%; top: 3%; background: #fff; color: #234385; }
/* iApartments cover: portal, app and hub together, static and upright */
.pc--suite .pc__scene { transition: none; }
.card:hover .pc--suite .pc__scene { transform: none; }
.pcs__laptop { position: absolute; left: 50%; bottom: 13%; width: 70%; translate: -50% 0; }
.pcs__phone { position: absolute; left: 6%; bottom: 9%; width: 17%; z-index: 2; }
.pcs__hub { position: absolute; right: 5%; bottom: 10%; width: 27%; z-index: 2; }
.pc--suite .laptop .screen > img { object-fit: cover; object-position: top; transform: none !important; }
.pc--suite .g2hub .hscr img, .pc--suite .iph > img { transform: none !important; }
.pc--suite .iph > img { border-radius: 56em !important; }
.pc--suite .iph { box-shadow: inset 0 0 0 1.2em rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.14), 0 4cqw 6cqw -3cqw rgba(120,50,30,.35); }
.pc--suite .lap { padding: 0; }
/* all covers are static */
.pc__float { animation: none !important; }
.pcs__laptop { width: 76%; bottom: 12%; }
.pcs__phone { width: 19%; left: 5%; bottom: 8%; }
.pcs__hub { width: 30%; right: 4%; bottom: 9%; }
/* covers do not move on hover either */
.card:hover .pc__scene, .card:hover .pc__photo { transform: none; }
/* laptop address pill: text scales with the device, never larger than the pill */
.laptop .tb .addr { overflow: hidden; }
.laptop .tb .addr span { font-size: 11em; line-height: 1; font-weight: 600; color: #5F6470; }
/* Window-stack covers (Pairboard, Xgrid): static browser windows on a dark brand scene */
.pcw { position: absolute; border-radius: 1.6cqw; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 4cqw 8cqw -2.5cqw rgba(0,0,0,.6); }
.pcw__bar { display: flex; align-items: center; gap: .9cqw; height: 3.4cqw; padding: 0 1.6cqw; background: #F3F2EE; }
.pcw__bar i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #FF5F57; flex: none; }
.pcw__bar i:nth-child(2) { background: #FEBC2E; } .pcw__bar i:nth-child(3) { background: #28C840; }
.pcw__bar span { margin: 0 auto; padding: .25cqw 2.2cqw; border-radius: .6cqw; background: #fff; font-size: 1.05cqw; font-weight: 600; color: #5F6470; line-height: 1.3; white-space: nowrap; }
.pcw--dark { background: #0D0F12; }
.pcw--dark .pcw__bar { background: #1B1E23; }
.pcw--dark .pcw__bar span { background: #2A2E35; color: #A7ADB8; }
.card__media--cover .pcw img { width: 100%; height: auto; transform: none !important; display: block; }
/* Single laptop cover (Xgrid) */
.pcl { position: absolute; left: 50%; top: 52%; width: 80%; translate: -50% -50%; }
.pc--laptop .lap { padding: 0 6%; }
.pc--laptop .laptop .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: none !important; }
.pc--laptop .laptop .lid { box-shadow: inset 0 0 0 1.2em #F4F2EF, inset 0 0 0 5em #0A0A0B, 0 4cqw 7cqw -3cqw rgba(var(--sh, 9,60,40),.4); }
.pc--laptop .laptop .base { box-shadow: 0 3cqw 5cqw -2.5cqw rgba(var(--sh, 9,60,40),.4); }
/* Edge-to-edge screen cover (Xgrid): the whole hero, uncropped, on its own background */
.pc--screen .pc__scene img { position: absolute; left: 0; top: 50%; width: 100%; height: auto; translate: 0 -50%; transform: none !important; }
/* Ticketwise cover: Android screens in a graphite Pixel-style frame, punch-hole camera on the status-bar line, pink shadow */
.pc--tw .bph-f { padding: 2.2cqw; border-radius: 9cqw;
  background: linear-gradient(150deg, #3A3C41 0%, #1E1F23 30%, #121316 60%, #2A2C31 100%);
  box-shadow: inset 0 0 0 .35cqw #4A4D54, inset 0 0 0 .65cqw #16171A, 0 0 0 1px rgba(0,0,0,.25), 0 5cqw 7cqw -3cqw rgba(120,20,70,.40); }
.pc--tw .bph-f .scr { aspect-ratio: 411 / 823; border-radius: 6.8cqw; box-shadow: 0 0 0 1cqw #050506; }
.pc--tw .bph-f .isl { display: block; top: 1.45cqw; width: 2.9cqw; height: 2.9cqw; border-radius: 50%; background: #050506; box-shadow: inset 0 0 0 .7cqw #15161A; }
.pc--tw .bph-f .side { right: -.65cqw; top: 38cqw; width: .85cqw; height: 15cqw; background: linear-gradient(180deg, #4A4D54, #2A2C31); border-radius: 0 .7cqw .7cqw 0; }
.pc--tw .bph-f::before { content: ""; position: absolute; right: -.65cqw; top: 58cqw; width: .85cqw; height: 27cqw; background: linear-gradient(180deg, #4A4D54, #2A2C31); border-radius: 0 .7cqw .7cqw 0; }
/* Brand cover (Alkira): wordmark, title and a large mark cropped by the edge */
.card__media .pc--brand img { height: auto; object-fit: initial; transform: none !important; transition: none; }
.pcb__wordmark { position: absolute; left: 7%; top: 9%; width: 20% !important; }
.pcb__title { position: absolute; left: 7%; bottom: 9%; width: 34% !important; }
.pcb__mark { position: absolute; right: -5%; bottom: -18%; width: 50% !important; }

/* ==========================================================
   ARC: iApartments case study pattern, ARC gold accent
   ========================================================== */
.cs--arc { --accent: #A87628; --accent-soft: #FFF5E0; }
.cs--arc .cs-hero__tag { background: linear-gradient(90deg, #AA7A2A, #E29F26); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs--arc .aa-coral { color: #B07508; }
.cs--arc .cs-cover { padding-bottom: clamp(24px, 4vw, 48px); border-radius: 28px; border: 1px solid #F3E6C8;
  background: radial-gradient(60% 55% at 50% 70%, rgba(255,178,36,.20), rgba(255,178,36,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #FFF8EA 100%); }
.cs--arc .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs--arc .ds-cards .tags span { background: #FFF5E0; }
/* Ticketwise cover: two phones fanned, the real ticket card in front (notched at its dashed line) */
.pc--tw .pc__phone--0 { left: 25%; width: 27%; rotate: -8deg; top: 53%; }
.pc--tw .pc__phone--1 { left: 47%; width: 30%; top: 50%; z-index: 2; rotate: 0deg; }
.pc__ticket { position: absolute; z-index: 3; left: 64%; top: 21%; width: 28%; rotate: 7deg; filter: drop-shadow(0 2.6cqw 3cqw rgba(120,20,70,.32)); }
.pc__ticket i { display: block; border-radius: 2cqw; overflow: hidden;
  -webkit-mask: radial-gradient(circle 1.9cqw at 0 72.4%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 1.9cqw at 100% 72.4%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 1.9cqw at 0 72.4%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 1.9cqw at 100% 72.4%, #0000 98%, #000) right / 51% 100% no-repeat; }
.card__media .pc__ticket img { width: 100%; height: auto; display: block; object-fit: initial; transform: none !important; transition: none; }
/* Email mockups: every frame the same height (top of each email, faded at the bottom) */
.mail .mview { min-height: 0; }
.mail .mview { aspect-ratio: 760 / 1432; background: #fff; }
.mail .mview img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }

/* ==========================================================
   Case study colors: each project uses its own design's brand color.
   Backgrounds are light tints of that same color.
   ========================================================== */
.cs--pb { --accent: #00A36B; --accent-soft: #E6FDF4; }
.cs--pb .cs-cover { border-radius: 28px; border: 1px solid rgba(0,245,160,.16); background: radial-gradient(60% 55% at 50% 70%, rgba(0,245,160,.16), rgba(0,245,160,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #E6FDF4 100%); }
.cs--pb .cs-hero__tag { background: linear-gradient(90deg,#00C987,#00B3CC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs--xg { --accent: #3F7F57; --accent-soft: #EEF7F1; }
.cs--xg .cs-cover { border-radius: 28px; border: 1px solid rgba(117,183,142,.16); background: radial-gradient(60% 55% at 50% 70%, rgba(117,183,142,.16), rgba(117,183,142,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #EEF7F1 100%); }
.cs--he { --accent: #5A48A6; --accent-soft: #F3F1ED; }
.cs--he .cs-cover { border-radius: 28px; border: 1px solid rgba(90,72,166,.16); background: radial-gradient(60% 55% at 50% 70%, rgba(90,72,166,.16), rgba(90,72,166,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #F3F1ED 100%); }
.cs--alk { --accent: #0E75F2; --accent-soft: #EAF3FF; }
.cs--alk .cs-cover { border-radius: 28px; border: 1px solid rgba(14,117,242,.16); background: radial-gradient(60% 55% at 50% 70%, rgba(14,117,242,.16), rgba(14,117,242,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #EAF3FF 100%); }
.cs--zst { --accent: #1E92D8; --accent-soft: #EAF5FC; }
.cs--zst .cs-cover { border-radius: 28px; border: 1px solid rgba(30,146,216,.16); background: radial-gradient(60% 55% at 50% 70%, rgba(30,146,216,.16), rgba(30,146,216,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #EAF5FC 100%); }
.cs--tw { --accent: #B7357C; --accent-soft: #FBEFF5; }
.cs--tw .cs-cover { border-radius: 28px; border: 1px solid rgba(183,53,124,.16); background: radial-gradient(60% 55% at 50% 70%, rgba(183,53,124,.16), rgba(183,53,124,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #FBEFF5 100%); }

/* ==========================================================
   Hysab Kytab: teal theme, iPhone frames as on iApartments
   ========================================================== */
.cs--hk { --accent: #397A85; --accent-soft: #EDF6F8; }
.cs--hk .cs-hero__tag { background: linear-gradient(90deg, #397A85, #4799A6 60%, #75BAC6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs--hk .cs-cover { padding-bottom: clamp(24px, 4vw, 48px); border-radius: 28px; border: 1px solid #DCEDF0;
  background: radial-gradient(60% 55% at 50% 70%, rgba(71,153,166,.18), rgba(71,153,166,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #EDF6F8 100%); }
.cs--hk .phone { padding: 0; background: none; box-shadow: none; border-radius: 0; container-type: inline-size; }
.cs--hk .aa-coral { color: #4799A6; }
.cs--hk .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs--hk .ds-cards .tags span { background: #EDF6F8; }
/* tall screens scroll inside the phone */
.iph > .scr { display: block; aspect-ratio: 375 / 812; overflow-y: auto; border-radius: 56em; box-shadow: 0 0 0 6.6em #0A0A0B; background: #fff; scrollbar-width: none; overscroll-behavior: contain; }
.iph > .scr::-webkit-scrollbar { display: none; }
.iph > .scr img { display: block; width: 100%; height: auto; }
.iph > .scr:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cat-dots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cat-dots i { width: 36px; height: 36px; border-radius: 12px; }
.cs--hk .live-hero { margin: 0 auto; max-width: 640px; }
.cs--hk .live-hero img { width: 100%; height: auto; }
.cs--hk .live-grid { display: flex; gap: 20px; margin-top: 40px; overflow-x: auto; padding: 4px 2px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cs--hk .live-grid figure { flex: 0 0 min(340px, 78vw); margin: 0; scroll-snap-align: start; }
.cs--hk .live-grid .box { padding: 18px; background: #fff; aspect-ratio: 1; display: grid; place-items: center; }
.cs--hk .live-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ==========================================================
   Pairboard: dark product frames on the light page
   ========================================================== */
.cs--pb .aa-coral { color: #00805A; }
.cs--pb .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs--pb .browser { background: #121212; border-color: #2C2C2C; }
.cs--pb .browser__bar { background: #1B1E23; border-bottom-color: #2C2C2C; }
.cs--pb .browser__bar span { background: #2A2E35; color: #A7ADB8; }
.cs--pb .dark-board { border-radius: 14px; overflow: hidden; background: #121212; border: 1px solid #2C2C2C; }
.cs--pb .dark-board img { width: 100%; height: auto; display: block; }
.cs--pb .logo-hero { margin: 0; border-radius: 18px; overflow: hidden; background: #131A17; }
.cs--pb .logo-hero img { width: 100%; height: auto; display: block; }
.cs--pb .pb-cover-logo { max-width: 420px; margin: 0 auto clamp(18px, 3vw, 32px); border-radius: 16px; overflow: hidden; background: #131A17; }
.cs--pb .pb-cover-logo img { width: 100%; height: auto; display: block; }
.cs--pb .cs-cover { padding: clamp(20px, 4vw, 48px) clamp(12px, 3vw, 40px) clamp(24px, 4vw, 48px); }
.bshots { display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.bshots > figure { flex: 0 0 min(560px, 84vw); margin: 0; scroll-snap-align: start; }
.tone-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tone-row:last-child { border-bottom: 0; }
.tone-row i { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tone-row b { display: block; font-size: 14px; font-weight: 600; }
.tone-row span { font-size: 13px; color: var(--muted); }

/* ==========================================================
   Card covers: one distinct style per project
   ========================================================== */
.card__media--cover .pc--exploded img, .card__media--cover .pc--stage img, .card__media--cover .ppl__card img { height: auto; object-fit: initial; transform: none !important; transition: none; display: block; }

/* Exploded UI (Hysab Kytab): one phone, real cards pulled out and enlarged */
.pce__phone { position: absolute; right: 8%; top: 50%; width: 27%; translate: 0 -50%; rotate: 4deg; z-index: 1; }
.pce__phone .iph { box-shadow: inset 0 0 0 1.2em rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.14), 0 5cqw 7cqw -3cqw rgba(23,53,53,.45); }
.pce__phone .iph > img { width: 100%; }
.pce__bal, .pce__bud { position: absolute; z-index: 3; border-radius: 2.6cqw; box-shadow: 0 3cqw 6cqw -3cqw rgba(23,53,53,.45), 0 0 0 1px rgba(23,53,53,.06); }
.pce__bal { left: 6%; top: 13%; width: 45%; padding: 3cqw 3.6cqw; color: #fff; rotate: -4deg;
  background: radial-gradient(60% 90% at 90% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 70%), linear-gradient(135deg, #4799A6, #397A85); }
.pce__bal small { display: block; font-size: max(7px, 1.7cqw); font-weight: 500; opacity: .85; }
.pce__bal b { display: block; margin-top: .6cqw; font-family: var(--sans); font-size: max(16px, 6cqw); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.pce__bal i { font-style: normal; font-size: .3em; font-weight: 600; letter-spacing: .04em; margin-right: 1cqw; vertical-align: .3em; opacity: .8; }
.pce__bud { left: 10%; top: 49%; width: 40%; padding: 2.4cqw 2.8cqw; background: #fff; rotate: 2deg; }
.pce__row { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; }
.pce__row b { font-size: max(8px, 2.1cqw); font-weight: 700; color: #173535; }
.pce__row small { font-size: max(7px, 1.4cqw); color: #5C6270; white-space: nowrap; }
.pce__bar { display: block; height: 1.3cqw; margin-top: 1.6cqw; border-radius: 99px; background: #EEEEEE; overflow: hidden; }
.pce__bar i { display: block; height: 100%; border-radius: inherit; background: #EDAA5E; }
.pce__msg { display: block; margin-top: 1.2cqw; font-size: max(7px, 1.4cqw); font-weight: 600; color: #8A5A12; }
.pce__langs { position: absolute; left: 7%; bottom: 11%; z-index: 3; display: flex; gap: 1.2cqw; rotate: -2deg; }
.pce__langs span { padding: 1.1cqw 2.2cqw; border-radius: 99px; background: #fff; color: #397A85; font-size: max(7px, 1.6cqw); font-weight: 600; box-shadow: 0 2cqw 4cqw -2cqw rgba(23,53,53,.4); }
.pce__langs span[lang="ur"] { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif; padding-block: .6cqw; }

/* Brand stage (Pairboard): logo up top, the app window rising in perspective */
.pst__logo { position: absolute; left: 50%; top: 8%; width: 40% !important; translate: -50% 0; border-radius: 2.4cqw; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3cqw 6cqw -3cqw rgba(9,60,40,.45); }
.pst__win { position: absolute; left: 50%; bottom: -14%; width: 80%; translate: -50% 0; transform: perspective(110cqw) rotateX(14deg); transform-origin: 50% 100%; }
.pst__win .pcw, .ppl__card .pcw { position: relative; }
.pc--stage .pcw { box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 -2cqw 8cqw -2cqw rgba(0,245,160,.35), 0 4cqw 8cqw -3cqw rgba(9,60,40,.45); }

/* Photo-led (Zarina Shamim Trust): the students first, the site as a detail */
.pc--photoled::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(10,30,50,.45) 0%, rgba(10,30,50,0) 45%); pointer-events: none; }
.ppl__card { position: absolute; left: 5%; bottom: 8%; width: 44%; z-index: 2; rotate: -2deg; }
.ppl__card .pcw { box-shadow: 0 4cqw 8cqw -2.5cqw rgba(0,0,0,.55); }
.ppl__stats { position: absolute; right: 5%; top: 7%; z-index: 2; display: flex; gap: 1.4cqw; }
.ppl__stats span { padding: 1.6cqw 2.4cqw; border-radius: 1.8cqw; background: rgba(255,255,255,.95); box-shadow: 0 2.2cqw 4.5cqw -2cqw rgba(0,0,0,.35); }
.ppl__stats b { display: block; font-family: var(--sans); font-size: max(11px, 3.6cqw); font-weight: 600; letter-spacing: -.03em; color: #1E92D8; line-height: 1; }
.ppl__stats small { display: block; margin-top: .6cqw; font-size: max(7px, 1.4cqw); color: #6B7280; }
@container (max-width: 300px) { .pce__langs, .ppl__stats { display: none; } }

/* Process pieces (Hysab Kytab): sitemap, decisions, state inventory, evolution */
.ia { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.ia__col { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ia__k { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); }
.ia ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ia li { padding: 11px 14px; border-radius: 12px; background: var(--accent-soft); font-weight: 500; font-size: 15px; }
.ia li small { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--muted); }
.ia li.is-plus { background: var(--accent-ink, var(--accent)); color: #fff; }
.ia li.is-plus small { color: rgba(255,255,255,.92); }
@media (max-width: 860px) { .ia { grid-template-columns: 1fr; } }
.decision { margin-top: 32px; border-left: 3px solid var(--accent); }
.decision h3 { margin: 6px 0 6px; }
.decision p { margin: 0; color: var(--ink-2); max-width: 760px; }
.persona .ships { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.persona .ships span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); margin-bottom: 2px; }
.inv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.inv div { padding: 16px 18px; background: var(--surface); }
.inv b { display: block; font-family: var(--sans); font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.inv span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 860px) { .inv { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .inv { grid-template-columns: repeat(2, 1fr); } }
.evo-img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.evo-img img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }


/* ==========================================================
   Ticketwise: Android frames, research boards, findings → design
   ========================================================== */
.cs--tw .phone { padding: 0; background: none; box-shadow: none; border-radius: 0; container-type: inline-size; }
/* Ticketwise is an Android app: Pixel-style frame (graphite body, even bezel, centred punch-hole, buttons on the right) */
.cs--tw .iph { padding: 9em; border-radius: 40em;
  background: linear-gradient(150deg, #3A3C41 0%, #1E1F23 30%, #121316 60%, #2A2C31 100%);
  box-shadow: inset 0 0 0 1.4em #4A4D54, inset 0 0 0 2.6em #16171A, 0 0 0 1px rgba(0,0,0,.25), 0 30px 44px -26px rgba(120,20,70,.32), 0 10px 18px -12px rgba(29,34,48,.22); }
.cs--tw .iph > img, .cs--tw .iph > .scr { border-radius: 28em !important; box-shadow: 0 0 0 4em #050506; }
.cs--tw .iph::before { display: block; top: 15em; width: 12em; height: 12em; margin-left: -6em; border-radius: 50%; background: #050506; box-shadow: inset 0 0 0 3em #15161A, 0 0 0 1em rgba(255,255,255,.06); }
.cs--tw .iph::after { right: -2.6em; top: 168em; width: 3.4em; height: 62em; background: linear-gradient(180deg, #4A4D54, #2A2C31); border-radius: 0 3em 3em 0; }
.cs--tw .iph .btn-l { left: auto; right: -2.6em; top: 262em; width: 3.4em; height: 112em; background: linear-gradient(180deg, #4A4D54, #2A2C31); border-radius: 0 3em 3em 0; box-shadow: none; }
.cs--tw .aa-coral { color: #B7357C; }
.cs--tw .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs--tw .ds-cards .tags span { background: #F6E6EF; }
.cs--tw .dark-board, .cs--tw .story .dark-board { border-radius: 14px; overflow: hidden; background: #2A2A2A; border: 1px solid rgba(0,0,0,.08); }
.cs--tw .dark-board img { width: 100%; height: auto; display: block; }
.cs--tw .story { display: grid; gap: 10px; }
.tw-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-top: 40px; }
.tw-notes .points { grid-template-columns: 1fr; margin-top: 0; }
.tw-notes .tw-note { margin: 0; display: flex; background: none; padding: 0; border: 0; box-shadow: none; }
.tw-notes .tw-note .dark-board { width: 100%; height: 100%; display: flex; align-items: center; background: #2A2A2A; border-color: transparent; }
.tw-notes__finds { align-self: stretch; display: flex; align-items: center; }
.tw-notes__finds .points { width: 100%; }
@media (max-width: 860px) { .tw-notes { grid-template-columns: 1fr; } }
.trace { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trace > div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trace h3 { margin: 6px 0 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.trace .to { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--accent-ink, var(--accent)); font-size: 14px; font-weight: 500; }
.trace .to::before { content: '→ '; }
@media (max-width: 860px) { .trace { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trace { grid-template-columns: 1fr; } }

/* Every case-study cover: rounded on all sides, same inner bottom padding */
.cs .cs-cover { padding-bottom: clamp(24px, 4vw, 48px); border-radius: 28px; }
@media (max-width: 640px) { .cs .cs-cover { border-radius: 20px; } }

/* ==========================================================
   Project X: confidential preview (all screens blurred in the image files)
   ========================================================== */
.cs--px { --accent: #1E2B4A; --accent-soft: #EEF1F7; }
.cs--px .cs-hero__tag { background: linear-gradient(90deg, #1E2B4A, #4C6FB0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs--px .cs-cover { border: 1px solid #DDE3EE; background: radial-gradient(60% 55% at 50% 70%, rgba(76,111,176,.16), rgba(76,111,176,0) 70%), linear-gradient(180deg, #FFFFFF 0%, #EEF1F7 100%); }
.px-cover { position: relative; max-width: 1040px; margin: 0 auto; }
.px-cover .browser img, .px-shots .browser img { display: block; width: 100%; height: auto; }
.px-badge { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; background: rgba(14,20,36,.82); color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 30px -14px rgba(14,20,36,.6); white-space: nowrap; }
.px-badge i, .px-lock > i { display: grid; place-items: center; }
.px-badge svg { width: 16px; height: 16px; }
.px-locked { position: relative; }
.px-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.px-lock { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(440px, 88%); padding: 32px; border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(14,20,36,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.px-lock > i { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent); color: #fff; }
.px-lock svg { width: 22px; height: 22px; }
.px-lock h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.px-lock p { margin: 10px 0 20px; color: var(--ink-2); }
@media (max-width: 760px) { .px-shots { grid-template-columns: 1fr; } .px-badge { font-size: 12px; padding: 8px 14px; } }
/* Locked card cover (Project X) */
.card__media--cover .pc--locked img { transform: none !important; }
.pc--locked .pc__photo { filter: saturate(.9); }
.pc--locked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,36,.05), rgba(14,20,36,.35)); }
.pcl__badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 2cqw 3.6cqw; border-radius: 99px; background: rgba(14,20,36,.85); color: #fff; font-size: max(11px, 2.6cqw); font-weight: 500; white-space: nowrap; box-shadow: 0 3cqw 6cqw -3cqw rgba(0,0,0,.6); }
.pcl__badge svg { width: 1.3em; height: 1.3em; }
.shot.award img { display: block; width: 100%; max-width: 900px; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(14,17,22,.35); }
.shot.award { max-width: 900px; }
/* Xgrid hero: the redesigned screen sits straight on the cover, no second backdrop */
.cs .xg-screen { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(14,17,22,.08), 0 40px 70px -40px rgba(14,17,22,.55); }

/* Zarina Shamim Trust: hero explorations, iteration, design-system boards */
.cs--zst .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs--zst .ds-cards .tags span { background: #EAF5FC; }
.z-heroes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 18px; }
.z-heroes figure, .z-evo figure, .z-ds figure { margin: 0; }
.z-heroes img, .z-board img { display: block; width: 100%; height: auto; }
.z-heroes figcaption, .z-evo figcaption { margin-top: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.z-heroes figcaption b, .z-evo figcaption b { color: var(--accent-ink, var(--accent)); font-weight: 500; margin-right: 6px; }
.z-evo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.z-evo .scrollshot { max-height: 620px; }
.z-ds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.z-board { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 14px; }
@media (max-width: 860px) { .z-heroes { grid-template-columns: 1fr 1fr; } .z-evo, .z-ds { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .z-heroes { grid-template-columns: 1fr; } }

/* ==========================================================
   Purple Break: brand boards, print sheets
   ========================================================== */
.cs--pk { --accent: #CA569A; --accent-soft: #FBEAF3; }
.cs--pk .cs-hero__tag { background: linear-gradient(90deg, #CA569A, #EE907B 55%, #FCCF85); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs--pk .cs-cover { padding: 0 !important; border: 0; background: none; overflow: hidden; }
.cs--pk .pk-cover { display: block; width: 100%; height: auto; border-radius: inherit; }
.cs--pk .swatches small.t { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs--pk .swatches .swatch-tile { font-size: 11px; }
@media (max-width: 860px) { .cs--pk .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .cs--pk .swatches { gap: 10px; } .cs--pk .swatches .swatch-tile { padding: 10px 8px; font-size: 10px; height: 72px; } .cs--pk .swatches b { font-size: 12px; } }
.pk-board { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pk-board img, .pk-sheet img { display: block; width: 100%; height: auto; }
.pk-sheets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pk-sheets figure, .pk-img figure { margin: 0; }
.pk-sheet { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgba(40,20,50,.45); }
.pk-img { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .pk-sheets { grid-template-columns: 1fr 1fr; } .pk-img { grid-template-columns: 1fr; } }
/* No outline on any case-study cover box */
.cs .cs-cover { border: 0 !important; }
.recs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .recs--3 { grid-template-columns: 1fr; } }

/* About page */
.about-hero { padding-bottom: 96px; }
.about-hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
/* Framed portrait: transparent cutout, so the starry hero shows through, inside a light rounded border */
.about-portrait { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02); }
.about-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .about-hero__grid { grid-template-columns: 1fr; } .about-portrait { max-width: 320px; } }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.about-facts div { padding: 22px; background: var(--surface); }
.about-facts b { display: block; font-family: var(--sans); font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.about-facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .about-facts { grid-template-columns: 1fr 1fr; } }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.principles .box h3 { margin: 8px 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.principles .box p { margin: 0; color: var(--ink-2); }
.principles .box a { text-decoration: underline; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.about-cta h3 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.03em; }
.about-cta p { margin: 12px 0 0; color: var(--ink-2); }

@media (max-width: 400px) { .facts b { font-size: 30px; overflow-wrap: anywhere; } }

/* Layers: straight windows, printed pieces and chips on a light, project-tinted scene (no tilt) */
.pc--layers .pcly { position: absolute; }
.pc--layers .pcw { box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 4cqw 8cqw -3cqw rgba(var(--sh, 0,0,0),.42); }
.pcly--card { border-radius: 1.4cqw; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4cqw 8cqw -3cqw rgba(var(--sh, 0,0,0),.42); }
.card__media--cover .pcly img { width: 100%; height: auto; display: block; transform: none !important; transition: none; }
.card__media--cover .pcly--card[style*="aspect-ratio"] img { height: 100%; object-fit: cover; }
.pcly--stats { z-index: 3; white-space: nowrap; display: flex; gap: 2.4cqw; padding: 1.4cqw 2.4cqw; border-radius: 1.4cqw; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3cqw 6cqw -3cqw rgba(var(--sh, 0,0,0),.45); line-height: 1.1; }
.pcly--stats > span { display: flex; flex-direction: column; }
.pcly--stats b { font-family: var(--sans); font-weight: 600; font-size: 4cqw; letter-spacing: -.03em; color: rgb(var(--sh)); }
.pcly--stats small { font-size: max(9px, 1.8cqw); color: var(--muted); }
.pc--layers .pcly--lock { top: auto; translate: none; z-index: 3; gap: 1cqw; padding: 1.2cqw 2.2cqw; font-size: max(9px, 1.8cqw); background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3cqw 6cqw -3cqw rgba(var(--sh, 0,0,0),.45); }

/* ---------- Work: two tiers ---------- */
.work-group + .work-group { margin-top: clamp(72px, 9vw, 120px); }
.work-group__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.work-group__head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.work-group__head p { grid-column: 1; margin: 0; color: var(--muted); font-size: 15px; }
.work-group__head > span { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.work-group .grid--3 .card__body h3 { font-size: 18px; }

/* ---------- Case study: summary, section index, progress ---------- */
.cs-tldr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.cs-tldr span { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); font-weight: 500; }
.cs-tldr p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 760px) { .cs-tldr { grid-template-columns: 1fr; gap: 20px; } }
.shots2 > [hidden] { display: none !important; }
.cs-more { display: flex; margin: 28px auto 0; }

.cs-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 61; height: 2px; pointer-events: none; }
.cs-progress i { display: block; height: 100%; background: var(--acc, var(--ink)); transform: scaleX(0); transform-origin: 0 50%; }
.cs-toc { position: fixed; right: var(--gutter); bottom: 20px; z-index: 60; opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .35s, translate .35s var(--ease); }
.cs-toc.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.cs-toc__btn { display: flex; align-items: center; gap: 8px; height: 48px; max-width: min(320px, calc(100vw - 140px)); padding: 0 18px; border-radius: 99px; background: rgba(14, 17, 22, .82); color: #fff; font-size: 13px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 40px -12px rgba(0,0,0,.45); }
.cs-toc__btn b { font-weight: 500; color: var(--acc); filter: brightness(1.35); }
.cs-toc__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-toc__btn small { color: rgba(255,255,255,.5); font-size: 12px; flex: none; }
.cs-toc__list { position: absolute; right: 0; bottom: 58px; width: 280px; max-height: 60vh; overflow: auto; margin: 0; padding: 8px; list-style: none; border-radius: 18px; background: rgba(14, 17, 22, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px -16px rgba(0,0,0,.5); opacity: 0; translate: 0 8px; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); }
.cs-toc.is-open .cs-toc__list { opacity: 1; translate: 0 0; pointer-events: auto; }
.cs-toc__list a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.cs-toc__list a b { width: 20px; flex: none; font-weight: 500; color: rgba(255,255,255,.4); }
.cs-toc__list a:hover, .cs-toc__list a.is-on { background: rgba(255,255,255,.08); color: #fff; }
.cs-toc__list a.is-on b { color: var(--acc); filter: brightness(1.35); }
@media (max-width: 640px) { .cs-toc { right: 16px; bottom: 14px; } .cs-toc__list { width: min(280px, calc(100vw - 32px)); } }

/* About: Above & below as a compact pair (no photos) */
.split--realms .realm { min-height: 220px; padding: 28px; }
.split--realms .realm h3 { font-size: 26px; }
@media (max-width: 760px) { .split.split--realms { grid-template-columns: 1fr 1fr; gap: 12px; } .split--realms .realm { min-height: 170px; padding: 18px; } .split--realms .realm h3 { font-size: 20px; } .split--realms .realm p { font-size: 13.5px; } }
.sea__studio { margin: 22px 0 0; font-size: 15px; color: rgba(255,255,255,.6); }
.sea__studio a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.stats--proof .stat { min-width: 0; }
@media (max-width: 400px) { .stats--proof .stat b { font-size: 32px; } .stats--proof .stat { padding-right: 12px; } .stats--proof .stat + .stat { padding-left: 12px; } }

/* Hero taglines: slightly deeper brand colours so they read at 3:1+ on the page background */
.cs--iapts .cs-hero__tag { color: #D9553F; }
.cs--bling .cs-hero__tag { color: #018F64; }

/* Journey: education, languages, honors, certifications and skills in one compact card */
.creds__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.creds__facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 20px; }
.creds__facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.creds__facts .eyebrow { margin-bottom: 8px; }
.creds__facts b { font-family: var(--sans); font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.creds__facts small { font-size: 13.5px; color: var(--muted); }
.creds__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 28px; }
.creds__certs { margin: 14px 0 0; display: grid; gap: 14px; }
.creds__certs > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; }
.creds__certs dt { font-size: 13px; font-weight: 600; color: var(--ink); padding-top: 1px; }
.creds__certs dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.chips--sm { margin-top: 14px; gap: 6px; }
.chips--sm span { padding: 5px 11px; font-size: 13px; }
@media (max-width: 900px) { .creds__body { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .creds__facts { grid-template-columns: 1fr; row-gap: 18px; } .creds__facts > div + div { padding-left: 0; border-left: 0; padding-top: 18px; border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .creds__certs > div { grid-template-columns: 1fr; gap: 2px; } }

/* Nav: dark glass while a dark hero is under it */
.nav.is-scrolled.is-dark { background: rgba(4, 6, 13, .5); color: #fff; border-bottom-color: rgba(255,255,255,.08); }
.nav.is-dark .nav__links a.is-active span { color: var(--sky); }
/* About: counts in the same style as the stats bars elsewhere */
.about-stats { margin-top: 48px; }
.about-where { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Stats bars: line icons instead of live dots */
.stat__ic { width: 16px; height: 16px; flex: none; color: var(--muted); }
.stats--dark .stat__ic { color: rgba(255,255,255,.6); }

/* UI consistency pass: one 28px rhythm between stacked blocks; light frame behind light boards */
.cs-body > .ds-cards + .shot, .cs-body > .shot + .devices, .cs-body > .shot + .bshots, .cs-body > .ds-cards + .z-ds { margin-top: 28px; }
.cs--tw .dark-board, .cs--tw .story .dark-board { background: var(--surface); border-color: var(--line); }
/* Phones: when device rows wrap, keep each caption with its own phone */
@media (max-width: 760px) { .cs-body .devices:not(.devices--scroll) { row-gap: 32px; } .cs-body .devices.devices--scroll { row-gap: 0; } }

/* Pairboard hero: the product only, one flat browser window (same as its Work card), no logo badge */
.cs--pb .pb-cover-win { max-width: 1000px; margin: 0 auto; }
.cs--pb .pb-cover-win .browser { box-shadow: 0 1px 2px rgba(14,17,22,.08), 0 40px 70px -40px rgba(9,60,40,.5); }
.cs--pb .pb-cover-win .browser img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 860; object-fit: cover; object-position: top; }

/* One browser frame everywhere, same as the Work card windows: macOS traffic lights and a centred address pill */
.browser__bar i { width: 10px; height: 10px; flex: none; background: #FF5F57; }
.browser__bar i:nth-child(2) { background: #FEBC2E; }
.browser__bar i:nth-child(3) { background: #28C840; }
.browser__bar span { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 68px); margin: 0 auto; padding: 0 8px; font-weight: 600; color: #6B717B; text-overflow: ellipsis; }
.cs--pb .browser__bar span { color: #A7ADB8; }

/* Small accent text uses a deeper 'ink' of each project colour (WCAG AA 4.5:1 on page, card and tint backgrounds) */
.cs--iapts { --accent-ink: #C43118; }
.cs--bling { --accent-ink: #017B57; }
.cs--arc { --accent-ink: #8F6522; }
.cs--pb { --accent-ink: #007A50; }
.cs--xg { --accent-ink: #3C7852; }
.cs--he { --accent-ink: #5A48A6; }
.cs--alk { --accent-ink: #0C67D6; }
.cs--zst { --accent-ink: #1771A7; }
.cs--tw { --accent-ink: #B7357C; }
.cs--hk { --accent-ink: #36737E; }
.cs--px { --accent-ink: #1E2B4A; }
.cs--pk { --accent-ink: #B43981; }

.cs-back { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 480px) { .browser__bar span { max-width: calc(100% - 66px); padding: 0 8px; font-size: 10px; } }
@media (max-width: 360px) { .browser__bar { padding: 0 10px; gap: 4px; } .browser__bar i { width: 8px; height: 8px; } }

/* Keyboard focus: clearly visible, never shown on mouse click */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sky :focus-visible, .sea :focus-visible, .nav.is-dark :focus-visible, .player :focus-visible, .cs-toc :focus-visible, .nav__links :focus-visible { outline-color: #fff; }
.card:focus-visible { outline-offset: 6px; border-radius: calc(var(--radius) + 4px); }
.btn:focus-visible, .chip:focus-visible, .like-btn:focus-visible { border-radius: 99px; }
/* Project cards: a calm lift on hover (the cover itself stays still) */
.card__media { transition: box-shadow .45s var(--ease), translate .45s var(--ease); }
.card:hover .card__media, .card:focus-visible .card__media { translate: 0 -4px; box-shadow: 0 22px 44px -28px rgba(14,17,22,.38); }
.card__body h3 { transition: color .3s; }
.card:hover .card__body h3 { color: var(--ink-2); }
@media (hover: none) { .card:hover .card__media { translate: none; box-shadow: none; } }

/* Folded sub-parts inside a case-study section (shorter pages) */
.cs-sub--part { margin-top: 72px; }
.cs-part-lead { max-width: 680px; margin: 10px 0 28px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.cs-part-lead b { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }

/* About timeline: every case-study link reads as a link */
.moments p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.moments p a:hover { color: var(--ink); }
.moments h3 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Back to top: same dark glass as the music player, bottom right, shown at the footer */
.to-top { position: fixed; right: var(--gutter); bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 17, 22, .82); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 12px 40px -12px rgba(0,0,0,.45); opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .35s, translate .35s var(--ease), background .25s; }
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: rgba(30, 34, 42, .92); }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 14px; } }
/* Keep the footer's last line clear of the floating player and back-to-top button */
.sea__bottom { padding-bottom: 64px; }

/* Uniform "More work" covers: one browser window, same size and crop on every card */
.card__media--cover .pcw__shot { overflow: hidden; }
.card__media--cover .pcw .pcw__shot img { height: 100%; object-fit: cover; }

/* Emblem layer (Project X cover): a transparent crest standing above the NDA pill */
.card__media .pcly--emblem { position: absolute; height: auto; object-fit: contain; translate: -50% 0; z-index: 5; transform: none !important; transition: none; filter: drop-shadow(0 0 1.4cqw rgba(255,255,255,.95)) drop-shadow(0 .8cqw 1.4cqw rgba(20,35,70,.28)); }

/* Alkira Social: flat posts with a soft frame, galleries of 2 or 3 */
.cs--als .shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 24px 44px -30px rgba(14,17,22,.4); }
.shots3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 960px) { .shots3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .shots3 { grid-template-columns: 1fr; } }

/* A lone last card in the two-column "Selected" grid sits centred, so it never looks left over */
@media (min-width: 641px) { .work-group .grid:not(.grid--3) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 14px); justify-self: center; } }

/* Alkira Social cover: the posts sit straight on the cover's own gradient, with even padding all round */
.cs--als .cs-cover { padding: clamp(10px, 2.2vw, 28px); border-radius: 28px; }

/* Alkira Social archive: every campaign as a compact grid */
.cs-sub__n { margin-left: 10px; font-size: 12px; letter-spacing: .06em; text-transform: none; color: var(--muted); opacity: .8; font-weight: 400; }
.als-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; align-items: start; }
.als-grid .shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 16px 30px -24px rgba(14,17,22,.45); }
.als-grid .shot figcaption { margin-top: 10px; }
.als-grid--p .shot img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }@media (max-width: 960px) { .als-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .als-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 640px) {
  /* phones: music + section counter read as one slim bar on case studies */
  body:has(.cs-toc) .player { bottom: 12px; left: 12px; height: 40px; min-width: 72px; justify-content: center; border-radius: 99px 0 0 99px; box-shadow: none; }
  body:has(.cs-toc) .player__btn { width: 32px; height: 32px; }
  .cs-toc { left: 84px; right: 12px; bottom: 12px; }
  .cs-toc__btn { width: 100%; height: 40px; max-width: none; border-radius: 0 99px 99px 0; border-left: 1px solid rgba(255,255,255,.14); box-shadow: none; padding: 0 16px; }
  .cs-toc__list { bottom: 50px; width: min(280px, calc(100vw - 24px)); }
  .to-top { display: none; }
}
@media (max-width: 760px) {
  /* menu overlay: the blurred, scrolled header traps fixed children, so drop it while the menu is open */
  .nav.is-open { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom-color: transparent !important; color: #fff !important; }
  .nav.is-open .nav__logo { position: relative; z-index: 2; }
  .nav__links { height: 100vh; height: 100dvh; width: 100%; box-sizing: border-box; }
  .nav.is-open .nav__menu i { background: transparent; }
  .nav.is-open .nav__menu i::before { top: 0; transform: rotate(45deg); }
  .nav.is-open .nav__menu i::after { top: 0; transform: rotate(-45deg); }
  .nav__menu i, .nav__menu i::before, .nav__menu i::after { transition: transform .3s, top .3s, background .2s; }
  html.menu-open { overflow: hidden; }
  html.menu-open .player, html.menu-open .cs-toc, html.menu-open .to-top { opacity: 0 !important; pointer-events: none !important; }
}
@media (min-width: 961px) and (max-width: 1060px) { .browser__bar span { font-size: 10px; padding: 0 6px; } .browser__bar { padding: 0 10px; gap: 5px; } }
@media (min-width: 961px) and (max-width: 1000px) { .browser__bar i { display: none; } .browser__bar span { max-width: 100%; } }
@media (min-width: 930px) and (max-width: 985px) { .browser__bar span { font-size: 9px; letter-spacing: -.02em; padding: 0 3px; } }
/* page transitions: keep a solid backdrop and a readable header the whole way through */
html.swup-bg[data-next="dark"] body { background: radial-gradient(120% 90% at 70% 0%, #111a3a 0%, var(--sky-2) 38%, var(--sky) 75%) fixed; }   /* the same sky as the hero, so the page change reads as the content changing, not a black flash */
html.swup-bg[data-next="light"] body { background: var(--bg); }
html.swup-bg[data-next="dark"] .nav { color: #fff; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.swup-bg[data-next="light"] .nav { color: var(--ink); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.prints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.prints figure { margin: 0; }
.prints img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 24px 44px -28px rgba(14,17,22,.4); }
.prints figcaption { margin-top: 12px; font-size: 14.5px; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2); }
@media (max-width: 900px) { .prints { grid-template-columns: repeat(2, 1fr); } }

.px-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.px-grid img { display: block; width: 100%; height: auto; }
.px-flow { margin: 28px auto 0; max-width: 980px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.px-flow img { display: block; width: 100%; height: auto; }
.px-flow figcaption { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); text-align: center; }
.px-locked .browser { box-shadow: 0 30px 70px -40px rgba(14,17,22,.4); }
@media (max-width: 760px) { .px-lock { position: relative; left: auto; top: auto; translate: none; width: auto; margin: -56px 14px 0; padding: 26px 22px; } }
.tabl { container-type: inline-size; width: 100%; }
.tabl__screen { position: relative; font-size: calc(100cqw / 1000); padding: 9em; border-radius: 40em; line-height: 0;
  background: linear-gradient(140deg,#F4F2EF 0%,#CFCBC5 14%,#9C9892 38%,#D9D5CF 52%,#8F8B85 72%,#E6E3DE 100%);
  box-shadow: inset 0 0 0 1.2em rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.14), 0 30px 44px -26px rgba(60,40,30,.40), 0 10px 18px -12px rgba(29,34,48,.22); }
.tabl__view { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 26em; box-shadow: 0 0 0 7em #0A0A0B; background: #fff; }
.tabl__view img { display: block; width: 100%; height: auto; }
.tabl__view--scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #A3A5AB transparent; }
.tabl__view--scroll::-webkit-scrollbar { width: 6px; }
.tabl__view--scroll::-webkit-scrollbar-thumb { background: #A3A5AB; border-radius: 6px; }
.scrollhint { font-style: normal; color: var(--muted); font-weight: 400; }
.tabl__screen::before { content: ""; position: absolute; left: 12.5em; top: 50%; width: 4.5em; height: 4.5em; margin-top: -2.25em; border-radius: 50%; background: radial-gradient(circle at 40% 35%,#3C4A66,#0A0B0E 70%); z-index: 2; }
.tabl__screen::after { content: ""; position: absolute; right: 70em; top: -3em; width: 70em; height: 4em; background: linear-gradient(90deg,#C8C4BE,#8F8B85); border-radius: 4em 4em 0 0; }
.px-flow--kit { max-width: 980px; padding: 14px; }
.px-flow--kit img { border-radius: 10px; }
.px-flow--kit img + img { margin-top: 10px; }
.px-flow--kit figcaption { margin-top: 14px; line-height: 1.4; }
.px-flow > img { border-radius: 10px; }
/* Floating counts + like bar on case studies (assets/js/floatbar.js) */
.fbar { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 6px 0 18px; border-radius: 99px; background: rgba(14, 17, 22, .82); color: #fff; font-size: 13px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -14px rgba(14,17,22,.55); opacity: 0; translate: -50% 12px; pointer-events: none; transition: opacity .35s, translate .35s var(--ease); }
.fbar.is-shown { opacity: 1; translate: -50% 0; pointer-events: auto; }
.fbar__stat { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.72); }
.fbar__stat svg { width: 16px; height: 16px; }
.fbar__stat b { font-weight: 500; color: #fff; }
.fbar__stat.is-liked { color: var(--heart); }
.fbar__stat.is-liked svg path { fill: currentColor; }
.fbar__like { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font: inherit; font-weight: 500; cursor: pointer; transition: background .25s, border-color .25s; }
.fbar__like svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.fbar__like:hover { background: var(--heart); border-color: var(--heart); }
.fbar__like:hover svg { transform: scale(1.15); }
.fbar__like.is-liked { background: var(--heart); border-color: var(--heart); cursor: default; }
.fbar__like.is-liked svg path { fill: currentColor; }
.fbar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 980px) { .fbar { bottom: 78px; } }
@media (max-width: 640px) { .fbar { bottom: 60px; height: 42px; gap: 12px; padding: 0 5px 0 14px; font-size: 12px; } .fbar__like { height: 32px; padding: 0 11px; } .fbar__like .like-label { display: none; } }
html.menu-open .fbar { opacity: 0 !important; pointer-events: none !important; }

/* Honors and recognition (Journey) + DPL badge row (iApartments) */
.honors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.honor { margin: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.honor__vis { aspect-ratio: 1 / 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #F3EEFB, #E3D9F2); }
.honor__vis img { width: 64%; height: auto; display: block; filter: drop-shadow(0 14px 18px rgba(80, 40, 140, .28)); }
.honor--photo .honor__vis { background: #EDE9E3; }
.honor--photo .honor__vis img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.honor figcaption { padding: 18px 20px 22px; }
.honor b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.honor small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.honor p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.honor p a, .honor-row p a { text-decoration: underline; }
@media (max-width: 1180px) { .honors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .honors { grid-template-columns: 1fr; } }
.honor-row { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.honor-row img { flex: none; width: 88px; height: 88px; display: block; filter: drop-shadow(0 10px 14px rgba(80, 40, 140, .25)); }
.honor-row b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.honor-row p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; max-width: 62ch; }
@media (max-width: 560px) { .honor-row { flex-direction: column; align-items: flex-start; gap: 14px; } }
.tl-note { margin: 14px 0 28px; max-width: 62ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.noscript-list, .noscript-contact { max-width: 760px; margin: 24px auto; padding: 0 var(--gutter, 24px); font-size: 15px; line-height: 1.6; }
.noscript-list { list-style: none; } .noscript-list li { margin: 10px 0; } .noscript-list a, .noscript-contact a { text-decoration: underline; }
.hero__open { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; max-width: 460px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.8); }
.hero__open i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
/* Blingram phones: same silver ring + black bezel + island as every other phone (.iph) and the tablets */
.cs--bling .bph-f { padding: 2.545cqw; border-radius: 16.79cqw;
  background: linear-gradient(140deg,#F4F2EF 0%,#CFCBC5 14%,#9C9892 38%,#D9D5CF 52%,#8F8B85 72%,#E6E3DE 100%);
  box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.14), 0 7.6cqw 11cqw -6.6cqw rgba(60,40,30,.40), 0 2.5cqw 4.6cqw -3cqw rgba(29,34,48,.22); }
.cs--bling .bph-f .scr { border-radius: 14.25cqw; box-shadow: 0 0 0 1.68cqw #0A0A0B; }
.cs--bling .bph-f .isl { top: 3.05cqw; width: 29.5cqw; height: 8.65cqw; background: #0A0A0B; }
.cs--bling .bph-f .side { right: -.76cqw; top: 58.5cqw; width: 1.02cqw; height: 25.4cqw; background: linear-gradient(180deg,#C8C4BE,#8F8B85); border-radius: 0 1cqw 1cqw 0; }
.cs--bling .bph-f::before { content: ""; position: absolute; left: -.76cqw; top: 48.3cqw; width: 1.02cqw; height: 15.8cqw; background: linear-gradient(180deg,#C8C4BE,#8F8B85); border-radius: 1cqw 0 0 1cqw; box-shadow: 0 20.4cqw 0 #A9A5A0; }
/* Phone rows: tops line up even when one caption wraps to two lines (rows with deliberate size steps keep bottom alignment) */
.devices--scroll, .devices:not(:has(> figure[style*="flex"])) { align-items: flex-start; }
.devices:has(> figure[style*="flex-basis"]) { align-items: flex-start; }
.cs--tw .iph > .scr { aspect-ratio: 411 / 823; }
/* Website mockups that scroll inside: laptop, phone and tablets show the full page, starting at the same view as before */
.laptop .screen > .wv { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #A3A5AB transparent; background: #fff; }
.laptop .screen > .wv img { display: block; width: 100%; height: auto; }
.laptop .screen > .wv::-webkit-scrollbar { width: 6px; }
.laptop .screen > .wv::-webkit-scrollbar-thumb { background: #A3A5AB; border-radius: 6px; }
.iph > .webscr { position: relative; display: block; aspect-ratio: 600 / 1301; overflow: hidden; border-radius: 56em; box-shadow: 0 0 0 6.6em #0A0A0B; background: #fff; }
.iph > .webscr .webscr__bar { position: absolute; left: 0; width: 100%; height: auto; z-index: 2; pointer-events: none; }
.iph > .webscr .webscr__bar--top { top: 0; }
.iph > .webscr .webscr__bar--bottom { bottom: 0; }
.iph > .webscr .webscr__pane { position: absolute; left: 0; right: 0; top: 6.38%; bottom: 9.6%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.iph > .webscr .webscr__pane::-webkit-scrollbar { display: none; }
.iph > .webscr .webscr__pane img { display: block; width: 100%; height: auto; }
.webhint { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.laptop .screen > .wv:focus-visible, .webscr__pane:focus-visible, .tabl__view--scroll:focus-visible { outline: 2px solid var(--accent, #E5654A); outline-offset: -2px; }
.iph > .webscr img { border-radius: 0 !important; }
/* Phase 4: merged case-study sections, takeaway lines, two-up galleries */
.cs-part { margin-top: clamp(80px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.cs-part__tag { display: block; margin-bottom: 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-part__title { margin: 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1.06; }
.cs-part__title span { color: var(--muted); }
.cs-part .cs-lead { margin-top: 20px; }
.cs-part + * { margin-top: 40px; }
.takeaway { margin: 0 0 32px; padding: 16px 20px; border-left: 3px solid var(--accent, #E5654A); background: var(--accent-soft, rgba(229,101,74,.08)); border-radius: 0 14px 14px 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.takeaway b { display: inline-block; margin-right: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink, var(--accent, #E5654A)); }
.als-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .als-grid.als-grid--2 { grid-template-columns: 1fr; } }
.sea__open { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 15px; color: rgba(255,255,255,.82); }
.sea__open i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
/* Accessibility helpers */
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: #0E1116; color: #fff; font-size: 14px; font-weight: 500; transition: top .15s; }
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.devices--scroll:focus-visible, .bshots:focus-visible { outline: 2px solid var(--accent, #E5654A); outline-offset: 4px; border-radius: 8px; }

/* AI workflow additions */
.ai-lead { margin: 20px 0 0; max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-proof { margin: 28px 0 0; font-size: 15.5px; color: var(--muted); }
.ai-note { margin-top: 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--accent-soft, rgba(229,101,74,.08)); }
.ai-note__k { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink, var(--accent)); }
.ai-note p { margin: 0; max-width: 680px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.ai-note__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-note__chips span { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2, var(--line)); font-size: 13px; background: #fff; color: var(--ink-2); }

/* Ngage peer feedback */
.ai-quote { margin: 34px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent, #6A8EF5); background: var(--surface, #fff); border-radius: 0 16px 16px 0; }
.ai-quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.ai-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ai-quote figcaption b { display: block; color: var(--ink-2); font-weight: 500; }
.ai-quote__av { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.peerfb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 56px; }
.peerfb__img { margin: 0; } .peerfb__img img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(14,17,22,.35); }
.peerfb__txt h3 { margin: 10px 0 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.peerfb__txt p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 460px; }
.peerfb__stats { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.peerfb__stats li { display: flex; flex-direction: column; }
.peerfb__stats b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.peerfb__stats span { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .peerfb { grid-template-columns: 1fr; gap: 24px; } }

/* Ngage block: text on top, two screenshots below */
.peerfb { display: block; }
.peerfb__txt { max-width: 640px; }
.peerfb__imgs { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 32px; }
.peerfb__imgs figure { margin: 0; }
.peerfb__imgs img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(14,17,22,.35); background: #fff; }
@media (max-width: 760px) { .peerfb__imgs { grid-template-columns: 1fr; } }
/* Ngage block, balanced layout: heading row (text left, stats right), then two screenshots at equal height, uncropped */
.peerfb { display: block; margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.peerfb__txt { max-width: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.peerfb__txt .eyebrow { grid-column: 1; grid-row: 1; }
.peerfb__txt h3 { grid-column: 1; grid-row: 2; margin: 10px 0 14px; }
.peerfb__txt p { grid-column: 1; grid-row: 3; max-width: 560px; }
.peerfb__stats { grid-column: 2; grid-row: 1 / span 3; align-self: end; justify-content: flex-end; margin: 0; gap: 20px clamp(24px, 4vw, 56px); }
.peerfb__imgs { display: grid; grid-template-columns: minmax(0, 1.394fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.peerfb__imgs img { display: block; width: 100%; height: auto; object-fit: initial; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -34px rgba(14,17,22,.35); background: #fff; }
@media (max-width: 860px) {
  .peerfb__txt { display: block; }
  .peerfb__stats { justify-content: flex-start; margin-top: 22px; }
  .peerfb__imgs { grid-template-columns: 1fr; }
}
/* Very narrow screens (folded phones, small cover displays): let cards and lists shrink instead of pushing the page wider */
@media (max-width: 360px) {
  .ds-cards, .principles, .pairs, .cards, .facts, .points, .certs, .shots2, .als-grid { grid-template-columns: minmax(0, 1fr); }
  .box, .panel, .persona, .certs li, .ds-cards > *, .cs-end > * { min-width: 0; overflow-wrap: anywhere; }
  .certs li { flex-wrap: wrap; }
  .certs li span:last-child { white-space: normal; }
  .cs-sec h2, .cs-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
  .swatches, .swatches--5 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) { .browser__bar span { font-size: 9.5px; padding: 0 4px; max-width: calc(100% - 52px); } .browser__bar { gap: 4px; padding: 0 10px; } }
@media (max-width: 1100px) { .bshots .browser__bar span, .shots2 .browser__bar span { font-size: 10px; padding: 0 6px; } }
@media (max-width: 1100px) { .browser__bar span { font-size: 10px; padding: 0 6px; } }

/* AI chapter: research feature + end-to-end flow */
.ai-research { margin-top: 36px; padding: 28px 30px; border-radius: 20px; background: var(--surface, rgba(255,255,255,.04)); border: 1px solid var(--line, rgba(255,255,255,.12)); }
.ai-research .k { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ai-research h3 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.ai-research p { margin: 14px 0 0; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ai-flow { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: aif; }
.ai-flow li { counter-increment: aif; position: relative; padding: 16px 16px 18px; border-radius: 16px; border: 1px solid var(--line, rgba(255,255,255,.12)); }
.ai-flow li::before { content: "0" counter(aif); display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ai-flow b { display: block; font-size: 17px; font-weight: 600; }
.ai-flow span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 1000px) { .ai-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ai-flow { grid-template-columns: minmax(0, 1fr); } .ai-research { padding: 22px 20px; } }

[data-until][hidden] { display: none !important; }

/* AI tools strip: rows always run edge to edge */
.ai-tools { margin-top: 32px; }
.ai-tools .k { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ai-tools ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tools li { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.ai-tools li i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
@media (max-width: 1100px) { .ai-tools li { flex: 1 1 calc(25% - 8px); } }
@media (max-width: 560px) { .ai-tools li { flex-basis: calc(50% - 8px); font-size: 14px; padding: 10px 10px; } }
