/*
  Niti home page: the flow of one trip in the hero (partials/site/_hero-flow and _hero-flow-preview).
  Loaded by the home page after mocks.css and home.css.

  .hf          the box in the hero grid; it sets the layout's numbers
  .hf-map      the map's box. Its .hf-stage is larger: it bleeds to the right edge of the screen and fades out at its edges.
  .hf-cam      the camera, at the middle of the stage. Its transform puts the scene point (--hf-cx, --hf-cy)
               at the middle, or a step at the focus point (--hf-fx, --hf-fy). hero-flow.js moves it.
  .hf-scene    the map at full size: the lines (svg), the pen, the steps and their buttons
  .hf-panel    the detail of each step, beside the step in focus. Not in the camera, so its text stays sharp and flat.
  .hf-bar      hint, step count and the four buttons

  Two map layouts: wide (a path in three rows) from 600px, tall (one column) on phones.
  The detail: on wide screens the words and the screen sit to the right of the step; on phones the
  title sits beside the step and the words and the screen under it.
  --hf-bw / --hf-bh are the size of the drawn part of the scene; --hf-iw / --hf-ih how much of the stage it may fill.
  The inline script in the partial and hero-flow.js turn them into --hf-fit, the scale of the map.
*/

.hf{--hf-w:1150;--hf-h:920;--hf-cx:568;--hf-cy:460;--hf-bw:1136;--hf-bh:885;--hf-iw:.9;--hf-ih:.95;
  --hf-up:76px;--hf-down:60px;--hf-left:40px;--hf-right:calc((100vw - min(var(--max), 100vw - 2 * var(--gutter))) / 2);
  --hf-box:500px;--hf-bar:0px;--hf-oy:0px;
  --hf-fx:88px;--hf-fy:66px;--hf-px:164px;
  /* the map without any script: the smaller of a scale for the width and one for the height */
  --hf-fw:.56;--hf-fh:.6;--hf-fit-css:min(var(--hf-fw), var(--hf-fh));
  --hf-ink:rgba(10,10,10,.42);
  --hf-ease:cubic-bezier(.65,0,.35,1);
  position:relative;min-width:0}
/* with the script the bar sits under the map, so the map moves up by half of it */
html.js .hf{--hf-bar:52px;--hf-oy:-26px}

