/* ===== case study system — shared by elth / comeoffline / getmycreative =====
   Per-page accent is set on <body> via --accent, --mat-a, --mat-b, --pop. */

:root {
  --cream: #FAF6EE;
  --cream-deep: #F4EDDF;
  --card: #FFFDF8;
  --ink: #20241F;
  --gray: #5C665F;
  --line: rgba(32,36,31,0.07);
  --green-1: #14493F;
  --green-3: #2E7D5B;
  --display: 'Fraunces', 'Recoleta', Georgia, serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --accent: var(--green-1);
  --mat-a: #DFF0E8;
  --mat-b: #C4E3D3;
  --pop: #E4F1E9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  /* decorative pop-outs (chip name tags, tilted polaroids) must never
     give phones a sideways wiggle */
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--cream);
  background-image: radial-gradient(rgba(32,36,31,0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a:focus-visible { outline: 3px solid var(--green-3); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

/* ---- top bar ---- */
.topbar {
  max-width: 1120px; margin: 0 auto;
  padding: 22px 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.topbar .back, .topbar .hello {
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 10px 18px; transition: transform 0.2s ease;
}
.topbar .back { color: var(--ink); background: var(--card); box-shadow: 0 3px 10px rgba(32,36,31,0.08); }
.topbar .hello { color: #fff; background: #17170F; }
.topbar .back:hover, .topbar .hello:hover { transform: translateY(-1px); }

/* ---- case head ---- */
.case { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.case-head { padding-top: 54px; }
.kicker {
  margin: 0 0 20px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.live-dot { color: var(--green-3); white-space: nowrap; }
.live-dot::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-3); margin-right: 6px; animation: pulse 2s ease-in-out infinite;
}
.live-dot.sunset { color: var(--gray); }
.live-dot.sunset::before { background: var(--gray); animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
h1.title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1.0; letter-spacing: -0.02em;
  color: var(--accent); margin: 0 0 36px; max-width: 17ch;
}
h1.title em { font-style: italic; font-weight: 600; }

/* meta card */
.meta {
  display: grid; grid-template-columns: 1.7fr 1fr 0.7fr 0.85fr 0.7fr; gap: 28px;
  background: rgba(255,253,248,0.78); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 30px;
}
.meta h4 { font-family: var(--display); font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.005em; }
.meta p { font-size: 15.5px; line-height: 1.6; color: var(--gray); margin: 0; }
.meta p strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 150px; }
.chip {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
  cursor: default; outline: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chip.me { background: var(--accent); }
.chip.soft { background: var(--cream-deep); color: var(--ink); }

/* hover / tap reveal — a hand-written lemon tag pops above the chip naming who it is.
   Chips carry data-who (not title, which is slow, grey and dead on touch) + tabindex="0". */
.chip[data-who]::after {
  content: attr(data-who);
  position: absolute; left: -6px; bottom: calc(100% + 9px); z-index: 7;
  padding: 5px 11px 6px; border-radius: 4px;
  background: #FFE175; color: #6B4E12;
  font-family: var(--hand); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.1;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 14px rgba(32,36,31,0.18), 0 1px 0 rgba(32,36,31,0.08);
  opacity: 0; visibility: hidden;
  transform: translateY(6px) rotate(-2deg) scale(0.9);
  transform-origin: 0 100%;
  transition: opacity .16s ease, transform .22s cubic-bezier(.2,.9,.3,1.3), visibility 0s linear .16s;
}
/* little pointer under the tag */
.chip[data-who]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); z-index: 7;
  border: 6px solid transparent; border-top-color: #FFE175; border-bottom: 0;
  pointer-events: none; opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .22s ease, visibility 0s linear .16s;
}
.chip:hover, .chip:focus {
  transform: translateY(-3px) scale(1.08); z-index: 8;
  box-shadow: 0 6px 14px rgba(32,36,31,0.22), 0 0 0 3px rgba(255,225,117,0.9);
}
.chip.soft:hover, .chip.soft:focus { border-color: var(--card); }
.chip:hover::after, .chip:focus::after,
.chip:hover::before, .chip:focus::before {
  opacity: 1; visibility: visible; transition-delay: 0s;
}
.chip:hover::after, .chip:focus::after { transform: translateY(0) rotate(-2deg) scale(1); }
.chip:hover::before, .chip:focus::before { transform: translate(-50%, 0); }

/* built-with tool logos */
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(32,36,31,0.06);
}
.tool img { width: 22px; height: 22px; display: block; }
.tool img.wide { width: 26px; height: auto; }
.tools-cap { font-size: 12.5px; color: var(--gray); margin: 8px 0 0 !important; line-height: 1.4 !important; }

/* hero shot */
.hero-shot {
  margin: 26px 0 0; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(32,36,31,0.08);
}
.hero-shot .browser { box-shadow: none; border: 1px solid var(--line); }
.hero-shot .phones-fan { background: linear-gradient(150deg, var(--mat-a), var(--mat-b)); border-radius: 14px; }

/* impact */
.impact {
  margin-top: 26px; padding: 24px 28px 28px;
  background: rgba(255,253,248,0.78); border: 1px solid var(--line); border-radius: 20px;
}
.impact .lbl { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin: 0 0 16px; font-family: var(--display); }
.impact .lbl::before { content: "◆"; color: var(--green-3); font-size: 12px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.imp { background: var(--card); border: 1.5px solid var(--green-3); border-radius: 14px; padding: 20px 22px; }
.imp b { display: block; font-size: 17px; margin: 0 0 8px; letter-spacing: -0.005em; }
.imp p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--gray); }
.imp p strong { color: var(--ink); font-weight: 650; }

/* ---- body: toc + content ---- */
.body {
  display: grid; grid-template-columns: 220px minmax(0, 740px);
  justify-content: center; gap: 70px;
  margin-top: 84px;
}
.toc {
  position: sticky; top: 24px; align-self: start;
  background: rgba(255,253,248,0.9); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 12px 14px;
  box-shadow: 0 10px 30px rgba(32,36,31,0.06);
}
.toc small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); padding: 0 12px 10px; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--gray); font-size: 15px; text-decoration: none; transition: background 0.2s ease; }
.toc a:hover { background: var(--cream-deep); color: var(--ink); }
.toc a.on { background: var(--pop); color: var(--ink); font-weight: 600; }
.toc a.on::before { content: "• "; color: var(--green-3); }
.toc a.sub { padding: 5px 12px 5px 28px; font-size: 13.5px; }
.toc a.sub.on { background: none; color: var(--accent); }
.toc a.sub.on::before { content: none; }

