.al-narrative{--al-editorial-inset:10vw;--al-intro-measure:60ch;font-family:Geist,system-ui,sans-serif;color:#262523}.al-narrative .pvs{max-width:1360px;width:100%;margin-inline:auto}.al-statement{padding-block:8vw!important}.al-statement>p{font-size:clamp(36px,6vw,84px);line-height:1.05;letter-spacing:-.055em;margin:0}/* ---------- intro: copy on the left, a portrait loop on the right ----------
   The lead sits at the top of the left column and the credits at its foot,
   level with the bottom of the tile; the tile is a 4:5 portrait at about a
   third of the content width. */
/* This one section is measured against the viewport rather than the panel's
   1360px column, so the copy starts at 10vw and the tile runs 64vw → 90vw as
   drawn. The tile is 26vw — about a third of the 80vw content band. */
.al-narrative .al-intro{display:grid;grid-template-columns:minmax(0,1fr) 31vw;gap:0 5vw;
  align-items:stretch;max-width:none;width:auto;
  /* the panel pads itself by --gutter; cancel that so 10vw means 10vw */
  margin-inline:calc(var(--gutter) * -1);
  padding-left:var(--al-editorial-inset);padding-right:10vw;padding-bottom:3vw!important}
/* a tighter seam between /01 and /02 (the other chapters keep the 5vw rhythm) */
/* /02 shares /01's editorial band: break out of the panel gutter and inset
   both sides by 10vw, which also narrows the grid-film stage to that band */
/* the selector carries two ids so city-gal's section{max-width:100%} cannot
   recap the box, which would eat the right inset and push the stage off-center */
#project-5 .al-narrative section#alba-part-02{padding-top:2vw!important;max-width:none;width:auto;
  margin-inline:calc(var(--gutter) * -1);
  padding-inline:var(--al-editorial-inset)}
/* /02 runs its standfirst the full width of the band, to the stage's right edge */
#project-5 .al-narrative section#alba-part-02 .al-head>div>p:not(.pvs__kind){max-width:none}
/* the block sits level with the middle of the tile, in the case study's
   own chapter typography */
.al-intro-text{display:flex;flex-direction:column;justify-content:center;gap:0}
.al-intro-eyebrow{margin:0}
.al-intro-heading{font-size:clamp(30px,4vw,56px);font-weight:500;letter-spacing:-.05em;
  line-height:1.08;margin:16px 0 24px;max-width:22ch}
