:root {
  --mw-bg: #f1eee8;
  --mw-surface: rgba(255, 255, 255, 0.42);
  --mw-text: #242522;
  --mw-muted: #6f706b;
  --mw-signum: #9a7444;
  --mw-line: rgba(79, 72, 61, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mw-bg);
  color: var(--mw-text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

button { font: inherit; }

.intro {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(245,241,234,.42)),
    var(--mw-bg);
}

.intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: clamp(14px, 2.6vw, 34px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: clamp(24px, 4vw, 58px);
  background: var(--mw-surface);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 30px 90px rgba(73,61,43,.08);
  backdrop-filter: blur(30px) saturate(110%);
}

.intro__light {
  position: absolute;
  z-index: -3;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(24px);
  opacity: .64;
}

.intro__light--one {
  top: -28%;
  left: -13%;
  background: radial-gradient(circle, rgba(255,255,255,.98), rgba(229,210,177,.16) 56%, transparent 72%);
}

.intro__light--two {
  right: -18%;
  bottom: -34%;
  background: radial-gradient(circle, rgba(231,205,165,.44), rgba(255,255,255,.12) 58%, transparent 72%);
}

.intro__grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .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='.26'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero {
  width: min(100%, 980px);
  text-align: center;
  transform: translateY(1.5vh);
}

.thought {
  margin: 0;
  color: var(--mw-text);
  font-size: clamp(2.15rem, 5.25vw, 5.9rem);
  font-weight: 410;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(38px) scale(.985);
}

.signum {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(26px, 4vh, 46px);
  color: var(--mw-signum);
  opacity: 0;
  filter: blur(14px);
  transform: translateY(18px) scale(.92);
}

.signum img {
  display: block;
  width: clamp(58px, 6vw, 82px);
  height: auto;
  filter: sepia(.16) saturate(.74) contrast(.94);
}

.signum span {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
}

.attribution {
  margin: clamp(24px, 4vh, 42px) 0 0;
  color: var(--mw-muted);
  font-size: clamp(.78rem, 1.2vw, .96rem);
  font-weight: 420;
  letter-spacing: .055em;
  opacity: 0;
  transform: translateY(10px);
}

.language,
.domain,
.continue,
.replay {
  position: absolute;
  z-index: 2;
  opacity: 0;
}

.language {
  top: clamp(32px, 5vw, 62px);
  right: clamp(34px, 5.5vw, 74px);
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mw-muted);
  font-size: .7rem;
  letter-spacing: .16em;
}

.language__item {
  display: inline-block;
  border: 0;
  padding: 4px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.language__item.is-active { color: var(--mw-text); font-weight: 650; }
.language__item:disabled { cursor: default; opacity: .48; }

.domain {
  left: clamp(34px, 5.5vw, 74px);
  bottom: clamp(34px, 5vw, 64px);
  color: var(--mw-muted);
  font-size: .72rem;
  letter-spacing: .16em;
}

.continue {
  left: 50%;
  bottom: clamp(26px, 4vw, 50px);
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 8px 16px;
  background: transparent;
  color: var(--mw-muted);
  cursor: pointer;
  transform: translate(-50%, 8px);
}

.continue span {
  font-size: .63rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.continue svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  animation: breathe 2.4s ease-in-out infinite;
}

.replay {
  right: clamp(34px, 5.5vw, 74px);
  bottom: clamp(34px, 5vw, 64px);
  border: 0;
  border-bottom: 1px solid var(--mw-line);
  padding: 3px 0;
  background: transparent;
  color: var(--mw-muted);
  font-size: .66rem;
  letter-spacing: .1em;
  cursor: pointer;
}

.is-ready .thought {
  animation: thoughtIn 1.8s cubic-bezier(.2,.72,.22,1) .55s forwards;
}

.is-ready .signum {
  animation: signumIn 1.65s cubic-bezier(.2,.72,.22,1) 3.25s forwards;
}

.is-ready .attribution {
  animation: quietIn 1.2s ease 4.75s forwards;
}

.is-ready .language,
.is-ready .domain,
.is-ready .continue,
.is-ready .replay {
  animation: quietIn 1.2s ease 5.6s forwards;
}

@keyframes thoughtIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes signumIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes quietIn {
  to { opacity: 1; transform: translate(0, 0); }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: .58; }
  50% { transform: translateY(4px); opacity: 1; }
}

.after-intro {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: 64px 24px;
  background: #e9e4dc;
  color: #4c4b46;
  font-size: clamp(1.15rem, 2.3vw, 2rem);
}

@media (max-width: 640px) {
  .intro { padding: 28px; }
  .intro::before { inset: 10px; border-radius: 26px; }
  .hero { transform: translateY(-1vh); }
  .thought { font-size: clamp(2.05rem, 11vw, 3.65rem); line-height: 1.03; }
  .language { top: 28px; right: 28px; }
  .domain { left: 28px; bottom: 29px; }
  .replay { right: 28px; bottom: 29px; }
  .continue { bottom: 68px; }
  .attribution { max-width: 270px; margin-inline: auto; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thought, .signum, .attribution, .language, .domain, .continue, .replay {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }
  .continue svg { animation: none; }
}
