/* ==========================================================================
   DABACO OIL — Homepage soybean process V3 = THE MÊ GẠO MOTION APPROACH (2026-10-11, client preview; V1 = compact scene)
   Field → one soybean → the coat splits in two → the kernel falls out → golden oil droplet → the end picture → Technology.
   Reference analysis: scratch/qa/2026-10-11_soybean-reference-motion-v2/MOTION-ANALYSIS.md
   Markup: Views/Home/Sections/_SoybeanProcess.cshtml · controller: wwwroot/js/process-story.js

   The Hero stays its own block; the Process starts right under it (0px gap; no overlay, no blend, no mask over the
   Hero). There is NO pinned stage, NO sticky frame, NO border / card / panel: .do-journey is an ordinary block (about
   1.6 screens). The title sits at its top; the seed rides in on ONE centre rail (x = 50vw), holds briefly while it splits
   (a scroll-driven transform, not sticky), the shell leaves with the page while the kernel falls out of it and becomes the
   droplet; the droplet lands where the field dissolves into Technology's cream, the end picture grows out of it and the
   seed-to-oil copy follows below it, on the cream.
   Without JS: header + ordered list (plain text). Reduced motion: a still poster of the end state.
   Everything that moves is transform / opacity / clip-path.
   ========================================================================== */

.do-process {
  --pr-header: var(--header-height, 66px);
  position: relative;
  background-color: #FBF8F1;
  padding-block: clamp(56px, 7vw, 112px);
  scroll-margin-top: var(--pr-header);
}

/* The Hero / process onward links land below the sticky header. */
#technology-title {
  scroll-margin-top: calc(var(--header-height-desktop, 78px) + 24px);
}

.do-process__container {
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 3rem);
}

/* --- No JS: header + list (the story layer is hidden) ------------------------ */
.do-process__header {
  max-width: 46rem;
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.do-process__eyebrow {
  margin: 0 0 0.85rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dabaco-green);
}

.do-process__title {
  margin: 0;
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--dabaco-green);
  text-wrap: balance;
}

