:root {
  /* Interaction based on proximity to a living SVG path and material annotations; Source Serif 4 for calm narrative passages with literary warmth. Small labels */
  --bone-slip: #F3EBDD;
  --paper-white: #FFF9EE;
  --celadon: #A9C7B6;
  --graphite: #242525;
  --iron: #A8583C;
  --mineral-blue: #6D8EA0;
  --kiln-shadow: #5E6761;
  --display: Fraunces, Georgia, 'Times New Roman', serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'Azeret Mono', 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bone-slip);
  color: var(--graphite);
  font-family: var(--body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(109, 142, 160, .20), transparent 28%),
    radial-gradient(circle at 76% 14%, rgba(169, 199, 182, .24), transparent 30%),
    radial-gradient(circle at 58% 82%, rgba(168, 88, 60, .10), transparent 34%),
    linear-gradient(100deg, rgba(255, 249, 238, .42), rgba(94, 103, 97, .08));
  pointer-events: none;
}

.site-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: default;
}

.grain-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: .42;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(36, 37, 37, .10) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, rgba(94, 103, 97, .12) 0 1px, transparent 1.5px),
    repeating-linear-gradient(88deg, rgba(36, 37, 37, .025) 0 1px, transparent 1px 17px);
  background-size: 31px 37px, 43px 41px, 100% 100%;
}

.continuum-table {
  position: absolute;
  inset: 0 auto 0 0;
  width: 600vw;
  height: 100vh;
  display: flex;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.continuum-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 91vw, rgba(94, 103, 97, .14) 91vw 91.15vw, transparent 91.15vw 100vw),
    radial-gradient(ellipse at 18% 56%, rgba(255, 249, 238, .82), transparent 20%),
    radial-gradient(ellipse at 44% 45%, rgba(169, 199, 182, .16), transparent 22%),
    radial-gradient(ellipse at 70% 58%, rgba(168, 88, 60, .08), transparent 18%),
    linear-gradient(90deg, #F3EBDD 0%, #FFF9EE 18%, #E8EEE4 36%, #DED9CC 53%, #E4EBDD 72%, #F3EBDD 100%);
  pointer-events: none;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  overflow: hidden;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 8vh 5vw;
  border-radius: 49% 51% 53% 47%;
  border: 1px solid rgba(94, 103, 97, .12);
  opacity: .38;
  transform: rotate(var(--tilt, -4deg));
}

.scene-first { --tilt: -8deg; }
.scene-clay { --tilt: 5deg; }
.scene-joined { --tilt: -2deg; }
.scene-kiln { --tilt: 8deg; }
.scene-memory { --tilt: -6deg; }
.scene-unfinished { --tilt: 3deg; }

.continuum-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 600vw;
  height: 100vh;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.line-shadow,
.line-main,
.line-seam,
.crackle-field path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.line-shadow {
  stroke: rgba(36, 37, 37, .12);
  stroke-width: 29;
  transform: translate(10px, 17px);
  filter: blur(6px);
}

