/* ==========================================================================
   LS JORDAN DESIGN — Case studies
   Extends style.css. Mobile first. Each case sets --accent / --accent-2.
   ========================================================================== */

.case { --accent: var(--brass); --accent-2: var(--brass-hi); }

/* --- Hero ------------------------------------------------------------- */
.case-hero { padding-top: calc(var(--bar) + clamp(28px, 6vw, 72px)); padding-bottom: clamp(40px, 7vw, 96px); position: relative; overflow: hidden; }
.case-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: .55; pointer-events: none; z-index: 0;
}
.case-hero .wrap { position: relative; z-index: 1; }
.crumb { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); text-decoration: none; margin-bottom: 22px; min-height: 44px; }
.crumb::before { content: "\2190"; color: var(--brass); }
.crumb:hover { color: var(--text); }

.case-title {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(2.35rem, 8.4vw, 6.4rem); line-height: .98; letter-spacing: -.025em;
  max-width: 16ch; text-wrap: balance;
}
.case-title em { color: var(--brass); font-style: normal; }
.case-client {
  display: block; font-family: var(--mono); font-size: clamp(.7rem, 1.4vw, .8rem); letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px; line-height: 1.5;
}
.case-dek { margin-top: 22px; max-width: 46ch; font-family: var(--display); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--text-2); text-wrap: pretty; }

/* stage: browser + phone */
.case-stage { position: relative; margin-top: clamp(36px, 6vw, 72px); padding-right: clamp(46px, 14vw, 170px); }
.stage-desk {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--ink-3);
  box-shadow: 0 1px 0 var(--rule-bright) inset, 0 40px 120px -30px rgba(0,0,0,.85), 0 0 0 1px var(--rule);
}
.stage-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: 50% 0; }
body.loaded .hero-kb { animation: heroKB 22s var(--ease) both alternate infinite; }
@keyframes heroKB { from { transform: scale(1.0); } to { transform: scale(1.07) translateY(-1.2%); } }
.stage-phone {
  margin: 0; position: absolute; right: 0; bottom: clamp(-34px, -3vw, -10px); width: clamp(104px, 24vw, 270px);
  border-radius: clamp(18px, 3.4vw, 38px); border: clamp(4px, .8vw, 9px) solid #050504; overflow: hidden; background: #050504;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px var(--rule-bright);
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out) .5s, transform 1.4s var(--ease-out) .5s;
}
body.loaded .stage-phone { opacity: 1; transform: none; }
.stage-phone img { width: 100%; aspect-ratio: 600 / 1299; object-fit: cover; object-position: top; border-radius: clamp(13px, 2.7vw, 30px); }

.chrome { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #181816; border-bottom: 1px solid var(--rule); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: #3a3933; }
.chrome b { margin-left: 10px; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.case-intro { display: grid; gap: 28px; margin-top: clamp(56px, 8vw, 96px); }
.case-intro .lede { color: var(--text); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.facts-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts-list div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); }
.facts-list dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.facts-list dd { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.45; }

.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px; }
.case-actions .btn small { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; opacity: .7; margin-left: 6px; }
.btn--ghost { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--rule-bright) !important; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--brass) !important; }

