/* ==========================================================================
   Case study pages. Loaded after styles.css (frame, tags, dock, footer).
   Text sizes here are fixed; only the frame and footer scale with --s.
   ========================================================================== */

body.case { counter-reset: fig; }

/* reading progress (shows on every width, it's the only nav on phones) */
.cs-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 3px;
  z-index: 70; pointer-events: none;
}
.cs-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ink-blue), #f05a28);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   Scrollspy line navigation (adapted from Cue · cue084)
   -------------------------------------------------------------------------- */
.side-nav {
  position: fixed;
  left: max(14px, calc(50% - var(--col) / 2 - 50px * var(--s) - 70px));
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  z-index: 55;
  transition: opacity .35s ease;
}
.side-nav.is-hidden { opacity: 0; pointer-events: none; }
.nav-line {
  position: relative;
  display: flex; align-items: center;
  width: 40px; height: 24px;
  cursor: pointer;
}
.nav-line::before {
  content: "";
  display: block;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: #d6d6dc;
  transition: all .3s cubic-bezier(.25,.46,.45,.94);
}
.nav-line:hover::before { width: 14px; background: #999; }
.nav-line.active::before { width: 24px; background: var(--ink); }
.nav-line::after {
  content: attr(data-title);
  position: absolute; left: 34px; top: 50%;
  transform: translate(-10px, -50%);
  padding: 3px 9px 4px;
  border-radius: 6px;
  background: rgba(250,250,250,.92);
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(0,0,0,.06);
  font: 500 12px/1.3 var(--sans);
  color: #555;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
}
.nav-line:hover::after, .nav-line:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.cs-wrap {
  position: relative;
  width: var(--col);
  margin-inline: auto;
  background: var(--panel);
  padding: 0 clamp(20px, 4vw, 56px);
}
.cs-text { max-width: 680px; margin-inline: auto; }
.cs-wide { max-width: 940px; margin-inline: auto; }

.cs-section { position: relative; z-index: 1; scroll-margin-top: 90px; }
.cs-section > .cs-wrap { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--line); }
.cs-section > .cs-wrap::before, .cs-section > .cs-wrap::after {
  content: ""; position: absolute; top: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: #eaeaec; box-shadow: 0 0 0 2px rgba(17,17,19,.3);
  transform: translate(-50%, -50%);
}
.cs-section > .cs-wrap::before { left: 0; }
.cs-section > .cs-wrap::after { left: 100%; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.cs-eyebrow, .cs-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.cs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cs-num {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 500 11px/1 var(--mono);
}
.cs-head i { flex: 1; height: 1px; background: var(--line); }

.cs-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cs-h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 26px;
}
.cs-h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: 20px; line-height: 1.35; color: var(--ink);
  margin: 40px 0 12px;
  text-wrap: balance;
}
.cs-text p, .cs-p { font-size: 17px; line-height: 1.72; color: var(--ink-2); margin-bottom: 18px; text-wrap: pretty; }
.cs-text p:last-child { margin-bottom: 0; }
.cs-text strong { color: var(--ink); font-weight: 500; }
.cs-lede { font-size: 19px !important; line-height: 1.65 !important; color: var(--ink) !important; }

/* short punchy lines */
.cs-beats { margin: 30px 0; display: grid; gap: 4px; }
.cs-beats p {
  margin: 0 !important;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.3vw, 30px) !important; line-height: 1.25 !important;
  color: var(--ink) !important;
  letter-spacing: -.02em;
}
.cs-beats p:nth-child(2) { opacity: .75; }
.cs-beats p:nth-child(3) { opacity: .55; }
.cs-beats p:nth-child(4) { opacity: .4; }

.cs-quote {
  position: relative;
  margin: 34px 0;
  padding: 26px 30px 28px;
  border-radius: 6px;
  background: url(assets/stamp-paper.webp) center / cover;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(21px, 2.1vw, 27px); line-height: 1.35; letter-spacing: -.015em;
  color: var(--ink);
  transform: rotate(-.6deg);
  transition: transform .5s var(--spring);
}
.cs-quote:hover { transform: rotate(0deg) scale(1.01); }
.cs-quote small { display: block; margin-top: 10px; font: 400 22px/1 var(--hand); color: var(--ink-blue); font-style: normal; }

.cs-scribble {
  display: inline-block;
  font-family: var(--hand); font-weight: 700;
  font-size: 26px; line-height: 1.1;
  color: var(--ink-blue);
  transform: rotate(-3deg);
}
.cs-foot {
  margin-top: 14px;
  font-size: 13px; line-height: 1.55; color: var(--ink-3);
  padding-left: 12px; border-left: 2px solid var(--line-2);
}

.cs-list { margin: 18px 0 22px; display: grid; gap: 8px; }
.cs-list li {
  position: relative; padding-left: 22px;
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
}
.cs-list li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 8px; height: 2px; border-radius: 2px; background: var(--ink-3);
  transition: width .3s var(--spring), background .3s ease;
}
.cs-list li:hover::before { width: 14px; background: var(--ink); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.cs-hero > .cs-wrap { padding-bottom: 72px; }
.cs-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 52px;
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px)) 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.cs-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.cs-back span { display: inline-block; transition: transform .35s var(--spring); }
.cs-back:hover span { transform: translateX(-5px); }
.cs-hero__body { position: relative; padding: 84px 0 48px; }
.cs-hero__body .cs-eyebrow { margin-bottom: 22px; }
.cs-hero__body .cs-title { max-width: 900px; }
.cs-hero__lede { max-width: 640px; margin-top: 30px; }
.cs-hero__lede p { font-size: 18px; line-height: 1.68; color: var(--ink-2); margin-bottom: 14px; }
.cs-hero__flair {
  position: absolute; right: 0; top: 70px;
  display: grid; justify-items: center;
  transform: rotate(8deg);
  transition: transform .5s var(--spring);
}
.cs-hero__flair:hover { transform: rotate(-4deg) scale(1.06); }
.cs-hero__flair img { width: 150px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.18)); }
.cs-hero__flair .cs-scribble { margin-top: -6px; font-size: 22px; }

/* the ID card on a lanyard (miniOrange hero). The strap hangs from the bar
   line; drag the card to swing it, click to flip it. */
.cs-hero__body:has(.cs-lanyard) .cs-title { max-width: min(900px, calc(100% - 330px)); }
.cs-hero__body:has(.cs-lanyard) .cs-hero__lede { max-width: min(640px, calc(100% - 330px)); }
.cs-lanyard {
  position: absolute; top: 0; right: -24px;
  width: 480px; height: 600px;           /* wide enough to swing without clipping */
  pointer-events: none;
}
.lanyard { position: absolute; inset: 0; overflow: hidden; pointer-events: auto; }
.lanyard-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lanyard img[hidden] { display: none; }
/* flat card: shows until the 3D one is ready, and stays if WebGL isn't available */
/* flat strap for the fallback card */
.lanyard::before {
  content: ""; position: absolute; left: 60%; top: 0; z-index: 0;
  width: 26px; height: 28%; margin-left: -13px;
  background: linear-gradient(90deg, #0b0b0b, #2a2a2a 50%, #0b0b0b);
  transition: opacity .4s ease;
}
.lanyard.is-live::before { opacity: 0; }
.lanyard__flat {
  position: absolute; left: 60%; top: 27%; z-index: 1;
  width: 220px; height: auto; margin-left: -110px;
  border-radius: 14px;
  box-shadow: 0 18px 34px -18px rgba(0,0,0,.35);
  transition: opacity .4s ease;
}
.lanyard.is-live .lanyard__flat { opacity: 0; visibility: hidden; }
.cs-lanyard__note {
  position: absolute; left: calc(60% - 128px); bottom: 26px;
  display: flex; align-items: flex-end; gap: 2px;
  font: 700 19px/1.05 var(--hand); color: var(--ink-blue);
  transform: rotate(-4deg);
  white-space: nowrap;
}
.cs-lanyard__note svg {
  width: 40px; height: 30px; margin: 0 0 8px;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(18deg);
}

/* conference ticket (Identity Shield hero) */
.cs-ticket {
  position: absolute; right: 0; top: 78px;
  display: grid; grid-template-columns: 1fr auto;
  width: 290px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 50%, transparent 9px, #1b2a6b 9.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 9px, #1b2a6b 9.5px) right / 51% 100% no-repeat;
  color: #f6dc8c;
  filter: drop-shadow(0 14px 16px rgba(23, 23, 28, .25));
  transform: rotate(7deg);
  transition: transform .5s var(--spring);
}
.cs-ticket:hover { transform: rotate(-2deg) translateY(-4px); }
.cs-ticket__main { padding: 18px 18px 16px 22px; border-right: 2px dashed rgba(246,220,140,.45); }
.cs-ticket__main b { display: block; font: 700 19px/1.15 var(--serif); font-style: italic; color: #fff; margin: 6px 0 10px; }
.cs-ticket__main span, .cs-ticket__stub span { font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cs-ticket__stub { display: grid; place-items: center; padding: 0 16px; writing-mode: vertical-rl; transform: rotate(180deg); }

/* meta strip */
.cs-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px));
}
.cs-meta > div { padding: 16px; border-left: 1px solid var(--line); }
.cs-meta > div:first-child { border-left: 0; }
.cs-meta dt { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cs-meta dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }

