/* =============================================================
   path.css — Path of Breathing · The Path (hub) + The Breath
   The map of the whole site (one breath, two strands, what walks
   alongside) and the stages of the way on /path/breath.
   Requires shared.css and module.css first.
   ============================================================= */

/* ── The map ─────────────────────────────────────────────────── */
.path-map {
  padding: 72px 0 0;
}

/* ── The Breath — crown of the path ──────────────────────────── */
.path-breath {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  max-width: 460px;
  padding: 8px 24px 34px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;
}
.path-breath:hover { opacity: 0.75; }

/* The mark breathes — same 9s cycle as the entrance overlay, and
   built the same way: plain divs, not SVG. Browsers composite CSS
   transforms on HTML elements on the GPU; transforms on SVG children
   force a re-rasterize every frame (visibly choppy in Firefox).
   Killed globally by the prefers-reduced-motion rule in shared.css,
   which leaves two calm concentric rings. */
.path-breath-mark {
  position: relative;
  width: 54px;
  height: 54px;
  display: block;
  color: var(--accent);
}

.path-breath-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  animation: path-breath-cycle 9s ease-in-out infinite;
}
@keyframes path-breath-cycle {
  0%   { transform: scale(0.72); opacity: 0.45; }
  45%  { transform: scale(1.18); opacity: 0.95; }
  55%  { transform: scale(1.18); opacity: 0.95; }
  100% { transform: scale(0.72); opacity: 0.45; }
}

.path-breath-name {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.path-breath-name::after {
  content: ' →';
  font-family: var(--sans);
  font-size: 0.5em;
  color: var(--accent);
  opacity: 0.55;
  vertical-align: middle;
}

.path-breath-line {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ── The fork — one line becomes two ─────────────────────────── */
.path-fork {
  position: relative;
  height: 33px;
}
.path-fork::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 32px;
  background: var(--border);
}
.path-fork::after {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

/* ── The strands ─────────────────────────────────────────────── */
.path-strands {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.path-strand {
  padding: 0 clamp(16px, 3.5vw, 56px);
}
.path-strand::before {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 auto 36px;
}

.path-strand-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 10px;
}

.path-strand-line {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  margin-bottom: 36px;
}

/* ── The spokes ──────────────────────────────────────────────── */
.path-spoke {
  display: block;
  padding: 20px 4px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.path-spoke:last-child { border-bottom: 1px solid var(--border); }
@media (hover: hover) {
  .path-spoke:hover { opacity: 1; border-color: var(--accent-tint); }
  .path-spoke:hover .path-spoke-name::after { opacity: 0.9; transform: translateX(3px); }
}

.path-spoke-name {
  font-family: var(--sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 3px;
}
.path-spoke-name::after {
  content: ' →';
  color: var(--accent);
  opacity: 0.45;
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.path-spoke-line {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
}

/* ── The merge — two strands return to one ───────────────────── */
.path-merge {
  position: relative;
  height: 33px;
  margin-top: 56px;
}
.path-merge::before {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  top: 0;
  height: 1px;
  background: var(--border);
}
.path-merge::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Along the way — letters, room, timer ────────────────────── */
.path-aside {
  padding-top: 36px;
}

.path-aside-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(16px, 3.5vw, 56px);
  max-width: 900px;
  margin: 0 auto;
}

.path-aside-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.85;
  transition: opacity 0.3s ease, color var(--ease);
}
@media (hover: hover) {
  .path-aside-link:hover { opacity: 1; color: var(--accent); }
  .path-aside-link:hover .path-aside-name::after { opacity: 0.9; transform: translateX(3px); }
}

.path-aside-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}
.path-aside-name::after {
  content: ' →';
  color: var(--accent);
  opacity: 0.45;
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.path-aside-line {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}

/* ── The end of the path — the mirror, unlabeled ─────────────── */
.path-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  color: var(--accent);
}

.path-end-stem {
  width: 1px;
  height: 44px;
  background: var(--border);
  margin-bottom: 28px;
}

/* ── Questions — a record of dialogue, not bands ─────────────── */
.path-questions {
  margin-top: 100px;
  border-top: 1px solid var(--border);
}

.path-questions-inner {
  max-width: var(--prose-max, 680px);
  margin: 0 auto;
  padding: 72px 0 0;
}

.path-questions-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
}

.path-qa {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.path-qa:last-child { border-bottom: none; }

.path-q {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 16px;
}

.path-a {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 16px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--muted);
}
.path-a p + p { margin-top: 1.1em; }
.path-a em { font-style: italic; color: var(--accent); }

/* ── Junction glyphs — mobile only. Desktop draws the fork and
   merge with full-width hairlines; on one column those collapse
   into plain stems and the meaning is lost. The glyphs keep it:
   one line becoming two, two lines becoming one. ─────────────── */
.path-fork-glyph,
.path-merge-glyph {
  display: none;
  color: var(--accent2);
  opacity: 0.65;
}

/* ── The Breath — stages of the way ──────────────────────────────
   Used on /path/breath. Like the oxherding pictures, radically
   simplified: three stations, each marked by a circle in a
   different state — beginning (an arc), broken (the crack),
   complete-and-open (the ensō). A stem drops into each station. */
.breath-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0 4px;
}

.breath-stage-stem {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-bottom: 24px;
}

.breath-stage-glyph {
  color: var(--accent);
  opacity: 0.8;
}

.breath-stage-name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-top: 16px;
}

/* ── Responsive — one thread on mobile ───────────────────────── */
@media (max-width: 700px) {
  .path-fork,
  .path-merge { height: auto; text-align: center; line-height: 0; }
  .path-fork::before,
  .path-fork::after,
  .path-merge::before,
  .path-merge::after { display: none; }

  .path-fork-glyph,
  .path-merge-glyph { display: inline-block; }

  .path-fork  { padding: 4px 0 2px; }
  .path-merge { margin-top: 48px; }

  .path-strands { grid-template-columns: 1fr; }

  .path-strand { padding: 0; }
  /* The fork glyph already splits the line — the first strand
     doesn't need its own stem. The second keeps one: the thread
     continuing. */
  .path-strand:first-child::before { display: none; }
  .path-strand:first-child { margin-top: 32px; }
  .path-strand::before { margin-bottom: 32px; }
  .path-strand + .path-strand::before { margin-top: 48px; }

  .path-aside { padding-top: 28px; }
  .path-aside-items {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .path-aside-link { padding: 14px 4px; }
}
