/* =========================================================================
   V6f · LIMINAL
   Slowweb. Each section is a full viewport. One word, one sentence.
   Background drifts. Type breathes. Nothing happens quickly.
   ========================================================================= */

:root {
  --bg-base:       #F0EAF0;
  --bg-lavender:   #E8E2F0;
  --bg-peach:      #F5E8DD;
  --bg-rose:       #F2E0E4;
  --bg-teal:       #DCE8E5;

  --ink:           #3A3445;
  --ink-soft:      #6B6478;
  --ink-muted:     #948CA0;
  --accent-rose:   #C7A8B0;
  --accent-peach:  #D9B59A;
  --accent-lav:    #B0A8C8;
  --accent-teal:   #88B0AA;

  --serif: 'Cormorant Infant', 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, Helvetica, Arial, sans-serif;
}

@property --bg-from { syntax: '<color>'; inherits: true; initial-value: #E8E2F0; }
@property --bg-to   { syntax: '<color>'; inherits: true; initial-value: #F5E8DD; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-base);
  background-image: linear-gradient(180deg, var(--bg-lavender) 0%, var(--bg-peach) 50%, var(--bg-teal) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

p, h1, h2, h3 { margin: 0; padding: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-rose);
  padding-bottom: 1px;
  transition: color 600ms ease, border-color 600ms ease;
}
a:hover { color: var(--accent-rose); border-bottom-color: var(--ink); }

em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent-rose);
}

::selection { background: var(--accent-rose); color: var(--bg-peach); }

/* =========================================================================
   ATMOSPHERIC BLUR SHAPES — drift behind content
   ========================================================================= */

.atmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}
.blob--1 {
  width: 50vmax; height: 50vmax;
  top: -10%; left: -10%;
  background: radial-gradient(circle, var(--accent-lav), transparent 60%);
  animation: drift1 32s ease-in-out infinite alternate;
}
.blob--2 {
  width: 42vmax; height: 42vmax;
  top: 20%; right: -8%;
  background: radial-gradient(circle, var(--accent-peach), transparent 60%);
  animation: drift2 38s ease-in-out infinite alternate;
}
.blob--3 {
  width: 60vmax; height: 60vmax;
  bottom: -20%; left: 10%;
  background: radial-gradient(circle, var(--accent-rose), transparent 60%);
  animation: drift3 44s ease-in-out infinite alternate;
}
.blob--4 {
  width: 36vmax; height: 36vmax;
  bottom: 5%; right: 15%;
  background: radial-gradient(circle, var(--accent-teal), transparent 60%);
  animation: drift4 50s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate( 12vw,  18vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw,  10vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(  8vw, -16vh) scale(1.08); } }
@keyframes drift4 { to { transform: translate(-18vw,  -8vh) scale(1.20); } }

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

/* =========================================================================
   EDGE FIXED UI — corners, very small
   ========================================================================= */

.edge {
  position: fixed;
  z-index: 10;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 28px;
  mix-blend-mode: multiply;
}
.edge--tl { top: 0; left: 0; }
.edge--tr { top: 0; right: 0; text-align: right; }
.edge--bl { bottom: 0; left: 0; }
.edge--br { bottom: 0; right: 0; text-align: right; }

.edge em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent-rose);
  letter-spacing: 0.01em;
  text-transform: none;
}

.progress { font-variant-numeric: tabular-nums; }

.scroll-hint .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  vertical-align: 1px;
  margin-right: 6px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

@media (max-width: 600px) {
  .edge { padding: 18px; font-size: 10px; }
  .edge--br { display: none; }
}

/* =========================================================================
   AMBIENT — main content container
   ========================================================================= */

.ambient {
  position: relative;
  z-index: 2;
}

/* =========================================================================
   MOVEMENT — one full-viewport section per thought
   ========================================================================= */

.movement {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 32px;
  position: relative;
  scroll-snap-align: start;
}

html { scroll-snap-type: y proximity; }

.word {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 36px;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1400ms ease-out, transform 1400ms ease-out;
}

.thought {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 30ch;
  text-wrap: balance;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1400ms ease-out 200ms, transform 1400ms ease-out 200ms;
}

.caption {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity 1600ms ease-out 400ms;
}

.movement.is-here .word,
.movement.is-here .thought {
  opacity: 1;
  transform: none;
}
.movement.is-here .caption { opacity: 1; }

/* Tone overlays — subtle wash per movement to shift the air color */
.movement[data-tone="lavender"]::before { background: rgba(176, 168, 200, 0.10); }
.movement[data-tone="peach"]::before    { background: rgba(217, 181, 154, 0.10); }
.movement[data-tone="rose"]::before     { background: rgba(199, 168, 176, 0.10); }
.movement[data-tone="teal"]::before     { background: rgba(136, 176, 170, 0.10); }
.movement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1200ms ease;
}

/* Final movement gets extra bottom space so the page doesn't snap awkwardly */
.movement--last {
  min-height: 100vh;
  padding-bottom: 140px;
}
.movement--last .word { color: var(--accent-rose); }
