:root {
  /* Compliance language: IBM Plex Sans Condensed** from Google Fonts for tiny sequence labels; Inter** from Google Fonts for body copy; Space Grotesk** from Google Fonts for the continua.club wordmark. Opening prompt includes “continua.club” wordmark sitting inside a translucent irregular bento cluster. On load the path draws from the dot. */
  --peach: #FFE1C8;
  --coral: #FF6F61;
  --cyan: #14D4E8;
  --violet: #22143D;
  --amber: #FFB84D;
  --lavender: #B79CFF;
  --opal: #F7F0E8;
  --blue: #3456FF;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --condensed: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--peach);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--violet);
  font-family: var(--body);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 184, 77, .58), transparent 27rem),
    radial-gradient(circle at 88% 18%, rgba(183, 156, 255, .56), transparent 34rem),
    radial-gradient(circle at 58% 46%, rgba(20, 212, 232, .22), transparent 32rem),
    linear-gradient(134deg, #FFE1C8 0%, #F7F0E8 38%, #B79CFF 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255, 111, 97, .16) 22%, transparent 31% 52%, rgba(20, 212, 232, .18) 57%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(52, 86, 255, .05) 0 1px, transparent 1px 78px);
  filter: blur(.2px);
  mix-blend-mode: soft-light;
  z-index: 0;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34, 20, 61, .10) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255, 111, 97, .14) 0 1px, transparent 1.5px),
    linear-gradient(45deg, transparent 48%, rgba(247, 240, 232, .18) 50%, transparent 52%);
  background-size: 34px 34px, 47px 47px, 18px 18px;
}

.lamp {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(34px);
}

.lamp-one { left: -6rem; top: 38vh; background: rgba(255, 184, 77, .42); }
.lamp-two { right: -8rem; bottom: 2rem; background: rgba(20, 212, 232, .26); }

.club-tokens {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 40;
  display: flex;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid rgba(247, 240, 232, .58);
  border-radius: 999px;
  background: rgba(247, 240, 232, .36);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 50px rgba(34, 20, 61, .12);
}

.token {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .62rem .88rem;
  border-radius: 999px;
  color: rgba(34, 20, 61, .78);
  text-decoration: none;
  text-transform: lowercase;
  font: 600 .78rem/1 var(--condensed);
  letter-spacing: .06em;
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}

.token span { color: var(--coral); }
.token.is-active {
  color: var(--violet);
  background: linear-gradient(100deg, rgba(255, 111, 97, .72), rgba(20, 212, 232, .72));
  box-shadow: inset 0 0 0 1px rgba(247, 240, 232, .55), 0 8px 24px rgba(52, 86, 255, .18);
}
.token.is-active span { color: var(--opal); }

.continuum-table {
  position: relative;
  z-index: 4;
}

.movement {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem);
  display: grid;
  place-items: center;
}

.room-label {
  position: absolute;
  left: clamp(1rem, 4vw, 4rem);
  top: 1.65rem;
  z-index: 6;
  font: 600 .82rem/1 var(--condensed);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(34, 20, 61, .58);
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255, 225, 200, .42);
  border: 1px solid rgba(247, 240, 232, .54);
  backdrop-filter: blur(12px);
}

.bento-cluster {
  position: relative;
  width: min(1180px, 96vw);
  min-height: 700px;
}

.glass {
  background:
    linear-gradient(135deg, rgba(247, 240, 232, .72), rgba(255, 225, 200, .34) 32%, rgba(183, 156, 255, .28) 66%, rgba(20, 212, 232, .18)),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .72), transparent 16rem);
  border: 1px solid rgba(247, 240, 232, .68);
  box-shadow:
    0 28px 70px rgba(34, 20, 61, .18),
    inset 0 1px 1px rgba(255, 255, 255, .78),
    inset 0 -30px 70px rgba(52, 86, 255, .06);
  backdrop-filter: blur(20px) saturate(1.45);
}

.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(1.15rem, 2.5vw, 2.25rem);
  isolation: isolate;
  transform: translate3d(0,0,0) rotate(var(--tilt, 0deg));
  transition: transform .65s cubic-bezier(.2,.8,.2,1), box-shadow .65s ease, border-color .65s ease;
  cursor: default;
}

.tile::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background: conic-gradient(from 120deg, transparent, rgba(255, 111, 97, .22), rgba(20, 212, 232, .22), rgba(183, 156, 255, .24), transparent 72%);
  opacity: .75;
  mix-blend-mode: screen;
  transform: translateX(var(--shine, -18%));
  transition: transform .7s ease, opacity .7s ease;
}

.tile::after {
  content: attr(data-thread);
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  max-width: 13rem;
  padding: .45rem .65rem;
  border-radius: .8rem;
  font: 600 .72rem/1.1 var(--condensed);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(255, 225, 200, .55);
  border: 1px solid rgba(247, 240, 232, .7);
  opacity: 0;
  transform: translateY(.75rem) rotate(-2deg);
  transition: opacity .35s ease, transform .35s ease;
}

