/* ==========================================================================
   Keith Mistler — Portfolio (redesign v3)
   Modern sans layout, plum as the single accent.
   ========================================================================== */

:root {
  --bg: #FAF8F5;
  --bg-raised: #FFFFFF;
  --ink: #17141A;
  --ink-2: #4A4550;
  --ink-3: #7A7480;
  --line: #E6E0D9;
  --plum: #6B4A80;
  --plum-deep: #4E3460;
  --plum-soft: #EFE8F2;
  --plum-hi: #E3D3ED;
  --go: #2F9E5B;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--plum); color: #fff; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label .num { color: var(--plum); }

/* Nav -------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.025em; }
.wordmark span { color: var(--plum); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; font-weight: 500; transition: background .2s; }
.nav-cta:hover { background: var(--plum-deep); }

.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--bg-raised); }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--plum-soft); color: var(--plum-deep); font-size: 15px; font-weight: 500; margin-bottom: 28px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px rgba(47, 158, 91, .2); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 600px; margin-bottom: 40px; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.showcase { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.15fr 1fr; gap: 12px; aspect-ratio: 1 / 1.05; }
.tile { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--plum-soft); }
.tile:first-child { grid-column: 1 / -1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }

/* Sections --------------------------------------------------------------- */
.section { padding: var(--section) 0 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .label { margin-bottom: 18px; display: block; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 440px; justify-self: end; }

/* Work ------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.card { display: block; }
.card.feature { grid-column: 1 / -1; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--plum-soft); margin-bottom: 24px; }
.card.feature .card-media { aspect-ratio: 16 / 8; }
.card-media picture { display: block; width: 100%; height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .go {
  position: absolute; right: 18px; bottom: 18px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-raised); color: var(--ink); font-size: 20px;
  opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: 0 8px 24px rgba(23, 20, 26, .14);
}
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 10px; text-wrap: balance; transition: color .2s; }
.card.feature h3 { font-size: clamp(26px, 3vw, 40px); max-width: 760px; }
.card:hover h3 { color: var(--plum); }
.card p { color: var(--ink-2); max-width: 560px; }
.card.feature p { max-width: 680px; }

/* About ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.stat { padding: 32px 28px 30px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 3.8vw, 52px); line-height: 1; letter-spacing: -.04em; margin-bottom: 12px; }
.stat-num sup { font-size: .5em; color: var(--plum); vertical-align: .7em; margin-left: 2px; }
.stat p { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 220px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.about-side { display: flex; flex-direction: column; gap: 28px; }
.portrait { width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--plum-soft); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-quote { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.about-quote em { font-style: normal; color: var(--plum); }
.about-body p { color: var(--ink-2); font-size: 18px; margin-bottom: 20px; max-width: 640px; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.skill { padding: 24px 24px 0 0; }
.skill + .skill { padding-left: 24px; border-left: 1px solid var(--line); }
.skill .label { display: block; margin-bottom: 10px; }
.skill p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* Podcast card */
.podcast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: center; margin-top: 64px; padding: 32px; background: var(--plum-deep); color: var(--bg); border-radius: var(--radius); }
.podcast .label { display: block; margin-bottom: 12px; color: #C9B6D6; }
.podcast .label .num { color: #C9A9DD; }
.podcast h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 10px; }
.podcast p { font-size: 15px; color: #DCD0E4; line-height: 1.55; }
.podcast-player iframe { display: block; border: 0; border-radius: 12px; }
@media (max-width: 960px) { .podcast { grid-template-columns: 1fr; gap: 20px; padding: 24px; margin-top: 48px; } }

/* Play ------------------------------------------------------------------- */
.play-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.play-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--plum-soft); margin: 0; }
.play-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.play-item:hover img { transform: scale(1.04); }
.play-item.tall { grid-row: span 2; }
.play-item:not(.tall) { aspect-ratio: 4 / 3.2; }
.play-item.span2 { grid-column: span 2; }
.play-item figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(23, 20, 26, .78)); }
.play-item figcaption strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.play-item figcaption span { font-size: 14px; opacity: .85; line-height: 1.45; display: block; margin-top: 2px; }

