/* nowill-liquid — the descent. Scroll = sinking. Fraunces serif, ink water, one teal lantern. */

:root {
  --bg: #04070a;
  --ink: #e9f3f1;
  --ink-dim: rgba(233, 243, 241, 0.62);
  --teal: #0fb5ba;
  --teal-bright: #3cd9cd;
  --teal-glow: rgba(15, 181, 186, 0.32);
  --hair: rgba(233, 243, 241, 0.16);
  --serif: 'Fraunces', Georgia, serif;
  --sans: -apple-system, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: #02272a; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 70;
  padding: 0.7em 1.2em; background: var(--teal); color: #02272a;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border-radius: 0 0 10px 10px; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */

.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(0.9rem, 2vw, 1.3rem) var(--pad);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
}
.head-cta {
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--hair);
  transition: color 0.3s, border-color 0.3s;
}
.head-cta:hover { color: var(--teal-bright); border-color: var(--teal); }

/* ---------- Depth gauge ---------- */

.gauge {
  position: fixed; left: clamp(0.9rem, 2.5vw, 2rem); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.gauge-line {
  display: block; width: 1px; height: clamp(110px, 20vh, 200px);
  background: linear-gradient(var(--hair), var(--teal));
}
.gauge-read {
  font-size: 0.66rem; letter-spacing: 0.18em;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
  font-variant-numeric: tabular-nums;
}

/* ---------- Zones ---------- */

.zone { position: relative; height: 220vh; }
.hold {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}

.deep { position: absolute; inset: 0; z-index: 1; will-change: transform, filter, opacity; }
.deep video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus-x, 50%) center;
  opacity: 0; transition: opacity 0.9s ease;
}
.deep video.is-live { opacity: 1; }
.deep::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--poster);
  background-size: cover; background-position: var(--focus-x, 50%) center;
}

.wash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 50% 55%, rgba(4,7,10,0.42), rgba(4,7,10,0) 72%),
    linear-gradient(180deg, rgba(4,7,10,0.42), rgba(4,7,10,0.04) 32%, rgba(4,7,10,0.55) 100%);
}

/* ---------- Copy — a narrow centered column that drifts up ---------- */

.copy {
  position: relative; z-index: 3;
  width: min(100% - 2 * var(--pad), 34rem);
  text-align: center;
  will-change: transform;
}
.depth-tag {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.serif {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05; letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(2, 5, 8, 0.8);
}
.serif em { font-style: italic; font-weight: 400; color: var(--teal-bright); }
.prose {
  margin: 1.5rem auto 0;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  color: var(--ink-dim); max-width: 42ch;
  text-shadow: 0 1px 16px rgba(2, 5, 8, 0.9);
}

.actions { margin-top: 2.3rem; }
.btn {
  display: inline-block;
  font-family: var(--serif); font-weight: 400; font-size: 1.02rem;
  color: #02272a; background: var(--teal);
  text-decoration: none; padding: 0.85em 2em; border-radius: 2px;
  transition: background 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 10px 34px var(--teal-glow); }

/* Drift list */
.floats { list-style: none; margin-top: 2.4rem; display: grid; gap: 1.1rem; text-align: center; }
.floats li { display: grid; gap: 0.15rem; }
.floats strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.01em;
}
.floats span { font-size: 0.9rem; color: var(--ink-dim); }

/* Strata services */
.strata-list {
  list-style: none; margin-top: 2.4rem;
  display: grid; gap: 0;
  text-align: left;
}
.strata-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.72rem 0.4rem;
  border-bottom: 1px solid var(--hair);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  transition: color 0.3s, padding-left 0.3s;
}
.strata-list li:first-child { border-top: 1px solid var(--hair); }
.strata-list li:hover { color: var(--teal-bright); padding-left: 0.9rem; }
.strata-list em {
  font-family: var(--serif); font-style: italic; font-size: 0.8rem;
  color: var(--teal-bright); min-width: 1.6rem;
}

/* ---------- Footer ---------- */

.foot {
  position: relative; z-index: 3;
  padding: 2.6rem var(--pad);
  text-align: center;
  font-size: 0.78rem; color: var(--ink-dim);
}

/* ---------- Family glue ---------- */

.grade {
  position: fixed; inset: 0; z-index: 20; pointer-events: none;
  background:
    radial-gradient(ellipse 115% 90% at 50% 50%, rgba(0,0,0,0) 52%, rgba(1, 4, 6, 0.6) 100%),
    linear-gradient(170deg, rgba(15, 181, 186, 0.045), rgba(4, 7, 10, 0) 40%, rgba(6, 20, 24, 0.14) 100%);
}
.grain {
  position: fixed; inset: -100px; z-index: 21; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.66s steps(8) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(-28px, 16px); }
  25% { transform: translate(14px, -30px); } 37.5% { transform: translate(-34px, -8px); }
  50% { transform: translate(22px, 26px); } 62.5% { transform: translate(-12px, 34px); }
  75% { transform: translate(30px, -18px); } 87.5% { transform: translate(-20px, -26px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .gauge { display: none; }
  #surface { --focus-x: 55%; }   /* teal bloom center-right */
  #strata { --focus-x: 50%; }
  #floor { --focus-x: 50%; }
}
@media (max-width: 380px) {
  .btn { padding: 0.8em 1.5em; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .zone { height: auto; }
  .hold { position: relative; height: 100vh; }
  .deep, .copy { transform: none !important; filter: none !important; opacity: 1 !important; }
}