.content > section { scroll-margin-top: 24px; }
.content h2 { font-family: var(--display); font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 20px; }
.content h3 { font-family: var(--display); font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 64px 0 18px; }
.content h4.step { font-size: 18px; font-weight: 700; margin: 40px 0 12px; color: var(--ink); }
.content p { font-size: 18px; line-height: 1.7; color: var(--gray); margin: 0 0 20px; }
.content p strong { color: var(--ink); font-weight: 650; }
.content ul { margin: 0 0 20px; padding-left: 22px; color: var(--gray); font-size: 18px; line-height: 1.7; }
.content li { margin-bottom: 6px; }
.content li strong { color: var(--ink); font-weight: 650; }
.content a { color: var(--ink); font-weight: 600; }
.note { font-family: var(--hand); font-size: 21px; color: var(--accent); display: inline-block; transform: rotate(-1.5deg); }

/* figures */
.fig {
  margin: 28px 0 34px; padding: 14px;
  background: rgba(255,253,248,0.72); border: 1px solid var(--line); border-radius: 18px;
}
.fig img { width: 100%; display: block; border-radius: 10px; }
.fig figcaption { font-size: 14px; color: var(--gray); text-align: center; margin: 12px 4px 2px; line-height: 1.5; }
.fig.mat { background: linear-gradient(150deg, var(--mat-a), var(--mat-b)); padding: clamp(14px, 3vw, 30px); }
.fig.mat figcaption { color: var(--ink); opacity: 0.8; }