/* --- Chapter nav ------------------------------------------------------ */
.ch-nav {
  position: sticky; top: var(--bar); z-index: 40;
  background: rgba(14,14,12,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--rule-soft);
}
.ch-nav__track {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  max-width: var(--maxw); margin-inline: auto; padding: 10px var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.ch-nav__track::-webkit-scrollbar { display: none; }
.ch-nav a {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 0 14px; border-radius: 999px; font-size: .82rem; color: var(--text-2); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rule-soft); transition: color .25s, border-color .25s, background .25s;
}
.ch-nav a i { font-style: normal; font-family: var(--mono); font-size: .62rem; color: var(--text-3); }
.ch-nav a:hover { color: var(--text); border-color: var(--rule-bright); }
.ch-nav a[aria-current="true"] { color: #0B0B09; background: var(--brass); border-color: var(--brass); }
.ch-nav a[aria-current="true"] i { color: #0B0B09; }

/* --- Reading guide ---------------------------------------------------- */
.read-guide { padding-top: clamp(36px, 6vw, 64px); }
.read-guide__in {
  display: grid; gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 14px;
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
}
.read-guide__in p { color: var(--text-2); font-size: .98rem; max-width: 70ch; }
.read-guide__in b { color: var(--text); font-weight: 500; }
.read-guide__in em { color: var(--accent-2); font-style: normal; }
.hood-all {
  justify-self: start; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule-bright); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.hood-all:hover, .hood-all[aria-pressed="true"] { border-color: var(--brass); color: var(--brass-hi); }

/* --- Glance ----------------------------------------------------------- */
.glance { padding-block: clamp(48px, 8vw, 110px) clamp(24px, 4vw, 40px); }
.glance__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.glance .stat { padding: 22px 14px 22px 0; border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 8px; }
.glance .stat:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--rule-soft); }
.glance .stat:nth-child(even) { padding-left: 18px; }
.glance .stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1; color: var(--brass); letter-spacing: -.02em; }
.glance .stat span { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--text-2); line-height: 1.4; }
.summary { display: grid; gap: 26px; margin-top: clamp(44px, 6vw, 72px); }
.sum h3 { font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sum p { color: var(--text); font-size: 1.04rem; line-height: 1.55; }

/* --- Chapters --------------------------------------------------------- */
.ch { padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--rule-soft); scroll-margin-top: calc(var(--bar) + 60px); }
.ch__head { position: relative; margin-bottom: clamp(26px, 4vw, 44px); }
.ch__num {
  position: absolute; right: 0; top: -.15em; font-family: var(--display); font-size: clamp(4rem, 14vw, 11rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; user-select: none;
}
.ch__head .eyebrow { margin-bottom: 18px; max-width: calc(100% - 96px); position: relative; }
.ch__head .eyebrow::before { background: linear-gradient(90deg, var(--accent), transparent); }
.ch__title { font-family: var(--display); font-size: clamp(1.9rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; position: relative; }
.ch__body { display: grid; gap: 26px; }
.ch__plain p { font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.65; color: var(--text); max-width: 62ch; text-wrap: pretty; }
.ch__plain p + p { margin-top: 16px; color: var(--text-2); }
.ch__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ch__points li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--text-2); line-height: 1.5; }
.ch__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 1px; background: var(--accent-2); }

/* Under the hood */
.hood { border: 1px solid var(--rule); border-radius: 14px; background: var(--ink-2); overflow: hidden; align-self: start; }
.hood summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 14px; padding: 16px 18px; min-height: 64px; align-items: center; }
.hood summary::-webkit-details-marker { display: none; }
.hood__k { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-hi); }
.hood__s { grid-row: 2; font-size: .82rem; color: var(--text-3); }
.hood__i { grid-row: 1 / span 2; grid-column: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-bright); position: relative; transition: transform .35s var(--ease), border-color .25s; }
.hood__i::before, .hood__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--text); transform: translate(-50%, -50%); }
.hood__i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.hood[open] .hood__i { border-color: var(--brass); }
.hood[open] .hood__i::after { transform: translate(-50%, -50%) rotate(0deg); }
.hood summary:hover .hood__i { border-color: var(--brass); }
.hood__body { padding: 0 18px 20px; animation: hoodIn .45s var(--ease-out); }
@keyframes hoodIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hood__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; border-top: 1px solid var(--rule-soft); padding-top: 16px; }
.hood__body li { font-size: .9rem; line-height: 1.6; color: var(--text-2); padding-left: 18px; position: relative; overflow-wrap: anywhere; }
.hood__body li::before { content: "\203A"; position: absolute; left: 0; color: var(--brass); }
.hood__body .tags { margin-top: 18px; }

