.commerce {
  --commerce-ink: #08111f;
  --commerce-night: #070d18;
  --commerce-aqua: #b4f5ff;
  --commerce-copy: #c1d1e1;
  --commerce-line: #d1eaff35;
  color: #f5faff;
  background: var(--commerce-night);
}

.commerce-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #09131f;
}

.commerce-hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 28%;
  overflow: hidden;
  margin: 0;
}

.commerce-hero-image img,
.commerce-contact-picture img,
.commerce-step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: 0 clamp(-20px, var(--motion-shift, 0px), 20px);
  scale: 1.11;
}

.commerce-hero-image img { object-position: 52% center; }

.commerce-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #070e19 3%, #080f1be8 32%, #080f1b91 49%, #080f1b17 74%, #080f1b08 100%),
              linear-gradient(0deg, #070d18 1%, #080f1bbd 16%, #080f1b00 51%);
}

.commerce-hero-wrap {
  min-height: min(770px, max(610px, calc(100svh - var(--header))));
  position: relative;
  display: grid;
  align-content: center;
  padding-block: 68px 109px;
}

.commerce-intro { position: relative; z-index: 1; width: min(680px, 65%); }
.commerce .eyebrow { color: var(--commerce-aqua); }

.commerce-hero h1,
.commerce-work h2,
.commerce-contact h2 {
  margin: .15em 0 .2em;
  font-size: clamp(3.3rem, 7vw, 7.25rem);
  line-height: .94;
  letter-spacing: -.076em;
}

.commerce-hero h1 em { display: block; color: var(--commerce-aqua); font-style: normal; }
.commerce-lede { max-width: 40ch; margin: 0; color: #d9e5f1; font-size: clamp(1rem, 1.55vw, 1.25rem); line-height: 1.6; }
.commerce-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.commerce-button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 8px 17px;
  font-size: .91rem;
  font-weight: 700;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), translate .22s var(--ease);
}