.line-main {
  stroke: var(--graphite);
  stroke-width: 7;
  filter: url(#inkBleed);
  animation: strokeBreath 7s ease-in-out infinite;
  transition: stroke .8s ease, filter .8s ease, opacity .8s ease, stroke-dasharray .8s ease;
}

.continuum-table[data-current="1"] .line-main {
  stroke: var(--celadon);
  filter: url(#softClay) drop-shadow(0 14px 18px rgba(94, 103, 97, .22));
}

.continuum-table[data-current="2"] .line-main {
  stroke: rgba(94, 103, 97, .34);
  opacity: .68;
}

.continuum-table[data-current="3"] .line-main {
  stroke: var(--iron);
  filter: drop-shadow(0 0 18px rgba(168, 88, 60, .52));
}

.continuum-table[data-current="4"] .line-main {
  stroke: var(--kiln-shadow);
  stroke-dasharray: 48 7 10 6;
  opacity: .72;
}

.continuum-table[data-current="5"] .line-main {
  stroke: var(--mineral-blue);
  stroke-dasharray: 3 18;
  opacity: .56;
}

.line-seam {
  stroke: var(--iron);
  stroke-width: 3.5;
  opacity: .66;
  stroke-dasharray: 32 16 9 23;
}

.crackle-field path {
  stroke: var(--kiln-shadow);
  stroke-width: 2.4;
  opacity: .42;
}

.sediment-field circle {
  fill: var(--mineral-blue);
  opacity: .52;
  transform-origin: center;
  animation: sedimentDrift 8s ease-in-out infinite alternate;
}

.wordmark {
  position: absolute;
  z-index: 4;
  left: 9vw;
  top: 22vh;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 16vw, 16rem);
  font-weight: 500;
  letter-spacing: -.085em;
  color: rgba(36, 37, 37, .91);
  text-shadow: 0 8px 30px rgba(94, 103, 97, .10);
}

.scene-label,
.coordinate,
.material-note,
.loop-note {
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: .09em;
  font-size: .72rem;
}

.label-first {
  position: absolute;
  z-index: 5;
  left: 13vw;
  bottom: 18vh;
  color: var(--kiln-shadow);
}

.fragment {
  position: absolute;
  z-index: 5;
  width: min(29rem, 38vw);
  padding: 1.45rem 1.65rem 1.7rem;
  background: rgba(255, 249, 238, .76);
  border: 1px solid rgba(94, 103, 97, .20);
  border-radius: 26px 18px 32px 16px;
  box-shadow: 0 22px 70px rgba(94, 103, 97, .12), inset 0 0 28px rgba(243, 235, 221, .62);
  clip-path: polygon(0 4%, 96% 0, 100% 88%, 93% 100%, 5% 96%);
  transform: translateY(18px);
  opacity: .42;
  transition: opacity .8s ease, transform .8s ease;
}

.scene.active .fragment { opacity: 1; transform: translateY(0); }

.fragment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 235, 221, .95), transparent 46%, rgba(255, 249, 238, .28));
  transform: translateX(var(--slip-x, -103%));
  transition: transform 1.1s ease;
  pointer-events: none;
}

.scene.active .fragment::after { transform: translateX(104%); }

.fragment h2 {
  margin: .35rem 0 .7rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.3vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .9;
}

.fragment p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.55;
  color: var(--kiln-shadow);
}

.coordinate {
  color: var(--iron);
}

.fragment-first {
  right: 8vw;
  bottom: 11vh;
  width: min(26rem, 31vw);
}

.slip-label { left: 16vw; top: 14vh; }
.torn-label { right: 13vw; top: 18vh; transform: rotate(-1.2deg) translateY(18px); }
.dark-slip { left: 10vw; bottom: 10vh; background: rgba(36, 37, 37, .78); color: var(--paper-white); border-color: rgba(168, 88, 60, .4); }
.dark-slip p { color: rgba(255, 249, 238, .74); }
.crack-label { right: 9vw; bottom: 16vh; }
.final-label { left: 12vw; top: 18vh; }

