/* Home page: composition C, "Procession" (owner's choice, 2026-10-14).
   Shared parts first, then the C layout and its scroll-linked focus band.
   (The .v-c class on <body> selects it.) */

.home {
  flex: 1;
  width: 100%;
  padding: 0 var(--gutter);
}

.opening {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.positioning {
  font-size: var(--size-positioning);
  line-height: 1.18;
  max-width: 22em;   /* two lines from tablet width up, breaking after "engineering," */
  margin-inline: auto;
  text-wrap: balance;
}

.rest {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thesis p {
  max-width: var(--measure);
  margin-inline: auto;
  text-wrap: pretty;
}

.founder-line { color: var(--ink-2); }

.punch {
  font-style: italic;
  font-size: var(--size-punch);
  line-height: 1.3;
  max-width: 22em;
  margin: 0.45em auto 0;
  text-wrap: balance;
}

.contact .label { margin-bottom: 0.6rem; }
.contact .region { color: var(--ink-2); }

/* ---- C · Procession ---------------------------------------------------
   Each thought gets a screen of its own, revealed one at a time. */
.v-c .opening {
  min-height: 100svh;
  justify-content: center;
  gap: clamp(2.5rem, 7vh, 4rem);
}
.v-c .rest > section {
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.v-c .rest > .hairline { display: none; }   /* the space itself separates each screen */
.v-c .rest > .contact { min-height: 60svh; }

/* C · focus band. Text is sharp while it sits in the middle third of the
   screen and blurs as it moves toward the top or bottom edge (fully blurred
   at the very edge). Each line follows its own position. Full colour
   throughout, so contrast never drops. The contact section and footer keep
   the standard behaviour: the page cannot scroll them up to the middle.

   Timeline maths: "cover 0%" is the moment a line's top edge appears at the
   bottom of the screen, "cover 100%" the moment its bottom edge leaves the
   top. For lines of text, 35%–65% of that journey ≈ the middle third. */
@keyframes band {
  0%   { filter: blur(8px); }
  35%  { filter: blur(0); }
  65%  { filter: blur(0); }
  100% { filter: blur(8px); }
}
@keyframes band-out {
  from { filter: blur(0); }
  to   { filter: blur(8px); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Thesis and founder lines: the band applies to each line, not the
       (screen-tall) section around it. */
    .v-c .thesis.reveal,
    .v-c .founder.reveal { animation-name: none; }
    .v-c .thesis > *,
    .v-c .founder > * {
      animation-name: band;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-duration: auto;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    /* Opening: keeps its arrival, then blurs as the visitor scrolls it away.
       Two animations: the arrival (time-based) and the scroll-linked blur.
       The blur follows how far the opening has scrolled, not where its lines
       sit on the screen, so the first screen is always sharp with the page
       at the top, whatever the screen's shape. (On a short landscape phone
       the lines sit near the top edge and would otherwise start blurred.)
       Timeline maths: "exit 0%" is the page at the top, "exit 100%" the
       opening scrolled fully away. The wordmark starts to blur once 15% of
       the screen has scrolled by, the positioning line a little later; each
       is fully blurred about as it leaves the top edge. */
    .v-c .opening { view-timeline: --opening block; }
    .v-c .wordmark.arrive,
    .v-c .positioning.arrive {
      animation-duration: 2.4s, auto;
      animation-timing-function: ease-out, linear;
      animation-fill-mode: both, forwards;
      animation-timeline: auto, --opening;
    }
    .v-c .wordmark.arrive {
      animation-name: focus, band-out;
      animation-delay: 0s, 0s;
      animation-range: normal, exit 15% exit 45%;
    }
    .v-c .positioning.arrive {
      animation-name: resolve, band-out;
      animation-delay: 1s, 0s;
      animation-range: normal, exit 30% exit 62%;
    }
  }
}
