/* =========================================================
   olehabib — Case study template (work/*.html, generated by build-cases.py)
   Shares tokens, nav, footer, reveals and breakpoints with styles.css.
   Each page sets --case-accent on <body> (the project's own colour).

   Desktop layout: hero spans the container; everything after sits in a
   centred 898px body column (label column 354px + content), the process
   circles and gallery break out wider (1084px / 1120px).
   ========================================================= */

.page-case { --case-body: 898px; --case-label-w: 354px; --case-gallery: 1120px; }
.case { padding-bottom: 120px; overflow-x: clip; }   /* some frames are wider than the screen on phones, like Framer */

/* ---------- Hero ---------- */
.case-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "title intro" ". meta" "cover cover";
  column-gap: 24px;
  padding-top: 42px;
}
.case-hero__title { grid-area: title; font-size: 44px; line-height: 1.2; letter-spacing: -0.02em; }
.case-hero__title .accent { color: var(--case-accent); }
.case-hero__intro { grid-area: intro; display: flex; flex-direction: column; gap: 24px; font-size: 20px; line-height: 1.2; }
.case-hero__intro strong { color: var(--intro-strong-color, var(--case-accent)); font-weight: var(--intro-strong-weight, 400); }
.case-hero__meta {
  grid-area: meta;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  margin: var(--meta-gap, 48px) 0 0;
}
.case-hero__meta dt { font-size: 14px; line-height: 1.2; color: var(--case-accent); text-transform: uppercase; }
.case-hero__meta dd { margin: 6px 0 0; font-size: 16px; line-height: 1.2; }
.case-hero__cover { grid-area: cover; width: 100%; aspect-ratio: var(--d-ratio, 1360 / 551); margin-top: 56px; overflow: hidden; }
.case-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* full-width gradient band behind a fixed-size mockup: the band follows the screen, the mockup doesn't */
.case-hero__cover--band { width: 100vw; margin-left: calc(50% - 50vw); aspect-ratio: auto; height: var(--band-h); display: flex; justify-content: center; }
.case-hero__cover--band img { width: auto; max-width: none; height: 100%; flex: none; }

/* ---------- Body column ---------- */
.case-body { display: flex; flex-direction: column; align-items: center; gap: 120px; padding-top: var(--body-top, 80px); }
.case-body > * { width: 100%; max-width: var(--case-body); }
/* per-page spacing after a section ("--after:-40px" in its style), phones use --m-after */
.case-body > [style*="-after"] { margin-bottom: var(--after, 0); }

.case-note { font-size: 14px; line-height: 1.2; font-weight: 300; max-width: 323px; align-self: center; margin-right: calc(var(--case-body) - 323px); }
.case-note--wide { max-width: none; margin-right: 0; }
.case-note strong { font-weight: 700; }
.case-note a { text-decoration: underline; }

.case-label { font-size: 24px; line-height: 1; letter-spacing: -0.02em; font-weight: 700; }
.case-label--light { font-weight: 400; }

/* label column + content column */
.case-row { display: grid; grid-template-columns: var(--case-label-w) minmax(0, 1fr); align-items: start; }
.case-row__body { min-width: 0; }
.case-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--list-gap, 40px); }
.case-list__intro { font-size: 16px; line-height: 1.3; font-weight: 400; margin-bottom: 32px; }
.case-list__note { font-size: 14px; line-height: 1.2; color: var(--case-accent); margin-bottom: 16px; }

