/* MOKOTOV — coming soon. Self-contained: no external fonts, scripts or images. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2");
}

:root {
  --bg: #08090b;
  --fg: #f4f4f2;
  --muted: #b4b8bf;
  --faint: rgba(244, 244, 242, 0.55);
  --red: #ec1a22;          /* sampled from the logo stripe in the key art */
  --gutter: clamp(16px, 4.5vw, 64px);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }

::selection { background: var(--red); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   Layout — narrow / portrait: key art as a 4:3 banner, content stacked below.
   (The logo is painted into the art at the top-left, so a full-bleed crop on
   a tall screen would cut it off.)
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 64svh;
  overflow: hidden;
  z-index: -1;
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 40%;
  transform-origin: 38% 62%;
  animation:
    settle 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    drift 28s ease-in-out 2.6s infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0) 20%),
    linear-gradient(to top, var(--bg) 0%, rgba(8, 9, 11, 0.55) 20%, rgba(8, 9, 11, 0) 45%);
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  animation: rise 0.9s ease-out 0.4s both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-out infinite;
}

.coords { color: rgba(244, 244, 242, 0.85); }
.coords__geo { display: none; }

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  margin-top: -2.75rem;
  padding: 0 var(--gutter) 32px;
}

.soon {
  position: relative;
  width: fit-content;
  padding-bottom: 0.2em;
  font-size: clamp(3.5rem, 22vw, 7.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s ease-out 0.65s both;
}

.soon span { display: block; }

/* Brush-stroke stripe: thin tail on the left, rising and thickening to the
   right, like the red slash under the logo. */
.soon::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.12em;
  bottom: -0.02em;
  height: 0.2em;
  background: var(--red);
  clip-path: polygon(0 86%, 100% 0, 100% 52%, 0 100%);
  transform-origin: left center;
  animation: swipe 0.8s cubic-bezier(0.7, 0, 0.2, 1) 1.15s both;
}

.pitch {
  display: grid;
  gap: 8px;
  animation: rise 0.9s ease-out 0.9s both;
}

.tagline {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lede {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-top: 1px solid rgba(244, 244, 242, 0.08);
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: rise 0.9s ease-out 1.1s both;
}

@media (min-width: 560px) {
  .coords__geo { display: inline; }
}

/* ---------------------------------------------------------------------------
   Layout — wide / landscape: full-bleed key art, content over the wet road.
   ------------------------------------------------------------------------- */

@media (min-width: 640px) and (min-aspect-ratio: 5/4) {
  .hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    max-height: none;
  }

  .hero__media img { object-position: 0% 55%; }

  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0) 14%),
      linear-gradient(to top,
        rgba(8, 9, 11, 0.96) 0%,
        rgba(8, 9, 11, 0.8) 13%,
        rgba(8, 9, 11, 0.3) 30%,
        rgba(8, 9, 11, 0) 46%);
  }

  .hero__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-top: 0;
    padding-bottom: clamp(24px, 4vh, 44px);
  }

  /* Height-capped too, so a landscape phone keeps the cars in view. */
  .soon { font-size: clamp(2.75rem, min(7.4vw, 13svh), 8rem); }
  .soon span { display: inline; }

  .pitch {
    justify-items: end;
    text-align: right;
    padding-bottom: 0.35rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  }

  .footer {
    position: relative;
    border-top-color: rgba(244, 244, 242, 0.1);
  }
}

/* Short landscape (phones on their side): the right-hand column would sit on
   the white car, so stack everything on the left and drop the long line. */
@media (min-width: 640px) and (min-aspect-ratio: 5/4) and (max-height: 539px) {
  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
  }

  .pitch {
    justify-items: start;
    text-align: left;
    padding-bottom: 0;
  }

  .lede { display: none; }
}

/* ---------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */

@keyframes settle {
  from { transform: scale(1.08); filter: brightness(0.35); }
  to   { transform: scale(1);    filter: brightness(1); }
}

@keyframes drift {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes swipe {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(236, 26, 34, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(236, 26, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(236, 26, 34, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
