:root {
  --bg-1: #040405;
  --bg-2: #110a07;
  --module-a: 187, 87, 71;
  --module-b: 255, 176, 75;
  --line: rgba(255, 200, 110, 0.14);
  --line-strong: rgba(255, 209, 131, 0.30);
  --text: #f7e6cb;
  --text-dim: rgba(247, 230, 203, 0.68);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --float-x: 0px;
  --float-y: 0px;
}

.theme-memory {
  --module-a: 236, 178, 76;
  --module-b: 255, 210, 130;
  --text: #fff1d0;
  --text-dim: rgba(255, 241, 208, 0.68);
}

.theme-club {
  --module-a: 83, 201, 166;
  --module-b: 126, 228, 189;
  --text: #eafff6;
  --text-dim: rgba(234, 255, 246, 0.68);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--module-a), 0.18), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(var(--module-b), 0.10), transparent 20%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 48%, #000 100%);
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 196, 115, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 196, 115, 0.026) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 84%);
  opacity: 0.78;
  animation: gridDrift 22s linear infinite;
}

body::after {
  background: radial-gradient(circle at center, transparent 54%, rgba(0, 0, 0, 0.46) 100%);
}

.stage {
  position: relative;
  height: 100svh;
  min-height: 0;
  padding: clamp(10px, 1.8vh, 18px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 24%, rgba(var(--module-a), 0.18), transparent 22%),
    radial-gradient(circle at 60% 42%, rgba(255, 255, 255, 0.03), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(var(--module-b), 0.08), transparent 18%);
  filter: blur(10px);
  animation: ambientPulse 9s ease-in-out infinite alternate;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/splash.png") center center / min(76vh, 820px) no-repeat;
  opacity: 0.08;
  filter: blur(8px) saturate(0.86);
  transform: translate3d(var(--float-x), var(--float-y), 0) scale(1.04);
  transition: transform 420ms cubic-bezier(.16,1,.3,1);
}

.back-link,
.brand-mark {
  position: fixed;
  z-index: 3;
  border: 1px solid rgba(255, 200, 110, 0.16);
  background: rgba(15, 10, 7, 0.42);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.back-link {
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.back-link:hover,
.brand-mark:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: #fff2d6;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.34));
}

body .language-switch--corner {
  top: 34px;
  right: 92px;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100vw - 120px));
  height: calc(100svh - clamp(20px, 3.6vh, 36px));
  perspective: 1800px;
  padding: clamp(56px, 7.2vh, 72px) 0 0;
}

.panel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(34, 21, 15, 0.74), rgba(14, 10, 8, 0.90)),
    radial-gradient(circle at top right, rgba(var(--module-b), 0.12), transparent 28%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(1800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, 0, 0);
  opacity: 0;
  animation: panelIn 820ms cubic-bezier(.18,.84,.22,1) forwards;
  transition: transform 520ms cubic-bezier(.16,1,.3,1);
}

.panel::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--module-a), 0.20), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.module-panel-logo {
  position: absolute;
  z-index: 1;
  top: 47%;
  right: 12%;
  width: clamp(360px, 24vw, 460px);
  height: auto;
  opacity: 0.24;
  filter: saturate(0.98) drop-shadow(0 30px 80px rgba(var(--module-a), 0.30));
  pointer-events: none;
  user-select: none;
  transform: translateZ(18px);
}

.panel-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(10px, 1.5vh, 16px);
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 2.4vh, 28px) clamp(20px, 2.6vw, 34px);
  transform-style: preserve-3d;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: center;
  min-height: 0;
}

.module-copy {
  transform: translateZ(38px);
}

.module-icon {
  width: clamp(42px, 6vh, 58px);
  height: clamp(42px, 6vh, 58px);
  margin-bottom: clamp(10px, 1.5vh, 14px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--module-b), 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 25%, rgba(var(--module-b), 0.18), transparent 66%),
    rgba(12, 8, 6, 0.36);
  box-shadow: 0 0 32px rgba(var(--module-a), 0.16);
}

