:root {
  --navy: #2d4191;
  --cream: #faf8f2;
  --ink: #202a43;
  --muted: #626c80;
  --orange: #eb5d36;
  --mist: #dfe5f5;
  --dash: #d2d6e4;
  --sans: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--navy);
  color: #fff;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 5;
  padding: 8px 12px;
  background: #fff;
  color: var(--navy);
}

.skip:focus {
  top: 12px;
}

.page {
  width: min(1728px, 100%);
  margin-inline: auto;
  min-height: 100vh;
  padding-bottom: 28px;
}

.header {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 80px;
  min-height: 134px;
  padding: 0 64px 0 88px;
}

.logo {
  width: 235px;
  height: 73.4225px;
}

.tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tagline__title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.tagline__sub {
  color: var(--mist);
  font-size: 14px;
  line-height: 1.4;
}

.header-phone {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.header-phone:hover,
.stub__phone:hover,
.stub__free:hover,
.stub__mail:hover {
  opacity: 0.82;
}

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1008fr 592fr;
  margin: 20px 64px 0;
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 18px 48px rgba(5, 10, 38, 0.22);
}

.perforation {
  position: absolute;
  z-index: 2;
  top: 42px;
  bottom: 30px;
  left: calc(1008 / 1600 * 100%);
  width: 2px;
  transform: translateX(-1px);
  background: repeating-linear-gradient(to bottom, var(--dash) 0 12px, transparent 12px 26px);
  pointer-events: none;
}

.pass,
.stub {
  z-index: 1;
}

.pass {
  position: relative;
  padding: 32px 32px 32px;
  background: var(--cream);
  border-radius: 20px 0 0 20px;
}

.hero-row {
  min-width: 0;
}

.kicker {
  margin-left: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin-top: 28px;
  color: var(--navy);
  font-size: 102px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.stamp {
  position: absolute;
  top: 70px;
  right: 31px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  text-align: center;
  transform: rotate(-8deg);
}

.stamp__soon {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.stamp__sub {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.horizon {
  margin: 23px 8px 0;
  color: var(--navy);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.4;
}

.photo {
  position: relative;
  margin: 38px 0 0;
  overflow: hidden;
  border-radius: 50px;
  aspect-ratio: 944 / 430;
  background: #142047;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.photo:active {
  cursor: grabbing;
}

.photo__viewport,
.photo__track,
.slide {
  position: absolute;
  inset: 0;
}

.photo__viewport {
  overflow: hidden;
}

.slide {
  overflow: hidden;
}

.slide:not(.slide--lead) {
  visibility: hidden;
}

.photo.is-ready .slide {
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo__shade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 39.5%;
  background: linear-gradient(to bottom, rgba(8, 15, 41, 0), rgba(8, 15, 41, 0.86));
  pointer-events: none;
}

.photo__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, 0.22) 50%, transparent 64%);
  transform: translateX(-130%);
}

.photo__caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  color: #fff;
  pointer-events: none;
}

.photo__progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.photo__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}

.photo__arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 15, 41, 0.38);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.photo__arrow--prev {
  left: 16px;
}

.photo__arrow--next {
  right: 16px;
}

.photo__arrow:hover {
  background: rgba(8, 15, 41, 0.62);
}

