:root {
  --ink: #21103f;
  --plum: #37156f;
  --plum-bright: #5f2ba7;
  --gold: #f6b51b;
  --gold-light: #ffd76a;
  --cream: #fff8eb;
  --paper: #fffdf7;
  --lavender: #b7a5d4;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", "DM Sans", sans-serif;
  --mx: 50%;
  --my: 35%;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(246, 181, 27, 0.17), transparent 24rem),
    linear-gradient(135deg, #fffdf7 0%, #fff7e8 52%, #f5e7ff 100%);
  font-family: var(--body);
  font-size: 1rem;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  width: 34rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.65;
}

.ambient__glow--one {
  top: -18rem;
  right: -9rem;
  background: radial-gradient(circle, rgba(95, 43, 167, 0.23), transparent 67%);
  animation: drift-one 12s ease-in-out infinite alternate;
}

.ambient__glow--two {
  bottom: -19rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(246, 181, 27, 0.3), transparent 68%);
  animation: drift-two 16s ease-in-out infinite alternate;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 90rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: 1.5rem 0 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand__logo {
  width: 9rem;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.65rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(55, 21, 111, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.58);
  box-shadow: 0 0.6rem 2rem rgba(55, 21, 111, 0.06);
  backdrop-filter: blur(14px);
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.status__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 rgba(246, 181, 27, 0.48);
  animation: pulse 2s infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(26rem, 0.8fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 8rem);
  padding: clamp(2rem, 5vh, 5rem) 0;
}

.hero__copy {
  max-width: 47rem;
  padding-top: clamp(2rem, 8vh, 5.5rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--plum-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.headline {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6.8vw, 7.2rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.headline span {
  display: block;
  margin-top: 0.15em;
  color: var(--plum);
  font-style: italic;
  font-weight: 600;
}

.intro {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: #5d5269;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.promise {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.promise p {
  margin: 0;
}

.promise__line {
  width: 3.25rem;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold);
  transform-origin: left;
}

.memory {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(100%, 35rem);
  justify-self: end;
  padding: 2.3rem;
  perspective: 1000px;
}

.memory__frame {
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 47% 47% 2rem 2rem;
  background: var(--plum);
  box-shadow:
    0 2.2rem 5rem rgba(45, 20, 76, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.memory__image {
  width: 100%;
  aspect-ratio: 0.94;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.025);
  transition: transform 1.2s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.memory:hover .memory__image {
  transform: scale(1.075);
}

.memory__frame figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.24rem;
  padding: 4.5rem 1.6rem 1.45rem;
  color: white;
  background: linear-gradient(transparent, rgba(27, 10, 53, 0.9));
}

.memory__frame figcaption span {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.memory__frame figcaption strong {
  font-size: 1rem;
  font-weight: 500;
}

.memory__halo {
  position: absolute;
  z-index: 0;
  inset: 9% 5% 3%;
  border-radius: 48%;
  background: linear-gradient(135deg, var(--gold), #ffdc78 50%, var(--plum-bright));
  filter: blur(1px);
  transform: rotate(5deg);
  animation: breathe 5s ease-in-out infinite;
}

.memory__orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(55, 21, 111, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.memory__orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.3rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 1.4rem rgba(246, 181, 27, 0.75);
}

.memory__orbit--outer {
  inset: -2% -3%;
  animation: orbit 22s linear infinite;
}

.memory__orbit--inner {
  inset: 7% 5%;
  border-color: rgba(246, 181, 27, 0.25);
  animation: orbit-reverse 16s linear infinite;
}

.memory__seal {
  position: absolute;
  z-index: 3;
  top: 8%;
  right: -0.2rem;
  width: 7.3rem;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 1px solid rgba(55, 21, 111, 0.12);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 1.2rem 2.5rem rgba(55, 21, 111, 0.16);
  backdrop-filter: blur(12px);
  text-align: center;
  transform: rotate(8deg);
  animation: seal-float 4s ease-in-out infinite;
}

.memory__seal span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory__seal strong {
  color: var(--plum);
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  border-top: 1px solid rgba(55, 21, 111, 0.12);
  padding-top: 0.9rem;
}

.footer p {
  margin: 0;
  color: #776c80;
  font-size: 0.76rem;
  white-space: nowrap;
}

.footer__marquee {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.footer__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1rem;
  color: var(--plum);
  font-family: var(--display);
  font-size: 1rem;
  animation: marquee 18s linear infinite;
}

.footer__track i {
  color: var(--gold);
  font-family: sans-serif;
  font-size: 0.65rem;
  font-style: normal;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.3rem);
}

.is-ready [data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 800ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.is-ready [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.is-ready [data-reveal]:nth-child(3) { transition-delay: 180ms; }
.is-ready [data-reveal]:nth-child(4) { transition-delay: 270ms; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(246, 181, 27, 0.48); }
  65%, 100% { box-shadow: 0 0 0 0.65rem rgba(246, 181, 27, 0); }
}

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-reverse { to { transform: rotate(-360deg); } }

@keyframes breathe {
  0%, 100% { transform: rotate(5deg) scale(0.98); opacity: 0.82; }
  50% { transform: rotate(3deg) scale(1.04); opacity: 1; }
}

@keyframes seal-float {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-0.55rem); }
}

@keyframes drift-one {
  to { transform: translate(-4rem, 5rem) scale(1.12); }
}

@keyframes drift-two {
  to { transform: translate(5rem, -3rem) scale(0.92); }
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 2rem, 42rem);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.75rem 0 3rem;
  }

  .hero__copy {
    padding-top: 0;
  }

  .headline {
    max-width: 11ch;
    font-size: clamp(3.35rem, 13vw, 5.5rem);
  }

  .memory {
    width: min(100%, 31rem);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 1.5rem, 34rem);
    padding-top: 0.7rem;
  }

  .brand {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand__logo {
    width: 7.25rem;
  }

  .status {
    max-width: 11rem;
    min-height: auto;
    padding: 0.58rem 0.75rem;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .eyebrow {
    margin-bottom: 0.9rem;
    font-size: 0.69rem;
  }

  .headline {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .intro {
    margin-top: 1.5rem;
    line-height: 1.55;
  }

  .promise {
    align-items: flex-start;
  }

  .promise__line {
    width: 2rem;
    margin-top: 0.55rem;
  }

  .memory {
    padding: 1.25rem;
  }

  .memory__seal {
    right: -0.3rem;
    width: 6rem;
  }

  .memory__seal strong {
    font-size: 1.35rem;
  }

  .memory__frame figcaption {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .footer p {
    padding-bottom: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