.tile.is-lit, .tile:hover {
  transform: translate3d(0,-10px,0) rotate(var(--tilt, 0deg)) scale(1.018);
  border-color: rgba(20, 212, 232, .68);
  box-shadow: 0 38px 90px rgba(34, 20, 61, .22), 0 0 42px rgba(20, 212, 232, .18), inset 0 1px 1px rgba(255, 255, 255, .82);
}

.tile.is-lit::before, .tile:hover::before { --shine: 12%; opacity: 1; }
.tile.is-lit::after, .tile:hover::after { opacity: 1; transform: translateY(0) rotate(-2deg); }

h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.045em; }
h1 {
  font-size: clamp(4.1rem, 12vw, 10.8rem);
  line-height: .78;
  color: var(--violet);
  text-shadow: 0 1px 0 rgba(247, 240, 232, .7), 0 22px 50px rgba(52, 86, 255, .18);
}
h2 { font-size: clamp(1.55rem, 3.8vw, 4.1rem); line-height: .92; }
p { font-size: clamp(.94rem, 1.35vw, 1.1rem); line-height: 1.55; color: rgba(34, 20, 61, .76); }
.eyebrow, .annotation {
  margin-bottom: .8rem;
  font: 600 .82rem/1 var(--condensed);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--coral);
}

.hero-tile { --tilt: -1.1deg; left: 8%; top: 7%; width: 64%; min-height: 430px; z-index: 8; }
.hero-copy { max-width: 34rem; margin-top: 1.3rem; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.note-tile { --tilt: 2.5deg; right: 7%; top: 2%; width: 31%; min-height: 300px; z-index: 9; }
.loop-tile { --tilt: -3deg; right: 13%; bottom: 7%; width: 41%; min-height: 265px; z-index: 7; }
.stamp-tile { --tilt: 5deg; left: 2%; bottom: 12%; width: 25%; min-height: 215px; z-index: 6; }

.relay-tile { --tilt: 1deg; left: 4%; top: 8%; width: 58%; min-height: 370px; z-index: 7; }
.path-tile { --tilt: -2deg; right: 5%; top: 2%; width: 32%; min-height: 590px; z-index: 8; }
.vellum-tile { --tilt: -1.5deg; left: 18%; bottom: 7%; width: 35%; min-height: 280px; z-index: 9; }
.orbit-tile { --tilt: 3deg; right: 27%; bottom: 1%; width: 27%; min-height: 220px; z-index: 6; }

.closing-tile { --tilt: .8deg; left: 18%; top: 9%; width: 62%; min-height: 440px; z-index: 8; }
.capsule-tile { --tilt: -4deg; left: 3%; bottom: 12%; width: 30%; min-height: 240px; z-index: 7; }
.final-stamp { --tilt: 4deg; right: 8%; bottom: 14%; width: 26%; min-height: 230px; z-index: 9; }

.domain-dot { color: var(--coral); text-shadow: 0 0 26px rgba(255,111,97,.7); }
.tape {
  position: absolute;
  width: 15rem;
  height: 2.3rem;
  right: 9%;
  top: 1.4rem;
  border-radius: .45rem;
  background: linear-gradient(90deg, rgba(20, 212, 232, .28), rgba(183, 156, 255, .34), rgba(255, 184, 77, .26));
  transform: rotate(7deg);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 232, .55);
}

.club-seal, .stamp-mark {
  display: grid;
  place-items: center;
  width: 7.8rem;
  height: 7.8rem;
  margin-top: 1.6rem;
  border-radius: 50%;
  color: var(--coral);
  border: 2px dashed currentColor;
  font: 600 .8rem/1 var(--condensed);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  background: rgba(255, 225, 200, .28);
}

.stamp-mark { width: 7rem; height: 7rem; margin: 0 0 1rem auto; }
.stamp-mark.cyan { color: var(--cyan); }
.node {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  left: 1.2rem;
  top: 1.2rem;
  background: var(--cyan);
  box-shadow: 0 0 0 .6rem rgba(20, 212, 232, .16), 0 0 2rem rgba(20, 212, 232, .75);
}

.paper-fragment, .vellum-note {
  margin-top: 1.3rem;
  width: fit-content;
  padding: .8rem 1rem;
  border-radius: .65rem;
  background: rgba(255, 225, 200, .78);
  box-shadow: 0 12px 26px rgba(34,20,61,.12);
  transform: rotate(-3deg);
  font-family: var(--display);
}
.coral-fragment { color: var(--coral); }

.loop-orbit {
  position: relative;
  width: 15rem;
  height: 7.6rem;
  margin-top: 1.4rem;
  border: 2px solid rgba(20, 212, 232, .42);
  border-radius: 50%;
  transform: rotate(-9deg);
}
.loop-orbit span {
  position: absolute;
  width: .9rem;
  height: .9rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 1.4rem rgba(255,184,77,.75);
}
.loop-orbit span:nth-child(1) { left: 12%; top: 22%; }
.loop-orbit span:nth-child(2) { left: 52%; top: 72%; background: var(--coral); }
.loop-orbit span:nth-child(3) { right: 9%; top: 28%; background: var(--cyan); }