/* Testimonials ----------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding-top: 28px; border-top: 1px solid var(--ink); margin: 0; }
.quote blockquote { font-size: 18px; line-height: 1.55; color: var(--ink); }
.quote blockquote::before { content: "“"; color: var(--plum); font-family: var(--display); font-size: 48px; line-height: 0; display: block; margin: 18px 0 14px; }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote cite { font-style: normal; font-weight: 600; font-size: 15px; display: block; }
.quote footer span { font-size: 14px; color: var(--ink-3); }

/* Contact ---------------------------------------------------------------- */
.contact { margin-top: var(--section); padding: clamp(72px, 10vw, 128px) 0 40px; background: var(--ink); color: var(--bg); }
.contact .label { color: #A79FAE; display: block; margin-bottom: 24px; }
.contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7vw, 104px); line-height: .98; letter-spacing: -.045em; max-width: 900px; text-wrap: balance; margin-bottom: 48px; }
.contact h2 em { font-style: normal; color: #C9A9DD; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-primary { background: var(--bg); color: var(--ink); }
.contact .btn-primary:hover { background: #C9A9DD; }
.contact .btn-ghost { background: transparent; border-color: #3A3540; color: var(--bg); }
.contact .btn-ghost:hover { border-color: var(--bg); }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(72px, 10vw, 128px); padding-top: 28px; border-top: 1px solid #2E2A33; font-size: 14px; color: #A79FAE; }
.footer a:hover { color: var(--bg); }

/* Reveal ----------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head, .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-head p { justify-self: start; }
  .quotes { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: 1fr 1fr; }
  .play-item.tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .hero-grid { grid-template-columns: 1fr; }
  .showcase { aspect-ratio: 16 / 13; max-width: 640px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 20px; color: var(--ink); }
  .nav-cta { display: inline-block !important; margin-top: 12px; padding: 12px 22px !important; font-size: 16px !important; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
  .card.feature .card-media, .card-media { aspect-ratio: 4 / 3; }
  .card-media .go { opacity: 1; transform: none; width: 44px; height: 44px; }
  .skills { grid-template-columns: 1fr; }
  .skill + .skill { padding-left: 0; border-left: 0; }
  .skill { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .play-grid { grid-template-columns: 1fr; }
  .play-item.span2 { grid-column: auto; }
  .play-item:not(.tall) { aspect-ratio: 4 / 3; }
  .stat { padding: 26px 16px 24px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* ==========================================================================
   Case study pages
   ========================================================================== */
.cs-hero { padding: clamp(24px, 3.5vw, 48px) 0 0; }
.cs-back { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); margin-bottom: 36px; transition: color .2s; }
.cs-back:hover { color: var(--plum); }
.cs-back .arrow { transition: transform .25s var(--ease); }
.cs-back:hover .arrow { transform: translateX(-4px); }
.cs-hero .status { margin-bottom: 24px; }
.cs-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 1000px;
  text-wrap: balance;
  margin-bottom: 24px;
}
.cs-hero h1 em { font-style: normal; color: var(--plum); }
.cs-lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 760px; }

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.cs-meta > div { padding: 22px 24px 0 0; }
.cs-meta > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.cs-meta .label { display: block; margin-bottom: 8px; }
.cs-meta p { font-size: 16px; line-height: 1.45; color: var(--ink); }

.cs-cover { margin-top: clamp(40px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; background: var(--plum-soft); }
.cs-cover img { width: 100%; max-height: 680px; object-fit: cover; }

/* Body sections: label column + content column */
.cs-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 40px;
  padding-top: clamp(64px, 8vw, 112px);
}
.cs-section > .label { padding-top: 10px; position: sticky; top: 96px; align-self: start; }
.cs-body { max-width: 780px; }
.cs-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.cs-body h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.015em; margin: 36px 0 10px; }
.cs-body p { color: var(--ink-2); font-size: 18px; margin-bottom: 18px; }
.cs-body p strong, .cs-body li strong { color: var(--ink); font-weight: 600; }
.cs-body ul { list-style: none; margin: 8px 0 22px; }
.cs-body li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 17px; margin-bottom: 12px; }
.cs-body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--plum); }

.cs-wide { grid-column: 1 / -1; }

/* Stats */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.cs-stats.three { grid-template-columns: repeat(3, 1fr); }
.cs-stats > div { padding: 30px 24px 28px 0; }
.cs-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.cs-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.6vw, 50px); line-height: 1; letter-spacing: -.04em; margin-bottom: 10px; }
.cs-stats span { font-size: 15px; color: var(--ink-2); line-height: 1.45; display: block; max-width: 220px; }