.hf-map{position:relative;height:var(--hf-box)}
/* --hf-keep: how much of the map shows under the panel. In a detail it fades to 0, so no line or drawing runs through the words. */
@property --hf-keep{syntax:'<number>';inherits:true;initial-value:1}
.hf-stage{position:absolute;top:calc(-1 * var(--hf-up));bottom:calc(-1 * var(--hf-down));left:calc(-1 * var(--hf-left));right:calc(-1 * var(--hf-right));
  overflow:hidden;overflow:clip;perspective:1400px;
  --hf-keep:1;--hf-cut:calc(var(--hf-left) + var(--hf-px));transition:--hf-keep .8s var(--ease-out);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 95%,transparent),linear-gradient(transparent,#000 8%,#000 92%,transparent),
    linear-gradient(90deg,#000 calc(var(--hf-cut) - 64px),rgba(0,0,0,var(--hf-keep)) calc(var(--hf-cut) - 14px));
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 95%,transparent),linear-gradient(transparent,#000 8%,#000 92%,transparent),
    linear-gradient(90deg,#000 calc(var(--hf-cut) - 64px),rgba(0,0,0,var(--hf-keep)) calc(var(--hf-cut) - 14px));
  mask-composite:intersect}
.hf.is-detail .hf-stage{--hf-keep:0}
.hf-cam{position:absolute;left:50%;top:50%;width:0;height:0;transform-origin:0 0;
  transform:translate(0px, var(--hf-oy)) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(var(--hf-fit, var(--hf-fit-css))) translate(calc(var(--hf-cx) * -1px), calc(var(--hf-cy) * -1px))}
.hf-scene{position:absolute;left:0;top:0;width:calc(var(--hf-w) * 1px);height:calc(var(--hf-h) * 1px)}

/* one soft lime light behind the step in focus */
.hf-glow{position:absolute;left:0;top:0;width:var(--hf-gl,520px);height:var(--hf-gl,520px);margin:calc(var(--hf-gl,520px) / -2) 0 0 calc(var(--hf-gl,520px) / -2);border-radius:50%;opacity:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(198,244,50,.24),rgba(198,244,50,.08) 55%,transparent);transition:opacity .8s var(--ease-out)}
.hf.is-detail .hf-glow{opacity:1}

/* the lines: dotted like the routes inside the drawings */
.hf-lines{position:absolute;left:0;top:0;overflow:visible;transition:opacity .8s var(--ease-out)}
.hf.is-detail .hf-lines{opacity:.5}
.hf-lines--t,.hf-pen--t{display:none}
.hf-ln path{fill:none;stroke:var(--hf-ink);stroke-width:2.1;stroke-linecap:round;stroke-dasharray:0 6.6}
.hf-ln__dot{fill:rgba(10,10,10,.6)}
/* the way the camera just travelled, drawn in by the script, darker than the rest */
.hf-lit{fill:none;stroke:rgba(10,10,10,.9);stroke-width:2.6;stroke-linecap:round;stroke-dasharray:0 6.6;opacity:0;transition:opacity .5s}
.hf-lit.is-on{opacity:1}
.hf-pen{position:absolute;left:0;top:0;width:9px;height:9px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 4px rgba(198,244,50,.65);
  offset-anchor:50% 50%;offset-rotate:0deg;opacity:0;pointer-events:none}

/* a step on the map: its drawing at (x, y), the label under it, and a button over both */
.hf-n{position:absolute;left:calc(var(--x) * 1px);top:calc(var(--y) * 1px);width:0;height:0}
.hf-n__in{position:absolute;left:0;top:0;transform-origin:0 0;transition:opacity .8s var(--ease-out),transform .8s var(--ease-out)}
.hf-n__in::before{content:"";position:absolute;left:-62px;top:-62px;width:124px;height:124px;border-radius:50%;opacity:0;transition:opacity .25s;
  background:radial-gradient(closest-side,rgba(198,244,50,.45),rgba(198,244,50,0))}
.hf-n__ic{position:absolute;left:-46px;top:-46px;width:92px;height:92px;max-width:none}
.hf-n__lb{position:absolute;left:-160px;top:52px;width:320px;text-align:center;font-family:var(--font-display);font-size:23px;font-weight:600;line-height:1.3;letter-spacing:-.02em;color:var(--ink);white-space:nowrap;transition:opacity .5s}
/* the three ways to build the itinerary: smaller steps in a column */
.hf-n--sub .hf-n__in::before{left:-48px;top:-48px;width:96px;height:96px}
.hf-n--sub .hf-n__ic{left:-33px;top:-33px;width:66px;height:66px}
.hf-n--sub .hf-n__lb{top:38px;font-size:18px}
.hf-n--sub .hf-hot{left:-80px;top:-42px;width:160px;height:110px}
/* the client's steps: a warm light behind the drawing (Niti's steps keep the lime dab in their drawing) */
.hf-n--client .hf-n__in::after{content:"";position:absolute;z-index:-1;left:-66px;top:-66px;width:132px;height:132px;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,190,135,.38),rgba(255,190,135,0))}
.hf-n--client .hf-n__in{isolation:isolate}
.hf-n--client .hf-n__in::before{background:radial-gradient(closest-side,rgba(255,180,120,.5),rgba(255,180,120,0))}
.hf-hot{position:absolute;left:-120px;top:-56px;width:240px;height:142px;border-radius:24px;cursor:pointer}
.hf-hot:focus-visible{outline:3px solid var(--ink);outline-offset:0}
html:not(.js) .hf-hot{cursor:default}
/* on the map, a step lights up under the pointer or the keyboard */
.hf:not(.is-detail) .hf-n:hover .hf-n__in,.hf:not(.is-detail) .hf-n:focus-within .hf-n__in{transform:scale(1.05)}
.hf-n:hover .hf-n__in::before,.hf-n:focus-within .hf-n__in::before{opacity:1}
html:not(.js) .hf-n:hover .hf-n__in::before{opacity:0}
/* in a detail: the step in focus at full strength, without its label (the panel has the title); the steps before it dimmed, the steps after it more */
.hf.is-detail .hf-n__in{opacity:.11;transform:scale(.9)}
.hf.is-detail .hf-n.is-past .hf-n__in{opacity:.26}
.hf.is-detail .hf-n.is-on .hf-n__in{opacity:1;transform:scale(1)}
.hf.is-detail .hf-n.is-on .hf-n__lb{opacity:0}
/* its button shrinks to a circle round the drawing, so a focus ring never runs through the panel */
.hf.is-detail .hf-n.is-on .hf-hot{left:-60px;top:-60px;width:120px;height:120px;border-radius:50%;outline-width:2px}

