:root {
  --ink: #f6f3ee;
  --ink-soft: rgba(246, 243, 238, 0.78);
  --night: #0e1217;
  --edge: #07080c;
  --serif: 'mendl-serif-variable', Georgia, 'Times New Roman', serif;
  --sans: 'mendl-serif-variable', Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html,
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.experience {

  --logo-w: clamp(200px, min(46cqw, 82cqh), 2930px);
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #7fa7d6 url('../media/sky.jpg?v=b82e84804c') center / cover no-repeat;
  touch-action: none;
  container-type: size;
}

.layers {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  opacity: 0;
  pointer-events: none;
}

.layer.is-visible {
  opacity: 1;
}

.layer.is-fading {
  transition: opacity var(--handoff, 400ms) linear;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 12, 18, 0.55) 0%, rgba(8, 12, 18, 0) 45%),
    linear-gradient(to right, rgba(8, 12, 18, 0.25) 0%, rgba(8, 12, 18, 0) 50%);
}

.sky-top {
  display: none;
}

.layout-b .layer {
  top: auto;
  bottom: 0;
  height: auto;
  aspect-ratio: 960 / 1080;
  object-fit: cover;
  object-position: 50% 50%;
}

.pan-layer {
  overflow: hidden;

  opacity: 1;
  z-index: 0;
}

.pan-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  will-change: transform;
}

.layout-b .sky-top {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;

  height: calc(100% - 112.5cqw + 26cqw);

  background:
    linear-gradient(rgba(4, 7, 11, var(--sky-dim, 0)), rgba(4, 7, 11, var(--sky-dim, 0))),
    url('../assets/sky-top.jpg?v=f230f42e3b') center bottom / 100% auto no-repeat #07080c;
  -webkit-mask: linear-gradient(to bottom, #000 calc(100% - 26cqw), transparent 100%);
  mask: linear-gradient(to bottom, #000 calc(100% - 26cqw), transparent 100%);
  pointer-events: none;
}

.pan-dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 960 / 1847;
  background: #04070b;
  opacity: 0;
  -webkit-mask: url('../assets/sky-dim-pan.png?v=383a34472d') 0 0 / 100% 100% no-repeat;
  mask: url('../assets/sky-dim-pan.png?v=383a34472d') 0 0 / 100% 100% no-repeat;
  will-change: transform, opacity;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  width: clamp(240px, 46vw, 720px);
  width: var(--logo-w);
  height: auto;
  transform: translate(-50%, -50%) scale(0.98);
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
  user-select: none;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.experience.is-ready[data-stage='sky']:not(.is-moving) .logo {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.layout-b.is-ready .logo {
  opacity: var(--logo-in, 1);
}

.layout-b.is-moving .logo {
  transition: transform 0.9s var(--ease);
}

@media (orientation: portrait) {
  .experience {
    --logo-w: clamp(200px, min(78cqw, 60cqh), 2930px);
  }
}

.cta {
  position: absolute;
  top: calc(clamp(14px, 2.6cqh, 30px) + env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(16px, 1.6cqw, 26px);
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.7s;
}

.experience.is-ready .cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.25s, 0.25s, 0s;
}

.cta__link {
  display: block;
  padding: max(1em, 16px) 0;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #d2002a;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.cta__link:last-child {
  margin-right: -0.42em;
}

.cta__link:hover,
.cta__link:focus-visible {
  color: #ff1d48;
  text-shadow: 0 0 18px rgba(255, 29, 72, 0.45);
}

.cta__link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.fog {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 82%;
  pointer-events: none;
  opacity: var(--logo-fog, 0.85);
  transition: opacity 0.8s var(--ease);
  will-change: transform;
}

.fog.is-gone,
.fog.is-off {
  opacity: 0;
}

.layout-b .fog {
  overflow: hidden;

  opacity: calc(var(--logo-fog, 0.85) * var(--fog-roof, 1));
}

.layout-b .fog:not(.is-off) {
  transition: none;
}

.layout-b .fog.is-off {
  opacity: 0;
}

.fog__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.fog__strip {
  position: absolute;
  left: 0;
  height: 100%;
  will-change: transform;
}

.hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}

.experience.is-ready[data-stage='roof']:not(.is-moving) .hotspot {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.2s, 0s;
}

.hotspot::before,
.hotspot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hotspot::before {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

.hotspot::after {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  animation: hotspot-ripple 2.2s ease-out infinite;
}

.hotspot:hover::before,
.hotspot:focus-visible::before {
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}

.hotspot:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
  border-radius: 50%;
}

@keyframes hotspot-ripple {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.7); }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}

