/* ─────────────────────────────────────────────────────────
   CASE — styles every case-study page shares
   Load after tokens.css + shared/site.css, before the page's
   own <style>, which holds only what that case adds or changes.
   ───────────────────────────────────────────────────────── */

/* ─── Reset ─────────────────────────────────────── */
img { display: block; }


/* ─── Base ───────────────────────────────────────── */
html { scroll-behavior: smooth; }

html, body {
  background: var(--color-neutral-100);
  color: var(--color-black);
  font-family: "Work Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* content column: 1168px centred inside 56px gutters */
.case-inner {
  width: 100%;
  max-width: var(--case-content);
  margin-inline: auto;
}
/* wider column for blocks with their own 112px inset */
.case-inner--wide { max-width: calc(var(--case-content) + 2 * var(--case-gutter)); }


/* ─── Shared type (Figma text styles) ────────────── */
.t-h2      { font-size: 38px; font-weight: 550; line-height: 48px; }
.t-h3      { font-size: 28px; font-weight: 550; line-height: 34px; }
.t-h4      { font-size: 20px; font-weight: 550; line-height: 28px; }
.t-body    { font-size: 16px; font-weight: 400; line-height: 26px; }
.t-label   { font-size: 16px; font-weight: 550; line-height: 16px; }
.t-tag     { font-size: 14px; font-weight: 550; line-height: 20px; }
.t-caption { font-size: 12px; font-weight: 400; line-height: 18px; color: var(--color-neutral-600); text-align: center; }


/* ─── NAV + FOOTER LAYOUT (shared with index.html) ── */
@media (min-width: 1440px) {
  .layout { padding-inline: 0; }
}
/* keeps the nav's place in the page while it floats, so nothing jumps */
.nav-spacer { display: none; height: calc(32px + 2 * 24px); }
.navbar.is-floating + .nav-spacer { display: block; }

.nav-logo {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-black);
  user-select: none;
  transition: width .35s ease, height .35s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ─── HEADER (hero + TL;DR + project info) ───────── */
.case-top {
  overflow: clip;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.case-header {
  position: relative;
  z-index: 2;
  margin-bottom: -28px;
  overflow: clip;
  background: var(--color-black);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.hero-wrap { background: var(--color-harmony-green); }

.hero {
  position: relative;
  height: 749px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--case-gutter) 28px;
  overflow: clip;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  background: var(--color-black);
  color: var(--color-white);
}
/* radial vignette from the design (rotated ellipse, so kept as SVG) */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1280 749' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-81.6 22.25 -13.469 -49.395 992.5 234)'><stop stop-color='rgba(0,0,0,0)' offset='0'/><stop stop-color='rgba(0,0,0,0)' offset='0.35'/><stop stop-color='rgba(0,0,0,0.8)' offset='0.85692'/><stop stop-color='rgba(0,0,0,1)' offset='1'/></radialGradient></defs></svg>");
  background-size: 100% 100%;
}
.hero .case-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-brand { width: 130.182px; height: 24px; }
.hero-title {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.hero-title::before {
  content: "";
  flex: 0 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
}
.hero-title h1 { width: 645px; font-weight: 550; }

.chips { display: flex; gap: 4px; height: 32px; list-style: none; }
.chip-icon {
  position: relative;
  width: 32px;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-harmony-green);
}
.chip-icon img {
  position: absolute;
  left: 8.33px;
  top: 11.67px;
  width: 15.333px;
  height: 10.667px;
}
.tldr {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px var(--case-gutter) 56px;
  background: var(--color-black);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.tldr .case-inner { display: flex; flex-direction: column; gap: 16px; }
.tldr-label { color: var(--color-harmony-green); }

.project-info {
  padding: var(--case-gutter);
  background: var(--color-neutral-100);
}
.project-info .case-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.details { display: flex; flex-direction: column; gap: 16px; }
.detail dt { font-size: 12px; font-weight: 550; line-height: 18px; color: var(--color-neutral-700); }
.detail dd { font-size: 12px; font-weight: 460; line-height: 18px; color: var(--color-black); }
.detail .muted { color: var(--color-neutral-700); }


/* ─── BEFORE / AFTER ─────────────────────────────── */
.preview {
  position: relative;
  z-index: 1;
  padding: 140px var(--case-gutter) 112px;
  background: var(--color-black);
}
.preview-bg,
.preview::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.preview-bg { width: 100%; height: 100%; object-fit: cover; }
.preview::after {
  content: "";
  background: linear-gradient(to top, var(--case-orange-wash), transparent 50%, var(--case-orange-wash));
}
.compare-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding-block: 56px;
  background: var(--color-neutral-50);
  overflow: clip;
}
.compare-panel:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.compare-panel:last-child  { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.compare-body {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.compare-figure {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.compare-figure .t-caption { width: 535.5px; }
.compare-title { color: var(--color-black); text-align: center; }
.compare-claim {
  width: 536px;
  color: var(--color-neutral-900);
  text-align: center;
}


/* ─── CHALLENGE (problem / constraints / outcome) ── */
.challenge {
  margin-top: 56px;
  padding: 112px var(--case-gutter);
  background: var(--color-neutral-900);
  border-radius: var(--radius-2xl);
}
.challenge-grid {
  display: flex;
  gap: 1px;
  overflow: clip;
  border-radius: var(--radius-xl);
  list-style: none;
}
.challenge-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 56px 28px;
  background: var(--color-white);
}
.challenge-card > img { width: 80px; height: 80px; }
.challenge-copy h2 { color: var(--color-neutral-900); }
.challenge-copy strong { font-weight: 550; }


/* ─── Carousels ──────────────────────────────────
   Rows wider than the column scroll sideways. The track
   spans the full section width and moves 1:1 with the
   drag / swipe (no snapping). It isn't a scroll box, so
   shadows and everything above/below stay visible; the
   section only clips at the screen edges.            */

.carousel {
  --rail-track: var(--color-neutral-200);
  --rail-thumb: var(--color-neutral-400);
  --rail-thumb-hover: var(--color-neutral-500);
}

.rail {
  position: relative;
  display: flex;
  gap: 56px;
  align-items: center;
  margin-inline: calc(-1 * max(var(--case-gutter), (100cqw - var(--case-content)) / 2));
  padding-inline: max(var(--case-gutter), (100cqw - var(--case-content)) / 2);
  list-style: none;
}
/* without JS it falls back to a plain scroll box */
.rail:not(.is-enhanced) { overflow-x: auto; }
.rail.is-enhanced {
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
}
.rail--top { align-items: flex-start; }
.rail > * { flex: 0 0 auto; }
.rail.is-dragging { cursor: grabbing; user-select: none; }
/* keyboard / scrollbar-click moves glide; drags and swipes don't */
.rail.is-gliding { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.rail img { -webkit-user-drag: none; }
.rail:focus-visible { outline: 2px solid var(--color-text); outline-offset: 8px; }

/* scrollbar drawn to match the UI, as wide as the content column */
.rail-bar {
  position: relative;
  height: 6px;
  margin-top: 32px;
  background: var(--rail-track);
  border-radius: var(--radius-pill);
  cursor: pointer;
  touch-action: none;
}
.rail-bar[hidden] { display: none; }
.rail-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--rail-thumb);
  border-radius: inherit;
  cursor: grab;
}
.rail-thumb:hover,
.rail-bar.is-dragging .rail-thumb { background: var(--rail-thumb-hover); }
.rail-bar.is-dragging .rail-thumb { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
  .rail.is-gliding { transition: none; }
}


/* ─── RESULTS + LEARNINGS ────────────────────────── */
.results {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 112px;
  padding: 112px var(--case-gutter);
  background: var(--color-neutral-900);
  border-radius: var(--radius-2xl);
  color: var(--color-white);
}
.results-intro { display: flex; flex-direction: column; gap: 56px; }
.results-head { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.results-head p { color: var(--color-neutral-50); }

.figures {
  background: var(--color-neutral-700);
  border-radius: var(--radius-xl);
}
.figures-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: clip;
  border-radius: var(--radius-xl);
}


/* ─── TOOLTIP (reusable) ─────────────────────────
   data-tooltip="Label" on any positioned element shows a small dark
   label above it on hover / keyboard focus. */

.stats { display: flex; gap: 1px; list-style: none; }
.stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--color-white);
  color: var(--color-black);
}
.stat-value { display: flex; flex-direction: column; }
.stat-value b     { font-weight: 550; }

