:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #4b4b49;
  --paper: #fffcf5;
  --ice: #edf2fd;
  --bright-blue: #1547be;
  --cobalt: #153aa6;
  --header-height: 72px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(20px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: white;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #5c83f2;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), 1256px);
  margin-inline: auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  color: white;
}

.site-header :focus-visible,
.closing :focus-visible {
  outline-color: white;
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding-inline: clamp(24px, 3.35vw, 64px);
}

.site-header a,
.site-footer nav a {
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.main-nav,
.mobile-nav,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 27px);
}

.main-nav a,
.mobile-nav a,
.header-actions > a:first-child,
.site-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.mobile-nav a:hover,
.header-actions > a:first-child:hover,
.site-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  justify-self: end;
  white-space: nowrap;
}

.mobile-nav {
  display: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: max-content;
}

.wordmark img {
  width: 138px;
  height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 10px 23px;
  border-radius: 100px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    transform 130ms var(--ease-out);
}

.button-light {
  background: white;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .button-light:hover {
    background: #fff0d0;
  }
}


.header-register {
  min-height: 44px;
  padding-inline: 17px;
}

.arrow {
  font-size: 1.1em;
  line-height: 1;
}

.hero,
.closing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--cobalt);
  color: white;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  background: linear-gradient(180deg, #1441b6 0%, #235dce 44%, #9eccf3 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/cer.webp") center 60% / cover no-repeat;
  mask-image: linear-gradient(#000 0%, transparent 30%, #000 58%, #000 82%, transparent);
  opacity: .68;
  content: "";
}

.hero-copy {
  width: min(960px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: calc(var(--header-height) + clamp(44px, 3.75vw, 62px));
  text-align: center;
}

h1 {
  font-size: clamp(52px, 5.1vw, 80px);
  font-weight: 580;
  line-height: 1;
  letter-spacing: -.047em;
}

.hero-description {
  max-width: 49ch;
  margin: 16px auto 21px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.button-outline {
  border: 1px solid #c6d8ff;
  color: white;
}

.button-outline:hover {
  background: #10368e;
}

.showcase {
  display: grid;
  justify-items: center;
  width: min(100% - 2 * var(--gutter), 960px);
  padding: clamp(29px, 3.65vw, 54px) 0 clamp(35px, 4vw, 54px);
  scroll-margin-top: 20px;
}

.showcase-stage {
  position: relative;
  display: grid;
  grid-row: 1;
  justify-items: center;
  width: 100%;
}

.showcase-panels {
  touch-action: pan-y pinch-zoom;
}

.showcase-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 0;
}

.showcase-panel figcaption {
  min-height: 25px;
  color: #101e39;
  font-size: 15px;
  font-weight: 560;
  text-align: center;
  text-wrap: balance;
}

.showcase-panel:focus-visible {
  border-radius: 12px;
  outline-color: #102561;
}

.phone {
  --frame: #171719;
  --frame-size: 6px;
  --frame-radius: 33px;
  width: var(--phone-width, 235px);
  max-width: 100%;
  padding: var(--frame-size);
  border: 1px solid #62636b;
  border-radius: var(--frame-radius);
  background: var(--frame);
  box-shadow: 0 18px 34px #0d215b36, inset 0 0 0 1px #303039;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--frame-radius) - var(--frame-size) - 1px);
  background: white;
}

.hero-phone {
  --phone-width: clamp(216px, 20vw, 276px);
  --frame-size: 7px;
  --frame-radius: 35px;
  position: relative;
  box-shadow: 0 26px 55px #0a1a534a, inset 0 0 0 1px #3f4049;
}

.stage-card {
  position: absolute;
  overflow: clip;
  width: clamp(142px, 24vw, 230px);
  padding: 6px;
  border: 1px solid #f0f4ff9c;
  border-radius: 12px;
  background: #eff5ff;
  color: #182b50;
  box-shadow: 0 13px 32px #132c7238;
  transform: rotate(var(--card-angle));
}

.stage-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 7px;
}

.stage-card-left {
  top: 21%;
  right: calc(50% + clamp(121px, 11vw, 159px));
  --card-angle: -6deg;
  --card-fold: 58px;
}

.stage-card-right {
  top: 42%;
  left: calc(50% + clamp(121px, 11vw, 159px));
  --card-angle: 6deg;
  --card-fold: -58px;
}

.stage-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 9px 4px 4px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.stamp-dots {
  display: flex;
  flex: none;
  gap: 3px;
}

.stamp-dots i {
  width: 9px;
  height: 9px;
  border: 1px solid #3653a3;
  border-radius: 50%;
  background: #3653a3;
}

.stamp-dots i:last-child {
  background: transparent;
}

.showcase-tabs {
  --active-tab: 0;
  position: relative;
  display: grid;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 485px);
  gap: 3px;
  margin-top: 15px;
  padding: 4px;
  border: 1px solid #e5efffb2;
  border-radius: 11px;
  background: #e8f2ff6e;
}