.commerce-button--light { color: #071722; background: var(--commerce-aqua); }
.commerce-button--light:hover { background: #e0fcff; translate: 0 -2px; }
.commerce-button--glass { color: #ecf7ff; border-color: #c7e5fa67; background: #07142086; }
.commerce-button--glass:hover { border-color: #c2effb; background: #132d42; translate: 0 -2px; }
.commerce-button:focus-visible,.commerce-route a:focus-visible,.commerce-link:focus-visible { outline: 2px solid var(--commerce-aqua); outline-offset: 4px; }

.commerce-hero-route {
  position: absolute;
  right: 0;
  bottom: 49px;
  width: min(420px, 48%);
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e6f7ff;
  font: 700 .7rem/1.4 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.commerce-hero-route i { position: relative; flex: 1; height: 1px; background: #b9e4fb65; }
.commerce-hero-route i::before,.commerce-hero-route i::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c1fbff;
  box-shadow: 0 0 13px #82f2ff;
}
.commerce-hero-route i::before { left: 0; }
.commerce-hero-route i::after { right: 0; }

.commerce-work {
  padding-block: clamp(72px, 10vw, 154px);
  background: radial-gradient(ellipse at 0 35%, #17364f72, transparent 45%), var(--commerce-night);
}

.commerce-work-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  align-items: end;
  gap: 26px;
  margin-bottom: clamp(30px, 5vw, 65px);
}

.commerce-work h2,.commerce-contact h2 { margin: 0; font-size: clamp(2.65rem, 5.55vw, 5.55rem); }
.commerce-work-intro p { justify-self: end; max-width: 35ch; margin: 0; color: var(--commerce-copy); font-size: clamp(1rem, 1.4vw, 1.19rem); }
.commerce-story-grid { position: relative; }
.commerce-live { display: none; }
.commerce-mobile-nav { display: none; }
.commerce-steps { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }

.commerce-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(18px, 4vw, 62px);
  border-top: 1px solid var(--commerce-line);
  padding-block: clamp(24px, 5vw, 59px);
}

.commerce-step h3 {
  margin: .2em 0 .18em;
  font-size: clamp(2.4rem, 5.35vw, 4.8rem);
  line-height: .96;
  letter-spacing: -.067em;
}
.commerce-step-content > p:not(.commerce-step-kicker) { max-width: 39ch; margin: 14px 0 16px; color: var(--commerce-copy); line-height: 1.65; }
.commerce-step-kicker {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0;
  color: var(--commerce-aqua);
  font: 650 .74rem/1.4 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.commerce-step-kicker span {
  min-width: 33px;
  display: inline-grid;
  place-items: center;
  height: 33px;
  border: 1px solid #9be9ff4c;
  border-radius: 50%;
  background: #122535;
}
.commerce-link { display: inline-flex; align-items: center; gap: 8px; color: var(--commerce-aqua); font-weight: 700; font-size: .93rem; }
.commerce-link span { transition: translate .22s var(--ease); }
.commerce-link:hover span { translate: 3px -3px; }
.commerce-step-photo { aspect-ratio: 16/10; overflow: hidden; margin: 0; border: 1px solid var(--commerce-line); border-radius: 15px; }
.commerce-step-photo img { translate: 0 clamp(-9px, var(--motion-shift, 0px), 9px); }

.commerce-contact { position: relative; isolation: isolate; overflow: hidden; background: #0a1321; border-top: 1px solid var(--commerce-line); }
.commerce-contact-picture { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.commerce-contact-picture img { object-position: 67% 56%; }
.commerce-contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#081020fb,#081020d9 47%,#081020a6), linear-gradient(0deg,#080f1aab,transparent);
}
.commerce-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(25px, 8vw, 105px);
  padding-block: clamp(73px, 12vw, 167px);
}
.commerce-contact-copy h2 { margin: .12em 0 .19em; max-width: 10ch; }
.commerce-contact-copy p:not(.eyebrow) { margin: 0 0 23px; max-width: 42ch; color: #dbeafa; }
.commerce-contact-list {
  padding: clamp(19px, 3vw, 34px);
  border: 1px solid #bceaff62;
  border-radius: 15px;
  background: #101d2fe7;
  box-shadow: 0 20px 60px #03081373;
}
.commerce-contact-list h3 { margin: 0 0 9px; font-size: 1.22rem; letter-spacing: -.022em; }
.commerce-contact-list ul { padding: 0; margin: 0; list-style: none; }
.commerce-contact-list li { position: relative; padding: 11px 0 11px 18px; color: var(--commerce-copy); }
.commerce-contact-list li + li { border-top: 1px solid #d6eaff22; }
.commerce-contact-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--commerce-aqua); }

@media (min-width: 881px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .commerce-work.is-cinematic .commerce-story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(29px, 6.5vw, 105px); }
  .commerce-work.is-cinematic .commerce-live {
    display: block;
    position: sticky;
    top: calc(var(--header) + 22px);
    align-self: start;
    min-width: 0;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    background: #0b1827;
    overflow: hidden;
  }
  .commerce-work.is-cinematic .commerce-stage { height: clamp(300px, 56svh, 560px); position: relative; isolation: isolate; overflow: hidden; }
  .commerce-stage::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, #070f1ce8, #070f1c08 53%); }
  .commerce-frame {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    scale: 1.11;
    transition: opacity .62s var(--ease), scale 1.08s var(--ease);
  }
  .commerce-frame[data-commerce-frame="1"] { object-position: 69% center; }
  [data-stage="0"] .commerce-frame[data-commerce-frame="0"],
  [data-stage="1"] .commerce-frame[data-commerce-frame="1"],
  [data-stage="2"] .commerce-frame[data-commerce-frame="2"] { opacity: 1; scale: 1; }

  .commerce-stage-caption { position: absolute; z-index: 2; bottom: 20px; left: 21px; display: flex; align-items: center; gap: 11px; }
  .commerce-stage-index {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #a5e4fd7e;
    border-radius: 9px;
    background: #0a1b2b9c;
    color: #d0fbff;
    font: 700 .83rem/1 "IBM Plex Mono", Consolas, monospace;
  }
  .commerce-stage-label { display: block; color: #b9d1e5; font-size: .78rem; }
  .commerce-stage-caption strong { display: block; color: #f2faff; font-size: 1.12rem; }
  .commerce-route {
    --commerce-progress: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    padding: 26px 13px 13px;
    border-top: 1px solid #d1eaff2b;
  }
  .commerce-route::before,.commerce-route::after { content: ""; position: absolute; top: 17px; left: calc(100% / 6 + 9px); width: calc(200% / 3 - 18px); height: 1px; background: #729aba6c; }
  .commerce-route::after { background: #b4f7ff; scale: var(--commerce-progress) 1; transform-origin: left; box-shadow: 0 0 9px #6ceaff; }
  .commerce-route a { position: relative; z-index: 2; justify-self: center; color: #b9ccdf; font-size: .79rem; font-weight: 650; }
  .commerce-route a::before {
    content: "";
    position: absolute;
    top: -13px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border: 1px solid #8ec5ed;
    border-radius: 50%;
    background: #12283d;
  }
  .commerce-route a[aria-current="step"],.commerce-route a:hover { color: #e1fcff; }
  .commerce-route a[aria-current="step"]::before { background: var(--commerce-aqua); box-shadow: 0 0 13px #7debff; }
  .commerce-work.is-cinematic .commerce-steps { gap: 0; }
  .commerce-work.is-cinematic .commerce-step { display: grid; grid-template-columns: minmax(0, 1fr); min-height: clamp(315px, 57svh, 540px); }
  .commerce-work.is-cinematic .commerce-step-photo { display: none; }
  .commerce-work.is-cinematic .commerce-step-kicker span { transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
  .commerce-work.is-cinematic .commerce-step.is-current .commerce-step-kicker span { background: var(--commerce-aqua); color: #091723; box-shadow: 0 0 19px #67e3ff52; }
}

@media (max-width: 880px), (max-height: 619px), (prefers-reduced-motion: reduce) {
  .commerce-live {
    display: block;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid var(--commerce-line);
    border-radius: 13px;
    background: #0c1927;
  }
  .commerce-live .commerce-stage { display: none; }
  .commerce-route {
    --commerce-progress: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding-bottom: 5px;
  }
  .commerce-route::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: 0;
    left: 4%;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, #438cff, var(--commerce-aqua));
    box-shadow: 0 0 10px #70e4ff7a;
    transform: scaleX(var(--commerce-progress));
    transform-origin: left;
    pointer-events: none;
  }
  .commerce-route a {
    display: grid;
    place-items: center;
    min-height: 45px;
    padding-inline: 5px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #d0e0f0;
    text-align: center;
    font-size: .79rem;
    font-weight: 700;
  }
  .commerce-route a[aria-current="step"] {
    border-color: #b5f1ff5c;
    background: #143347;
    color: var(--commerce-aqua);
  }
}

@media (min-width: 741px) and (max-width: 880px) {
  .commerce-hero-wrap { min-height: clamp(460px, 69svh, 650px); padding-block: 55px 90px; }
  .commerce-hero-image { inset-inline-start: 18%; }
}

@media (max-width: 740px) {
  .commerce-hero-wrap {
    min-height: clamp(348px, calc(60svh - var(--header)), 450px);
    align-content: end;
    padding-block: clamp(100px, 19svh, 163px) 24px;
  }
  .commerce-hero-image { inset: 0 0 auto; height: 74%; }
  .commerce-hero-image img { object-position: 54% 31%; }
  .commerce-hero::after {
    background: linear-gradient(0deg,#070d18 12%,#07111ff0 34%,#07111f3c 66%,transparent 93%);
  }
  .commerce-intro { width: 100%; }
  .commerce-hero h1 { font-size: clamp(2.1rem, 10vw, 4.45rem); }
  .commerce-lede { line-height: 1.48; }
  .commerce-actions { gap: 7px; margin-top: 15px; }
  .commerce-button { min-height: 46px; padding-inline: 11px; font-size: .84rem; gap: 6px; }
  .commerce-work { padding-block: clamp(32px, 8vw, 50px) 46px; }
  .commerce-work-intro, .commerce-step, .commerce-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .commerce-work h2, .commerce-contact h2 { font-size: clamp(2.3rem, 8.2vw, 3.6rem); }
  .commerce-work-intro { gap: 9px; margin-bottom: 15px; }
  .commerce-work-intro p { justify-self: start; }
  .commerce-steps { gap: 12px; }
  .commerce-step {
    overflow: hidden;
    gap: 0;
    padding: 0;
    border: 1px solid var(--commerce-line);
    border-radius: 16px;
    background: linear-gradient(145deg, #12263a, #0c1927 70%);
  }
  .commerce-step.is-current { border-color: #a1ebff4e; }
  .commerce-step-content { padding: 15px clamp(14px, 4.6vw, 25px) 11px; }
  .commerce-step h3 { font-size: clamp(1.9rem, 7.6vw, 3.3rem); }
  .commerce-step-content > p:not(.commerce-step-kicker) { margin-block: 9px 6px; }
  .commerce-step.is-current .commerce-step-kicker span {
    color: #091723;
    background: var(--commerce-aqua);
  }
  .commerce-link { min-height: 44px; }
  .commerce-step-photo {
    position: relative;
    order: -1;
    aspect-ratio: 17 / 10;
    border: 0;
    border-radius: 0;
  }
  .commerce-step-photo::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, #438cff, var(--commerce-aqua));
    opacity: 0;
    transform: scaleX(var(--commerce-chapter-progress, 0));
    transform-origin: left;
  }
  .commerce-step.is-current .commerce-step-photo::after { opacity: 1; }
  .commerce-contact-grid { gap: 21px; padding-block: 47px; }
  .commerce-contact-copy h2 { max-width: 14ch; }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  .commerce-intro > * { animation: commerce-mobile-enter .6s var(--ease) both; }
  .commerce-intro h1 { animation-delay: .045s; }
  .commerce-intro .commerce-lede { animation-delay: .095s; }
  .commerce-intro .commerce-actions { animation-delay: .14s; }
  .commerce-step, .commerce-step-kicker span { transition: border-color .25s, background-color .25s, box-shadow .25s; }
}

@keyframes commerce-mobile-enter {
  from { opacity: 0; translate: 0 13px; }
  to { opacity: 1; translate: 0 0; }
}

@media (min-width: 540px) and (max-width: 1024px) and (max-height: 520px) {
  .commerce-hero-wrap {
    min-height: max(350px, calc(100svh - var(--header)));
    align-content: center;
    padding-block: 32px 48px;
  }
  .commerce-hero-image { inset: 0 0 0 25%; height: auto; }
  .commerce-hero-image img { object-position: 65% 39%; }
  .commerce-hero::after {
    background: linear-gradient(90deg, #070d18 12%, #070d18d8 43%, #070d1847 77%, transparent),
      linear-gradient(0deg, #070d187a, transparent 47%);
  }
  .commerce-intro { width: min(65%, 520px); }
  .commerce-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
  .commerce-hero-route { position: absolute; inset: auto 0 18px auto; width: min(36%, 265px); }
}

@media (orientation: landscape) and (max-width: 1024px) and (max-height: 360px) {
  .commerce-hero-wrap {
    min-height: max(0px, calc(100svh - var(--header)));
    align-content: center;
    padding-block: 12px 14px;
  }
  .commerce-hero-image { inset: 0 0 0 24%; height: auto; }
  .commerce-hero-image img { object-position: 61% 34%; }
  .commerce-hero::after {
    background: linear-gradient(90deg, #070d18 12%, #070d18d8 43%, #070d1847 77%, transparent),
      linear-gradient(0deg, #070d187a, transparent 47%);
  }
  .commerce-intro { width: min(100%, max(65%, 292px), 535px); }
  .commerce-hero h1 { margin-block: 7px 9px; font-size: clamp(1.9rem, 5.1vw, 2.65rem); }
  .commerce-lede { font-size: .9rem; line-height: 1.42; }
  .commerce-actions { gap: 7px; margin-top: 11px; }
  .commerce-hero .commerce-button { min-height: 44px; padding-inline: 10px; gap: 6px; font-size: .81rem; }
  .commerce-hero-route { display: none; }
}

@media (max-width: 740px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .commerce-hero .commerce-button--glass, .commerce-hero-route, .commerce-story-grid > .commerce-live { display: none; }
  .commerce-mobile-nav {
    display: block;
    width: min(100%, 285px);
    margin-block-end: 14px;
    padding-inline: 12px;
    border: 1px solid var(--commerce-line);
    border-radius: 9px;
    background: #0c1927;
  }
  .commerce-mobile-nav summary, .commerce-mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #d0e0f0;
    font-size: .9rem;
  }
  .commerce-mobile-nav summary {
    justify-content: space-between;
    gap: 9px;
    list-style: none;
    cursor: pointer;
    font-weight: 680;
  }
  .commerce-mobile-nav summary::-webkit-details-marker { display: none; }
  .commerce-mobile-nav summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-end: 3px;
    border: solid var(--commerce-aqua);
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .commerce-mobile-nav[open] summary::after { transform: translateY(2px) rotate(225deg); }
  .commerce-mobile-nav a { border-top: 1px solid var(--commerce-line); }
  .commerce-mobile-nav a[aria-current="step"] { color: var(--commerce-aqua); }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-hero-image img,.commerce-contact-picture img,.commerce-step-photo img { translate: none; }
  .commerce-step-photo::after,.commerce-route::after { display: none; }
  .commerce-button,.commerce-link span { transition: none; }
  .commerce-button:hover,.commerce-link:hover span { translate: none; }
}