.figures-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 24px;
}
.figures-foot img { width: 16px; height: 16px; }

.sellers {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-inline: 28px;
}
.sellers-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sellers-copy p { color: var(--color-neutral-50); }
.stats--pair {
  flex: 0 0 688px;
  overflow: clip;
  border-radius: var(--radius-xl);
}

.learnings {
  /* sits above the "Don't miss it" band, which tucks 32px under it */
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.learnings-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 112px 112px 56px;
}
.section-label { color: var(--color-neutral-700); text-transform: uppercase; }
.learning-list { display: flex; flex-direction: column; gap: 28px; list-style: none; }
.learning {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1056px;
}
.learning-title { display: flex; flex-direction: column; gap: 8px; color: var(--color-black); }
.learning-title img { width: 16px; height: 16px; }
.learning p { width: 688px; padding-top: 28px; color: var(--color-black); }


/* ─── MORE CASES (homepage work cards) ───────────── */

.work-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-card .card-title { margin-top: 2px; }
.work-card .card-desc { margin-top: 28px; }

.media {
  position: relative;
  display: block;
  width: 100%;
  background: var(--color-surface-placeholder);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border-radius: 0;
  transition: border-radius .3s ease;
}
.work-card .media {
  margin-top: 12px;
  aspect-ratio: 4 / 3;
}

