/* Hypha · JV partner · the page pieces every page shares, carried from the master (workshop/architect/css/page.css):
   section rhythm, the continuation and its button, the hello bar. Left behind with the Architect: its
   fair questions, margin notes, gate note and hand-drawn underline; the hello bar's rule is a plain hairline here.
   The fair questions are this world's own (css/faq.css); the film stage too (css/film.css).

   .sec                     a flowing section's rhythm; .on-dark on dark grounds
   .next > .wrap > p.say… + h2.display.h2.next-h + .cta    the continuation (.next--dark)
   a.cta[data-in] / button.cta  + <span class="cta-arw" aria-hidden="true">→</span>   ink pill, green light edge */

:root {
  --slate-ground: #2b3236;
  --cine: #06080c;
}

/* ---------- page to page: a plain cut; the browser holds the old frame until the new page paints. No cross-document
   view transition (in the master's recordings its snapshot of the old page came out blank white). The rules below
   serve same-page view transitions (Recall's own are in recall.css) ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- section rhythm ---------- */
.sec { position: relative; padding: clamp(90px, calc(15 * var(--sv)), 170px) 0; }
.sec .display { color: var(--ink); }
.sec .lede, .sec .body { color: var(--ink-2); }
.sec .say { color: var(--ink); }
@media (max-width: 899px) {
  .sec { padding: 84px 0; }
}
.sec.on-dark { background: var(--cine); color: var(--white); }
.sec.on-dark .display, .sec.on-dark .say { color: var(--white); }
.sec.on-dark .lede, .sec.on-dark .body { color: var(--silver); }

/* ---------- the continuation: the lines that lead to the next page, then its button ---------- */
.next { padding: clamp(110px, calc(18 * var(--sv)), 200px) 0 clamp(130px, calc(22 * var(--sv)), 240px); }
.next .say { max-width: 26ch; }
.next .say + .say { margin-top: 12px; }
.next-h { margin-top: clamp(26px, calc(4 * var(--sv)), 40px); max-width: 17ch; }
.next .cta { margin-top: clamp(44px, calc(7 * var(--sv)), 68px); }
.next--dark { background: var(--cine); color: var(--white); }
.next--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 28% 58%, rgb(14 46 42 / 0.55), transparent 72%),
    radial-gradient(40% 50% at 80% 30%, rgb(29 130 82 / 0.1), transparent 70%);
}
.next--dark > * { position: relative; }
.next--dark .say, .next--dark .display { color: var(--white); }
.next--dark .lede { color: var(--silver); }
@media (max-width: 899px) {
  .next .say { font-size: clamp(24px, 6.6vw, 30px); }
  .next-h.h2 { font-size: clamp(38px, 11vw, 52px); }
}

/* the button to the next part: ink on paper with a green light edge; on dark, green light */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 66px;
  margin: 0;
  padding: 20px 30px 20px 34px;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(17px, 1.45vw, 21px);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--white);
  background: var(--ink);
  box-shadow:
    inset 0 0 0 1.5px rgb(57 241 100 / 0.85),
    0 0 0 1px rgb(57 241 100 / 0.16),
    0 0 26px rgb(57 241 100 / 0.26),
    var(--btn-glow),
    0 16px 36px rgb(7 16 14 / 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.cta-arw {
  flex: none;
  color: var(--neon);
  font-size: 1.15em;
  text-shadow: 0 0 12px rgb(57 241 100 / 0.7);
  transition: transform 0.2s ease;
}
/* the green under-shadow stays under the button in every state, on paper and on dark (M8) */
.cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1.5px var(--neon),
    0 0 0 1px rgb(57 241 100 / 0.24),
    0 0 34px rgb(57 241 100 / 0.36),
    var(--btn-glow),
    0 18px 40px rgb(7 16 14 / 0.24);
}
.cta:hover .cta-arw { transform: translateX(4px); }
.cta:focus-visible { outline-offset: 5px; border-radius: 999px; }
.next--dark .cta, .cta--dark {
  color: var(--white);
  background: rgb(57 241 100 / 0.1);
  box-shadow:
    inset 0 0 0 1.5px var(--neon),
    0 0 22px rgb(57 241 100 / 0.38),
    var(--btn-glow),
    0 0 90px rgb(57 241 100 / 0.14);
}
.next--dark .cta:hover, .cta--dark:hover {
  background: rgb(57 241 100 / 0.16);
  box-shadow:
    inset 0 0 0 1.5px var(--core-g),
    0 0 28px rgb(57 241 100 / 0.5),
    var(--btn-glow),
    0 0 110px rgb(57 241 100 / 0.2);
}
@media (max-width: 899px) {
  .cta { width: 100%; max-width: 420px; min-height: 62px; padding: 18px 20px; gap: 12px; font-size: 16px; letter-spacing: 0.035em; }
}

