/* ============================================================
   案例 01 / 七种扫雷
   CANDY STRATEGY GUIDE / 2026
   ============================================================ */

:root {
  --paper: #fff8e8;
  --paper-2: #fffdf7;
  --ink: #17172b;
  --muted: rgba(23, 23, 43, 0.62);
  --coral: #ff5a5f;
  --blue: #2f5bff;
  --yellow: #ffd84d;
  --mint: #38d6a4;
  --pink: #ff8fcb;
  --sky: #72d9ff;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
  --display: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 23, 43, 0.14) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, video, svg { max-width: 100%; }
button, input { font: inherit; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border: var(--line);
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

/* ============================================================
   HEADER
   ============================================================ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--line);
  background: rgba(255, 248, 232, 0.94);
  backdrop-filter: blur(12px);
}

.head-inner {
  width: min(1320px, 92vw);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: var(--line);
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.brand-copy { display: flex; flex-direction: column; gap: 3px; }

.brand-copy strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.brand-copy small {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 800;
}

.site-nav > a:not(.head-cta) {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
}

.site-nav > a:not(.head-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav > a:not(.head-cta):hover::after { transform: scaleX(1); }
.site-nav > a.is-active { color: var(--coral); }
.site-nav > a.is-active::after { transform: scaleX(1); }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.read-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint), var(--blue));
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-small);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.head-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 64px;
}

.case-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1320px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 48px;
  align-items: center;
}

.blob {
  position: absolute;
  z-index: 1;
  border: var(--line);
  pointer-events: none;
}

.blob-a {
  width: 140px;
  height: 140px;
  left: -58px;
  top: 30px;
  border-radius: 50%;
  background: var(--yellow);
}

.blob-b {
  width: 76px;
  height: 76px;
  right: 47%;
  bottom: 34px;
  border-radius: 14px;
  background: var(--mint);
  transform: rotate(13deg);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transform: rotate(-1deg);
}

.status i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--ink);
}

.case-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.07em;
}

.case-copy h1 em {
  display: inline-block;
  padding: 0 0.07em 0.03em;
  border: var(--line);
  background: var(--coral);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  font-style: normal;
  transform: rotate(-1deg);
}

.case-lede {
  max-width: 560px;
  margin: 23px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: var(--line);
  border-radius: 13px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-coral { background: var(--coral); color: #fff; }

.case-fact {
  margin: 25px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* media */

.case-media { position: relative; z-index: 2; }

.media-frame {
  padding: 14px;
  border: var(--line);
  border-radius: 20px;
  background: var(--blue);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(1deg);
}

.media-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.media-bar span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.media-bar i {
  display: block;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}
.media-bar span:last-child { color: rgba(255, 248, 232, 0.58); }

.media-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--line);
  border-radius: 12px;
  background: var(--ink);
}

.media-sticker {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  transform: rotate(-2deg);
}

.media-sticker:hover {
  background: var(--coral);
  color: var(--paper);
}

.media-caption {
  margin: 13px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   META BAR
   ============================================================ */

.case-meta-bar {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.2fr 0.6fr auto;
  gap: 0;
  border-top: var(--line);
  border-bottom: var(--line);
  background: var(--yellow);
}

.case-meta-bar > div {
  padding: 13px 18px;
  border-right: 1px solid rgba(23, 23, 43, 0.25);
}

.case-meta-bar span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(23, 23, 43, 0.55);
}

.case-meta-bar strong {
  font-size: 11px;
  font-weight: 900;
}

.case-meta-bar > a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.case-meta-bar > a:hover { color: var(--coral); }

/* ============================================================
   COMMON
   ============================================================ */

.section {
  width: min(1320px, 92vw);
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 92px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-label span {
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--coral);
}