.do-process__rail {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.do-process__step {
  padding-left: 1.25rem;
  border-left: 2px solid var(--dabaco-green);
}

.do-process__label {
  margin: 0 0 0.35rem;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--text-dark, #1D1D1B);
}

.do-process__caption {
  margin: 0;
  line-height: 1.6;
  color: var(--do-text-muted, #68736C);
}

.do-process-story {
  display: none;
}

/* ==========================================================================
   THE JOURNEY (process-story.js adds .is-story, or .is-poster for reduced motion)
   ========================================================================== */
.do-process.is-story,
.do-process.is-poster {
  padding-block: 0;
  background-color: #0A2410;
}

/* Header + list stay available to assistive tech, hidden from view. */
.do-process.is-story .do-process__header,
.do-process.is-story .do-process__rail,
.do-process.is-poster .do-process__header,
.do-process.is-poster .do-process__rail {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.do-process.is-story .do-process__container,
.do-process.is-poster .do-process__container {
  max-width: none;
  padding-inline: 0;
}

.do-process.is-story .do-process-story,
.do-process.is-poster .do-process-story {
  display: block;
}

/* The journey is an ordinary block: its height is just how far the story runs.
   Sizes below are fractions of the viewport (svh / vw), so the same composition scales from 1920 to 390. */
.do-journey {
  --journey: 202svh;                           /* compact sequence: keep all beats, shorten holds and the ending */
  --fb: 0.35;                                  /* the field moves up the screen at this fraction of the page speed (= FB in
                                                  process-story.js): the world travels past the held seed */
  --y-intro: 8svh;                             /* the title's top in the journey (= the rail numbers in process-story.js) */
  --y-text: 187svh;                            /* below the released end picture, on the cream */
  /* the ONE field image: tall enough to cover the screen until the cream ending is opaque, plus room for a tiny scale */
  --plane: calc(106svh + (var(--journey) - 119svh) * var(--fb));
  --sh: min(44svh, 86vw);                      /* seed height: the seed itself, not the image canvas */
  --sw: calc(var(--sh) * 0.73182);              /* seed cutout is 775 x 1059 */
  --dh: min(48svh, 100vw);                     /* droplet / end picture box height (oil-drop-full.png is 547 : 750) */
  --dw: calc(var(--dh) * 0.7353);              /* the end image's cutout is 997 : 1356 */
  --body: 0.64;                                /* where the droplet's round body sits in its height */
  --mist: 1;                                   /* mist strength (lower on phones) */
  --end: #FCFAF4;                              /* the colour the journey dissolves into (Technology's top) */
  position: relative;
  height: var(--journey);
  overflow: clip;
  contain: paint;
  isolation: isolate;
  pointer-events: none;                        /* decorative (aria-hidden) */
  background: #0A2410;
}

/* Portrait tablets (V3): proportional to the width (seed ≈ 41%, end picture ≈ 50% of it), so the widening halves stay
   on the screen and the end picture keeps the desktop's balance; landscape (wide) screens keep the height-based size. */

/* Phones (V3): the seed is about half the screen's width, as small and central as the reference's subject on a phone,
   so the opening shell (halves parted by --spread 0.6 in process-story.js) never reaches the screen's edges. */

.do-process.is-poster .do-journey {
  --journey: min(86svh, 56rem);
  height: var(--journey);
}

/* --- THE LANDSCAPE ------------------------------------------------------------------------------ */
.do-journey__field {
  position: absolute;
  inset: 0;
  overflow: clip;
}

/* ONE field: a single image plane (bg-ruong-dau-tuong.jpg, one crop, never tiled, mirrored or cross-faded). It starts at
   the journey's top and moves up the screen at only --fb of the page speed, with a very slight scale (process-story.js):
   the field is the world, not a landscape running past. A slight softness keeps it an environment. */
.do-journey__bgwrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--plane);
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
  --pw: calc(var(--plane) * 2.087);          /* the photograph's width at the plane's height (1920 : 920) */
}

.do-journey__plane {
  position: absolute;
  top: 0;
  left: calc((100vw - var(--pw)) * 0.62);    /* the tractor and the light leaf (62% across the photograph) stay near 62% of the screen */
  width: var(--pw);
  height: 100%;
  max-width: none;
  object-fit: fill;
  filter: blur(0.8px) saturate(0.92);
}

/* Darkness over the field: at the top it meets the Hero's dark-green foot in tone (no blend, no overlay); it deepens while
   the object is on screen so the object is the subject. No panel, no edge. */
.do-journey__tone {
  position: absolute;
  inset: 0;
  opacity: 0.45;                             /* process-story.js raises it while the seed, split and oil are on screen */
  background: linear-gradient(180deg, rgba(6, 23, 10, 0.50) 0%, rgba(6, 23, 10, 0.64) 50%, rgba(6, 23, 10, 0.52) 100%);
}

/* --- Early-morning mist: soft white gradients only (no image, no hard edge, the field stays visible).
   Banks sit at fixed places in the document (--at, in screens/100) and drift at their own speeds
   (process-story.js, data-f): farther = slower, nearer = faster, the front wisp faster than the page. */
.do-journey__mist {
  position: absolute;
  left: calc(var(--x) * 1% - 22%);
  right: calc(var(--x) * -1% - 22%);
  top: calc(var(--at) * 1svh);
  height: calc(var(--h) * 1svh);
  pointer-events: none;
  opacity: calc(0.4 * var(--mist));            /* atmosphere only: faint, behind the story object */
  will-change: transform;
  background:
    radial-gradient(ellipse 52% 17% at 26% 36%, rgba(242, 251, 242, 0.26) 0%, rgba(242, 251, 242, 0) 74%),
    radial-gradient(ellipse 60% 15% at 76% 56%, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(ellipse 72% 11% at 48% 78%, rgba(240, 249, 241, 0.14) 0%, rgba(240, 249, 241, 0) 76%);
}

.do-journey__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* sideways only, symmetric about the centre rail: the edges recede, the rail is the light */
  background: linear-gradient(90deg, rgba(6, 23, 10, 0.34) 0%, rgba(6, 23, 10, 0) 30%, rgba(6, 23, 10, 0) 70%, rgba(6, 23, 10, 0.34) 100%);
}

/* The journey meets Technology below WITHOUT an edge: the field thins into mist and dissolves into Technology's cream. */
.do-journey__outro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86svh;                             /* lift the shared light backdrop behind the final caption */
  pointer-events: none;
  z-index: 1;                                /* below the story objects: the field softens, the picture stays crisp */
  /* the field thins out as it goes: the light rises and it becomes Technology's cream. A gradient only: a backdrop-filter
     here (blur / saturate over the moving field) cost every frame of the hand-off once the field became scroll-driven */
  background:
    linear-gradient(180deg, rgba(252, 250, 244, 0) 0%, rgba(240, 240, 226, 0.12) 12%, rgba(244, 243, 230, 0.5) 26%, rgba(250, 248, 239, 0.88) 40%, rgba(251, 250, 243, 0.98) 52%, var(--end) 62%, var(--end) 100%);
}