/* ---------- the hello bar: the visitor's answer on the Invitation, acknowledged at the very top of every page ----------
   Plain HTML (first child of <main>), no script, its height reserved. Type on the page's paper with a hairline under
   it, the way a letterhead's rule sits: never a coloured web banner. */
:root { --hello-h: 54px; }
.hello { position: relative; z-index: 60; height: var(--hello-h); background: var(--paper-in); color: var(--ink); }
html[data-page="02"] .hello { background: var(--paper-2); }
html[data-page="03"] .hello { background: #f3f5f3; }
.hello::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  pointer-events: none;
  background: rgb(7 16 14 / 0.13);
}
.hello-in {
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 0 calc(var(--gutter) + 250px) 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 0 26px;
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.3;
  white-space: nowrap;
}
.hello-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink-3); }
.hello-role { font-weight: 600; color: var(--ink); letter-spacing: 0.16em; }
.hello-sep { color: var(--steel); }
.hello-n { letter-spacing: 0.06em; }
.hello-ticks { display: inline-flex; gap: 4px; margin-left: 4px; }
.hello-ticks i { width: 16px; height: 4px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(84 92 88 / 0.55); }
.hello-ticks i.on { background: var(--neon); box-shadow: 0 0 8px rgb(57 241 100 / 0.55); }
.hello-t { color: var(--ink-2); }
.hello-t b { font-weight: 600; color: var(--ink); }
.hello-a {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: rgb(7 16 14 / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  padding: 6px 0 5px;
  transition: color 0.2s;
}
.hello-a:hover { color: var(--ink); }
.hello-a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 3px; }
.hello--slim { --hello-h: 44px; }
@media (max-width: 899px) {
  :root { --hello-h: 66px; }
  .hello--slim { --hello-h: 62px; }
  /* two clean lines: the label (the chip sits right of it), then the words and the link */
  .hello-in { flex-wrap: wrap; align-content: center; row-gap: 7px; column-gap: 12px; padding: 0 var(--gutter); white-space: nowrap; }
  /* page 01's bar (its link ends under the chip's corner): both lines sit 3 px lower, so the label shares the chip's
     middle and the link starts below the chip's edge, never under it */
  .hello:not(.hello--slim) .hello-in { padding-top: 6px; }
  .hello-k { flex: 0 0 100%; font-size: 12px; gap: 8px; }
  .hello-x { display: none; }
  /* words a visitor reads: the sentence at 14 px, the link at 13.5 px in the body face; "This is your world." waits
     for the wider screen, it would make a third line */
  .hello-t { font-size: 14px; }
  .hello-a { font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0; padding: 3px 0 4px; }
  /* 02 and 03 carry page 01's "Pick again" too (2026-11-01 WHATS-LEFT N1): it ends the second line where page 01's does */
  .hello .hello-a { margin-left: auto; }
}
/* a narrower phone keeps the same two lines */
@media (max-width: 374px) {
  .hello-in { column-gap: 8px; }
  .hello-t { font-size: 13.5px; }
  .hello-a { font-size: 13px; }
}