.showcase-tabs::before {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc((100% - 14px) / 3);
  transform: translateX(calc(var(--active-tab) * (100% + 3px)));
  border-radius: 7px;
  background: white;
  box-shadow: 0 1px 4px #18336728;
  content: "";
}

[hidden] {
  display: none !important;
}

.showcase-tabs button {
  position: relative;
  min-height: 42px;
  padding: 7px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #183067;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.showcase-tabs [aria-selected="true"] {
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .showcase-tabs button[aria-selected="false"]:hover {
    background: #f4f8ff83;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .showcase-tabs[data-pointer-motion]::before {
    transition: transform 230ms var(--ease-in-out);
  }

  .button:active:not(:focus-visible),
  .showcase-tabs button:active:not(:focus-visible) {
    transform: scale(.97);
  }

  .showcase-tabs button {
    transition: transform 130ms var(--ease-out);
  }
}

.showcase-tabs button:focus-visible {
  outline-offset: -2px;
  outline-color: #2049a4;
}

.section {
  padding-block: clamp(52px, 6vw, 88px);
}

.features {
  background: var(--paper);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(38px, 4.35vw, 67px);
  font-weight: 575;
  line-height: 1.01;
  letter-spacing: -.044em;
  text-wrap: balance;
}

.section-intro p {
  max-width: 32ch;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  text-wrap: pretty;
}

.center-intro {
  margin: 0 auto clamp(25px, 4vw, 49px);
  text-align: center;
}

.center-intro p {
  max-width: 49ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  text-wrap: balance;
}

.consumer-grid,
.counter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(12px, 2vw, 24px);
}

.product-story {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: clip;
  border-radius: 11px;
}

.venue-story {
  background: var(--ice);
}

.offer-story {
  background: #fff0e0;
}

.story-copy {
  padding: clamp(23px, 3.3vw, 45px);
  padding-bottom: 21px;
}

.story-copy h3,
.counter-copy h3,
.team-copy h3,
.feature h3 {
  font-size: clamp(21px, 2.05vw, 32px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -.034em;
}

.story-copy p,
.counter-copy p,
.team-copy p,
.feature p {
  max-width: 40ch;
  margin-top: 8px;
  color: var(--muted);
  text-wrap: pretty;
}

.story-visual {
  position: relative;
  isolation: isolate;
  min-height: clamp(307px, 33vw, 415px);
}

.story-art {
  position: absolute;
  inset: 11% 7% 0;
  width: 86%;
  height: 89%;
  overflow: clip;
  border-radius: 9px 9px 0 0;
  object-fit: cover;
}

.venue-visual .story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% bottom;
}

.story-phone {
  --phone-width: clamp(172px, 16vw, 215px);
  --frame-size: 5px;
  --frame-radius: 27px;
  position: absolute;
  top: 2%;
  left: 46%;
}

.offer-visual .story-phone {
  left: 15%;
}

.counter-section {
  background: var(--bright-blue);
  color: white;
}

.counter-section .center-intro p {
  color: #eef3ff;
}

