/* Avelout */

:root {
  --pad: clamp(16px, 2vw, 32px);
  --f: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mark: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --slow: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: #000; }
body {
  background: #000;
  color: #fff;
  font-family: var(--f);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* links: a hairline that draws in */
.head__link, .news__send, .news__close {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--slow);
  padding-bottom: 1px;
}
.head__link:hover, .news__send:hover, .news__close:hover,
.head__link:focus-visible, .news__send:focus-visible, .news__close:focus-visible { background-size: 100% 1px; }
button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background-color: transparent; border: 0; border-radius: 0; cursor: pointer; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: #000;
  transition: opacity 1.2s var(--slow), visibility 0s 1.2s;
}
.loader svg { width: 14px; height: 16px; fill: #fff; animation: breathe 1.8s var(--slow) infinite; }
.is-ready .loader { opacity: 0; visibility: hidden; }
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- header ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 var(--pad);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .06em;
  color: #fff;
  transition: background-color .5s var(--slow), color .5s var(--slow);
}
.head__side { display: flex; gap: 28px; }
.head__side--end { justify-content: flex-end; }
.head__city { color: rgba(255, 255, 255, .55); }
.head__mark {
  font-family: var(--f-mark);
  font-weight: 600;
  font-variation-settings: "wdth" 125;
  font-size: 15px;
  letter-spacing: .34em;
  margin-right: -.34em;
}

/* ---------- film ---------- */
.film {
  position: relative;
  height: 100svh;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.film__video {
  /* a few pixels of overscan: no hairline at the edges when the browser snaps the scaled video */
  position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); display: block;
  border: 0; outline: 0;
  object-fit: cover;                    /* 5:4 master: desktop crops top and bottom, phones crop the sides */
  object-position: 50% 50%;
}
/* iOS Safari will not autoplay a video it considers invisible, so the video stays opaque
   and a black veil fades off it once it is playing */
.film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #000;
  transition: opacity 1.6s var(--slow);
}
.film.is-playing::after { opacity: 0; }
.film__video::-webkit-media-controls,
.film__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* ---------- newsletter ---------- */
.news {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  padding: 0 var(--pad);
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  text-transform: uppercase; letter-spacing: .06em; font-size: 11px;
  opacity: 0; transition: opacity .9s var(--slow);
}
.news[hidden] { display: none; }
.news.is-open { opacity: 1; }
.news__close { position: absolute; top: 0; right: var(--pad); height: 56px; padding-bottom: 0; background-position: 0 calc(50% + 8px); }
.news__form {
  width: min(420px, 100%);
  display: grid; gap: 14px;
  transform: translateY(10px); transition: transform .9s var(--slow);
}
.news.is-open .news__form { transform: none; }
.news__label { color: rgba(255, 255, 255, .55); text-align: center; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.news__row {
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  transition: border-color .6s var(--slow);
}
.news__row:focus-within { border-color: #fff; }
.news__input {
  flex: 1; min-width: 0;
  padding: 12px 0;
  background: transparent; border: 0; border-radius: 0; outline: 0;
  color: #fff; font: inherit; font-size: 16px;          /* 16px keeps iOS from zooming in */
  letter-spacing: .02em; text-transform: none;
  -webkit-appearance: none; appearance: none;
}
.news__input::placeholder { color: rgba(255, 255, 255, .4); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.news__input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.news__send { flex: none; }
.news__send:disabled { opacity: .4; cursor: default; }
.news__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news__msg { min-height: 1.5em; text-align: center; color: rgba(255, 255, 255, .55); }
.news.is-done .news__row { display: none; }
.news.is-done .news__msg { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .head { grid-template-columns: 1fr auto; }
  .head__city { display: none; }
  .head__mark { justify-self: start; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .news, .news__form { transition: none; }
}