.section-label::after {
  content: "";
  height: 2px;
  flex: 1;
  background: rgba(23, 23, 43, 0.16);
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.section h2 em {
  display: inline-block;
  padding: 0 0.07em;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-style: normal;
  transform: rotate(-1deg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading > p {
  margin: 0 0 5px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ============================================================
   BRIEF
   ============================================================ */

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 48px;
  align-items: start;
}

.brief-copy h2 { margin-bottom: 24px; }
.brief-copy h2 em { background: var(--coral); color: var(--paper); }

.brief-copy p {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.brief-copy .lead {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 800;
  color: var(--ink);
}

.brief-copy blockquote {
  margin: 25px 0 0;
  padding: 18px 20px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.live-card {
  margin: 0;
  border: var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(0.8deg);
}

.live-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.live-top span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.live-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--paper);
}

.live-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
}

.live-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 8px;
}

.live-card figcaption a {
  padding: 5px 7px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
}

.constraint-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.constraint-card {
  padding: 16px;
  border: var(--line);
  border-radius: 13px;
  box-shadow: 4px 4px 0 var(--ink);
}

.constraint-card:nth-child(1) { background: #ffe3e0; }
.constraint-card:nth-child(2) { background: #fff1b8; }
.constraint-card:nth-child(3) { background: #d9f8ec; }
.constraint-card:nth-child(4) { background: #e3e9ff; }

.constraint-card span {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(23, 23, 43, 0.48);
}

.constraint-card p {
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

/* ============================================================
   SYSTEM
   ============================================================ */

.system .section-heading h2 em { background: var(--mint); }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 17px;
  border: var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.mode-blue { background: #dbe3ff; }
.mode-coral { background: #ffe0dd; }
.mode-yellow { background: #fff1b8; }
.mode-mint { background: #d9f8ec; }
.mode-pink { background: #ffe0f1; }
.mode-sky { background: #dff5ff; }

.mode-ink { background: var(--ink); color: var(--paper); }

.mode-num {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(23, 23, 43, 0.48);
}

.mode-card h3 {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.mode-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(23, 23, 43, 0.7);
}

.mode-tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 7px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.mode-ink .mode-num { color: rgba(255, 248, 232, 0.5); }
.mode-ink p { color: rgba(255, 248, 232, 0.68); }
.mode-ink .mode-tag { background: var(--yellow); color: var(--ink); }

.mode-play {
  background: var(--coral);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mode-play:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.mode-play .mode-num { color: rgba(255, 248, 232, 0.62); }
.mode-play p { color: rgba(255, 248, 232, 0.82); }
.mode-play .mode-tag { background: var(--yellow); color: var(--ink); }

.system-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   PROMISE
   ============================================================ */

.promise-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 36px;
  border: var(--line);
  border-radius: 24px;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(255, 248, 232, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--paper);
  box-shadow: 10px 10px 0 var(--mint);
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  transform: rotate(-1deg);
}

.sticker-green { background: var(--mint); color: var(--ink); }
.sticker-coral { background: var(--coral); color: #fff; }

.promise-copy h2 {
  margin-top: 18px;
  color: var(--paper);
  font-size: clamp(40px, 4.8vw, 64px);
}

.promise-copy h2 em {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.promise-copy > p {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 248, 232, 0.68);
}

.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 248, 232, 0.16);
}

.check-list b {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 8px;
}

.check-list span {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 248, 232, 0.8);
}

.solver-card {
  padding: 18px;
  border: var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--coral);
  transform: rotate(1deg);
}

.solver-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.solver-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 14px 0;
}

.cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.cell.open { background: #e9f5ff; }
.cell.hidden { background: #d8cfb8; }
.cell.flag { background: var(--coral); color: #fff; font-size: 14px; }

.solver-foot {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 6px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 2px dashed rgba(23, 23, 43, 0.2);
}

.solver-foot strong {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.solver-foot span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.solver-card > p {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================================
   INTERFACE
   ============================================================ */

.interface .section-heading h2 em { background: var(--sky); }

.interface-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.shot {
  margin: 0;
  padding: 11px;
  border: var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
}

.shot-wide {
  grid-column: 1 / -1;
  background: var(--blue);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
}

.shot-wide img { max-height: 520px; }

.shot figcaption {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-top: 9px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.shot-wide figcaption { color: var(--paper); }

.shot figcaption span {
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.62;
}

.shot-yellow { background: var(--yellow); }
.shot-pink { background: var(--pink); }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.principle-grid > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 3px 3px 0 var(--ink);
}

.principle-grid b {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--coral);
}

.principle-grid p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
}

/* ============================================================
   COLLAB
   ============================================================ */

.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.collab-heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
  margin-bottom: 18px;
}

.collab-heading h2 em { background: var(--pink); }

.collab-heading > p {
  margin: 0 0 5px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.role-card {
  padding: 24px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.role-ai { background: #dbe3ff; }
.role-me { background: #fff1b8; }

.role-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: rgba(23, 23, 43, 0.5);
}

.role-top span:first-child {
  padding: 4px 6px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 900;
}

.role-card h3 {
  margin: 18px 0 12px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.role-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.role-card li {
  padding-top: 8px;
  border-top: 1px solid rgba(23, 23, 43, 0.18);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(23, 23, 43, 0.72);
}

.collab-quote {
  margin: 18px 0 0;
  padding: 28px;
  border: var(--line);
  border-radius: 18px;
  background: var(--blue);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  font-family: var(--display);
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.05em;
  transform: rotate(-0.5deg);
}

.collab-quote small {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 232, 0.62);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.collab-back {
  margin-top: 20px;
}

/* ============================================================
   FAILURE
   ============================================================ */

.failure-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  padding: 34px;
  border: var(--line);
  border-radius: 22px;
  background: #ffe0dd;
  box-shadow: 9px 9px 0 var(--ink);
}

.failure-copy h2 {
  margin-top: 16px;
  font-size: clamp(40px, 5vw, 64px);
}

.failure-copy h2 em {
  background: var(--coral);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.failure-copy p {
  max-width: 620px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(23, 23, 43, 0.72);
}

.failure-copy .lead {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.failure-note {
  align-self: center;
  padding: 20px;
  border: var(--line);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--coral);
  transform: rotate(0.8deg);
}

.failure-note > span:first-child {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 232, 0.5);
}

.failure-note p {
  margin: 14px 0 18px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 248, 232, 0.8);
}

.failure-tag {
  display: inline-block;
  padding: 5px 7px;
  border: 2px solid var(--paper);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--yellow);
}

/* ============================================================
   NEXT
   ============================================================ */

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.next-card {
  padding: 20px;
  border: var(--line);
  border-radius: 15px;
  background: var(--paper-2);
  box-shadow: 4px 4px 0 var(--ink);
}

.next-card:nth-child(1) { background: #dbe3ff; }
.next-card:nth-child(2) { background: #d9f8ec; }
.next-card:nth-child(3) { background: #ffe0f1; }

.next-card > span {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(23, 23, 43, 0.48);
}

.next-card h3 {
  margin: 24px 0 7px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.next-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(23, 23, 43, 0.7);
}

.case-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 20px 22px;
  border: var(--line);
  border-radius: 16px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

.case-end > p {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.case-end > div { display: flex; flex-wrap: wrap; gap: 8px; }

.case-end .btn {
  font-size: 11px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot {
  width: min(1320px, 92vw);
  margin: 0 auto;
  border-top: var(--line);
  padding: 26px 0 20px;
}

.foot-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.foot-main .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 9px;
}

.foot-main .brand-copy strong { font-size: 15px; }
.foot-main .brand-copy small { font-size: 7px; }

.foot-main > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 23, 43, 0.18);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.foot-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-links a:hover { color: var(--coral); border-color: var(--coral); }

.foot-copy {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  cursor: pointer;
}

.foot-copy:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  color: rgba(23, 23, 43, 0.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1120px) {
  .case-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
    gap: 34px;
  }

  .case-copy h1 { font-size: clamp(50px, 6.4vw, 76px); }
  .brief-grid { gap: 32px; }
  .mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mode-card { min-height: 195px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4vw 14px;
    border-bottom: var(--line);
    background: var(--paper);
    box-shadow: 0 10px 0 rgba(23, 23, 43, 0.08);
  }

  .site-head.nav-open .site-nav { display: flex; }

  .site-nav > a:not(.head-cta) {
    padding: 12px 2px;
    border-bottom: 1px solid rgba(23, 23, 43, 0.16);
  }

  .head-cta { justify-content: center; margin-top: 12px; }

  .case-hero { padding: 38px 0 50px; }
  .case-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .case-copy h1 { font-size: clamp(48px, 9.4vw, 72px); }
  .case-media { max-width: 640px; }

  .case-meta-bar { grid-template-columns: 1fr 1fr; }
  .case-meta-bar > div { border-bottom: 1px solid rgba(23, 23, 43, 0.22); }
  .case-meta-bar > div:nth-child(2n) { border-right: 0; }
  .case-meta-bar > a { grid-column: 1 / -1; padding: 11px 18px; }

  .brief-grid,
  .promise-card,
  .failure-card { grid-template-columns: 1fr; }

  .live-card { max-width: 620px; }

  .section-heading,
  .collab-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading > p,
  .collab-heading > p { max-width: 600px; }

  .constraint-grid { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .interface-grid { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
  .shot img { max-height: 520px; }
  .principle-grid { grid-template-columns: 1fr; }

  .promise-card { padding: 26px; }
  .solver-card { max-width: 480px; transform: none; }

  .collab-grid { grid-template-columns: 1fr; }
  .failure-card { padding: 24px; }
  .failure-note { transform: none; }
  .next-grid { grid-template-columns: 1fr; }

  .case-end { align-items: flex-start; flex-direction: column; }

  .foot-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .foot-main > p { text-align: left; }
}

@media (max-width: 640px) {
  .head-inner { min-height: 68px; }
  .brand-mark { width: 38px; height: 38px; font-size: 9px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 7px; }

  .case-hero { padding: 28px 0 38px; }
  .case-copy h1 { font-size: 42px; line-height: 1.08; }
  .case-copy h1 em { box-shadow: 4px 4px 0 var(--ink); }
  .case-lede { font-size: 13.5px; }

  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }

  .media-frame { padding: 10px; box-shadow: 6px 6px 0 var(--ink); }
  .media-caption { font-size: 7px; }

  .case-meta-bar { grid-template-columns: 1fr; }
  .case-meta-bar > div { border-right: 0; }
  .case-meta-bar > a { padding: 11px 14px; }

  .section { padding: 64px 0; }
  .section h2 { font-size: 38px; }
  .section-label { font-size: 9px; margin-bottom: 22px; }

  .brief-copy .lead { font-size: 15px; }
  .brief-copy blockquote { font-size: 18px; }
  .constraint-grid { grid-template-columns: 1fr; }

  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 180px; }

  .promise-card { padding: 20px 16px; }
  .promise-copy h2 { font-size: 40px; }
  .solver-card { padding: 13px; }
  .cell { font-size: 10px; }
  .solver-foot strong { font-size: 20px; }

  .shot { padding: 8px; }
  .principle-grid > div { padding: 12px; }

  .role-card { padding: 18px; }
  .collab-quote { padding: 20px; font-size: 25px; }

  .failure-card { padding: 18px; }
  .failure-copy h2 { font-size: 42px; }
  .next-card { padding: 16px; }

  .case-end { padding: 16px; }
  .case-end > div { display: grid; grid-template-columns: 1fr; width: 100%; }
  .case-end .btn { width: 100%; }

  .foot-links { gap: 11px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .head-cta,
  .mode-play,
  .site-nav > a::after { transition: none; }
}