/* Cards */
.cs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 8px; }
.cs-cards.three { grid-template-columns: repeat(3, 1fr); }
.cs-card { border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); padding: 22px 22px 20px; }
.cs-card.tint { background: var(--plum-soft); border-color: transparent; }
.cs-card .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--plum); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.cs-card h4 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin-bottom: 6px; }
.cs-card p { font-size: 15.5px; line-height: 1.55; margin: 0; color: var(--ink-2); }

/* Callout / pull quote */
.cs-callout {
  margin: 28px 0;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--plum-soft);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--plum-deep);
}
.cs-quote { margin: 28px 0; padding-left: 22px; border-left: 3px solid var(--plum); }
.cs-quote p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); margin-bottom: 8px; }
.cs-quote cite { font-style: normal; font-size: 15px; color: var(--ink-3); }

/* Figures */
.cs-figure { margin: 32px 0; }
.cs-figure img { width: 100%; max-height: 760px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-raised); }
.cs-figure.full img { max-height: none; height: auto; object-fit: initial; } /* tall full-page screenshots: fill column width */
.cs-figure figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); }
.cs-figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cs-figure-row img { height: 100%; object-fit: cover; }

/* Lesson */
.cs-lesson {
  margin-top: clamp(64px, 8vw, 112px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  padding: clamp(36px, 5vw, 64px);
}
.cs-lesson .label { color: #A79FAE; display: block; margin-bottom: 18px; }
.cs-lesson p { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; letter-spacing: -.025em; max-width: 900px; text-wrap: pretty; }
.cs-lesson p + p { margin-top: 18px; font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.6; letter-spacing: 0; color: #CFC8D4; max-width: 720px; }

/* Next project */
.cs-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.cs-next .label { display: block; margin-bottom: 14px; }
.cs-next h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; margin-bottom: 18px; transition: color .2s; }
.cs-next:hover h3 { color: var(--plum); }
.cs-next .go-text { font-weight: 600; color: var(--plum); display: inline-flex; gap: 8px; }
.cs-next .go-text .arrow { transition: transform .25s var(--ease); }
.cs-next:hover .go-text .arrow { transform: translateX(4px); }
.cs-next .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--plum-soft); }
.cs-next .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cs-next:hover .media img { transform: scale(1.04); }

@media (max-width: 960px) {
  .cs-meta, .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-meta > div:nth-child(3), .cs-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-meta > div:nth-child(n+3) { padding-top: 20px; }
  .cs-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cs-stats.three { grid-template-columns: 1fr 1fr 1fr; }
  .cs-stats.three > div:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--line); border-top: 0; }
  .cs-section { grid-template-columns: 1fr; gap: 14px; }
  .cs-section > .label { position: static; padding-top: 0; }
  .cs-cards.three { grid-template-columns: 1fr 1fr; }
  .cs-next { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cs-meta > div, .cs-stats > div { padding-right: 12px; }
  .cs-meta > div + div, .cs-stats > div + div { padding-left: 12px; }
  .cs-stats.three { grid-template-columns: 1fr; }
  .cs-stats.three > div { padding-left: 0 !important; border-left: 0 !important; }
  .cs-stats.three > div + div { border-top: 1px solid var(--line) !important; }
  .cs-cards, .cs-cards.three, .cs-figure-row { grid-template-columns: 1fr; }
  .cs-body p { font-size: 17px; }
}

/* Project cycling ------------------------------------------------------- */
.cs-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.cs-topbar .cs-back { margin-bottom: 0; }
.cs-pager-mini { display: flex; align-items: center; gap: 20px; }
.cs-pager-mini a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink-3);
  transition: color .2s;
}
.cs-pager-mini a:hover { color: var(--plum); }
.cs-pager-mini a .arrow { transition: transform .25s var(--ease); }
.cs-pager-mini a[rel="prev"]:hover .arrow { transform: translateX(-3px); }
.cs-pager-mini a[rel="next"]:hover .arrow { transform: translateX(3px); }
.cs-pager-mini .count { font-size: 14px; color: var(--line); }