.module-icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.module-eyebrow {
  color: rgba(245, 219, 196, 0.86);
  font-size: clamp(10px, 1.25vh, 12px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.module-title {
  margin: 0;
  color: #fff3e8;
  font-size: clamp(2.15rem, 4vw, 4.45rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 10ch;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.module-lead {
  margin: clamp(10px, 1.7vh, 16px) 0 0;
  color: var(--text-dim);
  font-size: clamp(12px, 1.65vh, 15px);
  line-height: 1.58;
  max-width: 58ch;
}

.module-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(10px, 1.7vh, 16px);
}

.module-point {
  min-height: clamp(27px, 3.7vh, 32px);
  padding: 0 11px;
  border: 1px solid rgba(245, 219, 196, 0.16);
  border-radius: 999px;
  background: rgba(12, 8, 6, 0.34);
  color: rgba(255, 239, 221, 0.88);
  display: inline-flex;
  align-items: center;
  font-size: clamp(10px, 1.35vh, 12px);
  line-height: 1.2;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(12px, 2vh, 18px);
}

.module-primary,
.module-secondary {
  min-height: clamp(38px, 5vh, 44px);
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.module-primary {
  min-width: 150px;
  border: 1px solid rgba(255, 223, 169, 0.42);
  background: linear-gradient(180deg, rgba(236, 203, 158, 0.74), rgba(var(--module-a), 0.72));
  color: #fff9ed;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.module-secondary {
  min-width: 132px;
  border: 1px solid rgba(255, 200, 110, 0.16);
  background: rgba(12, 8, 6, 0.32);
  color: var(--text);
}

.module-primary:hover,
.module-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 223, 169, 0.48);
  color: #fff8ea;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.module-screen-card {
  position: relative;
  margin: 0;
  align-self: center;
  padding: clamp(6px, 1vh, 9px);
  border: 1px solid rgba(255, 205, 126, 0.14);
  border-radius: 26px;
  background: rgba(7, 5, 4, 0.48);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.42),
    0 0 44px rgba(var(--module-a), 0.12);
  overflow: hidden;
  transform: translateZ(44px);
}

.module-screen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, transparent 38%, rgba(255, 230, 187, 0.08) 48%, transparent 58%, transparent 100%);
  translate: -120% 0;
  animation: screenSheen 6s ease-in-out infinite;
  pointer-events: none;
}

.module-shot {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(35vh, 350px);
  object-fit: contain;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  margin-inline: auto;
}

.module-caption {
  margin: 7px 4px 0;
  color: rgba(247, 230, 203, 0.58);
  font-size: clamp(10px, 1.35vh, 12px);
  line-height: 1.45;
}

.module-zoom-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 223, 169, 0.34);
  border-radius: 999px;
  background: rgba(12, 8, 6, 0.62);
  color: #fff3e8;
  cursor: zoom-in;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.module-zoom-button::before {
  left: 12px;
  top: 10px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.module-zoom-button::after {
  left: 25px;
  top: 25px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  rotate: 45deg;
  transform-origin: left center;
}

.module-workflow {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(9px, 1.4vh, 14px);
  min-height: 0;
  transform: translateZ(30px);
}

.module-workflow-head {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: end;
}

.module-workflow-kicker {
  margin: 0 0 7px;
  color: rgba(245, 219, 196, 0.86);
  font-size: clamp(9px, 1.2vh, 11px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.module-workflow-title {
  margin: 0;
  color: #fff3e8;
  font-size: clamp(1.7rem, 3.05vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.module-workflow-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(12px, 1.55vh, 14px);
  line-height: 1.5;
  max-width: 72ch;
}

.module-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 12px);
  min-height: 0;
}

.module-flow-card {
  position: relative;
  min-height: 0;
  padding: clamp(12px, 1.65vh, 16px);
  border: 1px solid rgba(255, 205, 126, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 18, 13, 0.78), rgba(13, 9, 7, 0.70));
  box-shadow: inset 0 1px 0 rgba(255, 232, 190, 0.04), 0 16px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.theme-club .module-flow-card {
  background: linear-gradient(180deg, rgba(15, 31, 27, 0.78), rgba(7, 15, 13, 0.72));
}

.module-flow-card::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--module-b), 0.14), transparent 70%);
  pointer-events: none;
}

.module-flow-number {
  color: rgba(245, 219, 196, 0.62);
  font-size: clamp(9px, 1.2vh, 11px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.module-flow-visual {
  position: relative;
  height: clamp(50px, 8.2vh, 74px);
  margin: clamp(9px, 1.4vh, 14px) 0 clamp(9px, 1.4vh, 14px);
  border: 1px solid rgba(255, 205, 126, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 22%, rgba(var(--module-a), 0.18), transparent 34%),
    rgba(8, 6, 5, 0.30);
  overflow: hidden;
}

.module-flow-title {
  margin: 0 0 10px;
  color: #fff3e8;
  font-size: clamp(15px, 2.05vh, 19px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.module-flow-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(10.5px, 1.45vh, 12.5px);
  line-height: 1.48;
}

.visual-route::before,
.visual-route::after {
  content: "";
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--module-b), 0.76);
  box-shadow: 0 0 18px rgba(var(--module-b), 0.24);
}

.visual-route::before {
  left: 18%;
  top: 62%;
  width: 48%;
  rotate: -34deg;
}

.visual-route::after {
  left: 44%;
  top: 35%;
  width: 36%;
  rotate: 28deg;
}

.visual-grid {
  background:
    linear-gradient(rgba(255, 230, 187, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 230, 187, 0.16) 1px, transparent 1px),
    rgba(8, 6, 5, 0.30);
  background-size: 18px 18px;
}

.visual-grid span {
  position: absolute;
  color: rgba(255, 243, 232, 0.86);
  font-size: 15px;
  font-weight: 800;
}

.visual-grid span:nth-child(1) { left: 20%; top: 24%; }
.visual-grid span:nth-child(2) { left: 58%; top: 56%; color: rgba(var(--module-b), 0.92); }

.visual-vanish span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(245, 219, 196, 0.70);
  box-shadow: 0 0 20px rgba(245, 219, 196, 0.24);
}

