@vectoriox/iox-ui 5.163.0 → 5.164.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, decomposeCssFunctions, FILTER_FUNCTIONS, wcagContrastRatio, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING } from '@vectoriox/iox-ui/design-core';
2
2
  export { HeaderInk } from '@vectoriox/iox-ui/design-core';
3
- import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, SceneRole, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
3
+ import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SceneRole, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
4
4
  import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
5
5
  import { normalizeFrameSequence, filmScreensFor, VideoMode, VideoSource, FILM_PREPARED_PICTURES, FrameExtension } from '@vectoriox/iox-ui/media-core';
6
6
  import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
7
7
  import { VARIANT_NAME_SEPARATOR, commerceLanguage, CommerceLanguage, CHECKOUT_GATE_RULES, labelIn, CheckoutGateCode } from '@vectoriox/iox-ui/commerce-core';
8
- import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy, SceneEase, SCENE_TRACK_EASE } from '@vectoriox/iox-ui/scene-core';
8
+ import { ParallaxDepth, parallaxShift, rangeDistance, ScrollRange, normalizeParallaxPhone, parallaxRest, rangeProgress, parallaxOffset, TextRevealBy, SceneRange, SceneProp, SceneRevealFrom, SceneEase, SCENE_TRACK_EASE } from '@vectoriox/iox-ui/scene-core';
9
9
  import { SCROLL_PROGRESS_TRIGGER, ELEMENT_ACTION_DESCRIPTORS, actionOfferedUnder, resolveActionAvailability } from '@vectoriox/iox-ui/actions-core';
10
10
  import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
11
11
 
@@ -608,6 +608,20 @@ const SPEC_SITE_PATTERNS = {
608
608
  100
609
609
  ]
610
610
  ]
611
+ },
612
+ {
613
+ "prop": "y",
614
+ "range": "exit",
615
+ "keys": [
616
+ [
617
+ 0,
618
+ 0
619
+ ],
620
+ [
621
+ 1,
622
+ 30
623
+ ]
624
+ ]
611
625
  }
612
626
  ]
613
627
  },
