/* ============================================================
   Direction B — Asymmetric Drift
   Editorial weightlessness. The name drifts apart, images float
   at different depths, type overlaps the photography like fog
   crossing a coastline.
   ============================================================ */

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

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

.menu-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--sepia-soft);
  letter-spacing: 0.32em;
  padding: 0.4em 0 0.4em 0.4em;
  transition: color 0.5s ease;
}

.menu-toggle:hover { color: var(--first-light); }

.veil-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 239, 233, 0.92);
  -webkit-backdrop-filter: blur(22px);
          backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.veil-menu.open { opacity: 1; }

.veil-menu ul { list-style: none; text-align: center; }

.veil-menu li + li { margin-top: clamp(0.6rem, 2vh, 1.4rem); }

.veil-menu a {
  display: inline-flex;
  align-items: baseline;
  gap: 1.25rem;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.9s var(--ease-drift), opacity 0.9s ease, color 0.5s ease;
}

.veil-menu.open a { transform: none; opacity: 1; }

.veil-menu li:nth-child(2) a { transition-delay: 0.06s; }
.veil-menu li:nth-child(3) a { transition-delay: 0.12s; }
.veil-menu li:nth-child(4) a { transition-delay: 0.18s; }
.veil-menu li:nth-child(5) a { transition-delay: 0.24s; }
.veil-menu li:nth-child(6) a { transition-delay: 0.3s; }

.veil-menu .display { font-size: clamp(2rem, 6vw, 4rem); }

.veil-menu a:hover .display { color: var(--first-light); }

@media (prefers-reduced-motion: reduce) {
  .veil-menu, .veil-menu a { transition: none; }
}

/* ---------- Vertical margin rail ---------- */

.margin-rail {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.9rem);
  top: 50%;
  /* Below <main> so drifting photography passes over the marginalia
     instead of the text printing on top of the images. */
  z-index: 0;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
  letter-spacing: 0.42em;
  font-size: 0.625rem;
}

@media (max-width: 900px) { .margin-rail { display: none; } }

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

.hero { align-items: center; justify-content: flex-start; }

.hero-inner {
  width: 100%;
  padding: 0 clamp(1.5rem, 7vw, 8rem);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(4rem, 16vw, 13.5rem);
  letter-spacing: 0.04em;
  margin-top: clamp(1rem, 3vh, 2rem);
}

.hero .line-b {
  align-self: flex-start;
  margin-left: clamp(4rem, 28vw, 24rem);
  color: var(--sepia-soft);
}

.hero-line {
  margin-top: clamp(1.5rem, 4vh, 3rem);
  margin-left: clamp(0.2rem, 2vw, 1.5rem);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

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

.breath {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.5rem, 7vw, 8rem);
}

.breath-inner { max-width: 36ch; margin-left: auto; margin-right: clamp(0rem, 8vw, 9rem); }

.poem.big {
  font-size: clamp(1.5rem, 2.9vw, 2.4rem);
  line-height: 1.42;
  color: var(--sepia);
}

.breath .caption { margin-top: 2rem; }

/* ---------- Drifting doors ---------- */

.door {
  position: relative;
  padding: clamp(5rem, 16vh, 11rem) clamp(1.5rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
}

.door figure { aspect-ratio: 4 / 3; }
.door figure.portrait { aspect-ratio: 3 / 4; }
.door figure.small { aspect-ratio: 1 / 1; }
.door figure.wide { aspect-ratio: 21 / 9; }

.door h2 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  letter-spacing: 0.04em;
  margin: clamp(0.7rem, 1.5vh, 1.1rem) 0 clamp(1.2rem, 3vh, 2rem);
}

.door .poem { font-size: clamp(1.15rem, 1.9vw, 1.5rem); color: var(--sepia); }

.door-body {
  margin-top: 1rem;
  max-width: 38ch;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  color: var(--sepia-soft);
}

/* image right, type drifting over its left edge */
.drift-right figure { grid-column: 6 / 13; grid-row: 1; }
.drift-right .door-type { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 2; }

/* image left and low, type high right */
.drift-left figure { grid-column: 1 / 7; grid-row: 1; margin-top: clamp(3rem, 12vh, 8rem); }
.drift-left .door-type { grid-column: 7 / 13; grid-row: 1; margin-bottom: clamp(3rem, 12vh, 8rem); position: relative; z-index: 2; }

/* type above a wide low image, overlapping downward */
.drift-wide { grid-template-rows: auto auto; }
.drift-wide .door-type { grid-column: 2 / 11; grid-row: 1; position: relative; z-index: 2; margin-bottom: clamp(-3rem, -6vh, -1.5rem); }
.drift-wide figure { grid-column: 3 / 13; grid-row: 2; }

/* tall variant */
.drift-right.tall figure { grid-column: 7 / 12; }
.drift-right.tall .door-type { align-self: end; padding-bottom: clamp(2rem, 8vh, 5rem); }

@media (max-width: 820px) {
  .door { display: block; }
  .door figure { margin: 0 0 1.8rem; max-width: 100%; }
  .drift-left figure, .drift-wide .door-type, .drift-left .door-type, .drift-right.tall .door-type { margin: 0 0 1.8rem; padding: 0; }
  .drift-wide figure { margin-top: 1.8rem; }
}

/* ---------- Invitation ---------- */

.invite { overflow: hidden; }

.invite-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 42% at 38% 72%, rgba(216, 162, 146, 0.32) 0%, rgba(216, 162, 146, 0) 70%);
  pointer-events: none;
}

.invite-inner {
  position: relative;
  width: 100%;
  padding: 0 clamp(1.5rem, 7vw, 8rem);
}

.invite .poem.big { max-width: 22ch; }

.invite-line { margin-top: clamp(2rem, 5vh, 3.5rem); font-size: clamp(1.05rem, 1.8vw, 1.4rem); }

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