:root {
  color-scheme: dark;

  --bg: #0c0a09;
  --surface: #1c1917;
  --surface-raised: #292524;
  --text: #fafaf9;
  --text-soft: #e7e5e4;
  --text-muted: #a89984;
  --border: #44403c;
  --border-strong: #e5e7eb;
  --accent: #cab16a;
  --accent-ink: #1a161c;
  --green: #59a569;
  --red: #ea6962;
  --orange: #cc5b33;
  --shadow-card: rgba(0, 0, 0, 0.1) 0 1px 3px 0, rgba(0, 0, 0, 0.1) 0 1px 2px -1px;

  --font-body: "CircularXX", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Whyte", "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "CircularXXMono", "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(68, 64, 60, 0.33) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 64, 60, 0.33) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.04), rgba(12, 10, 9, 0.82) 72%),
    repeating-linear-gradient(135deg, transparent 0 19px, rgba(202, 177, 106, 0.055) 19px 20px);
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.h5-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  border-bottom: 1px solid rgba(68, 64, 60, 0.72);
  background: rgba(12, 10, 9, 0.78);
  box-shadow: rgba(0, 0, 0, 0.05) 0 1px 2px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.chapter-pill {
  max-width: 156px;
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid rgba(68, 64, 60, 0.88);
  border-radius: 9999px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.33;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-dots {
  position: fixed;
  top: 50%;
  right: 4px;
  z-index: 30;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.dot {
  width: 7px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(168, 153, 132, 0.5);
  border-radius: 9999px;
  background: rgba(28, 25, 23, 0.76);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.dot.is-current {
  border-color: var(--accent);
  background: var(--accent);
  transform: scaleY(1.35);
}

.snap-deck {
  position: relative;
  z-index: 1;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  touch-action: none;
}

.screen {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.22), rgba(12, 10, 9, 0.84)),
    linear-gradient(112deg, rgba(202, 177, 106, 0.11), transparent 32%),
    linear-gradient(rgba(68, 64, 60, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 64, 60, 0.26) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}

.screen-hero {
  background:
    radial-gradient(ellipse at 86% 10%, rgba(89, 165, 105, 0.18), rgba(89, 165, 105, 0.06) 28%, transparent 58%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.22), rgba(12, 10, 9, 0.84)),
    linear-gradient(112deg, rgba(202, 177, 106, 0.11), transparent 32%),
    linear-gradient(rgba(68, 64, 60, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 64, 60, 0.26) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
}

#screen-8 {
  background:
    radial-gradient(ellipse at 14% 16%, rgba(89, 165, 105, 0.18), rgba(89, 165, 105, 0.06) 26%, transparent 54%),
    radial-gradient(ellipse at 86% 84%, rgba(89, 165, 105, 0.16), rgba(89, 165, 105, 0.05) 28%, transparent 58%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.22), rgba(12, 10, 9, 0.84)),
    linear-gradient(112deg, rgba(202, 177, 106, 0.11), transparent 32%),
    linear-gradient(rgba(68, 64, 60, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 64, 60, 0.26) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px;
}

#screen-10 {
  background:
    radial-gradient(ellipse at 84% 13%, rgba(89, 165, 105, 0.18), rgba(89, 165, 105, 0.06) 28%, transparent 58%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.22), rgba(12, 10, 9, 0.84)),
    linear-gradient(112deg, rgba(202, 177, 106, 0.11), transparent 32%),
    linear-gradient(rgba(68, 64, 60, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 64, 60, 0.26) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
}

#screen-11 {
  background:
    radial-gradient(ellipse at 50% 7%, rgba(89, 165, 105, 0.17), rgba(89, 165, 105, 0.055) 27%, transparent 58%),
    radial-gradient(ellipse at 88% 84%, rgba(89, 165, 105, 0.15), rgba(89, 165, 105, 0.05) 28%, transparent 60%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.22), rgba(12, 10, 9, 0.84)),
    linear-gradient(112deg, rgba(202, 177, 106, 0.11), transparent 32%),
    linear-gradient(rgba(68, 64, 60, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 64, 60, 0.26) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px;
}

