/* APEX case — full-bleed cover only */

:root {
  --apex-bg: #0e0e0f;
  --apex-fg: #f5f5f2;
  --apex-orange: #ff5b2f;
  --apex-muted: rgb(245 245 242 / 62%);
}

html,
body.case-apex-page {
  margin: 0;
  background: var(--apex-bg);
  color: var(--apex-fg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

body.case-apex-page {
  overflow-x: hidden;
  overflow-y: auto;
}

body.case-apex-page .noise {
  display: none;
}

body.case-apex-page .site-header {
  z-index: 200;
  color: var(--apex-fg);
  mix-blend-mode: normal;
}

body.case-apex-page .site-header .wordmark,
body.case-apex-page .desktop-nav,
body.case-apex-page .language-toggle {
  color: var(--apex-fg);
  mix-blend-mode: difference;
}

body.case-apex-page .header-actions {
  position: relative;
  z-index: 2;
}

body.case-apex-page .header-contact {
  position: relative;
  z-index: 3;
  color: var(--apex-bg);
  background: var(--apex-fg);
  mix-blend-mode: normal;
  isolation: isolate;
}

body.case-apex-page .menu-toggle {
  mix-blend-mode: difference;
}

body.case-apex-page .site-footer {
  color: var(--apex-fg);
  background: transparent;
  border-top: 0;
}

body.case-apex-page .footer-meta {
  border-top-color: rgb(245 245 242 / 14%);
  color: var(--apex-muted);
}

body.case-apex-page .footer-meta a {
  border-bottom-color: rgb(245 245 242 / 28%);
}

.apex-cover {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 81% 57%, rgb(255 73 29 / 17%), transparent 34%),
    var(--apex-bg);
}

.apex-particles {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease-out;
}

.apex-cover.is-ready .apex-particles {
  opacity: 1;
}

.apex-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(88px, 10vh, 120px) clamp(28px, 5.7vw, 110px) 0;
  font-size: clamp(11px, 1.05vw, 20px);
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.apex-cover.is-ready .apex-meta {
  animation: apex-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.apex-meta-year {
  justify-self: end;
  position: relative;
  z-index: 0;
}

.apex-meta > :last-child {
  justify-self: end;
}

.apex-shv {
  justify-self: center;
  font-size: 1.35em;
  font-weight: 750;
  letter-spacing: -0.06em;
  color: inherit;
  text-decoration: none;
}

.apex-shv:hover {
  color: var(--apex-orange);
}

.apex-shv sup {
  position: relative;
  top: -0.4em;
  margin-left: 0.13em;
  font-size: 0.35em;
  letter-spacing: 0;
}

.apex-intro {
  position: absolute;
  z-index: 2;
  top: 28.5%;
  left: clamp(28px, 5.7vw, 110px);
  width: min(43vw, 820px);
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.apex-cover.is-ready .apex-intro {
  animation: apex-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.apex-eyebrow {
  margin: 0 0 clamp(28px, 3vw, 56px);
  color: var(--apex-orange);
  font-size: clamp(10px, 0.82vw, 16px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.apex-wordmark {
  display: block;
  width: min(36vw, 700px);
  height: auto;
}

.apex-description {
  margin: clamp(52px, 6.5vh, 92px) 0 0;
  font-size: clamp(22px, 2.15vw, 42px);
  font-weight: 420;
  line-height: 1.34;
  letter-spacing: -0.035em;
}

.apex-scope {
  margin: clamp(58px, 8vh, 110px) 0 0;
  color: var(--apex-muted);
  font-size: clamp(9px, 0.7vw, 13px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.apex-mockups {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.apex-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transform-origin: 72% 100%;
  opacity: 0;
  transform: translate3d(0, 72vh, 0);
  /* drop-shadow + will-change + scale на 4K = низкий рес слоя в Chrome во время анимации */
}

/* прогрев GPU: один кадр в финальном размере без фильтра */
.apex-cover.is-warming .apex-mockup {
  opacity: 0.001;
  transform: translate3d(0, 0, 0);
}

.apex-cover.is-ready .apex-mockup {
  animation: apex-phone-rise var(--duration) cubic-bezier(0.22, 1, 0.36, 1) var(--delay) both;
}

.apex-cover.is-settled .apex-mockup {
  filter: drop-shadow(22px 36px 38px rgb(0 0 0 / 42%));
}

.apex-mockup-right {
  --duration: 2.15s;
  --delay: 0.05s;
}

.apex-mockup-left {
  --duration: 2s;
  --delay: 0.18s;
}

.apex-mockup-center {
  --duration: 1.85s;
  --delay: 0.38s;
}

.apex-back {
  position: absolute;
  z-index: 6;
  left: clamp(28px, 5.7vw, 110px);
  bottom: clamp(24px, 4vh, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--apex-muted);
  font-size: clamp(12px, 0.9vw, 15px);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
}

.apex-cover.is-ready .apex-back {
  animation: apex-fade-up 0.7s ease 0.95s forwards;
}

.apex-back:hover {
  color: var(--apex-fg);
}

.apex-scroll-cue {
  position: absolute;
  z-index: 6;
  right: clamp(28px, 5.7vw, 110px);
  bottom: clamp(24px, 4vh, 48px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--apex-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
}

.apex-scroll-cue i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(245 245 242 / 25%);
  border-radius: 50%;
  font-size: 18px;
  font-style: normal;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.apex-cover.is-ready .apex-scroll-cue {
  animation: apex-fade-up 0.7s ease 1.1s forwards;
}

.apex-scroll-cue:hover {
  color: var(--apex-fg);
}

.apex-scroll-cue:hover i {
  color: var(--apex-orange);
  border-color: var(--apex-orange);
  transform: translateY(4px);
}

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

/* Story */

.apex-story {
  position: relative;
  z-index: 5;
  overflow: visible;
  background: #121213;
  color: var(--apex-fg);
}

.apex-story-kicker {
  margin: 0;
  color: var(--apex-orange);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apex-section-number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  opacity: 0.55;
}

.apex-contents {
  position: relative;
  z-index: 4;
  padding: clamp(72px, 8vw, 120px) clamp(20px, 5vw, 96px) clamp(40px, 5vw, 80px);
  overflow: visible;
  background:
    radial-gradient(circle at 7% 12%, rgb(255 91 47 / 12%), transparent 30%),
    #121213;
}

.apex-contents-board {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(36px, 4.5vw, 72px) clamp(36px, 5vw, 96px) 0;
  overflow: visible;
  color: #131314;
  background: #f3f2ee;
  border-radius: clamp(28px, 4vw, 64px);
}

.apex-contents-board h2 {
  max-width: 720px;
  margin: 0 0 clamp(36px, 4vw, 56px);
  font-size: clamp(54px, 8vw, 132px);
  font-weight: 520;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.apex-contents-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  padding-bottom: 0;
}

.apex-content-card {
  position: relative;
  display: flex;
  min-height: 128px;
  padding: 20px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #141415;
  background: #dadada;
  border-radius: 24px;
  text-decoration: none;
  transform: translateY(90px) rotate(2deg);
  opacity: 0;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.apex-content-card small,
.apex-content-card strong,
.apex-content-card > span {
  position: relative;
  z-index: 2;
}

.apex-content-card small {
  max-width: 75%;
  font-size: 13px;
  line-height: 1.25;
}

.apex-content-card strong {
  font-size: 34px;
  font-weight: 450;
  line-height: 1;
}

.apex-content-card > span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #f5f5f2;
  border-radius: 50%;
  font-size: 15px;
  transition: background 0.35s ease, color 0.35s ease;
}

.apex-card-line {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 225px;
  height: 175px;
  max-height: 175px;
  overflow: hidden;
  pointer-events: none;
}

.apex-card-line svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: apex-line-erase 1.6s cubic-bezier(0.4, 0, 0.2, 1) 1 backwards;
}

.apex-card-line--01 {
  width: 225px;
}

.apex-card-line--01 svg {
  stroke-dasharray: 1289;
  stroke-dashoffset: 1289;
}

.apex-card-line--02 {
  width: 280px;
}

.apex-card-line--02 svg {
  stroke-dasharray: 1147;
  stroke-dashoffset: 1147;
}

.apex-card-line--03 {
  top: 0;
  right: -18px;
  bottom: auto;
  width: 280px;
}

.apex-card-line--03 svg {
  stroke-dasharray: 1586;
  stroke-dashoffset: 1586;
}

.apex-card-line--04 {
  width: 190px;
}

.apex-card-line--04 svg {
  stroke-dasharray: 765;
  stroke-dashoffset: 765;
}

.apex-content-card:hover .apex-card-line svg {
  animation: apex-line-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}

.apex-content-card--one {
  grid-column: 2 / span 3;
}

.apex-content-card--two {
  grid-column: 5 / span 3;
  margin-top: 56px;
}

.apex-content-card--three {
  z-index: 3;
  grid-column: 8 / span 4;
  margin-bottom: -72px;
}

.apex-content-card--four {
  z-index: 3;
  grid-column: 4 / span 3;
  margin-top: 8px;
  margin-bottom: -96px;
  background: var(--apex-orange);
}

.apex-contents-board.is-visible .apex-content-card {
  animation: apex-card-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.apex-contents-board.is-visible .apex-content-card:nth-child(2) {
  animation-delay: 0.1s;
}

.apex-contents-board.is-visible .apex-content-card:nth-child(3) {
  animation-delay: 0.2s;
}

.apex-contents-board.is-visible .apex-content-card:nth-child(4) {
  animation-delay: 0.3s;
}

.apex-contents-board.is-visible .apex-content-card.is-settled {
  animation: none;
  opacity: 1;
  transform: none;
}

.apex-contents-board.is-visible .apex-content-card.is-settled:hover {
  color: #fff;
  background: var(--apex-orange);
  transform: translateY(-6px) rotate(-0.8deg);
}

.apex-contents-board.is-visible .apex-content-card.is-settled:hover > span {
  color: #141415;
  background: #fff;
}

.apex-contents-board.is-visible .apex-content-card--four.is-settled:hover {
  color: #141415;
  background: #f5f5f2;
}

.apex-contents-board.is-visible .apex-content-card--four.is-settled:hover > span {
  background: #fff;
}

.apex-story-section,
.apex-flow {
  position: relative;
  padding: clamp(110px, 13vw, 230px) clamp(20px, 6vw, 120px);
}

.apex-section-copy {
  display: grid;
  max-width: 1460px;
  margin: 0 auto clamp(70px, 9vw, 150px);
  grid-template-columns: minmax(220px, 0.7fr) minmax(400px, 1.5fr);
  column-gap: 5vw;
}

.apex-section-copy .apex-section-number,
.apex-section-copy .apex-story-kicker {
  grid-column: 1;
}

.apex-section-copy h2 {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  font-size: clamp(52px, 7vw, 118px);
  font-weight: 480;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.apex-section-copy > p:last-child {
  max-width: 550px;
  margin: 48px 0 0;
  grid-column: 2;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.035em;
  opacity: 0.72;
}

.apex-media-frame {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  background: #202022;
  border-radius: clamp(24px, 3vw, 48px);
  clip-path: inset(14% 8% 14% 8% round 48px);
  transform: translateY(80px) scale(0.96);
  opacity: 0.35;
  transition:
    clip-path 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease;
}

.apex-media-frame.is-visible {
  clip-path: inset(0 round 0);
  transform: translateY(0) scale(1);
  opacity: 1;
}

.apex-media-frame picture,
.apex-media-frame img {
  display: block;
  width: 100%;
}

.apex-media-frame img {
  height: auto;
  transform: scale(1.08);
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.apex-media-frame.is-visible img {
  transform: scale(1);
}

.apex-chapters {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 0 clamp(20px, 6vw, 120px);
  color: #f4f2ee;
  background: #121213;
  transition: background 0.45s ease, color 0.45s ease;
}

.apex-chapters.is-task {
  color: #171718;
  background: var(--apex-orange);
}

.apex-chapters-stage {
  display: grid;
  min-height: 100svh;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  box-sizing: border-box;
  padding: clamp(72px, 8vw, 110px) 0;
}

.apex-chapters-copy {
  position: relative;
  min-height: min(62svh, 620px);
}

.apex-chapter {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  max-width: 560px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  pointer-events: none;
}

.apex-chapter.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.apex-chapter .apex-section-number {
  margin-bottom: 10px;
}

.apex-chapter .apex-story-kicker {
  margin: 0 0 28px;
}

.apex-chapter h2 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 480;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.apex-chapter > p:last-of-type {
  max-width: 460px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  opacity: 0.72;
}

.apex-chapters.is-task .apex-chapter > p:last-of-type {
  opacity: 0.82;
}

.apex-chapters-visual {
  position: relative;
  min-height: min(68svh, 720px);
}

.apex-chapter-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 36px, 0) scale(0.985);
  transition:
    opacity 0.45s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  pointer-events: none;
}

.apex-chapter-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.apex-chapter-panel[data-apex-chapter-panel="1"] {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}

.apex-chapter-media {
  margin: 0;
  overflow: hidden;
  background: #1c1c1e;
  border-radius: clamp(22px, 2.4vw, 36px);
  box-shadow: 0 40px 120px rgb(0 0 0 / 35%);
}

.apex-chapter-media picture,
.apex-chapter-media img {
  display: block;
  width: 100%;
  height: auto;
}

.apex-chapter-panel[data-apex-chapter-panel="1"] .apex-chapter-media {
  max-height: min(42svh, 460px);
}

.apex-chapter-panel[data-apex-chapter-panel="1"] .apex-chapter-media img {
  height: 100%;
  max-height: min(42svh, 460px);
  object-fit: cover;
  object-position: top center;
}

.apex-task-blocks {
  display: grid;
  gap: 10px;
}

.apex-task-blocks article {
  padding: 16px 18px;
  color: #f6f4ef;
  background: #2b1915;
  border-radius: 16px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.apex-flow {
  background: #0e0e0f;
}

.apex-flow-title {
  max-width: 1460px;
  margin: 0 auto clamp(48px, 6vw, 90px);
}

.apex-flow-title h2 {
  max-width: 1080px;
  margin: 26px 0 0;
  font-size: clamp(54px, 8vw, 130px);
  font-weight: 480;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.apex-flow-stage {
  display: grid;
  min-height: 100svh;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: minmax(300px, 0.6fr) minmax(600px, 1.4fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  box-sizing: border-box;
  padding: clamp(40px, 5vw, 80px) 0;
}

.apex-flow-steps {
  display: grid;
  gap: 10px;
}

.apex-flow-step {
  display: grid;
  padding: 22px 0;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  opacity: 0.3;
  transform: translateX(-20px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.apex-flow-step:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.apex-flow-step.is-active {
  opacity: 1;
  transform: translateX(0);
}

.apex-flow-step > span {
  color: var(--apex-orange);
  font-size: 12px;
}

.apex-flow-step h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.apex-flow-step p {
  max-width: 430px;
  margin: 0;
  color: var(--apex-muted);
  font-size: 15px;
  line-height: 1.5;
}

.apex-flow-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b1b1c;
  border-radius: clamp(22px, 3vw, 44px);
  box-shadow: 0 70px 160px rgb(0 0 0 / 55%);
}

.apex-flow-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.08) translateY(30px);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.apex-flow-slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.apex-flow-slide--layered.is-active {
  transform: none;
}

.apex-flow-slide picture,
.apex-flow-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.apex-flow-slide img {
  object-fit: cover;
}

.apex-flow-layers {
  position: absolute;
  inset: 0;
}

.apex-flow-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.apex-flow-layer--bg {
  z-index: 0;
}

.apex-flow-layer--text {
  z-index: 1;
  opacity: 0;
  transform: translate3d(-4.5%, 0, 0);
}

.apex-flow-layer--mockups {
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 42%, 0);
  transform-origin: 78% 100%;
}

.apex-flow-slide--layered.is-active.is-playing .apex-flow-layer--text {
  animation: apex-flow-text-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.apex-flow-slide--layered.is-active.is-playing .apex-flow-layer--mockups {
  animation: apex-flow-mockups-in 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.apex-flow-slide--layered.is-active.is-settled .apex-flow-layer--text,
.apex-flow-slide--layered.is-active.is-settled .apex-flow-layer--mockups {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes apex-flow-text-in {
  from {
    opacity: 0;
    transform: translate3d(-4.5%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes apex-flow-mockups-in {
  from {
    opacity: 0;
    transform: translate3d(0, 42%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.apex-result {
  color: #141415;
  background: #f1f0ec;
}

.apex-result .apex-story-kicker {
  color: var(--apex-orange);
}

.apex-result-copy {
  max-width: 1460px;
  margin: 0 auto clamp(70px, 8vw, 130px);
}

.apex-result-copy h2 {
  max-width: 1240px;
  margin: 24px 0 48px;
  font-size: clamp(52px, 7.4vw, 124px);
  font-weight: 480;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.apex-result-copy > p:last-child {
  max-width: 760px;
  margin: 0 0 0 auto;
  font-size: clamp(21px, 2.3vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.apex-result-metrics {
  display: grid;
  max-width: 1460px;
  margin: 0 auto clamp(70px, 8vw, 130px);
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.apex-result-metrics article {
  display: flex;
  min-height: 220px;
  padding: clamp(24px, 3vw, 44px);
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: #171718;
  border-radius: 28px;
}

.apex-result-metrics article:nth-child(2) {
  color: #171718;
  background: var(--apex-orange);
}

.apex-result-metrics strong {
  font-size: clamp(54px, 7vw, 100px);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.07em;
}

.apex-result-metrics span {
  font-size: 14px;
}

.apex-result-mosaic {
  display: grid;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: start;
  opacity: 0.35;
  transform: translateY(56px);
  transition:
    opacity 0.8s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.apex-result-mosaic.is-main-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.apex-result-mosaic.is-visible {
  opacity: 1;
  transform: none;
}

.apex-result-mosaic.is-flipping {
  pointer-events: none;
}

.apex-result-shot {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1c1e;
  border-radius: clamp(18px, 2vw, 28px);
  box-shadow: 0 40px 100px rgb(39 38 35 / 16%);
  cursor: pointer;
  transform-origin: 0 0;
  will-change: transform;
  transition:
    box-shadow 0.45s ease,
    filter 0.45s ease;
}

.apex-result-shot:not(.is-main):hover {
  box-shadow: 0 28px 70px rgb(39 38 35 / 28%);
  filter: brightness(1.04);
}

.apex-result-mosaic.is-flipping .apex-result-shot {
  transition: none;
}

.apex-result-shot:focus-visible {
  outline: 2px solid var(--apex-orange);
  outline-offset: 3px;
}

.apex-result-mosaic.is-main-left .apex-result-shot.is-main {
  z-index: 2;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  cursor: default;
}

.apex-result-mosaic.is-main-left .apex-result-shot.is-side-a {
  grid-column: 2;
  grid-row: 1;
}

.apex-result-mosaic.is-main-left .apex-result-shot.is-side-b {
  grid-column: 2;
  grid-row: 2;
}

.apex-result-mosaic.is-main-right .apex-result-shot.is-main {
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  cursor: default;
}

.apex-result-mosaic.is-main-right .apex-result-shot.is-side-a {
  grid-column: 1;
  grid-row: 1;
}

.apex-result-mosaic.is-main-right .apex-result-shot.is-side-b {
  grid-column: 1;
  grid-row: 2;
}

.apex-result-shot picture,
.apex-result-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.apex-story-cta {
  min-height: 86svh;
  padding: clamp(120px, 14vw, 240px) clamp(20px, 6vw, 120px);
  background:
    radial-gradient(circle at 80% 60%, rgb(255 91 47 / 30%), transparent 34%),
    #0e0e0f;
}

.apex-story-cta h2 {
  max-width: 1050px;
  margin: 30px 0 70px;
  font-size: clamp(58px, 9vw, 150px);
  font-weight: 480;
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.apex-story-button {
  display: flex;
  width: min(100%, 620px);
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
  color: var(--apex-fg);
  background: transparent;
  border: 0;
  border-top: 1px solid rgb(245 245 242 / 40%);
  border-bottom: 1px solid rgb(245 245 242 / 40%);
  cursor: pointer;
  font: inherit;
  font-size: clamp(20px, 2vw, 30px);
  text-align: left;
}

.apex-story-button i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #141415;
  background: var(--apex-orange);
  border-radius: 50%;
  font-style: normal;
  transition: transform 0.3s ease;
}

.apex-story-button:hover i {
  transform: rotate(45deg);
}

[data-apex-reveal] {
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-apex-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes apex-fade-up {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes apex-card-rise {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes apex-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes apex-line-erase {
  from {
    stroke-dashoffset: 0;
  }
}

@keyframes apex-phone-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 72vh, 0);
  }

  45% {
    opacity: 1;
  }

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

@media (max-aspect-ratio: 4 / 3) {
  .apex-cover {
    min-height: 860px;
  }

  .apex-meta {
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
  }

  .apex-meta > :first-child {
    max-width: 160px;
    line-height: 1.25;
  }

  .apex-intro {
    top: 18%;
    width: calc(100% - 56px);
  }

  .apex-wordmark {
    width: min(76vw, 620px);
  }

  .apex-description {
    font-size: clamp(25px, 6vw, 42px);
  }

  .apex-mockups {
    top: 39%;
    left: 3%;
    width: 152%;
    height: 85%;
  }
}

@media (max-width: 900px) {
  .apex-scroll-cue span {
    display: none;
  }

  .apex-contents {
    padding: 72px 14px 48px;
  }

  .apex-contents-board {
    padding: 32px 18px 0;
    border-radius: 28px;
  }

  .apex-contents-board h2 {
    margin-bottom: 40px;
    font-size: clamp(50px, 17vw, 76px);
  }

  .apex-contents-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .apex-content-card {
    min-height: 118px;
    padding: 16px;
    border-radius: 20px;
  }

  .apex-content-card--one,
  .apex-content-card--two,
  .apex-content-card--three,
  .apex-content-card--four {
    grid-column: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .apex-content-card--three,
  .apex-content-card--four {
    margin-bottom: -56px;
  }

  .apex-story-section,
  .apex-flow,
  .apex-chapters {
    padding: 100px 20px;
  }

  .apex-section-copy {
    display: block;
    margin-bottom: 64px;
  }

  .apex-section-copy h2 {
    margin-top: 24px;
    font-size: clamp(46px, 13vw, 74px);
  }

  .apex-section-copy > p:last-child {
    margin-top: 34px;
  }

  .apex-chapters-stage {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .apex-chapters-copy,
  .apex-chapters-visual {
    display: contents;
    min-height: 0;
  }

  .apex-chapter,
  .apex-chapter-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .apex-chapter[data-apex-chapter="0"] {
    order: 1;
  }

  .apex-chapter-panel[data-apex-chapter-panel="0"] {
    order: 2;
    margin: 28px 0 80px;
  }

  .apex-chapter[data-apex-chapter="1"] {
    order: 3;
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }

  .apex-chapter-panel[data-apex-chapter-panel="1"] {
    order: 4;
    margin-top: 28px;
  }

  .apex-chapter h2 {
    font-size: clamp(40px, 11vw, 64px);
  }

  .apex-flow-title {
    margin-bottom: 70px;
  }

  .apex-flow-title h2 {
    font-size: clamp(48px, 14vw, 78px);
  }

  .apex-flow-stage {
    position: relative;
    display: flex;
    min-height: auto;
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 0;
  }

  .apex-flow-visual {
    position: sticky;
    z-index: 2;
    top: 76px;
    width: 100%;
    margin-bottom: 20px;
    border: 6px solid #0e0e0f;
    border-radius: 24px;
  }

  .apex-flow-steps {
    gap: 0;
  }

  .apex-flow-step {
    min-height: 42svh;
    padding: 50px 10px;
    align-content: center;
    opacity: 0.38;
  }

  .apex-result-copy h2 {
    font-size: clamp(46px, 13vw, 76px);
  }

  .apex-result-copy > p:last-child {
    margin-left: 0;
  }

  .apex-result-metrics {
    grid-template-columns: 1fr;
  }

  .apex-result-metrics article {
    min-height: 170px;
  }

  .apex-result-mosaic,
  .apex-result-mosaic.is-main-left,
  .apex-result-mosaic.is-main-right {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .apex-result-mosaic.is-main-left .apex-result-shot.is-main,
  .apex-result-mosaic.is-main-right .apex-result-shot.is-main,
  .apex-result-mosaic.is-main-left .apex-result-shot.is-side-a,
  .apex-result-mosaic.is-main-right .apex-result-shot.is-side-a,
  .apex-result-mosaic.is-main-left .apex-result-shot.is-side-b,
  .apex-result-mosaic.is-main-right .apex-result-shot.is-side-b {
    grid-column: 1;
    grid-row: auto;
  }

  .apex-story-cta {
    min-height: 72svh;
    padding: 120px 20px;
  }

  .apex-story-cta h2 {
    font-size: clamp(54px, 15vw, 86px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apex-particles,
  .apex-meta,
  .apex-intro,
  .apex-back,
  .apex-scroll-cue {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none;
  }

  .apex-mockup {
    opacity: 1;
    transform: none;
    animation: none !important;
    filter: drop-shadow(22px 36px 38px rgb(0 0 0 / 42%));
  }

  .apex-cover.is-ready .apex-particles {
    opacity: 0.75;
  }

  [data-apex-reveal],
  .apex-media-frame,
  .apex-media-frame img,
  .apex-content-card,
  .apex-flow-step,
  .apex-flow-slide {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none;
  }

  .apex-flow-layer--text,
  .apex-flow-layer--mockups {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .apex-card-line svg {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}
