@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cp-bg: #f7f4ef;
  --cp-bg-elevated: #fcfbf8;
  --cp-surface: #ffffff;
  --cp-surface-soft: #f5f5f5;
  --cp-border: #dedede;
  --cp-border-strong: #919191;
  --cp-text: #242424;
  --cp-text-muted: #5c5c5c;
  --cp-text-soft: #6f6f6f;
  --cp-accent: #b11f4b;
  --cp-accent-hover: #9a1a41;
  --cp-accent-soft: rgba(177, 31, 75, 0.08);
  --cp-accent-fg: #ffffff;
  --cp-success: #16a34a;
  --cp-danger: #dc2626;
  --cp-warning: #f59e0b;
  --cp-link: #0078d4;
  --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --cp-overlay: rgba(255, 255, 255, 0.8);
  --cp-panel: rgba(255, 255, 255, 0.86);
  --cp-panel-strong: rgba(255, 255, 255, 0.96);
  --cp-sheen: rgba(255, 255, 255, 0.55);
  --cp-highlight: rgba(177, 31, 75, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --cp-bg: #3d3b3a;
  --cp-bg-elevated: #343231;
  --cp-surface: #292929;
  --cp-surface-soft: #2e2e2e;
  --cp-border: #474747;
  --cp-border-strong: #5f5f5f;
  --cp-text: #dedede;
  --cp-text-muted: #919191;
  --cp-text-soft: #b0b0b0;
  --cp-accent: #fd8ea1;
  --cp-accent-hover: #fb7b91;
  --cp-accent-soft: rgba(253, 142, 161, 0.14);
  --cp-accent-fg: #1a1a1a;
  --cp-success: #4ade80;
  --cp-danger: #f87171;
  --cp-warning: #fbbf24;
  --cp-link: #4da6ff;
  --cp-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --cp-overlay: rgba(41, 41, 41, 0.88);
  --cp-panel: rgba(41, 41, 41, 0.72);
  --cp-panel-strong: rgba(41, 41, 41, 0.96);
  --cp-sheen: rgba(255, 255, 255, 0.04);
  --cp-highlight: rgba(253, 142, 161, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body * {
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 0.625rem;
  background: var(--cp-accent);
  color: var(--cp-accent-fg);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--cp-border);
  background: var(--cp-panel-strong);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1240px);
  min-height: 88px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--cp-text);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.image-link:hover,
.image-link:focus-visible {
  color: var(--cp-link);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 0.625rem;
  background: var(--cp-text);
}

main {
  overflow: hidden;
  background: var(--cp-surface);
}

.case-shell {
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
}

.case-hero {
  padding: 78px 0 52px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cp-text-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.eyebrow span {
  margin: 0 5px;
  color: var(--cp-border-strong);
}

.case-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.case-intro {
  max-width: 860px;
  margin: 28px 0 0;
  color: var(--cp-text-soft);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.8;
}

.case-section {
  padding: 52px 0;
}

.journey-brief {
  max-width: 720px;
  margin: -8px 0 28px;
  color: var(--cp-text-soft);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.6;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 58px;
}

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 8px 30px;
  border-left: 1px solid var(--cp-border);
}

.metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric:last-child {
  padding-right: 0;
}

