.workflow-case-page {
  background: var(--black);
  color: var(--paper);
}

.case-progress {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 3px;
}

.case-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

.case-cursor {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease, background-color .2s ease;
}

.case-cursor.is-hovering {
  width: 58px;
  height: 58px;
  background: #b7ff1920;
}

.case-header {
  position: absolute;
  z-index: 40;
  inset: 0 0 auto;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 var(--pad);
  border-bottom: 1px solid #ffffff24;
}

.case-header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
}

.case-header nav a,
.case-back {
  transition: color .25s ease;
}

.case-header nav a:hover,
.case-back:hover {
  color: var(--acid);
}

.case-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.case-back {
  padding: 12px 15px;
  border: 1px solid #ffffff55;
  border-radius: 100px;
  font-size: 9px;
  text-transform: uppercase;
}

.case-label {
  margin: 0;
  color: var(--acid);
  font: 700 9px/1 monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.case-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(36px, 5vw, 86px);
  align-items: center;
  padding: 150px var(--pad) 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 46%, #b7ff1910, transparent 30%),
    var(--black);
}

.case-hero::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 96px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, #b7ff1955, transparent);
}

.case-hero-copy,
.control-board {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.case-hero h1 {
  max-width: 9ch;
  margin: 4vh 0 2.5vh;
  font: 800 clamp(60px, 7.2vw, 128px)/.78 Oswald;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.case-hero h1 em {
  color: var(--acid);
  font-style: normal;
}

.mobile-break {
  display: none;
}

.case-hero-title {
  margin: 0;
  font: 700 clamp(16px, 1.7vw, 28px)/1 Oswald;
  letter-spacing: .03em;
}

.case-hero-title i {
  margin: 0 .35em;
  color: var(--acid);
  font-style: normal;
}

.case-subtitle {
  max-width: 56ch;
  margin: 4vh 0;
  color: #c8c8c0;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.6;
}

.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-badges li {
  padding: 9px 12px;
  border: 1px solid #ffffff48;
  border-radius: 100px;
  font: 700 8px/1 monospace;
}

.case-badges li:nth-child(3) {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--black);
  transform: rotate(-3deg);
}

.control-board {
  padding: clamp(22px, 3vw, 42px);
  background: #101010;
  border: 1px solid #ffffff3c;
  box-shadow: 17px 17px 0 var(--acid);
  transform: rotate(1deg);
}

.control-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, #000, transparent 80%);
}

.board-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  font: 700 8px/1 monospace;
  letter-spacing: .12em;
}

.board-head b {
  color: var(--acid);
}

.board-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr repeat(4, .72fr);
  align-items: center;
  min-height: 66px;
  border-top: 1px solid #ffffff22;
  font: 700 clamp(10px, .9vw, 13px)/1 monospace;
}

.board-grid > * {
  text-align: center;
}

.board-grid > *:first-child {
  text-align: left;
}

.board-grid-head {
  min-height: 34px;
  color: #777;
  border-color: #ffffff50;
  font-size: 7px;
  text-transform: uppercase;
}

.board-grid strong {
  color: var(--paper);
  font-family: Oswald;
  font-size: 17px;
}

.board-grid b {
  color: #aaa;
  font-size: 16px;
}

.board-grid .positive {
  color: var(--acid);
}

.board-grid .negative {
  color: #ff5f57;
}

.board-equation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
  padding: 14px;
  background: var(--acid);
  color: var(--black);
  font: 800 7px/1 monospace;
}

.board-equation strong {
  font-size: 12px;
}

.board-pulse {
  position: relative;
  height: 2px;
  margin-top: 20px;
  overflow: hidden;
  background: #ffffff20;
}

.board-pulse i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--acid);
  animation: board-pulse 4s ease-in-out infinite;
}

.board-note {
  margin: 12px 0 0;
  color: #666;
  font: 700 7px/1.4 monospace;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  right: -2vw;
  bottom: -8vh;
  color: #ffffff08;
  font: 800 34vw/.7 Oswald;
  pointer-events: none;
}