.media .mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .mockup { transform: scale(1.05); }

/* auto-advancing slideshow inside .media (JS moves the track) */
.media .slides {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.media .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card:hover .cta {
  opacity: 1;
  transform: translate(-50%, -50%);
}


/* ─── FOOTER (copied from index.html) ────────────── */
.footer {
  position: relative;
  width: 100%;
  background: var(--color-tech-green);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: 56px 0 40px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}


/* ─── IMAGE ZOOM ─────────────────────────────────── */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 2px solid var(--color-text); outline-offset: 4px; }

.zoom {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 112px var(--case-gutter) 56px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.zoom[open] {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
}
.zoom::backdrop {
  background: var(--color-backdrop);
}
.zoom-frame { position: relative; line-height: 0; }
.zoom-image {
  max-width: calc(100vw - 2 * var(--case-gutter));
  max-height: calc(100dvh - 168px);
  width: auto;
  height: auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--case-shadow-xl);
  cursor: zoom-out;
}
/* "Read case" button colours, as an icon sitting on the
   image's top-right corner */
.zoom-close {
  position: absolute;
  top: -24px;
  right: -24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--color-accent);
  color: var(--color-text);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.zoom-close svg { width: 16px; height: 16px; display: block; }
.zoom-close:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
html:has(.zoom[open]) { overflow: hidden; }


/* ═════════════════════════════════════════════════════════
   Moved from the TaDá page so every case page shares them:
   NDA notice · case nav + contents indicator · reveal · chips
   · tooltip · work-card hover · zoom open animation
   ═════════════════════════════════════════════════════════ */
/* ─── NDA BANNER + NAV ───────────────────────────── */
/* the grid row collapses to 0 on "Got it", so the notice folds
   up and the nav slides into its place instead of jumping */
.nda-wrap {
  display: grid;
  grid-template-rows: 1fr;
  background: var(--color-harmony-green);
  transition: grid-template-rows .45s cubic-bezier(.4, .2, .2, 1);
}
.nda-wrap.is-dismissed { grid-template-rows: 0fr; }
.nda {
  min-height: 0;
  overflow: hidden;
  background: var(--color-celestial-blue);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  color: var(--color-white);
  transition: opacity .3s ease;
}
.nda-wrap.is-dismissed .nda { opacity: 0; }
.nda[hidden] { display: none; }
/* side margins come from .layout, same as the nav */
.nda-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.nda-msg { display: flex; align-items: center; gap: 8px; }
.nda-msg img { width: 16px; height: 16px; }
/* "Got it": Content/Link, underlined at rest (Figma); the line
   thickens and drops on hover like the CV link */
.nda-dismiss {
  font: inherit;
  font-size: 16px;
  font-weight: 550;
  line-height: 24px;
  color: var(--color-white);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 10%;
  text-underline-offset: 25%;
  transition: text-decoration-thickness .2s ease, text-underline-offset .2s ease;
}
.nda-dismiss:hover,
.nda-dismiss:focus-visible {
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}




/* Case-page nav has two states:
   1. on the green bar under the NDA notice — pinned, but *below*
      the header, so the hero slides up over it while scrolling
   2. once the TL;DR has scrolled past it floats like the homepage
      nav (frosted, compact logo) and drops in with the same
      overshoot; scrolling back up tucks it away with the wind-up */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 24px;
  background: var(--color-harmony-green);
  animation: fade-in .8s ease both;
  transition: background-color .35s ease, backdrop-filter .35s ease,
              transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.navbar.is-floating {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 14px;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
}
.navbar.tuck {
  transform: translateY(-130%);
  transition: transform .42s cubic-bezier(.36, 0, .66, -.56);
}
.navbar.no-transition,
.navbar.no-transition .nav-logo { transition: none; }
/* case pages: back arrow | section links (contents) | logo */
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
/* compact logo while floating, same as the homepage */
.navbar.is-floating .nav-logo { width: 24px; height: 24px; }