/* --- Exhibits --------------------------------------------------------- */
.exhibit { margin-top: clamp(36px, 6vw, 72px); display: grid; gap: 22px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; border-radius: 12px; }
.shot--browser .shot__btn { overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 1px var(--rule), 0 24px 60px -24px rgba(0,0,0,.8); }
.shot--phone .shot__btn { border-radius: 26px; border: 6px solid #050504; background: #050504; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-bright), 0 24px 60px -24px rgba(0,0,0,.85); max-width: 280px; margin-inline: auto; }
.shot__img { display: block; overflow: hidden; }
.shot--browser .shot__img { aspect-ratio: 16 / 10; }
.shot--phone .shot__img { aspect-ratio: 600 / 1299; border-radius: 20px; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 2.6s var(--ease-out); }
.shot.in-view .shot__img img, .exhibit.in-view .shot__img img { transform: scale(1.0); }
.shot__btn:hover .shot__img img { transform: scale(1.025); transition-duration: 1.2s; }
.shot figcaption { font-size: .82rem; line-height: 1.5; color: var(--text-3); max-width: 60ch; }
.shot figcaption .fig { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-right: 10px; }
.shot--phone figcaption { text-align: center; margin-inline: auto; max-width: 30ch; }

/* staggered fade for figures */
.exhibit .shot { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.exhibit.in-view .shot { opacity: 1; transform: none; }
.exhibit.in-view .shot:nth-child(2) { transition-delay: .12s; }
.exhibit.in-view .shot:nth-child(3) { transition-delay: .24s; }
.exhibit.in-view .shot:nth-child(4) { transition-delay: .36s; }
.exhibit.in-view .shot:nth-child(5) { transition-delay: .48s; }

/* Phones: multi-figure exhibits become swipeable carousels */
@media (max-width: 759px) {
  .exhibit:not([data-count="1"]) {
    grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 6px;
  }
  .exhibit::-webkit-scrollbar { display: none; }
  .exhibit .shot { scroll-snap-align: start; }
  .exhibit .shot--phone { grid-row: 1; }
  .exhibit .shot--phone .shot__btn { max-width: none; }
  .exhibit .shot--phone { width: 54vw; max-width: 240px; }
  .exhibit .shot--phone .shot__img { aspect-ratio: 3 / 4; }
  .exhibit:not([data-count="1"]) { align-items: start; }
  .ex-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .ex-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-bright); transition: background .3s, width .3s; }
  .ex-dots i.on { background: var(--brass); width: 18px; border-radius: 3px; }
}
@media (min-width: 760px) { .ex-dots { display: none; } }

/* --- End --------------------------------------------------------------- */
.case-end { padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--rule-soft); }
.case-end__grid { display: grid; gap: 40px; }
.next {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--rule); border-radius: 16px; text-decoration: none;
  background: linear-gradient(160deg, var(--ink-3), var(--ink)); transition: border-color .3s, transform .5s var(--ease);
}
.next:hover { border-color: var(--brass); transform: translateY(-3px); }
.next .eyebrow { margin-bottom: 0; }
.next__t { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; }
.next__d { color: var(--text-2); font-size: .96rem; }