.counter-grid {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.counter-step {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  padding: clamp(20px, 3.3vw, 40px);
  border: 1px solid #7c9bf2;
  border-radius: 12px;
  background: #2a58c7;
}

.counter-copy {
  text-align: center;
}

.counter-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #dce7ff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .035em;
}

.counter-copy p {
  max-width: 36ch;
  margin-inline: auto;
  color: #f0f4ff;
}

.counter-phone {
  --phone-width: clamp(162px, 19vw, 225px);
  --frame-radius: 29px;
  margin-top: 24px;
}

.counter-transfer {
  --stamp-entry-line: min(720px, calc(390px + 23vw));
  position: absolute;
  z-index: 1;
  top: 56%;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 1vw, 13px);
  width: clamp(154px, 22vw, 278px);
  padding: clamp(6px, .9vw, 11px);
  transform: translate(-50%, -50%);
  border: 1px solid #86a8fc;
  border-radius: 12px;
  background: #163e99;
  box-shadow: 0 10px 27px #0e276a72;
  pointer-events: none;
}

.transfer-scanner {
  position: relative;
  display: grid;
  width: clamp(21px, 3vw, 36px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #8fb2ff;
  border-radius: 7px;
  color: #dcebff;
}

.transfer-scanner::before {
  width: 40%;
  aspect-ratio: 1;
  background:
    linear-gradient(currentColor 0 0) top left / 35% 35%,
    linear-gradient(currentColor 0 0) top right / 35% 35%,
    linear-gradient(currentColor 0 0) bottom left / 35% 35%,
    linear-gradient(currentColor 0 0) 87% 87% / 23% 23%;
  background-repeat: no-repeat;
  content: "";
}

.transfer-scanner::after {
  position: absolute;
  inset: 50% 13% auto;
  height: 1px;
  background: #fff5dc;
  opacity: 0;
  content: "";
}

.transfer-track {
  position: relative;
  border-top: 1px dashed #9dbaff;
}

.transfer-pulse {
  position: absolute;
  inset: -4px 8px auto 0;
  opacity: 0;
}

.transfer-pulse::before {
  display: block;
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff5dc;
  content: "";
}

.transfer-card {
  padding: 6px clamp(6px, 1vw, 12px) 8px;
  border-radius: 5px;
  background: #fff0d1;
  color: #182b50;
  font-size: clamp(10px, 1.15vw, 13px);
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.transfer-card .stamp-dots {
  margin-top: 5px;
  gap: clamp(3px, .45vw, 6px);
}

.transfer-card .stamp-dots i {
  width: clamp(10px, 1.2vw, 17px);
  height: auto;
  aspect-ratio: 1;
}

.transfer-stamp {
  position: relative;
}

.transfer-stamp::before {
  position: absolute;
  inset: -3px;
  border: 1px solid #3653a3;
  border-radius: inherit;
  opacity: 0;
  content: "";
}

.transfer-stamp::after {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle, #3653a3 41%, transparent 44% 53%, #3653a3 56%);
  content: "";
}

@media (max-width: 880px) {
  .counter-transfer {
    --stamp-entry-line: 720px;
    position: static;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 275px);
    padding: 9px 12px;
    transform: none;
  }

  .transfer-scanner {
    width: 31px;
  }

  .transfer-card {
    padding: 7px 10px;
    font-size: 12px;
  }

  .transfer-card .stamp-dots i {
    width: 14px;
  }
}

.team {
  background: #f7f9fe;
}

.team-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 28px);
}

.team-grid {
  margin: 0;
  padding: 0;
  counter-reset: team-step;
  list-style: none;
}

.team-step {
  counter-increment: team-step;
  min-width: 0;
}

.team-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  height: clamp(225px, 24vw, 340px);
  overflow: clip;
  padding: 22px 9px 0;
  border-radius: 9px;
  background: #e3ebfc;
}

.team-step:nth-child(2) .team-visual {
  background: #f8ead7;
}

.team-step:nth-child(3) .team-visual {
  background: #e7ede8;
}

