@font-face {
  font-family: 'AC Archivo';
  src: url('archivo.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
}

.ac-teaser {
  --white: #fff;
  --black: #000;
  --ash: #8f8f8f;
  --line: rgba(255, 255, 255, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(20px, 5vw, 64px);
  position: fixed; inset: 0; z-index: 2147483000;
  overflow: hidden; background: var(--black); color: var(--white);
  font-family: 'AC Archivo', 'Arial Narrow', Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.ac-teaser *, .ac-teaser *::before, .ac-teaser *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ac-teaser img { display: block; max-width: 100%; height: auto; border: 0; }
.ac-teaser button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ac-teaser :focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

/* LINES */
.ac-teaser__lines { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.ac-teaser__lines i { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .08), transparent); transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease-io); }
.ac-teaser.is-on .ac-teaser__lines i { transform: none; }
.ac-teaser.is-on .ac-teaser__lines i:nth-child(2) { transition-delay: .1s; }
.ac-teaser.is-on .ac-teaser__lines i:nth-child(3) { transition-delay: .2s; }
.ac-teaser.is-on .ac-teaser__lines i:nth-child(4) { transition-delay: .3s; }
.ac-teaser.is-on .ac-teaser__lines i:nth-child(5) { transition-delay: .4s; }

/* SECTION SIGN */
.ac-teaser__section {
  position: absolute; left: 50%; top: 50%; pointer-events: none;
  font-weight: 900; font-stretch: 62%; font-size: clamp(320px, 80vmin, 900px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  transform: translate(-50%, -52%) rotate(-30deg) scale(.6); opacity: 0;
  transition: opacity 1.6s ease, transform 3s var(--ease);
}
.ac-teaser.is-on .ac-teaser__section { opacity: 1; transform: translate(-50%, -52%) rotate(0) scale(1); animation: ac-section 14s linear 3s infinite; }
@keyframes ac-section { to { transform: translate(-50%, -52%) rotate(360deg) scale(1); } }
.ac-teaser.is-photo .ac-teaser__section { opacity: 0; }

/* RULE */
.ac-teaser__rule { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--white); transform: scaleX(0); transition: transform 1.1s var(--ease-io), opacity .6s; }
.ac-teaser.is-on .ac-teaser__rule { transform: scaleX(1); }
.ac-teaser.is-words .ac-teaser__rule { opacity: .25; }
.ac-teaser.is-paper .ac-teaser__rule { opacity: 0; }

/* WORDS */
.ac-teaser__words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ac-teaser__word { grid-area: 1 / 1; overflow: hidden; padding: .12em .04em .02em; }
.ac-teaser__word > span {
  display: block; font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(64px, 17vw, 280px); line-height: .86; letter-spacing: -.01em; white-space: nowrap;
  transform: translateY(110%) rotate(6deg); transform-origin: left bottom;
  transition: transform .75s var(--ease-io);
}
.ac-teaser__word.is-in > span { transform: none; }
.ac-teaser__word.is-gone > span { transform: translateY(-110%) rotate(-4deg); }
.ac-teaser__word:last-child > span { font-size: clamp(48px, 13.5vw, 230px); }

/* PAPER (dark logo on white) */
.ac-teaser__paper {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: var(--white); clip-path: inset(100% 0 0 0);
  transition: clip-path .9s var(--ease-io);
}
.ac-teaser.is-paper .ac-teaser__paper { clip-path: inset(0 0 0 0); }
.ac-teaser.is-photo .ac-teaser__paper { clip-path: inset(0 0 100% 0); }
.ac-teaser__paper-logo { width: min(72vw, 420px); max-height: 30vh; object-fit: contain; opacity: 0; transform: scale(1.2); filter: blur(10px); transition: opacity .8s ease .3s, transform 1.4s var(--ease) .3s, filter 1s ease .3s; }
.ac-teaser.is-paper .ac-teaser__paper-logo { opacity: 1; transform: none; filter: blur(0); }

/* PHOTO STRIPS */
.ac-teaser__photo { position: absolute; inset: 0; z-index: 2; display: flex; }
.ac-teaser__strip {
  position: relative; flex: 1 1 0; height: 100%; overflow: hidden;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.1s var(--ease-io), transform 1.2s var(--ease-io);
  transition-delay: calc(var(--i) * 60ms);
}
.ac-teaser__strip-img {
  position: absolute; top: 0; height: 104%;
  left: calc(var(--i) * -100vw / var(--n)); width: 100vw;
  background-position: 50% 6%; background-size: cover; background-repeat: no-repeat; filter: grayscale(1) contrast(1.1) brightness(.85);
  transform: scale(1.25); transform-origin: 50% 12%;
  transition: transform 7s cubic-bezier(.2, .6, .2, 1);
}
.ac-teaser.is-photo .ac-teaser__strip { clip-path: inset(0 0 0 0); }
.ac-teaser.is-photo .ac-teaser__strip-img { transform: scale(1.02); }
.ac-teaser__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(130% 100% at 50% 30%, rgba(0, 0, 0, .3), rgba(0, 0, 0, .78) 80%), linear-gradient(to top, rgba(0, 0, 0, .88), transparent 55%);
  transition: opacity 1.2s ease .4s;
}
.ac-teaser.is-photo .ac-teaser__shade { opacity: 1; }