.photo-scrap {
  float: right;
  width: min(38%, 13rem);
  height: 13rem;
  margin-left: 1.3rem;
  border-radius: 1.4rem .5rem 1.8rem .65rem;
  background:
    linear-gradient(130deg, rgba(34,20,61,.18), transparent 34%),
    radial-gradient(circle at 70% 34%, rgba(255,184,77,.9), transparent 2.2rem),
    linear-gradient(145deg, rgba(255,111,97,.55), rgba(20,212,232,.3));
  box-shadow: inset 0 0 0 8px rgba(247,240,232,.28), 0 18px 38px rgba(34,20,61,.16);
  transform: rotate(3deg);
}

.baton { display: flex; gap: .5rem; margin-top: 1.5rem; }
.baton span, .capsule-stack span {
  display: block;
  width: 4.5rem;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--cyan));
  box-shadow: 0 0 24px rgba(255,184,77,.25);
}
.baton span:nth-child(2) { transform: translateY(.65rem); }
.baton span:nth-child(3) { transform: translateY(1.3rem); }

.mini-map { width: 100%; height: 310px; margin-top: 1.3rem; overflow: visible; }
.mini-map path { fill: none; stroke: var(--cyan); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 18 18; filter: drop-shadow(0 0 12px rgba(20,212,232,.65)); }
.mini-map circle { fill: var(--amber); stroke: var(--opal); stroke-width: 4; }

.vellum-note {
  background: rgba(247, 240, 232, .62);
  color: var(--blue);
  margin-bottom: 1.1rem;
  transform: rotate(2deg);
}

.capsule-stack { display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.capsule-stack span:nth-child(odd) { transform: translateX(1.4rem); background: linear-gradient(90deg, var(--lavender), var(--cyan)); }
.capsule-stack span:nth-child(even) { background: linear-gradient(90deg, var(--coral), var(--amber)); }

.thread-form {
  display: flex;
  gap: .8rem;
  margin-top: 2rem;
  max-width: 46rem;
  padding: .55rem;
  border-radius: 999px;
  background: rgba(247,240,232,.45);
  border: 1px solid rgba(247,240,232,.7);
}
.thread-form input, .thread-form button {
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
}
.thread-form input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.2rem;
  color: var(--violet);
  background: rgba(255,225,200,.62);
  font-size: 1rem;
  outline: none;
}
.thread-form button {
  padding: 1rem 1.4rem;
  color: var(--violet);
  background: linear-gradient(100deg, var(--coral), var(--amber), var(--cyan));
  font-weight: 700;
  cursor: pointer;
}

.thread-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 300vh;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.thread-path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(20, 212, 232, .85)) drop-shadow(0 0 28px rgba(183, 156, 255, .35));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.thread-path.secondary { stroke: var(--coral); stroke-width: 5; opacity: .58; filter: drop-shadow(0 0 14px rgba(255,111,97,.55)); }

.thread-caption {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 44;
  max-width: min(24rem, calc(100vw - 2.4rem));
  padding: .85rem 1rem;
  border-radius: 1rem;
  color: var(--violet);
  font: 600 .86rem/1.2 var(--display);
  background: rgba(247,240,232,.48);
  border: 1px solid rgba(247,240,232,.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(34,20,61,.12);
  transform: translateY(0);
  transition: transform .35s ease, opacity .35s ease;
}
.thread-caption.pulse { transform: translateY(-.4rem); }

@keyframes breathe {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--tilt, 0deg)); }
  50% { transform: translate3d(0,-6px,0) rotate(calc(var(--tilt, 0deg) * .8)); }
}
.opening-cluster .tile:nth-child(2), .carry-cluster .tile:nth-child(3), .leave-cluster .tile:nth-child(2) { animation: breathe 7s ease-in-out infinite; }
.opening-cluster .tile:nth-child(3), .carry-cluster .tile:nth-child(1), .leave-cluster .tile:nth-child(3) { animation: breathe 8.5s ease-in-out infinite reverse; }

@media (max-width: 820px) {
  .club-tokens { left: .7rem; right: .7rem; justify-content: center; }
  .token { padding: .55rem .65rem; }
  .movement { padding-top: 5.5rem; min-height: auto; }
  .room-label { position: relative; left: auto; top: auto; justify-self: start; margin: 0 0 1rem; }
  .bento-cluster { display: grid; gap: 1rem; min-height: 0; width: 100%; }
  .tile { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; min-height: 220px; }
  .hero-tile, .closing-tile { min-height: 390px; }
  .photo-scrap { float: none; width: 100%; height: 10rem; margin: 0 0 1rem; }
  .thread-svg { opacity: .42; height: 100%; position: fixed; }
  .thread-form { border-radius: 1.4rem; flex-direction: column; }
}