/* --- Lightbox ---------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; color: var(--text); }
.lightbox::backdrop { background: rgba(6,6,5,.94); }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 92dvh; }
.lightbox img { max-width: 100%; max-height: 82dvh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.7); animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox figcaption { font-size: .88rem; color: var(--text-2); text-align: center; max-width: 70ch; padding-inline: 12px; }
.lightbox button { background: rgba(20,20,18,.8); border: 1px solid var(--rule-bright); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem; justify-self: center; }
.lightbox .lb-close { position: fixed; top: 14px; right: 14px; width: auto; padding: 0 16px; border-radius: 999px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; z-index: 2; }
@media (max-width: 759px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { position: fixed; bottom: 18px; }
  .lightbox .lb-prev { left: calc(50% - 56px); } .lightbox .lb-next { left: calc(50% + 12px); }
}

/* --- Larger screens ------------------------------------------------------ */
@media (min-width: 760px) {
  .glance__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glance .stat, .glance .stat:nth-child(odd), .glance .stat:nth-child(even) { padding: 26px 22px 26px 0; border-right: 1px solid var(--rule-soft); padding-left: 0; }
  .glance .stat:nth-child(3n+2), .glance .stat:nth-child(3n) { padding-left: 22px; }
  .glance .stat:nth-child(3n) { border-right: 0; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .read-guide__in { grid-template-columns: 1fr auto; padding: 22px 28px; }
  .exhibit--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit--pair:has(.shot--phone) { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; }
  .exhibit--duo-phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .5fr); align-items: start; }
  .exhibit--grid-phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .55fr); }
  .exhibit--grid-phone .shot--phone { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .exhibit--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit--stack .shot__img { aspect-ratio: 16 / 7; }
  .case-end__grid { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 60px; }
}
@media (min-width: 1024px) {
  .case-intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .ch__body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .hood { position: sticky; top: calc(var(--bar) + 84px); }
  .glance__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .glance .stat, .glance .stat:nth-child(odd), .glance .stat:nth-child(even), .glance .stat:nth-child(3n), .glance .stat:nth-child(3n+2) { padding: 26px 18px; border-right: 1px solid var(--rule-soft); }
  .glance .stat:first-child { padding-left: 0; }
  .glance .stat:last-child { border-right: 0; }
  .glance .stat b { font-size: clamp(1.9rem, 2.7vw, 2.9rem); white-space: nowrap; }
}

/* --- Motion and print --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-kb, body.loaded .hero-kb { animation: none !important; }
  .stage-phone, .exhibit .shot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shot__img img { transform: none !important; transition: none !important; }
  .hood__body { animation: none; }
}
@media print {
  .ch-nav, .read-guide, .site-header, .menu-panel, .case-actions, .lightbox, .progress { display: none !important; }
  .hood__body { display: block !important; }
}

/* ==========================================================================
   v1.2 TYPE AND DETAIL LAYER (case studies)
   ========================================================================== */
.case-hero::before { display: none; }
.crumb, .case-client, .facts-list dt, .case-actions .btn small, .hood-all, .sum h3, .hood__k,
.shot figcaption .fig, .lightbox .lb-close { text-transform: none; letter-spacing: .005em; }
.crumb { font-size: .92rem; font-weight: 600; }
.case-client { font-size: .98rem; font-weight: 600; color: var(--accent-2); }
.case-title { font-weight: 450; letter-spacing: -.03em; }
.case-title em { color: var(--accent-2); }
.case-dek { font-style: normal; font-weight: 400; color: var(--text-2); letter-spacing: -.005em; }
.chrome b { font-family: var(--code); letter-spacing: 0; }
.facts-list dt { font-size: .9rem; font-weight: 600; color: var(--text-3); padding-top: 0; }
.case-actions .btn small { font-size: .78rem; opacity: .75; }
.ch-nav a { font-size: .88rem; font-weight: 500; }
.ch-nav a i { display: none; }
.hood-all { font-size: .9rem; font-weight: 600; border-radius: 6px; }
.glance .stat b { font-weight: 450; color: var(--text); }
.glance .stat b::first-letter { color: var(--brass-hi); }
.sum h3 { font-size: .95rem; font-weight: 700; color: var(--accent-2); }

/* Chapter numbers: small and set in the margin, the way a book does it */
.ch__num {
  position: static; display: block; margin-bottom: 14px;
  font-family: var(--sans); font-size: .9rem; font-weight: 700; line-height: 1;
  color: var(--accent-2); -webkit-text-stroke: 0; font-variant-numeric: tabular-nums;
}
.ch__num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent-2); opacity: .6; vertical-align: middle; margin-left: 10px; }
.ch__head .eyebrow { max-width: none; color: var(--text-3); font-weight: 600; }
.ch__title { font-weight: 450; letter-spacing: -.025em; }

