/* Case study pages. Loads after styles.css and reuses its panels and tokens. */

.cs--paper { --bg: oklch(0.955 0.005 85); --fg: oklch(0.21 0.006 85); --slot: oklch(0.905 0.005 85); --muted: oklch(0.44 0.006 85); }
.ch--steady { --muted: oklch(0.42 0.008 75); }
.panel--ink { --slot: oklch(0.30 0.045 335); }

/* ── hero ───────────────────────────────────────────── */

.case-hero { padding-top: clamp(24px, 3vw, 40px); }
.case-nav {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 15px; font-weight: 600;
  margin-bottom: clamp(48px, 8vw, 120px);
}
.case-nav a { border-bottom-width: 1.5px; }
.case-title {
  font-size: clamp(72px, 17vw, 250px);
  font-weight: 800; line-height: .8; letter-spacing: -.05em;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.case-lead {
  margin: 0 0 clamp(32px, 4vw, 56px);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.25; letter-spacing: -.02em;
  max-width: 30ch; text-wrap: pretty;
}
.facts {
  margin: 0 0 clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 32px; border-top: var(--rule);
}
.facts div { padding: 14px 0; border-bottom: var(--rule); }
.facts dt { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; }
.facts a { border-bottom-width: 1.5px; }

.hero-phones {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 3vw, 48px);
  max-width: 1100px; margin: 0 auto;
  align-items: start;
}
.hero-phones .phone:nth-child(2) { margin-top: clamp(24px, 5vw, 72px); }

.jump {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: clamp(40px, 6vw, 80px);
  font-size: 15px; font-weight: 600;
}
.jump a { border-bottom-width: 1.5px; }

/* ── section scaffolding ────────────────────────────── */

.cs-title {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 800; line-height: .84; letter-spacing: -.045em;
  margin-bottom: clamp(24px, 3vw, 44px);
}
.cs-lead {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.2; letter-spacing: -.02em;
  max-width: 22ch; text-wrap: pretty;
}
.cs-lead--wide { max-width: 34ch; }
.cs-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.prose p { margin: 0 0 1em; font-size: 18px; line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; }
.prose a, .prose-lg a { border-bottom-width: 1.5px; }
.prose-lg { margin: 0 0 clamp(20px, 3vw, 36px); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; max-width: 56ch; text-wrap: pretty; }
.aside { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.sub { margin-top: clamp(64px, 9vw, 136px); padding-top: clamp(20px, 2.4vw, 32px); border-top: var(--rule); }
.sub-title {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700; line-height: 1; letter-spacing: -.03em;
  margin-bottom: clamp(20px, 3vw, 40px);
}
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.split--center { align-items: center; }

/* ── phones ─────────────────────────────────────────── */

.phone { margin: 0; min-width: 0; }
.phone img {
  width: 100%;
  border-radius: 12.5% / 5.75%;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -12px rgb(0 0 0 / .22);
  background: #F5F0E8;
}
.phone figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 32ch; text-wrap: pretty; }

.phone-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 36px);
  margin-top: clamp(40px, 6vw, 80px);
}
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); max-width: 620px; }

@media (max-width: 760px) {
  .phone-row {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x);
    padding-bottom: 12px;
  }
  .phone-row .phone { scroll-snap-align: start; }
}

/* ── strategy ───────────────────────────────────────── */

.decisions {
  list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  counter-reset: d;
}
.decisions li { border-top: 2px solid var(--fg); padding-top: 18px; counter-increment: d; }
.decisions li::before { content: "0" counter(d); display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.decisions h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px; }
.decisions p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--soft); max-width: 40ch; }