/* numbered items (challenges): big text with dividers */
.case-list--lines { gap: 0; }
.case-list--lines > li { padding: 32px 0; border-bottom: 1px solid #444; }
.case-list--lines > li:first-child { padding-top: 0; }
.case-num { display: grid; grid-template-columns: 48px minmax(0, 1fr); }
.case-num__n { font-size: 20px; line-height: 1.2; color: var(--case-accent); }
.case-num__text { font-size: 26px; line-height: 1.1; }

/* solutions: number + title + description */
.case-sol { display: grid; grid-template-columns: 41px minmax(0, 1fr); }
.case-sol__title { font-size: 20px; line-height: 1.2; }
.case-sol__body { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.3; font-weight: 400; }
/* solutions: dividers between items, none after the last */
.case-list--sol > li:last-child { border-bottom: 0; padding-bottom: 0; }
.case-sol__body ul { margin: 0; padding-left: 20px; }
.case-sol__body strong { font-weight: 700; }

/* ---------- Process: numbered circles ---------- */
.case-process { display: flex; flex-direction: column; gap: var(--process-gap, 48px); }
.case-steps {
  --size: var(--steps-size, 204px); --gap: var(--steps-gap, 16px);
  list-style: none; margin: 0 auto; padding: 0;
  width: calc(var(--cols) * var(--size) + (var(--cols) - 1) * var(--gap));
  max-width: calc(100vw - 2 * var(--gutter));
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--steps-row-gap, var(--gap)) var(--gap);
  align-self: center;
}
.case-process { max-width: none !important; align-items: stretch; }
.case-process > .case-label { width: 100%; max-width: var(--case-body); margin: 0 auto; }
/* circles that start at the text column's left edge instead of centring */
.case-process[style*="--steps-left"] .case-steps { align-self: flex-start; margin-left: max(0px, calc((100% - var(--case-body)) / 2)); }
.case-step {
  width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background: var(--step-bg, #151515);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center; color: #d9d9d9;
}
.case-step--outline { background: transparent; box-shadow: inset 0 0 0 1px #333; }   /* steps done by others (outlined on Framer) */
.case-step__n { font-size: 14px; line-height: 1; color: var(--case-accent); }
.case-step__text { font-size: 18px; line-height: 1.1; letter-spacing: 0.01em; font-weight: 400; }

/* ---------- Statement ---------- */
.case-statement { display: flex; flex-direction: column; gap: 16px; }
.case-statement .case-label { line-height: 1.2; }
.case-statement__text { color: var(--statement-color, inherit); font-size: var(--statement-size, 36px); line-height: 1.2; text-wrap: pretty; }

/* ---------- Gallery ---------- */
.case-gallery {
  max-width: var(--case-gallery);
  display: flex; flex-direction: column; gap: var(--g-gap, 40px);
}
.case-g-text { font-size: 16px; line-height: 1.2; font-weight: 400; max-width: 694px; }
.case-g-text--large { font-size: 20px; line-height: 1.2; font-weight: 400; max-width: 560px; }
.case-g-text--accent { color: var(--case-accent); }
.case-g-heading { font-size: var(--g-heading-size, 24px); line-height: 1.2; font-weight: var(--g-heading-weight, 500); letter-spacing: -0.02em; margin-top: var(--g-heading-mt, 40px); max-width: var(--g-heading-max, none); }
/* per-page gallery spacing: heading→images (--g-hr), images→body text (--g-rb), text→display link (--g-td) */
.case-g-heading + .case-g-row { margin-top: var(--g-hr, 0); }
.case-g-row + .case-g-body { margin-top: var(--g-rb, 0); }
.case-g-text + .case-g-display { margin-top: var(--g-td, 0); }
/* text set in the body column inside a full-width gallery */
.case-g-body { width: 100%; max-width: var(--g-body-max, var(--case-body)); align-self: flex-start; margin-left: max(0px, calc((100% - var(--case-body)) / 2)); }
.case-g-text + .case-shot { margin-top: var(--g-tr, 0); }
.case-shot--cap-top figcaption { margin: 0 0 4px; }
/* spacing around headings, descriptions and tiles follows the live page */
.case-g-heading:first-child { margin-top: var(--g-first, 40px); }
.case-g-heading + .case-g-text { margin-top: var(--g-ht, -16px); }
/* per-page: heading→text and text→images spacing (gallery style --g-ht / --g-tr, phones --m-g-ht / --m-g-tr) */
.case-g-text + .case-g-row { margin-top: var(--g-tr, 0); }
.case-g-text + .case-tiles { margin-top: 20px; }
.case-g-display + .case-g-text { margin-top: -18px; }
.case-gallery:has(.case-tiles) { max-width: 1360px !important; }

/* ---------- Composed tiles (see render_tiles in build-cases.py) ---------- */
.case-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-tile { position: relative; overflow: hidden; max-width: 100%; }
.case-tile__inner { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.case-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-tile__layer { position: absolute; height: auto; display: block; }
@media (hover: hover) { .case-tile:hover .case-tile__inner { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .case-tile__inner { transition: none; } }
.case-g-display { --size: 128px; font-size: var(--size); line-height: 1.2; letter-spacing: -0.02em; text-transform: var(--display-transform, uppercase); }
.case-g-display--accent { color: var(--case-accent); }

/* ---------- Collage (free-form showcase, see render_collage in build-cases.py) ---------- */
.case-gallery:has(.case-collage) { max-width: var(--max-collage, 1360px) !important; }
/* spacing follows the live page: 60px between groups, 16px inside a run of pairs ("tight"),
   notes 40px under the image they describe */
.case-collage { display: flex; flex-direction: column; gap: 60px; }
.case-collage__row--tight { margin-top: -44px; }
.case-collage__row:has(.case-collage__col--push) { align-items: stretch; }
.case-collage__col--push > :last-child { margin-top: auto; }
.case-collage__side { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.case-collage__side .case-collage__note { max-width: 424px; }
.case-collage__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.case-collage__col { display: flex; flex-direction: column; gap: 16px; }
/* every image sits centred in a frame (colour or gradient background, size from the live page) */
.case-collage__frame { display: flex; align-items: center; justify-content: center; overflow: hidden; max-width: 100%; }
.case-collage img { display: block; height: auto; }
.case-collage__wide { display: flex; justify-content: center; }
.case-collage__wide--left { justify-content: flex-start; }
.case-collage__wide--right { justify-content: flex-end; }
.case-collage__note { max-width: 496px; font-size: 16px; line-height: 1.2; font-weight: 400; margin: 0; }
.case-collage__col .case-collage__note { margin-top: 24px; }
.case-collage__note--right { align-self: flex-end; width: calc(50% - 8px); }
.case-collage--mobile { display: none; }
.case-g-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 12px; font-weight: 300; color: #e3e3e3; margin-bottom: -28px; }

.case-g-row { display: grid; grid-template-columns: var(--tpl, repeat(var(--cols), minmax(0, 1fr))); gap: var(--g-row-gap, 58px) var(--g-col-gap, 24px); align-items: start; }
.case-gallery .case-shot--m-only { display: none; }

.case-shot { margin: 0; display: flex; flex-direction: column; }
/* Sizes come from inline CSS variables set by build-cases.py:
   --d-ratio / --d-w for desktop and tablet, --m-ratio / --m-w for phones (when Framer serves phones a different size) */
.case-shot picture { display: contents; }
.case-shot img { width: 100%; height: auto; display: block; aspect-ratio: var(--d-ratio); object-fit: cover; }
.case-shot__panel { display: flex; align-items: center; justify-content: center; overflow: hidden; max-width: 100%; aspect-ratio: var(--d-ratio); }
.case-shot__panel img { width: var(--d-w); height: auto; max-height: 100%; aspect-ratio: var(--d-ir, auto); object-fit: var(--fit, cover); margin-right: var(--d-shift, 0); clip-path: var(--clip, none); align-self: var(--d-align, auto); border-radius: var(--radius, 0); }
/* tall image pinned near the panel top and cropped at the bottom */
.case-shot__panel[style*="--d-top"] img { align-self: flex-start; margin-top: var(--d-top); max-height: none; }
.case-shot figcaption { margin-top: 4px; font-size: 12px; line-height: 1.2; font-weight: 400; color: #e3e3e3; }
/* single image on a stage: caption centred under the panel */
.case-shot--stage figcaption { margin-top: 0; padding: 2px 0; background: transparent; text-align: center; }
/* caption laid over the bottom of its panel */
.case-shot--cap-in { position: relative; }
.case-shot--cap-in figcaption { position: absolute; left: 0; right: 0; bottom: var(--cap-bottom, 22px); margin: 0; padding: 0; text-align: center; }

/* ---------- Image hover: a small zoom inside the frame ---------- */
.case-shot__frame { overflow: hidden; }
.case-shot { overflow: hidden; }
.case-shot img, .case-collage img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
  .case-shot__panel:hover img,
  .case-shot:not(.case-shot--panel):hover img,
  .case-collage__frame:hover img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .case-shot img, .case-collage img { transition: none; }
}

/* ---------- Outcomes ---------- */
.case-out { display: flex; flex-direction: column; }
.case-out__icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--case-accent); }
.case-out__icon svg { width: 100%; height: 100%; display: block; }
.case-out__title { color: var(--out-title-color, inherit); font-size: var(--out-title, 30px); line-height: 1.1; }
.case-out p { margin-top: 16px; font-size: 16px; line-height: 1.3; font-weight: 400; }
.case-row .case-list--lines .case-out { padding: var(--out-pad, 32px) 0 40px; }
.case-row .case-list--lines .case-out:first-child { padding-top: 0; }

/* ---------- Collaborators ---------- */
.case-people { list-style: none; margin: 0; padding: 0; font-size: var(--people-size, 16px); line-height: 1.3; font-weight: 400; }

/* =========================================================
   TABLET  810px – 1199.98px
   ========================================================= */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .page-case { --case-body: 100%; --case-label-w: 220px; --case-gallery: 100%; }
  .case-hero { grid-template-columns: 1fr; grid-template-areas: "title" "intro" "cover" "meta"; row-gap: 32px; }
  .case-hero__title { font-size: 40px; }
  .case-hero__meta { margin-top: 0; }
  .case-hero__cover { margin-top: 16px; }
  .case-note { margin-right: 0; align-self: flex-start; }
  .case-steps { --size: 167px; }
  .case-steps[style*="--cols:5"] { --cols: 4 !important; }
  .case-g-display { font-size: calc(var(--size) * .75); }
}

/* ---------- Confidential lock ----------
   The passkey gate sits where the encrypted part of the page begins, on a soft dark gradient.
   html.lock-open (set before paint when this tab already unlocked) skips the gate. */
.case-lock { position: relative; display: flex; flex-direction: column; }
.case-lock__gate {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 72px 24px 64px; border-radius: 4px;
  background: linear-gradient(#161616, var(--bg));
}
.case-lock__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--case-accent, var(--accent)); margin-bottom: 24px; }
.case-lock__title { font-size: 28px; line-height: 1.2; font-weight: 500; }
.case-lock__text { margin-top: 12px; max-width: 420px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.case-lock__form { display: flex; gap: 8px; margin-top: 32px; }
.case-lock__input {
  width: 200px; height: 52px; padding: 0 16px; border-radius: 999px;
  background: #141414; border: 1px solid var(--line); color: var(--fg);
  font: inherit; font-size: 20px; letter-spacing: .4em; text-align: center;
  transition: border-color .2s;
}
.case-lock__input::placeholder { color: #4a4a4a; }
.case-lock__input:focus { outline: none; border-color: var(--fg); }
.case-lock__input[aria-invalid="true"] { border-color: #ff5d5d; animation: lock-shake .4s; }
.case-lock__btn {
  height: 52px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fg); color: var(--bg); font: inherit; font-size: 16px; font-weight: 500;
  transition: opacity .2s;
}
.case-lock__btn:hover { opacity: .85; }
.case-lock__btn:disabled { opacity: .5; cursor: progress; }
.case-lock__msg { min-height: 20px; margin-top: 12px; font-size: 14px; color: #ff5d5d; }
.case-lock__help { margin-top: 8px; font-size: 14px; color: var(--dim); }
.case-lock__help a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@keyframes lock-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.case-lock.is-open, .lock-open .case-lock { display: none; }

/* =========================================================
   WEBSITE SHOWCASE (template B: teamup03, teamup02)
   ========================================================= */
.show__grid { display: grid; grid-template-columns: minmax(0, 422fr) minmax(0, 898fr); column-gap: 40px; align-items: start; }
.show__side {
  position: sticky; top: 70px; height: calc(100vh - 70px);
  display: flex; flex-direction: column; justify-content: space-between; padding: 58px 0 24px;
}
.show__title { font-size: 36px; line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.show__title .accent { color: var(--case-accent); }
.show__people { font-size: 14px; line-height: 1.3; font-weight: 400; }
.show__people h2 { display: inline; font: inherit; }
.show__people h2::after { content: ":"; }
.show__people ul { list-style: none; margin: 0; padding: 0; }
.show__main { padding-top: 58px; display: flex; flex-direction: column; }
.show__intro { max-width: 719px; display: flex; flex-direction: column; gap: 24px; font-size: 20px; line-height: 1.2; }
.show__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 719px; margin: 56px 0 0 !important; }
.show__cover { margin-top: 64px; aspect-ratio: var(--d-ratio); overflow: hidden; }
.show__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show__note.case-note { margin: 64px 0 0; max-width: 395px; align-self: flex-start; }
/* sections reuse the gallery blocks: heading, text, full-width page screenshot */
.show .case-gallery { max-width: none !important; width: 100%; gap: 0; }
.show .case-g-heading { font-size: 24px; line-height: 1; font-weight: 700; margin-top: var(--show-heading-mt, 129px); }
.show .case-g-heading:first-child { margin-top: var(--show-first-mt, 129px); }
.show .case-g-heading + .case-g-text { margin-top: 24px; }
.show .case-g-text { max-width: 719px; font-size: 16px; line-height: 1.3; }
.show .case-g-text + .case-shot { margin-top: 64px; }

/* =========================================================
   MOBILE  ≤ 809.98px
   ========================================================= */
@media (max-width: 809.98px) {
  .page-case { --case-body: 100%; --case-gallery: 100%; }
  .case { padding-bottom: 80px; }
  .case-hero { grid-template-columns: 1fr; grid-template-areas: "title" "intro" "cover" "meta"; row-gap: 32px; padding-top: 20px; }
  .case-hero__title { font-size: 26px; }
  .case-hero__intro { font-size: 16px; gap: 16px; }
  .case-hero__meta { margin-top: 0; gap: 16px; }
  .case-hero__meta dt { font-size: 12px; }
  .case-hero__cover { margin-top: 0; aspect-ratio: var(--m-ratio, 350 / 400); }
  /* phone cover drawn wider than the column and cropped by the screen edges, like Framer */
  .case-hero__cover[style*="--m-cover-w"] { overflow: visible; }
  .case-hero__cover--band { aspect-ratio: auto; height: var(--band-mh); }
  .case-hero__cover[style*="--m-cover-w"] img { width: var(--m-cover-w); max-width: none; margin-left: calc((100% - var(--m-cover-w)) / 2); }

  .case-body { gap: 80px; padding-top: 80px; }
  .case-note { margin-right: 0; max-width: none; font-size: 12px; margin-bottom: -16px; }
  .case-label { font-size: 18px; }
  .case-row { grid-template-columns: 1fr; row-gap: var(--m-row-gap, 24px); }
  .case-row--outcomes { row-gap: 48px; }
  .case-num { grid-template-columns: 34px minmax(0, 1fr); }
  .case-num__text { font-size: 20px; }
  .case-sol { grid-template-columns: 34px minmax(0, 1fr); }
  .case-num__n { font-size: 16px; }
  .case-list--lines > li { padding: 25px 0; }
  .case-list--lines > li:first-child { padding-top: 0; }
  .case-list__intro { font-size: 14px; margin-bottom: 24px; }
  .case-sol__body { margin-top: 8px; font-size: 14px; }
  .case-row .case-list:not(.case-list--lines) { gap: 48px; }

  .case-steps { --gap: 16px; --steps-row-gap: 16px; --size: calc((100vw - 2 * var(--gutter) - var(--gap)) / 2); --cols: 2 !important; }
  .case-step { padding: 16px; }
  .case-step__text { font-size: 14px; }

  .case-statement .case-label { font-size: 24px; }
  .case-statement__text { font-size: 26px; }

  .case-g-row { grid-template-columns: var(--m-tpl, 1fr); row-gap: 32px; }
  .case-gallery .case-shot--m-only { display: flex; }
  .case-shot:has([style*="--m-full"]) { overflow: visible; }
  .case-shot__panel[style*="--m-full"] { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
  .case-shot__panel[style*="--m-top"] img { margin-top: var(--m-top); }
  .case-shot__panel img { align-self: var(--m-align, var(--d-align, auto)); border-radius: var(--m-radius, var(--radius, 0)); }
  .case-shot { order: var(--m-order, 0); }
  /* phone-only full-bleed image: no panel, wider than the screen, cropped by the page edges */
  .case-shot:has([style*="--m-bleed-w"]) { overflow: visible; }
  .case-shot__panel[style*="--m-bleed-w"] { background: transparent !important; overflow: visible; aspect-ratio: auto; display: block; }
  .case-shot__panel[style*="--m-bleed-w"] img { width: var(--m-bleed-w); max-width: none; margin-left: calc((100% - var(--m-bleed-w)) / 2 + var(--m-bleed-x)); }
  .case-shot--cap-in:has([style*="--m-bleed-w"]) figcaption { position: static; margin-top: 16px; text-align: left; }
  /* per-page phone spacing between gallery images (gallery "mgap" in the content file) */
  .case-gallery[style*="--m-gap"], .case-gallery[style*="--m-gap"] .case-g-row { gap: var(--m-gap); }
  /* phones use the mobile sizes from Framer when there are any */
  .case-shot img { aspect-ratio: var(--m-ratio, var(--d-ratio)); }
  .case-shot__panel { aspect-ratio: var(--m-ratio, var(--d-ratio)); }
  .case-shot__panel img { width: var(--m-w, var(--d-w)); max-width: none; flex: none; aspect-ratio: var(--m-ir, var(--d-ir, auto)); margin-right: 0; }
  .case-shot--stage figcaption { text-align: left; }
  .case-g-labels { display: none; }
  .case-g-display { font-size: var(--m-display, min(calc(var(--size) * .625), 48px)); }
  .case-g-heading { font-size: var(--m-heading, 20px); margin-top: var(--m-g-heading-mt, var(--g-heading-mt, 40px)); }
  .case-g-heading + .case-g-row { margin-top: var(--m-g-hr, var(--g-hr, 0)); }
  .case-g-row + .case-g-body { margin-top: var(--m-g-rb, var(--g-rb, 0)); }
  .case-g-text + .case-g-display { margin-top: var(--m-g-td, var(--g-td, 0)); }
  .case-g-heading + .case-g-text { margin-top: var(--m-g-ht, var(--g-ht, -16px)); }
  .case-g-text + .case-g-row { margin-top: var(--m-g-tr, var(--g-tr, 0)); }
  .case-g-text { font-size: var(--m-g-text, 14px); }
  .case-g-text + .case-shot { margin-top: var(--m-g-tr, var(--g-tr, 0)); }
  .case-g-text--large { font-size: var(--m-text-large, 20px); }
  .case-tiles { grid-template-columns: 1fr; gap: 8px; }
  /* collage: phones get their own single-column list */
  .case-collage--desktop:not(.case-collage--all) { display: none; }
  .case-collage--mobile { display: flex; flex-direction: column; align-items: center; gap: 44px; }
  .case-collage--mobile .case-collage__note { align-self: stretch; margin: 20px 0; padding: 0 5%; font-size: 18px; font-weight: 400; }
  /* gradient frames run edge to edge (a little wider than the screen where Framer does) */
  .case-collage__bleed { width: calc(var(--frame-w) / 390 * 100vw); max-width: none; flex: none; }
  .case-collage__bleed .case-collage__frame { width: 100% !important; }
  .case-collage__band {
    width: 100vw; flex: none;
    display: flex; flex-direction: column; align-items: center; gap: 44px;
    padding: 64px var(--gutter);
  }
  .case-out__title { font-size: 28px; }
  .case-out p { font-size: 14px; }
  .case-body > [style*="-after"] { margin-bottom: var(--m-after, 0); }
  /* outcomes with icons (Framer's phone layout): smaller icons, tighter rows */
  .case-row--outcomes:has(.case-out__icon) { row-gap: 40px; }
  .case-out__icon { width: 32px; height: 32px; }
  .case-row .case-list--lines .case-out:has(.case-out__icon) { padding: 24px 0; }
  .case-row .case-list--lines .case-out:has(.case-out__icon):first-child { padding-top: 0; }
  /* last outcome keeps its divider; Collaborators follows 64px below it */
  .case-row--outcomes:has(.case-out__icon) { margin-bottom: -16px; }

  .case-lock__gate { padding: 48px 16px 40px; }
  .case-lock__title { font-size: 22px; }
  .case-lock__text { font-size: 14px; }
  .case-lock__form { flex-direction: column; width: 100%; max-width: 320px; }
  .case-lock__input, .case-lock__btn { width: 100%; height: 48px; }

  /* website showcase: one column in Framer's phone order */
  .show__grid { display: flex; flex-direction: column; }
  .show__side, .show__main { display: contents; }
  .show__title { order: 1; font-size: 26px; padding-top: 20px; }
  .show__intro { order: 2; margin-top: 24px; font-size: 16px; }
  .show__cover { order: 3; margin-top: 40px; aspect-ratio: var(--m-ratio, var(--d-ratio)); }
  .show__meta { order: 4; margin: 40px 0 0 !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show__note.case-note { order: 5; margin: var(--show-m-note-mt, 40px) 0 0; max-width: none; }
  .show .case-gallery { order: 6; }
  .show__people { order: 7; margin-top: var(--show-m-people-mt, 83px); }
  .show__people h2 { display: block; font-size: 18px; font-weight: 700; margin-bottom: 16px; }
  .show__people h2::after { content: none; }
  .show .case-g-heading { font-size: 18px; margin-top: var(--show-m-heading-mt, 83px); }
  .show .case-g-heading:first-child { margin-top: var(--show-m-first-mt, 83px); }
  .show .case-g-text { font-size: 14px; }
  .show .case-g-text + .case-shot { margin-top: 40px; }
}