/* ---------- the detail panel ---------- */
/* on two columns the panel may run into the right margin of the page, up to 16px from the edge of the screen */
.hf-panel{position:absolute;z-index:2;top:0;bottom:0;left:var(--hf-px);right:min(0px, calc(16px - var(--hf-right)));pointer-events:none}
/* a soft paper light behind the words, so the dimmed map never runs through them */
.hf-panel::before{content:"";position:absolute;inset:-60px -40px -40px -70px;opacity:0;transition:opacity .6s var(--ease-out);
  background:radial-gradient(closest-side, rgba(250,250,247,.94) 68%, rgba(250,250,247,0))}
.hf.is-detail .hf-panel::before{opacity:1}
.hf-d{position:absolute;left:0;right:0;top:14px;opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .4s var(--ease-out),transform .5s var(--ease-out),visibility 0s .5s}
.hf-d.is-on{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .7s var(--ease-out),transform .9s var(--ease-out),visibility 0s}
.hf-d__t{font-family:var(--font-display);font-size:23px;font-weight:600;line-height:1.15;letter-spacing:-.025em;color:var(--ink);text-wrap:balance}
.hf-d__x{margin-top:8px;max-width:27em;font-size:15px;line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.hf-d__ui{margin-top:16px;max-width:384px}

/* where a step happens: a small mark before the title. In Niti: the Niti tile. Your client: a person on a warm dot. */
.hf-where{display:inline-grid;place-items:center;width:1.05em;height:1.05em;margin-right:.36em;vertical-align:-.17em}
.hf-where__ic{width:100%;height:100%}
.hf-where--client{border-radius:50%;background:#FDEEDF;color:#8A4A12;box-shadow:inset 0 0 0 1px rgba(160,90,30,.2)}
/* the person fills the box through its padding, so both marks sit on the same baseline */
.hf-where--client .hf-where__ic{padding:19%}
.hf-tile rect{fill:var(--ink)}
.hf-tile{color:var(--lime)}
.hf-person{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
/* one of the three ways to build the itinerary: the three names, this one in ink */
.hf-ways{margin-top:10px;display:flex;flex-wrap:wrap;gap:5px}
.hf-ways span{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:500;color:var(--ink-3);box-shadow:inset 0 0 0 1px var(--line-2)}
.hf-ways span.is-on{background:var(--ink);color:#fff;font-weight:600;box-shadow:none}

/* ---------- the screens: shared mock styles (mocks.css), and the list, form and AI screens of the persona pages (personas.css) ---------- */
.hf-d .mk{font-size:12.5px;line-height:1.4}
.hf-d .panel{max-width:none;box-shadow:0 0 0 1px rgba(10,10,10,.07),0 1px 2px rgba(10,10,10,.04),0 18px 40px -18px rgba(10,10,10,.22)}
.hf-d .mk__h{font-size:13.5px}
.hf-d .pill{height:22px;font-size:12px}
.hf-d .ps-list{padding:12px 16px 8px}
.hf-d .ps-list__rows li{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 0}
.hf-d .ps-list__rows li + li{border-top:1px solid var(--line)}
.hf-d .ps-list__t{display:flex;flex-direction:column;min-width:0}
.hf-d .ps-list__t b{font-weight:600;line-height:1.3}
.hf-d .ps-list__t small{font-size:12px;line-height:1.35;color:var(--ink-3)}
.hf-d .ps-list__note{margin:6px 0 6px;display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;background:var(--lime-wash);box-shadow:inset 0 0 0 1px rgba(77,94,0,.14)}
.hf-d .ps-list__note .pill{margin-left:auto}
.hf-d .ps-form{padding:12px 16px 14px}
.hf-d .ps-form__fields div{padding-top:8px}
.hf-d .ps-form__fields dt{font-size:12px;font-weight:600;color:var(--ink-2)}
.hf-d .ps-form__fields dd{margin-top:4px;display:flex;align-items:center;height:31px;padding:0 10px;overflow:hidden;border-radius:7px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2);white-space:nowrap;text-overflow:ellipsis}
.hf-d .ps-form__status{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600;color:var(--ink-2)}
.hf-d .ps-form__status .pill{margin-left:0}
.hf-d .ps-ai{padding:12px 16px 8px}
.hf-d .ps-ai__msg{margin-top:10px;margin-left:24px;padding:9px 12px;border-radius:12px 12px 4px 12px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);line-height:1.45;color:var(--ink)}
.hf-d .ps-ai__list{margin-top:8px}
.hf-d .ps-ai__list li{display:flex;align-items:center;gap:10px;min-height:34px;padding:4px 0}
.hf-d .ps-ai__list li + li{border-top:1px solid var(--line)}
.hf-d .ps-ai__list li > span:nth-child(2){color:var(--ink-2)}
.hf-d .ps-ai__list b{margin-left:auto;font-weight:600;white-space:nowrap}
.hf-d .ps-ai__ok,.hf-ok{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:999px;background:var(--lime-ink);color:#fff}
.hf-d .ps-ai__ok .ico-line,.hf-ok .ico-line{width:11px;height:11px;stroke-width:3}
.hf-d .ps-ai__list .is-you .ps-ai__ok{background:none;box-shadow:inset 0 0 0 1.5px var(--line-dash)}
.hf-d .ps-ai__list .is-you b{color:var(--lime-ink)}
.hf-d .pay{padding:14px 16px 10px}
.hf-d .pay__head{font-size:13.5px}
.hf-d .pay__row{padding:10px 0}
.hf-d .pay__t b,.hf-d .pay__amt{font-size:13px}
.hf-d .pay__foot{font-size:12px}

/* a message from the client, and the agent's reply */
.hf-chat{position:relative;padding:14px 16px 16px}
.hf-chat__who{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.hf-chat__who span{display:flex;flex-direction:column}
.hf-chat__who b{font-size:13.5px;font-weight:600}
.hf-chat__who small{font-size:12px;color:var(--ink-3)}
.hf-chat__in,.hf-chat__out,.hf-chat__typing{margin-top:12px;max-width:88%;padding:10px 13px;border-radius:14px 14px 14px 4px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line);font-size:13.5px;line-height:1.45;color:var(--ink)}
.hf-chat__in{background:#FCE9D7;box-shadow:inset 0 0 0 1px rgba(160,90,30,.16)}
.hf-chat__out{margin-left:auto;border-radius:14px 14px 4px 14px}

/* the client's side: her messages and her options page sit on a warm surface, not on Niti's white */
.hf-cl{padding:8px;border-radius:18px;background:#FBF0E5;box-shadow:inset 0 0 0 1px rgba(160,90,30,.14)}
.hf-cl > .panel{box-shadow:0 0 0 1px rgba(120,70,20,.08),0 10px 24px -14px rgba(120,70,20,.3)}

/* the three ways to build the itinerary, side by side */
.hf-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hf-three__way{display:flex;flex-direction:column;align-items:flex-start;padding:8px 11px 12px}
.hf-three__way img{width:52px;height:52px;margin:-2px 0 2px -6px}
.hf-three__way b{font-size:13.5px;font-weight:600}
.hf-three__way span{margin-top:3px;font-size:12px;line-height:1.35;color:var(--ink-3)}

/* the builder, by hand: one screen for the stays */
.hf-app{max-width:none;box-shadow:0 0 0 1px rgba(10,10,10,.08),0 18px 40px -18px rgba(10,10,10,.22)}
.hf-app .app__bar{height:30px}
.hf-app .app__main{padding:10px}
.hf-app .app__card{padding:10px 12px 12px}
.hf-app .app__l{margin-top:8px}
.hf-app .app__in{height:28px}
.hf-app__ph{color:var(--ink-3)}
.hf-app__photos{display:flex;align-items:center;gap:8px;margin-top:7px;font-size:12px;font-weight:600;color:var(--lime-ink)}
.hf-app__photos img{width:44px;height:28px;border-radius:5px;object-fit:cover}
/* while she types: three dots, in the place of the message */
.hf-chat__typing{position:absolute;display:inline-flex;gap:4px;padding:13px 14px}
.hf-chat__typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-3)}
.hf-d.is-on .hf-chat__typing i{animation:hf-dot 1s ease-in-out 2}
.hf-d.is-on .hf-chat__typing i:nth-child(2){animation-delay:.15s}
.hf-d.is-on .hf-chat__typing i:nth-child(3){animation-delay:.3s}
@keyframes hf-dot{50%{transform:translateY(-3px);opacity:.5}}

/* the saved itinerary, day by day */
.hf-days__d{flex:none;width:62px;font-size:12px;font-weight:600;color:var(--ink-3);font-variant-numeric:tabular-nums}

/* the itineraries of the inquiry, and the copy */
.hf-dup__btn{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px 0 9px;border-radius:999px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2),var(--shadow-sm);font-weight:600;white-space:nowrap}
.hf-dup__btn .ico-line{width:13px;height:13px;stroke-width:1.8}
.hf-dup .ps-list__rows .hf-dup__copy{margin:2px -10px 4px;padding:6px 10px;border-radius:10px;background:var(--lime-wash);box-shadow:inset 0 0 0 1px rgba(77,94,0,.14)}
.hf-dup .ps-list__rows .hf-dup__copy + li,.hf-dup .ps-list__rows li + .hf-dup__copy{border-top:0}
.hf-dup__copy .pill{margin-left:auto}

/* two parts in one place: the one before, and the one after */
.hf-x{display:inline-grid;align-items:center}
.hf-x > *{grid-area:1 / 1}
.hf-x--end{margin-left:auto;justify-items:end}
.hf-swap .ps-list__t b{font-weight:600}
.hf-swap__tot{display:flex;align-items:center;gap:10px;margin-top:2px;padding:9px 0 6px;border-top:1px solid var(--line-2);font-weight:600}
.hf-swap__tot b{font-family:var(--font-display);font-size:15px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}

/* the proposal before it goes, and after */
.hf-send{padding:12px 16px 14px}
.hf-send__opts{margin-top:8px;display:grid;gap:8px}
.hf-send__opts li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;box-shadow:inset 0 0 0 1px var(--line-2)}
.hf-send__opts li.is-pick{box-shadow:inset 0 0 0 1.5px #1F5E8C}
.hf-send__opts span{display:flex;flex-direction:column}
.hf-send__opts b{font-weight:600}
.hf-send__opts small{font-size:12px;color:var(--ink-3)}
.hf-send__p{margin-left:auto;font-family:var(--font-display);font-size:15px;letter-spacing:-.01em;white-space:nowrap}
.hf-tag{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#1F5E8C;color:#fff;font-style:normal;font-size:11px;font-weight:600;line-height:16px;vertical-align:1px}
.hf-send__go{display:grid;margin-top:12px}
.hf-send__btn,.hf-mail__btn{display:flex;align-items:center;justify-content:center;height:34px;border-radius:8px;background:var(--ink);color:#fff;font-weight:600}
.hf-send__done,.hf-mail__done{display:flex;align-items:center;justify-content:center;gap:8px;height:34px;border-radius:8px;background:var(--lime-wash);box-shadow:inset 0 0 0 1px rgba(77,94,0,.18);font-weight:600;color:var(--lime-ink)}

/* the page the client opens: the two options, and her pick */
.hf-client{padding:10px}
.hf-client__top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:2px 4px 10px;font-size:12px;color:var(--ink-3)}
.hf-client__top b{font-family:var(--font-serif);font-size:13.5px;font-weight:600;color:var(--ink)}
.hf-opts{max-width:none;padding-top:0;gap:10px}
.hf-opts .opt__ph{height:84px}
.hf-opts .opt__b{padding:9px 11px 11px}
.hf-opts .opt__p{margin-top:6px;font-size:17px}
.hf-opts .hf-x{margin-top:9px;display:grid}
.hf-opts .hf-x .opt__btn{margin-top:0}
.hf-picked{display:flex;align-items:center;justify-content:center;gap:6px;background:#1F5E8C;color:#fff;box-shadow:none}
.hf-picked .ico-line{width:13px;height:13px;stroke-width:2.6}

/* the email from Niti, the confirmation, and the board */
.hf-mail{padding:14px 16px}
.hf-mail__msg{display:flex;align-items:center;gap:10px}
.hf-mail__ic{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink-2)}
.hf-mail__ic .ico-line{width:15px;height:15px;stroke-width:1.8}
.hf-mail__go{display:grid;margin-top:12px}
/* the card sits in the first column, so both columns are as tall as it is, and slides into the second */
.hf-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.hf-board__col{min-width:0;padding:8px;border-radius:10px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--line)}
.hf-board__col > p{font-size:12px;font-weight:600;color:var(--ink-3)}
.hf-board__card{position:relative;z-index:1;margin-top:6px;padding:7px 10px;border-radius:9px;background:#fff;box-shadow:0 0 0 1px rgba(10,10,10,.08),var(--shadow-sm);transform:translateX(calc(100% + 24px))}
.hf-board__card b{display:block;font-weight:600}
.hf-board__card span{display:block;font-size:12px;color:var(--ink-3)}

/* the vouchers: compact rows */
.hf-vouch .ps-list__rows li{min-height:33px;padding:3px 0}
.hf-vouch .ps-list__t b{font-size:12.5px}
.hf-vouch .ps-list__t small{font-size:11.5px}
.hf-vouch .pill{margin-left:auto}

/* ---------- what happens in a screen once its step opens ---------- */
/* .hf-a parts come in and .hf-b parts go, each at its --d. Without the script (no .js) every screen shows its end state. */
.hf-a,.hf-b,
.hf-d--log .ps-form__fields > div,.hf-d--log .ps-form__status,
.hf-d--tmpl .ps-list__note,
.hf-d--write .ps-ai__msg,.hf-d--write .ps-ai__list li,
.hf-d--pay .pay__row .pay__pill,.hf-d--pay .pay__foot,
.hf-board__card{transition:opacity .5s var(--ease-out) var(--d, 0s),transform .7s var(--ease-out) var(--d, 0s)}
.hf-b{opacity:0}
html.js .hf-d:not(.is-on) :is(.hf-a,.hf-d--log .ps-form__fields > div,.hf-d--log .ps-form__status,.hf-d--tmpl .ps-list__note,.hf-d--write .ps-ai__msg,.hf-d--write .ps-ai__list li,.hf-d--pay .pay__foot){opacity:0;transform:translateY(7px);transition-delay:0s}
html.js .hf-d:not(.is-on) .hf-b{opacity:1;transition-delay:0s}
html.js .hf-d--pay:not(.is-on) .pay__row:first-of-type .pay__pill{opacity:0;transform:scale(.7);transition-delay:0s}
html.js .hf-d:not(.is-on) .hf-board__card{transform:none;transition-delay:0s}
.hf-d--log .ps-form__fields > div:nth-child(1){--d:.35s}
.hf-d--log .ps-form__fields > div:nth-child(2){--d:.75s}
.hf-d--log .ps-form__fields > div:nth-child(3){--d:1.15s}
.hf-d--log .ps-form__fields > div:nth-child(4){--d:1.55s}
.hf-d--log .ps-form__status{--d:2.3s}
.hf-d--tmpl .ps-list__note{--d:1.9s}
.hf-d--write .ps-ai__msg{--d:.3s}
.hf-d--write .ps-ai__list li:nth-child(1){--d:1.2s}
.hf-d--write .ps-ai__list li:nth-child(2){--d:1.6s}
.hf-d--write .ps-ai__list li:nth-child(3){--d:2s}
.hf-d--write .ps-ai__list li:nth-child(4){--d:2.6s}
.hf-d--pay .pay__row:first-of-type .pay__pill{--d:1.6s}
.hf-d--pay .pay__foot{--d:2.3s}
.hf-board__card{--d:2.4s}
/* a button pressed: it sinks a little, just before the change it makes */
html.js .hf-d.is-on .hf-press,html.js .hf-d--tmpl.is-on .ps-list__rows li:first-child .pill{animation:hf-press .45s var(--ease-out) var(--d, 1s) both}
.hf-d--tmpl .ps-list__rows li:first-child .pill{--d:1.2s}
@keyframes hf-press{45%{transform:scale(.92)}}

/* ---------- the bar: previous, play and pause, next, the whole flow ---------- */
.hf-bar{position:absolute;z-index:3;left:0;right:0;bottom:calc(8px - var(--hf-down));display:flex;align-items:center;justify-content:flex-end;gap:6px;height:36px}
.hf-bar[hidden]{display:none}
.hf-btn{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;color:var(--ink-2);background:rgba(250,250,247,.86);box-shadow:inset 0 0 0 1px var(--line-2);transition:color .16s,box-shadow .16s}
.hf-btn:hover{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-dash)}
.hf-btn::before{content:"";position:absolute;inset:-5px}
.hf-btn > svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hf-btn .hf-btn__play{fill:currentColor;stroke:none;display:none}
.hf:not(.is-playing) .hf-btn__pause{display:none}
.hf:not(.is-playing) .hf-btn__play{display:block}
/* time to the next step, as a ring round the pause button */
.hf-btn .hf-btn__ring{position:absolute;inset:-1px;width:36px;height:36px;transform:rotate(-90deg);pointer-events:none}
.hf-btn__ring circle{fill:none;stroke:var(--lime-ink);stroke-width:2;stroke-linecap:round;stroke-dasharray:103.7;stroke-dashoffset:103.7;opacity:0;transition:opacity .3s}
.hf.is-playing .hf-btn__ring circle{opacity:1}
/* a small label over each button */
.hf-btn::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;padding:4px 8px;border-radius:6px;background:var(--ink);color:#fff;font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap;
  opacity:0;transform:translate(-50%,3px);pointer-events:none;transition:opacity .15s,transform .15s}
.hf-btn:last-child::after{left:auto;right:0;transform:translateY(3px)}
.hf-btn:hover::after,.hf-btn:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.hf-btn:last-child:hover::after,.hf-btn:last-child:focus-visible::after{transform:none}

/* ---------- sizes ---------- */
@media (max-width:1365.98px){.hf{--hf-fw:.52}}
@media (max-width:1199.98px){.hf{--hf-fw:.47}}
/* short laptop screens: a lower box, and each screen a little smaller (its text stays 11px or more) */
@media (min-width:1140px) and (max-height:780px){
  .hf{--hf-box:440px;--hf-up:64px;--hf-down:46px;--hf-fh:.5}
  .hf-d{top:4px}
  .hf-d__t{font-size:21px}
  .hf-d__x{font-size:14.5px}
  .hf-d__ui{margin-top:12px;zoom:.9}
}
/* below 1140px the flow goes under the copy, across the whole screen: the detail needs the width */
@media (min-width:960px) and (max-width:1139.98px){
  .hero--flow .hero__grid{grid-template-columns:minmax(0,1fr);row-gap:48px}
}
@media (max-width:1139.98px){
  .hf{--hf-box:min(560px, 76vw);--hf-up:16px;--hf-down:58px;--hf-left:calc((100vw - min(var(--max), 100vw - 2 * var(--gutter))) / 2);--hf-iw:.94;--hf-ih:.95;--hf-fw:.7;--hf-fh:.5}
  .hf-panel{right:0}
  .hf-stage{-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(transparent,#000 5%,#000 94%,transparent);
    mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent),linear-gradient(transparent,#000 5%,#000 94%,transparent)}
}

/* phones: the tall map in a window, and each step opens over it */
@media (max-width:599.98px){
  .hf{--hf-w:328;--hf-h:930;--hf-cx:164;--hf-cy:459;--hf-bw:328;--hf-bh:906;--hf-iw:1;--hf-ih:.97;--hf-box:680px;--hf-up:0px;--hf-down:0px;--hf-left:0px;--hf-right:0px;
    --hf-fx:34px;--hf-fy:44px;--hf-px:0px;--hf-gl:360px;--hf-fw:1;--hf-fh:1}
  html.js .hf{--hf-bar:50px;--hf-oy:-25px}
  .hf-stage{perspective:1100px;-webkit-mask-image:linear-gradient(transparent,#000 4%,#000 92%,transparent);mask-image:linear-gradient(transparent,#000 4%,#000 92%,transparent)}
  .hf-lines--w,.hf-pen--w{display:none}
  .hf-lines--t,.hf-pen--t{display:block}
  .hf-ln path,.hf-lit{stroke-width:1.8;stroke-dasharray:0 5.6}
  .hf-pen{width:7px;height:7px;box-shadow:0 0 0 3.5px rgba(198,244,50,.65)}
  .hf-n{left:calc(var(--tx) * 1px);top:calc(var(--ty) * 1px)}
  .hf-n__in::before{left:-44px;top:-44px;width:88px;height:88px}
  .hf-n__ic{left:-28px;top:-28px;width:56px;height:56px}
  .hf-n__lb{left:42px;top:0;width:250px;transform:translateY(-50%);text-align:left;font-size:17px;letter-spacing:-.018em}
  .hf-hot{left:-32px;top:-32px;width:330px;height:64px;border-radius:16px}
  /* the three ways to build the itinerary sit side by side, the words under their drawings */
  .hf-n--sub .hf-n__in::before{left:-38px;top:-38px;width:76px;height:76px}
  .hf-n--sub .hf-n__ic{left:-24px;top:-24px;width:48px;height:48px}
  .hf-n--sub .hf-n__lb{left:-52px;top:27px;width:104px;transform:none;text-align:center;font-size:15px}
  .hf-n--sub .hf-hot{left:-52px;top:-28px;width:104px;height:76px}
  .hf-n--client .hf-n__in::after{left:-46px;top:-46px;width:92px;height:92px}
  .hf.is-detail .hf-n.is-on .hf-hot{left:-36px;top:-36px;width:72px;height:72px}
  .hf-panel{bottom:50px}
  .hf-panel::before{inset:0 0 -50px;background:linear-gradient(rgba(250,250,247,0) 0, rgba(250,250,247,.97) 84px)}
  .hf-d{top:16px}
  .hf-d__head{min-height:58px;padding-left:74px}
  .hf-d__t{font-size:19px}
  .hf-d__x{margin-top:10px;font-size:14.5px}
  .hf-d__ui{margin-top:14px;max-width:none}
  .hf-bar{bottom:6px}
}
@media (max-width:359.98px){
  .hf-n__lb{width:220px}
}

/* ---------- without the script: the map stands still, and every step's detail sits in a row under it ---------- */
html:not(.js) .hero--flow .hero__grid{align-items:start}
html:not(.js) .hf-panel{position:relative;inset:auto;margin-top:calc(var(--hf-down) + 12px);display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 14px;pointer-events:auto}
html:not(.js) .hf-panel::before{display:none}
html:not(.js) .hf-d{position:relative;inset:auto;flex:0 0 min(340px, 88%);opacity:1;visibility:visible;transform:none;scroll-snap-align:start}
html:not(.js) .hf-d__head{min-height:0;padding:0}
@media (max-width:599.98px){
  html:not(.js) .hf-map{height:auto}
  html:not(.js) .hf-stage{position:relative;inset:auto;-webkit-mask-image:none;mask-image:none}
  html:not(.js) .hf-cam{position:relative;left:auto;top:auto;width:auto;height:auto;transform:none}
  html:not(.js) .hf-scene{position:relative;margin-inline:auto}
  html:not(.js) .hf-panel{margin-top:12px}
}
@media (max-width:359.98px){
  html:not(.js) .hf-scene{zoom:.88}
}
@media print{
  .hf-bar{display:none}
}
