/* ===================== PROJECT CASE-STUDY PAGE ===================== */
:root { --ind: #4F46E5; --ind-soft: #ECECF8; --pc-lav: #edecf8; }

/* Contain any stray-wide element (carousels, mockups, decorative paw prints) so
   the page never scrolls sideways — on phones an unclipped overflow makes Safari
   shrink the whole page into a narrow column. `clip` doesn't create a scroll
   container, so the sticky nav is unaffected. */
html { overflow-x: clip; }

.pc-nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pc-nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dark .pc-nav { background: rgba(18, 18, 24, .8); }

.pc { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.pc-sec { padding: 96px 0; border-top: 1px solid var(--line); }
.pc-h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.pc-sub { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; }
.pc-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---- nav breadcrumb ---- */
.pc-crumb { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.pc-crumb b { color: var(--ink); font-weight: 600; }
.pc-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.pc-back svg { transition: transform .25s ease; }
.pc-back:hover svg { transform: translateX(-4px); }

/* ---- hero ---- */
.pc-hero-wrap { background: var(--pc-lav); padding-left: 0; padding-right: 0; }
.pc-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; padding: 80px var(--pad) 90px; }
.pc-hero { position: relative; }
.pc-hero-copy { position: relative; z-index: 2; }
.pc-hero-media { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }

/* Pebble blob — organic, morphing shape behind the devices (faint brown) */
.pc-pebble { position: absolute; z-index: 0; width: 92%; padding-bottom: 92%; height: 0; top: 50%; left: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(122, 82, 52, .13), rgba(122, 82, 52, .04));
  border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%;
  transform: translate(-50%, -50%);
  animation: pc-pebble-morph 14s ease-in-out infinite; }

/* Small companion pebble, tucked near the big one */
.pc-pebble-sm { width: 34%; padding-bottom: 34%; top: 14%; left: 87%;
  background: radial-gradient(circle at 32% 30%, rgba(122, 82, 52, .11), rgba(122, 82, 52, .03));
  animation: pc-pebble-morph 11s ease-in-out infinite reverse; }

@keyframes pc-pebble-morph {
  0%, 100% { border-radius: 46% 54% 60% 40% / 48% 42% 58% 52%; transform: translate(-50%, -50%) rotate(0deg); }
  33%      { border-radius: 62% 38% 45% 55% / 58% 52% 48% 42%; transform: translate(-50%, -51%) rotate(4deg); }
  66%      { border-radius: 40% 60% 52% 48% / 44% 56% 44% 56%; transform: translate(-51%, -49%) rotate(-4deg); }
}

/* Dog-paw track — spans the whole hero; each print sits at its own --x/--y and
   lights up in sequence so a dog appears to run up to the laptop and off-frame. */
.pc-paws { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pc-paw { position: absolute; left: var(--x); top: var(--y); width: 46px; fill: #7a5436;
  opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 35deg)) scale(.7);
  animation: pc-paw-run 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s); }

