/* ==========================================================================
   Pages — Split hero, mist, plain page for worldclassmemory.com.
   Built from the same pieces as yanjaa.com/css/pages.css: the split hero
   (form left, a huge photo right), the jewel-toned form card, the mist,
   the ulzii, and the plain page.
   ========================================================================== */

/* the whole site is the dark stage, so the page never shows cream below a
   short page or during load */
body {
  background: #04262e;
}

/* ---------- Split hero — form left, a huge photo right ---------- */
.hero {
  position: relative;
  background: #04262e;
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero--split {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}


.hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 6.5rem clamp(1.5rem, 5vw, 5rem) 7.5rem;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.hero__headline {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.hero__headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--blush-light);
}

.hero__subhead {
  color: var(--text-on-dark);
  max-width: 50ch;
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  line-height: 1.65;
}

/* the waitlist form sits on a jewel-toned card with grain and glow: the one
   bright object on the dark stage */
.hero__card {
  position: relative;
  width: 100%;
  max-width: 620px;
  padding: 1.6rem 1.75rem 1.4rem;
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 214, 229, 0.38), transparent 55%),
    radial-gradient(ellipse at 85% 95%, rgba(249, 207, 2, 0.32), transparent 50%),
    linear-gradient(160deg, #0d5c4b, #015197 60%, #006675);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/grain-2.png') repeat;
  background-size: 128px 128px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
}

.hero__card > * { position: relative; }

/* keyboard users: the card brightens a touch while a field inside has focus */
.hero__card:focus-within {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

@media (forced-colors: active) {
  .hero__card { border: 1px solid CanvasText; }
  .hero__card::before { display: none; }
}

.hero__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  width: 100%;
}

.hero__input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--deep-forest);
}

.hero__input::placeholder {
  color: rgba(13, 92, 75, 0.55);
}

.hero__input:focus { background: #fff; }

.hero__input:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

/* the one button on the page: real gold, dark type, a glow, a shadow */
.hero__submit {
  flex: 0 0 auto;
  color: #04262e;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 26px rgba(249, 207, 2, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero__submit::after {
  background: linear-gradient(160deg, #ffe066 0%, #f9cf02 45%, #f5a623 100%);
}

.hero__submit:hover {
  color: #04262e;
}

.hero__proof {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  color: #fff;
  margin-top: 0.9rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__proof-sub {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: 0.85;
}

/* three quiet facts under the card, in the about-preview stat voice */
.hero__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 620px;
  width: 100%;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 9rem;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--champagne);
  white-space: nowrap;
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

/* the photo: full height, dissolving into the stage on every edge so there
   is no seam between it, the copy, and the footer line */
.hero--split__photo {
  position: relative;
  overflow: hidden;
  /* reach under the copy column so the dissolve is long and there is no
     column seam; the copy sits above it (z-index 3) */
  margin-left: -8%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 16%, #000 36%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 8%, #000 18%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.6) 10%, #000 26%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 16%, #000 36%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 8%, #000 18%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.6) 10%, #000 26%);
  mask-composite: intersect;
}

.hero--split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 22%;
  display: block;
}

.hero--split__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/grain-2.png') repeat;
  background-size: 128px 128px;
  mix-blend-mode: soft-light;
  opacity: 0.2;
  z-index: 1;
}