.al-intro-body{max-width:var(--al-intro-measure)}
.al-intro-body p{margin:0 0 1.1em;line-height:1.65;font-size:18px;color:#666}
.al-intro-body p:last-child{margin-bottom:0}
/* The concept CTA is the hero's link treatment, under the copy. The panel's
   generic `.al-narrative button` is a boxed control and outranks .al-hero-cta
   here, so this restates the hero's look at matching specificity. */
.al-narrative .al-concept-cta{align-self:start;margin-top:clamp(24px,2.6vw,38px);
  display:inline-flex;align-items:center;gap:.6em;
  font:10px Geist,system-ui;text-transform:uppercase;letter-spacing:.14em;
  color:#111013;cursor:pointer;background:none;border:0;border-radius:0;
  border-bottom:1px solid rgba(17,16,19,.35);padding:0 0 .55em;
  transition:border-color .4s,gap .4s}
.al-narrative .al-concept-cta:hover,.al-narrative .al-concept-cta:focus-visible{
  background:none;color:#111013;border-bottom-color:#111013;gap:.95em}
.al-narrative .al-concept-cta span{transition:transform .4s}
.al-narrative .al-concept-cta:hover span{transform:translateY(2px)}
@media(prefers-reduced-motion:reduce){
  .al-narrative .al-concept-cta,.al-narrative .al-concept-cta span{transition:none}
}

.al-intro-tile{position:relative;margin:0;align-self:start;width:100%;aspect-ratio:4/5;
  overflow:hidden;border-radius:3px;background:#e9e8ec center/cover no-repeat}
.al-intro-video{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
/* if the clip cannot play, the poster stays as the tile's own background */
.al-intro-tile.is-still{background-image:url(../video/alba-film-poster.jpg)}
.al-intro-tile.is-still .al-intro-video{display:none}.al-intro p{font-size:clamp(17px,1.7vw,24px);line-height:1.6}.al-intro div p{font-size:18px}.al-intro small{font-size:11px;line-height:1.8;color:#777}.al-part{display:block!important;padding-block:5vw!important}.al-chapter{display:grid;grid-template-columns:17% 1fr;margin:0 0 40px}.al-index{font-size:clamp(40px,7vw,90px);opacity:.15;letter-spacing:-.07em}.al-chapter h3{font-size:clamp(30px,4vw,56px);font-weight:500;letter-spacing:-.05em;line-height:1.08;margin:16px 0 24px;max-width:22ch}.al-chapter>div>p:last-child{max-width:58em;line-height:1.65;font-size:16px;color:#666}.al-stage{position:relative;overflow:hidden;background:#efede8;min-height:500px;border-radius:3px;isolation:isolate}.al-stage-label,.al-stage-foot{position:absolute;left:4%;top:28px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;z-index:3;color:#69655e}.al-stage-foot{top:auto;bottom:28px}.al-assembly{height:660px;background:#f7f6f3}.al-assembly>img{position:absolute;width:43%;height:78%;object-fit:contain;right:8%;top:10%;mix-blend-mode:multiply;border-radius:45%}.al-stage-title{position:absolute;left:7%;top:40%;font-size:clamp(34px,5vw,70px);letter-spacing:-.055em;line-height:1.05}.al-orbit{position:absolute;width:90%;height:55%;border:1px solid #d5d0c5;border-radius:50%;transform:rotate(-25deg);left:10%;top:20%}.al-meta{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#777;margin:18px 0;flex-wrap:wrap}.al-meta a{color:#393632;text-decoration:none;border-bottom:1px solid #aaa;padding-bottom:3px}.al-brief{border-top:1px solid #ccc;padding:16px 0;color:#64605a;font-size:12px}.al-brief summary{cursor:pointer;display:flex;justify-content:space-between;list-style:none}.al-brief pre{white-space:pre-wrap;font:13px/1.8 Geist,system-ui;max-width:80ch;margin-top:20px}.al-copy{margin-top:18px}.al-narrative button{cursor:pointer;border:1px solid #ccc;background:transparent;color:inherit;font:12px Geist,system-ui;padding:11px 16px;border-radius:4px}.al-narrative button:hover,.al-narrative button[aria-pressed=true]{background:#302e2a;color:white;border-color:#302e2a}.al-narrative button:focus-visible,.al-narrative a:focus-visible,.al-brief summary:focus-visible{outline:2px solid #917657;outline-offset:5px}.al-controls{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.al-studies{height:680px;perspective:1400px}.al-wire-world{position:absolute;inset:15% 7%;display:grid;grid-template-columns:1fr 1fr 1fr .55fr;gap:24px;transform:rotateX(12deg) rotateZ(-9deg) scale(1.05);transition:transform 1.4s cubic-bezier(.2,.7,.1,1)}.al-wire{background:white;box-shadow:0 18px 35px #39332512;padding:18px;overflow:hidden;transition:opacity .8s}.al-wire-nav{font-size:12px;border-bottom:1px solid #ddd;padding-bottom:18px}.al-wire-nav span{float:right}.al-wire-hero{height:53%;background:#f1f0ed;margin-top:15px;padding:12px;display:flex;flex-direction:column;justify-content:center}.al-wire-hero small{font-size:8px;text-transform:uppercase;letter-spacing:.1em}.al-wire-hero b{font-size:22px;font-weight:400;line-height:1.1;margin:16px 0}.al-wire-hero i{width:50%;height:12px;background:#dad7d0}.al-wire-grid{display:flex;gap:8px;height:16%;margin:16px 0}.al-wire-grid i{flex:1;background:#ebe9e5}.al-wire-lines{height:40px;background:repeating-linear-gradient(#ddd 0 2px,transparent 2px 12px);width:75%;margin-bottom:16px}.al-wire>small{font-size:8px}.al-studies[data-mode='1'] .al-wire-world{transform:translateX(60%) scale(1.5)}.al-studies[data-mode='1'] .al-wire:not(:first-child){opacity:.15}.al-studies[data-mode='2'] .al-wire-world{transform:rotate(0) scale(.95)}.al-studies[data-mode='2'] .al-wire-hero{background:linear-gradient(#ffffff66,#c3b7a377),url('../img/work/work-12.jpg') center/cover}.al-studies[data-mode='2'] .al-wire-hero b{font-family:Georgia,serif}.al-shop{display:grid;grid-template-columns:1fr 1fr;min-height:650px}.al-product-art{background:#e4e1dc;overflow:hidden}.al-product-art img{width:100%;height:100%;object-fit:cover}.al-product-info{padding:15% 12%}.al-product-info small{font-size:9px;letter-spacing:.12em}.al-product-info h4{font:clamp(30px,3vw,48px)/1.1 Georgia,serif;margin:30px 0}.al-product-info p{font-size:13px;line-height:1.8;color:#736d64}.al-product-info fieldset{border:0;padding:0;margin:25px 0}.al-product-info legend{font-size:11px;margin-bottom:12px}.al-product-info fieldset button{padding:10px;margin:2px}.al-add{width:100%;background:#302e2a!important;color:white!important}.al-bag{border-top:1px solid #bbb;padding-top:20px;margin-top:20px;font-size:13px}.al-logic{padding:90px 8% 50px;background-color:#eeece7;background-image:radial-gradient(#c6c2b8 .8px,transparent .8px);background-size:18px 18px}.al-tree{display:flex;flex-direction:column;align-items:center}.al-node{background:#f9f8f5;border:1px solid #d4d0c8;border-radius:8px;width:210px;padding:17px 20px;font-size:14px;box-shadow:0 5px 15px #302e2a08;transition:background .5s,color .5s,border-color .5s}.al-node small{display:block;font-size:8px;letter-spacing:.12em;margin-bottom:8px;opacity:.6}.al-node.is-active{background:#393731;color:#fff;border-color:#393731}.al-connector{height:28px;width:1px;background:#a6a093}.al-branches{display:flex;gap:80px;padding-top:35px;margin-top:25px;border-top:1px solid #a6a093;position:relative;margin-bottom:28px}.al-branches:before{content:'';height:25px;width:1px;background:#a6a093;position:absolute;top:-25px;left:50%}.al-branches>div{display:flex;flex-direction:column;align-items:center}.al-devices{height:680px;display:flex;align-items:center;justify-content:center;gap:30px;padding:80px 8%;background:#f4f2ed}.al-monitor{width:76%;position:relative;transition:transform 1.4s cubic-bezier(.2,.7,.1,1)}.al-screen{aspect-ratio:16/10;background:linear-gradient(100deg,#ded8cfdd,#eee9e000),url('../img/work/work-12.jpg') right center/contain no-repeat #e0dbd4;padding:5%;border:9px solid #333;border-radius:14px 14px 0 0;position:relative;overflow:hidden}.al-screen>small{font-size:clamp(10px,1.2vw,18px);font-weight:600}.al-screen>div{margin-top:13%}.al-screen i,.al-screen span{font-size:9px;font-style:normal}.al-screen h4{font:clamp(23px,3vw,46px)/1.1 Georgia,serif;margin:14px 0}.al-monitor-chin{height:25px;background:#c7c5c1;border-radius:0 0 8px 8px}.al-monitor-stand{width:22%;height:55px;background:linear-gradient(#aaa7a1,#e1dfda);margin:auto;clip-path:polygon(20% 0,80% 0,85% 85%,100% 90%,100% 100%,0 100%,0 90%,15% 85%)}.al-phone{width:19%;transform:translate(-20%,25%);transition:opacity .7s,transform 1.2s}.al-phone .al-screen{aspect-ratio:9/19.5;border:6px solid #333;border-radius:25px;background-size:cover;padding:12% 7%}.al-phone .al-screen h4{font-size:clamp(16px,2vw,28px)}.al-phone .al-screen>div{margin-top:100%}.al-phone .al-screen small{font-size:9px}.al-devices.is-close .al-monitor{transform:scale(1.75) translateX(6%)}.al-devices.is-close .al-phone{opacity:0;transform:translateX(100%)}.al-part .al-stage{transition:opacity 1s,translate 1s}.al-part.al-enter .al-stage{opacity:0;translate:0 35px}.al-part.is-visible .al-stage{opacity:1;translate:0 0}#project-5 .pv__right{background:#e6e3de}#project-5 .pv__bigtext{color:#fff}
@media(max-width:700px){.al-intro{grid-template-columns:1fr;gap:15px}.al-chapter{grid-template-columns:12% 1fr;gap:10px}.al-index{font-size:30px}.al-stage{min-height:380px}.al-assembly{height:490px}.al-assembly>img{width:65%;right:0;top:10%}.al-stage-title{font-size:34px;left:5%;top:55%}.al-studies{height:470px}.al-wire-world{width:850px;inset:20% auto auto -140px;height:300px;transform:rotate(-10deg) scale(.7);transform-origin:left top}.al-studies[data-mode='1'] .al-wire-world{transform:translateX(155px) scale(.85)}.al-studies[data-mode='2'] .al-wire-world{transform:translateX(145px) scale(.8)}.al-shop{grid-template-columns:1fr}.al-product-art{height:350px}.al-product-info{padding:30px}.al-node{width:125px;font-size:11px;padding:12px}.al-branches{gap:18px}.al-logic{padding:85px 10px 35px}.al-devices{height:420px;padding:70px 20px;gap:5px;min-height:0}.al-monitor{width:80%}.al-phone{width:25%}.al-screen{border-width:4px}.al-screen h4{font-size:19px}.al-screen span,.al-screen i{font-size:6px}.al-phone .al-screen h4{font-size:13px}.al-phone .al-screen{border-width:3px;border-radius:12px}.al-monitor-chin{height:12px}.al-monitor-stand{height:30px}.al-stage-label{font-size:8px}.al-meta{font-size:10px}}
@media(prefers-reduced-motion:reduce){.al-narrative *{transition:none!important;animation:none!important}.al-part.al-enter .al-stage{opacity:1;translate:none}}



@media(max-width:700px){}

/* ---------- opening: the film, then the title ----------
   Two stages in one full-viewport section. First the film, shown whole: it
   fills the width and keeps its own proportions, with the surrounding band
   carrying the same grey the film was shot against, so nothing of the sandal
   is ever cropped. When the film ends, white washes over it and the title
   settles in the middle. The white never appears before that. */
#project-5 .pv__top.al-opening{--al-dock:0px;position:relative;display:grid;
  grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:stretch;
  width:100%;max-width:none;height:100dvh;min-height:520px;padding:0;overflow:hidden;isolation:isolate;
  /* the two tones are read off the film itself (alba-narrative.js). The backdrop now shows bare while the
     open fade runs, so the tones ramp softly across the middle instead of switching on a hard line; the
     ends stay flat so they still meet the film's own top and bottom rows exactly */
  background:linear-gradient(180deg,var(--al-top,#58545e) 0 32%,var(--al-bottom,#a09ca7) 68% 100%)}
.al-hero-media{position:absolute;inset:0;z-index:0;display:grid;
  grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center}
.al-hero-flip{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
/* The film element IS the frame — its own aspect, full width — so the fade
   below sits on the picture's real edge rather than on a taller box. Its
   top and bottom dissolve into the surround, which is sampled from those
   same edge rows, so there is no rectangle to see. */
/* Desktop: the film reaches every edge. It is wider than it is tall, so on a
   wide window it fills by width and gives up a little top and bottom rather
   than sitting in pillars — the sandal is centred and well inside that. */
.al-hero-video{position:relative;z-index:1;grid-area:1/1;background:transparent;
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 50%;
  -webkit-mask-image:none;mask-image:none}
/* The open transition flies the card into this element, so it has to keep its
   box for measurement — but it is never painted: the video's own poster is
   what you see, and on a phone that poster is the square cut. Leaving this
   one visible put the wide frame's straps in bands above and below. */
.al-hero-flip{position:absolute;inset:0;z-index:0;opacity:0;pointer-events:none}
/* the ambient lap sits in the same cell and takes over once it is running,
   so the hand-off happens on a frame that already matches what is on screen */
.al-hero-amb{opacity:0;pointer-events:none}
[data-al-hero].is-ambient .al-hero-amb{opacity:1}
[data-al-hero].is-ambient>.al-hero-media>.al-hero-video:not(.al-hero-amb){opacity:0}



/* the white stage: only ever shown once the film has finished */
.al-hero-end{position:absolute;inset:0;z-index:2;display:grid;align-content:center;justify-items:center;
  gap:clamp(18px,2.4vw,30px);text-align:center;color:#111013;
  background:rgba(255,255,255,.82);backdrop-filter:saturate(108%);-webkit-backdrop-filter:saturate(108%);
  padding:clamp(40px,6vw,80px) clamp(22px,6vw,72px) calc(clamp(40px,6vw,80px) + var(--al-dock));
  opacity:0;visibility:hidden;transition:opacity 1s ease,visibility 0s linear 1s}
[data-al-hero].is-revealed .al-hero-end{opacity:1;visibility:visible;transition:opacity 1s ease}
#project-5 .al-hero-end h2.pv__title{margin:0;color:#111013;max-width:none;
  font:500 clamp(40px,7.4vw,104px)/1 Geist,system-ui;letter-spacing:-.06em}
.al-hero-caps{display:flex;flex-wrap:wrap;justify-content:center;gap:.6em 2.1em;margin:0;padding:0;
  list-style:none;font:10px Geist,system-ui;text-transform:uppercase;letter-spacing:.15em;color:#55525a}
.al-hero-line{margin:0;max-width:none;white-space:nowrap;color:#44414a;
  font:400 clamp(11.5px,3.4vw,20px)/1.45 Geist,system-ui;letter-spacing:-.015em}
.al-hero-cta{margin-top:clamp(6px,1vw,14px);display:inline-flex;align-items:center;gap:.6em;
  font:10px Geist,system-ui;text-transform:uppercase;letter-spacing:.14em;color:#111013;cursor:pointer;
  background:none;border:0;border-bottom:1px solid rgba(17,16,19,.35);padding:0 0 .55em;
  transition:border-color .4s,gap .4s}
.al-hero-cta:hover,.al-hero-cta:focus-visible{border-bottom-color:#111013;gap:.95em}
.al-hero-cta span{transition:transform .4s}
.al-hero-cta:hover span{transform:translateY(2px)}
/* The entrance runs once, keyed on the reveal rather than on playback, so the
   film can keep looping underneath without the type ever moving again.
   The title rises out of a clip line; the rest follows in order and stops. */
#project-5 .al-hero-end h2.pv__title{overflow:hidden;padding-bottom:.06em}
.al-rise{display:block;transform:translateY(112%);
  transition:transform 1.15s cubic-bezier(.16,1,.3,1) .5s}
[data-al-hero].is-revealed .al-rise{transform:none}
.al-hero-end>:not(h2),.al-hero-caps li{opacity:0;transform:translateY(10px);
  transition:opacity .75s cubic-bezier(.16,1,.3,1),transform .85s cubic-bezier(.16,1,.3,1)}
[data-al-hero].is-revealed .al-hero-end>:not(h2),
[data-al-hero].is-revealed .al-hero-caps li{opacity:1;transform:none}
/* subheadline, then each capability on its own, then the link */
[data-al-hero].is-revealed .al-hero-line{transition-delay:1.26s}
[data-al-hero].is-revealed .al-hero-caps{opacity:1;transform:none;transition-delay:0s}
[data-al-hero].is-revealed .al-hero-caps li:nth-child(1){transition-delay:1.42s}
[data-al-hero].is-revealed .al-hero-caps li:nth-child(2){transition-delay:1.52s}
[data-al-hero].is-revealed .al-hero-caps li:nth-child(3){transition-delay:1.62s}
[data-al-hero].is-revealed .al-hero-caps li:nth-child(4){transition-delay:1.72s}
[data-al-hero].is-revealed .al-hero-caps li:nth-child(5){transition-delay:1.82s}
[data-al-hero].is-revealed .al-hero-cta{transition-delay:2.02s}

/* one control: play, pause or replay, depending on where the film is */
.al-hero-play{position:absolute;z-index:3;right:clamp(20px,4vw,54px);
  bottom:calc(clamp(20px,4vw,54px) + var(--al-dock));
  width:44px;height:44px;display:grid;place-items:center;padding:0;cursor:pointer;color:#fff;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);border-radius:50%;
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  transition:background .35s,opacity .5s,color .5s,border-color .5s}
.al-hero-play:hover{background:rgba(255,255,255,.24)}
.al-hero-play svg{width:17px;height:17px;fill:currentColor;grid-area:1/1}
.al-hero-play .al-ic-pause,.al-hero-play .al-ic-replay{display:none}
[data-al-hero][data-state="playing"] .al-hero-play svg:first-child{display:none}
[data-al-hero][data-state="playing"] .al-hero-play .al-ic-pause{display:block}

/* over the white stage it inverts, so replay stays findable */
[data-al-hero].is-revealed .al-hero-play{color:#111013;background:rgba(17,16,19,.06);
  border-color:rgba(17,16,19,.2)}
[data-al-hero].is-revealed .al-hero-play:hover{background:rgba(17,16,19,.12)}
[data-al-hero][data-state="playing"] .al-hero-play{opacity:.3}
[data-al-hero].is-revealed[data-state="playing"] .al-hero-play{opacity:.22}
[data-al-hero]:hover .al-hero-play,.al-hero-play:focus-visible{opacity:1}

@media(max-width:760px){
  /* a phone goes back to the panel's own column and stacks */
  .al-narrative .al-intro{grid-template-columns:minmax(0,1fr);gap:clamp(26px,7vw,40px);
    max-width:1360px;margin-inline:auto;padding-left:0;padding-right:0}
  .al-intro-text{justify-content:flex-start}
  .al-intro-tile{width:100%;max-width:none;order:2}
  #project-5 .al-narrative section#alba-part-02{max-width:1360px;margin-inline:auto;padding-inline:0;min-width:0}
  /* the global dock floats over the bottom of the viewport: everything keeps clear of it */
  /* the film is a square: a full-height hero left big flat grey bands above and below it.
     Fit the opening to the film instead, so only a small blended margin remains. */
  #project-5 .pv__top.al-opening{--al-dock:calc(74px + env(safe-area-inset-bottom));
    height:min(100svh, calc(100vw + 150px));min-height:430px;
    /* flat at the film's own top and bottom tones, with a soft ramp between,
       so the surround meets the square frame without a hard edge; the
       fallbacks are the square poster's rows at the mask junctions */
    background:linear-gradient(180deg,var(--al-top,#5f5b65) 0 32%,var(--al-bottom,#a39eab) 68% 100%)}
  /* the square cut, full width, dissolving into the band over ~6% each end */
  /* a phone keeps the whole square cut — nothing of the shoe is given up —
     with its edges dissolving into the sampled surround */
  .al-hero-video{width:100%;height:auto;aspect-ratio:1;max-height:100%;object-fit:contain;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 6%,#000 94%,transparent 100%);
    mask-image:linear-gradient(180deg,transparent 0,#000 6%,#000 94%,transparent 100%)}
  .al-hero-caps{gap:.5em 1.4em;font-size:9px}

  .al-hero-play{width:40px;height:40px;right:6%}
}
@media(prefers-reduced-motion:reduce){
  /* the finished stage, with nothing in motion */
  .al-hero-end,.al-hero-end>*,.al-hero-caps li,.al-rise{transition:none}
  .al-rise{transform:none}
}



/* /02 heading stays on one line: the cap comes off and the size follows the
   column (83% of the body between the gutters, ~18em of Geist at this
   tracking), so it shrinks before it can wrap or overflow */
#alba-part-02 .al-chapter h3{max-width:none;white-space:nowrap;
  font-size:min(clamp(30px,4vw,56px),calc((100vw - var(--al-editorial-inset)*2)*.83/18))}
/* the nowrap formula is desktop-only: on a phone the heading wraps, otherwise
   its min-content width pushes the whole section (and the grid-film stage)
   past the viewport and the composition gets cropped */
@media(max-width:760px){#alba-part-02 .al-chapter h3{white-space:normal;font-size:clamp(26px,7.5vw,34px)}}

/* /02 caption: what the wireframe stage shows, in place of the old controls */
.al-shows{display:flex;align-items:baseline;gap:20px;margin:20px 0 0;font-size:13px;line-height:1.65;color:#777}
.al-shows b{font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#393632;white-space:nowrap}

/* Responsive grid film: keep the entire composition visible on every screen. */
#alba-part-02 .al-grid-film{min-height:0;height:auto;aspect-ratio:16/9;background:#f2f0eb}
.al-grid-film video{display:block;width:100%;height:100%;object-fit:contain}
.al-grid-film .al-grid-play{position:absolute;right:16px;bottom:16px;background:#fff;color:#252525;padding:9px 14px;font-size:11px;border-color:#ddd}

#project-5,#project-5 .pv__body{background-color:#fff!important}
#alba-part-02 .al-shows{display:flex;align-items:baseline;gap:18px;margin-top:20px;font-size:12px;line-height:1.65;color:#666}
#alba-part-02 .al-shows b{font-size:10px;letter-spacing:.12em;font-weight:500;color:#333;flex-shrink:0}

.al-product-frame{max-width:1200px;margin:0 auto;color-scheme:light}.al-product-rationale{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin:40px 0 28px;padding-top:28px;border-top:1px solid #ddd}.al-product-rationale span{font-size:10px;letter-spacing:.1em;color:#8e7468}.al-product-rationale h4{font-size:20px;font-weight:500;letter-spacing:-.03em;margin:12px 0}.al-product-rationale p{font-size:14px;line-height:1.75;color:#666;margin:0}@media(max-width:760px){.al-product-rationale{grid-template-columns:1fr;gap:24px}}

#alba-part-03 .al-chapter>div>p:not(.pvs__kind){max-width:58em;line-height:1.65;font-size:16px;color:#666}#alba-part-03 .al-chapter .al-product-rationale{margin:28px 0 0;padding-top:24px;gap:28px}#alba-part-03 .al-chapter .al-product-rationale p{font-size:14px;line-height:1.75;margin:0;color:#666}

/* Product rationale: one full-width step per row. */
#alba-part-03 .al-chapter .al-product-rationale{display:flex;flex-direction:column;gap:0;padding-top:0;margin-top:30px;border-top:1px solid #ddd}#alba-part-03 .al-product-step{padding:24px 0;border-bottom:1px solid #e6e3df}#alba-part-03 .al-step-heading{display:flex;align-items:baseline;gap:24px;margin-bottom:10px}#alba-part-03 .al-step-heading>span{flex:0 0 255px;font-size:10px;letter-spacing:.1em;color:#8e7468}#alba-part-03 .al-step-heading h4{margin:0;font-size:20px;line-height:1.4;font-weight:500;letter-spacing:-.03em}#alba-part-03 .al-chapter .al-product-step>p{margin:0 0 0 279px;max-width:80ch;font-size:14px;line-height:1.75;color:#666}@media(max-width:1000px){#alba-part-03 .al-step-heading{gap:18px}#alba-part-03 .al-step-heading>span{flex-basis:205px;font-size:9px}#alba-part-03 .al-chapter .al-product-step>p{margin-left:223px}}@media(max-width:760px){#alba-part-03 .al-product-step{padding:20px 0}#alba-part-03 .al-step-heading{flex-direction:column;gap:7px}#alba-part-03 .al-step-heading>span{flex-basis:auto}#alba-part-03 .al-chapter .al-product-step>p{margin-left:0}}

#alba-part-03 .al-chapter .al-product-rationale{border:0;padding:0;gap:30px;margin-top:36px}#alba-part-03 .al-product-step{border:0;padding:0}#alba-part-03 .al-step-heading{display:flex;flex-direction:row;align-items:baseline;gap:14px;margin-bottom:12px}#alba-part-03 .al-step-heading>svg{width:22px;height:22px;flex:0 0 22px;color:#a98574;align-self:flex-start;margin-top:3px}#alba-part-03 .al-step-heading h4{font-size:20px;line-height:1.45;margin:0;font-weight:500}#alba-part-03 .al-chapter .al-product-step>p{margin:0 0 0 36px;max-width:90ch;font-size:14px;line-height:1.8}@media(max-width:760px){#alba-part-03 .al-step-heading h4{font-size:18px}#alba-part-03 .al-chapter .al-product-rationale{gap:26px}#alba-part-03 .al-chapter .al-product-step>p{margin-left:36px}}

/* Large, softly sculpted symbols with purposeful entrance motion. */
#alba-part-03 .al-chapter .al-product-rationale{gap:34px;margin-top:42px}
#alba-part-03 .al-product-step{position:relative;padding-left:94px;min-height:80px}
#alba-part-03 .al-step-heading{display:block;margin-bottom:10px}
#alba-part-03 .al-step-heading .al-motion-icon{position:absolute;left:0;top:0;display:grid;place-items:center;width:68px;height:68px;margin:0;border-radius:20px;background:linear-gradient(145deg,#fff 5%,#f4efeb 65%,#e8ddd5);color:#a17c69;box-shadow:inset 0 1px 1px #fff,inset 0 -1px 2px #b7988020,0 6px 16px #7355410c;overflow:hidden;isolation:isolate;transition:transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .6s}
#alba-part-03 .al-motion-icon>svg{width:35px;height:35px;display:block;filter:drop-shadow(0 1px 0 #fff);overflow:visible}
#alba-part-03 .al-motion-icon:after{content:'';position:absolute;inset:-60%;background:linear-gradient(110deg,transparent 40%,#fff9 50%,transparent 60%);transform:translateX(-80%) rotate(-12deg);pointer-events:none}
#alba-part-03 .al-chapter .al-product-step>p{margin:0;max-width:90ch}
#alba-part-03 .al-product-step:hover .al-motion-icon{transform:translateY(-3px) scale(1.035);box-shadow:inset 0 1px 1px #fff,0 10px 22px #73554115}
#alba-part-03 .al-steps-motion .al-product-step{opacity:0;transform:translateY(20px);transition:opacity .8s ease,transform .9s cubic-bezier(.16,1,.3,1);transition-delay:var(--step-delay,0ms)}
#alba-part-03 .al-steps-motion .al-product-step.is-step-visible{opacity:1;transform:none}
#alba-part-03 .al-motion-icon svg *{transform-box:fill-box;transform-origin:center}
#alba-part-03 .is-step-visible .al-motion-icon:after{animation:al-symbol-sheen 1.4s ease both;animation-delay:calc(var(--step-delay,0ms) + .3s)}
#alba-part-03 .is-step-visible .al-motion-inspect svg{animation:al-symbol-inspect 1.6s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--step-delay,0ms) + .2s)}
#alba-part-03 .is-step-visible .al-check,#alba-part-03 .is-step-visible .al-bag-check{stroke-dasharray:1;animation:al-symbol-draw 1s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--step-delay,0ms) + .5s)}
#alba-part-03 .is-step-visible .al-motion-bag svg{animation:al-symbol-bag 1.5s ease both;animation-delay:calc(var(--step-delay,0ms) + .15s)}
#alba-part-03 .al-product-step:hover .al-plus{animation:al-symbol-plus .8s ease}
@keyframes al-symbol-sheen{from{transform:translateX(-80%) rotate(-12deg)}to{transform:translateX(80%) rotate(-12deg)}}
@keyframes al-symbol-inspect{0%{transform:translate(-3px,2px) scale(.88)}45%{transform:translate(2px,-2px) scale(1.1)}100%{transform:none}}
@keyframes al-symbol-draw{0%,15%{stroke-dashoffset:1;opacity:0}25%{opacity:1}100%{stroke-dashoffset:0;opacity:1}}
@keyframes al-symbol-bag{0%{transform:translateY(-5px) rotate(-7deg)}45%{transform:translateY(2px) rotate(4deg)}75%{transform:translateY(-1px) rotate(-2deg)}100%{transform:none}}
@keyframes al-symbol-plus{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
@media(max-width:760px){#alba-part-03 .al-product-step{padding-left:72px}#alba-part-03 .al-step-heading .al-motion-icon{width:54px;height:54px;border-radius:16px}#alba-part-03 .al-motion-icon>svg{width:29px;height:29px}#alba-part-03 .al-chapter .al-product-step>p{margin:0}#alba-part-03 .al-chapter .al-product-rationale{gap:30px}}
@media(prefers-reduced-motion:reduce){#alba-part-03 .al-steps-motion .al-product-step{opacity:1;transform:none;transition:none}#alba-part-03 .al-motion-icon,#alba-part-03 .al-motion-icon *{animation:none!important;transition:none!important;stroke-dashoffset:0!important}#alba-part-03 .al-motion-icon:after{display:none}#alba-part-03 .al-product-step:hover .al-motion-icon{transform:none}}

/* Rose symbols matching the purchase button, centered on each complete text block, with a clearer sequence. */
#alba-part-03 .al-step-heading .al-motion-icon{top:50%;transform:translateY(-50%);color:#c49482}
#alba-part-03 .al-product-step:hover .al-motion-icon{transform:translateY(calc(-50% - 3px)) scale(1.035)}
#alba-part-03 .al-steps-motion .al-product-step{transform:translateY(16px) scale(.985);transform-origin:left center;transition:opacity .65s ease,transform .85s cubic-bezier(.16,1,.3,1);transition-delay:var(--step-delay,0ms)}
#alba-part-03 .al-steps-motion .al-product-step.is-step-visible{transform:translateY(0) scale(1)}
@media(prefers-reduced-motion:reduce){#alba-part-03 .al-step-heading .al-motion-icon,#alba-part-03 .al-product-step:hover .al-motion-icon{transform:translateY(-50%)}#alba-part-03 .al-steps-motion .al-product-step{transform:none;transition:none}}

/* One shared gap owns the spacing between Alba chapters 01–05. */
#project-5 .pv__body.al-narrative{--al-section-gap:clamp(80px,10vw,144px);row-gap:var(--al-section-gap)}
#project-5 .al-narrative>section[id^="alba-part-"]{padding-top:0!important;padding-bottom:0!important;margin-top:0;margin-bottom:0}

/* /04: a neutral dotted canvas, feathered into the surrounding page. */
#alba-part-04 .al-logic{background:#fff;border-radius:0}
#alba-part-04 .al-logic::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,#d7d7d7 1.35px,transparent 1.65px);background-size:18px 18px;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 86%,transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 86%,transparent);-webkit-mask-composite:source-in}
/* Payment journey: progressive horizontal branches, with an accessible pan on small screens. */
#alba-part-04 .al-payment-flow{padding:36px 0 20px;min-height:0;overflow:hidden}
.al-pay-scroll{overflow-x:auto;padding:20px 0 10px;scrollbar-width:thin;scrollbar-color:#d9ccc6 transparent}
.al-pay-scroll:focus-visible{outline:2px solid #c49482;outline-offset:-4px}
.al-pay-map{position:relative;min-width:1120px;height:600px;width:100%;isolation:isolate}
.al-pay-lines{position:absolute;inset:0;width:100%;height:600px;z-index:-1;overflow:visible}
.al-pay-lines path{fill:none;stroke:#d9d4d1;stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.al-pay-node{position:absolute;left:var(--x);top:var(--y);width:170px;transform:translate(-50%,14px);opacity:0;text-align:center}
.al-pay-icon{display:grid;place-items:center;width:92px;height:92px;margin:0 auto 17px;border-radius:27px;background:linear-gradient(145deg,#fff 0%,#f4f1ee 70%,#e8dfd9 100%);box-shadow:0 10px 28px #5144390a,inset 0 1px 1px #fff;color:#c49482}
.al-pay-icon svg{width:41px;height:41px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.al-narrative .al-pay-node h4{font-size:16px;line-height:1.25;letter-spacing:-.035em;font-weight:500;margin:0 0 9px}
.al-narrative .al-pay-node p{font-size:12px;line-height:1.6;color:#777;margin:0}
.al-pay-tag{display:inline-block;font-size:9px;line-height:1.4;color:#9c7564;margin-top:10px;background:#faf6f3;border-radius:20px;padding:5px 9px}
.is-playing .al-pay-node{animation:alPayReveal .8s cubic-bezier(.2,.8,.2,1) var(--delay) both}
.is-playing .al-pay-lines path{animation:alPayDraw 1.1s cubic-bezier(.4,0,.2,1) var(--delay) both}
.al-payment-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin:35px 0 0}
.al-payment-notes span{font-size:10px;letter-spacing:.12em;color:#9c7564}
.al-narrative .al-payment-notes h4{font-size:20px;letter-spacing:-.04em;font-weight:500;line-height:1.25;margin:14px 0}
.al-narrative .al-payment-notes p{font-size:14px;line-height:1.7;color:#777;margin:0}
@keyframes alPayReveal{from{opacity:0;transform:translate(-50%,14px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes alPayDraw{to{stroke-dashoffset:0}}
@media(max-width:760px){.al-payment-notes{grid-template-columns:1fr;gap:28px}.al-pay-scroll{padding-inline:12px}.al-pay-map{min-width:1220px}}
@media(prefers-reduced-motion:reduce){.al-pay-node{opacity:1;transform:translate(-50%,0)}.al-pay-lines path{stroke-dashoffset:0}.is-playing .al-pay-node,.is-playing .al-pay-lines path{animation:none}}

/* ---------- sequential entrances ----------
   Each section stages itself only once it scrolls into view. /01 arrives in
   reading order — eyebrow, heading, paragraphs, link — and the film tile then
   slides in from the right. The later chapters stagger their index, kind,
   heading and copy before the stage below follows. Hidden states live under
   .al-enter, which only JS adds, so nothing disappears without script. */
.al-narrative .al-intro{overflow:clip}
.al-narrative .al-intro.al-enter :is(.al-intro-eyebrow,.al-intro-heading,.al-intro-body p){
  opacity:0;transform:translateY(28px);
  transition:opacity .9s cubic-bezier(.16,1,.3,1),transform 1.05s cubic-bezier(.16,1,.3,1)}
.al-narrative .al-intro.al-enter .al-concept-cta{opacity:0;transform:translateY(22px);
  transition:opacity .9s cubic-bezier(.16,1,.3,1),transform 1.05s cubic-bezier(.16,1,.3,1),
    border-color .4s,gap .4s}
.al-narrative .al-intro.al-enter .al-intro-tile{opacity:0;transform:translateX(min(9vw,110px));
  transition:opacity 1.1s cubic-bezier(.16,1,.3,1),transform 1.25s cubic-bezier(.16,1,.3,1)}
.al-narrative .al-intro.al-enter.is-visible :is(.al-intro-eyebrow,.al-intro-heading,.al-intro-body p,.al-intro-tile){
  opacity:1;transform:none}
.al-narrative .al-intro.al-enter.is-visible .al-intro-heading{transition-delay:.14s}
.al-narrative .al-intro.al-enter.is-visible .al-intro-body p:nth-child(1){transition-delay:.34s}
.al-narrative .al-intro.al-enter.is-visible .al-intro-body p:nth-child(2){transition-delay:.46s}
.al-narrative .al-intro.al-enter.is-visible .al-intro-body p:nth-child(3){transition-delay:.58s}
/* the CTA keeps its hover transitions undelayed: the delay sits only on the
   entrance's own properties */
.al-narrative .al-intro.al-enter.is-visible .al-concept-cta{opacity:1;transform:none;
  transition:opacity .9s cubic-bezier(.16,1,.3,1) .76s,transform 1.05s cubic-bezier(.16,1,.3,1) .76s,
    border-color .4s,gap .4s}
.al-narrative .al-intro.al-enter.is-visible .al-intro-tile{transition-delay:.92s}

/* chapters /02–/05: index → kind → heading → copy → stage → footnotes */
.al-part.al-enter :is(.al-index,.al-chapter .pvs__kind,.al-chapter h3,.al-chapter>div>p:not(.pvs__kind),.al-chapter .al-product-rationale,.ap,.al-shows,.al-payment-notes,.al-controls,.al-meta,.al-brief){
  opacity:0;transform:translateY(26px);
  transition:opacity .85s cubic-bezier(.16,1,.3,1),transform .95s cubic-bezier(.16,1,.3,1)}
.al-part.al-enter.is-visible :is(.al-index,.al-chapter .pvs__kind,.al-chapter h3,.al-chapter>div>p:not(.pvs__kind),.al-chapter .al-product-rationale,.ap,.al-shows,.al-payment-notes,.al-controls,.al-meta,.al-brief){
  opacity:1;transform:none}
.al-part.al-enter.is-visible .al-chapter .pvs__kind{transition-delay:.08s}
.al-part.al-enter.is-visible .al-chapter h3{transition-delay:.18s}
.al-part.al-enter.is-visible .al-chapter>div>p:not(.pvs__kind){transition-delay:.3s}
.al-part.al-enter.is-visible .al-chapter .al-product-rationale{transition-delay:.42s}
.al-part.al-enter .al-stage{transition-delay:.45s}
.al-part.al-enter.is-visible :is(.ap,.al-shows,.al-payment-notes,.al-controls,.al-meta,.al-brief){transition-delay:.55s}

/* /03 runs as one long timed progression: title, text, then the three steps
   a second apart (their --step-delay is set by JS), and finally the product
   page pops in — scaling up from nothing with an elastic settle. The steps
   stage themselves, so the rationale wrapper stays out of the generic fade. */
#alba-part-03.al-enter .al-chapter .al-product-rationale{opacity:1;transform:none;transition:none}
@keyframes alPopIn{
  0%{opacity:0;transform:scale(0)}
  60%{opacity:1;transform:scale(1.035)}
  80%{transform:scale(.99)}
  100%{opacity:1;transform:scale(1)}
}

/* the closing statement rises on its own */
.al-statement.al-enter>p{opacity:0;transform:translateY(30px);
  transition:opacity 1s cubic-bezier(.16,1,.3,1),transform 1.1s cubic-bezier(.16,1,.3,1)}
.al-statement.al-enter.is-visible>p{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .al-narrative .al-intro.al-enter :is(.al-intro-eyebrow,.al-intro-heading,.al-intro-body p),
  .al-narrative .al-intro.al-enter .al-concept-cta,
  .al-narrative .al-intro.al-enter .al-intro-tile,
  .al-part.al-enter :is(.al-index,.al-chapter .pvs__kind,.al-chapter h3,.al-chapter>div>p:not(.pvs__kind),.al-chapter .al-product-rationale,.ap,.al-shows,.al-payment-notes,.al-controls,.al-meta,.al-brief),
  .al-statement.al-enter>p{opacity:1;transform:none}
  #alba-part-03.al-enter .ap,#alba-part-03.al-enter.is-visible .ap{opacity:1;transform:none;animation:none}
}

/* Clear, readable checkout routes: payment must finish before confirmation. */
#alba-part-04 .al-payment-v2{padding:48px clamp(16px,4vw,64px);overflow:visible;isolation:isolate}
.al-payment-v2 .al-flow-entry{text-align:center;max-width:520px;margin:0 auto 52px;position:relative}
.al-payment-v2 .al-flow-entry:after{content:"";position:absolute;height:32px;width:2px;background:#bda99d;bottom:-40px;left:50%}
.al-payment-v2 .al-pay-icon{width:66px;height:66px;border-radius:20px;margin:0 auto 18px;color:#a46c55}
.al-payment-v2 .al-pay-icon svg{width:32px;height:32px}
.al-narrative .al-payment-v2 h4{font-size:clamp(25px,2.5vw,36px);line-height:1.18;letter-spacing:-.035em;font-weight:550;margin:0 0 14px;color:#252321}
.al-narrative .al-payment-v2 p{font-size:17px;line-height:1.55;color:#514c48;margin:0}
.al-flow-caption{display:block;font-size:11px;font-weight:600;letter-spacing:.12em;line-height:1.6;color:#805b49;margin:16px 0}
.al-flow-routes{display:grid;grid-template-columns:1fr 1fr;gap:40px;max-width:1100px;margin:auto;position:relative}
.al-flow-route{background:#fffdfb;border:1px solid #d8cec7;border-radius:18px;padding:32px;display:flex;flex-direction:column;position:relative}
.al-flow-route header{text-align:center;padding-bottom:26px;border-bottom:1px solid #e4dcd6}
.al-flow-route ol{list-style:none;margin:0;padding:26px 0;display:grid;gap:30px}
.al-flow-route li{position:relative;padding-left:22px;border-left:2px solid #c49b85}
.al-narrative .al-flow-route h5{font-size:21px;line-height:1.3;font-weight:550;letter-spacing:-.02em;margin:0 0 8px;color:#292521}
.al-flow-ready{margin-top:auto;padding-top:20px;font-size:16px;color:#805b49;font-weight:550;display:flex;justify-content:space-between;align-items:center}
.al-flow-ready span{font-size:24px}
.al-flow-route:after{content:"";position:absolute;left:50%;bottom:-27px;height:26px;border-left:2px solid #bda99d}
.al-flow-shared{max-width:1100px;margin:26px auto 0;border-top:2px solid #bda99d;padding-top:30px;position:relative}
.al-flow-shared>.al-flow-caption{text-align:center;margin:8px 0 28px}
.al-flow-confirm,.al-flow-outcome{max-width:760px;margin:auto;display:flex;align-items:center;gap:24px;background:#f3ede7;border:1px solid #d8cec7;border-radius:16px;padding:28px 32px}
.al-flow-shared .al-pay-icon{margin:0;flex-shrink:0;background:#fffaf5}
.al-narrative .al-flow-shared h4{font-size:27px}
.al-flow-outcome{margin-top:32px;background:#fff;position:relative}
.al-flow-outcome:before{content:"↓";position:absolute;left:50%;top:-32px;font-size:24px;line-height:30px;color:#805b49}
.al-narrative .al-payment-notes p{font-size:16px;color:#514c48}
@media(max-width:640px){.al-flow-routes{grid-template-columns:1fr;gap:28px}.al-flow-route{padding:24px}.al-flow-route:after{display:none}.al-flow-shared{margin-top:32px}.al-flow-confirm,.al-flow-outcome{padding:24px;flex-direction:column;text-align:center}.al-narrative .al-payment-v2 p{font-size:16px}.al-narrative .al-flow-shared h4{font-size:25px}.al-flow-ready:after{content:"Continues to confirmation below";font-size:12px;font-weight:400}.al-flow-ready span{display:none}}

/* Horizontal payment tree: retain readable type rather than shrinking on mobile. */
#alba-part-04 .al-horizontal-flow{padding:24px 0;overflow:hidden;min-height:0}
.al-tree-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#bda99d transparent;padding:12px 0 20px}
.al-tree-scroll:focus-visible{outline:2px solid #a46c55;outline-offset:-3px}
.al-tree-map{position:relative;width:100%;min-width:1600px;height:690px;isolation:isolate}
.al-tree-lines{position:absolute;inset:0;width:1600px;height:690px;z-index:-1;overflow:visible}
.al-tree-link{fill:none;stroke:#bda99d;stroke-width:2}
#al-tree-arrow path{fill:none;stroke:#a46c55;stroke-width:1.5}
.al-tree-node{position:absolute;left:var(--x);top:var(--y);width:200px;transform:translateX(-50%);text-align:center;isolation:isolate}
/* a soft white halo behind each node lifts the type off the dotted canvas */
.al-tree-node::before{content:"";position:absolute;z-index:-1;inset:-16px -20px -22px;
  background:radial-gradient(closest-side,rgba(255,255,255,.96) 45%,rgba(255,255,255,0));
  filter:blur(5px);pointer-events:none}
.al-tree-node .al-pay-icon{width:80px;height:80px;margin:0 auto 20px;border-radius:24px;color:#a46c55}
.al-narrative .al-tree-node h4{font-size:26px;line-height:1.18;font-weight:550;letter-spacing:-.035em;color:#252321;margin:0 0 12px}
.al-narrative .al-tree-node p{font-size:18px;line-height:1.5;color:#45413d;margin:0}
.al-narrative .al-tree-route h4{font-size:31px}
.al-tree-confirm{width:240px}
.al-tree-merge-label{position:absolute;left:1015px;top:240px;font-size:12px;letter-spacing:.1em;font-weight:600;color:#805b49;white-space:nowrap}
@media(min-width:1900px){.al-tree-map{width:1600px;margin:auto}}

/* ---------- /04 tree: fit one screen, and a sequenced reveal ----------
   The canvas is a fixed 1600x690 drawing. JS measures the column and, while
   the whole tree stays readable (scale >= .5), shrinks it as one piece so it
   all fits on screen with no side-scroll; the negative bottom margin returns
   the layout space the transform gave up. Narrower than that (phones), the
   scroll strip stays and JS pans it along the flow in time with the reveal. */
.al-horizontal-flow.is-fit .al-tree-scroll{overflow:hidden}
.al-horizontal-flow.is-fit .al-tree-map{width:1600px;min-width:0;
  transform:scale(var(--al-tree-scale,1));transform-origin:0 0;
  margin-bottom:calc(690px*(var(--al-tree-scale,1) - 1))}

/* The journey grows like a tree each time it comes into view. Checkout
   first; both branch lines then DRAW out together; Pay in full arrives and
   waits while the Pay-in-parts branch keeps evolving link by link; at 7.7s
   both routes' lines draw into Confirm & thank at the same moment, then the
   flow closes with Order complete. Lines draw via pathLength=1 (set by JS);
   each arrowhead only appears as its line finishes. Hidden states sit under
   .al-enter (JS-added). */
#alba-part-04.al-enter .al-tree-node,
#alba-part-04.al-enter .al-tree-link,
#alba-part-04.al-enter .al-tree-merge-label{opacity:0}
.al-payment-flow.is-playing .al-tree-node{
  animation:alTreeNode 1.05s cubic-bezier(.22,1,.36,1) var(--d,0s) both}
.al-payment-flow.is-playing .al-tree-link{stroke-dasharray:1;
  animation:alTreeDraw 1s cubic-bezier(.45,.05,.3,1) var(--d,0s) both}
.al-payment-flow.is-playing .al-tree-merge-label{
  animation:alTreeFade .9s ease var(--d,0s) both}
.al-tree-map>div:nth-of-type(1){--d:0s}        /* checkout */
.al-tree-lines path:nth-of-type(1),
.al-tree-lines path:nth-of-type(2){--d:.8s}    /* it branches: both pathlines together */
.al-tree-map>div:nth-of-type(2){--d:1.7s}      /* pay in full — then waits */
.al-tree-map>div:nth-of-type(3){--d:1.85s}     /* pay in parts */
.al-tree-lines path:nth-of-type(4){--d:2.7s}   /* -> calculate */
.al-tree-map>div:nth-of-type(4){--d:3.5s}      /* calculate */
.al-tree-lines path:nth-of-type(5){--d:4.3s}   /* -> remind */
.al-tree-map>div:nth-of-type(5){--d:5.1s}      /* remind */
.al-tree-lines path:nth-of-type(6){--d:5.9s}   /* -> complete */
.al-tree-map>div:nth-of-type(6){--d:6.7s}      /* complete payment */
.al-tree-lines path:nth-of-type(3),
.al-tree-lines path:nth-of-type(7){--d:7.7s}   /* both routes link to Confirm at once */
.al-tree-map>div:nth-of-type(7){--d:8.7s}      /* confirm & thank */
.al-tree-merge-label{--d:9.2s}
.al-tree-lines path:nth-of-type(8){--d:9.7s}   /* -> order complete */
.al-tree-map>div:nth-of-type(8){--d:10.5s}     /* order complete */
@keyframes alTreeNode{
  from{opacity:0;transform:translateX(-50%) translateY(18px) scale(.96)}
  to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}
@keyframes alTreeDraw{
  0%{opacity:1;stroke-dashoffset:1;marker-end:none}
  88%{marker-end:none}
  100%{opacity:1;stroke-dashoffset:0;marker-end:url(#al-tree-arrow)}}
@keyframes alTreeFade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  #alba-part-04.al-enter .al-tree-node,
  #alba-part-04.al-enter .al-tree-link,
  #alba-part-04.al-enter .al-tree-merge-label{opacity:1}
  .al-payment-flow.is-playing .al-tree-node,
  .al-payment-flow.is-playing .al-tree-link,
  .al-payment-flow.is-playing .al-tree-merge-label{animation:none}
}

/* ============================================================
   Dark theme — Alba de Cáliz responds to the invert button.
   The editorial frame (page + copy + headings) goes dark; the
   product/website mockups stay as light "artifacts" on the dark
   page, since they depict Alba's real light-themed product UI.
   ============================================================ */
html[data-theme="dark"] #project-5,
html[data-theme="dark"] #project-5 .pv__body.al-narrative{background-color:#121214!important}
html[data-theme="dark"] #project-5 .pv__right{background:#161616}
html[data-theme="dark"] #project-5 .al-statement>p,
html[data-theme="dark"] #project-5 .al-chapter h3,
html[data-theme="dark"] #project-5 .al-index{color:#e9e7e1}
html[data-theme="dark"] #project-5 .al-intro p,
html[data-theme="dark"] #project-5 .al-intro div p,
html[data-theme="dark"] #project-5 .al-intro-body p,
html[data-theme="dark"] #project-5 .al-chapter>div>p:last-child,
html[data-theme="dark"] #project-5 #alba-part-03 .al-chapter>div>p:not(.pvs__kind),
html[data-theme="dark"] #project-5 .al-product-rationale p,
html[data-theme="dark"] #project-5 #alba-part-03 .al-chapter .al-product-step>p{color:#aba89f}
html[data-theme="dark"] #project-5 .al-intro small,
html[data-theme="dark"] #project-5 .al-shows,
html[data-theme="dark"] #project-5 .al-meta{color:#8f8d85}
html[data-theme="dark"] #project-5 .al-shows b,
html[data-theme="dark"] #project-5 .al-product-rationale span,
html[data-theme="dark"] #project-5 #alba-part-03 .al-step-heading>span{color:#c6c3bb}
html[data-theme="dark"] #project-5 .al-meta a{color:#c6c3bb;border-bottom-color:rgba(255,255,255,.3)}
html[data-theme="dark"] #project-5 .al-brief{color:#9a978f;border-top-color:rgba(255,255,255,.16)}
html[data-theme="dark"] #project-5 .al-product-rationale{border-top-color:rgba(255,255,255,.16)}
html[data-theme="dark"] #project-5 #alba-part-03 .al-product-step{border-bottom-color:rgba(255,255,255,.12)}
html[data-theme="dark"] #project-5 .al-controls button{color:#d8d6d0;border-color:rgba(255,255,255,.22)}

/* Maintain heading contrast against the dark project background. */
html[data-theme="dark"] #project-5 .al-intro-heading { color:#fff; }