@keyframes pc-paw-run {
  0%        { opacity: 0;   transform: translate(-50%, -50%) rotate(var(--r, 35deg)) scale(.6); }
  6%        { opacity: .55; transform: translate(-50%, -50%) rotate(var(--r, 35deg)) scale(1); }
  34%       { opacity: .55; }
  55%, 100% { opacity: 0;   transform: translate(-50%, -50%) rotate(var(--r, 35deg)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pc-pebble { animation: none; }
  .pc-paw { animation: none; opacity: .28; transform: translate(-50%, -50%) rotate(var(--r, 35deg)) scale(1); }
}
.pc-hero .pc-eyebrow2 { color: var(--ind); font-weight: 600; font-size: 16px; text-transform: none; letter-spacing: 0; }
.pc-title { font-size: clamp(48px, 8vw, 92px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; margin: 14px 0 0; }
.pc-lead { margin-top: 26px; font-size: 18px; line-height: 1.6; color: #4a4a55; max-width: 520px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; color: var(--ind); font-weight: 600; }
.pc-chips .pc-dotsep { display: inline-flex; gap: 7px; align-items: center; }
.pc-chips .pc-dotsep i { width: 7px; height: 7px; border-radius: 50%; background: #b9b6ea; }
.pc-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 50px; margin-top: 40px; }
.pc-meta dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pc-meta dd { font-weight: 700; font-size: 18px; }

/* ---- generic mockup window ---- */
.pc-window { background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(40, 40, 80, .14); padding: 18px; }
.pc-win-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 16px; }
.pc-bar { height: 12px; border-radius: 99px; background: #e4e4ee; }
.pc-pill-ind { width: 110px; height: 30px; border-radius: 99px; background: var(--ind); }
.pc-cardrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pc-minicard { background: #f4f4fb; border-radius: 14px; height: 92px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pc-minicard.is-ind { background: var(--ind); }
.pc-chip-s { width: 46px; height: 22px; border-radius: 7px; background: #d9d9ee; }
.pc-minicard.is-ind .pc-chip-s { background: rgba(255, 255, 255, .85); }
.pc-grid2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-top: 12px; }
.pc-chartcard { background: #f6f6fc; border-radius: 16px; padding: 18px; }
.pc-sidecard { background: #f6f6fc; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pc-line { height: 10px; border-radius: 99px; background: #e0e0ee; }
.pc-line.ind { background: #c7c5f1; }

/* ---- scope of work ---- */
.pc-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 54px; text-align: center; }
.pc-ic { width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center; color: var(--ind); }
.pc-cols3 h3 { color: var(--ind); font-size: 21px; font-weight: 700; }
.pc-cols3 p { margin-top: 12px; color: var(--muted); line-height: 1.65; }

/* ---- project goals ---- */
.pc-goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.pc-goal { background: var(--ind); color: #fff; border-radius: 16px; min-height: 150px; padding: 28px; display: flex; align-items: center; font-size: 21px; font-weight: 700; line-height: 1.2; transition: background .3s ease, transform .3s ease, box-shadow .3s ease; }
.pc-goal:hover { background: #7a5436; transform: translateY(-4px); box-shadow: 0 14px 28px rgba(122, 82, 52, .28); }

/* ---- key take away ---- */
.pc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 56px; text-align: center; }
.pc-keynum { width: 56px; height: 56px; border-radius: 50%; background: var(--ind); color: #fff; font-weight: 700; display: grid; place-items: center; margin: 0 auto 22px; }
.pc-keys h3 { font-size: 20px; font-weight: 700; }
.pc-keys p { margin-top: 12px; color: var(--muted); line-height: 1.6; }

/* ---- user flow ---- */
.pc-flow { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 60px; align-items: center; margin-top: 10px; }
.pc-flow-grid { display: grid; grid-template-columns: 1fr 40px 1fr; grid-auto-rows: 1fr; gap: 22px 0; align-items: center; }
.pc-node { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--bg); }
.pc-node.is-ind { background: var(--ind); border-color: var(--ind); }
.pc-node b { display: block; font-size: 18px; font-weight: 700; }
.pc-node span { font-size: 14px; color: var(--muted); }
.pc-node.is-ind b { color: #fff; }
.pc-node.is-ind span { color: rgba(255, 255, 255, .8); }
.pc-conn { display: flex; align-items: center; }
.pc-conn::before, .pc-conn::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9b6ea; }
.pc-conn i { flex: 1; height: 2px; background: #dad8f3; }

/* ---- execution ---- */
.pc-exec { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 60px; align-items: center; }

/* ---- design components (collage) ---- */
.pc-comp { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 54px; align-items: start; }
.pc-cardbox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 16px 40px rgba(40, 40, 80, .06); }
.pc-swatch { width: 100%; aspect-ratio: 1.3/1; border-radius: 10px; background: var(--ind); }
.pc-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.pc-mini-sw { display: flex; gap: 8px; margin-top: 12px; }
.pc-mini-sw i { width: 26px; height: 26px; border-radius: 6px; }
.pc-aa { font-size: 56px; font-weight: 800; line-height: 1; }
.pc-btn-demo { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; margin-top: 12px; }
.pc-btn-fill { background: var(--ind); color: #fff; }
.pc-btn-out { border: 1px solid var(--line); color: var(--ind); }
.pc-radio { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink); }
.pc-radio i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfcfe0; }
.pc-radio.on i { border-color: var(--ind); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--ind); }
.pc-code { background: #161622; color: #e7e7f2; border-radius: 16px; padding: 22px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 1.7; }
.pc-code .k { color: #8b9bff; } .pc-code .s { color: #6ee7a8; } .pc-code .n { color: #ff8fb0; } .pc-code .c { color: #8a8aa3; }
.pc-code.ind { background: var(--ind); color: rgba(255, 255, 255, .85); }

/* ---- screens ---- */
.pc-screens { display: flex; gap: 26px; overflow-x: auto; padding: 6px 2px 22px; margin-top: 50px; }
.pc-screen { flex: 0 0 auto; width: 340px; border-radius: 20px; }
.pc-stat { background: var(--ind); color: #fff; border-radius: 20px; padding: 26px; }
.pc-stat h4 { font-size: 26px; font-weight: 800; }
.pc-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.pc-statbox { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 14px; }
.pc-statbox span { font-size: 13px; opacity: .8; } .pc-statbox b { display: block; font-size: 24px; font-weight: 800; margin-top: 4px; }
.pc-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pc-prog i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pc-prog .track { flex: 1; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.pc-prog .track b { display: block; height: 100%; background: #fff; border-radius: 99px; }
.pc-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 16px 40px rgba(40, 40, 80, .08); }
.pc-form h4 { font-size: 22px; font-weight: 700; } .pc-form .muted { color: var(--muted); margin-top: 4px; }
.pc-field { margin-top: 16px; } .pc-field label { font-size: 13px; color: var(--muted); }
.pc-field .inp { margin-top: 6px; height: 42px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; padding: 0 12px; justify-content: space-between; color: #b6b6c4; }
.pc-act { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 16px 40px rgba(40, 40, 80, .08); }
.pc-act h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pc-actrow { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.pc-actrow i { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; }

/* ---- timeline ---- */
.pc-timeline { margin-top: 70px; }
.pc-tl-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ind); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.pc-tl-head .ln { flex: 1; height: 2px; background: #dad8f3; }
.pc-weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 36px; }
.pc-week h5 { font-size: 18px; font-weight: 700; }
.pc-week .date { font-size: 12px; color: var(--muted); letter-spacing: .1em; margin: 4px 0 14px; }
.pc-tag { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.pc-tag.lead { background: var(--ind-soft); border-color: transparent; }
.pc-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ind); }

/* ---- next project ---- */
.pc-next-wrap { background: var(--pc-lav); }
.pc-next { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 80px 0; }
.pc-next .pc-eyebrow { color: var(--muted); }
.pc-next h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.pc-next p { color: var(--muted); margin-top: 8px; font-size: 18px; }
.pc-next .btn-pill { background: var(--purple); color: #fff; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; padding: 30px 0 50px; color: var(--muted); font-size: 15px; }
.pc-foot a { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.pc-foot a:hover { color: var(--ink); }

/* ---- real-image figures / iterations / stat row (case studies) ---- */
.pc-hero-img { width: 100%; max-width: 320px; margin: 0 auto; display: block; border-radius: 34px; box-shadow: 0 34px 80px rgba(40, 40, 80, .22); }
.pc-fig { margin-top: 44px; }
/* Screen carousel — one slide at a time with left/right arrows */
.pc-carousel { position: relative; padding: 0 90px; }
.pc-car-viewport { overflow: hidden; border-radius: 14px; }
.pc-car-track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.pc-car-slide { flex: 0 0 100%; }
.pc-car-slide .pc-browser img { height: 560px; object-fit: cover; object-position: top center; }

.pc-car-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border: none; background: none; cursor: pointer;
  color: #b3b3bd; font-size: 40px; line-height: 1; font-weight: 700;
  display: grid; place-items: center;
  transition: color .2s ease, transform .2s ease; }
.pc-car-arrow:hover { color: #7a5436; transform: translateY(-50%) scale(1.12); }
.pc-car-arrow.prev { left: 0; }
.pc-car-arrow.next { right: 0; }

.pc-car-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.pc-car-dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: rgba(122, 82, 52, .28); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.pc-car-dots button.is-active { background: #7a5436; transform: scale(1.25); }
.pc-fig img { width: 100%; border-radius: 18px; display: block; background: #f3f3f8; }
.pc-fig figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 760px; }
.pc-iter { display: grid; grid-template-columns: 1.45fr 1fr; gap: 46px; align-items: center; margin-top: 48px; }
.pc-iter:nth-of-type(even) { grid-template-columns: 1fr 1.45fr; }
.pc-iter:nth-of-type(even) .pc-iter-txt { order: -1; }
.pc-iter img { width: 100%; border-radius: 14px; display: block; }
.pc-iter .ba { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ind); font-weight: 700; }
.pc-iter h3 { font-size: 23px; font-weight: 700; margin: 6px 0 0; }
.pc-iter p { color: var(--muted); line-height: 1.7; margin-top: 12px; }
.pc-statbig { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 44px; }
.pc-statbig .n { font-size: 58px; font-weight: 800; color: var(--ind); letter-spacing: -0.03em; line-height: 1; }
.pc-statbig .l { color: var(--muted); margin-top: 8px; max-width: 200px; }
.pc-table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 15px; }
.pc-table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 0 14px; }
.pc-table td { padding: 14px 0; border-top: 1px solid var(--line); }
.pc-table tr.bad td { color: var(--ind); font-weight: 700; }
.pc-role { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.pc-rolebox { border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.pc-rolebox h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pc-rolebox p { font-size: 17px; line-height: 1.7; color: var(--ink); }
.pc-rolebox.mine { border-color: var(--ind); background: var(--ind-soft); }

/* ---- browser-framed desktop screenshots ---- */
.pc-browser { border-radius: 14px; overflow: hidden; box-shadow: 0 26px 64px rgba(20, 20, 40, .16); border: 1px solid var(--line); background: #fff; }
.pc-browser .bar { height: 40px; background: #f1f1f5; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pc-browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4de; }
.pc-browser img { width: 100%; display: block; }
.pc-browser.tall { max-width: 860px; margin: 0 auto; }
.pc-browser.sm { max-width: calc(100% - 180px); margin: 0 auto; }

/* ---- phone-screen rows / screenshot grids / feature split ---- */
.pc-phones { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 48px; }
.pc-phones img { height: 540px; width: auto; border-radius: 30px; box-shadow: 0 26px 64px rgba(15, 15, 25, .30); display: block; }
.pc-phones figcaption, .pc-shots figcaption { width: 100%; text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.pc-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.pc-shots img { width: 100%; border-radius: 16px; box-shadow: 0 18px 44px rgba(15, 15, 25, .16); display: block; }
.pc-feature { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; margin-top: 10px; }
.pc-feature img { width: 100%; border-radius: 22px; box-shadow: 0 26px 64px rgba(15, 15, 25, .22); display: block; }

@media (max-width: 880px) {
  .pc-iter, .pc-iter:nth-of-type(even), .pc-role, .pc-feature, .pc-shots { grid-template-columns: 1fr; }
  .pc-iter:nth-of-type(even) .pc-iter-txt { order: 0; }
  .pc-phones img { height: 420px; }
  .pc-hero, .pc-flow, .pc-exec { grid-template-columns: 1fr; gap: 40px; }
  .pc-carousel { padding: 0 56px; }
  .pc-car-slide .pc-browser img { height: 380px; }
  .pc-car-arrow { width: 40px; height: 40px; font-size: 32px; }
  .pc-cols3, .pc-goals, .pc-keys, .pc-weeks { grid-template-columns: 1fr 1fr; }
  .pc-meta { gap: 28px; }
  .pc-cardbox.span { grid-column: auto !important; }
}

/* ============ User Journey Map — static image with live emotion row ============ */
.jmemo { position: relative; margin-top: 40px; container-type: inline-size; }
.jmemo img { display: block; width: 100%; }
/* patch that hides the image's baked curve + emojis (matches band background) */
.jm-cover { position: absolute; left: 9.6%; top: 70.8%; width: 87.5%; height: 13.8%;
  background: #fffbfc; z-index: 1; pointer-events: none; }
/* invisible trigger at the emotion band so the graph only animates once that row is on screen */
.jm-trigger { position: absolute; left: 0; top: 75%; width: 1px; height: 1px; pointer-events: none; }
/* the emotion line graph, drawn through the emojis on scroll */
.jm-emoline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.jm-emoline path { fill: none; stroke: #7C5CFC; stroke-width: 3.5; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 4.5s cubic-bezier(.45,0,.2,1); }
.jmemo.is-in .jm-emoline path { stroke-dashoffset: 0; }
/* floating emoji faces sitting on the line */
.jm-emo { position: absolute; left: var(--x); top: var(--y); z-index: 3; line-height: 1;
  pointer-events: none; transform: translate(-50%, -50%); font-size: 3.6cqw;
  animation: jmemo-float 3s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes jmemo-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-9px); }
}
/* redrawn emotion labels (aligned baseline, no clipping) */
.jm-lab { position: absolute; left: var(--x); top: 81%; transform: translateX(-50%); z-index: 3;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.1cqw; line-height: 1.2;
  color: #23232b; text-align: center; white-space: nowrap; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .jm-emo { animation: none; }
  .jm-emoline path { stroke-dashoffset: 0; }
}

/* ============ Wireframe gallery (uniform 2-up grid) ============ */
.pc-h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: #23232b; margin: 56px 0 0; }
.wf-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.wf-gallery img { width: 100%; aspect-ratio: 1.55 / 1; object-fit: cover; object-position: top center;
  border-radius: 14px; border: 1px solid #ececf2; box-shadow: 0 16px 38px rgba(20, 20, 40, .12); display: block;
  transition: transform .3s ease, box-shadow .3s ease; }
.wf-gallery img:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(20, 20, 40, .18); }
@media (max-width: 700px) { .wf-gallery { grid-template-columns: 1fr; } }

/* ============ Design system (typography + colours) ============ */
.ds-type { margin-top: 24px; border-top: 1px solid #ececf2; }
.ds-row { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid #ececf2; }
.ds-spec { font-size: 13px; color: #6b6b76; line-height: 1.5; }
.ds-spec b { display: block; color: #23232b; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ds-sample { font-family: "Poppins", sans-serif; color: #23232b; }
.ds-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin-top: 24px; }
.ds-swatch span { display: block; height: 96px; border-radius: 14px; box-shadow: 0 8px 20px rgba(20, 20, 40, .10); }
.ds-swatch b { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: #23232b; }
.ds-swatch i { font-style: normal; font-size: 13px; color: #6b6b76; letter-spacing: .02em; }
@media (max-width: 700px) { .ds-row { grid-template-columns: 1fr; gap: 10px; } }

/* ===== Dark mode: keep the light hero band & the accent "What I owned" box readable ===== */
/* These bands keep a light background in dark mode, so force dark, readable text (exclude RockX's dark hero) */
.dark .pc-hero-wrap:not(.rx-hero-wrap) { color: #14141a; }
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-title,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-h2,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-meta dd,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-table td { color: #14141a; }
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-lead,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-sub,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-meta dt,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-statbig .l,
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-table th { color: #4a4a55; }
.dark .pc-hero-wrap:not(.rx-hero-wrap) .pc-table td { border-top-color: rgba(0,0,0,.12); }
.dark .pc-rolebox.mine h4 { color: #5a5a66; }
.dark .pc-rolebox.mine p { color: #14141a; }

/* ===== Dark mode: design-system headers & labels that sit on the dark page ===== */
.dark .pc-h3 { color: var(--ink); }
.dark .ds-type { border-top-color: var(--line); }
.dark .ds-spec { color: var(--muted); }
.dark .ds-spec b { color: var(--ink); }
.dark .ds-sample { color: var(--ink) !important; }
.dark .ds-swatch b { color: var(--ink); }
.dark .ds-swatch i { color: var(--muted); }

/* ===== Dark mode: "Built to scale" cards & the light "Next Project" footer band ===== */
.dark .ds-scale h4 { color: var(--ink); }
.dark .pc-next h2 { color: #14141a; }
.dark .pc-next p,
.dark .pc-next .pc-eyebrow { color: #4a4a55; }

/* ===== Dark mode: RockX figure numbers/titles that were hardcoded dark ===== */
.dark .rx-fignum { color: var(--ink); }

/* ===================== SMALL PHONES (case-study pages, all sizes) ===================== */
@media (max-width: 600px) {
  :root { --pad: 16px; }
  /* nav: drop the middle breadcrumb and keep Back + Contact on one tidy row
     (otherwise "Back to Home" wraps to 3 lines and the Contact button is cut off) */
  .pc-crumb { display: none; }
  .pc-back { white-space: nowrap; }
  .pc-nav-inner { gap: 12px; }
  .pc-sec { padding: 60px 0; }
  .pc-hero { padding: 56px var(--pad) 60px; gap: 34px; }
  .pc-title { font-size: clamp(40px, 15vw, 68px); }
  .pc-h2 { font-size: clamp(26px, 8vw, 34px); }
  /* stack the Role / Team / Context (and Result) meta */
  .pc-meta { grid-template-columns: 1fr; gap: 18px; }
  .pc-meta > div { min-width: 0; }
  /* fully collapse the multi-column blocks */
  .pc-cols3, .pc-goals, .pc-keys, .pc-weeks { grid-template-columns: 1fr; gap: 16px; }
  .pc-statbig { gap: 24px; }
  .pc-statbig .l { max-width: none; }
  /* results table: shrink so 4 columns fit narrow screens, and never overflow */
  .pc-table { font-size: 12.5px; }
  .pc-table th, .pc-table td { padding: 10px 0; }
  .pc-table th { font-size: 10.5px; letter-spacing: .04em; }
  /* keep any wide media inside the screen */
  .pc-fig img, .hk-design-row img, .hk-ai-row img, .hk-screens img { max-width: 100%; height: auto; }
  .hk-flow-fig img { width: 100%; max-width: 100%; margin-left: 0; }
  .hk-screens { grid-template-columns: 1fr 1fr; }
  /* show framed screenshots full width (were shrunk to ~210px by the desktop
     `calc(100% - 180px)` rule) */
  .pc-browser.sm { max-width: 100%; }
  /* carousel: use the full card width (desktop insets 56px each side for the
     arrows, which made these screenshots noticeably smaller than the other
     full-width figures) and overlay the nav arrows on top instead */
  .pc-car-slide .pc-browser img { height: auto; }
  .pc-carousel { padding: 0; }
  .pc-car-arrow { width: 34px; height: 34px; font-size: 24px; color: #4a4a55;
    background: rgba(255,255,255,.78); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
  .pc-car-arrow.prev { left: 6px; }
  .pc-car-arrow.next { right: 6px; }
  /* Next-project footer: stack it so the "View Project" button sits below the
     title/body on its own line instead of being squeezed on the right */
  .pc-next { flex-direction: column; align-items: flex-start; gap: 22px; }
  .pc-next .btn-pill { white-space: nowrap; }
}
@media (max-width: 400px) {
  .hk-screens { grid-template-columns: 1fr; max-width: 220px; margin-inline: auto; }
  .pc-table { font-size: 11.5px; }
}