.team-phone {
  --phone-width: clamp(150px, 16vw, 221px);
  --frame-size: 5px;
  --frame-radius: 27px;
  align-self: start;
}

.team-copy {
  padding-top: 16px;
}

.team-copy h3::before {
  content: counter(team-step) ". ";
  color: #3156b2;
}

.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #d0daf0;
}

.feature .feature-label {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
}

.faq-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(26px, 6vw, 86px);
  align-items: start;
}

.faq-layout > div:first-child p {
  margin-top: 15px;
  color: var(--muted);
}

.faq-layout a {
  font-weight: 650;
  text-underline-offset: 3px;
}

.faq-list {
  border-top: 1px solid #dedede;
}

.faq-list details {
  border-bottom: 1px solid #dedede;
}

.faq-list summary {
  display: flex;
  min-height: 58px;
  gap: 12px;
  padding-block: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 610;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 5px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-list details p {
  padding: 0 25px 15px 0;
  color: var(--muted);
}

.closing {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: calc(clamp(360px, 35vw, 505px) + 86px);
}

.closing .scene {
  object-position: center 60%;
}

.closing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, #0d265a58 74%, #081b4ae8 100%);
  pointer-events: none;
  content: "";
}

.site-footer .scene {
  z-index: -2;
}

.closing-copy {
  padding-block: clamp(48px, 5.7vw, 82px);
}

.closing h2 {
  font-size: clamp(47px, 6.2vw, 88px);
  text-wrap: initial;
}

.closing .button {
  margin-top: 24px;
}

.footer-inner {
  min-height: 86px;
  gap: 16px 30px;
  padding-block: 12px;
}