/* --------------------------------------------------------------------------
   Figures and image placeholders
   -------------------------------------------------------------------------- */
.cs-fig { position: relative; margin: 40px 0; counter-increment: fig; }
.cs-fig > img:not(.cs-fig__pin),
.cs-fig > video {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(30,30,30,.45);
}
.ph {
  position: relative;
  aspect-ratio: var(--ar, 16 / 9);
  max-width: 100%;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 24px;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #fafafa 0 10px, #f2f2f4 10px 11px);
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease;
}
.ph__tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: 4px; background: var(--white);
}
.ph__hint { max-width: 38ch; font: 400 20px/1.15 var(--hand); color: var(--ink-3); }
.cs-fig:hover .ph { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 22px 34px -22px rgba(0,0,0,.35); border-color: #c5c5cc; }
.cs-fig > img:not(.cs-fig__pin) { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cs-fig:hover > img:not(.cs-fig__pin) { transform: translateY(-4px) rotate(-.4deg); }
.cs-fig figcaption {
  display: flex; gap: 10px;
  margin-top: 12px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-3);
}
.cs-fig figcaption::before {
  content: "Fig. " counter(fig, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); padding-top: 2px;
}
.cs-fig__pin {
  position: absolute; right: -10px; top: -22px; width: 36px; z-index: 3;
  filter: drop-shadow(0 14px 9px rgba(0,0,0,.32));
  transition: transform .4s var(--spring);
}
.cs-fig:hover .cs-fig__pin { transform: translateY(3px) rotate(-6deg); }

.cs-grid { display: grid; gap: 22px; margin: 40px 0; }
.cs-grid > .cs-fig { margin: 0; }
.cs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
/* metrics */
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 14px; }
.cs-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-compare--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-fig--span2 { grid-column: span 2; }
.cs-stat {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 10px 18px -12px rgba(52,39,16,.18);
  transition: transform .5s var(--spring), box-shadow .5s var(--ease);
}
.cs-stat:nth-child(2) { --tilt: 1.2deg; }
.cs-stat:hover { transform: translateY(-6px) rotate(var(--tilt, -1.2deg)); box-shadow: 0 0 0 1px var(--line-2), 0 24px 30px -16px rgba(52,39,16,.28); }
.cs-stat b {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: 54px; line-height: 1; letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cs-stat b sup { font-size: .38em; vertical-align: super; color: var(--ink-3); }
.cs-stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cs-stat--dark { background: var(--ink); box-shadow: 0 10px 18px -12px rgba(0,0,0,.35); }
.cs-stat--dark b { color: #fff; }
.cs-stat--dark span { color: rgba(255,255,255,.75); }

/* definition grid (the quick version, ownership) */
.cs-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.cs-dl > div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.cs-dl > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.cs-dl dt { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cs-dl dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }

/* status chips */
.cs-states { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.state {
  --c: #18915e; --bg: #e7f8f0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 7px 11px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  font: 500 11.5px/1 var(--mono); letter-spacing: .06em;
  color: var(--c);
  transition: transform .35s var(--spring);
}
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.state:hover { transform: translateY(-2px) scale(1.04); }
.state:hover::before { animation: ping 1s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.state--warn { --c: #b26a00; --bg: #fff4e0; }
.state--info { --c: #2c5fc4; --bg: #e8f0ff; }
.state--alert { --c: #c23a2b; --bg: #fdeceb; }

/* two audiences / compare */
.cs-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; margin: 30px 0; }
.cs-card {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 10px 18px -14px rgba(52,39,16,.2);
  transition: transform .45s var(--spring), box-shadow .4s ease;
}
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 20px 26px -16px rgba(52,39,16,.26); }
.cs-card h4 { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.cs-card p { font-size: 15.5px !important; line-height: 1.55 !important; margin: 0 0 8px !important; color: var(--ink) !important; }
.cs-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; color: var(--ink); }
.cs-card--muted { background: #f3f3f5; box-shadow: 0 0 0 1px var(--line); }
.cs-card--ink { background: var(--ink); }
.cs-card--ink h4 { color: rgba(255,255,255,.55); }
.cs-card--ink p, .cs-card--ink blockquote { color: #fff !important; }
.cs-arrow { align-self: center; font: 400 26px/1 var(--serif); color: var(--ink-3); }
.cs-card ul { display: grid; gap: 6px; }
.cs-card li { font-size: 15.5px; color: var(--ink); }
.cs-card--ink li { color: #fff; }

/* label rename: tech vs task */
.cs-rename { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; margin: 26px 0; }
.cs-rename code {
  font: 500 13px/1 var(--mono);
  padding: 9px 12px; border-radius: 8px;
  background: #f0f0f3; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: line-through; text-decoration-color: rgba(194,58,43,.55);
}
.cs-rename span.to {
  font: 500 15px/1.3 var(--sans);
  padding: 10px 14px; border-radius: 8px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), 0 6px 12px -8px rgba(0,0,0,.2);
}

/* big comparative numbers */
.cs-big {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px;
  margin: 34px 0 10px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -.045em;
  color: var(--ink);
}
.cs-big .cs-arrow { font-size: .6em; }
.cs-big small { width: 100%; font: 400 14px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-3); }

/* the wall of checks */
.cs-wall {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f3f3f5;
  box-shadow: inset 0 0 0 1px var(--line);
  font: 400 13.5px/1.75 var(--mono);
  color: var(--ink-3);
  column-count: 2; column-gap: 28px;
  transition: color .3s ease;
}
.cs-wall:hover { color: #9fa2aa; }

/* tag cloud */
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.cs-tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 11px 6px; border-radius: 4px;
  background: var(--tag); color: var(--ink);
  transition: transform .3s var(--spring), background .2s ease;
}
.cs-tags li:hover { transform: translateY(-2px) rotate(-2deg); background: #d6d6dc; }

/* "beyond product UI" cards */
.cs-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.cs-work > * {
  display: block;
  padding: 10px 10px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 10px 18px -14px rgba(52,39,16,.2);
  transition: transform .45s var(--spring), box-shadow .4s ease;
}
.cs-work > *:hover { transform: translateY(-6px) rotate(var(--tilt, -1deg)); box-shadow: 0 0 0 1px var(--line-2), 0 24px 30px -18px rgba(52,39,16,.3); }
.cs-work > *:nth-child(even) { --tilt: 1deg; }
.cs-work .ph { --ar: 4 / 3; padding: 12px; border-radius: 9px; }
.cs-work .ph__hint { font-size: 17px; }
.cs-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.cs-work h4 { margin: 14px 6px 4px; font: 500 16px/1.3 var(--sans); color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.cs-work p { margin: 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cs-work a h4 span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-blue); align-self: center; transition: transform .35s var(--spring); }
.cs-work a:hover h4 span { transform: translateX(4px); }

/* ownership / steps */
.cs-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 26px 0; counter-reset: step; }
.cs-steps > div { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--line); counter-increment: step; }
.cs-steps > div::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 19px;
  font: 500 11px/1 var(--mono); color: var(--ink-3);
  padding: 4px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .25s ease, color .25s ease;
}
.cs-steps > div:hover::before { background: var(--ink); color: #fff; }
.cs-steps h4 { margin: 0 0 4px; font: 500 16px/1.35 var(--sans); color: var(--ink); }
.cs-steps p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.55 !important; }

/* visual foundations panel (placeholders) */
.cs-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.cs-swatch {
  aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, #fafafa 0 6px, #f0f0f3 6px 7px);
  display: grid; place-items: center;
  font: 400 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  transition: transform .4s var(--spring);
}
.cs-swatch:hover { transform: translateY(-4px) scale(1.04); }

/* year columns */
.cs-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.cs-years .cs-fig { margin: 0; }
.cs-year { font: 400 italic 30px/1 var(--serif); letter-spacing: -.03em; color: var(--ink); margin-bottom: 12px; }
.cs-todo {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2); border-radius: 8px;
  font: 400 18px/1.2 var(--hand); color: var(--ink-3);
}

/* takeaway */
.cs-takeaway {
  position: relative;
  margin: 10px auto 0;
  max-width: 820px;
  padding: 68px 48px 60px;
  text-align: center;
  background: url(assets/stamp-paper.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.06));
}
.cs-takeaway p {
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cs-takeaway p + p { margin-top: 8px; color: var(--ink-blue); }
.cs-takeaway .cs-scribble { margin-top: 18px; font-size: 24px; }

/* next project */
.cs-next {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: 40px 36px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform .5s var(--spring);
}
.cs-next::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255,255,255,.05) 9px 10px);
}
.cs-next:hover { transform: translateY(-4px) rotate(-.4deg); }
.cs-next .cs-eyebrow { color: rgba(255,255,255,.55); margin-bottom: 14px; }
.cs-next h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.cs-next p { margin-top: 12px; font-size: 15.5px; color: rgba(255,255,255,.72); }
.cs-next__go {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px 10px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.cs-next__go span { transition: transform .35s var(--spring); }
.cs-next:hover .cs-next__go span { transform: translateX(5px); }

.case .footer { margin-top: 0; }
.cs-end > .cs-wrap { padding-top: 64px; padding-bottom: 96px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Chapters, area index and the brand & marketing showcase pieces
   -------------------------------------------------------------------------- */
/* chapter opener at the top of the first section in each part */
.cs-chapter {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 22px;
  margin-bottom: 72px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
}
.cs-chapter::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 40%;
  background-image: var(--hatch);
  -webkit-mask: linear-gradient(to left, rgba(0,0,0,.85), transparent);
  mask: linear-gradient(to left, rgba(0,0,0,.85), transparent);
  pointer-events: none;
}
.cs-chapter__no {
  grid-row: span 2; align-self: center;
  display: inline-grid; place-items: center;
  height: 30px; padding: 0 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.cs-chapter__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.04em;
  color: var(--ink);
}
.cs-chapter__sub { font: 400 24px/1.1 var(--hand); color: var(--ink-3); }

/* eight areas, each a jump link */
.cs-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 30px auto 40px; }
.cs-areas a {
  position: relative;
  display: grid; gap: 4px; align-content: start;
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 10px 18px -14px rgba(52,39,16,.2);
  transition: transform .45s var(--spring), box-shadow .4s ease;
}
.cs-areas a::after {
  content: "↓"; position: absolute; right: 14px; top: 14px;
  font: 400 14px/1 var(--sans); color: var(--ink-3);
  transition: transform .35s var(--spring), color .2s ease;
}
.cs-areas a:hover { transform: translateY(-4px) rotate(var(--tilt, -1deg)); box-shadow: 0 0 0 1px var(--line-2), 0 20px 26px -16px rgba(52,39,16,.28); }
.cs-areas a:nth-child(even) { --tilt: 1deg; }
.cs-areas a:hover::after { transform: translateY(3px); color: var(--ink); }
.cs-areas b { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.cs-areas span { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.cs-areas small { font-size: 13px; line-height: 1.4; color: var(--ink-3); }

/* before / after slider */
.cs-ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: var(--ar, 16 / 10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(30,30,30,.45);
  -webkit-user-select: none; user-select: none;
  touch-action: pan-y;
}
.cs-ba__layer { position: absolute; inset: 0; }
.cs-ba__layer > img, .cs-ba__layer > .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; }
.cs-ba__layer > .ph { border: 0; }
.cs-ba__after { clip-path: inset(0 0 0 var(--pos)); }
.cs-ba__after > .ph { background: repeating-linear-gradient(45deg, #f6f7fb 0 10px, #eceef5 10px 11px); }
/* keep each placeholder's label on its own half so they never sit under the handle */
.cs-ba__before > .ph { place-content: center start; justify-items: start; padding-left: 9%; text-align: left; }
.cs-ba__after > .ph { place-content: center end; justify-items: end; padding-right: 9%; text-align: right; }
.cs-ba .ph__hint { max-width: 22ch; }
.cs-ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 12px rgba(0,0,0,.18);
  pointer-events: none;
}
.cs-ba__handle i {
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .35s var(--spring);
}
.cs-ba__handle i::before, .cs-ba__handle i::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.cs-ba__handle i::before { left: 11px; transform: rotate(45deg); }
.cs-ba__handle i::after { right: 11px; transform: rotate(-135deg); }
.cs-ba:hover .cs-ba__handle i, .cs-ba.is-active .cs-ba__handle i { transform: scale(1.1); }
.cs-ba__label {
  position: absolute; top: 14px;
  padding: 6px 10px 5px; border-radius: 6px;
  background: rgba(23,23,28,.72); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
}
.cs-ba__label--l { left: 14px; }
.cs-ba__label--r { right: 14px; }
.cs-ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y;
  -webkit-appearance: none; appearance: none;
}
.cs-ba__range:focus-visible + .cs-ba__handle, .cs-ba:has(.cs-ba__range:focus-visible) .cs-ba__handle i { outline: 2px solid var(--ink-blue); outline-offset: 3px; }

/* browser frame: hover to scroll a full-length page */
.cs-browser {
  --view: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(30,30,30,.45);
}
.cs-browser__bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  background: #f3f3f5; border-bottom: 1px solid var(--line);
}
.cs-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.cs-browser__bar i:nth-child(2) { background: #febc2e; }
.cs-browser__bar i:nth-child(3) { background: #28c840; }
.cs-browser__bar span {
  margin: 0 auto; transform: translateX(-24px);
  padding: 4px 40px; border-radius: 6px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font: 400 11.5px/1.2 var(--mono); color: var(--ink-3);
}
.cs-browser__view { position: relative; height: var(--view); overflow: hidden; outline: none; }
.cs-browser__page { transition: transform 7s cubic-bezier(.45,.05,.4,1); }
.cs-browser__page > img, .cs-browser__page > .ph { display: block; width: 100%; border-radius: 0; }
.cs-browser__page > .ph { border: 0; place-content: start center; padding-top: 170px; }
.cs-browser__view:hover .cs-browser__page,
.cs-browser__view:focus-visible .cs-browser__page { transform: translateY(calc(-100% + var(--view))); transition-duration: 9s; }
@media (hover: none) {
  .cs-browser__view { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .cs-browser__view:hover .cs-browser__page { transform: none; }
}

/* phones */
.cs-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); padding: 10px clamp(0px, 4vw, 60px); }
.cs-phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 38px;
  background: #1c1c20;
  box-shadow: inset 0 0 0 2px #3a3a40, 0 22px 40px -22px rgba(0,0,0,.5);
  transition: transform .5s var(--spring);
}
.cs-phone:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.cs-phone:nth-child(3) { transform: rotate(3deg) translateY(10px); }
.cs-phone:hover { transform: translateY(-8px) rotate(0deg); }
.cs-phone::before {
  content: ""; position: absolute; left: 50%; top: 17px; z-index: 2;
  width: 30%; height: 18px; margin-left: -15%; border-radius: 999px; background: #1c1c20;
}
.cs-phone > img, .cs-phone > .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 30px; border: 0; }
.cs-phone > .ph { padding: 12px; }