/* the 32px icon carries 7px of air, so it sits 6px into the gutter
   and its arrow lines up with the content edge (Figma pl 50) */
.nav-back {
  justify-self: start;
  display: inline-flex;
  margin-left: -6px;
  border-radius: var(--radius-md);
}
.nav-back img { width: 32px; height: 32px; }
/* arrow nudges the way it points, like the footer link arrows */
.nav-back img { transition: transform .25s cubic-bezier(.4,.2,.2,1); }
.nav-back:hover img,
.nav-back:focus-visible img { transform: translateX(-3px); }
.nav-back:focus-visible,
.nav-logo:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }

/* section links = the project's table of contents. Homepage link
   behaviour (underline on hover); the current section carries a
   line that slides from link to link as you scroll. */
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.nav-links a {
  display: block;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 550;
  line-height: 24px;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 8%;
  text-underline-offset: 25%;
  transition: text-decoration-color .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { text-decoration-color: var(--color-black); }
.nav-links a[aria-current="true"] { text-decoration-color: transparent; }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 1px;
  height: 1.28px;
  width: var(--w, 0);
  background: var(--color-black);
  transform: translateX(var(--x, 0));
  opacity: var(--o, 0);
  pointer-events: none;
  transition: transform .45s cubic-bezier(.4, .2, .2, 1),
              width .45s cubic-bezier(.4, .2, .2, 1),
              opacity .2s ease;
}
/* anchors land below the floating nav */
/* anchors land below the floating nav (zero specificity, so a page can override) */
:where(main [id]) { scroll-margin-top: 64px; }

/* ─── REVEAL (reusable) ──────────────────────────
   Add data-reveal to anything that should rise in the first
   time it enters the viewport; --i staggers siblings (90ms each).
   Only armed when JS runs (html.js), so nothing hides without it. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
html.js [data-reveal] { opacity: 0; }
html.js [data-reveal].is-in {
  animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; }
  html.js [data-reveal].is-in { animation: none; }
  .nda-wrap, .nda, .nav-indicator { transition: none; }
}

.chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  /* filled pill, same tag UI as the Marley Spoon case */
  border: 1px solid var(--color-black);
  border-radius: var(--radius-pill);
  background: var(--color-harmony-green-tint);
  color: var(--color-black);
}
.chip--status {
  padding: 0 8px 0 0;
  border: 0;
  background: var(--color-harmony-green-tint);
  color: var(--color-black);
}

.case-summary { background: var(--color-neutral-100); }
.tldr-text {
  max-width: 696px;
  font-size: 20px;
  font-weight: 460;
  line-height: 28px;
  color: var(--color-white);
}

/* ─── TOOLTIP (reusable) ─────────────────────────
   data-tooltip="Label" on any positioned element shows a small dark
   label above it on hover / keyboard focus. */
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-900);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 550;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: var(--case-shadow-soft);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .15s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  [data-tooltip]::after, .flag > img { transition: opacity .15s ease; }
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1;
}
.work-card:hover .media::after { opacity: 1; }
.work-card:hover .media { border-radius: var(--radius-hover); }

/* ─── IMAGE ZOOM ─────────────────────────────────── */
/* opens from the image, like it was picked up (Marley Spoon case) */
@keyframes zoom-in-from {
  from { opacity: 0; transform: scale(.96); }
}
.zoom[open] .zoom-frame { animation: zoom-in-from .24s cubic-bezier(.2,.7,.2,1); }
.zoom[open]::backdrop { animation: fade-in .24s ease; }
@media (prefers-reduced-motion: reduce) {
  .zoom[open] .zoom-frame { animation-name: fade-in; }
}


/* ─── "DON'T MISS IT" BAND (Suburbs + Fiserv) ──────
   Homepage background; it starts under the learnings panel so
   its rounded corners sit on the same colour. Cards follow the
   Figma showcaseCases: H4 title, body copy, 225px thumb strip. */
.showcase {
  display: flex;
  flex-direction: column;
  padding-inline: 112px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}