@media (max-width: 940px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    justify-content: center;
    gap: clamp(9px, 2.55vw, 26px);
    padding-inline: 10px;
    border-bottom: 1px solid #dce4f5;
    background: #f7faff;
  }

  .mobile-nav a {
    min-height: 50px;
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 690px) {
  :root {
    --header-height: 63px;
  }

  .header-inner {
    padding-inline: var(--gutter);
    gap: 14px;
  }

  .header-register,
  .desktop-break,
  .stage-card {
    display: none;
  }

  .hero-copy {
    padding-top: calc(var(--header-height) + 42px);
  }

  .hero::before {
    background-position: center bottom;
    opacity: .6;
  }

  h1 {
    font-size: clamp(34px, 10.55vw, 60px);
    line-height: 1.01;
  }

  .hero-description {
    max-width: 32ch;
    margin-block: 14px 17px;
  }

  .button {
    min-height: 48px;
    gap: 8px;
    padding-inline: 14px;
  }

  .hero-phone {
    --phone-width: clamp(178px, 54vw, 240px);
    --frame-radius: 28px;
    --frame-size: 5px;
  }

  .showcase-panel {
    gap: 13px;
  }

  .showcase-panel figcaption {
    min-height: 44px;
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.35;
  }

  .showcase-tabs {
    margin-top: 8px;
  }

  .showcase-tabs button {
    font-size: clamp(12px, 3.5vw, 14px);
  }

  .section {
    padding-block: 43px;
  }

  .section-intro,
  .consumer-grid,
  .counter-grid,
  .team-grid,
  .feature-grid,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-intro {
    gap: 13px;
    margin-bottom: 23px;
  }

  .section-intro h2,
  .faq h2 {
    text-wrap: initial;
  }

  .center-intro {
    margin-bottom: 24px;
  }

  .story-art {
    inset-inline: 5%;
    width: 90%;
  }

  .story-phone {
    right: 8%;
    left: auto;
  }

  .offer-visual .story-phone {
    right: auto;
  }

  .counter-step {
    grid-template-columns: minmax(0, 1fr) minmax(91px, 43%);
    align-items: center;
    gap: 9px;
    padding: 13px;
  }

  .counter-copy {
    text-align: left;
  }

  .counter-label {
    font-size: 12px;
  }

  .counter-copy p,
  .team-copy p {
    font-size: 14px;
  }

  .counter-phone {
    --frame-radius: 16px;
    --frame-size: 4px;
    margin-top: 0;
  }

  .team-grid {
    gap: 18px;
  }

  .team-step {
    display: grid;
    grid-template-columns: minmax(94px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .team-visual {
    height: 162px;
    padding: 10px 9px 0;
  }

  .team-phone {
    --frame-radius: 16px;
    --frame-size: 3px;
  }

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

  .feature-grid {
    gap: 24px;
  }

  .feature img {
    aspect-ratio: 3 / 2;
  }

  .faq-layout {
    gap: 20px;
  }

  .faq-layout > div:first-child p {
    margin-top: 10px;
  }

  .closing {
    min-height: 462px;
  }

  .closing .scene {
    object-position: 24% bottom;
  }

  .closing-copy {
    padding-top: 34px;
  }

  .closing h2 {
    font-size: clamp(40px, 9vw, 52px);
  }

  .closing .button {
    gap: 16px;
    margin-top: 17px;
    padding-inline: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-block: 16px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 0 15px;
  }

  .site-footer nav a {
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .hero-actions .button {
    gap: 6px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

@keyframes cloud-drift {
  to {
    transform: translateX(var(--cloud-travel, -2%)) scale(1.045);
  }
}

@keyframes open-showcase {
  from {
    transform: perspective(980px) rotateY(10deg) scale(.96);
  }

  to {
    transform: none;
  }
}

@keyframes fan-card {
  from {
    transform: translateX(var(--card-fold)) rotate(calc(-.75 * var(--card-angle))) scale(.95);
  }

  to {
    transform: rotate(var(--card-angle));
  }
}

@keyframes open-photo {
  from {
    clip-path: inset(0 var(--aperture-right, 23%) 0 var(--aperture-left, 0%) round 9px 9px 0 0);
  }

  to {
    clip-path: inset(0 0 0 0 round 9px 9px 0 0);
  }
}

@keyframes open-phone {
  from {
    transform: perspective(900px) rotateY(var(--phone-turn, -16deg)) scale(.95);
  }

  to {
    transform: none;
  }
}

@keyframes scan-bar {
  0% {
    opacity: 0;
    transform: translateY(-7px);
  }

  5% {
    opacity: 1;
    transform: translateY(-5px);
  }

  16% {
    opacity: 1;
    transform: translateY(5px);
  }

  24%, 100% {
    opacity: 0;
    transform: translateY(7px);
  }
}

@keyframes follow-scan {
  0%, 7% {
    opacity: 0;
    transform: translateX(0);
  }

  15% {
    opacity: 1;
  }

  52% {
    opacity: 1;
    transform: translateX(100%);
  }

  64%, 100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes ink-card {
  0%, 52% {
    opacity: 0;
    transform: rotate(-20deg) scale(1.65);
  }

  61% {
    opacity: 1;
    transform: rotate(5deg) scale(.94);
  }

  76%, 100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes press-card {
  0%, 53%, 76%, 100% {
    transform: none;
  }

  62% {
    transform: rotate(2deg) scale(.98);
  }
}

@keyframes stamp-ring {
  0%, 57% {
    opacity: 0;
    transform: scale(.8);
  }

  64% {
    opacity: .45;
  }

  85%, 100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes terrace-settle {
  from {
    transform: scale(1.06);
  }

  to {
    transform: none;
  }
}

@supports (animation-timeline: view(block)) and (animation-range: entry 0% cover 50%) {
  @media (prefers-reduced-motion: no-preference) {
    .hero::before {
      animation: cloud-drift auto linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 760px;
    }

    .hero-phone {
      transform-origin: right center;
      animation: open-showcase auto linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 52%;
    }

    .stage-card {
      animation: fan-card auto linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 65%;
    }

    .showcase-panels {
      position: relative;
      z-index: 1;
    }

    .story-art {
      animation: open-photo auto linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 37%;
    }

    .offer-story .story-art {
      --aperture-right: 0%;
      --aperture-left: 23%;
    }

    .story-phone {
      transform-origin: left center;
      animation: open-phone auto linear both;
      animation-timeline: view(block);
      animation-range: entry 4% cover 42%;
    }

    .offer-story .story-phone {
      --phone-turn: 16deg;
      transform-origin: right center;
    }

    .counter-transfer {
      view-timeline: --stamp-transfer block;
      /* Start while the card is below center, even on tall displays. */
      view-timeline-inset: 0 max(12%, calc(100% - var(--stamp-entry-line)));
    }

    .transfer-scanner::after,
    .transfer-pulse,
    .transfer-card,
    .transfer-stamp::before,
    .transfer-stamp::after {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --stamp-transfer;
      animation-range: entry 8% cover min(230px, 28svh);
    }

    .transfer-scanner::after {
      animation-name: scan-bar;
    }

    .transfer-pulse {
      animation-name: follow-scan;
    }

    .transfer-card {
      transform-origin: 78% center;
      animation-name: press-card;
    }

    .transfer-stamp::before {
      animation-name: stamp-ring;
    }

    .transfer-stamp::after {
      animation-name: ink-card;
    }

    .closing .scene {
      animation: terrace-settle auto linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry 100%;
    }
  }

  @media (max-width: 690px) and (prefers-reduced-motion: no-preference) {
    .hero::before {
      --cloud-travel: -1.1%;
    }

    .story-phone {
      --phone-turn: -10deg;
    }

    .offer-story .story-phone {
      --phone-turn: 10deg;
    }
  }
}

@media (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .features[data-scroll-gallery] {
    min-height: calc(100svh + clamp(1020px, 105vw, 2200px));
    padding-block: 0;
  }

  .features[data-scroll-gallery] .features-stage {
    position: sticky;
    inset-block-start: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: 100svh;
    padding-block: clamp(24px, 4svh, 52px);
  }

  .features[data-scroll-gallery] .features-stage .section-intro {
    margin-bottom: clamp(18px, 3.6svh, 34px);
  }

  .features[data-scroll-gallery] .feature-window {
    overflow: hidden;
  }

  .features[data-scroll-gallery] .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    margin-inline: 0;
  }

  .features[data-scroll-gallery] .feature {
    display: grid;
    grid-area: 1 / 1;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: center;
    gap: clamp(22px, 6vw, 86px);
    width: min(100% - 2 * var(--gutter), 1256px);
    margin-inline: auto;
  }

  .features[data-scroll-gallery] .feature img {
    max-height: min(46svh, 480px);
  }

  .features[data-scroll-gallery] .feature .feature-label {
    margin-top: 0;
  }

  .features[data-scroll-gallery] .feature h3 {
    font-size: clamp(27px, 3.35vw, 49px);
    line-height: 1.05;
  }

  .features[data-scroll-gallery] .feature-copy > p:last-child {
    margin-top: 12px;
    font-size: clamp(16px, 1.45vw, 20px);
  }
}

@media (max-width: 690px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .features[data-scroll-gallery] .features-stage {
    padding-block: clamp(14px, 2.8svh, 28px);
  }

  .features[data-scroll-gallery] .features-stage .section-intro {
    gap: clamp(8px, 1.6svh, 13px);
    margin-bottom: clamp(12px, 2.7svh, 27px);
  }

  .features[data-scroll-gallery] .features-stage h2 {
    font-size: clamp(29px, 9.75vw, 38px);
  }

  .features[data-scroll-gallery] .features-stage .section-intro p {
    font-size: clamp(15px, 4.35vw, 17px);
  }

  .features[data-scroll-gallery] .feature {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    gap: clamp(11px, 1.8svh, 15px);
  }

  .features[data-scroll-gallery] .feature img {
    max-height: 34svh;
  }

  .features[data-scroll-gallery] .feature h3 {
    font-size: clamp(24px, 6.9vw, 27px);
  }

  .features[data-scroll-gallery] .feature-copy > p:last-child {
    margin-top: 8px;
    font-size: clamp(15px, 4.1vw, 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