.naming { margin-top: clamp(64px, 9vw, 136px); }
.name-trail {
  margin: 14px 0 clamp(20px, 3vw, 32px);
  font-size: clamp(36px, 7vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.045em;
}
.name-trail s { color: var(--muted); text-decoration-thickness: .06em; }
.name-trail span { color: var(--muted); font-weight: 400; }
.name-trail strong { white-space: nowrap; }
.panel--ink .prose-lg { color: var(--soft); }
q { quotes: "“" "”"; font-weight: 600; color: var(--fg); }

/* ── words ──────────────────────────────────────────── */

.names { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.name-card { background: var(--slot); padding: clamp(22px, 3vw, 40px); }
.name-word {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.name-card p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; max-width: 38ch; }
.name-card p:last-child { margin-bottom: 0; }
.name-tag { font-family: var(--serif); font-style: italic; font-size: 19px; opacity: .72; }
.role-dot {
  display: block; width: clamp(40px, 4vw, 56px); aspect-ratio: 1; border-radius: 50%;
  margin-bottom: clamp(16px, 2vw, 26px);
}
.role-dot--explorer { background: radial-gradient(circle at 32% 28%, #BAC6A4, #A2B191 46%, #8A997F); }
.role-dot--anchor   { background: radial-gradient(circle at 32% 28%, #93A9B6, #7894A1 46%, #637E8E); }
.roles-lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; margin: 0 0 8px; max-width: 46ch; }
.roles-who {
  font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45; color: var(--muted); margin: 0 0 clamp(22px, 3vw, 34px); max-width: 52ch;
}
.roles-note { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 18px 0 0; max-width: 56ch; }

.pull-quote { margin: clamp(32px, 4vw, 56px) 0; padding-left: 22px; border-left: 3px solid currentColor; }
.pull-quote p { margin: 0; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.35; letter-spacing: -.015em; max-width: 44ch; text-wrap: pretty; }
.pull-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 4vw, 56px); }
.notes h4, .rules h4 { font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.notes p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 44ch; }

/* app-styled pieces use Steady's own colors */
.tones { display: grid; gap: 10px; margin: 22px 0 26px; max-width: 380px; }
.tone {
  display: flex; align-items: center; gap: 14px;
  background: #FDFCF9; color: #3D3B36;
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 18px rgb(0 0 0 / .06);
}
.tone strong { display: block; font-size: 16px; }
.tone span { font-size: 14px; color: #8A8780; }
.tone-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tone-dot--blue { background: #4A7393; }
.tone-dot--coral { background: #C2785A; }

.replies { margin: 18px 0 0; display: grid; gap: 10px; }
.replies div { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; align-items: center; }
.replies dt {
  font-size: 15px; font-weight: 700; text-align: center;
  padding: 8px 10px; border-radius: 10px;
  background: #FDFCF9; color: #3D3B36;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06);
}
.replies dd { margin: 0; font-size: 17px; }

/* lock screen */
.lock {
  margin: 0; justify-self: center;
  width: min(100%, 380px);
  border-radius: 44px;
  padding: 30px 14px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 22% 18%, #B8C4A0 0, #6B7D6B 34%, transparent 62%),
    radial-gradient(circle at 82% 78%, #8AA3B0 0, #4A6678 36%, transparent 66%),
    #2c3330;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45);
}
.lock-time { text-align: center; font-size: clamp(64px, 8vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -.02em; margin-bottom: 34px; }
.lock-time span { display: block; font-size: 17px; font-weight: 500; letter-spacing: 0; margin-bottom: 8px; }
.notif {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgb(250 248 244 / .8); color: #1f1d1a;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 20px; padding: 12px 14px;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; line-height: 1.3; }
.notif-text strong { font-weight: 650; }
.notif-app { display: flex; justify-content: space-between; font-size: 12.5px; color: #6f6b64; margin-bottom: 1px; }
.notif-app em { font-style: normal; }
.notif-actions {
  margin-top: 8px; border-radius: 16px; overflow: hidden;
  background: rgb(250 248 244 / .8); color: #1f1d1a;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
}
.notif-actions span { padding: 12px 16px; font-size: 15px; font-weight: 500; border-top: 1px solid rgb(0 0 0 / .08); }
.notif-actions span:first-child { border-top: 0; }
.lock figcaption { margin-top: 22px; padding: 0 6px; font-size: 14px; line-height: 1.45; color: rgb(255 255 255 / .82); }

/* notification rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 5vw, 64px); counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 12px; }
@media (max-width: 560px) { .rules li { grid-template-columns: 2em minmax(0, 1fr); } }
.rules li::before { content: counter(r); grid-row: span 3; font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.rules li > p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 58ch; }
.before-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 16px; margin-top: 18px; max-width: 760px; }
.ba-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.ba--after .ba-label { color: var(--fg); }
.ba--before .notif { opacity: .62; }
.notif--mini { background: #FDFCF9; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 20px rgb(0 0 0 / .06); }

/* stale chips */
.chip-ladder h4 { font-size: 13px; font-weight: 700; margin: 22px 0 10px; }
.chip-ladder p { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.day { width: 3.8em; flex: none; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { font-size: 15px; padding: 7px 13px; border-radius: 10px; }
.chip--blue { background: #E2EAF0; color: #3F6784; }
.chip--coral { background: #F5E3DB; color: #A45E40; }

/* drafts */
.drafts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(36px, 4vw, 56px); }
.draft-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.draft-phones figcaption {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg);
}
.phone--draft img { opacity: .78; }
.phone--draft figcaption { color: var(--muted); }
.draft p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; max-width: 40ch; }
.draft-copy { font-size: 17px !important; }
.draft-copy s { color: var(--muted); }

/* ── design ─────────────────────────────────────────── */

.marks { display: grid; gap: 28px; justify-items: start; }
.mark { width: min(280px, 70%); }
.icons { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.icons-arrow { font-size: 28px; color: var(--muted); margin-bottom: 26px; }
.icon-earlier img { opacity: .8; }
.icons figure { margin: 0; text-align: center; }
.icons img { width: clamp(64px, 8vw, 96px); border-radius: 22.5%; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 20px rgb(0 0 0 / .1); }
.icons figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.palette {
  list-style: none; margin: clamp(28px, 4vw, 52px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30%, 130px), 1fr)); gap: 18px 14px;
}
.palette li { display: flex; flex-direction: column; gap: 4px; }
.palette .sw { aspect-ratio: 1; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); margin-bottom: 8px; }
.palette strong { font-size: 15px; }
.palette code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--muted); }

.thread-demo { margin: 0; background: #F5F0E8; border-radius: 22px; padding: clamp(18px, 3vw, 32px); color: #3D3B36; }
.thread-demo svg { width: 100%; height: auto; display: block; }
#thread-line { transition: opacity .6s ease; }
.thread-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.thread-controls button {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #3D3B36; border: 1.5px solid #3D3B36;
}
.thread-controls button[aria-pressed="true"] { background: #3D3B36; color: #F5F0E8; }
.thread-controls button:focus-visible { outline: 3px solid #4A7393; outline-offset: 2px; }
.thread-demo figcaption { margin-top: 14px; font-size: 13.5px; color: #8A8780; }

.store-row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: max(160px, calc((100% - 72px) / 7));
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
}
.store-row img { width: 100%; border-radius: 14px; scroll-snap-align: start; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 12px 28px -12px rgb(0 0 0 / .2); }

.shot--site { box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -16px rgb(0 0 0 / .25); }

/* ── next ───────────────────────────────────────────── */

.case-next { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); padding-bottom: clamp(36px, 5vw, 64px); }
.next-link {
  align-self: flex-start;
  font-size: clamp(64px, 13vw, 190px); font-weight: 800; line-height: .82; letter-spacing: -.05em;
  border-bottom: 0;
}
.next-link::after { content: " →"; font-weight: 400; }
.next-link--long { font-size: clamp(48px, 9.5vw, 150px); }
.case-next .contact-row { font-size: 16px; font-weight: 500; margin-top: clamp(20px, 4vw, 48px); }
.case-next .contact-row a { border-bottom-width: 1.5px; }

/* ── handit ─────────────────────────────────────────── */

.ch--handit { --muted: oklch(0.80 0.02 248); --soft: oklch(0.90 0.01 248); }

.browser { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 24px 50px -20px rgb(0 0 0 / .35); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ECEDF0; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D4D5DA; }
.browser-bar i:nth-child(1) { background: #EE6A5F; } .browser-bar i:nth-child(2) { background: #F5BE4F; } .browser-bar i:nth-child(3) { background: #62C554; }
.browser-bar span { margin: 0 auto; transform: translateX(-24px); font: 500 12px/1 -apple-system, system-ui, sans-serif; color: #6C6C74; background: #F8F8FA; padding: 5px 14px; border-radius: 6px; }
.browser img { width: 100%; }
.browser--hero { max-width: 1180px; margin: 0 auto; }

.wide-shot { margin: clamp(40px, 6vw, 80px) 0 0; }
.wide-shot img { width: 100%; border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -18px rgb(0 0 0 / .25); }
.wide-shot figcaption, .demo figcaption, .slide figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 60ch; }

.insight { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.15; letter-spacing: -.025em; color: var(--soft); }
.insight strong { color: var(--fg); font-weight: 700; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: st; }
.steps li { counter-increment: st; border-top: 2px solid var(--fg); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(st); font-size: 36px; font-weight: 800; line-height: 1; }
.steps strong { font-size: 20px; }
.steps span { font-size: 16.5px; line-height: 1.5; color: var(--soft); }

.slide { margin: 0; }
.slide img, .slide-row img { width: 100%; border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 16px 36px -18px rgb(0 0 0 / .35); }
.slide-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 34%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
}
.slide-row img { scroll-snap-align: start; }

.big-line { margin: 0; font-size: clamp(30px, 4.4vw, 66px); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; color: var(--muted); }
.big-line strong { white-space: nowrap; }
.big-line span { font-weight: 400; }
.big-line strong { color: var(--fg); }

.glossary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.glossary div { background: var(--slot); padding: 22px 20px; }
.glossary dt { font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; color: #fff; }
.glossary dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--soft); }

.headlines { list-style: none; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; display: grid; gap: 14px; }
.headlines li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 6px 20px; align-items: baseline; border-bottom: var(--rule); padding-bottom: 14px; }
.headlines .when { font-size: 14px; font-weight: 600; color: var(--muted); }
.headlines s, .headlines strong { font-size: clamp(24px, 3.2vw, 46px); letter-spacing: -.03em; line-height: 1.1; }
.headlines s { color: var(--muted); font-weight: 500; text-decoration-thickness: .05em; }
.headlines strong { font-weight: 800; }
@media (max-width: 640px) { .headlines li { grid-template-columns: 1fr; } }

.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.plain-list li { font-size: 18px; line-height: 1.55; padding-left: 22px; position: relative; max-width: 50ch; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: currentColor; }

.demo { margin: 0; min-width: 0; }
.demo img { width: 100%; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -18px rgb(0 0 0 / .3); }
.demo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }

.h-icon { width: clamp(96px, 12vw, 150px); border-radius: 22.5%; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 12px 28px rgb(0 0 0 / .12); }
.lockups { display: grid; gap: 14px; width: min(100%, 420px); }
.lockups img { width: 100%; }
.lockup-dark { display: block; background: #0D0E12; border-radius: 12px; padding: 18px 22px; }

.screens { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (min-width: 760px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } .screens-tall { grid-row: span 2; } }
.capture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: start; }

.site-side { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 24px; align-items: end; }
.phone--web img { border-radius: 10% / 4.6%; }

/* the ask card, in Handit's own look */
.ask-demo { font-family: Inter, -apple-system, system-ui, sans-serif; color: #1A1A1F; max-width: 520px; }
.ask-card { background: #fff; border: 1px solid #E3E3E6; border-radius: 14px; padding: 18px 18px 16px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 14px 32px -16px rgb(0 0 0 / .18); }
.ask-top { display: flex; align-items: center; gap: 12px; }
.ask-av { width: 34px; height: 34px; border-radius: 50%; background: #F5F5F6; color: #6C6C74; font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; }
.ask-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ask-who strong { font-size: 15px; font-weight: 600; }
.ask-who span { font-size: 13px; color: #6C6C74; }
.ask-pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F5F5F6; color: #6C6C74; white-space: nowrap; }
.ask-demo[data-state="accepted"] .ask-pill { background: #E9EEFF; color: #1E3FB8; }
.ask-demo[data-state="info"] .ask-pill { background: #FAEEDA; color: #9A5B0B; }
.ask-demo[data-state="done"] .ask-pill { background: #E6F5EC; color: #159A50; }
.ask-demo[data-state="declined"] .ask-pill { background: transparent; box-shadow: inset 0 0 0 1px #D4D4D8; color: #A6A6AE; }
.ask-demo[data-state="done"] .ask-body { text-decoration: line-through; color: #A6A6AE; }
.ask-body { margin: 14px 0 16px; font-size: 18px; line-height: 1.4; letter-spacing: -.01em; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid #E3E3E6; background: #fff; color: #1A1A1F; cursor: pointer; }
.ask-btn--primary { background: #2F5BFF; border-color: #2F5BFF; color: #fff; }
.ask-btn:focus-visible, .ask-toast button:focus-visible { outline: 3px solid #2F5BFF; outline-offset: 2px; }
.ask-toast { margin-top: 12px; display: inline-flex; align-items: center; gap: 16px; background: #1A1A1F; color: #fff; font-size: 14px; padding: 10px 12px 10px 16px; border-radius: 10px; }
.ask-toast[hidden] { display: none; }
.ask-toast button { font: inherit; font-weight: 700; color: #9DB3FF; background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.ask-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); font-family: var(--font); }
.pop { animation: pop .26s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes pop { from { transform: scale(.8); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } }

/* ── proposal hall ──────────────────────────────────── */

.ch--ph { --muted: oklch(0.40 0.014 60); --soft: oklch(0.30 0.014 60); }
.case-title--long { font-size: clamp(40px, 11.5vw, 200px); overflow-wrap: anywhere; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 80px); }
.shot-grid--two { margin-top: 0; }
.stack-shots { display: grid; gap: 18px; }

.decisions--five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(24px, 3vw, 36px); }

.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stats div { background: var(--slot); padding: 22px 20px; }
.stats dt { font-size: clamp(44px, 5.6vw, 80px); font-weight: 800; line-height: .9; letter-spacing: -.04em; margin-bottom: 12px; }
.stats dd { margin: 0; font-size: 16px; color: var(--soft); }

.sidebar-mock {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #121522; color: #C9CDD8; border-radius: 16px; padding: 22px 16px 18px;
  width: min(100%, 300px); justify-self: center;
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / .5);
}
.sidebar-mock p { margin: 0; }
.sm-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 22px !important; }
.sm-brand span { width: 26px; height: 26px; border-radius: 7px; background: #4F46E5; box-shadow: inset 0 0 0 6px #4F46E5, inset 0 0 0 9px #fff; }
.sm-group { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6F7486; margin: 14px 0 8px 8px !important; }
.sidebar-mock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sidebar-mock li { font-size: 14px; font-weight: 600; padding: 9px 10px; border-radius: 8px; }
.sidebar-mock li.on { background: #4F46E5; color: #fff; }
.sm-foot { margin-top: 26px !important; padding-top: 14px; border-top: 1px solid #262A38; font-size: 12px; color: #8A8FA0; display: flex; align-items: center; gap: 8px; }
.sm-foot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3FB97A; }

.ui-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--rule); }
.ui-quotes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 13em); gap: 8px 32px; align-items: baseline; padding: 18px 0; border-bottom: var(--rule); }
.ui-quotes q { font-size: clamp(18px, 1.9vw, 24px); font-weight: 500; line-height: 1.35; letter-spacing: -.012em; color: var(--fg); }
.ui-quotes span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .ui-quotes li { grid-template-columns: 1fr; } }

.doubt { display: flex; flex-wrap: wrap; gap: 12px; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.dchip { font-size: 16px; font-weight: 650; padding: 8px 14px; border-radius: 999px; }
.dchip--green { background: #EAF7EF; color: #167044; }
.dchip--amber { background: #FFF4E5; color: #A65B12; }
.dchip--indigo { background: #EEF0FF; color: #3730A3; }
.dchip--line { background: #fff; color: #4F46E5; box-shadow: inset 0 0 0 1px #E4E7EE; }

.docs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 220px), 1fr)); gap: clamp(12px, 2vw, 24px); }
.docs-row figure { margin: 0; }
.docs-row img { width: 100%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 16px 34px -16px rgb(0 0 0 / .25); }
.docs-row figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ── commonwealth ───────────────────────────────────── */

.ch--cw { --muted: oklch(0.78 0.02 150); --soft: oklch(0.88 0.012 150); }

.before-after-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: clamp(40px, 6vw, 80px); }
.before-after-shots figure { margin: 0; }
.before-after-shots figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.ba-tag { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--slot); color: var(--muted); }
.ba-tag--after { background: var(--fg); color: var(--bg); }
.browser--wide { margin-top: clamp(28px, 4vw, 48px); }

.sitemap { display: grid; gap: 18px; justify-items: center; font-size: 15px; }
.sm-root { padding: 10px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; position: relative; }
.sm-row { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; border-top: 2px solid color-mix(in oklch, var(--fg) 40%, transparent); padding-top: 18px; }
.sm-node { background: var(--slot); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sm-node strong { font-size: 16px; }
.sm-node span { font-size: 14px; color: var(--muted); }
.sm-node ul { margin: 10px 0 0; padding: 0 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--soft); }
.sm-node--cta { background: #C9A84C; color: #111154; }
.sm-node--cta span { color: #111154; opacity: .75; }

.stack-facts { margin-top: clamp(28px, 4vw, 48px); margin-bottom: 0; }
.type-specimen { background: #18196B; color: #fff; padding: clamp(24px, 3vw, 40px); border-radius: 14px; display: grid; gap: 16px; }
.type-specimen p { margin: 0; }
.ts-serif { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.ts-sans { font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: rgb(255 255 255 / .82); }
.ts-eyebrow { font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #C9A84C; }
.phone--narrow { max-width: 300px; justify-self: center; }

/* ── the book ───────────────────────────────────────── */

.ch--book { --soft: oklch(0.30 0.014 25); }
.case-title--book { font-size: clamp(44px, 7.4vw, 118px); line-height: .88; letter-spacing: -.045em; max-width: 13ch; }
.book-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
@media (max-width: 760px) { .book-hero { grid-template-columns: 1fr; } }
.book-cover { margin: 0; justify-self: center; width: min(100%, 380px); }
.book-cover img { width: 100%; border-radius: 3px 8px 8px 3px; box-shadow: inset 6px 0 10px rgb(0 0 0 / .2), 0 2px 4px rgb(0 0 0 / .18), 0 30px 60px -20px rgb(0 0 0 / .45); }
.book-cover--small { width: min(100%, 300px); }
.read-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.read-row span { font-size: 14px; color: var(--muted); }
.btn { display: inline-block; padding: 14px 24px; background: var(--fg); color: var(--bg); font-size: 17px; font-weight: 700; border: 0; border-radius: 999px; }
.btn::after { content: " ↗"; font-weight: 400; }
.btn:hover { opacity: .85; }

.parts { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.parts li { background: var(--slot); padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.part-n { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: lowercase; }
.parts strong { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.part-c { font-size: 14px; color: var(--muted); }
.parts em { margin-top: 8px; font-style: normal; font-size: 15px; line-height: 1.45; }
.parts em::before { content: "e.g. "; color: var(--muted); }

.book-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.book-quotes blockquote { margin: 0; padding-top: 16px; border-top: 2px solid var(--fg); }
.book-quotes p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; color: var(--soft); }

.page-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 560px; justify-self: center; box-shadow: 0 2px 4px rgb(0 0 0 / .12), 0 28px 50px -24px rgb(0 0 0 / .35); }
.page-spread img { width: 100%; }
.pages-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(46%, 180px), 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(32px, 5vw, 64px); }
.pages-row figure { margin: 0; }
.pages-row img { width: 100%; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 14px 30px -14px rgb(0 0 0 / .3); }
.pages-row figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }


/* case summary: the problem / what I made / where it lives now */
.summary {
  margin: 0 0 clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 clamp(20px, 3vw, 40px); border-top: 2px solid var(--fg);
}
.summary div { padding: 16px 0 18px; border-bottom: var(--rule); }
.summary dt { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.summary dd { margin: 0; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.5; text-wrap: pretty; }
.summary a { border-bottom-width: 1.5px; font-weight: 600; }

/* prominent site link under a case-study lead */
.ch-links--case { margin: clamp(-6px, -0.6vw, 0px) 0 clamp(26px, 3vw, 38px); }

/* ───── editorial type, 2026-10-04 (see styles.css) ───── */
.case-title, .cs-title, .next-link, .name-trail, .big-line, .stats dt, .parts strong,
.headlines strong, .glossary dt {
  font-weight: 600; letter-spacing: -.025em;
}
.case-title, .cs-title, .next-link { line-height: .9; }
.sub-title, .decisions h3, .notes h4, .rules h4 { font-weight: 600; letter-spacing: -.01em; }
.rules li::before, .steps li::before { font-weight: 600; letter-spacing: -.02em; }
.case-lead, .cs-lead, .pull-quote p, .insight, .ui-quotes q, .headlines s { letter-spacing: -.005em; }
.case-nav, .jump, .facts dt, .summary dt, .ba-tag, .ba-label, .when, .part-n, .replies,
.chip-ladder, .draft-phones figcaption, .btn, .case-next .contact-row, .sitemap, .palette, .tones {
  font-family: var(--sans);
}
