.method-page {
  --method-bg: var(--studio-black);
  --method-surface: #080d12;
  --method-surface-strong: #0b1118;
  --method-border: rgba(255, 255, 255, 0.1);
  --method-text: rgba(255, 255, 255, 0.66);
  --method-muted: rgba(255, 255, 255, 0.42);
  --method-ghost: rgba(255, 255, 255, 0.05);
  --method-glow: rgba(207, 1, 14, 0.16);
  --method-step-progress: 0;
  --method-step-mix: 0;

  position: relative;

  overflow: clip;

  color: var(--studio-white);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.04), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(207, 1, 14, 0.12), transparent 24%),
    linear-gradient(180deg, #04070b 0%, #05080c 28%, #070b10 100%);
}

.method-container {
  width: min(calc(100% - 96px), var(--container-width));
  margin-inline: auto;
}

.method-eyebrow,
.method-label,
.method-step__eyebrow {
  margin: 0;

  color: var(--studio-red);

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.method-hero {
  position: relative;

  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  align-items: center;

  padding:
    calc(var(--site-header-offset) + clamp(40px, 6vw, 84px))
    0
    clamp(72px, 8vw, 120px);

  overflow: hidden;
}

.method-hero::before,
.method-hero::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;
}

.method-hero::before {
  opacity: 0.12;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 1) 80%, transparent 100%);
}

.method-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.94) 0%, rgba(4, 7, 11, 0.76) 42%, rgba(4, 7, 11, 0.32) 68%, rgba(4, 7, 11, 0.64) 100%),
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.06), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(207, 1, 14, 0.18), transparent 18%);
}

.method-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;

  overflow: hidden;
  pointer-events: none;
}

.method-hero__media::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 78% 40%, rgba(207, 1, 14, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.12), rgba(4, 7, 11, 0.5));
}

.method-hero__image {
  position: absolute;
  right: 0;
  top: 50%;

  width: min(62vw, 980px);
  height: min(78vh, 860px);

  object-fit: cover;
  object-position: center center;

  opacity: 0.68;
  filter: saturate(0.92) contrast(1.02) brightness(0.88);

  transform: translateY(-50%);
}

.method-hero__inner {
  position: relative;
  z-index: 1;

  max-width: 920px;
}

.method-hero__title {
  margin: clamp(28px, 3vw, 40px) 0 0;

  font-size: clamp(66px, 10vw, 154px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.method-hero__lead {
  max-width: 660px;
  margin: clamp(30px, 3vw, 42px) 0 0;

  color: var(--method-text);

  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.75;
}

.method-story {
  --story-background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #06090e 0%, #070b10 100%);

  position: relative;

  background: var(--story-background);
}

.method-story::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02), transparent 24%);

  pointer-events: none;
}

.method-story__viewport {
  position: sticky;
  top: 0;
  z-index: 1;

  height: 100vh;
  height: 100svh;

  display: flex;
  align-items: stretch;

  overflow: hidden;
}

.method-story__container {
  width: min(calc(100% - 96px), var(--container-width));
}

.method-story__grid {
  position: relative;

  height: 100%;

  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(32px, 4vw, 84px);
}

.method-story__sidebar,
.method-story__stage {
  min-width: 0;
}

.method-story__sidebar {
  display: flex;
  align-items: center;

  padding:
    calc(var(--site-header-offset) + clamp(24px, 3vw, 40px))
    0
    clamp(40px, 4vw, 56px);
}

.method-story__sidebar-inner {
  max-width: 460px;
}

.method-story__title {
  margin: 28px 0 0;

  max-width: 11ch;

  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.method-story__text {
  max-width: 400px;
  margin: clamp(24px, 2.4vw, 32px) 0 0;

  color: var(--method-text);

  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.9;
}

.method-story__indicator {
  margin-top: clamp(28px, 3.6vw, 44px);

  display: inline-flex;
  align-items: baseline;
  gap: 10px;

  color: var(--studio-white);

  font-weight: 600;
  letter-spacing: -0.04em;
}

.method-story__indicator-current {
  min-width: 2.3ch;

  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 0.92;
}

.method-story__indicator-separator,
.method-story__indicator-total {
  color: var(--method-muted);

  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1;
}

.method-story__stage {
  position: relative;

  padding:
    calc(var(--site-header-offset) + clamp(16px, 2vw, 24px))
    0
    clamp(28px, 3vw, 40px);
}

.method-step {
  --step-accent: rgba(255, 255, 255, 0.06);

  position: absolute;
  inset:
    calc(var(--site-header-offset) + clamp(16px, 2vw, 24px))
    0
    clamp(28px, 3vw, 40px)
    0;

  display: flex;
  align-items: stretch;

  opacity: 0;
  transform: translateY(8%) scale(0.985);

  pointer-events: none;
  transition:
    opacity 420ms ease,
    transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.method-step.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);

  pointer-events: auto;
}

