/* This independent study keeps every rule scoped to its page and its stage. */
.page-desktop-flow {
  --flow-navy: #0d2544;
  --flow-cream: #f5ebc4;
  --flow-mustard: #e9b91a;
  --flow-coral: #ef6a9e;
  --flow-nav: 64px;
  background: var(--flow-navy);
}

.page-desktop-flow > .bio-canvas { display: none; }
.page-desktop-flow .site-footer { margin-top: 0; }
.page-desktop-flow .flow { color: var(--flow-cream); background: var(--flow-navy); }
.flow-track { position: relative; }
.flow-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0d2544;
  padding-bottom: 3rem;
}

.flow-stage__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 67% 26%, rgba(74, 138, 166, .15), transparent 61%), radial-gradient(ellipse at 10% 68%, rgba(239, 106, 158, .045), transparent 54%);
}

.flow-edition {
  position: relative;
  z-index: 5;
  order: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem clamp(1.3rem, 5vw, 5.5rem);
  font: 500 .66rem/1.3 Arial, sans-serif;
  letter-spacing: .19em;
  color: rgba(245, 235, 196, .67);
}
.flow-edition a { color: inherit; text-decoration: none; }
.flow-edition a span[aria-hidden] { margin-left: .6rem; color: var(--flow-mustard); }
.flow-edition a:hover { color: var(--flow-cream); }

.flow-art {
  position: relative;
  order: 2;
  display: block;
  width: 100%;
  height: clamp(220px, 35vw, 350px);
  flex: none;
  pointer-events: none;
}

