/* ============================================================
   Direction C — The Horizon Line
   One continuous hairline at mid-viewport. Everything in the
   journey rests on it, rises through it, or reflects beneath it.
   Folds snap so the line always bisects the world.
   ============================================================ */

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

.fold {
  scroll-snap-align: start;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* ---------- The line ---------- */

.horizon {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  z-index: 2;
  background: linear-gradient(to right,
    rgba(50, 38, 26, 0) 0%,
    rgba(50, 38, 26, 0.35) 18%,
    rgba(216, 162, 146, 0.8) 50%,
    rgba(50, 38, 26, 0.35) 82%,
    rgba(50, 38, 26, 0) 100%);
  pointer-events: none;
}

/* ---------- Header & ports ---------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3.5rem);
}

.head-word { letter-spacing: 0.36em; }

.ports {
  position: fixed;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: clamp(1.2rem, 3.5vw, 3rem);
  align-items: baseline;
}

.ports a {
  font-family: var(--font-caption);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia-faint);
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  transition: color 0.5s ease;
}

.ports .num { color: var(--first-light); font-size: 0.6875rem; }

.ports a:hover, .ports a.here { color: var(--sepia); }

.ports a.here .port-word { border-bottom: 1px solid var(--first-light); padding-bottom: 2px; }

@media (max-width: 760px) {
  .ports .port-word { display: none; }  /* numerals remain as the wayfinding */
  .ports { gap: 1.4rem; }
}

/* ---------- Above / below the line ---------- */

.above, .below {
  width: 100%;
  height: 50vh;
  height: 50svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
}

.above { justify-content: flex-end; padding-bottom: clamp(1.2rem, 3.5vh, 2.4rem); }
.below { justify-content: flex-start; padding-top: clamp(1.2rem, 3.5vh, 2.4rem); }

/* ---------- Hero ---------- */

.hero h1 {
  font-size: clamp(3rem, 11vw, 9.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: -0.06em; /* let the baseline kiss the water */
}

.reflection {
  font-size: clamp(3rem, 11vw, 9.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-top: -0.06em;
  transform: scaleY(-1);
  color: var(--sepia);
  opacity: 0.16;
  filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 85%);
          mask-image: linear-gradient(to bottom, transparent 8%, #000 85%);
  user-select: none;
}

.hero-line {
  margin-top: clamp(1.6rem, 5vh, 3.4rem);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

/* ---------- Breath ---------- */

.poem.big {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.42;
  color: var(--sepia);
  max-width: 30ch;
}

/* ---------- Doors as ports ---------- */

.door { position: relative; }

.door .above { padding-bottom: clamp(4.5rem, 14vh, 9rem); }
.door .below { padding-top: clamp(4.5rem, 14vh, 9rem); }

.door h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  margin-top: clamp(0.7rem, 1.5vh, 1.1rem);
}

/* the orb rises through the line */
.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(9.5rem, 24vh, 15rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 30px 80px -30px rgba(50, 38, 26, 0.35);
}

.orb::after { border-radius: 50%; }

/* alternate ports drift the orb off-center, like passing buoys */
.door.alt .orb { left: 32%; }
.door.alt .above, .door.alt .below { align-items: flex-end; text-align: right; }
.door.alt .above { padding-right: clamp(1.5rem, 10vw, 10rem); }
.door.alt .below { padding-right: clamp(1.5rem, 10vw, 10rem); }

@media (max-width: 760px) {
  .door.alt .orb { left: 50%; }
  .door.alt .above, .door.alt .below { align-items: center; text-align: center; padding-right: clamp(1.5rem, 6vw, 6rem); }
}

.door .poem { font-size: clamp(1.1rem, 1.9vw, 1.5rem); color: var(--sepia); max-width: 36ch; }

.door-body {
  margin-top: 0.9rem;
  max-width: 44ch;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  color: var(--sepia-soft);
}

/* ---------- The last port ---------- */

.invite-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 36% at 50% 50%, rgba(216, 162, 146, 0.36) 0%, rgba(216, 162, 146, 0) 70%);
  pointer-events: none;
}

.invite .above { justify-content: flex-end; }

.invite-line { font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

.invite .caption { margin-top: 1.4rem; }

.colophon-line {
  margin-top: auto;
  padding-bottom: clamp(3.4rem, 9vh, 5.5rem);
  display: flex;
  gap: 2.5rem;
  letter-spacing: 0.26em;
}

@media (max-width: 600px) {
  .colophon-line { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
}