.metric strong {
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric span {
  max-width: 185px;
  color: var(--cp-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.case-figure {
  width: min(100%, 1100px);
  margin: 0 auto;
}

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

.journey-video-frame {
  position: relative;
  overflow: hidden;
}

.journey-video {
  width: calc(100% + 4px);
  max-width: none;
  margin-left: -2px;
  background: var(--cp-surface);
}

.journey-video-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.journey-video-frame:hover .journey-video-controls,
.journey-video-frame:focus-within .journey-video-controls {
  opacity: 1;
  pointer-events: auto;
}

.journey-video-controls .monitor-video-btn {
  background: rgba(20, 20, 20, 0.65);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.journey-video-controls .monitor-video-btn:hover {
  background: rgba(20, 20, 20, 0.85);
}

.case-figure figcaption {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.image-link {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--cp-link);
  font-size: 0.9rem;
  cursor: pointer;
}

.image-link span {
  display: inline-block;
  margin-left: 4px;
}

.why-section {
  padding: 80px 0 64px;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 560px);
  gap: 72px;
  align-items: center;
  justify-content: center;
}

.question-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.question-option {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: baseline;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: var(--cp-border);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  cursor: pointer;
  opacity: 0.52;
  transform: translate(-50%, -50%);
  transition:
    color 650ms ease 80ms,
    top 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    left 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    opacity 650ms ease 80ms,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

.question-option[data-position="previous"] {
  top: 18%;
  left: 36%;
  transform: translate(-50%, -50%) scale(0.82);
}

.question-option[data-position="next"] {
  top: 82%;
  left: 36%;
  transform: translate(-50%, -50%) scale(0.82);
}

.question-option[data-position="active"] {
  top: 50%;
  left: 58%;
  z-index: 3;
  color: var(--cp-text);
  opacity: 1;
}

.question-option:focus-visible {
  border-radius: 0.625rem;
  outline: 2px solid var(--cp-link);
  outline-offset: 2px;
}

.question-option[data-position="active"] .question-initial {
  font-size: 8.5rem;
  font-weight: 500;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.question-option[data-position="active"] .question-suffix {
  margin-left: 6px;
  color: var(--cp-text-soft);
}

.question-option:not([data-position="active"]) .question-initial {
  text-transform: lowercase;
}

.question-initial {
  transition:
    font-size 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    font-weight 900ms ease 80ms,
    letter-spacing 900ms ease 80ms;
}

.question-copy {
  display: grid;
  padding-top: 48px;
}

.question-panel {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--cp-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 450ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 450ms;
}

.question-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 280ms;
}

.process-section {
  padding-top: 28px;
}

.solution-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.solution-section .metrics {
  margin-bottom: 0;
}

.impact-section {
  margin-top: -70px;
  padding: 66px 0 76px;
  background: var(--cp-bg-elevated);
}

.impact-section,
.impact-section * {
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.impact-section h2 {
  margin: 0 0 clamp(36px, 4vw, 64px);
  scroll-margin-top: 112px;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.impact-carousel {
  display: block;
}

.impact-track {
  display: flex;
  gap: clamp(18px, 2.5vw, 40px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.impact-track::-webkit-scrollbar {
  display: none;
}

.impact-card {
  display: flex;
  flex: 0 0 calc((100% - (2 * clamp(18px, 2.5vw, 40px))) / 3);
  min-height: clamp(330px, 35vw, 430px);
  padding: clamp(24px, 3vw, 40px);
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  border-radius: clamp(10px, 1.4vw, 22px);
  background: var(--cp-surface);
  box-shadow: none;
  scroll-snap-align: start;
}

.impact-icon {
  width: clamp(76px, 8vw, 112px);
  height: clamp(76px, 8vw, 112px);
  overflow: visible;
  color: var(--cp-text);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.impact-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.impact-card p {
  margin: 0;
  color: var(--cp-text-soft);
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.impact-carousel-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.impact-carousel-navigation[hidden] {
  display: none;
}

.impact-carousel-button {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cp-text);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.impact-carousel-button:hover:not(:disabled) {
  transform: none;
}

.impact-carousel-button:focus-visible {
  outline: 2px solid var(--cp-link);
  outline-offset: 3px;
}

.impact-carousel-button:disabled {
  cursor: default;
  opacity: 1;
}

.impact-carousel-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.impact-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 0;
}

.impact-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #9b9b9b;
  border-radius: 50%;
  background: var(--cp-surface);
  cursor: pointer;
}

.impact-dots button.is-active {
  border-color: #3a3a3a;
  background: #3a3a3a;
}

.journey-section {
  padding-top: 100px;
  padding-bottom: 120px;
}

.journey-figure {
  width: min(100%, 940px);
}

.walkthrough-section {
  padding-top: 40px;
  padding-bottom: 130px;
}

.walkthrough-monitor {
  width: 100%;
  margin: 36px auto 0;
  padding: 64px 72px 108px;
  border: 0;
  background: transparent;
}

.desktop-monitor {
  position: relative;
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: 12px 12px 54px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cp-text);
  box-shadow: 0 1px 2px var(--cp-border), 0 18px 48px var(--cp-border);
}

.desktop-monitor::after {
  position: absolute;
  bottom: 21px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cp-border-strong);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.desktop-monitor-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0.625rem 0.625rem 0 0;
  background: var(--cp-text);
  scrollbar-color: var(--cp-border-strong) var(--cp-border);
  scrollbar-width: thin;
}

.monitor-video {
  display: block;
  width: 114.92%;
  max-width: none;
  height: auto;
  margin-left: -4.96%;
  background: var(--cp-text);
  object-fit: contain;
}

.monitor-video-controls {
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.monitor-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.monitor-video-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.monitor-video-btn svg {
  width: 16px;
  height: 16px;
}

.monitor-video-btn .icon-play {
  display: none;
}

.monitor-video-btn.is-paused .icon-pause {
  display: none;
}

.monitor-video-btn.is-paused .icon-play {
  display: block;
}

.monitor-video-time {
  flex: 0 0 auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
}

.monitor-video-seek {
  flex: 1 1 auto;
  height: 4px;
  margin: 0 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.monitor-video-seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.monitor-video-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #fff;
}

.monitor-video-btn .icon-muted {
  display: none;
}

.monitor-video-btn.is-muted .icon-unmuted {
  display: none;
}

.monitor-video-btn.is-muted .icon-muted {
  display: block;
}

.desktop-monitor-stand {
  position: relative;
  width: 270px;
  height: 100px;
  margin: 0 auto;
}

.desktop-monitor-stand::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 125px;
  height: 84px;
  background: var(--cp-border);
  clip-path: polygon(18% 0, 82% 0, 88% 82%, 100% 100%, 0 100%, 12% 82%);
  content: "";
  transform: translateX(-50%);
}

.desktop-monitor-stand::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 17px;
  border-radius: 50%;
  background: var(--cp-text-muted);
  content: "";
  transform: translateX(-50%);
}

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--cp-border);
  background: var(--cp-bg);
  color: var(--cp-text-muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.image-dialog {
  width: min(95vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 44px 18px 18px;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  background: var(--cp-panel-strong);
  box-shadow: var(--cp-shadow);
}

.image-dialog::backdrop {
  background: var(--cp-overlay);
}

.image-dialog img {
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 62px);
  margin: 0 auto;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cp-text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .impact-track {
    gap: 20px;
  }

  .impact-card {
    flex-basis: calc((100% - 40px) / 3);
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .navbar {
    width: min(100% - 32px, 1240px);
    min-height: 72px;
  }

  .logo img {
    height: 54px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    display: none;
    width: min(260px, calc(100% - 32px));
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border: 1px solid var(--cp-border);
    border-radius: 0.625rem;
    background: var(--cp-surface);
    box-shadow: var(--cp-shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .case-shell {
    width: min(100% - 40px, 1240px);
  }

  .case-hero {
    padding: 56px 0 36px;
  }

  .case-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .case-section {
    padding: 38px 0;
  }

  .metrics {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .metric,
  .metric:nth-child(3) {
    grid-template-columns: 64px 1fr;
    padding: 22px 0;
    border-top: 1px solid var(--cp-border);
    border-left: 0;
  }

  .metric:first-child {
    border-top: 0;
  }

  .metric strong {
    font-size: 2.6rem;
  }

  .metric span {
    max-width: none;
  }

  .why-section {
    padding: 52px 0;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .question-copy {
    padding-top: 0;
  }

  .question-center strong {
    font-size: 7rem;
  }

  .question-option[data-position="active"] .question-initial {
    font-size: 7rem;
  }

  .solution-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .impact-section {
    padding: 52px 0 62px;
  }

  .impact-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .impact-control {
    width: 40px;
    height: 40px;
  }

  .impact-track {
    gap: 16px;
  }

  .impact-card {
    flex-basis: 100%;
    min-width: 0;
  }

  .journey-section {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .walkthrough-section {
    padding-top: 20px;
    padding-bottom: 90px;
  }

  .walkthrough-monitor {
    margin-top: 28px;
    padding: 24px 12px 58px;
  }

  .desktop-monitor {
    padding: 7px 7px 34px;
    border-radius: 0.625rem;
  }

  .desktop-monitor::after {
    bottom: 12px;
    width: 7px;
    height: 7px;
    border-width: 1px;
  }

  .desktop-monitor-stand {
    width: 170px;
    height: 66px;
  }

  .desktop-monitor-stand::before {
    width: 88px;
    height: 54px;
  }

  .desktop-monitor-stand::after {
    height: 12px;
  }
}

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