.flow-copy {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  padding: 4rem 0;
  width: min(84%, 56rem);
  outline: none;
  color: var(--flow-cream);
}
.flow-copy--hero { order: 1; padding: 4rem 0 0; text-align: center; }
.flow-copy--surface { order: 3; }
.flow-copy--ocean { order: 4; border-top: 1px solid rgba(245, 235, 196, .15); }
.flow-copy h1, .flow-copy h2 { margin: 0; color: var(--flow-cream); font-family: var(--font-display, Georgia, serif); letter-spacing: -.042em; }
.flow-copy h1 { font-size: clamp(3.35rem, 8.9vw, 9.5rem); font-weight: 700; font-style: italic; line-height: 1.02; white-space: nowrap; }
.flow-copy h1 span { color: var(--flow-mustard); font-style: normal; }
.flow-copy h2 { font-size: clamp(2.9rem, 4.6vw, 5.55rem); font-weight: 500; line-height: 1.08; }
.flow-copy h2 em { color: var(--flow-mustard); font-weight: inherit; }
.flow-kicker {
  margin: 0 0 1.6rem;
  font: 500 .7rem/1.5 Arial, sans-serif;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: rgba(245, 235, 196, .72);
}
.flow-kicker__number { color: var(--flow-coral); margin-right: .9rem; }
.flow-copy--hero .flow-kicker { color: #a5c4c1; margin-bottom: 1.85rem; }
.flow-copy__lead { margin: 1.6rem 0 0; font-size: clamp(1.03rem, 1.3vw, 1.45rem); line-height: 1.7; color: rgba(245, 235, 196, .74); letter-spacing: .006em; }
.flow-copy--hero .flow-copy__lead { margin-top: 1.9rem; }
.flow-follow { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.4rem; color: var(--flow-cream); text-decoration: none; font: 500 .7rem/1.4 Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.flow-follow span { font-size: 1.5rem; font-family: Georgia, serif; color: var(--flow-mustard); }
.flow-follow:hover { color: var(--flow-mustard); }
.flow-cta { display: inline-flex; align-items: center; gap: 2.5rem; margin-top: 2.05rem; padding: .8rem 0; color: var(--flow-cream); border-bottom: 1px solid rgba(245, 235, 196, .5); font: 500 .82rem/1.5 Arial, sans-serif; text-decoration: none; }
.flow-cta span { color: var(--flow-mustard); font-size: 1.4rem; line-height: 1; transition: transform 180ms ease; }
.flow-cta:hover { color: var(--flow-mustard); border-color: var(--flow-mustard); }
.flow-cta:hover span { transform: translate(3px, -3px); }
.flow :is(a, button):focus-visible { outline: 2px solid var(--flow-mustard); outline-offset: 7px; border-radius: 2px; }
.flow-copy:focus-visible h2 { text-decoration: underline; text-decoration-color: rgba(245, 235, 196, .25); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.flow-chapters, .flow-progress { display: none; }

/* The opening plus six cycles end at the completed standalone material. */
.desktop-flow-motion .flow-track { height: 1480vh; height: 1480svh; }
.desktop-flow-motion .flow-stage { position: sticky; top: var(--flow-nav); height: calc(100vh - var(--flow-nav)); height: calc(100svh - var(--flow-nav)); padding: 0; display: block; }
.desktop-flow-motion .flow-edition { position: absolute; top: 0; left: 0; right: 0; padding-top: 2rem; }
.desktop-flow-motion .flow-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.desktop-flow-motion .flow-copy { position: absolute; left: 8.4%; top: 49%; width: 40%; margin: 0; padding: 0; transform: translateY(-50%); border: 0; will-change: transform, opacity; }
.desktop-flow-motion .flow-copy--hero { left: 5%; top: 40%; width: 90%; }
.desktop-flow-motion .flow-copy--surface, .desktop-flow-motion .flow-copy--ocean { opacity: 0; visibility: hidden; }
.desktop-flow-motion .flow-copy--ocean { top: 48%; }
.desktop-flow-motion .flow-copy--hero h1 { font-size: clamp(5rem, 8.9vw, 10rem); }
.desktop-flow-motion .flow-chapters { position: absolute; z-index: 6; left: 8.4%; bottom: 2rem; display: flex; align-items: center; gap: 1.1rem; }
.flow-chapters a { display: inline-flex; align-items: center; gap: .6rem; color: rgba(245, 235, 196, .52); font: 500 .64rem/1.3 Arial, sans-serif; letter-spacing: .08em; text-decoration: none; padding: .6rem .05rem; transition: color 180ms ease; }
.flow-chapters a.is-current, .flow-chapters a:hover { color: var(--flow-cream); }
.flow-chapters__number { font-size: .55rem; letter-spacing: .04em; }
.flow-chapters a.is-current .flow-chapters__number { color: var(--flow-mustard); }
.flow-chapters__line { width: 2.8rem; height: 1px; background: rgba(245, 235, 196, .22); }
.flow-chapters a.is-on-light,
.desktop-flow-motion .flow-stage:not([data-flow-progress]) .flow-chapters a { color: rgba(13,37,68,.67); }
.flow-chapters a.is-on-light.is-current, .flow-chapters a.is-on-light:hover,
.desktop-flow-motion .flow-stage:not([data-flow-progress]) .flow-chapters a.is-current { color: #0d2544; }
.flow-chapters a.is-on-light.is-current .flow-chapters__number,
.desktop-flow-motion .flow-stage:not([data-flow-progress]) .flow-chapters a.is-current .flow-chapters__number { color: #775517; }
.flow-chapters__line.is-on-light,
.desktop-flow-motion .flow-stage:not([data-flow-progress]) .flow-chapters__line { background: rgba(13,37,68,.28); }
.flow-chapters a.is-on-light:focus-visible { outline-color: #0d2544; }
.desktop-flow-motion .flow-progress { display: block; position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(245, 235, 196, .08); }
.flow-progress span { display: block; height: 100%; background: var(--flow-mustard); transform-origin: left; transform: scaleX(0); }

@media (min-width: 1000px) and (max-height: 800px) {
  .desktop-flow-motion .flow-edition { padding-top: 1.35rem; }
  .desktop-flow-motion .flow-copy h2 { font-size: clamp(2.8rem, 4.3vw, 4.8rem); }
  .desktop-flow-motion .flow-copy__lead { margin-top: 1.2rem; line-height: 1.6; }
  .desktop-flow-motion .flow-kicker { margin-bottom: 1.2rem; }
  .desktop-flow-motion .flow-chapters { bottom: 1.1rem; }
  .desktop-flow-motion .flow-follow { margin-top: 1.6rem; }
}
@media (max-width: 599px) {
  .flow-edition { font-size: .52rem; letter-spacing: .1em; }
  .flow-copy--hero { padding-top: 3rem; }
  .flow-copy h1 { font-size: 11vw; }
  .flow-copy h2 { font-size: 2.9rem; }
  .flow-kicker { font-size: .61rem; }
  .flow-copy__lead { font-size: 1rem; }
  .flow-copy { width: 84%; padding-bottom: 3rem; }
  .flow-copy--surface { padding-top: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flow * { scroll-behavior: auto; }
  .flow-cta span { transition: none; }
  .flow-route__layer, .flow-route__tab, .flow-route__tab-arrow { transition: none; }
}

/* A single surface carries the story through colour and material assembly. */
.flow-copy--build { order: 5; border-top: 1px solid rgba(245,235,196,.14); scroll-margin-top: calc(var(--flow-nav) + 1.5rem); }
.flow-copy--build .flow-kicker { color: #a5c4c1; line-height: 1.8; letter-spacing: .16em; }
.flow-copy__record { margin: 1.5rem 0 0; max-width: 33rem; color: rgba(245,235,196,.62); font-size: clamp(.78rem,.94vw,1rem); line-height: 1.6; }
.flow-record-link { display: inline-flex; align-items: center; gap: 1rem; padding: .6rem 0; margin-top: .65rem; color: rgba(245,235,196,.78); font: 500 .66rem/1.5 Arial,sans-serif; letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid rgba(245,235,196,.25); }
.flow-record-link span { color: var(--flow-mustard); font-size: 1.1rem; }
.flow-record-link:hover { color: var(--flow-mustard); }
.flow-cycle-nav, .flow-design-caption { display: none; }
.desktop-flow-motion .flow-copy--build { top: 45%; width: 35.5%; opacity: 0; visibility: hidden; }
.desktop-flow-motion .flow-copy--build h2 { font-size: clamp(2.65rem,3.75vw,4.5rem); line-height: 1.12; }
.desktop-flow-motion .flow-copy--build .flow-copy__lead { font-size: clamp(1rem,1.19vw,1.3rem); max-width: 32rem; }
.desktop-flow-motion .flow-cycle-nav { position: absolute; z-index: 6; bottom: 1.3rem; left: 8.4%; right: 7%; display: flex; gap: clamp(.7rem,1.4vw,1.6rem); align-items: center; opacity: 0; visibility: hidden; }
.flow-cycle-nav__label { font: 500 .58rem/1.6 Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase; width: 7.5rem; color: rgba(245,235,196,.4); }
.flow-cycle-nav a { position: relative; display: flex; align-items: center; gap: .55rem; padding: .6rem .15rem; color: rgba(245,235,196,.58); text-decoration: none; font: 500 .75rem/1.2 Arial,sans-serif; }
.flow-cycle-nav a::after { position: absolute; content: ''; left: .15rem; right: .15rem; bottom: 0; height: 1px; background: var(--flow-mustard); transform: scaleX(0); transform-origin: left; transition: transform 140ms ease; }
.flow-cycle-nav a span { color: rgba(245,235,196,.58); font-size: .66rem; }
.flow-cycle-nav a small { font-size: inherit; }
.flow-cycle-nav a[aria-current], .flow-cycle-nav a:hover { color: var(--flow-cream); }
.flow-cycle-nav a[aria-current] span { color: var(--flow-mustard); }
.flow-cycle-nav a[aria-current]::after { transform: scaleX(1); }
.desktop-flow-motion .flow-design-caption { position: absolute; z-index: 4; bottom: 5.1rem; left: 8.4%; margin: 0; display: block; opacity: 0; visibility: hidden; color: rgba(245,235,196,.6); font: 500 .6rem/1.5 Arial,sans-serif; letter-spacing: .09em; }
@media (min-width: 1000px) and (max-height: 800px) {
  .desktop-flow-motion .flow-copy--build { top: 44%; }
  .desktop-flow-motion .flow-copy--build h2 { font-size: clamp(2.5rem,3.6vw,3.9rem); }
  .desktop-flow-motion .flow-copy--build .flow-kicker { margin-bottom: .8rem; }
  .desktop-flow-motion .flow-copy__record { margin-top: 1rem; font-size: .79rem; }
  .desktop-flow-motion .flow-copy--build .flow-copy__lead { line-height: 1.55; margin-top: 1rem; }
  .desktop-flow-motion .flow-design-caption { bottom: 4.3rem; }
}
@media (max-width: 1150px) { .flow-cycle-nav__label { display: none; } }
@media (prefers-reduced-motion: reduce) { .flow-cycle-nav a::after { transition: none; } }