/* CONTENT */
.ac-teaser__content {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 24px); padding: 90px var(--pad) 110px; text-align: center;
  pointer-events: none;
}
.ac-teaser.is-title .ac-teaser__content { pointer-events: auto; }
.ac-teaser__logo { width: min(64vw, 320px); max-height: 18vh; object-fit: contain; opacity: 0; transform: translateY(-20px); filter: blur(8px); transition: opacity 1s ease, transform 1.2s var(--ease), filter 1s ease; }
.ac-teaser.is-photo .ac-teaser__logo { opacity: 1; transform: none; filter: blur(0); transition-delay: .6s; }
.ac-teaser__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity .8s; }
.ac-teaser__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); animation: ac-blink 1.4s steps(1) infinite; }
@keyframes ac-blink { 50% { opacity: .2; } }
.ac-teaser.is-title .ac-teaser__kicker { opacity: 1; }
.ac-teaser__title { display: flex; flex-direction: column; align-items: center; font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(40px, 8.4vw, 136px); line-height: .9; letter-spacing: -.015em; }
.ac-teaser__line { display: block; overflow: hidden; padding: .14em .03em .02em; margin: -.14em 0 -.02em; }
.ac-teaser__line > span { display: block; transform: translateY(110%) rotate(5deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); }
.ac-teaser.is-title .ac-teaser__line > span { transform: none; }
.ac-teaser.is-title .ac-teaser__line:nth-child(2) > span { transition-delay: .12s; }
.ac-teaser__text { max-width: 40ch; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55; color: #d6d6d6; opacity: 0; transform: translateY(16px); transition: opacity .9s ease .35s, transform 1s var(--ease) .35s; }
.ac-teaser.is-title .ac-teaser__text { opacity: 1; transform: none; }
.ac-teaser__enter {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px; margin-top: 6px;
  padding: 17px 28px; border-radius: 999px; border: 1px solid var(--white);
  font-size: 15px; font-weight: 700; color: var(--black) !important; background: var(--white) !important;
  opacity: 0; transform: translateY(16px); transition: opacity .9s ease .5s, transform 1s var(--ease) .5s, color .4s;
}
.ac-teaser__enter::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--black); clip-path: circle(0% at 50% 110%); transition: clip-path .6s var(--ease); }
.ac-teaser__enter:hover { color: var(--white) !important; }
.ac-teaser__enter:hover::before { clip-path: circle(150% at 50% 110%); }
.ac-teaser__enter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.ac-teaser__enter:hover svg { transform: translateX(4px); }
.ac-teaser.is-title .ac-teaser__enter { opacity: 1; transform: none; }

/* HUD */
.ac-teaser__hud {
  position: absolute; left: var(--pad); right: var(--pad); bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 5; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ash);
  opacity: 0; transition: opacity 1s ease .4s;
}
.ac-teaser.is-on .ac-teaser__hud { opacity: 1; }
.ac-teaser__counter { font-stretch: 62%; font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: 0; color: var(--white); line-height: .8; }
.ac-teaser__counter b { font-weight: 900; font-variant-numeric: tabular-nums; }
.ac-teaser.is-paper:not(.is-photo) .ac-teaser__hud { color: #555; }
.ac-teaser.is-paper:not(.is-photo) .ac-teaser__counter { color: var(--black); }
.ac-teaser__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 3px; background: rgba(255, 255, 255, .12); }
.ac-teaser__progress span { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.ac-teaser__skip {
  position: absolute; top: max(20px, env(safe-area-inset-top)); right: var(--pad); z-index: 6;
  padding: 11px 18px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(128, 128, 128, .5);
  font-size: 13px; font-weight: 600; color: #b5b5b5 !important; mix-blend-mode: difference;
  transition: color .3s, border-color .3s;
}
.ac-teaser__skip:hover { color: var(--white) !important; border-color: var(--white); }

/* EXIT */
.ac-teaser.is-out { background-color: transparent; pointer-events: none; }
.ac-teaser.is-out > *:not(.ac-teaser__photo) { opacity: 0 !important; transition: opacity .5s ease !important; }
.ac-teaser.is-out .ac-teaser__strip { clip-path: inset(0 0 0 0); transition-delay: calc(var(--i) * 70ms); }
.ac-teaser.is-out .ac-teaser__strip:nth-child(odd) { transform: translateY(-101%); }
.ac-teaser.is-out .ac-teaser__strip:nth-child(even) { transform: translateY(101%); }
.ac-teaser.is-instant .ac-teaser__strip, .ac-teaser.is-instant .ac-teaser__paper { transition: none !important; }

/* RESPONSIVE */
@media (min-aspect-ratio: 16/9) {
  .ac-teaser__strip-img { background-position: 50% 0; transform-origin: 50% 0; }
}
@media (max-aspect-ratio: 1/1) {
  .ac-teaser__strip-img { background-position: 0% 0; transform-origin: 50% 0; }
  .ac-teaser.is-photo .ac-teaser__strip-img { animation: ac-pan 5.6s cubic-bezier(.45, 0, .25, 1) .4s forwards; }
}
@keyframes ac-pan {
  0% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}
@media (max-width: 640px) {
  .ac-teaser__hud-place { display: none; }
  .ac-teaser__hud { font-size: 10px; letter-spacing: .1em; }
  .ac-teaser__enter { width: 100%; max-width: 340px; justify-content: center; }
  .ac-teaser__content { padding-bottom: 120px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .ac-teaser__logo { max-height: 14vh; }
  .ac-teaser__title { font-size: 9vh; }
  .ac-teaser__text { display: none; }
  .ac-teaser__content { padding: 60px var(--pad) 70px; gap: 10px; }
  .ac-teaser__enter { padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-teaser *, .ac-teaser *::before, .ac-teaser *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
