/* GRAPHICA Flow site — sections.css — v1.13 (the hero's lede keeps its line break); v1.12 (the statement and the steps take the block's size share, --copy-scale; before: v1.11, a step's title is solid, as the bold line of the scene's title; its own transparency: --alpha-step-title; before: v1.10, the owner's name above the phone: .shore__name; before: v1.09, the shore's small print has its own transparency: --alpha-shore-fine; before: v1.08, a transparency for every kind of text: --alpha-*; before: v1.07, every kind of text has its own size and colour: tokens.css --size-*, --color-*)
   What is inside the copy blocks: the hero title, the statement, the six method steps, the points beside each
   example tablet, and the call on the shore.
   How the text comes in and leaves is scripts/copy-motion.js; the method steps wait for the thread
   (scripts/method-nodes.js sets "is-lit" on a step and "is-complete" on the list); an example's points wait for its
   dashboard (scripts/demo-points.js sets "is-shown", and "is-spotlit" while a point lights its part); the call
   button charges when the river runs through it (scripts/finale.js sets "is-charged"). */

/* ---- hero: the logo leads; the title under it stays quieter than the logo (tokens.css --hero-*-scale) ---- */
.hero__title {
  color: color-mix(in srgb, var(--color-hero-title) calc(var(--alpha-hero-title) * 100%), transparent);
  font-size: calc(var(--t-hero) * var(--hero-title-scale));
}

.hero__lede {
  margin: 0.9em auto 0;
  max-width: 44ch;
  color: color-mix(in srgb, var(--color-hero-lede) calc(var(--alpha-hero-lede) * 100%), transparent);
  font-size: calc(var(--t-lede) * var(--hero-lede-scale));
  line-height: var(--leading-body);
  text-wrap: balance;
  white-space: pre-line; /* the line break in the words (texts.js) is kept: two lines (Martin 2026-11-17) */
}

/* ---- the authored silence: one sentence, large ---- */
.statement {
  color: color-mix(in srgb, var(--color-statement) calc(var(--alpha-statement) * 100%), transparent);
  font-size: calc(var(--t-statement) * var(--size-statement) * var(--copy-scale, 1));
}

.statement .weight-thin {
  color: color-mix(in srgb, var(--color-statement-soft) calc(var(--alpha-statement) * 100%), transparent);
}

.statement .weight-bold {
  margin-top: 0.12em;
}

/* ---- the six method steps ---- */
.steps {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 34px);
}

.step__mark {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
}

.step__title {
  margin: 0;
  color: var(--ink-2);
  font-size: calc(var(--t-body) * var(--size-steps) * var(--copy-scale, 1));
  font-weight: var(--weight-bold);
  font-stretch: var(--stretch-wide);
  letter-spacing: -0.03em;
  transition: color var(--fade-slow) var(--ease-out);
}

.step__body {
  margin: 0.45em 0 0;
  color: var(--ink-3);
  font-size: calc(var(--t-small) * var(--size-steps) * var(--copy-scale, 1));
  line-height: 1.5;
  transition: color var(--fade-slow) var(--ease-out);
}

.step.is-lit .step__title {
  color: color-mix(in srgb, var(--color-step-title) calc(var(--alpha-step-title) * 100%), transparent);
}

.step.is-lit .step__body {
  color: color-mix(in srgb, var(--color-step-body) calc(var(--alpha-steps) * 100%), transparent);
}

/* with the moving world, a step waits for the thread: it comes in out of a blur when its node lights up, its
   title glows for a moment, and once all six are lit a soft wave of light runs over the titles */
.js .step__title,
.js .step__body {
  opacity: 0;
  filter: blur(var(--reveal-blur));
  translate: 0 var(--reveal-rise);
  transition:
    opacity var(--reveal) var(--ease-out),
    filter var(--reveal) var(--ease-out),
    translate calc(var(--reveal) * 1.25) var(--ease-out),
    color var(--fade-slow) var(--ease-out);
}

.js .step__body {
  transition-delay: calc(var(--reveal) * 0.25);
}

.js .step.is-lit .step__title,
.js .step.is-lit .step__body {
  opacity: 1;
  filter: none;
  translate: none;
}

.js .step.is-lit .step__title {
  animation: step-flash var(--flash) var(--ease-out) both;
}

.js .steps.is-complete .step__title {
  animation:
    step-flash var(--flash) var(--ease-out) both,
    step-wave calc(var(--flash) * 1.2) ease-in-out
      calc(var(--finale-delay, 0s) + var(--step-index, 0) * var(--finale-stagger, 0s)) both;
}

@keyframes step-flash {
  from {
    text-shadow:
      0 0 22px rgba(254, 194, 49, 0.6),
      0 0 3px rgba(255, 227, 154, 0.5);
  }

  to {
    text-shadow:
      0 0 22px rgba(254, 194, 49, 0),
      0 0 3px rgba(255, 227, 154, 0);
  }
}

@keyframes step-wave {
  0%,
  100% {
    text-shadow:
      0 0 18px rgba(255, 227, 154, 0),
      0 0 2px rgba(255, 227, 154, 0);
  }

  35% {
    text-shadow:
      0 0 18px rgba(255, 227, 154, 0.45),
      0 0 2px rgba(255, 227, 154, 0.4);
  }
}