.photo__dots {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.photo__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.photo__dot.is-active {
  width: 22px;
  background: #fff;
}

.photo__kicker {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.photo__name {
  margin-top: 13px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
}

.photo__note {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.stub {
  position: relative;
  padding: 43px 40px 48px;
  background: #fff;
  color: var(--ink);
  border-radius: 0 20px 20px 0;
}

.stub h2 {
  color: var(--navy);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.25;
}

.muted {
  margin-top: 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.ask {
  margin-top: 60px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 58px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.button--fill {
  background: var(--orange);
  color: var(--ink);
}

.button--fill:hover {
  background: #e4542c;
}

.button--navy {
  background: var(--navy);
  color: #fff;
}

.button--navy:hover {
  background: #24367d;
}

.stub__kicker {
  margin-top: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.stub__phone,
.stub__free,
.stub__mail {
  display: block;
  color: var(--navy);
}

.stub__phone {
  margin-top: 14px;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.4;
}

.stub__free {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
}

.stub__mail {
  margin-top: 27px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.notch {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.notch--top,
.notch--bottom {
  left: calc(1008 / 1600 * 100%);
  transform: translateX(-50%);
}

.notch--top {
  top: -24px;
}

.notch--bottom {
  bottom: -24px;
}

.notch--left,
.notch--right {
  display: none;
}

.footer {
  display: grid;
  grid-template-columns: 600fr 50fr 410fr 110fr 430fr;
  margin: 44px 64px 0;
}

.footer > :nth-child(1) {
  grid-column: 1;
}

.footer > :nth-child(2) {
  grid-column: 3;
}

.footer > :nth-child(3) {
  grid-column: 5;
}

.footer__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.footer__sub {
  margin-top: 12px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.4;
}

.footer__bye {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .header {
    column-gap: 24px;
    padding: 20px 24px;
  }

  .ticket {
    grid-template-columns: 1fr;
    margin-inline: 20px;
  }

  .perforation {
    display: none;
  }

  .stub::before {
    content: "";
    position: absolute;
    top: 0;
    right: 28px;
    left: 28px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--dash) 0 12px, transparent 12px 26px);
  }

  .pass,
  .stub {
    border-radius: 20px;
  }

  .stub {
    padding-top: 36px;
  }

  .notch--top,
  .notch--bottom {
    display: none;
  }

  .notch--left,
  .notch--right {
    display: block;
    top: -24px;
  }

  .notch--left {
    left: -24px;
  }

  .notch--right {
    right: -24px;
  }

  h1 {
    font-size: clamp(56px, 9vw, 88px);
  }

  .horizon {
    font-size: 22px;
  }

  .photo {
    border-radius: 32px;
  }

  .photo__name {
    font-size: 24px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-inline: 24px;
  }

  .footer > :nth-child(n) {
    grid-column: auto;
  }

  .muted br {
    display: none;
  }
}

@media (max-width: 720px) {
  .header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo phone"
      "tag tag";
    row-gap: 10px;
    min-height: 0;
    padding-left: 20px;
  }

  .logo {
    grid-area: logo;
    width: 168px;
    height: auto;
  }

  .tagline {
    grid-area: tag;
  }

  .header-phone {
    grid-area: phone;
    font-size: 16px;
  }

  .pass {
    padding: 24px 18px 22px;
  }

  .kicker {
    margin-left: 0;
  }

  .hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  h1 {
    flex: 1 1 auto;
    max-width: none;
    margin-top: 0;
    padding-right: 0;
    font-size: clamp(40px, 11vw, 56px);
  }

  .stamp {
    position: static;
    flex: none;
    width: 92px;
    height: 92px;
    margin-top: 8px;
  }

  .stamp__soon {
    font-size: 18px;
  }

  .stamp__sub {
    font-size: 12px;
  }

  .horizon {
    margin-left: 0;
    font-size: 18px;
  }

  .photo {
    border-radius: 24px;
    aspect-ratio: 16 / 10;
  }

  .photo__caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .photo__shade {
    height: 52%;
  }

  .photo__arrow {
    top: 22%;
    width: 36px;
    height: 36px;
  }

  .photo__dots {
    top: 12px;
    right: 12px;
  }

  .stub {
    padding: 28px 18px 32px;
  }

  .stub h2,
  .stub__phone {
    font-size: 26px;
  }

  .ask,
  .muted {
    margin-top: 18px;
    font-size: 16px;
  }

  .actions {
    margin-top: 24px;
  }

  .stub__kicker {
    margin-top: 28px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .photo__arrow {
    opacity: 0;
  }

  .photo:hover .photo__arrow,
  .photo:focus-within .photo__arrow {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .header,
  .footer {
    animation: rise 0.7s both;
  }

  .footer {
    animation-delay: 0.18s;
  }

  .ticket {
    animation: ticket-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .stamp {
    animation: stamp-in 0.7s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .perforation {
    animation: dash-in 0.8s 0.35s both;
  }

  .photo.is-ready .slide.is-active img {
    animation: drift 8.5s linear forwards;
  }

  .photo.is-ready .photo__caption:not(.is-in) span {
    opacity: 0;
  }

  .photo.is-ready .photo__caption.is-in span {
    animation: caption-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .photo.is-ready .photo__caption.is-in .photo__name {
    animation-delay: 0.06s;
  }

  .photo.is-ready .photo__caption.is-in .photo__note {
    animation-delay: 0.12s;
  }

  .photo.is-sheen .photo__sheen {
    animation: sheen 0.9s ease;
  }

  .photo__arrow,
  .photo__dot {
    transition:
      opacity 0.25s ease,
      background 0.25s ease,
      width 0.35s ease;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stamp-in {
  0% {
    opacity: 0;
    transform: rotate(-28deg) scale(1.4);
  }

  70% {
    opacity: 1;
    transform: rotate(-4deg) scale(0.94);
  }

  100% {
    transform: rotate(-8deg) scale(1);
  }
}

@keyframes dash-in {
  from {
    opacity: 0;
    clip-path: inset(46% 0 46% 0);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(1.2%, 0, 0);
  }

  to {
    transform: scale(1.14) translate3d(-1.6%, -0.8%, 0);
  }
}

@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheen {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(130%);
  }
}
