/* Sash Digital case studies. Display: Bricolage Grotesque. Body: Figtree. */
:root {
  --ink: #16161d;
  --ink-soft: #34343f;
  --white: #ffffff;
  --butter: #ffe69a;
  --butter-pale: #fff7dc;
  --blush: #f9d5de;
  --blush-pale: #fdeef2;
  --pink: #e0457b;
  --pink-deep: #9a2f52;
  --sky: #cfe3fa;
  --sky-pale: #eef5fd;
  --blue-deep: #1d5fa8;
  --line: #f2e6ea;
  --radius: 24px;
  --radius-sm: 14px;
  --gutter: 16px;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lift: translateY(-4px);
  --shadow: 0 18px 40px -22px rgba(154, 47, 82, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; }
section[id] { scroll-margin-top: 100px; }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2a2a36; box-shadow: var(--shadow); transform: var(--lift); }
.btn-butter { background: var(--butter); color: var(--ink); }
.btn-butter:hover { background: #ffdd73; transform: var(--lift); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); transform: var(--lift); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--pink);
}
.text-link:hover .arrow { transform: translateX(3px); }
.arrow { flex: none; transition: transform 0.2s ease; }

/* ---------- tints ---------- */
.tint-butter { --tint: var(--butter); --tint-pale: var(--butter-pale); }
.tint-blush { --tint: var(--blush); --tint-pale: var(--blush-pale); }
.tint-sky { --tint: var(--sky); --tint-pale: var(--sky-pale); }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tags li {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--ink);
  border: 1.5px solid var(--ink);
}
.tags li:first-child { background: var(--ink); color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 128px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(42rem 28rem at 92% 8%, var(--blush) 0, transparent 62%),
    radial-gradient(36rem 26rem at 2% 100%, var(--sky) 0, transparent 60%),
    var(--butter-pale);
}
.hero-index { padding: 140px 0 72px; }
.hero-index .lead { margin-inline: auto; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.375rem); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-media { display: flex; justify-content: center; }

/* ---------- screenshots ---------- */
.shot {
  overflow: hidden; background: var(--white);
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--pink);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-phone { width: min(300px, 78vw); aspect-ratio: 9 / 16; border-radius: 34px; }
.shot-desktop { width: 100%; max-width: 560px; aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* ---------- striped covers ---------- */
.cover {
  display: grid; place-items: center; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--c1) 0 18px, var(--c2) 18px 36px);
}
.cover-butter-blush { --c1: var(--butter); --c2: var(--blush); }
.cover-blush-butter { --c1: var(--blush); --c2: var(--butter); }
.cover-blush-sky { --c1: var(--blush); --c2: var(--sky); }
.cover-sky-blush { --c1: var(--sky); --c2: var(--blush); }
.cover-sky-butter { --c1: var(--sky); --c2: var(--butter); }
.cover-butter-sky { --c1: var(--butter); --c2: var(--sky); }
.cover-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 999px; padding: 12px 26px; box-shadow: 6px 6px 0 var(--ink);
}
.cover-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.cover-num { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; }
.cover-sub { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.cover-pill:has(.cover-num) { border-radius: 28px; padding: 16px 26px; }
.cover-sm { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); padding: 16px; border: 2px solid var(--tint); }
.cover-sm .cover-pill { padding: 8px 16px; box-shadow: 4px 4px 0 var(--ink); }
.cover-sm .cover-name { font-size: 1.2rem; }
.shot.cover { box-shadow: 10px 10px 0 var(--pink); }

/* ---------- at a glance ---------- */
.glance { padding: 48px 0; border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 20px; }
.glance-grid { display: grid; gap: 12px; }
.glance-grid div { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--sky-pale); }
.glance-grid div:nth-child(even) { background: var(--blush-pale); }
.glance-grid dt { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-deep); margin-bottom: 4px; }
.glance-grid div:nth-child(even) dt { color: var(--pink-deep); }
.glance-grid dd { font-weight: 500; line-height: 1.45; }

/* ---------- results ---------- */
.results { padding: 80px 0; }
.stats { display: grid; gap: 16px; }
.stat {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 200px; padding: 28px; border-radius: var(--radius); background: var(--tint);
}
.stat-num {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em;
}
.stat-label { display: block; font-weight: 500; font-size: 1.0625rem; line-height: 1.4; max-width: 26ch; }

/* ---------- challenge ---------- */
.challenge { padding: 24px 0 80px; }
.challenge p { font-size: 1.125rem; }
.brief {
  margin-top: 32px; padding: 28px 28px 28px 32px;
  border-radius: var(--radius); background: var(--blush-pale);
  border-left: 8px solid var(--pink);
}
.brief-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 8px; }
.brief .brief-text { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.3; margin: 0; }