.hero__caption {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: 6.5rem;
  z-index: 2;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* the ulzii, big and faint, behind the copy */
.hero__knot {
  position: absolute;
  left: -8%;
  top: 4%;
  width: min(44vw, 520px);
  aspect-ratio: 100 / 139.4;
  background: var(--lavender);
  opacity: 0.07;
  -webkit-mask: url('../images/ulzii-2.svg') center / contain no-repeat;
  mask: url('../images/ulzii-2.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Mist — soft blurred blobs drifting low over the dark stage,
   spilling past the section edge into the footer ---------- */
.mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20rem;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.mist__blob {
  position: absolute;
  bottom: 0;
  width: 46rem;
  height: 13rem;
  border-radius: 50%;
  filter: blur(40px);
  animation: mist-drift 46s ease-in-out infinite alternate;
}

.mist__blob--1 {
  left: -12%;
  background: radial-gradient(ellipse at center, rgba(245, 240, 235, 0.09), transparent 70%);
}

.mist__blob--2 {
  left: 28%;
  bottom: 3rem;
  background: radial-gradient(ellipse at center, rgba(212, 176, 106, 0.1), transparent 70%);
  animation-duration: 62s;
  animation-direction: alternate-reverse;
}

.mist__blob--3 {
  left: 58%;
  background: radial-gradient(ellipse at center, rgba(245, 240, 235, 0.06), transparent 70%);
  animation-duration: 54s;
  animation-delay: -20s;
}

@keyframes mist-drift {
  from { transform: translateX(-10%); }
  to   { transform: translateX(14%); }
}

@media (prefers-reduced-motion: reduce) {
  .mist__blob { animation: none; }
}

/* ---------- Plain page (confirmation, 404) ---------- */
.plain {
  position: relative;
  background: #04262e;
  color: var(--text-on-dark);
  min-height: 100dvh;
  padding: 9rem 0 calc(var(--section-padding) + 7rem);
  overflow: hidden;
}

.plain__inner {
  position: relative;
  z-index: 3;
  max-width: 60ch;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.plain__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.plain__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--blush-light);
}

.plain__lede {
  color: var(--text-muted-dark);
  margin-bottom: 2.5rem;
}

.plain h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 2.25rem 0 0.6rem;
}

.plain p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.plain a:not(.btn) {
  color: var(--blush-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 214, 229, 0.4);
}

.plain a:not(.btn):hover { border-bottom-color: currentColor; }

.plain .btn { margin-top: 1.5rem; }

.plain__updated {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

/* the ulzii, small and quiet, just above the floating footer line */
.plain__ulzii,
.hero__ulzii {
  position: absolute;
  left: 50%;
  bottom: 5.75rem;
  translate: -50% 0;
  z-index: 3;
  width: 56px;
  aspect-ratio: 100 / 139.4;
  background: var(--text-on-dark);
  opacity: 0.16;
  -webkit-mask: url('../images/ulzii-2.svg') center / contain no-repeat;
  mask: url('../images/ulzii-2.svg') center / contain no-repeat;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* the form stays on the first screen: copy first, the photo after it,
     fading up into the stage */
  .hero--split { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 6.5rem clamp(1.25rem, 5vw, 3rem) 2.5rem; }
  .hero__headline { max-width: 14ch; }
  .hero--split__photo img { object-position: 34% 30%; }
  .hero--split__photo {
    aspect-ratio: 4 / 3;
    margin: -4rem 0 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 18%, #000 32%, #000 70%, rgba(0, 0, 0, 0.6) 86%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 18%, #000 32%, #000 70%, rgba(0, 0, 0, 0.6) 86%, transparent 100%);
    mask-composite: add;
  }
  .hero__content { padding-bottom: 2.5rem; }
  .hero__caption { left: clamp(1.25rem, 5vw, 3rem); right: clamp(1.25rem, 5vw, 3rem); bottom: 6.5rem; text-align: right; }
  .hero__knot { left: auto; right: -14%; top: auto; bottom: 8%; width: 56vw; }
  .hero__ulzii { display: none; }
}

@media (max-width: 600px) {
  .hero__content { padding-top: 5.75rem; }
  .hero__headline { font-size: clamp(2.2rem, 10.5vw, 2.9rem); margin-bottom: 0.9rem; }
  .hero__subhead { font-size: 0.98rem; line-height: 1.5; margin-bottom: 1.25rem; }
  .hero__card { padding: 1.25rem 1.1rem 1.15rem; border-radius: 1.1rem; }
  .hero__form { flex-direction: column; gap: 0.6rem; }
  .hero__input, .hero__submit, .hero__submit-wrap { width: 100%; }
  .hero__input { flex: 0 0 auto; padding: 0.85rem 1.1rem; }
  .hero__submit { padding: 0.9rem 1.5rem; }
  .hero__proof-sub { font-size: 0.72rem; letter-spacing: 0.12em; }
  /* "Start to finish" takes the first row on its own; the two numbers share the next */
  .hero__stat:first-child { flex-basis: 100%; }
  .hero__stat { flex: 1 1 7rem; }
  .hero__stat-num { font-size: 1.35rem; }
}