/* static browser frames: one screenshot or screen recording each */
.cs-span-2 { grid-column: 1 / -1; }
/* two pages side by side at the same height: columns sized by each one's ratio
   (product page 1600x1084, landing page 16:9) */
.cs-pair { grid-template-columns: minmax(0, 1.476fr) minmax(0, 1.778fr); align-items: start; }
.cs-browser--shot { transition: transform .5s var(--ease); }
.cs-browser--shot > img, .cs-browser--shot > video { display: block; width: 100%; height: auto; background: #f3f3f5; }
.cs-fig:hover .cs-browser--shot { transform: translateY(-4px) rotate(-.3deg); }
.cs-fig > video { background: #f3f3f5; transition: transform .5s var(--ease); }
.cs-fig:hover > video { transform: translateY(-4px) rotate(-.4deg); }

/* tiles: social grids */
.cs-tiles { display: grid; gap: 12px; }
.cs-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.cs-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-tiles > .ph { aspect-ratio: 1; width: 100%; padding: 10px; border-radius: 10px; }
.cs-tiles--4 > .ph { aspect-ratio: 4 / 5; }
.cs-tiles > img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 10px; background: #ececef;
  box-shadow: 0 0 0 1px var(--line), 0 14px 28px -20px rgba(30,30,30,.45);
}
.cs-tiles > img:hover { box-shadow: 0 0 0 1px var(--line), 0 22px 34px -20px rgba(30,30,30,.5); }
.cs-tiles .ph__tag { font-size: 9px; padding: 5px 7px; }
.cs-tiles > * { transition: transform .45s var(--spring); }
.cs-tiles > *:hover { transform: translateY(-4px) rotate(-1deg); }

/* newsletters at full length */
.cs-mails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cs-mail {
  border-radius: 12px; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 16px 30px -22px rgba(30,30,30,.4);
  transition: transform .5s var(--spring);
}
.cs-mail:nth-child(2) { margin-top: 28px; }
.cs-mail:hover { transform: translateY(-6px); }
.cs-mail__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f6f6f8; }
.cs-mail__bar i { height: 6px; border-radius: 3px; background: #dedee3; width: 34%; }
.cs-mail__bar i + i { width: 22%; }
.cs-mail > .ph, .cs-mail > img { width: 100%; aspect-ratio: 1 / 2.3; border: 0; border-radius: 0; object-fit: cover; object-position: top; }
.cs-mail > img { display: block; aspect-ratio: auto; height: auto; }  /* real emails show at full length */

@media (max-width: 900px) {
  .cs-chapter { grid-template-columns: 1fr; margin-bottom: 48px; }
  .cs-chapter__no { grid-row: auto; justify-self: start; }
  .cs-chapter::before { width: 55%; }
  .cs-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-areas a { padding: 14px 14px 16px; }
  .cs-areas span { font-size: 18px; }
  .cs-browser { --view: 420px; }
  .cs-ba .ph__hint { display: none; }
  .cs-ba .ph__tag { font-size: 8px; padding: 4px 6px; }
  .cs-ba__before > .ph { padding-left: 5%; }
  .cs-ba__after > .ph { padding-right: 5%; }
  .cs-ba__label { top: 10px; font-size: 9.5px; }
  .cs-browser__bar span { padding: 4px 18px; transform: none; }
  .cs-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 6px 0; }
  .cs-phone { border-radius: 22px; padding: 5px; }
  .cs-phone::before { top: 10px; height: 10px; }
  .cs-phone > img, .cs-phone > .ph { border-radius: 18px; }
  .cs-phone .ph__tag { font-size: 7.5px; padding: 4px 5px; }
  .cs-tiles { gap: 8px; }
  .cs-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-tiles .ph__tag { font-size: 7.5px; padding: 4px 5px; }
  /* nine posts are too small to read at a third of a phone: swipe instead */
  .cs-tiles--3 {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    max-width: none; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 2px 18px; margin-inline: -2px;
  }
  .cs-tiles--3 > * { scroll-snap-align: start; }
  .cs-tiles > *:hover { transform: none; }
  .cs-mails {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .cs-mail { scroll-snap-align: start; }
  .cs-mail:nth-child(2) { margin-top: 0; }
  .cs-grid--3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Case-study footer: the v3 note on the cutting mat (scoped to .footer--note)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   FOOTER: 1560 x 846 stage, full bleed, the mat runs off the bottom
   -------------------------------------------------------------------------- */
.footer.footer--note {
  background: none;
  position: relative;
  z-index: 2;
  margin-top: calc(40px * var(--s));
  margin-left: calc(50% - 50vw);
  width: 100vw;
  height: calc(846px * var(--s) * var(--fs, .9));
  overflow: hidden;
}
.footer--note .footer__stage {
  position: absolute;
  left: 50%; top: 0;
  width: 1560px; height: 846px;
  margin-left: -780px;
  transform: scale(calc(var(--s) * var(--fs, .9)));
  transform-origin: top center;
}
.footer--note .footer__stage > * { position: absolute; }

.footer--note .f-paper { left: 336px; top: 140px; width: 876px; max-width: none; z-index: 1; }
.footer--note .f-postmark { left: 346px; top: 155px; width: 208px; z-index: 2; opacity: .9; }
.footer--note .f-title {
  left: 393px; top: 232px; width: 774px;
  z-index: 2;
  text-align: center;
  white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 71px; line-height: 77px; letter-spacing: -3.4px;
  background-image: linear-gradient(180deg, #171513 22%, #5c5443 112%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.footer--note .f-sub {
  left: 480px; top: 312px; width: 600px;
  z-index: 2;
  text-align: center;
  font-family: var(--hand); font-weight: 700;
  font-size: 38px; line-height: 50px; letter-spacing: -.4px;
  color: var(--ink-blue);
}
.footer--note .f-sub__link { position: relative; display: inline-block; }
.footer--note .f-underline {
  position: absolute;
  left: -4px; bottom: -8px;
  width: 142px; height: 23px;
  fill: none; stroke: var(--ink-blue); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 0;
  transition: stroke-dashoffset .6s var(--ease);
}
.footer--note .f-sub__link:hover .f-underline { animation: note-redraw .7s var(--ease); }
@keyframes note-redraw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.footer--note .f-sub__link:hover { color: #2f4f96; }
.footer--note .f-portrait {
  left: 1084px; top: 179px; width: 244px; max-width: none;
  z-index: 2;
  transform-origin: 50% 0;
  transition: transform .5s var(--spring);
}
.footer--note .f-portrait:hover { transform: rotate(3deg) translateY(-4px); }
.footer--note .f-clip { left: 1105px; top: 93px; width: 176.5px; z-index: 3; pointer-events: none; }

.footer--note .f-mat { left: 43px; top: 435px; width: 1473px; z-index: 4; pointer-events: none; }
.footer--note .f-mat__img { width: 100%; max-width: none; }

.footer--note .f-socials {
  left: 1165px; top: 699px; width: 268px;
  z-index: 5;
  display: flex; justify-content: space-between;
}
.footer--note .f-socials a { display: block; width: 30px; height: 30px; transition: transform .35s var(--spring), opacity .2s ease; }
.footer--note .f-socials a:hover { transform: translateY(-4px) rotate(-8deg) scale(1.12); }
.footer--note .f-socials svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.footer--note .f-socials svg.fill { fill: #fff; stroke: none; }
.footer--note .f-legal {
  left: 113px; top: 781px; width: 1321px;
  z-index: 5;
  display: flex; justify-content: space-between;
  font-family: var(--grotesk); font-weight: 500;
  font-size: 20px; line-height: 25px;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.footer--note .f-sign { left: 678px; top: 671px; width: 204px; z-index: 6; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.footer--note .f-resume { left: 457px; top: 482px; width: 203px; z-index: 6; display: block; }
.footer--note .f-resume img { width: 100%; transition: transform .45s var(--spring); }
.footer--note .f-resume:hover img { transform: translateY(-6px) rotate(-3deg); }
.footer--note .f-bubble { width: var(--w); z-index: 7; }
.footer--note .f-bubble > img { width: 100%; transition: transform .45s var(--spring); transform-origin: 20% 80%; }
.footer--note .f-bubble:hover > img { transform: rotate(-1.5deg) scale(1.03); }
.footer--note .f-bubble--ilike { --w: 465px; left: 659.5px; top: 548px; }
.footer--note .f-bubble--hey { --w: 399px; left: 1157.5px; top: 356px; }
.footer--note .f-bubble--untangle { --w: 322px; left: 113px; top: 508px; z-index: 9; }
.footer--note .f-note {
  position: absolute;
  white-space: nowrap;
  font-family: var(--hand); font-weight: 700;
  font-size: 22px; line-height: 1.2;
  color: var(--mint);
  pointer-events: none;
}
.footer--note .f-bubble--untangle .f-note { left: 20.8%; top: 66%; transform: rotate(-2deg); }
.footer--note .f-bubble--ilike .f-note { left: 29%; top: 66%; transform: rotate(-1deg); }
.footer--note .f-bubble--hey .f-note { left: 25%; top: 92%; transform: rotate(-6deg); }
.footer--note .f-bubble__email {
  position: absolute;
  left: 63.5%; top: 18%; width: 26%; height: 31%;
  border-radius: 999px;
  transition: box-shadow .25s ease, transform .3s var(--spring);
}
.footer--note .f-bubble__email:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.55); transform: scale(1.04); }
.footer--note .f-mouse { left: -322px; top: 401px; width: 597px; max-width: none; z-index: 8; }
.footer--note .f-pop { left: 10px; top: 300px; width: 359px; max-width: none; z-index: 8; transition: transform .45s var(--spring), scale .25s var(--spring), filter .25s ease; }
.footer--note .f-pop:hover { transform: rotate(-3deg); }
.footer--note .f-binder { left: 317px; top: 329px; width: 244px; z-index: 9; }


.footer--note .f-socials svg .dot { fill: #fff; stroke: none; }

@media (max-width: 900px) {
  /* undo the Let's Talk footer's flowing phone layout for the note footer */
  .footer.footer--note { height: calc(1040px * var(--ms, 1)); }
  .footer--note .footer__stage {
    position: absolute; left: 50%; top: 0;
    width: 400px; height: 1040px; margin-left: -200px; padding: 0;
    transform: scale(var(--ms, 1)); transform-origin: top center;
  }
  .footer.footer--note { margin-top: 24px; height: calc(1040px * var(--ms, 1)); }
  .footer--note .footer__stage { width: 400px; height: 1040px; margin-left: -200px; transform: scale(var(--ms, 1)); }
  .footer--note .f-paper { left: -8px; top: 22px; width: 416px; }
  .footer--note .f-postmark { left: 4px; top: 29px; width: 90px; }
  .footer--note .f-title {
  left: 30px; top: 70px; width: 230px;
  white-space: normal; text-align: left;
  font-size: 36px; line-height: 40px; letter-spacing: -1.4px;
  }
  .footer--note .f-sub { left: 30px; top: 154px; width: 230px; text-align: left; font-size: 21px; line-height: 28px; }
  .footer--note .f-underline { width: 76px; height: 13px; bottom: -4px; left: -2px; }
  .footer--note .f-portrait { left: 274px; top: 50px; width: 112px; }
  .footer--note .f-clip { left: 289px; top: 8px; width: 79px; }
  .footer--note .f-mat { left: -300px; top: 507px; width: 1000px; transform: rotate(90deg); }
  .footer--note .f-pop { left: -19px; top: 205px; width: 158px; }
  .footer--note .f-binder { left: 126px; top: 194px; width: 101px; }
  .footer--note .f-bubble--hey { --w: 270px; left: 111px; top: 269px; }
  .footer--note .f-bubble--untangle { --w: 227px; left: 7px; top: 416px; }
  .footer--note .f-resume { left: 268px; top: 398px; width: 117px; }
  .footer--note .f-bubble--ilike { --w: 331px; left: 26px; top: 554px; }
  .footer--note .f-sign { left: 243px; top: 695px; width: 126px; }
  .footer--note .f-mouse { left: -133px; top: 670px; width: 297px; }
  .footer--note .f-socials { left: 150px; top: 860px; width: 212px; }
  .footer--note .f-socials a, .footer--note .f-socials svg { width: 24px; height: 24px; }
  .footer--note .f-legal {
  left: 20px; top: 948px; width: 360px;
  flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px; line-height: 17px;
  }
  .footer--note .f-note { font-size: 15.5px; }
}

.case .footer.footer--note { margin-top: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cs-hero__flair, .cs-ticket { position: relative; right: auto; top: auto; margin: 36px 0 0 auto; justify-self: end; width: max-content; }
  .cs-hero__body:has(.cs-lanyard) .cs-title,
  .cs-hero__body:has(.cs-lanyard) .cs-hero__lede { max-width: none; }
  .cs-lanyard { position: relative; top: auto; right: auto; width: 100%; max-width: 420px; height: 470px; margin: 4px 0 -16px auto; }
  .lanyard { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px); mask-image: linear-gradient(to bottom, transparent 0, #000 90px); }
  .cs-lanyard__note { left: calc(60% - 128px); bottom: 14px; }
  .cs-hero__body { display: grid; }
}
@media (max-width: 900px) {
  .cs-lanyard { height: 430px; }
  .lanyard__flat { width: 200px; margin-left: -100px; }
  .side-nav { display: none; }
  .cs-wrap { padding: 0 16px; }
  .cs-bar { margin: 0 -16px; }
  .cs-meta { margin: 0 -16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .cs-meta > div:nth-child(4) { border-top: 1px solid var(--line); }
  .cs-section > .cs-wrap { padding-top: 60px; padding-bottom: 60px; }
  .cs-hero__body { padding-top: 48px; }
  .cs-stats, .cs-stats--2, .cs-work, .cs-years, .cs-compare--3 { grid-template-columns: 1fr; }
  .cs-fig--span2 { grid-column: auto; }
  .cs-stat b { font-size: 46px; }
  .cs-grid--2, .cs-grid--3, .cs-pair { grid-template-columns: 1fr; }
  .cs-dl { grid-template-columns: 1fr; }
  .cs-dl > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .cs-steps { grid-template-columns: 1fr; }
  .cs-compare { grid-template-columns: 1fr; }
  .cs-compare .cs-arrow { transform: rotate(90deg); justify-self: center; }
  .cs-rename { grid-template-columns: 1fr; justify-items: start; }
  .cs-rename .cs-arrow { transform: rotate(90deg); }
  .cs-wall { column-count: 1; }
  .cs-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-takeaway { padding: 48px 22px 40px; }
  .cs-next { grid-template-columns: 1fr; padding: 30px 22px; }
  .cs-ticket { width: 260px; }
}


/* ==========================================================================
   Round 10 (17 Oct)
   ========================================================================== */

/* the flat lanyard (no WebGL, or before the 3D one loads) rocks like a pendulum */
.lanyard:not(.is-live) { transform-origin: 60% 0; animation: ly-swing 3.4s ease-in-out infinite alternate; }
@keyframes ly-swing { from { rotate: -3.2deg; } to { rotate: 3.2deg; } }
@media (prefers-reduced-motion: reduce) { .lanyard:not(.is-live) { animation: none; } }

/* sticky notes: short statements, pinned like the note on the homepage */
.cs-notes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 22px;
  margin: 36px calc(50% - min(470px, 50vw - 24px)) 40px;
}
.cs-note {
  --r: -2deg;
  --paper: #fdeba0; --paper-2: #fff4c2; --rule: rgba(86, 140, 160, .26); --margin: rgba(214, 86, 70, .4);
  position: relative;
  flex: 0 1 212px; min-height: 182px;
  padding: 45px 18px 20px 24px;
  background:
    linear-gradient(90deg, transparent 0 16px, var(--margin) 16px 17px, transparent 17px),
    repeating-linear-gradient(to bottom, transparent 0 26px, var(--rule) 26px 27px) 0 41px / 100% calc(100% - 52px) no-repeat,
    linear-gradient(165deg, var(--paper-2), var(--paper) 60%);
  border-radius: 2px 2px 12px 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 16px 22px -14px rgba(70, 50, 0, .42);
  rotate: var(--r);
  transition: rotate .45s var(--spring), translate .45s var(--spring), box-shadow .3s ease;
}
.cs-note:nth-child(3n+2) { --r: 1.6deg; }
.cs-note:nth-child(3n) { --r: -.8deg; }
.cs-note:nth-child(4n) { --r: 2.3deg; }
.cs-note:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 24px 28px -16px rgba(70, 50, 0, .5); }
.cs-note::before {                               /* a strip of tape */
  content: ""; position: absolute; top: -11px; left: 50%;
  width: 76px; height: 22px; margin-left: -38px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  rotate: -3deg;
}
.cs-note:nth-child(even)::before { rotate: 4deg; margin-left: -30px; }
.cs-note__emoji { position: absolute; top: 11px; left: 24px; font-size: 21px; line-height: 1; }
.cs-text .cs-note p, .cs-note p {
  margin: 0; text-wrap: pretty;
  font: 700 22px/27px var(--hand); color: #262626;
}
.cs-text .cs-note p:has(b) { color: #6c6550; }
.cs-note p b { display: block; color: #1d1d1d; font-weight: 700; margin-bottom: 2px; }
.cs-notes--soft .cs-note { --paper: #d9e9fb; --paper-2: #eef5ff; --rule: rgba(80, 120, 170, .22); --margin: rgba(80, 120, 170, .3); }

/* bento: a preview of every front, each tile jumps to its section */
.cs-bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, 170px);
  grid-template-areas: "p p d d" "p p i l" "w s n e";
}
.b-prod { grid-area: p; } .b-ds { grid-area: d; } .b-icons { grid-area: i; } .b-illo { grid-area: l; }
.b-web { grid-area: w; } .b-social { grid-area: s; } .b-news { grid-area: n; } .b-events { grid-area: e; }
.cs-bento__tile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 12px; background: #eceef2;
  box-shadow: 0 0 0 1px var(--line), 0 14px 26px -20px rgba(30,30,30,.45);
  transition: transform .45s var(--spring), box-shadow .3s ease;
}
.cs-bento__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.b-web img, .b-news img { object-position: top; }
.b-icons img { object-position: 30% 50%; }
.cs-bento__tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 0 0 1px var(--line-2), 0 22px 30px -18px rgba(30,30,30,.5); }
.cs-bento__tile:nth-child(even):hover { transform: translateY(-4px) rotate(.4deg); }
.cs-bento__tile:hover img { transform: scale(1.05); }
.cs-bento__label {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px;
  max-width: calc(100% - 20px);
  padding: 6px 10px 6px 8px; border-radius: 8px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.35);
  font: 600 13px/1.2 var(--sans); color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.cs-bento__label b { font: 500 10px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); transition: color .25s ease; }
.cs-bento__label small { display: none; }
.b-prod .cs-bento__label small { display: block; width: 100%; font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.cs-bento__tile:hover .cs-bento__label { background: #17171c; color: #fff; }
.cs-bento__tile:hover .cs-bento__label b, .cs-bento__tile:hover .cs-bento__label small { color: rgba(255,255,255,.7); }

/* recognition: the same badges as the homepage, certificates fan out on hover */
.cs-recog { position: relative; max-width: 552px; margin-top: 44px; }
.cs-text .cs-recog__label { margin: 0 0 2px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cs-recog .awards { margin-top: 12px; }
.cs-text .cs-recog .hover-note { position: static; display: flex; width: max-content; margin: 6px 0 0 auto; font-size: 18.4px; line-height: 1; color: #b8bbc1; }
.js .cs-recog.is-in .hover-note svg path:first-child { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw-note .9s .5s var(--ease) forwards; }
.js .cs-recog.is-in .hover-note svg path:last-child { opacity: 0; animation: fade-in .2s 1.2s ease forwards; }
.cs-recog:has(.award:hover) .hover-note { opacity: 0; transition: opacity .2s ease; }

/* event scope: screen → print → booth → merch */
.cs-flow li { position: relative; margin-right: 20px; }
.cs-flow li:last-child { margin-right: 0; }
.cs-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; translate: 0 -50%; color: var(--ink-3); font-family: var(--sans); }

@media (max-width: 900px) {
  /* lanyard first on phones, hanging from the top bar */
  .cs-lanyard { order: -1; width: 100%; max-width: none; height: 360px; margin: -48px 0 6px; }
  .lanyard { -webkit-mask-image: none; mask-image: none; }
  .cs-lanyard__note { bottom: 6px; }

  .cs-notes { gap: 18px 12px; margin-inline: 0; }
  .cs-note { flex: 0 1 calc(50% - 6px); min-height: 150px; padding: 38px 12px 14px 20px; }
  .cs-text .cs-note p, .cs-note p { font-size: 19px; line-height: 23px; }
  .cs-note { background-size: auto, 100% calc(100% - 48px), auto; }
  .cs-note__emoji { top: 10px; left: 20px; font-size: 18px; }

  .cs-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 190px repeat(4, 116px); grid-template-areas: "p p" "d d" "i l" "w s" "n e"; gap: 8px; }
  .cs-bento__label { left: 7px; bottom: 7px; padding: 5px 8px 5px 7px; font-size: 11.5px; }
  .b-prod .cs-bento__label small { font-size: 11px; }

  .cs-recog { margin-top: 36px; }
  .cs-text .cs-recog .hover-note { margin: 4px 0 0 140px; font-size: 16px; }
}


/* ==========================================================================
   Round 11 (17 Oct)
   ========================================================================== */

/* lanyard: a wider stage so a swung card never gets clipped; the hang point stays put */
.cs-lanyard { --anchor: .75; width: 760px; height: 600px; z-index: 2; }
@media (min-width: 1101px) { .cs-hero__body:has(.cs-lanyard) { min-height: 600px; } }
.lanyard::before { left: calc(var(--anchor) * 100%); }
.lanyard__flat { left: calc(var(--anchor) * 100%); }
.lanyard:not(.is-live) { transform-origin: calc(var(--anchor) * 100%) 0; }
.cs-lanyard__note {
  left: calc(var(--anchor) * 100% - 120px); top: auto; bottom: 12px;
  font: 700 18.4px/1 var(--hand); color: #b8bbc1;
  transform: rotate(-4deg);
}
.cs-lanyard__note svg { width: 44px; height: 33px; margin: 0 2px 6px 0; stroke: #c3c6cb; stroke-width: 2.2; transform: rotate(14deg); }
@media (max-width: 1100px) {
  .cs-lanyard { --anchor: .6; width: 100%; height: 470px; }
}

/* sticky notes: no emoji, text sits on the ruled lines, and the lift is smooth */
.cs-note { min-height: 158px; padding: 30px 18px 20px 24px; background-position: 0 0, 0 26px, 0 0; }
.cs-note, .js .cs-note[data-reveal] {
  transition: opacity .9s var(--ease), transform 1s var(--ease),
              rotate .7s cubic-bezier(.22, 1, .36, 1), translate .7s cubic-bezier(.22, 1, .36, 1), box-shadow .6s ease;
  transition-delay: var(--rd, 0s), var(--rd, 0s), 0s, 0s, 0s;
}
.cs-note:hover { translate: 0 -8px; }

/* recognition: full width of the stats row, text sits properly inside the badge */
.cs-recog { max-width: none; }
.cs-recog .awards { max-width: none; gap: 18px; }
.cs-recog .award { max-width: none; font-size: clamp(15px, 2.9cqi, 20px); height: 3.45em; padding: 0 .9em 0 .85em; }
.cs-text .cs-recog .award p { margin: 0; font-size: inherit; line-height: 1.12; color: inherit; text-wrap: nowrap; }
.cs-recog .award__fan img { width: 168px; }
.cs-text .cs-recog .hover-note { margin-right: 12px; }

/* bento: the big tile plays the Security Suite page */
.cs-bento__tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cs-bento__tile:hover video { transform: scale(1.05); }
.b-web img { object-position: 50% 30%; }

@media (max-width: 900px) {
  .cs-lanyard { height: 360px; }
  .cs-lanyard__note { top: calc(85% + 2px); font-size: 16.5px; }
  .cs-note { min-height: 136px; padding: 28px 12px 14px 20px; }
  .cs-text .cs-note p, .cs-note p { line-height: 27px; }
  .cs-recog .award { font-size: 15.5px; }
  .cs-text .cs-recog .hover-note { margin: 4px 0 0 auto; }
}


/* ==========================================================================
   Identity Shield case (round 12)
   ========================================================================== */

/* ID card on the lanyard: the art has a see-through face, so the flat card
   needs its own white */
.cs-lanyard--ids .lanyard__flat { background: #fbfbfc; border-radius: 16px; }

/* a row of images that share one figure and one caption; --cols takes the
   images' aspect ratios so they all end up the same height */
.cs-strip { display: grid; grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); gap: 14px; align-items: start; }
.cs-strip > img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(30,30,30,.45);
  transition: transform .5s var(--ease);
}
.cs-strip > img:hover { transform: translateY(-4px) rotate(-.4deg); }

/* the 70 ft wall: a strip you scroll or drag sideways */
.cs-scroller {
  position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  border-radius: 12px; background: #0d1030;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(30,30,30,.45);
  scrollbar-width: thin; scrollbar-color: #9aa0b4 transparent;
  -webkit-user-select: none; user-select: none;
}
.cs-scroller img { display: block; height: 380px; width: auto; max-width: none; pointer-events: none; }
.cs-scroller:focus-visible { outline: 2px solid var(--ink-blue); outline-offset: 3px; }
.cs-fig--scroll:hover > .cs-scroller { transform: none; }

/* the landing page frame is taller than the default */
#web .cs-browser { --view: 640px; }

/* the three editions: same crop for each */
#years .cs-years .cs-fig > img { aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 900px) {
  .cs-strip { gap: 10px; }
  .cs-scroller img { height: 260px; }
  #web .cs-browser { --view: 460px; }
  #years .cs-years .cs-fig > img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .cs-strip { grid-template-columns: 1fr; }
  /* the wall photos and logo pair stay side by side on phones */
  #wall .cs-strip, #logo .cs-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   Northstar case (round 12)
   ========================================================================== */

/* the brief, as an index card pinned beside the title */
.cs-hero__body:has(.ns-brief) .cs-title { max-width: min(860px, calc(100% - 320px)); }
.cs-hero__body:has(.ns-brief) .cs-hero__lede { max-width: min(640px, calc(100% - 300px)); }
.ns-brief {
  position: absolute; right: 8px; top: 96px; width: 272px;
  padding: 26px 22px 20px 26px;
  background:
    linear-gradient(90deg, transparent 18px, rgba(205,60,60,.35) 18px 19.5px, transparent 19.5px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(#fffdf7 0 27px, #dfe6f1 27px 28px);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 30px -18px rgba(30,30,30,.45);
  transform: rotate(4deg);
  transition: transform .5s var(--spring);
}
.ns-brief:hover { transform: rotate(-1.5deg) translateY(-4px); }
.ns-brief__tag { display: block; margin: -6px 0 6px; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ns-brief ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ns-brief li { display: flex; align-items: baseline; gap: 10px; min-height: 28px; font-size: 14px; line-height: 28px; color: var(--ink-2); }
.ns-brief li b { flex: 0 0 42px; font: 400 italic 22px/1 var(--serif); color: var(--ink); }
.ns-brief .cs-scribble { display: block; margin-top: 6px; text-align: right; font-size: 22px; transform: rotate(-4deg); }

/* four findings, two by two */
.ns-findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px auto 30px; }
.ns-findings .cs-stat span { font-size: 15px; }

/* the old layout as a wireframe: content squeezed into two thirds */
.ns-before { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(30,30,30,.45); }
.ns-before__bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: #f3f3f5; border-bottom: 1px solid var(--line); }
.ns-before__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6dc; }
.ns-before__screen { display: grid; grid-template-columns: 66% 34%; aspect-ratio: 1440 / 760; }
.ns-before__used { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 2.2% 2% 2% 2.6%; }
.ns-before__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2.4%; border-bottom: 3px solid #e4b9b9; }
.ns-before__head span { height: 12px; width: 28%; border-radius: 3px; background: #cfcfd6; }
.ns-before__head span + span { width: 22%; background: #ecc9c9; }
.ns-before__body { display: grid; grid-template-columns: 17% 1fr; gap: 2.4%; padding-top: 2.4%; }
.ns-before__side { display: grid; align-content: start; gap: 9px; padding: 8px; border-radius: 4px; background: #f6f6f8; }
.ns-before__side i { height: 6px; border-radius: 2px; background: #dcdce2; }
.ns-before__side i:nth-child(3n) { width: 70%; }
.ns-before__main { display: grid; grid-template-rows: 32% 1fr; gap: 4%; }
.ns-before__banner { border-radius: 4px; background: linear-gradient(110deg, #dfe6f3, #c9d6ec); }
.ns-before__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; }
.ns-before__rows { display: grid; align-content: start; gap: 8px; }
.ns-before__rows i { height: 6px; border-radius: 2px; background: #e2e2e8; }
.ns-before__rows i:nth-child(odd) { width: 86%; }
.ns-before__rows--fx i { background: #e9dede; }
.ns-before__dim {
  position: absolute; left: 2.6%; right: 2%; bottom: 3.5%;
  display: flex; justify-content: center;
  font: 500 10.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3);
  border-top: 1px solid var(--line-2); padding-top: 7px;
}
.ns-before__unused {
  display: grid; place-items: center; text-align: center;
  border-left: 1.5px dashed #c9c9d1;
  background: repeating-linear-gradient(135deg, #fafafa 0 9px, #efeff2 9px 10px);
}
.ns-before__unused span { font: 400 clamp(15px, 1.9vw, 22px)/1.15 var(--hand); color: #c23a2b; transform: rotate(-4deg); }

/* the surface problems as a tally */
.ns-tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 10px 0 18px; border-top: 1px solid var(--line); }
.ns-tally > div { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ns-tally b { flex: 0 0 38px; font: 400 italic 30px/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.ns-tally span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* how I'd measure it */
.ns-measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px auto 0; }

/* a single card shown at a sensible size */
.ns-narrow > img:not(.cs-fig__pin) { max-width: 640px; margin-inline: auto; }
.ns-narrow figcaption { max-width: 640px; margin-inline: auto; }
.ns-narrow .cs-fig__pin { right: calc(50% - 330px); }

/* the inventories, each in its own hover-scroll frame */
.ns-doc { --view: 560px; }

@media (max-width: 1100px) {
  .cs-hero__body:has(.ns-brief) .cs-title,
  .cs-hero__body:has(.ns-brief) .cs-hero__lede { max-width: none; }
  .ns-brief { position: relative; right: auto; top: auto; margin: 34px 0 0 auto; }
  .cs-hero__body:has(.ns-brief) { display: grid; }
}
@media (max-width: 900px) {
  .ns-findings, .ns-measures, .ns-tally { grid-template-columns: 1fr; }
  .ns-before__dim { font-size: 8.5px; }
  .ns-before__side, .ns-before__rows { gap: 5px; }
  .ns-before__side i, .ns-before__rows i { height: 4px; }
  .ns-doc { --view: 420px; }
  .ns-narrow .cs-fig__pin { right: -10px; }
}
@media (max-width: 600px) {
  .ns-brief { margin: 26px auto 0 0; }
}

/* ==========================================================================
   Northstar system, unpacked (round 20): type, space, colour, gradients
   rebuilt as live elements from his two inventory sheets (_src/ns_system.py)
   ========================================================================== */
.ns-spec--jak { font-family: "Plus Jakarta Sans", var(--sans); }
.ns-spec--int { font-family: "Inter", var(--sans); }
.ns-spec--jak, .ns-spec--int { color: #1A1A1A; letter-spacing: 0; font-kerning: normal; }
.ns-spec--jak i, .ns-spec--int i { font-style: normal; color: #A8B1BC; margin: 0 .3em; }

.ns-h3 { display: flex; align-items: baseline; gap: 14px; margin-top: 70px; margin-bottom: 0; }
.ns-h3__k {
  flex: none; padding: 5px 9px 4px; border-radius: 999px;
  font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #D71133; background: rgba(215,17,51,.07);
}
.ns-el { margin: 22px auto 34px; }
/* the system block runs a little wider than the text column so 1:1 specimens fit on one line */
@media (min-width: 1100px) {
  .ns-el.cs-wide, .ns-more.cs-wide { max-width: none; margin-inline: -24px; }
  .ns-h3.cs-wide, .ns-closer.cs-wide { max-width: none; margin-inline: -24px; }
}
.ns-card {
  padding: 26px 28px;
  border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -26px rgba(30,30,30,.4);
}
.ns-dia__t { font: 500 13.5px/1.3 var(--sans); color: var(--ink); margin-bottom: 12px; }
.ns-note { font: 400 12.5px/1.5 var(--sans); color: var(--ink-3); margin-top: 8px; text-wrap: pretty; }
.ns-red { font: 500 12.5px/1.4 var(--sans); color: #D71133; margin-top: 12px; }
.ns-foot { font: 400 12.5px/1.55 var(--sans); color: var(--ink-3); margin-top: 16px; text-wrap: pretty; }
.ns-tag { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #D71133; }

/* families */
.ns-fams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ns-fam { padding: 24px 26px 22px; border-radius: 14px; background: #F4F5F9; box-shadow: 0 0 0 1px #ECEEF3; }
.ns-fam__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ns-fam__name { font-size: 22px; font-weight: 400; }
.ns-fam__big { margin: 16px 0 20px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.ns-fam__w { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ns-fam__w b { display: block; font-size: 19px; line-height: 1.1; }
.ns-fam__w small { display: block; margin-top: 4px; font: 400 11px/1.3 var(--sans); color: var(--ink-3); }
.ns-fam__desc { margin-top: 18px; font: 400 13.5px/1.5 var(--sans); color: var(--ink-2); }

/* role tables */
.ns-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 274px; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #EEF0F4; }
.ns-row--head { padding: 0 0 10px; border-top: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ns-row--head .ns-meta, .ns-row--head .ns-meta b { font: inherit; color: inherit; }
.ns-role b { display: block; font: 500 13.5px/1.3 var(--sans); color: var(--ink); }
.ns-role small { display: block; margin-top: 2px; font: 400 12px/1.35 var(--sans); color: var(--ink-3); }
.ns-spec { min-width: 0; overflow-wrap: anywhere; }
.ns-meta { display: grid; grid-template-columns: 56px 88px 56px 1fr; gap: 6px; align-items: baseline; font: 400 11px/1.3 var(--mono); color: var(--ink-2); }
.ns-meta b { font-weight: 500; color: var(--ink); }

/* numbers */
.ns-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 22px 22px; border-radius: 10px; background: #F4F5F9; }
.ns-metrics small { display: block; font: 600 10.5px/15.23px "Plus Jakarta Sans", var(--sans); letter-spacing: .735px; text-transform: uppercase; color: #7C8794; }
.ns-metrics b { display: block; margin-top: 14px; font: 400 30px/24.2px "Plus Jakarta Sans", var(--sans); letter-spacing: -.44px; color: #0E1419; white-space: nowrap; }
.ns-metrics b.is-neg { color: #C0243A; }
.ns-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px 0; }
.ns-pair > p > b { display: block; margin-bottom: 6px; font: 500 13.5px/1.3 var(--sans); color: var(--ink); }
.ns-pair .ns-meta { display: flex; gap: 12px; }
.ns-pair .ns-note { display: block; }
.ns-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ns-minis > p { padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px #E8EBF1; }
.ns-minis small { display: block; margin-bottom: 10px; font: 400 12px/1.3 var(--sans); color: var(--ink-3); }
.ns-minis .ns-spec--jak { display: block; margin-bottom: 10px; }
.ns-minis .ns-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; }

.ns-inline { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: 10px; background: #F4F5F9; }
.ns-inline p { font-size: 11.5px; line-height: 16.68px; font-weight: 400; }
.ns-inline p b { font-weight: 700; }
.ns-inline > span { font: 400 12px/1.5 var(--sans); color: var(--ink-3); }
.ns-inline > span b { display: block; margin-bottom: 2px; font: 500 13px/1.3 var(--sans); color: var(--ink); }

/* collapsed extras */
.ns-more { margin: -14px auto 34px; }
.ns-more summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px;
  border: 1.5px dashed var(--line-2);
  font: 500 14.5px/1.3 var(--sans); color: var(--ink);
  cursor: pointer; list-style: none;
  transition: background .2s ease, border-color .2s ease;
}
.ns-more summary::-webkit-details-marker { display: none; }
.ns-more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 14px/1 var(--mono); transition: transform .3s var(--ease); }
.ns-more[open] summary::before { transform: rotate(45deg); }
.ns-more summary:hover { background: #fff; border-color: #c5c5cc; }
.ns-more summary span { margin-left: auto; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ns-more[open] summary { margin-bottom: 12px; }

/* space */
.ns-gaps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ns-gaps p { font: 400 11px/1 "Plus Jakarta Sans", var(--sans); color: var(--ink-3); }
.ns-gaps p b { font-size: 26px; font-weight: 400; color: #1A1A1A; margin-right: 3px; }
.ns-gap { display: flex; gap: var(--g); margin: 12px 0 10px; }
.ns-gap i { width: 26px; height: 22px; background: #DCE6F0; }
.ns-gap i:first-child { box-shadow: var(--g) 0 0 0 #F6C3CC; }
.ns-gaps small { display: block; font: 400 12px/1.35 var(--sans); color: var(--ink-3); }
.ns-diagrams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.ns-dia { padding: 20px 22px; border-radius: 12px; background: #F4F5F9; }
.ns-pad3 { position: relative; padding: 48px; border: 1.5px solid #D71133; background: #fff; }
.ns-pad3 em, .ns-two em { font: 500 11px/1 var(--sans); font-style: normal; color: #D71133; }
.ns-pad3 > em { position: absolute; left: 10px; top: 10px; }
.ns-pad3 > em.ns-pad3__gap { left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); white-space: nowrap; }
.ns-pad3 span { display: flex; gap: 24px; }
.ns-pad3 span i { flex: 1; height: 42px; background: #DCE6F0; }
.ns-pad3 span i:first-child { box-shadow: 24px 0 0 0 #F6C3CC; }
.ns-two { display: flex; align-items: center; gap: 18px; padding: 26px 22px; background: #fff; }
.ns-two span { display: grid; gap: 8px; flex: 0 0 62%; }
.ns-two span i { height: 30px; background: #DCE6F0; }
.ns-two span i:first-child { box-shadow: 0 8px 0 0 #F6C3CC; }
.ns-two span i:last-child { width: 64%; }
.ns-recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ns-recipes > div { padding: 18px 20px; border-radius: 12px; background: #F4F5F9; }
.ns-box { display: block; padding: var(--pt) var(--px); background: rgba(215,17,51,.13); box-shadow: inset 0 0 0 1.5px #D71133; }
.ns-box b { display: block; padding: 9px 10px; background: #fff; text-align: center; font: 400 12.5px/1.2 "Plus Jakarta Sans", var(--sans); color: #5F6672; }
.ns-box .ns-box__row { display: flex; justify-content: center; gap: 44px; color: #1A1A1A; }
.ns-table { margin-top: 22px; font: 400 13.5px/1.45 var(--sans); color: var(--ink-2); }
.ns-table + .ns-table { margin-top: 16px; }
.ns-trow { display: grid; grid-template-columns: 1.25fr 1fr 1.25fr; gap: 16px; padding: 10px 14px; border-top: 1px solid #EEF0F4; }
.ns-trow span:first-child { color: var(--ink); }
.ns-trow span:nth-child(2) { font-family: var(--mono); font-size: 12.5px; }
.ns-trow--head { border-top: 0; border-radius: 8px; background: #F4F5F9; font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ns-trow--head span:first-child { color: var(--ink-3); }
.ns-trow--head span:nth-child(2) { font-size: 10.5px; }

/* colour */
.ns-swg + .ns-swg, .ns-status + .ns-swg { margin-top: 26px; }
.ns-swg > .ns-note { margin: -6px 0 12px; max-width: 60ch; }
.ns-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 128px), 1fr)); gap: 16px 12px; }
.ns-sw { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; text-align: left; background: none; border: 0; cursor: pointer; }
.ns-sw i {
  position: relative; display: block; width: 100%; height: 54px; margin-bottom: 6px;
  border-radius: 8px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(16,24,40,.08);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.ns-sw.is-tint i { background: color-mix(in srgb, var(--c) var(--a), #fff); }
.ns-sw:hover i, .ns-sw:focus-visible i { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(16,24,40,.08), 0 10px 16px -10px rgba(16,24,40,.45); }
.ns-sw b { font: 500 12.5px/1.3 var(--sans); color: var(--ink); }
.ns-sw code, .ns-tags code, .ns-status code { font: 400 11px/1.3 var(--mono); color: var(--ink-3); }
.ns-sw small { font: 400 11.5px/1.35 var(--sans); color: var(--ink-3); }
.ns-sw i::after, .ns-tags button::after {
  content: "Copied"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85);
  padding: 4px 8px; border-radius: 99px; background: rgba(23,23,28,.85); color: #fff;
  font: 500 10.5px/1 var(--sans); opacity: 0; transition: opacity .2s ease, transform .25s var(--spring); pointer-events: none;
}
.ns-sw.is-copied i::after, .ns-tags button.is-copied::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ns-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ns-status > div { padding: 18px 20px; border-radius: 12px; box-shadow: inset 0 0 0 1px #E8EBF1; }
.ns-status b { display: block; margin: 2px 0 8px; font: 500 22px/1.15 "Plus Jakarta Sans", var(--sans); color: var(--c); white-space: nowrap; }
.ns-status code { display: inline-flex; align-items: center; gap: 6px; }
.ns-status code::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.ns-hero { display: block; margin: 14px 0 6px; padding: 9px; border-radius: 6px; background: #0E1419; }
.ns-hero i { display: block; height: 14px; border-radius: 3px; background: var(--t); }
.ns-status small { font: 400 11.5px/1.35 var(--sans); color: var(--ink-3); }
.ns-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ns-tags button {
  position: relative; display: inline-flex; align-items: baseline; gap: 10px;
  padding: 9px 14px 8px; border-radius: 999px; background: var(--c);
  font: 500 12.5px/1.2 "Plus Jakarta Sans", var(--sans); color: #1A1A1A;
  box-shadow: inset 0 0 0 1px rgba(16,24,40,.06);
  transition: transform .3s var(--spring);
}
.ns-tags button:hover { transform: translateY(-2px); }

/* gradients */
.ns-grads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ns-grads > div { padding: 18px 20px; border-radius: 12px; box-shadow: inset 0 0 0 1px #E8EBF1; }
.ns-gpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ns-gpair--one { grid-template-columns: 1fr; }
.ns-chk {
  position: relative; display: block; height: 108px; overflow: hidden; border-radius: 8px;
  background: repeating-conic-gradient(#E3E6ED 0 25%, #fff 0 50%) 0 0 / 28px 28px;
}
.ns-chk i { position: absolute; inset: 0; }
.ns-sheen { display: grid; align-items: end; height: 108px; padding: 16px 18px; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 70%), #0E1419; }
.ns-sheen i { display: block; height: 40px; border-radius: 9px; border: 1.23px solid transparent; background: linear-gradient(#0E1419, #0E1419) padding-box, linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)) border-box; }
.ns-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; margin-top: 12px; padding: 16px; border-radius: 12px; background: #F4F5F9; }
.ns-art__img { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.ns-art__img img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ns-art__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), #000); opacity: .9; }
.ns-art__t { margin: 10px 0 6px; font: 500 22px/1.2 "Plus Jakarta Sans", var(--sans); color: #1A1A1A; letter-spacing: -.01em; }
.ns-closer { margin: 6px auto 0; padding-left: 14px; border-left: 2px solid #D71133; font: 400 14px/1.6 var(--sans); color: var(--ink-3); }

@media (max-width: 900px) {
  .ns-card { padding: 20px 16px; }
  .ns-fams, .ns-pair, .ns-minis, .ns-inline, .ns-diagrams, .ns-recipes, .ns-status, .ns-grads, .ns-art { grid-template-columns: 1fr; }
  .ns-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .ns-metrics b { font-size: 26px; }
  .ns-gaps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
  .ns-h3 { margin-top: 56px; flex-direction: column; gap: 10px; }
}
@media (max-width: 700px) {
  .ns-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .ns-row--head { display: none; }
  .ns-rows .ns-row:nth-child(2) { border-top: 0; }
  .ns-row .ns-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; }
  .ns-row .ns-meta span:nth-child(3)::before { content: "LH "; color: var(--ink-3); }
  .ns-row .ns-meta span:nth-child(4)::before { content: "Tracking "; color: var(--ink-3); }
  .ns-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .ns-fam__w { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .ns-fam__big { white-space: normal; }
  .ns-trow { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .ns-trow span:nth-child(3) { grid-column: 1 / -1; color: var(--ink-3); font-size: 12.5px; }
  .ns-trow--head span:nth-child(3) { display: none; }
  .ns-gaps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ns-pad3 { padding: 40px 30px; }
  .ns-metrics { padding: 18px 16px; column-gap: 12px; }
  .ns-metrics b { font-size: 21px; line-height: 1.1; margin-top: 10px; }
  .ns-sws { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 10px; }
  .ns-sw i { height: 44px; }
}
