:root {
  color-scheme: dark;
  --ivory: #fff9ec;
  --ivory-soft: rgba(255, 249, 236, 0.76);
  --gold: #f2c978;
  --gold-bright: #ffe1a1;
  --ink: #080c0d;
  --line: rgba(255, 249, 236, 0.28);
  --px: 0;
  --py: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.experience {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #090d0e;
}

.scenes,
.scene,
.light-field,
.grain {
  position: absolute;
  inset: 0;
}

.scenes {
  z-index: -4;
  overflow: hidden;
}

.scene {
  inset: -3.5%;
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.075) translate3d(calc(var(--px) * -7px), calc(var(--py) * -5px), 0);
  transition:
    opacity 2200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 7000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 2200ms ease;
  will-change: opacity, transform;
}

.scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 6, 6, 0.84) 0%, rgba(3, 6, 6, 0.48) 48%, rgba(3, 6, 6, 0.18) 75%, rgba(3, 6, 6, 0.38) 100%),
    linear-gradient(0deg, rgba(3, 6, 6, 0.64) 0%, transparent 46%, rgba(3, 6, 6, 0.18) 100%);
}

.scene--tuscany {
  background-image: url("/assets/tuscany.jpg");
  background-position: 54% center;
  filter: saturate(0.95) contrast(1.03) brightness(0.76);
}

.scene--one {
  background-image: url("/assets/the-one.jpg");
  background-position: center 46%;
  filter: saturate(0.8) contrast(1.07) brightness(0.64) blur(0.7px);
}

.scene--nebula {
  background-image: url("/assets/ngc2313.jpg");
  background-position: 56% center;
  filter: saturate(0.86) contrast(1.05) brightness(0.68);
}

.scene--stars {
  background-image: url("/assets/stars.jpg");
  background-position: center 44%;
  filter: saturate(0.78) contrast(1.12) brightness(0.68);
}

.experience[data-scene="0"] .scene--tuscany,
.experience[data-scene="1"] .scene--one,
.experience[data-scene="2"] .scene--nebula,
.experience[data-scene="3"] .scene--stars {
  opacity: 1;
  transform: scale(1.02) translate3d(calc(var(--px) * 4px), calc(var(--py) * 3px), 0);
}

.light-field {
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(72% + var(--px) * 2%) calc(30% + var(--py) * 2%), rgba(255, 206, 117, 0.2), transparent 27%),
    radial-gradient(circle at 48% 120%, rgba(20, 88, 78, 0.22), transparent 44%);
  mix-blend-mode: screen;
  transition: opacity 1800ms ease;
}

.experience[data-scene="2"] .light-field,
.experience[data-scene="3"] .light-field {
  opacity: 0.62;
}

.grain {
  z-index: 7;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.34) 0 0.45px, transparent 0.6px 3px),
    repeating-radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.42) 0 0.5px, transparent 0.75px 4px);
  background-size: 5px 7px, 7px 5px;
  mix-blend-mode: soft-light;
}

.masthead {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.35rem, 3.2vw, 3rem) clamp(1.4rem, 5vw, 5.4rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand__mark {
  width: 3.15rem;
  height: 3.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 249, 236, 0.34);
  border-radius: 50%;
  background: rgba(5, 8, 9, 0.54);
  box-shadow: 0 0 2rem rgba(255, 220, 148, 0.11);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.brand__name {
  font-size: 0.71rem;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.making {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivory-soft);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.making__pulse {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0.9rem rgba(255, 225, 161, 0.9);
  animation: breathe 2400ms ease-in-out infinite;
}

.message {
  z-index: 2;
  align-self: center;
  width: min(62rem, calc(100vw - 3rem));
  margin-left: clamp(1.5rem, 8vw, 9.5rem);
  padding-top: 2.5rem;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.5vw, 1.24rem);
  font-style: italic;
  letter-spacing: 0.015em;
  opacity: 0.94;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", Georgia, serif;
  font-size: clamp(4rem, 8.4vw, 9.2rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.057em;
  text-wrap: balance;
  text-shadow: 0 5px 32px rgba(0, 0, 0, 0.42);
}

h1 em {
  display: block;
  color: var(--gold-bright);
  font-weight: 400;
}

.purpose {
  display: grid;
  gap: 0.2rem;
  max-width: 47rem;
  margin: clamp(1.6rem, 3.2vw, 2.8rem) 0 0;
  color: rgba(255, 249, 236, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.06rem, 1.65vw, 1.5rem);
  line-height: 1.32;
}

.purpose strong {
  color: var(--ivory);
  font-weight: 400;
}

.arrival {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 3.4vw, 3rem);
  color: rgba(255, 249, 236, 0.8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.arrival__line {
  width: 3.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(242, 201, 120, 0.12));
}

.symbol {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 249, 236, 0.28);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * 9px), calc(var(--py) * 8px), 0) scale(0.82);
  transition:
    opacity 1800ms ease,
    transform 2600ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 1.5rem 5rem rgba(0, 0, 0, 0.42),
    inset 0 0 2rem rgba(255, 255, 255, 0.08);
}