@media (max-aspect-ratio: 21/20) {
  .steps {
    position: static;
    margin-top: 1.2em;
    grid-template-columns: 1fr;
    gap: clamp(8px, 1.6vh, 16px);
  }

  .step {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 14px;
  }

  .step__mark {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .step__title {
    font-size: calc(var(--t-small) * var(--size-steps));
    line-height: 24px;
  }

  .step__body {
    margin-top: 0.1em;
    font-size: calc(0.82rem * var(--size-steps));
    line-height: 1.4;
  }
}

/* ---- the points beside an example tablet: with the moving world they wait for its dashboard, then pop up one after
   another; while a point lights its part of the dashboard, its dot catches the same light ---- */
.demo-points {
  --pop: 0.5s; /* a point comes up over this long */

  margin: 1em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6em;
}

.demo-point {
  position: relative;
  padding-left: 1.3em;
  color: color-mix(in srgb, var(--color-points) calc(var(--alpha-points) * 100%), transparent);
  font-size: calc(var(--t-body) * var(--size-points));
  line-height: 1.45;
  transition: color var(--fade-slow) var(--ease-out);
}

.demo-point::before {
  content: '';
  position: absolute;
  left: 0.1em;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--cold);
  transition:
    background-color var(--fade-quick) var(--ease-out),
    border-color var(--fade-quick) var(--ease-out),
    box-shadow var(--fade-slow) var(--ease-out);
}

.js .demo-point {
  opacity: 0;
  filter: blur(calc(var(--reveal-blur) * 0.6));
  translate: 0 var(--reveal-rise);
  transition:
    opacity var(--pop) var(--ease-out),
    filter var(--pop) var(--ease-out),
    translate var(--pop) var(--ease-out),
    color var(--fade-slow) var(--ease-out);
}

.js .demo-point.is-shown {
  opacity: 1;
  filter: none;
  translate: none;
}

.demo-point.is-spotlit {
  color: color-mix(in srgb, var(--color-points-lit) calc(var(--alpha-points) * 100%), transparent);
}

.demo-point.is-spotlit::before {
  border-color: var(--warm);
  background: var(--warm);
  box-shadow: 0 0 10px 2px rgba(254, 194, 49, 0.55);
}

@media (max-aspect-ratio: 21/20) {
  .demo-points {
    margin-top: 0.7em;
    gap: 0.3em;
  }

  .copy--demo .copy__title {
    font-size: calc(1.6rem * var(--size-title));
  }

  .demo-point {
    font-size: calc(0.88rem * var(--size-points));
    line-height: 1.38;
  }
}

/* ---- the shore ---- */
.shore__slogan {
  margin: 0.9em 0 0;
  max-width: 34ch;
  color: color-mix(in srgb, var(--color-slogan) calc(var(--alpha-slogan) * 100%), transparent);
  font-size: calc(var(--t-lede) * var(--size-slogan) * var(--copy-scale, 1));
  line-height: var(--leading-body);
  text-wrap: balance;
}

/* the owner's name, above the phone number: the slogan's colour, a little bolder */
.shore__name {
  margin: 1.1em 0 0;
  color: color-mix(in srgb, var(--color-slogan) calc(var(--alpha-slogan) * 100%), transparent);
  font-size: calc(var(--t-body) * var(--size-slogan) * var(--copy-scale, 1));
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
}

.phone-link {
  display: inline-block;
  margin-top: 0.15em;
  color: color-mix(in srgb, var(--color-phone) calc(var(--alpha-phone) * 100%), transparent);
  font-size: calc(clamp(1.5rem, 1rem + 1.6vw, 2.5rem) * var(--size-phone) * var(--copy-scale, 1));
  font-weight: var(--weight-thin);
  font-stretch: var(--stretch-wider);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--pale);
}

.copy--shore .call-pill {
  position: relative;
  margin-top: 1.1em;
  font-size: calc(var(--t-body) * var(--copy-scale, 1)); /* the button is built in em: its size follows the screen's scale */
}

/* the river runs through the button: a steady glow comes up around it (::after), and its icon and label catch the
   light. No pulsing outline leaves it. Outer shadows only, so nothing covers the button itself */
.copy--shore .call-pill::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.copy--shore .call-pill::after {
  box-shadow:
    0 0 0 1px rgba(254, 194, 49, 0.55),
    0 0 26px 2px rgba(254, 194, 49, 0.38),
    0 0 64px 10px rgba(75, 241, 226, 0.14);
  transition: opacity var(--fade-slow) var(--ease-out);
}

.copy--shore .call-pill .call-pill__icon,
.copy--shore .call-pill .call-pill__label {
  transition:
    box-shadow var(--fade-slow) var(--ease-out),
    text-shadow var(--fade-slow) var(--ease-out);
}

.copy--shore .call-pill.is-charged::after {
  opacity: 1;
}

.copy--shore .call-pill.is-charged .call-pill__icon {
  box-shadow: 0 0 18px 2px rgba(254, 194, 49, 0.55);
}

.copy--shore .call-pill.is-charged .call-pill__label {
  text-shadow: 0 0 14px rgba(255, 227, 154, 0.5);
}

/* the last line on the screen: the small print, at its own transparency on top of the small print's own */
.shore__fine {
  max-width: 40ch;
  margin-top: 0.6em;
  color: color-mix(in srgb, var(--color-fine) calc(var(--alpha-fine) * var(--alpha-shore-fine) * 100%), transparent);
}

.sign-off {
  margin: 1.2em 0 0;
  color: var(--ink-3);
  font-size: calc(var(--t-label) * var(--size-label));
  font-weight: var(--weight-medium);
  font-stretch: var(--stretch-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .js .step__title,
  .js .step__body,
  .js .demo-point {
    filter: none;
    translate: none;
  }

  .js .demo-point {
    opacity: 1;
  }

  .js .step.is-lit .step__title,
  .js .steps.is-complete .step__title {
    animation: none;
  }
}