.cs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.cs-pager-card { display: block; }
.cs-pager-card .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--plum-soft); margin-bottom: 20px; }
.cs-pager-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cs-pager-card:hover .media img { transform: scale(1.04); }
.cs-pager-card .label { display: block; margin-bottom: 10px; }
.cs-pager-card.next { text-align: right; }
.cs-pager-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; transition: color .2s; }
.cs-pager-card:hover h3 { color: var(--plum); }

@media (max-width: 720px) {
  .cs-pager-mini .count { display: none; }
  .cs-pager { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cs-pager-card .media { margin-bottom: 12px; border-radius: 12px; }
  .cs-pager-card h3 { font-size: 17px; }
  .cs-pager-card .label { font-size: 10.5px; }
}

/* ==========================================================================
   Consulting page
   ========================================================================== */
.nav-links a[aria-current="page"] { color: var(--plum); }

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: stretch;
}
.offer {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.offer > .label { display: block; margin-bottom: 18px; }
.offer h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 14px; }
.price { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; color: var(--plum); margin-bottom: 20px; }
.price span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-left: 6px; vertical-align: middle; }
.offer-lede { color: var(--ink-2); font-size: 17px; margin-bottom: 24px; }
.offer ul { list-style: none; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 24px; }
.offer li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 16px; margin-bottom: 12px; }
.offer li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--plum); }
.offer-time { margin-top: auto; margin-bottom: 24px; font-size: 16px; color: var(--ink); display: flex; align-items: baseline; gap: 12px; }
.offer .btn { align-self: flex-start; }

