.case {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 128px var(--gutter) 64px;
}

.case-hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.case-lead {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
}

.case-cover {
  margin: 48px 0 0;
}

.case img,
.case video {
  display: block;
  width: 100%;
  height: auto;
}

.case img { background: var(--grid-color); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 32px;
  margin: 48px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}

.facts div { min-width: 0; }

@media (min-width: 1000px) {
  .facts:has(> div:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 24px; }
}

.facts dt {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 16px 48px;
  margin: 96px 0 0;
}

.case-section > h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.case-section > .body { min-width: 0; }

.case-section p,
.case-section li {
  font-size: 17px;
  line-height: 1.6;
}

.case-section p { margin: 0 0 16px; max-width: 64ch; }

.case-section ul {
  margin: 0 0 16px;
  padding-left: 1.1em;
  max-width: 64ch;
}

.case-section li { margin: 0 0 6px; }

.case-section h3 {
  margin: 32px 0 8px;
  font-weight: 700;
  font-size: 17px;
}

.case-section h3:first-child { margin-top: 0; }

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.figures li { margin: 0; }

.figures strong {
  display: block;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.figures span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 48px;
}

.venues ul { list-style: none; padding: 0; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.swatches li {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.swatches i {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.case-cover figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.text-link {
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s var(--ease);
}

.text-link:hover { opacity: 0.6; }

@media (max-width: 760px) {
  .case-section { grid-template-columns: 1fr; margin-top: 64px; }

}

.accrocamp { --accent: #6a701e; }
:root[data-theme="dark"] .accrocamp { --accent: #9aa05a; }

.stat {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 6;
}

.ring-track { stroke: var(--fg); stroke-opacity: 0.1; }

.ring-bar {
  stroke: var(--accent, var(--fg));
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.stat strong {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 34px;
  white-space: nowrap;
}

.stat strong b { font-weight: 700; }

.stat span { max-width: 26ch; margin-top: 16px; }

.sources {
  font-size: 13px !important;
  color: var(--muted);
}

.case-cover-video video {
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  margin: 0 auto;
}

.case-section .figures {
  max-width: none;
  padding-left: 0;
}

.project-page main { padding-bottom: 96px; }

.docs { margin: 96px 0 0; }

.docs > h2,
.boards h3 {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 21px);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.doc-card h3 { margin: 16px 0 4px; font-size: 18px; }
.doc-card p { margin: 0; color: var(--muted); font-size: 14px; }

.doc-open {
  display: block;
  width: 100%;
  padding: 32px;
  border: 0;
  background: none;
  cursor: pointer;
}

.doc-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.18);
  transition: transform 0.5s var(--ease);
}

.doc-open:hover img { transform: translateY(-6px) rotate(-1deg); }

.doc-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 14px;
}

.doc-button {
  padding: 10px 18px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.doc-button:hover { background: var(--fg); color: var(--bg); }

.boards { margin: 96px 0 0; display: grid; gap: 56px; }
.boards > .tiles + .tiles { margin-top: -40px; }

.tiles {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tiles figure {
  flex: var(--r, 1) 1 0;
  min-width: 0;
  margin: 0;
}

.tiles img {
  display: block;
  width: 100%;
  height: auto;
}

.tiles figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.divider { margin: 96px 0 0; }

.divider img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

@media (max-width: 760px) {
  .tiles { flex-wrap: wrap; }
  .tiles figure { flex-basis: 40%; }
}

.player {
  position: relative;
  background: #0b0b0b;
}

.player video {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.player-big {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(244 243 239 / 0.9);
  color: #1c1c1c;
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.player-big:hover { transform: scale(1.06); }
.player-big svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.player.has-started .player-big { opacity: 0; pointer-events: none; }

.player-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgb(11 11 11 / 0.7));
  color: #f4f3ef;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.player.has-started:hover .player-bar,
.player.has-started:focus-within .player-bar,
.player.has-started:not(.is-playing) .player-bar { opacity: 1; }

.player-bar button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.player-bar svg { width: 20px; height: 20px; fill: currentColor; }
.player .i-pause,
.player .i-exit,
.player.is-full .i-enter,
.player.is-playing .i-play,
.player .i-muted,
.player.is-muted .i-sound { display: none; }
.player.is-full .i-exit,
.player.is-playing .i-pause,
.player.is-muted .i-muted { display: block; }

.player-seek { flex: 1; min-width: 0; }

.player-time { font-variant-numeric: tabular-nums; white-space: nowrap; }

.player-sound { position: relative; display: grid; }

.player-volume-pop {
  position: absolute;
  bottom: 100%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 116px;
  border-radius: 4px;
  background: rgb(11 11 11 / 0.7);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.player-sound:hover .player-volume-pop,
.player-sound:focus-within .player-volume-pop {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

.player-seek,
.player-volume {
  appearance: none;
  -webkit-appearance: none;
  height: 2px;
  margin: 0;
  background: linear-gradient(to right, #f4f3ef var(--fill, 0%), rgb(244 243 239 / 0.3) var(--fill, 0%));
  cursor: pointer;
  transition: height 0.2s var(--ease), width 0.2s var(--ease);
}

.player-seek:hover,
.player-seek:focus-visible { height: 4px; }

.player-volume {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 2px;
  height: 88px;
  background: linear-gradient(to top, #f4f3ef var(--fill, 0%), rgb(244 243 239 / 0.3) var(--fill, 0%));
}

.player-volume:hover,
.player-volume:focus-visible { width: 4px; }

.player-seek::-webkit-slider-thumb,
.player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #f4f3ef;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.player-seek::-moz-range-thumb,
.player-volume::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 0;
  background: #f4f3ef;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.player-seek:hover::-webkit-slider-thumb,
.player-volume:hover::-webkit-slider-thumb,
.player-seek:focus-visible::-webkit-slider-thumb,
.player-volume:focus-visible::-webkit-slider-thumb { opacity: 1; }

.player-seek:hover::-moz-range-thumb,
.player-volume:hover::-moz-range-thumb,
.player-seek:focus-visible::-moz-range-thumb,
.player-volume:focus-visible::-moz-range-thumb { opacity: 1; }

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
}

.bento figure { margin: 0; }
.bento img { display: block; width: 100%; height: auto; background: none; }
.bento-side { display: grid; gap: 16px; }

.bento figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
}

.player.is-full { display: grid; place-items: center; background: #0b0b0b; }
.player.is-full video { width: 100%; height: 100%; object-fit: contain; }

.flow { --green: #5f9e6e; --orange: #c98a5a; --blue: #6b8fbf; --yellow: #c2a94e; margin: 32px 0 0; }
.flow svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.flow-node rect { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.flow-node text { fill: var(--fg); font-family: var(--font); font-size: 17px; font-weight: 700; }
polyline.flow-green { stroke: var(--green); }
polyline.flow-orange { stroke: var(--orange); stroke-dasharray: 6 5; }
polyline.flow-blue { stroke: var(--blue); stroke-dasharray: 6 5; }
polyline.flow-yellow { stroke: var(--yellow); stroke-dasharray: 6 5; }

.flow figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}

.flow-key { display: inline-flex; align-items: center; gap: 8px; }
.flow-key::before { content: ""; width: 22px; height: 3px; background: currentColor; }
.flow-key.flow-green::before { background: var(--green); }
.flow-key.flow-orange::before { background: var(--orange); }
.flow-key.flow-blue::before { background: var(--blue); }
.flow-key.flow-yellow::before { background: var(--yellow); }

:root[data-theme="dark"] .brand-logo { padding: 24px; border-radius: 8px; background: #f4f3ef; }