.screen::before,
.screen::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.screen::before {
  right: -80px;
  bottom: 92px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(202, 177, 106, 0.18);
  background:
    linear-gradient(90deg, transparent 47%, rgba(202, 177, 106, 0.18) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(202, 177, 106, 0.18) 47% 53%, transparent 53%);
  opacity: 0;
  transform: translate3d(42px, 32px, 0) rotate(8deg);
  transition: opacity 620ms ease, transform 900ms ease;
}

.screen::after {
  top: calc(var(--header-height) + 26px);
  left: -72px;
  width: 180px;
  height: 104px;
  border: 1px solid rgba(89, 165, 105, 0.16);
  background:
    repeating-linear-gradient(90deg, rgba(89, 165, 105, 0.12) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(89, 165, 105, 0.1) 0 1px, transparent 1px 18px);
  opacity: 0;
  transform: translate3d(-32px, -12px, 0);
  transition: opacity 620ms ease 80ms, transform 920ms ease 80ms;
}

.screen.is-active::before,
.screen.is-active::after {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.screen::before,
.screen::after {
  display: none;
}

.screen-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: calc(var(--header-height) + env(safe-area-inset-top) + 24px) 24px calc(40px + env(safe-area-inset-bottom));
}

.screen:not(#screen-1) .screen-inner {
  width: min(1040px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(34px, 7vw, 72px);
  padding-left: clamp(34px, 7vw, 72px);
}

.screen-hero .screen-inner {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(34px, 7vw, 72px);
  padding-left: clamp(34px, 7vw, 72px);
}

.hero-layout {
  align-items: stretch;
  gap: 30px;
  text-align: left;
}

.copy-block {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 520ms ease, transform 680ms ease;
}

.screen.is-active .copy-block {
  opacity: 1;
  transform: translateY(0);
}

.copy-block.compact {
  max-width: 720px;
}

.screen:not(#screen-1) .copy-block {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: 16px;
  padding-left: 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #cab16a;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.43;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 11em;
  margin-right: 0;
  margin-left: 0;
  font-size: 28px;
  line-height: 1.14;
}

.hero-title {
  display: block;
  max-width: 12em;
  font-weight: 700;
}

.hero-title span {
  display: block;
  font-weight: 500;
}

.hero-title strong {
  color: var(--accent);
  font-weight: inherit;
}

.hero-title span:last-child {
  font-size: 0.78em;
  white-space: nowrap;
}

.hero-title i {
  display: block;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-top: 16px solid #2d9b63;
  background: transparent;
  animation: heroTriangleFloat 1.9s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

h2 {
  max-width: 12em;
  font-size: 28px;
  line-height: 1.14;
}

.title-accent {
  color: var(--accent);
}

#screen-2 .copy-block h2,
#screen-3 .copy-block h2 {
  position: relative;
  isolation: isolate;
}

#screen-2 .copy-block h2::after,
#screen-3 .copy-block h2::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -52px;
  z-index: -1;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(89, 165, 105, 0.2) 0%, rgba(89, 165, 105, 0.08) 38%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 34em;
  margin-top: 16px;
  margin-right: auto;
  margin-left: auto;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.62;
}

.screen:not(#screen-1) .lead {
  margin-right: 0;
  margin-left: 0;
}

.hero-lead-card {
  position: relative;
  display: grid;
  gap: 2px;
  max-width: 36em;
  margin-top: 32px;
  overflow: hidden;
  padding: 18px 16px;
  border: 1px solid rgba(202, 177, 106, 0.74);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.09) 0 1px, transparent 1px 15px),
    rgba(28, 25, 23, 0.88);
  box-shadow: var(--shadow-card);
}

.hero-lead-card::before,
.hero-lead-card::after {
  display: none;
}

.hero-lead-card span {
  display: block;
}

.hero-illustration {
  width: min(340px, 82vw);
  margin: 38px auto 0;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 620ms ease 180ms, transform 760ms ease 180ms;
}

.screen.is-active .hero-illustration {
  opacity: 0.68;
  transform: translateY(0) scale(1);
}

.hero-copy {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding: 0 16px;
}

.hero-copy .lead {
  margin-right: 0;
  margin-left: 0;
}