/* --- THE STORY OBJECTS -------------------------------------------------------------------------- */
.do-journey__path {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Two tracks (V3), one per rail: the shell's (focus group) and the kernel's (fall group). With scroll-driven animations a
   track is just the journey's top edge and each group is moved along its rail by its keyframes (process-story.js). */
.do-journey__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
}

/* The focus group (the seed) sits at the top centre of its track; process-story.js moves it along the shell's rail. */
.do-journey__focus {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

/* The fall group (the kernel, the oil, the droplet, the end picture) on the kernel's rail: it holds with the shell, falls
   away from the opened shell, holds again for the end picture, then leaves with the page. */
.do-journey__fall {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

.do-journey__aura {
  position: absolute;
  width: calc(var(--dh) * 1.3);
  height: calc(var(--dh) * 1.3);
  left: calc(var(--dh) * -0.65);
  top: calc(var(--dh) * -0.65);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 70, 0.55) 0%, rgba(255, 176, 40, 0.22) 36%, rgba(255, 176, 40, 0) 68%);
  opacity: 0;
  will-change: transform, opacity;
}

/* --- 02 SEED / 03 SHELL SPLITS ----------------------------------------------------
   The seed is the client's hat-dau-tuong-cutout.webp (cropped to its bounds, alpha untouched), shown twice as two
   complementary halves along ONE wavering crack through the hilum. Presentation only: a soft key light, an edge
   roll-off (the seed reads as round) and a shadow; no redraw. */
.do-journey__seed {
  position: absolute;
  width: var(--sw);
  height: var(--sh);
  left: calc(var(--sw) / -2);
  top: calc(var(--sh) / -2);
  will-change: transform, opacity, filter;
}

/* The coat's box is twice the seed's (inset −50%) and its children sit back on the seed (inset 25%), so the halves never
   leave it while they part: the see-through mask needs no "mask-clip: no-clip" (WebKit parses it but clips the mask to
   the box anyway, which cut the parting halves into rectangles). */
.do-journey__coats {
  position: absolute;
  inset: -50%;
  /* process-story.js masks it see-through over the kernel as the coat opens (an ellipse the kernel's size): the opening
     shows the kernel cleanly, never the coat's hilum over it */
  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 2.4svh 3.4svh rgba(0, 0, 0, 0.38)) drop-shadow(0 0.5svh 0.8svh rgba(0, 0, 0, 0.26));
}

.do-journey__half {
  position: absolute;
  inset: 25%;                                /* = the seed box inside the coat's doubled box */
  /* each half casts a faint shadow onto the inner seed once they part (alpha animated from 0 by process-story.js) */
  filter: drop-shadow(0 0.6svh 1.1svh rgba(40, 18, 0, 0));
  /* no will-change: as separate layers (masked, with a drop-shadow) inside the scroll-driven focus group they were
     re-rasterised every frame (≈50 ms frames at 1440); painted into the seed's layer they cost nothing */
}

/* the two halves pivot symmetrically about the rail (each at the middle of its inner edge) */
.do-journey__half--a { transform-origin: 100% 50%; }
.do-journey__half--b { transform-origin: 0% 50%; }