@keyframes board-pulse {
  0% { transform: translateX(-10px); }
  50%, 100% { transform: translateX(34vw); }
}

.case-section {
  position: relative;
  padding: clamp(90px, 13vh, 150px) var(--pad);
  overflow: hidden;
}

.section-heading {
  position: relative;
  z-index: 2;
}

.section-heading h2,
.case-cta h2 {
  margin: 3vh 0 0;
  font: 800 clamp(56px, 8.6vw, 148px)/.82 Oswald;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.section-heading h2 i,
.case-cta h2 i {
  color: var(--acid);
  font-style: normal;
}

.section-heading > p:last-child {
  max-width: 54ch;
  margin: 4vh 0 0 auto;
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.65;
}

.problem-section {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: center;
  background: var(--paper);
  color: var(--black);
}

.problem-section .section-heading h2 i {
  color: var(--black);
  -webkit-text-stroke: 1px var(--black);
  opacity: .22;
}

.problem-copy {
  position: relative;
  z-index: 2;
}

.problem-copy > p {
  margin: 0 0 5vh;
  font-size: clamp(17px, 1.7vw, 28px);
  line-height: 1.5;
}

.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.problem-tags span {
  padding: 12px 15px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font: 700 8px/1 monospace;
  text-transform: uppercase;
}

.problem-tags span:nth-child(3) {
  background: var(--acid);
  transform: rotate(-3deg);
}

.problem-mark {
  position: absolute;
  right: 2vw;
  top: 10%;
  color: #0808080c;
  font: 800 clamp(80px, 14vw, 220px)/.72 Oswald;
  text-align: center;
  transform: rotate(7deg);
}

.solution-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  background: var(--black);
}

.menu-demo {
  position: relative;
  padding: clamp(26px, 4vw, 56px);
  background: var(--acid);
  color: var(--black);
  border: 1px solid #111;
  box-shadow: 15px 15px 0 var(--paper);
  transform: rotate(-1deg);
}

.menu-demo-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #0006;
  font: 800 8px/1 monospace;
  letter-spacing: .1em;
}

.menu-demo-body {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.menu-demo button {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: var(--black);
  color: var(--paper);
  border: 0;
  font: 700 11px/1 Inter;
  text-align: left;
  text-transform: uppercase;
}

.menu-demo button span {
  color: var(--acid);
  font-family: monospace;
}

.menu-demo button i {
  color: var(--acid);
  font-style: normal;
  font-size: 18px;
}

.menu-demo > p {
  max-width: 46ch;
  margin: 0;
  font: 700 8px/1.5 monospace;
  text-transform: uppercase;
}

.flow-section {
  background: var(--paper);
  color: var(--black);
}

.flow-section .section-heading h2 i {
  color: var(--black);
  background: var(--acid);
  padding: 0 .1em;
}

.workflow-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 10vh 0 0;
  padding: 0;
  list-style: none;
}

.workflow-flow::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 33px;
  height: 3px;
  background: var(--black);
}

.workflow-flow li {
  position: relative;
  z-index: 2;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: var(--black);
  color: var(--paper);
  border: 1px solid var(--black);
}

.workflow-flow li::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--black);
  border-radius: 50%;
  font: 800 14px monospace;
}

.workflow-flow li:last-child::after {
  display: none;
}

.workflow-flow li:nth-child(even) {
  background: var(--acid);
  color: var(--black);
}

.workflow-flow li > span {
  position: absolute;
  left: 16px;
  top: 15px;
  font: 700 8px monospace;
}

.workflow-flow li b {
  font: 700 clamp(18px, 1.7vw, 28px)/.95 Oswald;
  text-transform: uppercase;
}

.workflow-flow li small {
  margin-top: 9px;
  font: 700 7px/1.3 monospace;
  text-transform: uppercase;
}

.logic-section {
  background: #0d0d0d;
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 9vh;
}