.visual-vanish span:nth-child(1) { left: 18%; top: 35%; }
.visual-vanish span:nth-child(2) { left: 42%; top: 35%; opacity: 0.46; }
.visual-vanish span:nth-child(3) { left: 66%; top: 35%; opacity: 0.18; }

.visual-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.visual-bars span {
  width: 16px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(var(--module-b), 0.78), rgba(var(--module-a), 0.58));
  box-shadow: 0 0 16px rgba(var(--module-a), 0.18);
}

.visual-bars span:nth-child(1) { height: 22px; }
.visual-bars span:nth-child(2) { height: 38px; }
.visual-bars span:nth-child(3) { height: 52px; }
.visual-bars span:nth-child(4) { height: 34px; }

.visual-rank {
  display: grid;
  place-items: center;
}

.visual-rank span {
  color: #fff3e8;
  font-size: clamp(22px, 3.5vh, 30px);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.visual-hall span,
.visual-challenge span,
.visual-account span {
  position: absolute;
  border-radius: 999px;
  background: rgba(var(--module-b), 0.72);
  box-shadow: 0 0 18px rgba(var(--module-b), 0.22);
}

.visual-hall span:nth-child(1) { left: 22%; top: 42%; width: 18px; height: 18px; }
.visual-hall span:nth-child(2) { left: 46%; top: 25%; width: 18px; height: 18px; }
.visual-hall span:nth-child(3) { left: 70%; top: 42%; width: 18px; height: 18px; }
.visual-hall::before,
.visual-hall::after,
.visual-account::before,
.visual-account::after {
  content: "";
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--module-b), 0.34);
  transform-origin: left center;
}
.visual-hall::before { left: 30%; top: 50%; width: 28%; rotate: -24deg; }
.visual-hall::after { left: 53%; top: 35%; width: 26%; rotate: 24deg; }

.visual-challenge span:nth-child(1) { left: 18%; top: 46%; width: 24%; height: 4px; }
.visual-challenge span:nth-child(2) { left: 58%; top: 46%; width: 24%; height: 4px; }
.visual-challenge::before {
  content: "VS";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  color: #fff3e8;
  font-size: 22px;
  font-weight: 900;
}

.visual-games::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 23%;
  width: 64%;
  height: 54%;
  border-radius: 12px;
  border: 2px solid rgba(var(--module-b), 0.42);
  background:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 20px 20px;
}

.visual-account span:nth-child(1) { left: 20%; top: 42%; width: 18px; height: 18px; }
.visual-account span:nth-child(2) { left: 68%; top: 42%; width: 18px; height: 18px; }
.visual-account::before { left: 29%; top: 51%; width: 42%; }
.visual-account::after { display: none; }

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

.module-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.module-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.module-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--module-a), 0.18), transparent 26%),
    rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.module-lightbox-frame {
  position: relative;
  z-index: 1;
  width: min(96vw, 1720px);
  max-height: calc(100vh - 56px);
  padding: 10px;
  border: 1px solid rgba(255, 223, 169, 0.24);
  border-radius: 24px;
  background: rgba(8, 6, 5, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  overflow: auto;
}

.module-lightbox-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 16px;
  cursor: zoom-in;
  transform-origin: center top;
  transition: width 180ms ease, max-height 180ms ease;
}

.module-lightbox-shot.is-zoomed {
  width: min(3832px, 180vw);
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.module-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 223, 169, 0.28);
  border-radius: 999px;
  background: rgba(12, 8, 6, 0.74);
  color: #fff3e8;
  cursor: pointer;
}

.module-lightbox-close::before,
.module-lightbox-close::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.module-lightbox-close::before { rotate: 45deg; }
.module-lightbox-close::after { rotate: -45deg; }
body.module-lightbox-open { overflow: hidden; }