/* browser chrome */
.browser { border-radius: 12px; overflow: hidden; background: #FFFDF8; box-shadow: 0 24px 56px rgba(32,36,31,0.28); }
.browser .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 13px; background: #EFEAE0; border-bottom: 1px solid rgba(32,36,31,0.08); }
.browser.dark .chrome { background: #23201A; border-bottom-color: rgba(255,255,255,0.06); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.browser .chrome i:nth-child(1) { background: #E8888A; }
.browser .chrome i:nth-child(2) { background: #EFC97E; }
.browser .chrome i:nth-child(3) { background: #98C89B; }
.browser .chrome b { font-weight: 500; font-size: 11.5px; color: var(--gray); letter-spacing: 0.02em; background: rgba(255,255,255,0.65); border-radius: 999px; padding: 3px 14px; margin: 0 auto; }
.browser.dark .chrome b { background: rgba(255,255,255,0.08); color: #B8B2A6; }
.browser img { display: block; width: 100%; border-radius: 0; }

/* phones */
.phones-fan { display: flex; justify-content: center; align-items: flex-start; gap: 18px; padding: clamp(18px, 4vw, 40px) clamp(14px, 3vw, 30px) 0; overflow: hidden; }
.phones-fan img {
  width: 30%; max-width: 230px; display: block;
  border-radius: 26px; border: 8px solid #1C1F1D; background: #1C1F1D;
  box-shadow: 0 18px 40px rgba(32,36,31,0.3), inset 0 0 0 2px #3A3D3B;
  margin-bottom: -6%;
}
.phones-fan img:nth-child(1) { transform: rotate(-4deg) translateY(4%); }
.phones-fan img:nth-child(3) { transform: rotate(4deg) translateY(4%); }
.phones-row { display: flex; justify-content: center; gap: 18px; padding: clamp(16px, 3vw, 28px); flex-wrap: wrap; }
.phones-row img {
  width: 22%; min-width: 130px; max-width: 200px; display: block;
  border-radius: 24px; border: 7px solid #1C1F1D; background: #1C1F1D;
  box-shadow: 0 16px 36px rgba(32,36,31,0.3), inset 0 0 0 2px #3A3D3B;
}

/* interactive poster walkthrough — scrollable phone + synced chapters */
.poster {
  display: grid; grid-template-columns: 320px minmax(0, 340px); justify-content: center; gap: 44px; align-items: start;
  margin: 28px 0 0; padding: clamp(18px, 3vw, 32px);
  background: linear-gradient(150deg, var(--mat-a), var(--mat-b)); border-radius: 22px;
}
.longphone {
  position: sticky; top: 24px;
  width: 300px; height: 620px; margin: 0 auto;
  border-radius: 34px; border: 9px solid #1C1F1D; background: #1C1F1D;
  box-shadow: 0 22px 50px rgba(32,36,31,0.32), inset 0 0 0 2px #3A3D3B;
  overflow: hidden;
}
.longphone .screen {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 25px; background: #0B0B0B; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.longphone .screen::-webkit-scrollbar { display: none; }
.longphone img { display: block; width: 100%; height: auto; }
.longphone .hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.55); border-radius: 999px; padding: 6px 12px;
  pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(4px); white-space: nowrap;
}
.longphone.scrolled .hint { opacity: 0; }
.longphone .progress { position: absolute; right: 4px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.longphone .progress i { position: absolute; left: 0; right: 0; top: 0; height: 12%; border-radius: 3px; background: rgba(255,255,255,0.7); transition: top 0.15s linear; }

.chapters { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapters li { counter-increment: ch; border-top: 1px solid rgba(32,36,31,0.1); }
.chapters li:first-child { border-top: 0; }
.chapters button {
  all: unset; display: grid; grid-template-columns: 28px 1fr; align-items: baseline; gap: 8px;
  width: 100%; padding: 10px 8px; cursor: pointer; border-radius: 12px; box-sizing: border-box;
  font-family: var(--body); color: var(--ink); transition: background 0.2s ease;
}
.chapters button:hover { background: rgba(255,253,248,0.5); }
.chapters button:focus-visible { outline: 3px solid var(--green-3); outline-offset: 2px; }
.chapters button::before {
  content: counter(ch, decimal-leading-zero);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); opacity: 0.6;
}
.chapters b { font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.chapters .why {
  grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--gray);
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}
.chapters .why strong { color: var(--ink); font-weight: 650; }
.chapters li.on button { background: rgba(255,253,248,0.85); box-shadow: 0 6px 18px rgba(32,36,31,0.08); }
.chapters li.on button::before { opacity: 1; }
.chapters li.on .why { max-height: 200px; opacity: 1; margin-top: 6px; }
.poster-cap { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; color: var(--ink); opacity: 0.75; text-align: center; }

@media (max-width: 900px) {
  .poster { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  /* the phone IS the screen: full height, page scrolls inside, hotspots + callout explain it */
  .longphone {
    position: relative; top: 0; width: min(100%, 430px); height: min(86vh, 860px);
    border-width: 8px; border-radius: 34px;
  }
  .longphone .screen { border-radius: 26px; }
  .chapters { display: none; }
  .longphone .callout { display: block; }
  .poster-cap { font-size: 13px; }
}

/* hotspots pinned on the poster page */
.longphone .page { position: relative; }
.hot {
  all: unset; position: absolute; right: 10px; z-index: 2; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 12px/30px var(--body); text-align: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 6px 16px rgba(0,0,0,0.35);
  transform: translateY(6px); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hot.on { transform: translateY(6px) scale(1.15); box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 9px rgba(255,255,255,0.35), 0 6px 16px rgba(0,0,0,0.35); }
@media (hover: hover) { .hot:hover { transform: translateY(6px) scale(1.1); } }

/* floating explanation card over the bottom of the phone screen (mobile) */
.callout {
  display: none; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(255,253,248,0.96); color: var(--ink);
  border-radius: 16px; padding: 10px 12px 9px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}
.callout .k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.callout b { display: block; font-family: var(--display); font-size: 14.5px; line-height: 1.2; margin: 2px 0 4px; }
.longphone .callout p, .content .longphone .callout p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--gray); }
.callout p strong { color: var(--ink); font-weight: 650; }
.callout .nav { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.callout .nav button {
  all: unset; cursor: pointer; font: 600 11.5px var(--body); color: var(--ink);
  background: var(--cream-deep); border-radius: 999px; padding: 5px 11px;
}
.callout .nav button:disabled { opacity: 0.35; cursor: default; }
.callout .nav .dots { display: flex; gap: 5px; }
.callout .nav .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(32,36,31,0.2); }
.callout .nav .dots i.on { background: var(--accent); }
.longphone .hint { bottom: auto; top: 14px; }

/* shipped blocks */
.ship {
  margin: 30px 0 0; padding: 30px 30px 26px;
  background: rgba(255,253,248,0.62); border: 1px solid var(--line); border-radius: 22px;
  scroll-margin-top: 24px;
}
.ship .n { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.ship h4 { font-family: var(--display); font-size: 24px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
.ship > p { font-size: 17px; margin-bottom: 0; }
.ship .frame { margin-top: 22px; background: linear-gradient(150deg, var(--mat-a), var(--mat-b)); border-radius: 18px; padding: clamp(14px, 3vw, 30px); overflow: hidden; }
.ship .frame.phones-wrap { padding: 0; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.out { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.out b { display: block; font-size: 16px; margin-bottom: 5px; }
.out p { font-size: 14.5px; line-height: 1.55; margin: 0; }

/* pull quote */
.quote {
  font-family: var(--display); font-size: 26px; line-height: 1.35; color: var(--accent);
  margin: 44px 0; padding-left: 22px; border-left: 4px solid var(--mat-b);
}
.quote small { display: block; font-family: var(--body); font-size: 14px; color: var(--gray); margin-top: 10px; }

/* paper receipt (kept — it's the itemised list) */
.receipt-wrap { display: flex; justify-content: center; padding: 30px 0 10px; }
.paper {
  background: var(--card); width: min(430px, 100%); padding: 30px 30px 40px;
  box-shadow: 0 16px 36px rgba(32,36,31,0.14); transform: rotate(-1.2deg); position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 96% 100%, 92% calc(100% - 10px), 88% 100%, 84% calc(100% - 10px), 80% 100%, 76% calc(100% - 10px), 72% 100%, 68% calc(100% - 10px), 64% 100%, 60% calc(100% - 10px), 56% 100%, 52% calc(100% - 10px), 48% 100%, 44% calc(100% - 10px), 40% 100%, 36% calc(100% - 10px), 32% 100%, 28% calc(100% - 10px), 24% 100%, 20% calc(100% - 10px), 16% 100%, 12% calc(100% - 10px), 8% 100%, 4% calc(100% - 10px), 0 100%);
}
.paper::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-2deg); background: rgba(246,214,140,0.6); box-shadow: 0 1px 3px rgba(32,36,31,0.12); }
.paper h3 { font-family: var(--display); text-align: center; font-size: 21px; margin: 4px 0 4px; letter-spacing: 0.02em; }
.paper .sub { text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin: 0 0 18px; }
.paper ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.paper li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1.5px dashed rgba(32,36,31,0.16); color: var(--ink); margin: 0; line-height: 1.4; }
.paper li b { font-weight: 600; }
.paper li span { color: var(--gray); font-size: 13px; text-align: right; }
.paper .total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.paper .thanks { text-align: center; font-family: var(--hand); font-size: 19px; margin: 18px 0 0; color: var(--accent); }

/* photos — the one place polaroids belong */
.polaroids { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; padding: 20px 0 0; }
.pol { background: var(--card); padding: 12px 12px 44px; box-shadow: 0 14px 30px rgba(32,36,31,0.16); transform: rotate(-2deg); position: relative; max-width: 340px; flex: 1 1 240px; margin: 0; }
.pol:nth-child(even) { transform: rotate(1.6deg); }
.pol img { width: 100%; display: block; }
.pol figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--hand); font-size: 19px; color: var(--ink); }
.pol::before { content: ""; position: absolute; top: -13px; left: 50%; width: 100px; height: 28px; transform: translateX(-50%) rotate(2deg); background: rgba(246,214,140,0.6); box-shadow: 0 1px 3px rgba(32,36,31,0.12); }

/* stamp (sunset case) */
.stamp {
  position: absolute; right: 26px; top: 22px; z-index: 3;
  font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.12em;
  color: #A8433B; border: 4px solid #A8433B; border-radius: 8px; padding: 6px 14px;
  transform: rotate(-12deg); opacity: 0.85; mix-blend-mode: multiply;
}

/* footer */
.caseft { max-width: 1120px; margin: 90px auto 0; padding: 0 24px 70px; }
.caseft .next {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px;
  box-shadow: 0 12px 28px rgba(32,36,31,0.08); text-decoration: none; color: var(--ink); transition: transform 0.25s ease;
}
.caseft .next:hover { transform: translateY(-4px); }
.caseft .next i { font-style: normal; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 6px; }
.caseft .next b { font-family: var(--display); font-size: 24px; }
.caseft .next .arr { font-size: 24px; }
.caseft .home-ln { display: block; text-align: center; margin-top: 26px; font-size: 14.5px; color: var(--gray); }
.caseft .home-ln a { color: var(--ink); font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .body { grid-template-columns: minmax(0, 740px); gap: 0; margin-top: 64px; }
  .toc { display: none; }
}
@media (max-width: 1000px) {
  .meta { grid-template-columns: 1.6fr 1fr 0.9fr; }
}
@media (max-width: 820px) {
  .meta { grid-template-columns: 1fr 1fr; gap: 22px 26px; padding: 24px; }
  .impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .case-head { padding-top: 40px; }
  h1.title { margin-bottom: 26px; }
  .meta { grid-template-columns: 1fr; }
  .impact { padding: 20px; }
  .content h2 { font-size: 27px; }
  .content h3 { font-size: 23px; margin-top: 50px; }
  .content p, .content ul { font-size: 16.5px; }
  .ship { padding: 22px 18px 18px; }
  .ship h4 { font-size: 21px; }
  .outcomes { grid-template-columns: 1fr; }
  .quote { font-size: 22px; }
  .phones-row img { width: 44%; min-width: 0; }
  .phones-fan img { border-width: 6px; border-radius: 20px; }
  .caseft .next b { font-size: 20px; }
  /* chip name tags: wrap instead of running off the right edge of the screen */
  .chip[data-who]::after {
    white-space: normal;
    width: max-content;
    max-width: min(64vw, 250px);
  }
}
