:root {
  --font-futura: "futura-pt", "Futura PT", Futura, "Century Gothic", sans-serif;
  --paper: #f2f1ed;
  --ink: #101010;
  --pink: #ff13ae;
  --line: rgba(16, 16, 16, 0.24);
  --header-height: 72px;
  font-family: var(--font-futura);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 48px);
  color: var(--ink);
  transition: color 180ms ease;
}

.site-header.is-over-dark {
  color: #fff;
}

.wordmark {
  display: block;
  width: clamp(5.8rem, 8vw, 7rem);
  aspect-ratio: 4840.7 / 760;
  text-decoration: none;
}

.wordmark__art {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("public/brand/areisora-wordmark.svg") center / contain no-repeat;
  mask: url("public/brand/areisora-wordmark.svg") center / contain no-repeat;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}

.site-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page-progress {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(16, 16, 16, 0.08);
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pink);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
}

.scrub-section {
  position: relative;
  height: 420svh;
}

.product-scrub {
  height: 520svh;
  background: #fff;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.media-frame,
.media-frame video,
.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-frame video,
.media-frame img {
  display: block;
  object-fit: cover;
}

.hero-media {
  background-image:
    var(--hero-bg-left-gradient, linear-gradient(#fff, #fff)),
    var(--hero-bg-right-gradient, linear-gradient(#fff, #fff));
  background-position: left top, right top;
  background-repeat: no-repeat;
  background-size: 50% 100%, 50% 100%;
}

.hero-media video {
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.hero-mobile-fallback {
  display: none;
}

@media (min-width: 721px) {
  .hero-media video {
    inset: auto;
    top: 50%;
    left: 50%;
    width: auto;
    height: 130%;
    max-width: none;
    object-fit: fill;
    object-position: center center;
    transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 1.2%,
      #000 98.8%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 1.2%,
      #000 98.8%,
      transparent 100%
    );
  }
}

.media-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 34%,
    transparent 70%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
}

.stage-label {
  position: absolute;
  z-index: 5;
  display: flex;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stage-label--top {
  top: calc(var(--header-height) + 18px);
  right: clamp(20px, 3vw, 48px);
  left: clamp(20px, 3vw, 48px);
  justify-content: space-between;
}

.hero-intro,
.hero-reveal,
.product-heading,
.product-details {
  position: absolute;
  z-index: 5;
}

.hero-intro {
  top: 50%;
  left: clamp(20px, 7vw, 112px);
  transform: translateY(-50%);
  opacity: calc(1 - min(1, var(--hero-progress, 0) * 2.8));
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-intro h1,
.product-heading h2 {
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero-intro h1 em,
.product-heading h2 em {
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.hero-reveal {
  right: clamp(20px, 6vw, 96px);
  bottom: clamp(70px, 12vh, 130px);
  text-align: right;
  opacity: clamp(0, calc((var(--hero-progress, 0) - 0.7) * 4), 1);
  transform: translateY(calc((1 - var(--hero-progress, 0)) * 28px));
}

.reveal-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: clamp(20px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: clamp(0, calc(1 - var(--hero-progress, 0) * 4), 1);
}

.scroll-cue__line {
  display: block;
  width: 60px;
  height: 1px;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.25);
}

.scroll-cue__line::after {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  content: "";
  animation: cue 1.7s ease-in-out infinite;
  transform-origin: left;
}

@keyframes cue {
  0% {
    transform: translateX(-105%);
  }
  55%,
  100% {
    transform: translateX(105%);
  }
}

.stage-progress {
  position: absolute;
  z-index: 6;
  right: clamp(20px, 3vw, 48px);
  bottom: 30px;
  left: clamp(118px, 12vw, 180px);
  height: 1px;
  background: var(--line);
  transition: opacity 180ms ease;
}

.stage-progress.is-complete {
  opacity: 0;
}

.stage-progress span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(var(--hero-progress, 0));
  transform-origin: left;
}

.media-status {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: opacity 250ms ease;
}

.media-status.is-ready {
  opacity: 0;
  pointer-events: none;
}

.media-status.is-error {
  max-width: min(90vw, 520px);
  color: #fff;
  background: #9c001f;
  line-height: 1.5;
  text-align: center;
}

.product-stage {
  color: var(--ink);
  background: #fff;
}

.product-media {
  inset: 0;
  background: #fff;
}

.product-media video,
.product-media img {
  object-fit: contain;
  object-position: center center;
}

.product-fallback {
  z-index: 0;
}

.product-media video {
  z-index: 1;
  opacity: 0;
  background: #fff;
  transform: none;
  visibility: hidden;
  will-change: opacity;
}

.product-media video.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.product-kicker {
  mix-blend-mode: multiply;
}

.product-heading {
  top: 50%;
  left: clamp(20px, 5vw, 80px);
  max-width: 720px;
  pointer-events: none;
  transform: translateY(-50%);
  opacity: clamp(0, calc(1 - var(--product-progress, 0) * 3.5), 1);
}

.product-heading h2 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.83;
}

.product-details {
  right: clamp(20px, 5vw, 80px);
  bottom: clamp(70px, 10vh, 110px);
  display: grid;
  width: min(680px, calc(100vw - 40px));
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 52px);
  opacity: clamp(0, calc((var(--product-progress, 0) - 0.76) * 5), 1);
  transform: translateY(calc((1 - var(--product-progress, 0)) * 28px));
}

.product-details p {
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.stage-progress--dark span {
  transform: scaleX(var(--product-progress, 0));
}

.media-status--dark {
  border: 1px solid rgba(16, 16, 16, 0.12);
}

.about {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 64px) clamp(20px, 5vw, 80px) 44px;
  color: #f6f4ee;
  background: var(--ink);
  grid-template-columns: 1fr minmax(280px, 2.8fr);
  grid-template-rows: 1fr auto;
  gap: 48px;
}

.about-index {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.about-copy {
  align-self: center;
}

.about-copy h2 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-style: oblique 12deg;
  font-synthesis: weight style;
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.persona-accent {
  color: #e836c2;
}

.about-meta {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 244, 238, 0.28);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 180ms ease, transform 180ms ease;
}

.instagram-link svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.instagram-link__dot {
  fill: currentColor;
  stroke: none;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: #e836c2;
  transform: translateY(-1px);
}

.noscript-note {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 720px) {
  :root {
    --header-height: 60px;
  }

  .hero-mobile-fallback {
    z-index: 0;
    display: block;
    object-fit: cover;
    object-position: center center;
  }

  .hero-media video {
    z-index: 1;
    opacity: 0;
    background: transparent;
    transition: opacity 140ms linear;
  }

  .hero-media video.is-frame-ready {
    opacity: 1;
  }

  .scrub-section {
    height: 430svh;
  }

  .product-scrub {
    height: 520svh;
  }

  .hero-intro {
    top: 44%;
  }

  .hero-intro h1 {
    font-size: clamp(3.3rem, 17vw, 5.8rem);
  }

  .hero-reveal {
    right: 20px;
    bottom: 82px;
  }

  .reveal-title {
    font-size: clamp(2.1rem, 11vw, 3.8rem);
  }

  .product-heading {
    top: 31%;
  }

  .product-heading h2 {
    font-size: clamp(2.75rem, 13vw, 4.6rem);
  }

  .product-details {
    right: 20px;
    bottom: 76px;
    left: 20px;
    width: auto;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px 20px;
  }

  .product-details p:last-child {
    display: none;
  }

  .stage-progress {
    right: 20px;
    left: 94px;
  }

  .about {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .about-copy {
    align-self: center;
  }

  .about-meta {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scrub-section,
  .product-scrub {
    height: 100svh;
  }

  .media-frame video {
    display: none;
  }

  .hero-media {
    background-image: url("public/media/meta-angel-scroll-poster.png");
    background-position: center;
    background-size: cover;
  }

  .hero-intro,
  .hero-reveal,
  .product-heading,
  .product-details {
    opacity: 1;
    transform: none;
  }

  .hero-intro,
  .product-heading {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .media-status {
    display: none;
  }

  .scroll-cue__line::after {
    animation: none;
  }
}