.offer.featured { background: var(--plum-deep); border-color: transparent; color: var(--bg); }
.offer.featured .label { color: #C9B6D6; }
.offer.featured .label .num { color: #C9A9DD; }
.offer.featured .price { color: #fff; }
.offer.featured .price span { color: #C9B6D6; }
.offer.featured .offer-lede, .offer.featured li { color: #DCD0E4; }
.offer.featured li::before { background: #C9A9DD; }
.offer.featured ul { border-top-color: rgba(255, 255, 255, .16); }
.offer.featured .offer-time { color: #fff; }
.offer.featured .btn-primary { background: var(--bg); color: var(--ink); }
.offer.featured .btn-primary:hover { background: #C9A9DD; }

.text-link { color: var(--plum); font-weight: 600; display: inline-flex; gap: 6px; }
.text-link .arrow { transition: transform .25s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

@media (max-width: 720px) {
  .offers { grid-template-columns: 1fr; }
  .offer .btn { align-self: stretch; justify-content: center; }
}

/* Offer card hover: lift, magnify, and highlight */
.offer { transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.offer:hover, .offer:focus-within {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--plum);
  box-shadow: 0 24px 48px rgba(78, 52, 96, .14);
}
@media (hover: none) { .offer:hover { transform: none; box-shadow: none; border-color: var(--line); } }

/* Art page --------------------------------------------------------------- */
.art-back { display: inline-block; margin-bottom: 24px; transition: color .2s; }
.art-back:hover { color: var(--plum); }
.art-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(40px, 5vw, 64px) 0 28px; }
.art-chip { font: 500 14px/1 var(--sans); color: var(--ink-2); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.art-chip span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 4px; }
.art-chip:hover { border-color: var(--ink); color: var(--ink); }
.art-chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.art-chip[aria-pressed="true"] span { color: var(--plum-hi); }
.art-grid { columns: 3 300px; column-gap: 16px; }
.art-item { break-inside: avoid; margin: 0 0 16px; }
.art-item[hidden] { display: none; }
.art-item a { display: block; border-radius: 12px; overflow: hidden; background: var(--plum-soft); }
.art-item img { width: 100%; transition: transform .9s var(--ease); }
.art-item a:hover img { transform: scale(1.03); }
.art-item figcaption { padding: 10px 2px 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.art-item figcaption strong { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.art-item figcaption span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.art-outro { margin-top: var(--section); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(23, 20, 26, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1100px, calc(100vw - 140px)); }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox figcaption strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; }
.lightbox figcaption span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.lb-nav, .lb-close { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 20px; cursor: pointer; flex: none; transition: background .2s; }
.lb-nav:hover, .lb-close:hover { background: var(--plum); }
.lb-close { position: absolute; top: 20px; right: 20px; font-size: 26px; }

@media (max-width: 720px) {
  .art-grid { columns: 2 150px; column-gap: 12px; }
  .art-item { margin-bottom: 12px; }
  .art-item figcaption { flex-direction: column; gap: 2px; }
  .art-item figcaption span { text-align: left; }
  .lightbox figure { max-width: calc(100vw - 32px); }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100vh - 200px); }
}
@media (max-width: 720px) {
  .art-filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .art-filters::-webkit-scrollbar { display: none; }
  .art-chip { flex: none; }
}
.play-more { margin-top: 28px; }
.art-insta { margin-top: 20px; font-size: 17px; }

/* Hero agent --------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.agent { position: relative; }
.hero { overflow-x: clip; }
.hero-stats { margin-top: clamp(48px, 6vw, 80px); }
.hero:has(.hero-stats) { padding-bottom: 0; }
.hero:has(.hero-stats) + #work { padding-top: clamp(64px, 8vw, 104px); }
.hero-stats .stats { margin: 0; }
.agent, .agent-card { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .agent-glow { inset: 8% 0 -4% 0; } }
.agent-glow { position: absolute; inset: 8% -6% -4% 4%; background: radial-gradient(60% 60% at 70% 30%, #C9A9DD 0%, transparent 70%), radial-gradient(50% 50% at 20% 80%, #9EC5F0 0%, transparent 70%); filter: blur(40px); opacity: .7; animation: agentGlow 12s ease-in-out infinite alternate; z-index: 0; }
@keyframes agentGlow { to { transform: translate(-4%, 3%) scale(1.06); opacity: .9; } }
.agent-card { position: relative; z-index: 1; height: clamp(500px, 40vw, 580px); display: flex; flex-direction: column; border-radius: 24px; background: linear-gradient(160deg, #1D1922 0%, #141117 100%); color: #EDE7F1; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px -30px rgba(40,20,60,.55), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.agent-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.agent-orb { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 0deg, #C9A9DD, #9EC5F0, #F3C6D8, #C9A9DD); animation: spin 6s linear infinite; box-shadow: 0 0 18px rgba(201,169,221,.55); flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.agent-id b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.agent-id span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9C93A6; }
.agent-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9C93A6; }
.agent-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }
.agent-thread { flex: 1; min-height: 0; overflow: hidden; padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 12px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px); mask-image: linear-gradient(to bottom, transparent 0, #000 48px); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.agent-thread > :first-child { margin-top: auto; }
.is-live .agent-thread { overflow-y: auto; }
.msg { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); max-width: 88%; font-size: 15px; line-height: 1.5; flex-shrink: 0; }
.msg.on { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: #6B4A80; color: #fff; padding: 9px 14px; border-radius: 16px 16px 4px 16px; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; }
.msg.bot .msg-body { color: #D9D2E0; }
.msg.bot strong { color: #fff; font-weight: 600; background: linear-gradient(transparent 62%, rgba(201,169,221,.35) 62%); }
.steps { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.step { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #9C93A6; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-4px); } }
.step .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(201,169,221,.3); border-top-color: #C9A9DD; animation: spin .8s linear infinite; flex-shrink: 0; }
.step.done .spin { animation: none; border: 0; background: #4ADE80; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.agent-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(201,169,221,.45); color: #E3D3ED; font-size: 13px; font-weight: 500; animation: stepIn .35s var(--ease); transition: background .2s, border-color .2s; }
.agent-chip:hover { background: rgba(201,169,221,.15); border-color: #C9A9DD; }
.agent-chip span { transition: transform .25s var(--ease); }
.agent-chip:hover span { transform: translateX(3px); }
.agent-suggest { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.agent-suggest::-webkit-scrollbar { display: none; }
.agent-try { flex-shrink: 0; align-self: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #6F6778; margin-right: 2px; }
.agent-suggest button { flex-shrink: 0; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #D9D2E0; font: 500 13px var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.agent-suggest button:hover { background: rgba(201,169,221,.16); border-color: rgba(201,169,221,.6); color: #fff; }
.agent-input { margin: 8px 14px 14px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 7px 0 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: border-color .2s, background .2s; }
.agent-input:focus-within { border-color: rgba(201,169,221,.7); background: rgba(255,255,255,.07); }
.agent-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #EDE7F1; font: 15px var(--sans); caret-color: #C9A9DD; }
.agent-input input::placeholder { color: #6F6778; }
.agent-send { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #6B4A80; color: #fff; font-size: 15px; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); flex-shrink: 0; }
.agent-send:hover { background: #7E5A95; transform: translateY(-1px); }
@media (max-width: 900px) { .agent-card { height: 520px; } .agent { max-width: 560px; } }
@media (prefers-reduced-motion: reduce) { .agent-glow, .agent-orb, .agent-live i { animation: none; } }

/* Case study: process strip, split layout ------------------------------------ */
.cs-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 24px 0 10px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-raised); }
.cs-flow > div { padding: 18px 18px 16px; position: relative; }
.cs-flow > div + div { border-left: 1px solid var(--line); }
.cs-flow > div + div::before { content: "→"; position: absolute; left: -9px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); color: var(--plum); font-size: 11px; display: grid; place-items: center; }
.cs-flow span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--plum); }
.cs-flow b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 6px 0 4px; }
.cs-flow p { font-size: 14px !important; line-height: 1.45; color: var(--ink-3) !important; margin: 0 !important; }
.cs-flow .out { background: var(--ink); color: var(--bg); }
.cs-flow .out span { color: #C9A9DD; }
.cs-flow .out p { color: #CFC8D6 !important; }
.cs-flow-note { font-size: 14px !important; color: var(--plum) !important; }
.cs-figure a { display: block; cursor: zoom-in; }
.cs-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cs-split .cs-figure { margin: 0; }
.cs-layers { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cs-layers > div { border-left: 3px solid var(--plum); padding: 4px 0 4px 14px; }
.cs-layers b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.cs-layers p { margin: 4px 0 0 !important; font-size: 15px; }
.cs-figure.cs-narrow img { max-width: 520px; display: block; }
@media (max-width: 860px) {
  .cs-flow { grid-template-columns: 1fr 1fr; }
  .cs-flow > div:nth-child(3) { border-left: 0; }
  .cs-flow > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cs-flow > div:nth-child(3)::before { display: none; }
  .cs-split { grid-template-columns: minmax(0, 1fr); }
}

.cs-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.cs-metrics > div { border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); padding: 20px 22px; }
.cs-metrics > div.wide { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: var(--bg); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cs-metrics b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.04em; line-height: 1; }
.cs-metrics span { display: block; margin-top: 8px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.cs-metrics em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; color: var(--ink-3); }
.cs-metrics .wide span { color: #E3D3ED; margin-top: 0; font-size: 17px; }
@media (max-width: 600px) { .cs-metrics { grid-template-columns: minmax(0, 1fr); } }

/* Lightbox ------------------------------------------------------------------- */
.lb-zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(23, 20, 26, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 64px 72px; opacity: 0; transition: opacity .2s var(--ease); }
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); cursor: zoom-in; transform: scale(.97); transition: transform .25s var(--ease); }
.lb.on .lb-fig img { transform: none; }
.lb-fig figcaption { color: #E3DCEA; font-size: 14.5px; text-align: center; max-width: 720px; }
.lb-fig.zoom { position: fixed; inset: 0; overflow: auto; display: block; padding: 64px 24px; }
.lb-fig.zoom img { max-width: none; max-height: none; cursor: zoom-out; margin: 0 auto; display: block; }
.lb-fig.zoom figcaption { display: none; }
.lb-btn { position: fixed; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease); }
.lb-btn:hover { transform: scale(1.06); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -22px; }
.lb-next { right: 16px; top: 50%; margin-top: -22px; }
.lb-btn[hidden] { display: none; }
@media (max-width: 700px) { .lb { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; } }

/* Case study retro ------------------------------------------------------------ */
.cs-retro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.cs-retro > div { border-radius: 16px; padding: 20px 20px 18px; border: 1px solid var(--line); background: var(--bg-raised); border-top-width: 4px; }
.cs-retro .good { border-top-color: var(--go); }
.cs-retro .change { border-top-color: #D9A62E; }
.cs-retro .learn { border-top-color: var(--plum); }
.cs-retro h4 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin-bottom: 12px; }
.cs-retro ul { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.cs-retro li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 !important; }
.cs-retro li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.cs-retro .good li::before { background: var(--go); opacity: 1; }
.cs-retro .change li::before { background: #D9A62E; opacity: 1; }
.cs-retro .learn li::before { background: var(--plum); opacity: 1; }
@media (max-width: 900px) { .cs-retro { grid-template-columns: minmax(0, 1fr); } }
