:root {
  --ink: #1a1a1c;
  --ink-soft: #4a4a52;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Horizontal drift — different speeds per layer create parallax depth.
   Each path is drawn 4+ wave periods wide, so translating by exactly
   one period (matching the path's wavelength) produces a seamless loop. */
.flow      { transform-box: fill-box; will-change: transform; }
.flow-1    { animation: flow1 38s linear infinite; }
.flow-2    { animation: flow2 27s linear infinite; }
.flow-3    { animation: flow3 19s linear infinite; }
.flow-4    { animation: flow4 13s linear infinite; }

@keyframes flow1 { from { transform: translateX(0); }     to { transform: translateX(-800px); } }
@keyframes flow2 { from { transform: translateX(0); }     to { transform: translateX(-720px); } }
@keyframes flow3 { from { transform: translateX(0); }     to { transform: translateX(-640px); } }
@keyframes flow4 { from { transform: translateX(0); }     to { transform: translateX(-560px); } }

/* Vertical bobbing — gentle ease-in-out makes the surface feel alive. */
.bob       { transform-box: fill-box; will-change: transform; }
.bob-1     { animation: bob1 11s ease-in-out infinite alternate; }
.bob-2     { animation: bob2  8s ease-in-out infinite alternate; }
.bob-3     { animation: bob3  6s ease-in-out infinite alternate; }
.bob-4     { animation: bob4  4.5s ease-in-out infinite alternate; }

@keyframes bob1 { from { transform: translateY(-4px); } to { transform: translateY(5px); } }
@keyframes bob2 { from { transform: translateY(5px); }  to { transform: translateY(-4px); } }
@keyframes bob3 { from { transform: translateY(-3px); } to { transform: translateY(6px); } }
@keyframes bob4 { from { transform: translateY(4px); }  to { transform: translateY(-3px); } }

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
  max-width: 720px;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.title {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem 0;
  line-height: 1;
  color: var(--ink);
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .flow, .bob, .content { animation: none; }
}