.showcase-band {
  margin-top: calc(-1 * var(--radius-2xl));
  padding: calc(56px + var(--radius-2xl)) 0 56px;
  background: var(--color-bg);
}
.showcase-band .showcase { margin-top: 0; gap: 56px; }
.showcase-band .work-card { gap: 14px; }
.showcase-band .work-card .card-title {
  margin-top: 0;
  font-size: 20px;
  font-weight: 550;
  line-height: 28px;
  letter-spacing: 0;
}
.showcase-band .work-card .card-desc {
  margin-top: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-neutral-700);
}
.showcase-band .work-card .media { margin-top: 14px; aspect-ratio: auto; height: 225px; }
/* crops from the design */
.media .mockup.crop--credit { object-position: center 85.2%; }
.media .mockup.crop--tada {
  inset: auto;
  left: -66.92%;
  top: -81.34%;
  width: 199.39%;
  height: 249.57%;
  max-width: none;
}


/* ═════════════════════════════════════════════════════════
   Reusable pieces introduced by the Fiserv case
   ═════════════════════════════════════════════════════════ */

/* ─── BLEED SCREENSHOT ──────────────────────────────
   Asset-frame screenshots ship with their rounded corners and
   drop shadow baked in, so the PNG is bigger than the frame it
   fills. The wrapper is the frame (the size in the design); the
   image overhangs it by the shadow's padding on each side.
   Set the padding per export with the --bleed-* variables. */
.bleed {
  --bleed-t: 0px; --bleed-r: 0px; --bleed-b: 0px; --bleed-l: 0px;
  position: relative;
  width: 100%;
}
.bleed > img {
  display: block;
  width: calc(100% + var(--bleed-l) + var(--bleed-r));
  max-width: none;
  height: auto;
  margin: calc(-1 * var(--bleed-t)) calc(-1 * var(--bleed-r)) calc(-1 * var(--bleed-b)) calc(-1 * var(--bleed-l));
}
/* desktop screens, 1224px export of a 1168px frame */
.bleed--desktop { --bleed-t: 20px; --bleed-r: 28.5px; --bleed-b: 36.5px; --bleed-l: 28px; }
/* half-width desktop crops, 721px export of a 688px frame */
.bleed--half    { --bleed-t: 12px; --bleed-r: 17px;   --bleed-b: 22.5px; --bleed-l: 16.5px; }
/* zoom shows the bare screenshot, so drop the white card behind it */
.zoom-image.is-bleed { background: none; border-radius: 0; box-shadow: none; }


/* ─── NUMBERED MARKER ───────────────────────────────
   Yellow dot that ties a note to a spot on a screenshot.
   .marker is the dot; .marker-ping sits over a dot that's baked
   into a screenshot (--x / --y = its top-left in the frame) and
   rings when its note is hovered or the shot first shows up.
   Use percentages so the ring follows the frame when it scales. */
.marker {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-solar-yellow);
  color: var(--color-black);
  font-size: 14px;
  font-weight: 550;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.marker-ping {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
}
.marker-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 var(--color-solar-yellow);
  opacity: 0;
}
.marker-ping.is-pinging::after { animation: marker-ping 1.1s cubic-bezier(.2, .7, .2, 1) 2; }
@keyframes marker-ping {
  0%   { opacity: 1; box-shadow: 0 0 0 0 var(--color-solar-yellow); }
  100% { opacity: 0; box-shadow: 0 0 0 14px var(--color-solar-yellow); }
}


/* ─── BREADCRUMB (product path above a feature) ─── */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--color-neutral-700);
}
.crumbs > img { width: 20px; height: 20px; }
.crumbs ol { display: flex; gap: 2px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 2px; }


/* ─── NOTE CARD (design decision next to a screen) ─
   Marker + title, body, and an optional source line pinned
   to the bottom so cards in a row line up. --flat drops the
   white card for notes that sit beside a screenshot. */
.note {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  transition: box-shadow .25s ease;
}
.note--flat { padding: 0; gap: 24px; background: none; border-radius: 0; }
.note-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.note-head h3 { font-size: 16px; font-weight: 550; line-height: 26px; color: var(--color-neutral-900); }
.note > p { font-size: 16px; line-height: 26px; color: var(--color-neutral-600); }
.note-source {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--color-deep-blue);
}
.note-source img { width: 24px; height: 24px; }


/* ─── LOCK BADGE ("can't be shown or shared") ───── */
.lock-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-danger);
}
.lock-badge img { width: 11.111px; height: 11.111px; }
.lock-badge--lg { width: 24px; height: 24px; }
.lock-badge--lg img { width: 13.333px; height: 13.333px; }

@media (prefers-reduced-motion: reduce) {
  .marker-ping.is-pinging::after { animation: none; }
}
