/* Showcase layout: full-width artefact pages. Depends on style.css for the
   site chrome and on assets/product/tokens.css for the swatch section. */
.sc { --sc-max: 1400px; --sc-gut: clamp(20px, 4vw, 48px); color: var(--ink); }
.sc-wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 var(--sc-gut); }
.sc-prose { max-width: 74ch; }

.sc-hero { padding-block: 56px 8px; border-bottom: 1px solid var(--line); }
.sc-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 12px 0 14px; max-width: 20ch; }
.sc-hero .sc-deck { font-size: var(--t-5); line-height: 1.55; color: var(--ink-soft); max-width: 68ch; margin: 0 0 22px; }
.sc-eyebrow { font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sc-hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 26px; }
.sc-hero-facts div { padding: 16px 20px 20px; border-right: 1px solid var(--line); }
.sc-hero-facts div:first-child { padding-left: 0; }
.sc-hero-facts div:last-child { border-right: 0; }
.sc-hero-facts dt { font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sc-hero-facts dd { margin: 0; font-size: var(--t-3); line-height: 1.5; }

.sc-modnav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding-block: 16px 18px; border-bottom: 1px solid var(--line); }
.sc-modnav-label { font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.sc-modnav a { font-size: var(--t-2); color: var(--ink-soft); border-bottom: 1px solid transparent; padding-bottom: 1px; white-space: nowrap; }
.sc-modnav a i { font-style: normal; font-family: var(--mono); font-size: var(--t-1); color: var(--muted); margin-right: 6px; }
.sc-modnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.sc-modnav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sc-sec { padding-block: 54px 8px; border-top: 1px solid var(--line); }
.sc-sec:first-of-type { border-top: 0; }
.sc-num { font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.08em; color: var(--muted); }
.sc-sec h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; margin: 8px 0 12px; max-width: 24ch; }
.sc-sec h3 { font-size: var(--t-5); margin: 32px 0 10px; }
.sc-sec p { margin: 0 0 14px; line-height: 1.65; }
.sc-lede { font-size: var(--t-5); color: #23231f; }

.sc-finding { border-left: 3px solid var(--ink); padding: 4px 0 4px 18px; margin: 0 0 26px; max-width: 74ch; }
.sc-finding b { display: block; font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.sc-finding p { margin: 0; font-size: var(--t-4); line-height: 1.6; }

/* the artefact itself: never cropped, never scrolled */
.shot { position: relative; display: block; margin: 0 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(17,17,16,.05), 0 12px 32px -18px rgba(17,17,16,.35); }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone { max-width: 390px; border-radius: 20px; }
/* a pin: the disc floats above the point it marks, joined by a short stem,
   so the element being annotated is never covered by its own number */
.mk { position: absolute; transform: translate(-50%, -100%); margin-top: -11px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--mono); font-size: var(--t-1); font-weight: 600; box-shadow: 0 0 0 3px rgba(255,255,255,.92), 0 2px 6px rgba(17,17,16,.3); z-index: 2; }
.mk::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 11px; background: var(--ink); transform: translateX(-50%); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.shot-cap { font-size: var(--t-2); color: var(--muted); line-height: 1.62; margin: 16px 0 30px; max-width: 76ch; }
.shot-cap .fignum { font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-right: 8px; }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 44px; margin: 10px 0 38px; border-top: 1px solid var(--line); }
.note { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.note > .n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--mono); font-size: var(--t-1); font-weight: 600; margin-top: 1px; }
.note h4 { margin: 0 0 8px; font-size: var(--t-4); line-height: 1.35; letter-spacing: -.01em; }
.note .dd { display: inline-block; vertical-align: 1px; margin-left: 6px; font-family: var(--mono); font-size: var(--t-1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 5px; white-space: nowrap; }
.note p { margin: 0 0 8px; font-size: var(--t-2); line-height: 1.62; color: #3c3c38; }
.note p b { font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-right: 6px; }
.note .ref { font-size: var(--t-1); color: var(--muted); }

.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px 34px; margin: 14px 0 44px; }
.states figure { margin: 0; }
.states .shot { margin-bottom: 18px; }
.states figcaption { font-size: var(--t-2); color: #3c3c38; line-height: 1.62; max-width: 34ch; }
.states figcaption b { display: block; color: var(--ink); font-size: var(--t-3); font-weight: 600; letter-spacing: -.01em; margin-bottom: 7px; }
.states.phones { grid-template-columns: repeat(auto-fit, minmax(230px, 268px)); gap: 44px 40px; justify-content: start; }

.sc-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 10px 0 26px; }
.sw { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--paper); }
.sw i { display: block; height: 52px; }
.sw span { display: block; padding: 8px 10px 10px; font-family: var(--mono); font-size: var(--t-1); line-height: 1.5; color: var(--ink-soft); }
.sw span b { display: block; font-family: var(--sans, inherit); font-size: var(--t-1); color: var(--ink); font-weight: 600; margin-bottom: 2px; letter-spacing: 0; }

.scale { border-top: 1px solid var(--line); margin: 10px 0 26px; }
.scale div { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scale div code { font-family: var(--mono); font-size: var(--t-1); color: var(--muted); width: 108px; flex: none; }
.scale div em { font-family: var(--mono); font-size: var(--t-1); color: var(--muted); font-style: normal; width: 52px; flex: none; }
.scale div span { line-height: 1.2; letter-spacing: -0.01em; }

.sc-table { width: 100%; border-collapse: collapse; font-size: var(--t-2); margin: 10px 0 26px; }
.sc-table th { text-align: left; font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--ink); padding: 0 12px 8px 0; vertical-align: bottom; }
.sc-table td { border-bottom: 1px solid var(--line); padding: 11px 12px 11px 0; vertical-align: top; line-height: 1.5; }
.sc-table td:first-child { font-weight: 600; width: 22%; }

.sc-foot-nav { display: flex; gap: 14px; flex-wrap: wrap; padding-block: 34px 60px; border-top: 1px solid var(--line); margin-top: 40px; }

@media (max-width: 480px) { .sc-hero-facts { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .sc-hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .notes { grid-template-columns: 1fr; }
  .mk { width: 19px; height: 19px; font-size: var(--t-1); margin-top: -8px; }
  .mk::after { height: 8px; }
  .sc-table { display: block; }
  .sc-table thead { display: none; }
  .sc-table tbody, .sc-table tr, .sc-table td { display: block; width: auto; }
  .sc-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .sc-table td { border: 0; padding: 2px 0; }
  .sc-table td:first-child { width: auto; }
  .sc-table td[data-label]::before { content: attr(data-label) " "; font-family: var(--mono); font-size: var(--t-1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}

/* a phone still is shown in the same device frame as the scroll story */
/* the frame throws a 90px shadow; without a margin it sat on the caption below it */
.dv-phone { position: relative; margin: 0 auto 44px; }
.dv-phone .dv-screen { position: relative; }
.dv-phone .dv-screen img { display: block; width: 100%; height: auto; }
.states.phones .dv-phone { --sw: 230px; margin-bottom: 30px; }