.symbol::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  box-shadow: inset 0 0 0 0.6rem rgba(7, 10, 11, 0.18);
}

.symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.symbol--heart {
  right: clamp(2rem, 7vw, 7rem);
  bottom: clamp(5.5rem, 11vh, 9rem);
  width: clamp(8rem, 15vw, 14rem);
  aspect-ratio: 1;
}

.symbol--yin {
  top: clamp(7rem, 16vh, 11rem);
  right: clamp(2rem, 8vw, 8rem);
  width: clamp(6.5rem, 11vw, 10rem);
  aspect-ratio: 1;
  filter: contrast(1.04);
}

.experience[data-scene="2"] .symbol--heart {
  opacity: 0.78;
  transform: translate3d(calc(var(--px) * 9px), calc(var(--py) * 8px), 0) scale(1);
}

.experience[data-scene="3"] .symbol--yin {
  opacity: 0.34;
  transform: translate3d(calc(var(--px) * 9px), calc(var(--py) * 8px), 0) scale(1);
}

.journey {
  position: absolute;
  z-index: 5;
  right: clamp(1.45rem, 3vw, 3rem);
  top: 50%;
  display: grid;
  gap: 0.75rem;
  transform: translateY(-50%);
}

.journey__step {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.journey__step::before,
.journey__step::after {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  transition: 500ms ease;
}

.journey__step::before {
  width: 0.3rem;
  height: 0.3rem;
  background: rgba(255, 249, 236, 0.54);
}

.journey__step::after {
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid rgba(255, 249, 236, 0);
}

.journey__step:hover::before,
.journey__step:focus-visible::before,
.journey__step.is-active::before {
  background: var(--gold-bright);
  box-shadow: 0 0 0.8rem rgba(255, 225, 161, 0.7);
}

.journey__step:focus-visible {
  outline: none;
}

.journey__step:focus-visible::after,
.journey__step.is-active::after {
  border-color: rgba(255, 249, 236, 0.42);
}

.footer {
  position: absolute;
  z-index: 5;
  right: clamp(1.4rem, 5vw, 5.4rem);
  bottom: clamp(1.25rem, 3vw, 2.8rem);
  left: clamp(1.4rem, 5vw, 5.4rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(255, 249, 236, 0.52);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer a {
  text-decoration-color: rgba(255, 249, 236, 0.2);
  text-underline-offset: 0.25rem;
  transition: color 300ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ivory);
}

@keyframes breathe {
  0%, 100% { opacity: 0.48; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 760px) {
  .scene::after {
    background:
      linear-gradient(0deg, rgba(3, 6, 6, 0.84) 0%, rgba(3, 6, 6, 0.46) 59%, rgba(3, 6, 6, 0.3) 100%),
      linear-gradient(90deg, rgba(3, 6, 6, 0.52), rgba(3, 6, 6, 0.18));
  }

  .scene--tuscany { background-position: 61% center; }
  .scene--one { background-position: 66% center; }
  .scene--nebula { background-position: 59% center; }

  .brand__mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .brand__name {
    font-size: 0.62rem;
  }

  .making {
    gap: 0.48rem;
    font-size: 0.55rem;
    letter-spacing: 0.13em;
  }

  .message {
    align-self: end;
    width: auto;
    margin: 0;
    padding: 0 4.2rem 7.1rem 1.45rem;
  }

  .kicker {
    margin-bottom: 0.8rem;
    font-size: 0.97rem;
  }

  h1 {
    font-size: clamp(3.4rem, 15.8vw, 5.15rem);
    line-height: 0.9;
    letter-spacing: -0.052em;
  }

  .purpose {
    max-width: 29rem;
    margin-top: 1.45rem;
    font-size: 1.02rem;
  }

  .arrival {
    margin-top: 1.65rem;
  }

  .symbol--heart {
    right: 1.4rem;
    bottom: 3.2rem;
    width: 6.8rem;
  }

  .symbol--yin {
    top: 7.2rem;
    right: 1.5rem;
    width: 5.7rem;
  }

  .journey {
    right: 1rem;
    gap: 0.58rem;
  }

  .footer {
    right: auto;
    bottom: 1.2rem;
    left: 1.45rem;
    gap: 0.65rem;
    font-size: 0.53rem;
  }

  .footer span:last-child,
  .footer span[aria-hidden="true"] {
    display: none;
  }
}

@media (max-height: 690px) and (min-width: 761px) {
  .message { transform: scale(0.84); transform-origin: left center; }
  .symbol--heart { bottom: 4.6rem; }
}

@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;
  }
}