@@ -6889,7 +6903,8 @@ const SPEC_SITE_LAYOUT = {
6889
6903
  "sectionKinds": [
6890
6904
  "content",
6891
6905
  "inhale",
6892
- "signature"
6906
+ "signature",
6907
+ "drawers"
6893
6908
  ],
6894
6909
  "buttonVariants": [
6895
6910
  "primary",
@@ -7042,7 +7057,11 @@ const SPEC_SITE_LAYOUT = {
7042
7057
  "voidScreen": 0.6,
7043
7058
  "bandColumns": 10,
7044
7059
  "composedPages": 2,
7045
- "repairs": 1
7060
+ "repairs": 1,
7061
+ "drawerSteps": [
7062
+ 3,
7063
+ 5
7064
+ ]
7046
7065
  },
7047
7066
  "sameness": {
7048
7067
  "sequence": 0.8,
@@ -7069,7 +7088,7 @@ const SPEC_SITE_LAYOUT = {
7069
7088
  {
7070
7089
  "id": "photo-unveiled",
7071
7090
  "label": "a photo unveiled",
7072
- "how": "a clip track opening a photo from a slit to the full screen",
7091
+ "how": "a clip track opening a photo to the full screen — drawn from a framed 60% with the ground around it, sinking as the next band rises (AW9)",
7073
7092
  "tier": "all"
7074
7093
  },
7075
7094
  {
@@ -7108,6 +7127,12 @@ const SPEC_SITE_LAYOUT = {
7108
7127
  "how": "rotate + opacity tracks while its words change",
7109
7128
  "tier": "all"
7110
7129
  },
7130
+ {
7131
+ "id": "drawers",
7132
+ "label": "drawers",
7133
+ "how": "a held section whose 3–5 steps (one heading each, words and buttons only) slide in from the end and stack, each keeping its titled spine, the grounds deepening to the brand",
7134
+ "tier": "pro"
7135
+ },
7111
7136
  {
7112
7137
  "id": "held-screen",
7113
7138
  "label": "a held screen",
@@ -11659,8 +11684,10 @@ const SPEC_SITE_LAYOUT = {
11659
11684
  "where": "an entrance plays once (viewportEnter, once), or by the scroll (AW10: scrollProgress, until 0.5)"
11660
11685
  },
11661
11686
  "phoneWalk": {
11662
- "built": [],
11663
- "where": "a sideways walk on a phone plays as on a laptop, degraded by scrollPlayFor"
11687
+ "built": [
11688
+ "swipe"
11689
+ ],
11690
+ "where": "generation-core composeLayout (AW9, RT-D4): on a phone a sideways walk is a row you swipe, one screen of it per card — every tier"
11664
11691
  },
11665
11692
  "phoneBar": {
11666
11693
  "built": [
@@ -11801,6 +11828,31 @@ const SPEC_SITE_LAYOUT = {
11801
11828
  "meaning": "an out-of-season card with notify me"
11802
11829
  }
11803
11830
  ]
11831
+ },
11832
+ "drawers": {
11833
+ "spine": 4.5,
11834
+ "slide": 1,
11835
+ "rest": 0.5,
11836
+ "ramp": {
11837
+ "3": [
11838
+ "subtle",
11839
+ "muted",
11840
+ "accent"
11841
+ ],
11842
+ "4": [
11843
+ "default",
11844
+ "subtle",
11845
+ "muted",
11846
+ "accent"
11847
+ ],
11848
+ "5": [
11849
+ "default",
11850
+ "subtle",
11851
+ "muted",
11852
+ "inverse",
11853
+ "accent"
11854
+ ]
11855
+ }
11804
11856
  }
11805
11857
  };
11806
11858
 
@@ -18435,6 +18487,10 @@ var LayoutSectionKind;
18435
18487
  (function (LayoutSectionKind) {
18436
18488
  LayoutSectionKind["Content"] = "content";
18437
18489
  LayoutSectionKind["Inhale"] = "inhale";
18490
+ /** AW9 (award plan "Reddottours" S4): the drawers signature — a held section whose steps (a heading each, then its words
18491
+ * and buttons) slide in from the inline end and stack, each keeping its titled spine. Award tier only; it is the page's
18492
+ * signature (`signature: true`), its length is its steps' (`drawersOf`). */
18493
+ LayoutSectionKind["Drawers"] = "drawers";
18438
18494
  })(LayoutSectionKind || (LayoutSectionKind = {}));
18439
18495
  var LayoutButtonVariant;
18440
18496
  (function (LayoutButtonVariant) {
@@ -19963,6 +20019,88 @@ function layoutScrubTakes(layer, textual, scrub, context = {}) {
19963
20019
  return scrubsEntrance(scrub, reveals ? TEXT_REVEAL : layer.enter, context);
19964
20020
  }
19965
20021
 
20022
+ /**
20023
+ * AW9 `drawers` (award plan "Reddottours" S4, RT-D1): a held section whose STEPS slide in from the inline end, one after
20024
+ * the other, linearly with the scroll, and stop one spine after the step before — so the stack builds a row of titled
20025
+ * spines — while their grounds deepen through the look's schemes to the brand. Pure: what a drawers section is, how long
20026
+ * it holds and when each step moves; `composeLayout` stamps it and `checkLayout` holds it. The words arriving as a step
20027
+ * lands is AW10, not here.
20028
+ */
20029
+ const D = SPEC_SITE_LAYOUT.drawers;
20030
+ /** How many steps a drawers section holds (one heading each): fewer or more is refused. */
20031
+ const DRAWER_STEPS = [SPEC_SITE_LAYOUT.limits.drawerSteps[0], SPEC_SITE_LAYOUT.limits.drawerSteps[1]];
20032
+ /** A spine's width, in % of the stage's width (cqw). */
20033
+ const DRAWER_SPINE = D.spine;
20034
+ /** The kinds a step may hold: words and buttons — a step is the owner's words, never a picture (the award plan: "it needs
20035
+ * no photos"). */
20036
+ const DRAWER_KINDS = new Set([
20037
+ LayoutLayerKind.Heading, LayoutLayerKind.Word, LayoutLayerKind.Text, LayoutLayerKind.Label, LayoutLayerKind.Number,
20038
+ LayoutLayerKind.List, LayoutLayerKind.Button,
20039
+ ]);
20040
+ /** Is this section the drawers signature? */
20041
+ const isDrawers = (s) => s?.kind === LayoutSectionKind.Drawers;
20042
+ /**
20043
+ * A drawers section's steps, as indices into its layers: each heading starts a step and holds the layers written after it,
20044
+ * up to the next heading. Layers written before the first heading belong to the first step.
20045
+ */
20046
+ function drawerSteps(layers) {
20047
+ const steps = [];
20048
+ layers.forEach((l, i) => {
20049
+ if (l.kind === LayoutLayerKind.Heading || !steps.length)
20050
+ steps.push([i]);
20051
+ else
20052
+ steps[steps.length - 1].push(i);
20053
+ });
20054
+ // A first step opened by a non-heading and followed by a heading: the heading opened a step of its own above; the
20055
+ // words before it are its own step only when there was no heading at all.
20056
+ if (steps.length > 1 && layers[steps[0][0]]?.kind !== LayoutLayerKind.Heading) {
20057
+ const [lead, next, ...rest] = steps;
20058
+ return [[...lead, ...next], ...rest];
20059
+ }
20060
+ return steps;
20061
+ }
20062
+ /** How many steps a drawers section holds: its headings (at least one step when it has any layer). */
20063
+ function drawerStepCount(layers) {
20064
+ return drawerSteps(layers).length;
20065
+ }
20066
+ const round = (v) => Math.round(v * 10000) / 10000;
20067
+ /** How long `n` steps hold and when each slides: a rest, one slide per step after the first, a rest (theirs: ½ · 1 · ½). */
20068
+ function drawersTiming(n) {
20069
+ const count = Math.max(1, Math.round(n));
20070
+ const hold = D.rest * 2 + D.slide * (count - 1);
20071
+ const windows = Array.from({ length: count }, (_, i) => {
20072
+ if (i === 0 || hold <= 0)
20073
+ return null;
20074
+ const start = D.rest + D.slide * (i - 1);
20075
+ return [round(start / hold), round((start + D.slide) / hold)];
20076
+ });
20077
+ return { hold, screens: hold + 1, windows };
20078
+ }
20079
+ /** Where step `i` of `n` rests once landed, in % of the stage's width from the inline start: one spine per step before it. */
20080
+ const drawerRestX = (i) => round(i * DRAWER_SPINE);
20081
+ /** A step's width: the stage less the spines of every step after the first. */
20082
+ const drawerWidth = (n) => round(100 - (Math.max(1, n) - 1) * DRAWER_SPINE);
20083
+ /** The schemes `n` steps wear, first to last — the look's own, deepening to the brand. Null outside the steps allowed. */
20084
+ function drawerRamp(n) {
20085
+ const ramp = D.ramp[String(n)];
20086
+ return ramp ? ramp.map(id => id) : null;
20087
+ }
20088
+ /** A signature of the contract offered to a build at `tier`: a `pro` row to the award tier alone (AW-D23). */
20089
+ function layoutSignatureOffered(id, tier) {
20090
+ const row = SPEC_SITE_LAYOUT.signatures.find(s => s.id === id);
20091
+ return !!row && (row.tier !== 'pro' || tier === GenerationTier.Award);
20092
+ }
20093
+ /** The section kinds the layout wire offers a build at `tier`: content · inhale · signature, and a signature kind
20094
+ * (`drawers`) only where its signature is offered. */
20095
+ function layoutSectionKindsOffered(tier) {
20096
+ return SPEC_SITE_LAYOUT.vocab.sectionKinds
20097
+ .filter(k => !SPEC_SITE_LAYOUT.signatures.some(s => s.id === k) || layoutSignatureOffered(k, tier));
20098
+ }
20099
+ /** The signatures a build at `tier` may be told of (the layout prompt's list). */
20100
+ function layoutSignaturesOffered(tier) {
20101
+ return SPEC_SITE_LAYOUT.signatures.filter(s => layoutSignatureOffered(s.id, tier)).map(s => ({ id: s.id, label: s.label, how: s.how }));
20102
+ }
20103
+
19966
20104
  /**
19967
20105
  * THE LIST TABLE (list-ingredients-plan.md; the contract's `layout.mjs` `LIST`, in the shape every mixed part shares —
19968
20106
  * ingredients.md §2): the words of each ingredient, what each means, and which wait for a later phase and are drawn as
@@ -20062,6 +20200,8 @@ const GALLERY_EFFECTS = V$1.galleryEffects;
20062
20200
  const FORM_PRESETS = V$1.formPresets;
20063
20201
  const BUTTON_VARIANTS = V$1.buttonVariants;
20064
20202
  const NONE$3 = 'none';
20203
+ /** AW9: the section kind that is the drawers signature. */
20204
+ const DRAWERS = LayoutSectionKind.Drawers;
20065
20205
  const CLIP = 'clipReveal';
20066
20206
  const CLIP_SIDE = `${CLIP}-`;
20067
20207
  /** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
@@ -20204,7 +20344,9 @@ function layoutWireJsonSchema(options = {}) {
20204
20344
  });
20205
20345
  const section = closed$1({
20206
20346
  id: text$2('a short slug, unique on the page'),
20207
- kind: oneOf$2(V$1.sectionKinds, 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
20347
+ kind: oneOf$2(layoutSectionKindsOffered(options.tier), layoutSectionKindsOffered(options.tier).includes(DRAWERS)
20348
+ ? `content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE) · drawers (the signature as ${DRAWER_STEPS[0]}–${DRAWER_STEPS[1]} steps sliding in and stacking: each step a heading, then its words and buttons; held, no photos)`
20349
+ : 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
20208
20350
  screens: integer('1..5 screen heights'),
20209
20351
  hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
20210
20352
  ground: text$2("a colour name, or photo:<id>"),
@@ -20431,6 +20573,13 @@ function expandSection(s) {
20431
20573
  out.pin = true;
20432
20574
  if (hold >= 2)
20433
20575
  out.track = hold;
20576
+ // AW9: drawers IS the page's signature, and held — its steps say how long; it never walks sideways.
20577
+ if (kind === DRAWERS) {
20578
+ out.kind = LayoutSectionKind.Drawers;
20579
+ out.signature = true;
20580
+ out.pin = true;
20581
+ delete out.track;
20582
+ }
20434
20583
  return out;
20435
20584
  }
20436
20585
  /**
@@ -20516,7 +20665,7 @@ function layoutToWire(page) {
20516
20665
  ...(columnWordOf(page.column) ? { column: page.column } : {}),
20517
20666
  sections: page.sections.map(s => (s.carry ? carryPlaceToWire(s) : {
20518
20667
  id: s.id,
20519
- kind: s.signature ? 'signature' : s.kind ?? 'content',
20668
+ kind: s.kind === LayoutSectionKind.Drawers ? DRAWERS : s.signature ? 'signature' : s.kind ?? 'content',
20520
20669
  screens: s.screens,
20521
20670
  hold: s.pin ? s.track ?? 1 : 0,
20522
20671
  ground: s.ground ?? 'ground',
@@ -21736,9 +21885,10 @@ function layoutShapeHasPurpose(s, li) {
21736
21885
  return true;
21737
21886
  return !!l.motion?.length || (!!l.depth && l.depth !== LayoutDepth.Mid);
21738
21887
  }
21739
- /** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. */
21888
+ /** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. Drawers
21889
+ * (AW9) are never still: their steps slide. */
21740
21890
  function layoutHeldStill(s) {
21741
- if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry)
21891
+ if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry || s.kind === LayoutSectionKind.Drawers)
21742
21892
  return false;
21743
21893
  return !(s.layers ?? []).some(l => !!l.motion?.length || !!l.kinetic || (l.kind === LayoutLayerKind.Gallery && !!l.gallery?.scroll));
21744
21894
  }
@@ -22639,6 +22789,35 @@ function wordsOfLayer(l) {
22639
22789
  ].filter(Boolean);
22640
22790
  }
22641
22791
  const NOTHING_CARRIED = { signatures: 0, galleries: 0, swappable: 0, layered: 0, bleeds: 0, screenWords: 0, wordsOnPhoto: 0, holds: 0 };
22792
+ /**
22793
+ * AW9 `drawers` (award plan "Reddottours" S4): the award tier's signature, held and never sideways, its 3–5 steps each
22794
+ * opened by a heading and holding words and buttons only (a step paints its own ground from the look's schemes — never on
22795
+ * a photo); a step's words ride their step, so they carry no tracks or depth of their own.
22796
+ */
22797
+ function drawersIssues(s, at, track, groundPhoto, tier, add) {
22798
+ const layers = Array.isArray(s.layers) ? s.layers : [];
22799
+ if (!layoutSignatureOffered(LayoutSectionKind.Drawers, tier))
22800
+ add(LayoutIssueCode.Value, `${at}.kind`, 'drawers is an award signature — content | inhale | signature');
22801
+ if (!s.signature)
22802
+ add(LayoutIssueCode.Structure, at, "drawers is the page's signature");
22803
+ if (!s.pin || track > 1)
22804
+ add(LayoutIssueCode.Structure, `${at}.hold`, 'drawers is held (hold 1) and never carried sideways');
22805
+ if (groundPhoto)
22806
+ add(LayoutIssueCode.Structure, `${at}.ground`, 'each step paints its own ground — a colour, never a photo');
22807
+ const n = drawerStepCount(layers);
22808
+ if (n < DRAWER_STEPS[0] || n > DRAWER_STEPS[1]) {
22809
+ add(LayoutIssueCode.Structure, `${at}.layers`, `${n} step${n === 1 ? '' : 's'} — drawers hold ${DRAWER_STEPS[0]} to ${DRAWER_STEPS[1]}, each opened by a heading`);
22810
+ }
22811
+ if (layers.length && layers[0].kind !== LayoutLayerKind.Heading)
22812
+ add(LayoutIssueCode.Structure, `${at}.layers[0]`, 'the first step opens with its heading');
22813
+ layers.forEach((l, j) => {
22814
+ const lp = `${at}.layers[${j}]`;
22815
+ if (!DRAWER_KINDS.has(l.kind))
22816
+ add(LayoutIssueCode.Structure, `${lp}.kind`, 'a step holds words and buttons — no photo, gallery, form, marquee or shape');
22817
+ if (l.motion?.length)
22818
+ add(LayoutIssueCode.Motion, `${lp}.motion`, "a step's words ride their step — no tracks of their own");
22819
+ });
22820
+ }
22642
22821
  /** The model's page in its own order: the sections as they stand, the dropped ones back at their places. */
22643
22822
  function originalOrder(sections, given) {
22644
22823
  const kept = new Set(sections.map(s => s.id));
@@ -22759,10 +22938,11 @@ function examineLayout(page, ctx, carried, given) {
22759
22938
  const at = `sections[${i}]`;
22760
22939
  const track = trackOf(s);
22761
22940
  const kind = s.kind ?? LayoutSectionKind.Content;
22762
- const content = kind === LayoutSectionKind.Content;
22941
+ const drawers = isDrawers(s);
22942
+ const content = kind === LayoutSectionKind.Content || drawers;
22763
22943
  if (!String(s.id ?? '').trim())
22764
22944
  add(LayoutIssueCode.Structure, `${at}.id`, 'a short slug');
22765
- if (!inList([LayoutSectionKind.Content, LayoutSectionKind.Inhale], kind))
22945
+ if (!inList([LayoutSectionKind.Content, LayoutSectionKind.Inhale, LayoutSectionKind.Drawers], kind))
22766
22946
  add(LayoutIssueCode.Value, `${at}.kind`, 'content | inhale (a signature is a content section)');
22767
22947
  if (!(s.screens >= LIM.screens[0] && s.screens <= LIM.screens[1]))
22768
22948
  add(LayoutIssueCode.Value, `${at}.screens`, `${LIM.screens[0]}..${LIM.screens[1]}`);
@@ -22810,6 +22990,8 @@ function examineLayout(page, ctx, carried, given) {
22810
22990
  if (s.screens > LIM.inhaleScreens)
22811
22991
  add(LayoutIssueCode.Structure, `${at}.screens`, `an inhale is 1–${LIM.inhaleScreens} screens`);
22812
22992
  }
22993
+ if (drawers)
22994
+ drawersIssues(s, at, track, !!groundPhoto, ctx.tier, add);
22813
22995
  const leads = layers.filter(l => l.role === LayoutRole.Lead).length;
22814
22996
  if (content && leads !== 1)
22815
22997
  add(LayoutIssueCode.Structure, `${at}.layers`, `${leads} leads — exactly one layer is the lead`);
@@ -22837,9 +23019,10 @@ function examineLayout(page, ctx, carried, given) {
22837
23019
  if (entering.length)
22838
23020
  sectionsWithEnters++;
22839
23021
  const recipes = new Set(entering.filter(l => l.role !== LayoutRole.Lead).map(l => l.enter));
22840
- if (recipes.size > 1)
23022
+ // A drawers section's words stand on their step (their arrival as it lands is AW10): the composer drops entrances there.
23023
+ if (recipes.size > 1 && !drawers)
22841
23024
  add(LayoutIssueCode.Motion, `${at}.layers`, `the supporting layers enter in ${recipes.size} ways — one entrance per section besides the lead's`);
22842
- if (entering.length > LIM.enteringPerSection)
23025
+ if (entering.length > LIM.enteringPerSection && !drawers)
22843
23026
  add(LayoutIssueCode.Motion, `${at}.layers`, `${entering.length} layers enter — at most ${LIM.enteringPerSection}; let the rest simply be there`);
22844
23027
  let rotated = 0;
22845
23028
  layers.forEach((l, j) => {
@@ -28616,6 +28799,8 @@ var LayoutSignatureId;
28616
28799
  LayoutSignatureId["HalvesApart"] = "halves-apart";
28617
28800
  LayoutSignatureId["SidewaysWalk"] = "sideways-walk";
28618
28801
  LayoutSignatureId["ObjectTurning"] = "object-turning";
28802
+ /** AW9: steps sliding in from the end and stacking by their spines (the award tier's). */
28803
+ LayoutSignatureId["Drawers"] = "drawers";
28619
28804
  LayoutSignatureId["HeldScreen"] = "held-screen";
28620
28805
  })(LayoutSignatureId || (LayoutSignatureId = {}));
28621
28806
  const OPENING_SCREEN_WORD = 'screen-word';
@@ -28672,6 +28857,8 @@ const SIGNATURE_BY_TRACK = [
28672
28857
  function signatureOf(s) {
28673
28858
  if (!s)
28674
28859
  return LayoutSignatureId.HeldScreen;
28860
+ if (s.kind === LayoutSectionKind.Drawers)
28861
+ return LayoutSignatureId.Drawers;
28675
28862
  const layers = s.layers ?? [];
28676
28863
  if (layers.some(l => l.kinetic))
28677
28864
  return LayoutSignatureId.WordsLit;
@@ -29645,6 +29832,9 @@ var LayoutGapCode;
29645
29832
  /** AW10: a layer saying `scrub` that the look's By the scroll does not take, or in the first screen — it plays once
29646
29833
  * (`checkLayout` mends it before; a stored layout is composed as is and said). */
29647
29834
  LayoutGapCode["Scrub"] = "scrub";
29835
+ /** AW10: a drawers step's words stand still as the step slides in — their arrival when it lands is AW10's (an entrance
29836
+ * played at a key). The layout's entrance on them is dropped. */
29837
+ LayoutGapCode["DrawerWords"] = "drawer-words";
29648
29838
  })(LayoutGapCode || (LayoutGapCode = {}));
29649
29839
  var LayoutColourMode;
29650
29840
  (function (LayoutColourMode) {
@@ -29992,6 +30182,42 @@ function depthInteraction(nodeId, depth) {
29992
30182
  return { id: `${nodeId}-depth`, trigger: 'scrollProgress', range: 'cover', actions: [{ type: 'parallax', target: 'self', duration: 1000, delay: 0, easing: 'linear', params: { depth, phone: LAYOUT_DEPTH_ON_PHONE } }] };
29993
30183
  }
29994
30184
  const TRACK_REST = { x: 0, y: 0, scale: 1, rotate: 0, opacity: 1, clip: 100, words: 100 };
30185
+ /**
30186
+ * AW9 gap 4 (award plan "Reddottours" S1, the window that opens): a held picture that opens by its clip opens from a
30187
+ * FRAME — 60% showing from the centre, the section's ground around it (theirs: `inset(20%)`) — never from a slit.
30188
+ */
30189
+ const FRAMED_SHOWING = 60;
30190
+ /** …and sinks as the Scene leaves: 30% of the stage over the root's leaving, so the next band rises over it (theirs:
30191
+ * `yPercent 30`). Measured over the exit range, after the hold. */
30192
+ const WINDOW_SINK = { prop: SceneProp.Y, range: SceneRange.Exit, keys: [[0, 0], [1, 30]] };
30193
+ /** Reddottours S3: a walk's picture is over-scaled ×1.2 inside its frame and drifts against the row while it crosses the
30194
+ * screen (theirs: `xPercent 0 → 20` over its own crossing). */
30195
+ const WALK_DRIFT_SCALE = 0.2;
30196
+ /**
30197
+ * The drift's reach, a share of the FRAME's width — the frame is the size container (`SceneRole.WalkFrame`), so `cqw` there
30198
+ * is the frame's. It moves the picture inside the over-scaled box, so it shows ×(1 + scale): it must stay under the slack a
30199
+ * side, `scale / 2 / (1 + scale)` = 8.3%. A share of the stage (cqw of the stage, the col span's share) is NOT a share of
30200
+ * the frame — gutters and the content column make a frame narrower than its columns' share, and an edge showed
30201
+ * (vectoriox/iox-ui e2e:scenesites §2, 5.164.0: 0.103 of a frame against 0.1).
30202
+ */
30203
+ const WALK_DRIFT_SHARE = 0.07;
30204
+ /** The framed window: a held picture's opening clip, from the centre and from a frame, never from less. */
30205
+ function framedWindow(track) {
30206
+ const keys = track.keys.map(([at, v], i) => [at, i === 0 ? Math.max(FRAMED_SHOWING, v) : v]);
30207
+ return { ...track, from: SceneRevealFrom.Centre, keys };
30208
+ }
30209
+ /** Does this held layer open the section's window (`photo-unveiled`): a picture whose clip grows to showing it whole? */
30210
+ function opensWindow(l, lc) {
30211
+ if (l.kind !== LayoutLayerKind.Photo || lc.track > 1 || signatureOf(lc.section) !== LayoutSignatureId.PhotoUnveiled)
30212
+ return false;
30213
+ return (l.motion ?? []).some(t => t.prop === LayoutTrackProp.Clip && Number(t.to) >= 100 && Number(t.to) > Number(t.from));
30214
+ }
30215
+ /** A walk's picture drifting inside its frame as it crosses the screen: ± its share of the frame's width, in the frame's
30216
+ * cqw (the frame is the size container — `SceneRole.WalkFrame`). */
30217
+ function walkDrift() {
30218
+ const reach = Math.round(WALK_DRIFT_SHARE * 100 * 100) / 100;
30219
+ return { prop: SceneProp.X, range: SceneRange.CrossInline, keys: [[0, -reach], [1, reach]] };
30220
+ }
29995
30221
  /** The layout's eases the product's tracks can run (RT-D1); anything else is drawn as the property's own. */
29996
30222
  const TRACK_EASE = { [LayoutEase.Linear]: SceneEase.Linear, [LayoutEase.InOut]: SceneEase.Smooth };
29997
30223
  /** A layout track as a scene-core track: lengths move from the layer's own box to the stage's (cqw / cqh). */
@@ -30133,7 +30359,7 @@ function listLayer(id, l, ctx) {
30133
30359
  frame.children = [list];
30134
30360
  return frame;
30135
30361
  }
30136
- function photoLayer(id, l, ctx, path) {
30362
+ function photoLayer(id, l, ctx, path, walking = false) {
30137
30363
  const photoId = l.photo?.id ?? '';
30138
30364
  const frame = create$1(id, T.Container, {}, NO_ELEMENT_STYLE);
30139
30365
  // Its cell gives it both sides (the shape is ignored there); where it stacks, its width and its shape give it a height.
@@ -30147,7 +30373,8 @@ function photoLayer(id, l, ctx, path) {
30147
30373
  // A picture with room to drift is over-scaled inside its frame (M8-G5: the drift itself has no speed of its own). The
30148
30374
  // scale sits on a box between them: an Image's own size is capped at its frame (vectoriox/iox-ui#8), and its
30149
30375
  // transform belongs to its entrance (zoomOut).
30150
- const k = INNER_SCALE * Math.max(0, Math.min(3, l.inner ?? 0));
30376
+ const inner = INNER_SCALE * Math.max(0, Math.min(3, l.inner ?? 0));
30377
+ const k = walking ? Math.max(inner, WALK_DRIFT_SCALE) : inner;
30151
30378
  if (!k) {
30152
30379
  frame.children = [image];
30153
30380
  return { frame, image };
@@ -30156,7 +30383,14 @@ function photoLayer(id, l, ctx, path) {
30156
30383
  const scale = String(Math.round((1 + k) * 1000) / 1000);
30157
30384
  setStyleProps(drift, { width: FULL, height: FULL, scaleX: scale, scaleY: scale });
30158
30385
  drift.children = [image];
30159
- gap(ctx, LayoutGapCode.DepthSpeed, path, `inner ${l.inner}: over-scaled ×${(1 + k).toFixed(2)}, no drift`);
30386
+ if (walking) {
30387
+ // On a phone the walk is a row the visitor swipes (RT-D4): the picture rests in its frame there.
30388
+ frame.role = SceneRole.WalkFrame;
30389
+ image.sceneTracks = [walkDrift()];
30390
+ image.scenePhoneTracks = restingTracks(image.sceneTracks);
30391
+ }
30392
+ else
30393
+ gap(ctx, LayoutGapCode.DepthSpeed, path, `inner ${l.inner}: over-scaled ×${(1 + k).toFixed(2)}, no drift`);
30160
30394
  frame.children = [drift];
30161
30395
  return { frame, image };
30162
30396
  }
@@ -30910,7 +31144,7 @@ function composeLayer(l, lc, ctx) {
30910
31144
  else
30911
31145
  switch (l.kind) {
30912
31146
  case LayoutLayerKind.Photo: {
30913
- const made = photoLayer(id, l, ctx, lc.path);
31147
+ const made = photoLayer(id, l, ctx, lc.path, lc.held && lc.track > 1 && l.role !== LayoutRole.Decoration);
30914
31148
  outer = entering = made.frame;
30915
31149
  image = made.image;
30916
31150
  break;
@@ -30949,11 +31183,14 @@ function composeLayer(l, lc, ctx) {
30949
31183
  // Held: the layer moves by tracks; a kinetic heading lights word by word as the section is read.
30950
31184
  const tracks = [];
30951
31185
  if (lc.held) {
31186
+ const framed = opensWindow(l, lc);
30952
31187
  for (const t of l.motion ?? []) {
30953
31188
  const track = sceneTrackOf(t, l, lc.section.rows, ctx, lc.path);
30954
31189
  if (track)
30955
- tracks.push(track);
31190
+ tracks.push(framed && track.prop === SceneProp.Clip ? framedWindow(track) : track);
30956
31191
  }
31192
+ if (framed)
31193
+ tracks.push({ ...WINDOW_SINK, keys: WINDOW_SINK.keys.map(([at, v]) => [at, v]) });
30957
31194
  if (l.kinetic && textual)
30958
31195
  tracks.push({ prop: 'words', keys: [[0, 0], [KINETIC_ALL_LIT, 100]] });
30959
31196
  if (tracks.length) {
@@ -30972,7 +31209,7 @@ function composeLayer(l, lc, ctx) {
30972
31209
  const enter = enterInteraction(entering.id, l, ctx, lc.path, textual, 1, lc.si === 0);
30973
31210
  if (enter)
30974
31211
  entering.interactions = [...entering.interactions, enter];
30975
- if (image && l.enter === LayoutEnter.ClipReveal && l.role !== LayoutRole.Decoration)
31212
+ if (image && !image.sceneTracks?.length && l.enter === LayoutEnter.ClipReveal && l.role !== LayoutRole.Decoration)
30976
31213
  image.interactions = [...image.interactions, zoomInteraction(image.id, l, ctx)];
30977
31214
  }
30978
31215
  const depth = layoutGlideDepth(lc.section, l);
@@ -31036,6 +31273,8 @@ function composeSection$1(s, si, prevGround, ctx) {
31036
31273
  const track = Math.max(1, s.track ?? 1);
31037
31274
  const ground = String(s.ground ?? LayoutColour.Ground);
31038
31275
  ctx.sections[s.id] = id;
31276
+ if (isDrawers(s))
31277
+ return composeDrawers(s, si, ctx);
31039
31278
  if (track > 1 && !held)
31040
31279
  gap(ctx, LayoutGapCode.UnheldMotion, `sections[${si}]`, 'a sideways section that is not held cannot travel');
31041
31280
  const order = Array.isArray(s.phone) && s.phone.length ? s.phone : s.layers.map((_, i) => i);
@@ -31100,11 +31339,12 @@ function composeSection$1(s, si, prevGround, ctx) {
31100
31339
  phone(root, { height: 'auto' });
31101
31340
  const wide = create$1(`${id}-track`, T.Container, {}, NO_ELEMENT_STYLE);
31102
31341
  wide.label = `${s.id} · ${track} screens wide`;
31342
+ wide.role = SceneRole.Walk;
31103
31343
  setStyleProps(wide, { ...gridLayout(s.rows, track), width: `${track * 100}%`, height: FULL, minHeight: ZERO$1 });
31104
- phone(wide, { width: FULL, ...phoneStack(si === 0) });
31344
+ phone(wide, walkSwipe(si === 0));
31105
31345
  wide.sceneTracks = [{ prop: 'x', keys: [[0, 0], [1, -(track - 1) * 100]] }];
31106
31346
  wide.scenePhoneTracks = [{ prop: 'x', keys: [[0, 0]] }];
31107
- wide.children = layers;
31347
+ wide.children = walkScreens(s, layers, track, id);
31108
31348
  stage.children = [wide];
31109
31349
  }
31110
31350
  if (transition) {
@@ -31117,6 +31357,150 @@ function composeSection$1(s, si, prevGround, ctx) {
31117
31357
  root.children = [...behind, stage];
31118
31358
  return root;
31119
31359
  }
31360
+ // ── The sideways walk on a phone (AW9, RT-D4) ───────────────────────────────────────────────────────────
31361
+ /** A walk card's share of the phone's width: the next one peeks, so the row says it swipes. */
31362
+ const WALK_CARD_SHARE = '85%';
31363
+ const WALK_CARD_GAP = '16px';
31364
+ /** The wide row on a phone: a row the visitor swipes, one screen of the walk to a card (`phoneWalk.swipe`) — never a
31365
+ * stack, which turned a walk into a long plain column (award plan "Reddottours" S3: theirs swaps to a card carousel). The
31366
+ * snapping is shared CSS (`.iox-role-scene-walk`): a node has no style for it. */
31367
+ function walkSwipe(first) {
31368
+ return {
31369
+ width: FULL,
31370
+ height: 'auto',
31371
+ display: 'flex',
31372
+ flexDirection: 'row',
31373
+ alignItems: 'stretch',
31374
+ overflow: 'auto',
31375
+ gap: WALK_CARD_GAP,
31376
+ padding: `${first ? PHONE_FIRST_TOP : LAYOUT_PHONE_PADDING} ${LAYOUT_INSET} ${LAYOUT_PHONE_PADDING} ${LAYOUT_INSET}`,
31377
+ };
31378
+ }
31379
+ /** The screen of a walk a layer stands on (from its first column). */
31380
+ const walkScreenOf = (l, track) => Math.max(0, Math.min(track - 1, Math.floor((l.col[0] - 1) / GRID_COLUMNS)));
31381
+ /**
31382
+ * A walk's layers, one holder per screen they stand on. On the wide layout a holder draws no box (`display: contents`), so
31383
+ * every layer keeps its place on the wide grid and its own crossing; on a phone it is a card of the swiped row, its
31384
+ * layers in the section's phone order. A screen with no layer gets no card.
31385
+ */
31386
+ function walkScreens(s, layers, track, id) {
31387
+ const by = new Map();
31388
+ s.layers.forEach((l, li) => {
31389
+ const at = walkScreenOf(l, track);
31390
+ by.set(at, [...(by.get(at) ?? []), layers[li]]);
31391
+ });
31392
+ return [...by.keys()].sort((a, b) => a - b).map(at => {
31393
+ const card = create$1(`${id}-w${at}`, T.Container, {}, NO_ELEMENT_STYLE);
31394
+ card.role = SceneRole.WalkScreen;
31395
+ card.label = `${s.id} · screen ${at + 1}`;
31396
+ setStyleProps(card, { display: 'contents' });
31397
+ phone(card, { display: 'flex', flexDirection: 'column', flexGrow: '0', flexShrink: '0', flexBasis: WALK_CARD_SHARE, minWidth: ZERO$1, gap: ZERO$1 });
31398
+ card.children = by.get(at) ?? [];
31399
+ return card;
31400
+ });
31401
+ }
31402
+ // ── Drawers (AW9) ───────────────────────────────────────────────────────────────────────────────────────
31403
+ /** The longest heading a spine stands on end whole; a longer one is cut at a word with an ellipsis. */
31404
+ const SPINE_MAX_LETTERS = 40;
31405
+ const SPINE_PADDING = '24px';
31406
+ /** A spine's words: the step's number and its heading, cut to what stands on the stage's height. */
31407
+ function spineWords(i, heading) {
31408
+ const number = String(i + 1).padStart(2, '0');
31409
+ const words = (heading ?? '').replace(/\s+/g, ' ').trim();
31410
+ if (!words)
31411
+ return number;
31412
+ if (words.length <= SPINE_MAX_LETTERS)
31413
+ return `${number} · ${words}`;
31414
+ const cut = words.slice(0, SPINE_MAX_LETTERS);
31415
+ const at = cut.lastIndexOf(' ');
31416
+ return `${number} · ${(at > SPINE_MAX_LETTERS / 2 ? cut.slice(0, at) : cut).trim()}…`;
31417
+ }
31418
+ /** A drawer's ground: its scheme's section fill — the page's own ground on Default, whose section fill is transparent and
31419
+ * would show the step under it. */
31420
+ const drawerPaint = (scheme) => scheme === ColorScheme.Default ? 'var(--iox-bg)' : 'var(--iox-section-bg)';
31421
+ /**
31422
+ * AW9 `drawers` (award plan "Reddottours" S4): a held section whose steps slide in from the inline end, one after another,
31423
+ * straight with the scroll (RT-D1), each stopping one spine after the step before — the stack builds a row of titled
31424
+ * spines — while their grounds deepen through the look's schemes to the brand (`drawerRamp`, AA-gated as schemes are).
31425
+ * A step is a panel on the stage: its spine (number and heading, decorative — the step's heading is read) and its body
31426
+ * (the step's layers on the section's grid, still). On a phone it stacks, each spine a label above its step. A step's
31427
+ * words arriving as it lands is AW10 (an entrance at a key): the layout's entrances on them are dropped and said.
31428
+ */
31429
+ function composeDrawers(s, si, ctx) {
31430
+ const id = `${ctx.p}-s${si}`;
31431
+ const steps = drawerSteps(s.layers);
31432
+ const n = steps.length;
31433
+ const timing = drawersTiming(n);
31434
+ // Outside 3–5 `checkLayout` refuses it; a stored layout is composed as is, the ramp's deepest schemes last.
31435
+ const ramp = drawerRamp(Math.max(3, Math.min(5, n))) ?? [ColorScheme.Accent];
31436
+ const schemeOf = (i) => ramp[Math.max(0, Math.min(ramp.length - 1, ramp.length - n + i))];
31437
+ const side = ctx.rtl ? 'right' : 'left';
31438
+ const root = create$1(id, T.Section, {}, NO_ELEMENT_STYLE);
31439
+ root.role = SceneRole.Scene;
31440
+ root.label = `${s.id} · drawers`;
31441
+ setStyleProps(root, {
31442
+ position: 'relative', width: FULL, minHeight: ZERO$1, height: `${timing.screens * 100}svh`, display: 'block', padding: ZERO$1, margin: ZERO$1,
31443
+ backgroundColor: groundPaint(String(s.ground ?? LayoutColour.Ground)), color: 'var(--iox-text)', ...(ctx.rtl ? { textDirection: 'rtl' } : {}),
31444
+ });
31445
+ phone(root, { height: 'auto' });
31446
+ const stage = create$1(`${id}-stage`, T.Container, {}, NO_ELEMENT_STYLE);
31447
+ stage.role = SceneRole.Stage;
31448
+ stage.label = `${s.id} · stage`;
31449
+ setStyleProps(stage, { position: 'sticky', top: ZERO$1, width: FULL, height: '100svh', minHeight: ZERO$1, overflow: 'hidden', zIndex: '1', display: 'block' });
31450
+ phone(stage, { display: 'contents' });
31451
+ stage.children = steps.map((indices, i) => {
31452
+ const scheme = schemeOf(i);
31453
+ const panel = create$1(`${id}-d${i}`, T.Container, {}, NO_ELEMENT_STYLE);
31454
+ panel.role = SceneRole.Drawer;
31455
+ panel.label = `${s.id} · step ${i + 1}`;
31456
+ setColorScheme(panel, scheme);
31457
+ setStyleProps(panel, {
31458
+ position: 'absolute', top: ZERO$1, [side]: ZERO$1, width: i ? `${drawerWidth(n)}%` : FULL, height: FULL, minHeight: ZERO$1,
31459
+ display: 'flex', flexDirection: 'row', backgroundColor: drawerPaint(scheme), color: 'var(--iox-text)', zIndex: String(i + 1), overflow: 'hidden',
31460
+ });
31461
+ phone(panel, { position: 'relative', top: 'auto', [side]: 'auto', width: FULL, height: 'auto', flexDirection: 'column' });
31462
+ const slide = timing.windows[i];
31463
+ if (slide) {
31464
+ // Waits off the stage at its inline end, slides in over its screen, rests a spine past the one before.
31465
+ panel.sceneTracks = [{ prop: SceneProp.X, keys: [[0, 100], [slide[0], 100], [slide[1], drawerRestX(i)]] }];
31466
+ panel.scenePhoneTracks = [{ prop: SceneProp.X, keys: [[0, 0]] }];
31467
+ }
31468
+ const spine = create$1(`${id}-d${i}-spine`, T.Container, {}, NO_ELEMENT_STYLE);
31469
+ spine.role = SceneRole.DrawerSpine;
31470
+ setStyleProps(spine, {
31471
+ width: `${DRAWER_SPINE}cqw`, flexShrink: '0', height: FULL, minHeight: ZERO$1, display: 'flex', alignItems: 'center', justifyContent: 'center',
31472
+ padding: `${SPINE_PADDING} ${ZERO$1}`, overflow: 'hidden',
31473
+ });
31474
+ phone(spine, {
31475
+ width: FULL, height: 'auto', justifyContent: 'flex-start',
31476
+ padding: `${i === 0 && si === 0 ? PHONE_FIRST_TOP : LAYOUT_PHONE_PADDING} ${LAYOUT_INSET} ${ZERO$1} ${LAYOUT_INSET}`,
31477
+ });
31478
+ const head = s.layers[indices[0]];
31479
+ const title = create$1(`${id}-d${i}-spine-t`, T.Text, { content: spineWords(i, head?.kind === LayoutLayerKind.Heading ? head.text : undefined), tag: 'span' }, 'eyebrow');
31480
+ setStyleProps(title, { color: 'inherit', margin: ZERO$1 });
31481
+ spine.children = [title];
31482
+ const body = create$1(`${id}-d${i}-body`, T.Container, {}, NO_ELEMENT_STYLE);
31483
+ setStyleProps(body, { position: 'relative', flexGrow: '1', minWidth: ZERO$1, height: FULL, minHeight: ZERO$1, ...gridLayout(s.rows, 1) });
31484
+ phone(body, { ...phoneStack(false), padding: `${SPINE_PADDING} ${LAYOUT_INSET} ${LAYOUT_PHONE_PADDING} ${LAYOUT_INSET}` });
31485
+ const phoneAlign = indices.every(li => s.layers[li].align === 'center') ? 'center' : 'start';
31486
+ body.children = indices.map((li, at) => {
31487
+ const l = s.layers[li];
31488
+ if (l.enter && l.enter !== LayoutEnter.None)
31489
+ gap(ctx, LayoutGapCode.DrawerWords, `sections[${si}].layers[${li}]`, 'stands still as its step slides in (arriving on landing is AW10)');
31490
+ const still = { ...l, enter: LayoutEnter.None, motion: undefined, kinetic: undefined, depth: undefined, scrub: undefined };
31491
+ const prev = at > 0 ? s.layers[indices[at - 1]] : null;
31492
+ const lc = {
31493
+ section: s, si, li, path: `sections[${si}].layers[${li}]`, held: true, track: 1,
31494
+ order: at, phoneGap: phoneGapBefore(prev, l), phoneAlign,
31495
+ };
31496
+ return composeLayer(still, lc, ctx);
31497
+ });
31498
+ panel.children = [spine, body];
31499
+ return panel;
31500
+ });
31501
+ root.children = [stage];
31502
+ return root;
31503
+ }
31120
31504
  // ── The header ──────────────────────────────────────────────────────────────────────────────────────────
31121
31505
  const NAV_ROUTE = '/';
31122
31506
  /** A layer's `to` starting with it names a page of the site, not a section of this one. */
@@ -33089,6 +33473,8 @@ const cloneTrack = (track) => ({
33089
33473
  prop: track.prop,
33090
33474
  keys: track.keys.map(([at, value]) => [at, value]),
33091
33475
  ...(track.from ? { from: track.from } : {}),
33476
+ ...(track.ease ? { ease: track.ease } : {}),
33477
+ ...(track.range ? { range: track.range } : {}),
33092
33478
  });
33093
33479
  function composePattern(pattern, id, ctx, motion = null) {
33094
33480
  if (pattern.node.each)