.do-journey__cut {
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.do-journey__cut--a {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M-12 -12 L47.62 -12 L48.04 -9 L49.65 -6 L51.46 -3 L52.38 0 L52.20 3 L51.75 6 L51.83 9 L52.27 12 L52.16 15 L50.90 18 L49.02 21 L47.72 24 L47.71 27 L48.54 30 L49.18 33 L49.18 36 L49.13 39 L49.91 42 L51.54 45 L53.04 48 L53.35 51 L52.41 54 L51.18 57 L50.58 60 L50.56 63 L50.26 66 L49.14 69 L47.71 72 L47.11 75 L47.91 78 L49.50 81 L50.71 84 L51.03 87 L50.99 90 L51.46 93 L52.52 96 L53.25 99 L52.75 102 L51.11 105 L49.43 108 L48.68 111 L-12 112 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M-12 -12 L47.62 -12 L48.04 -9 L49.65 -6 L51.46 -3 L52.38 0 L52.20 3 L51.75 6 L51.83 9 L52.27 12 L52.16 15 L50.90 18 L49.02 21 L47.72 24 L47.71 27 L48.54 30 L49.18 33 L49.18 36 L49.13 39 L49.91 42 L51.54 45 L53.04 48 L53.35 51 L52.41 54 L51.18 57 L50.58 60 L50.56 63 L50.26 66 L49.14 69 L47.71 72 L47.11 75 L47.91 78 L49.50 81 L50.71 84 L51.03 87 L50.99 90 L51.46 93 L52.52 96 L53.25 99 L52.75 102 L51.11 105 L49.43 108 L48.68 111 L-12 112 Z' fill='black'/%3E%3C/svg%3E");
}

.do-journey__cut--b {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M112 -12 L47.02 -12 L47.44 -9 L49.05 -6 L50.86 -3 L51.78 0 L51.60 3 L51.15 6 L51.23 9 L51.67 12 L51.56 15 L50.30 18 L48.42 21 L47.12 24 L47.11 27 L47.94 30 L48.58 33 L48.58 36 L48.53 39 L49.31 42 L50.94 45 L52.44 48 L52.75 51 L51.81 54 L50.58 57 L49.98 60 L49.96 63 L49.66 66 L48.54 69 L47.11 72 L46.51 75 L47.31 78 L48.90 81 L50.11 84 L50.43 87 L50.39 90 L50.86 93 L51.92 96 L52.65 99 L52.15 102 L50.51 105 L48.83 108 L48.08 111 L112 112 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M112 -12 L47.02 -12 L47.44 -9 L49.05 -6 L50.86 -3 L51.78 0 L51.60 3 L51.15 6 L51.23 9 L51.67 12 L51.56 15 L50.30 18 L48.42 21 L47.12 24 L47.11 27 L47.94 30 L48.58 33 L48.58 36 L48.53 39 L49.31 42 L50.94 45 L52.44 48 L52.75 51 L51.81 54 L50.58 57 L49.98 60 L49.96 63 L49.66 66 L48.54 69 L47.11 72 L46.51 75 L47.31 78 L48.90 81 L50.11 84 L50.43 87 L50.39 90 L50.86 93 L51.92 96 L52.65 99 L52.15 102 L50.51 105 L48.83 108 L48.08 111 L112 112 Z' fill='black'/%3E%3C/svg%3E");
}

/* Admin uploads can be opaque JPEGs. Keep the original cutout's alpha on each image,
   inside the existing crack masks, so both halves and the kernel stay transparent. */
.do-journey__coat,
.do-journey__core-img,
.do-journey__glass,
.do-journey__final {
  -webkit-mask-image: var(--journey-alpha-mask, url("/images/dabaco-oil/home/journey/hat-dau-tuong-cutout.webp"));
  mask-image: var(--journey-alpha-mask, url("/images/dabaco-oil/home/journey/hat-dau-tuong-cutout.webp"));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.do-journey__glass {
  --journey-alpha-mask: url("/images/dabaco-oil/home/journey/oil-drop-full.png");
}

.do-journey__final {
  --journey-alpha-mask: url("/images/dabaco-oil/home/journey/hanh-trinh-giot-dau-final.webp");
}

.do-journey__coat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Keep the alpha mask on the shell box while fitting the uploaded seed's visible bounds inside it. */
.do-journey__seed-photo {
  position: absolute;
  width: var(--seed-photo-width, 100%);
  height: var(--seed-photo-height, 100%);
  left: var(--seed-photo-left, 0%);
  top: var(--seed-photo-top, 0%);
  max-width: none;
}

/* The seam: faint, a natural line of the seed. It fades out as the shell parts along it. */
.do-journey__seam {
  position: absolute;
  inset: 25%;                                /* = the seed box inside the coat's doubled box */
  width: 50%;
  height: 50%;
  overflow: visible;
  opacity: 0;
  /* the seed's own alpha (same crop as .do-journey__coat), so the line never runs outside the seed */
  -webkit-mask-image: url("/images/dabaco-oil/home/journey/hat-dau-tuong-cutout.webp");
  mask-image: url("/images/dabaco-oil/home/journey/hat-dau-tuong-cutout.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.do-journey__seam path {
  fill: none;
  stroke: rgba(112, 66, 14, 0.5);
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: blur(0.6px);
}

/* --- 04 INNER SEED → 05 OIL → 06 DROPLET → END IMAGE ---------------------------------
   The droplet box. Inside it the inner seed (the same pixels, graded warm) is clipped by a shape that
   process-story.js morphs from the seed's outline to the droplet's outline, with a golden fill that
   emerges over it; the glass (the existing oil-drop-full.png) resolves over the finished shape, and the
   end image (the supplied picture, cut out of its ivory ground) grows out of the golden core. */
.do-journey__drop {
  position: absolute;
  width: var(--dw);
  height: var(--dh);
  left: calc(var(--dw) / -2);
  top: calc(var(--dh) * var(--body) * -1);
  transform-origin: 50% calc(var(--body) * 100%);
  will-change: transform;
}

/* The kernel and its oil stream rise together (process-story.js): the stream grows from the kernel's centre downwards
   exactly as fast as they rise, so its foot stays at the droplet's body, where the oil gathers. */
.do-journey__source {
  position: absolute;
  inset: 0;
}

/* The oil stream: a narrow golden pour with a rounded leading edge; light runs down it as it flows (background
   position, process-story.js). Its top is hidden behind the kernel. */
.do-journey__stream {
  display: none;                             /* superseded by the liquid silhouette (.do-journey__mass) */
  position: absolute;
  top: calc(var(--body) * 100%);
  left: calc(50% - var(--dw) * 0.055);
  width: calc(var(--dw) * 0.11);
  height: 61%;                               /* kernel centre → pool centre: RISE + POOL in process-story.js */
  transform-origin: 50% 0;
  transform: scaleY(0);
  border-radius: 0 0 50% 50% / 0 0 calc(var(--dw) * 0.06) calc(var(--dw) * 0.06);
  background:
    repeating-linear-gradient(180deg, rgba(255, 252, 228, 0) 0, rgba(255, 252, 228, 0.42) 2.2svh, rgba(255, 252, 228, 0) 5svh),
    linear-gradient(90deg, rgba(190, 112, 6, 0) 0%, rgba(214, 134, 14, 0.9) 14%, #F4AE27 32%, #FFE18A 47%, #FFF3C4 53%, #F8C444 68%, rgba(214, 134, 14, 0.9) 86%, rgba(190, 112, 6, 0) 100%);
  background-size: 100% 10svh, 100% 100%;
  box-shadow: 0 0 1.6svh 0.2svh rgba(255, 186, 52, 0.45);   /* the oil's own glow */
  /* its top third lies behind the kernel: faded, so it never shows through the kernel as it drains */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent 18%, #000 34%);
}

.do-journey__pool {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s linear;
}

/* once the end picture has grown over it, the droplet underneath steps out (it returns at once when scrolling back) */
.do-journey.is-final .do-journey__pool {
  opacity: 0;
  transition: opacity 0.25s linear 0.7s;
}

/* The liquid (2026-10-09): the golden kernel, the oil stream, the gathered oil and the droplet's body are ONE shape,
   clipped by a polygon that process-story.js (drawLiquid) recomputes from the scroll position. Layers, top to bottom:
   the kernel's own volume and the gathered oil's own volume (each sized / placed on its shape by process-story.js) and
   a cylindrical base gold; ::before is the light running down the stream (soft-edged, moved by --flow). */
.do-journey__mass {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(closest-side, rgba(255, 240, 184, calc(0.95 * var(--ka, 1))) 0%, rgba(251, 207, 94, calc(0.9 * var(--ka, 1))) 45%, rgba(236, 160, 36, calc(0.55 * var(--ka, 1))) 80%, rgba(236, 160, 36, 0) 100%),
    radial-gradient(closest-side, rgba(255, 240, 184, calc(0.95 * var(--ma, 1))) 0%, rgba(251, 207, 94, calc(0.9 * var(--ma, 1))) 45%, rgba(236, 160, 36, calc(0.55 * var(--ma, 1))) 80%, rgba(236, 160, 36, 0) 100%),
    linear-gradient(90deg, #C47A08 0%, #E99C1C 16%, #F8BF40 34%, #FFE27E 50%, #F8BF40 66%, #E99C1C 84%, #C47A08 100%);
  background-repeat: no-repeat;
  background-size: 0 0, 0 0, 100% 100%;
}

.do-journey__mass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 250, 226, 0) 0, rgba(255, 250, 226, 0.34) 2.6svh, rgba(255, 250, 226, 0) 5.5svh);
  background-size: 100% 11svh;
  background-position: 0 var(--flow, 0px);
  -webkit-mask-image: linear-gradient(90deg, transparent 43%, #000 50%, transparent 57%);
  mask-image: linear-gradient(90deg, transparent 43%, #000 50%, transparent 57%);
}

.do-journey__core {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: 50% calc(var(--body) * 100%);
  will-change: transform, opacity, clip-path;
}

/* The inner seed: the same client image at 90% of the coat, with the same crop (its seed bounds = 0.9 × the seed box),
   centred on the droplet's body, i.e. on the rail. The grade must list the same filter functions as process-story.js. */
.do-journey__core-img {
  position: absolute;
  max-width: none;
  width: calc(var(--sw) * .9);
  height: calc(var(--sh) * .9);
  left: calc(50% - var(--sw) * .45);
  top: calc(var(--dh) * var(--body) - var(--sh) * .45);
  filter: brightness(1) saturate(1.1) hue-rotate(0deg) contrast(1.02);
}

.do-journey__core-fill {
  position: absolute;
  inset: 0;
  z-index: 1;                                /* over the inner seed image: the golden kernel light (it also hides the inner
                                                seed's own hilum, so the opening never shows a second hilum) */
  opacity: 0;
  background:
    radial-gradient(ellipse 40% 38% at 52% calc(var(--body) * 100%), rgba(255, 226, 132, 0.96) 0%, rgba(250, 196, 72, 0.86) 50%, rgba(240, 160, 30, 0) 100%);   /* covers the seed cutout's hilum */
}

.do-journey__glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
}

/* The end picture fills the droplet box exactly and is revealed by a circle that grows from the golden sphere at its
   centre: a short time-based reveal once the droplet is complete (.is-final from process-story.js, like the reference's
   brand mark filling with photos); it reverses when scrolled back above that point. */
.do-journey__final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
  clip-path: circle(0% at 50% 64%);
  transform-origin: 50% 64%;                 /* the golden core */
  transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.2s linear 0.3s, transform 0.55s cubic-bezier(0.4, 0, 0.6, 1);
  will-change: clip-path, opacity, transform;
}

/* V2.2: the picture blooms 10% larger than the droplet it grows out of (uniform scale about the golden core; the droplet
   box, the oil and the glass keep their size) */
.do-journey.is-final .do-journey__final {
  opacity: 1;
  clip-path: circle(78% at 50% 64%);
  transform: none;
  transition: clip-path 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s linear, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- THE COPY: centred on the rail, in the journey's flow (title above the seed, beat below the droplet). Each block
   fades up in a short stagger when it enters the view (.is-in from process-story.js), and resets below the view. --- */
.do-journey__intro,
.do-journey__text {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--y-intro);
  z-index: 6;
  max-width: min(40rem, calc(100vw - 2.5rem));
  margin-inline: auto;
  text-align: center;
  color: #FFFFFF;
  pointer-events: none;
}

.do-journey__text {
  top: var(--y-text);
  max-width: min(34rem, calc(100vw - 2.5rem));
}

.do-journey__intro > p,
.do-journey__text > p {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.do-journey__intro.is-in > p,
.do-journey__text.is-in > p {
  opacity: 1;
  transform: none;
}

.do-journey__intro.is-in > p + p,
.do-journey__text.is-in > p + p {
  transition-delay: 0.15s;
}

/* a soft shade behind the title, so it stays readable on the field */
.do-journey__intro::before {
  content: "";
  position: absolute;
  inset: -2rem -3rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: radial-gradient(ellipse 60% 62% at 50% 50%, rgba(6, 23, 10, 0.55) 0%, rgba(6, 23, 10, 0) 100%);
}

.do-journey__intro.is-in::before {
  opacity: 1;
}

.do-journey__kicker {
  margin: 0 0 0.75rem;
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-wrap: balance;
}
.do-journey__heading {
  margin: 0;
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* the beat sits on the cream the field dissolves into: Technology's own colours */
.do-journey__label {
  margin: 0 0 0.4rem;
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--dabaco-green, #0B6B35);
  text-wrap: balance;                        /* the longer heading (2026-10-14) wraps into even lines */
}

.do-journey__label:last-child {
  margin-bottom: 0;                          /* no caption below it */
}

.do-journey__caption {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--do-text-muted, #68736C);
}

/* --- MOVEMENT LAYER, CSS scroll-driven (2026-10-09) ---------------------------------------------------------------
   Where the browser supports scroll-driven animations, process-story.js adds .is-sda and generates the keyframes
   (do-j-focus, do-j-fall, do-j-bg, do-j-mist-n) and names them on each element; here they are bound to the journey's
   view timeline, so the browser moves the shell, the kernel, the field and the mist in the same frame as the scroll.
   The range (--j-range, set by process-story.js) is anchored to the journey's top edge in px (V3), so it does not change
   when a mobile browser's visible height changes. Without support (or without JS) none of this applies and
   process-story.js moves them itself. */
@supports (animation-timeline: view()) {
  .do-process.is-sda .do-journey {
    view-timeline-name: --do-journey;
    view-timeline-axis: block;
  }

  .do-process.is-sda .do-journey__focus,
  .do-process.is-sda .do-journey__fall,
  .do-process.is-sda .do-journey__bgwrap,
  .do-process.is-sda .do-journey__mist {
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --do-journey;
    animation-range: var(--j-range, cover 0% cover 100%);
  }
}

/* --- JS FALLBACK (no scroll-driven animations, e.g. Firefox; V3) ----------------------------------------------------
   A held object must not be moved by script against the scroll: a browser that scrolls asynchronously (Firefox) paints
   the scrolled page before the script's counter-move, so the object rides with the page for a frame and snaps back. Here
   the browser holds it instead: each group is position: sticky in its track (the track starts where the seed rides in
   and is as long as the hold: process-story.js sets the lengths from the same rail numbers), so it rides in, holds 44%
   down the screen and is released exactly as on the rails above. Script only adds the kernel's short fall within its
   hold. The field is held the same way (a still world, as in the reference, where the world scrolls with the page only
   because its subject is held). */
.do-process.is-story:not(.is-sda) .do-journey__track {
  top: var(--rail-ride, 0px);
}

.do-process.is-story:not(.is-sda) .do-journey__track--shell {
  height: var(--track-shell, 0px);
}

.do-process.is-story:not(.is-sda) .do-journey__track--kernel {
  height: var(--track-kernel, 0px);
}

.do-process.is-story:not(.is-sda) .do-journey__focus,
.do-process.is-story:not(.is-sda) .do-journey__fall {
  position: sticky;
  top: var(--rail-hold, 0px);
  left: auto;
  margin-left: 50%;
}

.do-process.is-story:not(.is-sda) .do-journey {
  --plane: 104lvh;                           /* one screen (the largest, so a collapsing address bar never shows an edge) */
}

.do-process.is-story:not(.is-sda) .do-journey__bgwrap {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  will-change: auto;
}

/* The poster (reduced motion): the end state, no scroll animation; only the seed-to-oil copy, on the cream */
.do-process.is-poster .do-journey__intro {
  display: none;
}

.do-process.is-poster .do-journey__outro {
  height: 40svh;
}

.do-process.is-poster .do-journey__final,
.do-process.is-poster .do-journey__pool,
.do-process.is-poster .do-journey__text > p {
  transition: none;
}

/* Stage descriptions share the existing scroll timeline and stay beside the centre rail. */
.do-journey__stage-copy { display: none; }
.do-process.is-story .do-journey__stage-copy {
  display: block;
  position: absolute;
  z-index: 5;
  top: 0;
  left: var(--journey-side-copy-left, clamp(20px, 10vw, 200px));
  width: var(--journey-side-copy-width, min(32%, 560px));
  color: var(--bg-white);
  font-family: var(--do-font-heading, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: none;
  pointer-events: none;
}
.do-process.is-story .do-journey__stage-copy > p {
  max-width: 64ch;
  margin: 0 auto;
  text-align: left;
  text-wrap: pretty;
  font: inherit;
  letter-spacing: normal;
  color: inherit;
  opacity: 0;
  transition: opacity 600ms ease;
}
.do-process.is-story .do-journey__stage-copy.is-copy-visible > p {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .do-process.is-story .do-journey__stage-copy > p { transition: none; }
}
.do-journey__stage-copy p[hidden] { display: none; }
.do-journey__stage-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Reduced motion retains all narrative content as a static list below the poster. */
.do-process.is-poster .do-process__rail {
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: 48rem;
  margin: 0 auto !important;
  padding: 24px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: var(--dabaco-cream);
}

.do-process.is-story .do-journey__stage-copy.is-result { color: var(--dabaco-green, #0B6B35); }
.do-process.is-story.is-caption-stacked .do-journey__stage-copy {
  left: 0;
  translate: -50% 0;
  width: var(--journey-stacked-copy-width, min(88vw, 720px));
}
.do-process.is-story.is-caption-stacked .do-journey__stage-copy > p {
  text-align: center;
  text-wrap: balance;
}
.do-process.is-story .do-journey__stage-copy.is-result,
.do-process.is-story.is-caption-below .do-journey__stage-copy:not(.is-first-stage) {
  color: var(--dabaco-green, #0B6B35);
}
.do-process.is-story.is-caption-stacked .do-journey__stage-copy--right { display: none; }
.do-process.is-story:not(.is-caption-stacked) .do-journey__stage-copy,
.do-process.is-story:not(.is-caption-stacked) .do-journey__stage-copy.is-result {
  color: #FFFFFF;
  font-size: var(--fs-body);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 18px rgba(6, 23, 10, 0.6);
}
.do-process.is-story:not(.is-caption-stacked) .do-journey__stage-title { color: #FFFFFF; }
.do-process.is-story:not(.is-caption-stacked) .do-journey__stage-copy > p { transition: none; }
.do-process.is-story:not(.is-caption-stacked) .do-journey__stage-copy.is-copy-visible > p { opacity: var(--journey-copy-opacity, 1); }
.do-process.is-story:not(.is-caption-stacked) .do-journey {
  --journey-title-size: clamp(1.125rem, 2.8svh, var(--fs-h3));
  --journey-text-size: clamp(0.875rem, 1.95svh, var(--fs-body));
}
.do-process.is-story:not(.is-caption-stacked) :is(.do-journey__kicker, .do-journey__stage-title) {
  font-size: var(--journey-title-size);
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.do-process.is-story:not(.is-caption-stacked) :is(.do-journey__heading, .do-journey__stage-copy) {
  font-size: var(--journey-text-size);
  font-weight: 500;
  line-height: 1.6;
}