.logic-card {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 3vw, 42px);
  background: #151515;
  border: 1px solid #ffffff24;
}

.logic-card > span {
  color: var(--acid);
  font: 700 9px monospace;
}

.logic-card h3 {
  margin: 8vh 0 2vh;
  font: 700 clamp(27px, 3vw, 48px)/.9 Oswald;
  letter-spacing: -.04em;
}

.logic-card p {
  max-width: 38ch;
  margin: 0;
  color: #aaa;
  font-size: 12px;
  line-height: 1.55;
}

.logic-card-acid {
  background: var(--acid);
  color: var(--black);
}

.logic-card-acid > span,
.logic-card-acid p {
  color: var(--black);
}

.logic-card-wide {
  grid-column: 1 / -1;
  overflow: hidden;
}

.logic-card-wide b {
  position: absolute;
  right: -2%;
  bottom: -3%;
  color: #ffffff08;
  font: 800 clamp(38px, 6vw, 90px)/.8 Oswald;
  white-space: nowrap;
}

.compare-section {
  background: var(--paper);
  color: var(--black);
}

.compare-section .section-heading h2 i {
  color: #527e00;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(18px, 3vw, 50px);
  align-items: stretch;
  margin-top: 9vh;
}

.compare-card {
  min-height: 390px;
  padding: clamp(28px, 4vw, 60px);
  border: 2px solid var(--black);
}

.compare-card > span {
  font: 800 9px monospace;
  letter-spacing: .14em;
}

.compare-card h3 {
  margin: 9vh 0 5vh;
  font: 700 clamp(36px, 4vw, 64px)/.9 Oswald;
  text-transform: uppercase;
}

.compare-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  text-transform: uppercase;
}

.compare-card li {
  padding-top: 14px;
  border-top: 1px solid currentColor;
}

.compare-before {
  color: #777;
  background: transparent;
}

.compare-after {
  background: var(--black);
  color: var(--paper);
  box-shadow: 13px 13px 0 var(--acid);
}

.compare-after > span,
.compare-after li::marker {
  color: var(--acid);
}

.compare-arrow {
  align-self: center;
  color: #527e00;
  font: 800 clamp(36px, 5vw, 76px)/1 monospace;
}

.impact-section {
  background: var(--acid);
  color: var(--black);
}

.impact-section .case-label {
  color: var(--black);
}

.impact-section .section-heading h2 i {
  display: inline-block;
  color: var(--acid);
  background: var(--black);
  padding: 0 .1em .08em;
  transform: rotate(-1deg);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 9vh;
}

.impact-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--black);
  color: var(--paper);
}

.impact-card span {
  color: var(--acid);
  font: 800 30px/1 monospace;
}

.impact-card p {
  max-width: 15ch;
  margin: 0;
  font: 700 clamp(20px, 2vw, 30px)/1 Oswald;
  text-transform: uppercase;
}

.stack-section {
  min-height: 86vh;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  background: #0b0b0b;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.stack-list span {
  padding: 16px 20px;
  border: 1px solid #ffffff3d;
  border-radius: 100px;
  font: 700 clamp(9px, .8vw, 12px)/1 monospace;
}

.stack-list span:nth-child(3n + 1) {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--black);
  transform: rotate(-2deg);
}

.case-cta {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh var(--pad);
  overflow: hidden;
  background: var(--paper);
  color: var(--black);
}

.case-cta .case-label {
  color: #527e00;
}

.case-cta h2 {
  position: relative;
  z-index: 2;
  max-width: 10ch;
}

.case-cta h2 i {
  color: #527e00;
}

.case-cta > a {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin-top: 8vh;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--black);
  font: 700 clamp(24px, 4vw, 62px)/1 Oswald;
  text-transform: uppercase;
}

.case-cta-mark {
  position: absolute;
  right: -2vw;
  bottom: -14vh;
  color: #08080808;
  font: 800 56vw/.7 Oswald;
  letter-spacing: -.2em;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px var(--pad);
  background: var(--black);
  color: #888;
  font: 700 8px/1.3 monospace;
  text-transform: uppercase;
}

