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

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Background photo: whole picture across the width, soft edges */
.bg {
  position: fixed;
  inset: -3%;
  overflow: hidden;
  will-change: transform;
}
.bg__photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  opacity: .85;
  filter: grayscale(1) brightness(1.25) contrast(1.05);
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-composite: intersect;
}
/* Tall screens (phones): fill the height, crop the sides */
@media (max-aspect-ratio: 4/3) {
  .bg__photo { width: auto; height: 100%; }
}

/* Wind streaks */
.wind {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Vignette for legibility */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.5) 100%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
}

.logo { margin: 0; line-height: 0; }
.logo__svg {
  width: min(78vw, 900px);
  height: auto;
  display: block;
  overflow: visible;
  fill: #fff;
  fill-rule: evenodd;
}

/* ---- Intro: unsheared AW -> wiggle in the wind -> tops slide right (shear) ---- */
.letter {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: wiggle 1.1s ease-in-out .6s both;
}
.letter--w { animation-delay: .7s; animation-duration: 1.15s; }

.cut-top {
  transform: translateX(-52px);           /* aligned = unsheared */
  animation: shear .9s cubic-bezier(.3, 1.35, .45, 1) 1.9s forwards;
}
.letter--w .cut-top { animation-delay: 1.98s; }

.logo__text {
  opacity: 0;
  animation: fade-in .8s ease-out 2.6s forwards;
}

@keyframes wiggle {
  0%   { transform: rotate(0); }
  15%  { transform: rotate(-2.2deg) translateX(-2px); }
  32%  { transform: rotate(1.8deg)  translateX(2px); }
  48%  { transform: rotate(-1.3deg); }
  64%  { transform: rotate(.9deg); }
  80%  { transform: rotate(-.4deg); }
  100% { transform: rotate(0); }
}
@keyframes shear {
  to { transform: translateX(0); }
}
@keyframes fade-in {
  to { opacity: 1; }
}

.contact {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: .7em 1.2em .7em calc(1.2em + .3em);
  border: 1px solid rgba(255,255,255,.3);
  transition: background .25s, color .25s, border-color .25s;
}
.contact:hover, .contact:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg { transform: none !important; }
  .letter, .cut-top, .logo__text { animation: none; transform: none; opacity: 1; }
}