.hood__k { font-size: .95rem; font-weight: 700; color: var(--brass-hi); }
.hood__s { font-size: .86rem; }
.hood__body li { color: var(--text-2); font-size: .94rem; }
.hood__body li::before { content: "\2022"; }
.shot figcaption { font-size: .88rem; color: var(--text-3); }
.shot figcaption .fig { font-size: .82rem; font-weight: 700; color: var(--text-2); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* role-based radius: frames are documents, not rounded cards */
.shot--browser .shot__btn, .stage-desk { border-radius: 6px; }
.hood, .read-guide__in, .next { border-radius: 8px; }
.ch-nav a[aria-current="true"] { background: var(--text); border-color: var(--text); }

/* ==========================================================================
   v1.3 GLASS, PHONE MOCKUPS AND MOTION (case studies)
   ========================================================================== */
.ch-nav { background: rgba(12,12,11,.8) !important; -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-color: var(--glass-line) !important; }
.ch-nav a { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.glance__grid { padding: 6px 22px; border-top: 1px solid var(--glass-line); }
.glance .stat:nth-last-child(-n+2) { border-bottom: 0; }
.facts-list { padding: 4px 22px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.facts-list > div:last-child { border-bottom: 0; }
.ch__plain { padding: clamp(20px, 2.6vw, 30px); border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.hood { border-radius: 16px; }
.shot--browser .shot__btn { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -36px rgba(0,0,0,.9); }
.chrome { background: rgba(24,24,22,.92); }

/* ---- device: a real phone, sized by container so nothing is cropped ---- */
.device { container-type: inline-size; display: block; }
.device__body {
  --bz: 3.4cqw;
  display: block; position: relative;
  padding: var(--bz); border-radius: 15.5cqw;
  background: linear-gradient(145deg, #3B3A38, #121211 40%, #262523);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 0 1px #050504, 0 50px 90px -40px rgba(0,0,0,.95), 0 20px 40px -20px rgba(0,0,0,.6);
}
.device__screen { display: block; position: relative; overflow: hidden; border-radius: 12.5cqw; background: var(--sb, #000); aspect-ratio: 390 / 844; }
.device__status {
  display: flex; align-items: center; justify-content: space-between;
  aspect-ratio: 390 / 47; padding: 0 7.6cqw 0 9.5cqw; background: var(--sb, #000); color: var(--sbt, #fff);
  font: 600 4.1cqw/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; position: relative; z-index: 2;
}
.device__status svg { height: 3.2cqw; width: auto; fill: currentColor; }
.device__status span { display: flex; gap: 1.4cqw; align-items: center; }
.device__island { position: absolute; left: 50%; top: 2.6cqw; width: 30cqw; height: 8.6cqw; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 3; }
.device__screen img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 797; object-fit: cover; object-position: top; transform-origin: 50% 0; }
.device__home { position: absolute; left: 50%; bottom: 2.2cqw; width: 34cqw; height: 1.3cqw; transform: translateX(-50%); border-radius: 99px; background: rgba(0,0,0,.55); z-index: 3; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.device__body::after { content: ""; position: absolute; right: -.9cqw; top: 26%; width: 1cqw; height: 15%; border-radius: 0 3px 3px 0; background: #2a2927; }

/* phone figures in exhibits */
.shot--phone .shot__btn { border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; max-width: 270px; margin-inline: auto; padding: 0; }
.shot--phone .shot__img { aspect-ratio: auto; border-radius: 0; overflow: visible; }
.shot--phone .shot__img .device__screen img { transform: none; }
.exhibit.in-view .shot--phone .device__screen img { animation: phoneScroll 14s ease-in-out 1.4s infinite alternate; }
@keyframes phoneScroll { from { transform: scale(1); } to { transform: scale(1.06); } }

/* hero phone */
.stage-phone { border: 0 !important; background: none !important; border-radius: 0 !important; overflow: visible !important; box-shadow: none !important; }
.stage-phone .device__body { animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(-.6deg); } }
.stage-phone img { border-radius: 0 !important; aspect-ratio: 390 / 797 !important; }

@media (max-width: 759px) {
  .exhibit .shot--phone { width: 62vw; max-width: 270px; }
  .exhibit .shot--phone .shot__img { aspect-ratio: auto !important; }
  .exhibit .shot { transform: translateX(48px) scale(.94); }
  .exhibit.in-view .shot { transform: none; }
  .ch__plain { padding: 20px 18px; }
}