.case-footer a {
  color: var(--acid);
}

.workflow-case-page.workflow-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s ease, transform .85s cubic-bezier(.16, 1, .3, 1);
}

.workflow-case-page.workflow-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .case-hero {
    grid-template-columns: .9fr 1.1fr;
  }

  .workflow-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .workflow-flow::before {
    display: none;
  }

  .workflow-flow li:nth-child(3)::after {
    right: 18px;
    top: auto;
    bottom: -20px;
    content: "↓";
  }

  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .case-header {
    height: 76px;
    padding: 0 20px;
  }

  .case-header nav {
    display: none;
  }

  .case-header-actions {
    gap: 10px;
  }

  .case-back {
    padding: 10px;
    font-size: 0;
  }

  .case-back::after {
    content: "↙";
    font-size: 14px;
  }

  .case-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 55px;
    padding: 120px 20px 70px;
  }

  .case-hero::before {
    display: none;
  }

  .case-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 64px);
  }

  .case-hero-copy,
  .case-subtitle,
  .control-board {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .mobile-break {
    display: block;
  }

  .case-subtitle {
    width: 100%;
    max-width: 44ch;
  }

  .case-hero-title {
    font-size: 17px;
  }

  .control-board {
    padding: 20px 14px;
    box-shadow: 8px 8px 0 var(--acid);
    transform: none;
  }

  .board-head {
    font-size: 6px;
  }

  .board-grid {
    grid-template-columns: 1.35fr repeat(4, .76fr);
    min-height: 52px;
    font-size: 8px;
  }

  .board-grid-head {
    min-height: 34px;
    font-size: 5px;
  }

  .board-grid strong {
    font-size: 12px;
  }

  .board-grid b {
    font-size: 12px;
  }

  .board-equation {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 5px;
  }

  .board-note {
    font-size: 5px;
  }

  .case-section {
    padding: 90px 20px;
  }

  .section-heading h2,
  .case-cta h2 {
    font-size: 14.5vw;
  }

  .problem-section,
  .solution-section,
  .stack-section {
    grid-template-columns: 1fr;
  }

  .problem-section {
    min-height: 0;
  }

  .problem-copy {
    margin-top: 10px;
  }

  .problem-mark {
    display: none;
  }

  .menu-demo {
    padding: 24px 18px;
    box-shadow: 8px 8px 0 var(--paper);
    transform: none;
  }

  .menu-demo button {
    grid-template-columns: 28px 1fr auto;
    padding: 15px 12px;
    font-size: 9px;
  }

  .workflow-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 7vh;
  }

  .workflow-flow li {
    min-height: 140px;
  }

  .workflow-flow li::after {
    right: 18px;
    top: auto;
    bottom: -20px;
    content: "↓";
  }

  .logic-grid {
    grid-template-columns: 1fr;
  }

  .logic-card,
  .logic-card-wide {
    grid-column: auto;
    min-height: 230px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-card {
    min-height: 330px;
  }

  .compare-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-card {
    min-height: 190px;
    padding: 20px;
  }

  .impact-card:last-child {
    grid-column: 1 / -1;
  }

  .stack-list {
    margin-top: 5vh;
  }

  .stack-list span {
    padding: 12px 14px;
    font-size: 7px;
  }

  .case-cta {
    min-height: 86svh;
    padding: 100px 20px;
  }

  .case-cta > a {
    font-size: 7vw;
  }

  .case-footer {
    padding: 24px 20px;
  }

  .case-cursor {
    display: none;
  }
}

@media (max-width: 420px) {
  .case-header .brand > span {
    display: none;
  }

  .case-badges li {
    font-size: 6px;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-card:last-child {
    grid-column: auto;
  }

  .case-footer span {
    max-width: 18ch;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .board-pulse i {
    animation: none;
  }

  .workflow-case-page.workflow-ready .reveal,
  .workflow-case-page.workflow-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