.hero-system-card {
  display: grid;
  gap: 14px;
  align-self: stretch;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(202, 177, 106, 0.56);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.08) 0 1px, transparent 1px 15px),
    rgba(28, 25, 23, 0.86);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease 140ms, transform 760ms ease 140ms;
}

.screen.is-active .hero-system-card {
  opacity: 1;
  transform: translateY(0);
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.hero-card-top b {
  color: var(--accent);
  font-weight: 700;
}

.hero-system-card .hero-illustration {
  width: min(320px, 100%);
  margin: 0 auto;
}

.screen.is-active .hero-system-card .hero-illustration {
  opacity: 0.82;
}

.hero-promise-list {
  display: grid;
  border-top: 1px solid rgba(202, 177, 106, 0.18);
}

.hero-promise-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(68, 64, 60, 0.72);
}

.hero-promise-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-promise-list span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.hero-promise-list strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.hero-promise-list p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tap-illustration {
  width: 100%;
  height: auto;
  overflow: visible;
}

.tap-base {
  fill: rgba(58, 58, 58, 0.46);
  stroke: rgba(231, 229, 228, 0.36);
  stroke-width: 2;
}

.tap-fill {
  fill: #e7e5e4;
  opacity: 0.72;
}

.tap-text {
  fill: rgba(26, 22, 28, 0.76);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.tap-ring {
  fill: none;
  stroke: #cab16a;
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.ring-1 {
  animation: ringPulseOne 5.2s ease-out infinite;
}

.ring-2 {
  animation: ringPulseTwo 5.2s ease-out infinite;
}

.ring-3 {
  animation: ringPulseThree 5.2s ease-out infinite;
}

.tap-point {
  fill: #cab16a;
  opacity: 0.95;
  transform-box: fill-box;
  transform-origin: center;
  animation: pointTravel 5.2s ease-in-out infinite;
}

.tree-line {
  fill: none;
  stroke: rgba(134, 134, 134, 0.72);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.tree-trunk {
  animation: treeGrowTrunk 5.2s ease-in-out infinite;
}

.tree-rail {
  animation: treeGrowPrimary 5.2s ease-in-out infinite;
}

.tree-branch {
  animation: treeGrowSecondary 5.2s ease-in-out infinite;
}

.tree-node {
  opacity: 0;
}

.tree-node rect {
  fill: rgba(28, 25, 23, 0.88);
  stroke: rgba(231, 229, 228, 0.28);
  stroke-width: 1.5;
}

.tree-node text {
  fill: #f6f6f6;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.tree-node-1,
.tree-node-2,
.tree-node-3,
.tree-node-4 {
  animation: treeNodeSecondary 5.2s ease-in-out infinite;
}

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

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-secondary {
  border-color: rgba(68, 64, 60, 0.96);
  background: rgba(28, 25, 23, 0.72);
  color: var(--text-soft);
}

.btn-large {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
}

.visual {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 640ms ease 120ms, transform 760ms ease 120ms;
}

.screen.is-active .visual {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.visual-console {
  border: 1px solid rgba(68, 64, 60, 0.96);
  background: rgba(28, 25, 23, 0.82);
  box-shadow: var(--shadow-card);
}

.console-top {
  display: grid;
  grid-template-columns: 8px 8px 8px 1fr;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(68, 64, 60, 0.9);
}

.console-top span {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--border);
}

.console-top span:nth-child(1) {
  background: var(--red);
}

.console-top span:nth-child(2) {
  background: var(--orange);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-top strong {
  justify-self: end;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
}

.console-body {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 236px;
}

.console-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid rgba(68, 64, 60, 0.86);
}

.console-sidebar span {
  padding: 7px 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.console-sidebar .is-lit {
  background: rgba(202, 177, 106, 0.12);
  color: var(--accent);
}

.console-main {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 14px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.status-row b {
  padding: 4px 8px;
  border-radius: 9999px;
  background: rgba(89, 165, 105, 0.14);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.scan-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(68, 64, 60, 0.75);
}

.scan-bar i {
  display: block;
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: translateX(-100%);
}

.screen.is-active .scan-bar i {
  animation: scanIn 900ms ease 260ms forwards;
}

.flow-chip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.flow-chip-row span {
  padding: 8px 7px;
  border: 1px solid rgba(68, 64, 60, 0.86);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
}

.screen.is-active .flow-chip-row span {
  animation: riseIn 560ms ease forwards;
}

.screen.is-active .flow-chip-row span:nth-child(2) {
  animation-delay: 90ms;
}

.screen.is-active .flow-chip-row span:nth-child(3) {
  animation-delay: 180ms;
}

.screen.is-active .flow-chip-row span:nth-child(4) {
  animation-delay: 270ms;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-grid span {
  height: 30px;
  border: 1px solid rgba(68, 64, 60, 0.8);
  background:
    linear-gradient(90deg, rgba(202, 177, 106, 0.2), transparent),
    rgba(12, 10, 9, 0.42);
  transform-origin: left;
  animation: tilePulse 2.8s ease-in-out infinite;
}

.mini-grid span:nth-child(2n) {
  animation-delay: 420ms;
}

.mini-grid span:nth-child(3n) {
  animation-delay: 780ms;
}

.next-screen {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 8;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(202, 177, 106, 0.5);
  border-radius: 9999px;
  background: rgba(28, 25, 23, 0.72);
  transform: translateX(-50%);
}

.next-screen::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
  animation: arrowFloat 1.4s ease-in-out infinite;
}

.pain-stack,
.advantage-board,
.fit-board,
.case-rail {
  display: grid;
  gap: 10px;
}

.pain-stack article,
.advantage-board article,
.fit-board article,
.case-panel,
.diagnosis-card,
.node-card {
  border: 1px solid rgba(68, 64, 60, 0.96);
  border-radius: 6px;
  background: rgba(28, 25, 23, 0.84);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.pain-stack article {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px 80px 16px 16px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity 520ms ease, transform 640ms ease;
}

.pain-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 48px;
  height: 48px;
  color: rgba(255, 85, 0, 0.32);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.pain-icon-solid {
  fill: currentColor;
  stroke: none;
}


.screen.is-active .pain-stack article {
  opacity: 1;
  transform: translateX(0);
}

.screen.is-active .pain-stack article:nth-child(2) {
  transition-delay: 90ms;
}

.screen.is-active .pain-stack article:nth-child(3) {
  transition-delay: 180ms;
}

.pain-stack span,
.advantage-board span,
.case-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.pain-stack p,
.advantage-board p,
.case-panel p,
.fit-board li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.workflow-visual {
  display: grid;
  gap: 9px;
}

.node-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 640ms ease;
}

.node-card.is-featured {
  border-color: rgba(202, 177, 106, 0.74);
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.09) 0 1px, transparent 1px 15px),
    rgba(28, 25, 23, 0.88);
}

.screen.is-active .node-card {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-active .node-card:nth-of-type(3) {
  transition-delay: 150ms;
}

.screen.is-active .node-card:nth-of-type(5) {
  transition-delay: 300ms;
}

.node-card b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.node-card span {
  color: var(--text-soft);
  font-size: 13px;
}

.delivery-system {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 0 16px;
}

.delivery-principle {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.62;
}

.delivery-options {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 46px;
}

.delivery-item {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 8px 0 10px;
}

.delivery-node {
  position: absolute;
  top: 6px;
  left: -46px;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(202, 177, 106, 0.7);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.86);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 0 6px rgba(12, 10, 9, 0.58);
}

.delivery-item h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}

.delivery-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.delivery-principle {
  position: relative;
  padding: 12px 0 0 46px;
  color: var(--accent);
  font-weight: 700;
}

.delivery-principle::before {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  transform: rotate(-45deg);
}

.dashboard-preview {
  width: calc(100% - 32px);
  margin: 0 16px;
  border: 1px solid rgba(202, 177, 106, 0.44);
  border-radius: 6px;
  background: rgba(28, 25, 23, 0.84);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease 120ms, transform 680ms ease 120ms;
}

.dashboard-preview img {
  width: 100%;
  height: auto;
}

.dashboard-preview figcaption {
  padding: 10px 12px 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.screen.is-active .dashboard-preview {
  opacity: 1;
  transform: translateY(0);
}

.flow-line {
  position: relative;
  width: 1px;
  height: 24px;
  margin-left: 24px;
  overflow: hidden;
  background: rgba(68, 64, 60, 0.96);
}

.flow-line i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
}

.screen.is-active .flow-line i {
  animation: flowDown 900ms ease forwards;
}

.advantage-board {
  grid-template-columns: 1fr;
  gap: 18px;
}

.advantage-board article {
  min-height: 134px;
  padding: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 620ms ease, border-color 220ms ease;
}

.advantage-board .is-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(156px, 0.9fr);
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.advantage-copy-card,
.member-pair {
  border: 1px solid rgba(202, 177, 106, 0.74);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.09) 0 1px, transparent 1px 15px),
    rgba(28, 25, 23, 0.88);
  box-shadow: var(--shadow-card);
}

.advantage-copy-card {
  min-width: 0;
  padding: 16px;
}

.screen.is-active .advantage-board article {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-active .advantage-board article:nth-child(2) {
  transition-delay: 70ms;
}

.screen.is-active .advantage-board article:nth-child(3) {
  transition-delay: 140ms;
}

.screen.is-active .advantage-board article:nth-child(4) {
  transition-delay: 210ms;
}

.advantage-board h3 {
  margin: 7px 0 8px;
}

.advantage-flow {
  gap: 8px;
  padding-left: 46px;
}

.advantage-step {
  min-height: 66px;
  padding-top: 6px;
  padding-bottom: 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 620ms ease;
}

.advantage-step h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}

.advantage-step p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.screen.is-active .advantage-step {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-active .advantage-step:nth-child(2) {
  transition-delay: 80ms;
}

.screen.is-active .advantage-step:nth-child(3) {
  transition-delay: 160ms;
}

.member-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-content: stretch;
  gap: 12px 12px;
  margin-top: 0;
  padding: 14px;
}

.member-pair figure {
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
  gap: 8px;
  margin: 0;
}

.member-avatar {
  position: relative;
  width: clamp(62px, 18vw, 76px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(202, 177, 106, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 15%, rgba(89, 165, 105, 0.22), transparent 58%),
    rgba(13, 13, 12, 0.72);
  box-shadow: 0 0 24px rgba(89, 165, 105, 0.08);
}

.member-avatar img {
  display: block;
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.member-pair figcaption {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.member-pair p {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.case-rail {
  grid-template-columns: 1fr;
}

.case-panel {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 16px;
  border-color: rgba(68, 64, 60, 0.96);
  background:
    radial-gradient(circle at 78% 58%, rgba(89, 165, 105, 0.16), transparent 34%),
    radial-gradient(circle at 34% 18%, rgba(89, 165, 105, 0.07), transparent 28%),
    rgba(28, 25, 23, 0.84);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 680ms ease;
}

.case-panel::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 76px;
  height: 76px;
  border-left: 1px solid rgba(202, 177, 106, 0.26);
  border-bottom: 1px solid rgba(202, 177, 106, 0.26);
  content: "";
  background:
    linear-gradient(90deg, transparent 48%, rgba(202, 177, 106, 0.2) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(202, 177, 106, 0.2) 48% 52%, transparent 52%);
}

.screen.is-active .case-panel {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-active .case-panel:nth-child(2) {
  transition-delay: 120ms;
}

.screen.is-active .case-panel:nth-child(3) {
  transition-delay: 240ms;
}

.case-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-flow span {
  padding: 5px 8px;
  border: 1px solid rgba(68, 64, 60, 0.92);
  border-radius: 9999px;
  color: var(--text-soft);
  font-size: 12px;
}

.case-detail-layout {
  gap: 18px;
}

.case-detail-head {
  display: grid;
  gap: 12px;
}

.case-detail-body {
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease 140ms, transform 680ms ease 140ms;
}

.screen.is-active .case-detail-body {
  opacity: 1;
  transform: translateY(0);
}

.case-brief-card,
.case-shot {
  border: 1px solid rgba(68, 64, 60, 0.9);
  border-radius: 6px;
  background: rgba(28, 25, 23, 0.8);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.case-brief-card {
  display: grid;
  gap: 8px;
  border-color: rgba(202, 177, 106, 0.74);
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.09) 0 1px, transparent 1px 15px),
    rgba(28, 25, 23, 0.88);
  padding: 12px 14px;
}

.case-brief-card div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.case-brief-card div+div {
  padding-top: 8px;
  border-top: 1px solid rgba(202, 177, 106, 0.22);
}

.case-brief-card span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}

.case-brief-card p {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.48;
}

.case-image-grid {
  display: grid;
  gap: 10px;
}

.case-image-grid.case-one-grid {
  grid-template-columns: 1fr;
}

.case-image-grid.case-single-media {
  grid-template-columns: 1fr;
}

.case-image-grid.case-media-spaced {
  margin-top: 8px;
}

.case-shot {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.case-shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.case-prompt-card {
  display: grid;
  gap: 6px;
  padding: 8px 12px;
  /* border: 1px solid rgba(89, 165, 105, 0.32);
  border-radius: 6px;
  background:
    radial-gradient(circle at 88% 18%, rgba(89, 165, 105, 0.18), transparent 34%),
    rgba(28, 25, 23, 0.84);
  box-shadow: var(--shadow-card); */
}

.case-prompt-card span {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.case-prompt-card p {
  position: relative;
  padding-left: 0px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* .case-prompt-card p::before {
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  content: "";
} */

.case-shot div {
  display: grid;
  min-height: 132px;
  place-items: center;
  border-bottom: 1px solid rgba(68, 64, 60, 0.72);
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.12) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 50% 40%, rgba(89, 165, 105, 0.18), transparent 48%),
    rgba(12, 10, 9, 0.54);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.case-video-trigger {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(68, 64, 60, 0.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(89, 165, 105, 0.2), transparent 45%),
    rgba(12, 10, 9, 0.54);
  color: var(--text-muted);
}

.case-video-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-video-trigger::after {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.18);
  content: "";
}

.case-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(202, 177, 106, 0.52);
  border-radius: 9999px;
  background: rgba(28, 25, 23, 0.72);
  transform: translate(-50%, -50%);
}

.case-video-play::before {
  position: absolute;
  top: 18px;
  left: 22px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--accent);
  content: "";
}

.case-shot-media img {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  object-fit: contain;
}

.dashboard-preview img {
  cursor: zoom-in;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  background: rgba(12, 10, 9, 0.86);
  opacity: 0;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
}

.image-lightbox-frame {
  display: grid;
  gap: 10px;
  max-width: min(1120px, 94vw);
  max-height: calc(100svh - 64px);
  margin: 0;
}

.image-lightbox-frame img {
  max-width: 100%;
  max-height: calc(100svh - 112px);
  border: 1px solid rgba(202, 177, 106, 0.34);
  border-radius: 6px;
  background: rgba(12, 10, 9, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  object-fit: contain;
}

.image-lightbox-frame video {
  max-width: 100%;
  max-height: calc(100svh - 112px);
  border: 1px solid rgba(202, 177, 106, 0.34);
  border-radius: 6px;
  background: rgba(12, 10, 9, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.image-lightbox-frame figcaption {
  max-width: 78ch;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(202, 177, 106, 0.42);
  border-radius: 9999px;
  background: rgba(28, 25, 23, 0.86);
}

.image-lightbox-close::before,
.image-lightbox-close::after {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 2px;
  border-radius: 9999px;
  background: var(--text-soft);
  content: "";
}

.image-lightbox-close::before {
  transform: rotate(45deg);
}

.image-lightbox-close::after {
  transform: rotate(-45deg);
}

.case-shot-wide .case-shot-media {
  aspect-ratio: 4.6 / 1;
  min-height: 0;
  overflow: hidden;
}

.case-shot-wide .case-shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-product-shot .case-shot-media {
  min-height: 0;
  border-bottom: 0;
  background: rgba(12, 10, 9, 0.54);
}

.case-product-shot .case-shot-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-product-card .case-shot-media {
  min-height: 0;
  border-bottom: 0;
  background: rgba(12, 10, 9, 0.54);
}

.case-product-card .case-shot-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-product-card figcaption {
  padding-right: 6px;
  padding-left: 6px;
  text-align: center;
}

.case-phone-shot .case-shot-media {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-bottom: 0;
  overflow: hidden;
}

.case-phone-shot .case-shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-shot figcaption {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(68, 64, 60, 0.72);
  background: rgba(28, 25, 23, 0.94);
  padding: 9px 10px 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.48;
}

.case-phone-shot figcaption {
  min-height: 0;
  background: rgba(28, 25, 23, 0.98);
  padding: 7px 8px 8px;
}

.fit-board {
  grid-template-columns: 1fr;
}

.fit-board article {
  padding: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 640ms ease;
}

.fit-board article:first-child {
  border-color: rgba(202, 177, 106, 0.74);
  background:
    repeating-linear-gradient(135deg, rgba(202, 177, 106, 0.09) 0 1px, transparent 1px 15px),
    rgba(28, 25, 23, 0.88);
}

.fit-board .muted {
  border-color: rgba(68, 64, 60, 0.74);
  background: rgba(28, 25, 23, 0.58);
}

.screen.is-active .fit-board article {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-active .fit-board article:nth-child(2) {
  transition-delay: 100ms;
}

.fit-board p {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.fit-board li {
  position: relative;
  padding-left: 18px;
}

.fit-board li::before {
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent);
}

.fit-board .muted li::before {
  background: var(--border);
}

.screen-cta .screen-inner {
  justify-content: center;
}

.screen-cta h2 {
  line-height: 1.28;
}

.screen-cta .cta-lead-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.screen-cta .cta-lead-list li {
  padding-left: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.cta-layout {
  gap: 46px;
}

.cta-card-stack {
  display: grid;
  gap: 14px;
}

.cta-contact {
  animation: ctaContactPulse 1.35s ease-in-out infinite;
  margin-top: 0;
  transform-origin: center;
  will-change: transform;
}

.cta-contact:active {
  animation: none;
  transform: translateY(1px) scale(0.98);
}

.diagnosis-card {
  display: grid;
  gap: 15px;
  padding: 18px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease 120ms, transform 760ms ease 120ms;
}

.screen.is-active .diagnosis-card {
  opacity: 1;
  transform: translateY(0);
}

.diag-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.diag-top b {
  padding: 5px 9px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-ink);
}

.diag-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.diag-line i {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  background: rgba(68, 64, 60, 0.9);
}

.diag-line i::after {
  position: absolute;
  inset: 0;
  width: 72%;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: translateX(-100%);
}

.screen.is-active .diag-line i::after {
  animation: scanIn 820ms ease forwards;
}

.screen.is-active .diag-line:nth-child(3) i::after {
  animation-delay: 130ms;
}

.screen.is-active .diag-line:nth-child(4) i::after {
  animation-delay: 260ms;
}

.diag-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diag-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.58;
}

.diag-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
}

.diag-result {
  padding: 12px;
  background: rgba(202, 177, 106, 0.12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

@keyframes heroTriangleFloat {

  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes ctaContactPulse {

  0%,
  100% {
    transform: scale(1);
  }

  16% {
    transform: scale(1.022);
  }

  32% {
    transform: scale(1);
  }
}

@keyframes scanIn {
  to {
    transform: translateX(0);
  }
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flowDown {
  to {
    transform: translateY(100%);
  }
}

@keyframes arrowFloat {

  0%,
  100% {
    transform: translateY(-2px) rotate(45deg);
  }

  50% {
    transform: translateY(3px) rotate(45deg);
  }
}

@keyframes tilePulse {

  0%,
  100% {
    opacity: 0.62;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes ringPulseOne {

  0%,
  16% {
    opacity: 0;
    transform: scale(0.62);
  }

  17% {
    opacity: 0.58;
    transform: scale(0.62);
  }

  42%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes ringPulseTwo {

  0%,
  23% {
    opacity: 0;
    transform: scale(0.62);
  }

  24% {
    opacity: 0.48;
    transform: scale(0.62);
  }

  50%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes ringPulseThree {

  0%,
  30% {
    opacity: 0;
    transform: scale(0.62);
  }

  31% {
    opacity: 0.38;
    transform: scale(0.62);
  }

  58%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes pointTravel {
  0% {
    opacity: 0.72;
    transform: translate(34px, 34px) scale(0.86);
  }

  17% {
    opacity: 0.95;
    transform: scale(1);
  }

  24% {
    opacity: 1;
    transform: scale(1.18);
  }

  32%,
  92% {
    opacity: 0.95;
    transform: scale(1);
  }

  100% {
    opacity: 0.72;
    transform: translate(34px, 34px) scale(0.86);
  }
}

@keyframes treeGrowTrunk {

  0%,
  24% {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  26% {
    opacity: 1;
    stroke-dashoffset: 1;
  }

  38%,
  94% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes treeGrowPrimary {

  0%,
  34% {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  36% {
    opacity: 1;
    stroke-dashoffset: 1;
  }

  48%,
  94% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes treeGrowSecondary {

  0%,
  44% {
    opacity: 0;
    stroke-dashoffset: 1;
  }

  46% {
    opacity: 1;
    stroke-dashoffset: 1;
  }

  58%,
  94% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes treeNodeSecondary {

  0%,
  52% {
    opacity: 0;
  }

  60%,
  94% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (min-width: 760px) {
  body {
    background-size: 72px 72px;
  }

  .h5-header {
    padding-right: 32px;
    padding-left: 32px;
  }

  .chapter-pill {
    max-width: 240px;
  }

  .dot {
    width: 8px;
    height: 26px;
  }

  .screen-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding-right: 64px;
    padding-left: 64px;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 48px;
  }

  .cta-layout {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
    row-gap: clamp(54px, 8vh, 88px);
  }

  .cta-contact {
    width: 100%;
    margin-top: 0;
  }

  h1 {
    max-width: 12em;
    font-size: 38px;
  }

  .hero-title {
    gap: 24px;
  }

  h2 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-illustration {
    width: 340px;
  }

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

  .workflow-visual {
    grid-template-columns: 1fr 56px 1fr 56px 1fr;
    align-items: center;
  }

  .flow-line {
    width: 56px;
    height: 1px;
    margin-left: 0;
  }

  .flow-line i {
    transform: translateX(-100%);
  }

  .screen.is-active .flow-line i {
    animation: flowAcross 900ms ease forwards;
  }

  .fit-board {
    grid-template-columns: 1fr 1fr;
  }

  .advantage-board {
    grid-template-columns: minmax(0, 720px);
  }

  .case-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-detail-body {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: stretch;
  }

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

  .case-shot div {
    min-height: 176px;
  }

  .advantage-board .is-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .advantage-board article {
    min-height: 156px;
  }
}

@keyframes flowAcross {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 759px) {
  body {
    overflow: hidden;
  }

  .h5-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    font-size: 16px;
  }

  .chapter-pill {
    max-width: 132px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .screen-inner,
  .screen:not(#screen-1) .screen-inner,
  .screen-hero .screen-inner {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .screen:not(#screen-1) .copy-block,
  .hero-copy,
  .delivery-system {
    padding-right: 0;
    padding-left: 0;
  }

  .case-detail-layout {
    gap: 16px;
  }

  .dashboard-preview {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .advantage-board .is-featured {
    grid-template-columns: minmax(0, 1.08fr) minmax(132px, 0.92fr);
    gap: 10px;
  }

  .advantage-copy-card,
  .member-pair {
    padding: 12px;
  }

  .member-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .member-avatar {
    width: clamp(48px, 11vw, 62px);
  }

  .member-pair figcaption {
    font-size: 11px;
  }
}

@media (max-height: 720px) {
  .screen-inner {
    gap: 16px;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 14px);
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.56;
  }

  .hero-illustration {
    width: 210px;
    margin-top: 14px;
  }

  .visual-console {
    display: none;
  }

  .pain-stack article,
  .advantage-board article,
  .fit-board article,
  .case-panel,
  .diagnosis-card,
  .node-card {
    padding: 12px;
  }

  .pain-stack article {
    min-height: 100px;
    padding-right: 66px;
  }

  .pain-icon {
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .pain-stack p,
  .advantage-board p,
  .case-panel p,
  .fit-board li {
    font-size: 12px;
  }

  .member-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .member-avatar {
    width: clamp(48px, 10vw, 62px);
  }

  .member-pair figcaption {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