/* ---------- approach ---------- */
.approach { padding: 80px 0; background: var(--sky-pale); }
.cards { display: grid; gap: 20px; }
.card {
  padding: 32px 28px; border-radius: var(--radius); background: var(--white);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: var(--lift); box-shadow: var(--shadow); border-color: var(--sky); }
.card-num { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--blue-deep); background: var(--sky); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- mid cta ---------- */
.mid-cta { background: var(--butter); padding: 32px 0; }
.mid-cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mid-cta p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.75rem); line-height: 1.25; }

/* ---------- design and development ---------- */
.design { padding: 88px 0; }
.design-grid { display: grid; gap: 40px; align-items: start; }
.design-copy p { font-size: 1.125rem; }
.crops { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.crop { margin: 0; }
.crop-wide { grid-column: 1 / -1; }
.crop-img, .crop-box {
  aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--ink); background: var(--white);
}
.crop-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.crop-wide .crop-img, .crop-wide .crop-box { aspect-ratio: 16 / 10; }
.crop-box .cover-pill { font-size: 0.95rem; font-family: var(--body); font-weight: 600; padding: 8px 14px; }
.crop-box .cover-pill::first-letter, .crop figcaption::first-letter { text-transform: uppercase; }
.crop figcaption { margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- delivered ---------- */
.delivered { padding: 80px 0; background: var(--blush-pale); }
.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius-sm); background: var(--white);
  font-weight: 500; line-height: 1.45;
}
.tick { flex: none; margin-top: 1px; }
.tick circle { fill: var(--pink); }
.tick path { stroke: var(--white); }

/* ---------- outcome ---------- */
.outcome { padding: 96px 0; }
.outcome-big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.45rem, 3.4vw, 2.25rem); line-height: 1.3; letter-spacing: -0.015em;
}
.outcome p:not(.outcome-big) {
  font-size: 1.1875rem; font-weight: 600;
  padding: 20px 24px; border-radius: var(--radius-sm); background: var(--butter-pale);
}

/* ---------- closing cta ---------- */
.closing { background: var(--ink); color: var(--white); padding: 96px 0; }
.closing h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; color: var(--butter); }
.closing p { font-size: 1.1875rem; color: #f3f0f5; max-width: 52ch; margin-inline: auto; }
.closing :focus-visible { outline-color: var(--butter); }

/* ---------- more case studies ---------- */
.more { padding: 72px 0 88px; }
.more h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.mini-cards { display: grid; gap: 16px; }
.mini-card a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 26px; border-radius: var(--radius); background: var(--tint-pale);
  border: 2px solid var(--tint); text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-card a:hover { transform: var(--lift); box-shadow: var(--shadow); }
.mini-name { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.mini-head { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.mini-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- listing ---------- */
.listing { padding: 72px 0 96px; }
.case-grid { display: grid; gap: 28px; }
.case-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--white); border: 2px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-card:hover { transform: var(--lift); box-shadow: var(--shadow); border-color: var(--blush); }
.case-link { display: block; text-decoration: none; }
.mini-card a .cover { text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 28px 24px 30px; }
.case-body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.case-body .tags { margin-bottom: 16px; }
.case-body .tags li { font-size: 0.75rem; padding: 5px 10px; }
.case-head { font-size: 1.125rem; font-weight: 500; color: var(--ink-soft); }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 24px; }
.case-stats div { padding: 16px; border-radius: var(--radius-sm); background: var(--butter-pale); }
.case-stats div:nth-child(2) { background: var(--sky-pale); }
.case-stats .stat-num { font-size: clamp(2rem, 6vw, 2.6rem); }
.case-stats .stat-label { font-size: 0.9rem; margin-top: 6px; }
.card-link { margin-top: auto; align-self: flex-start; }

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .hero { padding: 140px 0 88px; }
  .hero-index { padding: 168px 0 96px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .mid-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .mini-cards { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .results, .approach, .delivered { padding: 104px 0; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-case h1 { font-size: clamp(2.8rem, 4.6vw, 4.5rem); }
  .glance-grid { grid-template-columns: repeat(5, 1fr); }
  .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .design-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .design-copy { position: sticky; top: 100px; }
}
@media (min-width: 1440px) {
  .wrap { max-width: 1320px; }
  .narrow { max-width: 860px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .case-card:hover, .mini-card a:hover { transform: none; }
}

/* stock photo marker in crop captions */
.stock-tag {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--sky-pale); color: var(--blue-deep);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}

/* pinned and more sections on the listing */
.listing-h { display: flex; align-items: center; gap: 12px; font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 28px; }
.listing-h .pin { color: var(--pink); flex: none; }
.listing-pinned { padding-bottom: 24px; }
.listing-pinned .case-card { border-color: var(--blush); }
.listing-more { padding-top: 48px; }