.artifact {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.wheel-ring {
  position: absolute;
  left: 46vw;
  top: 13vh;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  border: 1px solid rgba(94, 103, 97, .15);
  box-shadow: inset 0 0 0 24px rgba(169, 199, 182, .08), inset 0 0 0 68px rgba(109, 142, 160, .05);
}

.clay-coil {
  right: 13vw;
  bottom: 15vh;
  width: 22rem;
  height: 22rem;
  border-radius: 46% 54% 43% 57%;
  border: 34px solid rgba(169, 199, 182, .58);
  box-shadow: 18px 28px 48px rgba(94, 103, 97, .18), inset 0 0 0 12px rgba(243, 235, 221, .7);
  filter: url(#softClay);
}

.registration-pins {
  left: 13vw;
  bottom: 19vh;
  display: flex;
  gap: 3.4rem;
}

.registration-pins i {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50% 46% 54% 42%;
  background: var(--graphite);
  box-shadow: 0 0 0 13px rgba(255, 249, 238, .78), 0 14px 22px rgba(94, 103, 97, .16);
}

.witness-cones {
  right: 15vw;
  top: 18vh;
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
}

.witness-cones i {
  display: block;
  width: 3.2rem;
  height: 11rem;
  background: linear-gradient(180deg, #FFF9EE, #A8583C 75%, #5E6761);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .86;
  transform: rotate(var(--cone, -9deg));
}
.witness-cones i:nth-child(2) { --cone: 2deg; height: 8.5rem; }
.witness-cones i:nth-child(3) { --cone: 12deg; height: 6.7rem; }

.contour-bowl {
  left: 13vw;
  top: 14vh;
  width: 28rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(36, 37, 37, .24);
  background: radial-gradient(ellipse, transparent 30%, rgba(109, 142, 160, .13) 31% 38%, transparent 39% 47%, rgba(94, 103, 97, .12) 48% 52%, transparent 53%);
}

.contour-bowl i {
  position: absolute;
  inset: var(--inset, 12%);
  border: 1px solid rgba(36, 37, 37, .18);
  border-radius: 48% 52% 54% 46%;
}
.contour-bowl i:nth-child(2) { --inset: 25%; transform: rotate(7deg); }
.contour-bowl i:nth-child(3) { --inset: 38%; transform: rotate(-12deg); }

.sediment-dish {
  right: 13vw;
  bottom: 13vh;
  width: 24rem;
  height: 12rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 52%, var(--mineral-blue) 0 .28rem, transparent .32rem),
    radial-gradient(circle at 43% 36%, var(--iron) 0 .2rem, transparent .24rem),
    radial-gradient(circle at 62% 58%, var(--kiln-shadow) 0 .34rem, transparent .38rem),
    radial-gradient(ellipse, rgba(255, 249, 238, .72), rgba(169, 199, 182, .26));
  box-shadow: inset 0 0 0 2px rgba(94, 103, 97, .18), 0 25px 60px rgba(94, 103, 97, .14);
}

.fault-slice {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 8vw;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 238, .52), rgba(109, 142, 160, .12), transparent);
  border-left: 1px solid rgba(94, 103, 97, .11);
  border-right: 1px solid rgba(94, 103, 97, .09);
}
.slice-one { left: 4vw; }
.slice-two { right: 7vw; }

.material-note {
  position: fixed;
  z-index: 12;
  left: 1.25rem;
  top: 1.2rem;
  padding: .75rem .9rem;
  background: rgba(255, 249, 238, .68);
  color: var(--kiln-shadow);
  border: 1px solid rgba(94, 103, 97, .2);
  border-radius: 18px 14px 20px 13px;
  transform: translateY(-140%);
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
}
.material-note.visible { transform: translateY(0); opacity: 1; }

.kiln-dots {
  position: fixed;
  z-index: 12;
  left: 1.4rem;
  bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .58rem;
}

.dot {
  width: .78rem;
  height: .78rem;
  padding: 0;
  border: 1px solid rgba(36, 37, 37, .35);
  border-radius: 47% 53% 42% 58%;
  background: rgba(255, 249, 238, .7);
  transform: rotate(var(--dot-r, 8deg));
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.dot:nth-child(2) { --dot-r: -10deg; }
.dot:nth-child(3) { --dot-r: 4deg; }
.dot:nth-child(4) { --dot-r: 13deg; }
.dot:nth-child(5) { --dot-r: -5deg; }
.dot:nth-child(6) { --dot-r: 17deg; }
.dot.active { background: var(--iron); box-shadow: 0 0 0 5px rgba(168, 88, 60, .12); transform: scale(1.22) rotate(var(--dot-r)); }

.loop-note {
  position: absolute;
  z-index: 5;
  right: 7vw;
  top: 13vh;
  color: var(--mineral-blue);
}

.ripple {
  position: fixed;
  z-index: 9;
  width: 1rem;
  height: 1rem;
  margin: -.5rem 0 0 -.5rem;
  border: 1px solid rgba(168, 88, 60, .45);
  border-radius: 50% 45% 53% 47%;
  pointer-events: none;
  animation: rippleOut .85s ease-out forwards;
}

@keyframes strokeBreath {
  0%, 100% { stroke-width: 6.5; opacity: .9; }
  50% { stroke-width: 10.5; opacity: .76; }
}

@keyframes sedimentDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(18px, -8px); }
}

@keyframes rippleOut {
  to { transform: scale(8); opacity: 0; }
}

@media (max-width: 760px) {
  .fragment { width: 72vw; }
  .fragment-first, .slip-label, .torn-label, .dark-slip, .crack-label, .final-label { left: 16vw; right: auto; top: auto; bottom: 10vh; }
  .wordmark { left: 11vw; top: 30vh; font-size: 22vw; }
  .artifact { transform: scale(.7); transform-origin: center; }
  .continuum-line { height: 100vh; }
}