@keyframes panelIn {
  from {
    opacity: 0;
    transform: perspective(1800px) rotateX(8deg) rotateY(14deg) translate3d(80px, 0, 0) scale(0.96);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: perspective(1800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes gridDrift {
  to { background-position: 68px 68px; }
}

@keyframes ambientPulse {
  from { opacity: 0.72; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

@keyframes screenSheen {
  0%, 30% { translate: -120% 0; }
  48%, 100% { translate: 120% 0; }
}

@media (max-width: 980px) {
  .stage { padding: 10px; }
  .shell {
    width: min(820px, calc(100vw - 20px));
    height: calc(100svh - 20px);
    padding: 58px 0 0;
  }
  .panel { transform: none !important; }
  .panel-inner {
    padding: 16px;
    gap: 10px;
  }
  .module-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(240px, 1.14fr);
    gap: 14px;
  }
  .module-workflow-head {
    grid-template-columns: minmax(0, 0.58fr) minmax(220px, 1fr);
    gap: 14px;
  }
  .module-flow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .module-title {
    max-width: 10ch;
    font-size: clamp(2.1rem, 6vw, 3.5rem);
  }
  .module-lead { font-size: 12px; }
  .module-shot { max-height: min(28vh, 240px); }
  .module-flow-card {
    padding: 10px;
    border-radius: 16px;
  }
  .module-flow-visual {
    height: 48px;
    margin: 8px 0 9px;
  }
  .module-flow-title { font-size: 13px; }
  .module-flow-copy {
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (max-width: 560px) {
  .back-link {
    top: 14px;
    left: 14px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 10px;
  }
  .brand-mark {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .brand-mark img {
    width: 26px;
    height: 26px;
  }
  body .language-switch--corner {
    top: 19px;
    right: 66px;
  }
  .shell {
    width: calc(100vw - 14px);
    height: calc(100svh - 14px);
    padding: 50px 0 0;
  }
  .panel { border-radius: 22px; }
  .module-panel-logo {
    top: 37%;
    right: 9%;
    width: min(54vw, 230px);
    opacity: 0.12;
  }
  .panel-inner {
    grid-template-rows: minmax(0, 0.74fr) minmax(0, 1.26fr);
    padding: 10px;
    gap: 8px;
  }
  .module-hero {
    grid-template-columns: minmax(0, 0.96fr) minmax(138px, 1.04fr);
    gap: 8px;
    align-items: start;
  }
  .module-icon { display: none; }
  .module-eyebrow { margin-bottom: 5px; }
  .module-title {
    font-size: clamp(1.7rem, 10vw, 2.35rem);
    line-height: 0.95;
  }
  .module-lead {
    margin-top: 7px;
    max-height: 5.4em;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.35;
  }
  .module-points,
  .module-actions,
  .module-caption {
    display: none;
  }
  .module-screen-card {
    margin-inline: 0;
    border-radius: 16px;
    padding: 5px;
  }
  .module-shot {
    max-height: 118px;
    border-radius: 11px;
  }
  .module-zoom-button {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }
  .module-zoom-button::before {
    left: 9px;
    top: 8px;
    width: 10px;
    height: 10px;
  }
  .module-zoom-button::after {
    left: 20px;
    top: 20px;
    width: 8px;
  }
  .module-workflow { gap: 7px; }
  .module-workflow-head {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .module-workflow-kicker {
    margin-bottom: 4px;
    font-size: 8px;
  }
  .module-workflow-title {
    font-size: clamp(1.25rem, 7vw, 1.8rem);
    max-width: 16ch;
  }
  .module-workflow-copy { display: none; }
  .module-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: center;
    gap: 7px;
  }
  .module-flow-card {
    min-height: 0;
    padding: 7px;
    border-radius: 12px;
  }
  .module-flow-card:last-child { grid-column: 1 / -1; }
  .module-flow-number { font-size: 7px; }
  .module-flow-visual {
    height: 28px;
    margin: 5px 0 5px;
    border-radius: 10px;
  }
  .module-flow-title {
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  .module-flow-copy { display: none; }
}

@media (max-height: 760px) and (min-width: 760px) {
  .shell { padding-top: 54px; }
  .panel-inner {
    grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .module-icon { display: none; }
  .module-lead {
    margin-top: 9px;
    font-size: 11.5px;
    line-height: 1.42;
  }
  .module-points { margin-top: 9px; }
  .module-actions { margin-top: 10px; }
  .module-workflow-title {
    font-size: clamp(1.55rem, 2.65vw, 2.45rem);
  }
  .module-flow-visual {
    height: 42px;
    margin: 7px 0;
  }
  .module-flow-title {
    margin-bottom: 6px;
    font-size: 13.5px;
    line-height: 1.08;
  }
  .module-flow-copy {
    font-size: 9.8px;
    line-height: 1.32;
    display: block;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .panel {
    opacity: 1;
    transform: none !important;
  }
}