.method-step:nth-child(1) {
  --step-accent: rgba(255, 255, 255, 0.05);
}

.method-step:nth-child(2) {
  --step-accent: rgba(22, 155, 152, 0.12);
}

.method-step:nth-child(3) {
  --step-accent: rgba(132, 100, 217, 0.1);
}

.method-step:nth-child(4) {
  --step-accent: rgba(207, 1, 14, 0.12);
}

.method-step__inner {
  position: relative;

  width: 100%;
  min-height: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(16px, 1.6vw, 22px);

  padding: clamp(24px, 2.2vw, 34px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 80% 20%, var(--step-accent), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.method-step__number {
  margin: 0;

  color: rgba(255, 255, 255, 0.48);

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.method-step__heading {
  position: relative;
  overflow: visible;
  padding-bottom: 0.12em;
}

.method-step__title {
  position: relative;
  z-index: 1;

  max-width: 860px;
  margin: 10px 0 0;
  padding-bottom: 0.08em;

  font-size: clamp(50px, 5.3vw, 98px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.075em;
}

.method-step__title::after {
  content: attr(data-ghost);

  display: block;

  position: absolute;
  left: 0;
  top: 48%;
  z-index: -1;

  width: calc(100% + clamp(100px, 14vw, 220px));
  overflow: hidden;

  color: var(--method-ghost);

  font-size: clamp(66px, 6.8vw, 118px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.09em;
  white-space: nowrap;

  transform: translateY(-50%);
}

.method-step__lead {
  max-width: 720px;
  margin: 0;

  color: rgba(255, 255, 255, 0.84);

  font-size: clamp(21px, 1.75vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.method-step__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.2vw, 20px);
}

.method-card {
  position: relative;

  min-width: 0;
  min-height: 152px;

  padding: clamp(18px, 1.4vw, 24px);

  border: 1px solid var(--method-border);
  background: rgba(255, 255, 255, 0.025);

  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    background-color 300ms ease;
  transition-delay: calc(var(--card-index) * 90ms);
}

.method-card::before {
  content: "";

  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;

  width: 1px;

  background: linear-gradient(180deg, var(--studio-red), rgba(255, 255, 255, 0));
}

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

.method-card:hover,
.method-card:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.method-card__title,
.method-card__text,
.method-step__statement {
  margin: 0;
}

.method-card__title {
  max-width: 18ch;
  padding-left: 18px;

  color: var(--studio-white);

  font-size: clamp(19px, 1.35vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.method-card__text {
  padding-left: 18px;
  padding-top: 12px;

  color: var(--method-text);

  font-size: 14px;
  line-height: 1.7;
}

.method-step__statement {
  max-width: 520px;
  padding-top: clamp(4px, 0.6vw, 10px);

  color: rgba(255, 255, 255, 0.52);

  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.65;
}

.method-contact-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 82% 18%, var(--method-glow), transparent 20%),
    linear-gradient(180deg, #070b10 0%, #080b0f 100%);
}

.method-contact-cta .home-contact-cta__background {
  color: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1180px) {
  .method-story__grid {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
  }

  .method-story__title {
    font-size: clamp(32px, 3.6vw, 52px);
  }

  .method-step__title {
    font-size: clamp(46px, 5vw, 84px);
  }

  .method-step__title::after {
    font-size: clamp(70px, 7vw, 116px);
  }

  .method-step__lead {
    font-size: clamp(19px, 1.5vw, 24px);
  }
}

@media (max-width: 1440px) and (max-height: 940px) {
  .method-story__sidebar {
    padding:
      calc(var(--site-header-offset) + 18px)
      0
      24px;
  }

  .method-story__title {
    margin-top: 20px;

    max-width: 12ch;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 0.98;
  }

  .method-story__text {
    margin-top: 20px;

    font-size: 15px;
    line-height: 1.72;
  }

  .method-story__indicator {
    margin-top: 24px;
  }

  .method-story__indicator-current {
    font-size: clamp(32px, 3vw, 52px);
  }

  .method-story__stage {
    padding:
      calc(var(--site-header-offset) + 10px)
      0
      20px;
  }

  .method-step {
    inset:
      calc(var(--site-header-offset) + 10px)
      0
      20px
      0;
  }

  .method-step__inner {
    gap: 14px;
    padding: 20px 22px;
  }

  .method-step__title {
    font-size: clamp(42px, 4.6vw, 72px);
  }

  .method-step__title::after {
    font-size: clamp(64px, 6.2vw, 104px);
  }

  .method-step__lead {
    font-size: clamp(18px, 1.35vw, 22px);
  }

  .method-card {
    min-height: 136px;
    padding: 16px 18px;
  }

  .method-card__title {
    font-size: 18px;
  }

  .method-card__text,
  .method-step__statement {
    font-size: 13px;
    line-height: 1.62;
  }
}

@media (max-width: 900px) {
  .method-container {
    width: min(calc(100% - 64px), var(--container-width));
  }

  .method-hero__image {
    width: min(78vw, 760px);
    height: 72vh;

    opacity: 0.48;
  }

  .method-story__viewport {
    position: relative;

    height: auto;

    overflow: visible;
  }

  .method-story__grid {
    grid-template-columns: 1fr;
  }

  .method-story__sidebar {
    padding:
      calc(var(--site-header-offset) + 28px)
      0
      32px;
  }

  .method-story__stage {
    padding: 0 0 96px;
  }

  .method-step {
    position: relative;
    inset: auto;

    min-height: min(88svh, 900px);
    margin-bottom: 24px;

    opacity: 1;
    transform: none;

    pointer-events: auto;
  }

  .method-step:last-child {
    margin-bottom: 0;
  }

  .method-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .method-container {
    width: min(calc(100% - 40px), var(--container-width));
  }

  .method-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding:
      calc(var(--site-header-offset) + 52px)
      0
      56px;
  }

  .method-hero::before {
    background-size: 56px 56px;
    opacity: 0.08;
  }

  .method-hero::after {
    background:
      linear-gradient(180deg, rgba(4, 7, 11, 0.34) 0%, rgba(4, 7, 11, 0.56) 38%, rgba(4, 7, 11, 0.82) 74%, rgba(4, 7, 11, 0.94) 100%),
      radial-gradient(circle at 72% 18%, rgba(207, 1, 14, 0.12), transparent 24%),
      radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.05), transparent 22%);
  }

  .method-hero__image {
    left: 0;
    right: 0;
    top: 0;

    width: 100%;
    height: 100%;

    object-position: 64% center;

    opacity: 0.52;
    filter: saturate(0.96) contrast(1.02) brightness(0.9);

    transform: none;
  }

  .method-hero__inner {
    min-height: calc(100svh - var(--site-header-offset) - 108px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
      clamp(40px, 10vw, 72px)
      0;
  }

  .method-hero__title {
    font-size: clamp(52px, 16vw, 78px);
  }

  .method-hero__lead {
    font-size: 17px;
    line-height: 1.75;
  }

  .method-story__sidebar {
    padding:
      72px
      0
      26px;
  }

  .method-story__title {
    font-size: clamp(38px, 12vw, 56px);
  }

  .method-story__text {
    font-size: 15px;
    line-height: 1.8;
  }

  .method-story__indicator {
    margin-top: 28px;
  }

  .method-step {
    min-height: auto;
  }

  .method-step__inner {
    gap: 18px;
    padding: 24px 20px;
  }

  .method-step__title {
    font-size: clamp(42px, 12vw, 68px);
  }

  .method-step__title::after {
    top: 56%;

    font-size: clamp(58px, 16vw, 88px);
    white-space: normal;
  }

  .method-step__lead {
    font-size: 21px;
  }

  .method-step__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .method-card {
    min-height: auto;
    padding: 16px 14px;
  }

  .method-card::before {
    top: 16px;
    bottom: 16px;
  }

  .method-card__title {
    max-width: none;
    padding-left: 14px;

    font-size: 18px;
    line-height: 1.18;
  }

  .method-card__text {
    padding-left: 14px;
    padding-top: 10px;

    font-size: 13px;
    line-height: 1.58;
  }
}

@media (max-width: 420px) {
  .method-step__cards {
    gap: 10px;
  }

  .method-card {
    padding: 14px 12px;
  }

  .method-card__title {
    padding-left: 12px;

    font-size: 16px;
  }

  .method-card__text {
    padding-left: 12px;

    font-size: 12px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .method-story__viewport {
    position: relative;

    height: auto;
  }

  .method-step,
  .method-card {
    transition: none;
  }

  .method-step {
    position: relative;
    inset: auto;

    min-height: auto;
    margin-bottom: 24px;

    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .method-card {
    opacity: 1;
    transform: none;
  }
}