.tee-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #050505;
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tee-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tee-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-height: 100%;
  text-align: center;
}

.tee-image {
  display: block;
  max-width: min(78vw, 400px);
  max-height: 34dvh;
  width: auto;
  height: auto;
  object-fit: contain;

}

.tee-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(86vw, 340px);
}

.tee-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
}

.tee-specs {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tee-specs li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tee-note {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.42);
}

@media (min-width: 760px) and (min-height: 480px) {
  .tee-shop {
    flex-direction: row;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    text-align: left;
  }

  .tee-image {
    max-width: min(46vw, 520px);
    max-height: 70dvh;
  }

  .tee-info {
    align-items: flex-start;
    width: 340px;
  }

  .tee-sizes {
    justify-content: flex-start;
  }
}

.tee-sizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tee-size,
.tee-cart {
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tee-size {
  min-width: 52px;
  padding: 10px 14px;
}

.tee-size:hover,
.tee-size:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.tee-size[aria-checked='true'] {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.tee-cart {
  display: block;
  align-self: stretch;
  padding: 12px 32px;
  text-align: center;
  text-decoration: none;
}

.tee-cart:not(.is-disabled):hover,
.tee-cart:not(.is-disabled):focus-visible {
  color: #000;
  background: #fff;
}

.tee-cart.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tee-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px;
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tee-overlay__close:hover,
.tee-overlay__close:focus-visible {
  opacity: 0.7;
}

.copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  pointer-events: none;
}

.copy__item {
  grid-area: 1 / 1;
  align-self: end;
  max-width: 40rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.copy__item.is-active {
  opacity: 1;
  transform: none;
  transition-duration: 0.9s, 1.1s;
}

.copy__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.copy__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.copy__text {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.nav {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) * 0.6);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.is-ready .nav {
  opacity: 1;
}

.nav__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.nav__dot[aria-current]::before {
  background: var(--ink);
  transform: scale(1.25);
}

.nav__dot:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
  border-radius: 50%;
}

.hint {
  position: absolute;
  left: 50%;

  bottom: calc(max(18px, 13cqh) + env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.is-ready:not(.has-interacted) .hint {
  opacity: 0.9;
  transition-delay: 1.6s;
}

.hint__hand {
  display: block;
  width: 38px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: hint-hand 2.6s ease-in-out infinite;
}

@keyframes hint-hand {
  0%,
  100% {
    transform: translateY(4px);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.pan-hint {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.experience.is-ready.can-pan[data-stage='roof']:not(.is-moving):not(.has-panned) .pan-hint {
  opacity: 0.9;
  transition-delay: 1.8s;
}

.pan-hint__arrow {
  font-size: 1.3em;
  line-height: 1;
  animation: pan-hint-left 1.8s var(--ease) infinite;
}

.pan-hint__arrow--right {
  animation-name: pan-hint-right;
}

@keyframes pan-hint-left {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes pan-hint-right {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(5px); opacity: 1; }
}

.waiting {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.9s linear infinite;
  transition: opacity 0.3s;
  pointer-events: none;
}

.is-waiting .waiting {
  opacity: 1;
  transition-delay: 0.25s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
  padding: 16px;
  background: var(--night);
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader__track {
  width: min(220px, 60vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.loader__bar {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s linear;
}

.loader__label {
  margin: 0;
  max-width: 36ch;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  font: 11px/1.5 ui-monospace, Menlo, monospace;
  color: #d8f5d0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .copy {
    right: 56px;
  }
}

@media (min-aspect-ratio: 21/9) {
  html,
  body {
    background: var(--edge);
  }

  .experience {
    width: calc(100vh * 21 / 9);
    width: calc(100svh * 21 / 9);
    margin: 0 auto;
  }

  .experience::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to right,
      var(--edge) 0%, rgba(7, 8, 12, 0) 9%, rgba(7, 8, 12, 0) 91%, var(--edge) 100%);
  }
}
