/* Home (English and Hebrew): the open door that sails, the conversation on the box wall, the modes, the network,
   the tools. Page CSS (stage 1); the shared system is site.css. */

/* ---------- 1. the hero scene: a pin of at most 0.7 of a screen (0.4 on a phone) while the ship starts to sail and the
   conversation plays; the box, the pier and every word stay still ---------- */
.hero-scene { position: relative; height: calc(100svh + 70svh); }
.hero-scene > .hero { position: sticky; top: 0; }
/* stage-1 fix: on a phone the pin is a quarter screen (it held 40svh for a 23 px move and read as a stuck page) and
   the ship takes a longer travel (below) */
@media (max-width: 767px), (max-aspect-ratio: 1/1) { .hero-scene { height: calc(100svh + 25svh); } }
:root.rm .hero-scene, :root.t-frozen .hero-scene { height: 100svh; }
@media (prefers-reduced-motion: reduce) { .hero-scene { height: 100svh; } }

/* the two compositions: the wide plate (landscape, and upright tablets) and the upright plate (phones) */
.stage.port { display: none; }
@container hero (max-aspect-ratio: 2/3) {
  /* a container query styles the container's children only: the upright plate's height and top are set on them */
  .hero-home > .stage, .hero-home > .copy, .hero-home > .pier { --sh: calc(100cqw * 2069 / 1170); --sy: max(calc(var(--hh) - var(--sh)), calc((var(--hh) - var(--sh)) / 2)); }
  .stage.land { display: none; }
  .stage.port { display: block; }
}
/* layer boxes, % of the plate (MOTION-LAYERS.md) */
.land .ship > picture { left: .625%; top: 33.0556%; width: 57.5%; height: 38.0556%; }
.land .box > picture { left: 49.6875%; top: 20%; width: 45.1563%; height: 72.2222%; }
.port .ship > picture.light { left: 2.735%; top: 30.1595%; width: 95.3846%; height: 22.4263%; }
.port .ship > picture.dark { left: 2.735%; top: 30.1595%; width: 96.0684%; height: 22.4263%; }
/* Hebrew: the plate is mirrored (the box stands left, the bow points right); the ship layer is its own mirrored file
   with the logo painted unmirrored, so it is never flipped by CSS */
:root[dir="rtl"] .stage .plate img, :root[dir="rtl"] .land .box img { transform: scaleX(-1); }
:root[dir="rtl"] .land .ship > picture { left: 41.875%; }
:root[dir="rtl"] .land .box > picture { left: 5.1562%; }
:root[dir="rtl"] .port .ship > picture.light { left: 1.8804%; }
:root[dir="rtl"] .port .ship > picture.dark { left: 1.1966%; }
/* THE SHIP SAILS: 6% of the plate width toward its bow over the pin (clean to 8%, MOTION-LAYERS.md); scrubbed by
   the scroll, so it stops when the visitor stops */
.stage .ship { transform: translate3d(calc(var(--p, 0) * -6%), 0, 0); }
:root[dir="rtl"] .stage .ship { transform: translate3d(calc(var(--p, 0) * 6%), 0, 0); }
/* the upright plate (phones): 9% of its width (no layer limit below 10%, MOTION-LAYERS.md), so the short pin shows a
   move a visitor feels (stage-1 fix: 6% was 23 px at 390) */
.stage.port .ship { transform: translate3d(calc(var(--p, 0) * -9%), 0, 0); }
:root[dir="rtl"] .stage.port .ship { transform: translate3d(calc(var(--p, 0) * 9%), 0, 0); }
.hero-scene.is-moving .ship { will-change: transform; }
/* Hebrew: the sky strip above the plate is drawn from the plate's own top rows, so it is mirrored with the plate
   (stage-1 fix: unmirrored, it met the mirrored plate in a hard seam behind the header at 1440, dark) */
:root[dir="rtl"] .hero-home .sky > i { transform: scaleX(-1); }

/* the entrance: only the picture and the chat that stands in it wait for the plate to decode (.ready, 1.2 s at most);
   the words rise at once (stage-1 fix: the headline waited for the picture, fully visible at 3 s on a slow phone) */
.hero .stage { animation: plate-in .45s var(--p-ease-out) both; }
@keyframes plate-in { from { opacity: 0; } to { opacity: 1; } }
.hero:not(.ready) .stage, .hero:not(.ready) .stage *, .hero:not(.ready) .stage *::before, .hero:not(.ready) .stage *::after { animation-play-state: paused !important; }

/* ---------- the headline in the sky (the chosen setting: NOTES.md, "Type and the headline studies") ---------- */
.hero-home .copy { position: absolute; z-index: 10; inset-inline-start: var(--edge); top: max(calc(var(--header-h) + 28px), calc(var(--sy) + var(--sh) * .07)); }
.hero-h1 { color: var(--c-hero-text); font-family: var(--f-display); }
.hero-h1 .line { display: block; width: fit-content; white-space: nowrap; }
.hero-h1 .line > span { display: inline-block; animation: rise .5s var(--p-ease-out) both; animation-delay: calc(.06s + var(--li, 0) * 50ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* setting 1, "the promise and its proof": the claim large and heavy, the how in a lighter weight of the same face.
   Stage-1 fix: the small line is weight 500 and has no comma at a line end (it is broken by meaning instead) */
.hero-h1 { --big: min(88px, 6.1cqw, 10.2cqh); font-size: var(--big); line-height: .94; letter-spacing: -.038em; font-weight: 600; }
.hero-h1 .line.small { font-size: .42em; line-height: 1.2; letter-spacing: -.012em; font-weight: 500; color: var(--c-hero-text); }
.hero-h1 .line.small:first-of-type, .hero-h1 .line.big + .line.small { margin-top: .5em; }
/* Hebrew about 4% over the Latin, looser leading (BRIEF §1; it was 7% under) */
:root[lang="he"] .hero-h1 { --big: min(92px, 6.35cqw, 10.2cqh); line-height: 1.04; letter-spacing: 0; font-weight: 600; }
:root[lang="he"] .hero-h1 .line.small { font-size: .43em; line-height: 1.32; letter-spacing: 0; font-weight: 500; }
/* on a short laptop screen (1366x768) the Hebrew headline gives way to the ship's stacks (BRIEF §1): the size of
   round 3 stage 3 there, the small lines a little tighter */
@media (max-height: 800px) and (min-aspect-ratio: 1/1) {
  :root[lang="he"] .hero-h1 { --big: min(92px, 6.35cqw, 9.5cqh); }
  :root[lang="he"] .hero-h1 .line.small { line-height: 1.2; }
  :root[lang="he"] .hero-h1 .line.big + .line.small { margin-top: .38em; }
}

/* the pier: sub-line, buttons and the note stand on the concrete ("the embedding of the text on the floor") */
.hero-home .pier { --pier-h: 186px; position: absolute; z-index: 10; inset-inline-start: var(--edge); top: min(calc(var(--sy) + var(--sh) * .74), calc(var(--hh) - 22px - var(--pier-h))); width: min(620px, max(44vw, 420px)); animation: fadeup .5s var(--p-ease-out) .2s both; }
.hero-home .pier .sub { font-size: var(--fs-l); line-height: 1.45; color: var(--c-hero-text); margin-bottom: 20px; max-width: 34em; }
.hero-home .pier .note { margin-top: 14px; font-size: var(--fs-s); font-weight: var(--fw-ui); color: var(--c-hero-text); }
.hero-home .pier .note b { font-weight: var(--fw-strong); }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* a feathered wash of the ground under the pier's words, where the concrete is stained (measured, see NOTES.md);
   never a box: it fades to nothing on every side */
.pier-wash { position: absolute; z-index: 9; pointer-events: none; inset-inline-start: calc(var(--edge) - 80px); top: calc(min(calc(var(--sy) + var(--sh) * .74), calc(var(--hh) - 22px - var(--pier-h, 206px))) - 40px); width: min(780px, max(52vw, 560px)); height: 300px;
  background: radial-gradient(closest-side, rgba(243, 246, 245, .56), rgba(243, 246, 245, .42) 66%, rgba(243, 246, 245, 0)); } /* stage 3: .42/.22 left the Hebrew sub at 4.1:1 per glyph */
:root[data-theme="dark"] .pier-wash { background: radial-gradient(closest-side, rgba(11, 16, 34, .34), rgba(11, 16, 34, 0)); }
@container hero (max-aspect-ratio: 1/1) {
  .pier-wash { inset: auto 0 0 0; top: auto; width: auto; height: 150px; background: linear-gradient(to top, rgba(243, 246, 245, .5), rgba(243, 246, 245, .22) 55%, rgba(243, 246, 245, 0)); } /* stage 3: the phone note measured 4.2:1 on the stained pier */
  :root[data-theme="dark"] .pier-wash { background: linear-gradient(to top, rgba(11, 16, 34, .78), rgba(11, 16, 34, .5) 55%, rgba(11, 16, 34, 0)); }
}
:root[data-theme="dark"] .hero-home .pier .btn-wa { background: var(--c-photo-btn-bg); border-color: var(--c-photo-btn-line); color: var(--c-photo-btn-text); }
.hero-home .pier .btn-wa { color: var(--c-hero-text); }
@media (max-height: 820px) { .hero-home .pier { --pier-h: 176px; } }
@media (max-height: 740px) { .hero-home .pier { --pier-h: 104px; } .hero-home .pier .sub { display: none; } }
/* repair 2: on a phone held sideways (844x390, 740x360) the headline's two small lines stand on the ship's hull and its
   lit deck ("in two minutes." 2.27:1 in light, "A real rate on WhatsApp" 3.53 at dusk): there each small line wears
   the page's own ground, as a highlight just behind its words (the same idea as ocean's note there). The lines are
   stacked blocks with no gap, so the two grounds meet edge to edge and never overlap */
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .hero-h1 .line.small > span { padding: 0 .3em; margin-inline-start: -.3em; border-radius: var(--hl-radius); background: var(--hl-ground); }
}
.sub-phone { display: none; }

/* ---------- the conversation in the doorway: it stands on the container floor, and plays as the page is scrolled ---------- */
.door { position: absolute; z-index: 3; left: 55%; top: 24.7%; width: 36.7%; height: 63%; padding-bottom: 2.2cqh; }
:root[dir="rtl"] .door { left: 8.3%; }
.door-view { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%); }
.door .thread { position: relative; width: 68%; font-size: clamp(12px, .98cqw, 15.5px); translate: 0 var(--door-hold, 0px); transition: translate .5s var(--p-ease-out); }
/* final polish m4: the contact shadow lies on the floor UNDER the bubbles (z-index -1 inside the doorway's own stacking
   context), never over them: at 390 light it was a grey smear across the reply's last line ("$2,310") */
.door .floor-shadow { position: absolute; z-index: -1; left: 22%; right: 22%; bottom: .6cqh; height: 2.2cqh; border-radius: 50%; background: radial-gradient(closest-side, var(--contact-shadow), transparent); pointer-events: none; }
.door .msg { font-size: 1em; box-shadow: var(--chat-shadow), 0 6px 14px -8px rgba(11, 20, 26, .3); }
:root[lang="he"] .door .msg { font-size: 1.04em; }
.door .msg .meta { font-size: .76em; }
.door .chip { font-size: .84em; margin-bottom: 2px; }
.door .q-row, .door .q-head { font-size: .94em; }
.door .msg .q-row { margin-top: .7em; }
.door .card-he { font-size: .95em; line-height: 1.36; }
.door .msg .card-he { margin-top: .7em; }
.door .typing { align-self: flex-start; transform: scale(.85); transform-origin: bottom left; }
:root[dir="rtl"] .door .typing { transform-origin: bottom right; }
/* the arrival on load: each bubble rises from the floor in turn; the agent types before its long reply */
.arrive > * { animation: bubble .42s var(--p-ease-out) both; animation-delay: var(--at, 0s); }
.arrive > .typing { animation: typing-life var(--tl, .7s) linear both; animation-delay: var(--at, 0s); position: absolute; bottom: var(--door-hold, 0px); }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typing-life { 0% { opacity: 0; transform: translateY(6px) scale(.85); } 14% { opacity: 1; transform: scale(.85); } 86% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
/* the steps the scroll plays: hidden until the scene reaches them, then they rise from the floor (home.js).
   Repair 2 (first look r1, new 2: a stepped scroll of the hero measured CLS 0.0062 at 1440, the thread growing from
   330 to 409 px as "Book option 2" came in): with script, the steps keep their room from the first paint (hidden, not
   removed), and the thread stands that much lower (--door-hold: the height of the steps still to come, set by the
   hero's own script before the first paint and by home.js; the view's overflow hides them under the floor). A step
   coming in only lowers --door-hold, a translate (the 500 ms slide the FLIP made before), so the thread's box never
   changes size or place: no layout shift. Without script the steps are simply not drawn. */
.door [data-show-step] { display: none; }
:root.js .door [data-show-step] { display: flex; visibility: hidden; }
.door [data-show-step].shown, :root.js .door [data-show-step].shown { display: flex; visibility: visible; }
.door [data-show-step].shown.enter { animation: bubble .42s var(--p-ease-out) both; }

/* the hero on a phone or a tablet held upright: the headline in the sky, buttons on the pier, the chat as on a phone */
@container hero (max-aspect-ratio: 1/1) {
  .hero-home .copy { inset-inline-end: var(--margin); top: calc(var(--header-h) + 18px); }
  .hero-h1, :root[lang="he"] .hero-h1 { --big: clamp(40px, 11.4cqw, 72px); }
  .hero-h1 .line.small { font-size: .44em; white-space: normal; }
  .sub-phone { display: block; margin-top: 18px; max-width: 32ch; font-size: var(--fs-m); line-height: 1.45; color: var(--c-hero-text); animation: fadeup .6s var(--p-ease-out) .3s both; }
  .hero-home .pier { width: auto; inset-inline-end: var(--margin); top: auto; bottom: 14px; }
  .hero-home .pier .sub, .hero-home .pier .note .langs { display: none; }
  .hero-home .pier .note { margin-top: 8px; font-size: 12.5px; text-align: center; }
  .hero-home .pier .ctas { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .hero-home .pier .btn { height: 46px; font-size: var(--fs-m); }
  .hero-home .pier .btn-primary { padding-inline: 16px 5px; gap: 8px; justify-content: space-between; }
  .hero-home .pier .btn-wa { padding: 0 12px; justify-content: center; gap: 7px; }
  .hero-home .pier .btn-wa .wa-glyph { width: 20px; height: 20px; }
  .door { padding-bottom: 1.4cqh; }
  .door-view { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); }
  /* stage-1 fix: readable on the phone it is sold for (13 px text, 11 px times; it was 10.5 and 8). The box shows the
     latest bubbles; older ones rise out of the doorway's top, as in a live chat */
  .door .thread { width: 100%; font-size: 13px; }
  .door .chat { gap: 5px; }
  .door .msg { padding: 5px 8px 7px; line-height: 1.32; max-width: 94%; }
  .door .msg .meta { font-size: 11px; }
  .door .q-row, .door .q-head { font-size: 1em; }
  .door .hide-phone { display: none !important; }
  .door .ms.only-phone { display: inline-block; }
  /* gap pass H2: the chip 12 px (it was 11.5) */
  .door .chip { font-size: 12px; padding: 3px 8px 4px; }
}
.door .ms.only-phone { display: none; }
/* gap pass H2, the upright (phone) doorway: its own short conversation (lib/home.js door('port')) fits the box at rest,
   so nothing is faded or cut: the top fade only comes in once "Book option 2" pushes the older bubbles up (steps 1, 2).
   The card text 12.5 px at least (13 px, 12.5 below 360 px wide); the replies hug the doorway's width. */
@container hero (max-aspect-ratio: 2/3) {
  .hero-scene:not([data-step="1"]):not([data-step="2"]) .port .door-view { -webkit-mask-image: none; mask-image: none; }
  .port .door { padding-bottom: .5cqh; }
  /* m4: the reply stands on the floor, so its shadow shows just below its foot */
  .port .door .floor-shadow { bottom: -.7cqh; height: 1.6cqh; }
  .port .door .thread { font-size: 13px; }
  .port .door .chat { gap: 4px; }
  .port .door .chip { margin-bottom: 0; }
  .port .door .msg { max-width: 100%; }
  .port .door .msg .card-he { margin-top: .4em; }
  .port .door .msg .q-row { margin-top: .4em; }
  /* H5: on a short phone (wider than 1:2.04, e.g. 320x568, 375x667, 360x640) the sub-line would run down over the ship
     (measured: its bottom 280 to 294 px against the ship's mast at 173 to 204 px): it is left out there; the same facts
     are the network band's first sentence. On taller phones (390x844, 360x740) it ends above the mast */
}
@container hero (max-aspect-ratio: 2/3) and (min-aspect-ratio: 49/100) {
  .hero-home .sub-phone { display: none; }
}
@container hero (max-aspect-ratio: 2/3) and (max-width: 359px) {
  .port .door .thread, :root[lang="he"] .port .door .msg { font-size: 12.5px; }
  .port .door .msg { padding: 4px 7px 6px; }
  /* the buttons stood 4 to 5 px over the reply's foot at 320x568 (measured): the pier sits lower on the smallest phones */
  .hero-home .pier { bottom: 6px; }
  .hero-home .pier .note { margin-top: 5px; }
}
/* reduced motion: the whole conversation would not fit the phone's doorway. Final polish m25 (Emil: the wall's "Booked
   … Meridian" came unexplained): the booking step "Book option 2" stays in, as the doorway's last bubble; only the
   agent's long confirmation is left out (the wall below opens with "Booked", its confirmation). As in the scrolled
   motion version, the doorway is then a live chat: the oldest line rises under the top fade where the phone is short
   (measured: everything shows at 414; the chip fades at 390; at 320 the question's first line), never a hard cut.
   Repair 1 (regression N1: so the chip left the view, 5 px above it at 390 and 31 at 320, and the question's first
   line went under the fade): at rest under reduced motion nothing rises, so the view has no fade, and the chip stands
   on the box's top rail (.door-chip, outside the view), clear of the question; the thread's own chip is not drawn.
   The typing dots are an animation only: at rest they would stand beside "Book option 2" */
/* Repair 2 (regression r1 N2): the rail chip only where the stack needs the room, below 410 px. From 430 to 600 px the
   chat sits at the foot of a taller view and the rail chip floated 44 to 185 px above it; there the thread's own chip
   is drawn again, right above the question (measured: it fits whole inside the view from 410 px up, EN and HE). */
.door-chip { display: none; }
@container hero (max-aspect-ratio: 2/3) {
  :root.rm .port .door [data-show-step="2"] { display: none !important; }
  :root.rm .port .door-view { -webkit-mask-image: none; mask-image: none; }
}
@container hero (max-aspect-ratio: 2/3) and (max-width: 409px) {
  :root.rm .port .door .thread > .chip { display: none; }
  :root.rm .port .door-chip { display: block; }
}
:root.rm .door .typing { display: none; }
@media (prefers-reduced-motion: reduce) {
  @container hero (max-aspect-ratio: 2/3) {
    .port .door [data-show-step="2"] { display: none !important; }
    .port .door-view { -webkit-mask-image: none; mask-image: none; }
  }
  @container hero (max-aspect-ratio: 2/3) and (max-width: 409px) {
    .port .door .thread > .chip { display: none; }
    .port .door-chip { display: block; }
  }
  .door .typing { display: none; }
}
/* the chip on the rail: centred over the doorway, its middle on the box's top rail (measured: the rail runs 11 to 15 px
   above the view's top from 320 to 430) */
.port .door-chip { position: absolute; z-index: 2; left: 50%; bottom: calc(100% + 2px); translate: -50% 0; margin: 0; white-space: nowrap; font-size: 12px; padding: 3px 8px 4px; }
/* below 360 px the question, the reply and "Book option 2" overran the view by 5 px: 2 px gaps and 1 px less padding
   in each bubble at rest under reduced motion (the question's top then sits 5 px inside the view) */
@container hero (max-aspect-ratio: 2/3) and (max-width: 359px) {
  :root.rm .port .door .chat { gap: 2px; }
  :root.rm .port .door .msg { padding-top: 3px; padding-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  @container hero (max-aspect-ratio: 2/3) and (max-width: 359px) {
    .port .door .chat { gap: 2px; }
    .port .door .msg { padding-top: 3px; padding-bottom: 5px; }
  }
}
@container hero (max-aspect-ratio: 1/1) and (min-aspect-ratio: 2001/3000) {
  .hero-home .pier { top: max(calc(var(--sy) - 96px), 360px); bottom: auto; }
}
@container hero (max-aspect-ratio: 2/3) {
  .door { left: 22.3%; top: 55.3%; width: 55.7%; height: 30.5%; }
  :root[dir="rtl"] .door { left: 22%; }
  /* on a phone the pier in dark is the doorway's warm light pool: the buttons carry their own fills there */
}

/* ---------- 2. how it works: the steps on the ground, the whole conversation on the box's own green wall; the
   conversation scrolls inside its frame as the section passes, in step with the times beside it ---------- */
.how { display: grid; grid-template-columns: 5fr 7fr; }
.how .how-text { padding: 120px 64px 104px; padding-inline-start: var(--edge); display: flex; flex-direction: column; }
.how .how-text h2 { max-width: 13ch; }
.how .how-text .lede { margin-top: 24px; }
.how .how-cta { margin-top: auto; padding-top: 48px; }
.how .how-cta p { font-size: var(--fs-m); color: var(--c-text-muted); margin-bottom: 16px; max-width: 40ch; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--c-line); }
.steps li :is(time, .t, h3, p) { transition: color .3s var(--p-ease-ui); }
.steps li:last-child { border-bottom: 1px solid var(--c-line); }
.steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: -1px; width: 100%; height: 2px; background: var(--c-accent-fill); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--p-ease-out); }
:root[dir="rtl"] .steps li::before { transform-origin: right; }
.steps li.is-current::before { transform: scaleX(1); }
.steps time, .steps .t { font-size: var(--fs-m); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; color: var(--c-accent-text); padding-top: 2px; }
.steps h3 { font-size: var(--fs-b); margin-bottom: 4px; font-family: var(--f-text); font-weight: var(--fw-strong); letter-spacing: 0; }
.steps p { color: var(--c-text-muted); font-size: var(--fs-m); line-height: 1.5; }
/* gap pass B1: a step still to come is dimmed with a passing colour, never with opacity (.62 measured 2.59 to 2.88:1 in
   light): its time and heading take the muted text colour at full strength (4.5:1 or better, the token check), the
   green bar stays on the current step only. check-render.js measures this state on every build (?t=how:0.5). */
.js .how[data-live] .steps li:not(.is-current):not(.was) :is(time, .t, h3) { color: var(--c-text-muted); }
/* final polish (CLS 0 on every page): the step titles keep one weight; the lighter weight of a step still to come made a
   title re-wrap at 320 when the current step changed, and shifted "Try it…" below by 0.03 while scrolling. The colour
   alone marks the state */
.how .wall { position: relative; overflow: hidden; }
.how .wall > .pair { position: absolute; inset: 0; }
.how .wall > .pair img { filter: saturate(.9); }
.wall-frame { position: relative; z-index: 1; height: min(860px, calc(100svh - var(--header-h) - 40px)); margin: 0 auto; max-width: 560px; padding: 0 32px; overflow: hidden; top: 50%; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%); }
.how .wall { min-height: 100%; }
.wall-thread { padding: 56px 0; transform: translate3d(0, calc(var(--p, 0) * var(--travel, 0px) * -1), 0); }
.how.is-moving .wall-thread { will-change: transform; }
.wall-thread .chat { gap: 8px; }
.wall-thread .msg { box-shadow: 0 1px .5px rgba(11, 20, 26, .16), 0 10px 22px -12px rgba(11, 20, 26, .45); }
.wall-thread .day { margin: 10px 0 4px; }
/* reduced motion and no script: the whole conversation, at rest, nothing scrolls */
:root:not(.js) .wall-frame, :root.rm .wall-frame { height: auto; top: auto; transform: none; -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) { .wall-frame { height: auto; top: auto; transform: none; -webkit-mask-image: none; mask-image: none; } .wall-thread { transform: none; } }
/* repair 2: the same under the system setting on one column. The responsive heights below (78svh up to 1100 px, 70svh
   on a phone) came later in the file with the same weight, so under the OS's reduced motion (not ?rm=1) the frame kept
   its height while the thread stood still: the conversation was cut at the frame's foot, the team's hand-over never
   shown (found at 740x360, where the checker read the hidden bubble under the steps) */
@media (prefers-reduced-motion: reduce) { .how .wall-frame { height: auto; } }

/* ---------- 3. the modes: the two ocean cards, then (final polish F5) air, rail, road and customs as a list beside
   one picture, no card chrome, each line with its WhatsApp first message (no layout animation) ---------- */
.modes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.mode { position: relative; display: flex; flex-direction: column; border-radius: var(--p-radius-3); overflow: hidden; background: var(--card-bg); border: 1px solid var(--card-line); scroll-margin-top: calc(var(--header-h) + 24px); }
.mode.m-ocean { grid-column: span 7; } .mode.m-lcl { grid-column: span 5; }
/* the list takes the ocean card's columns, the picture the LCL card's, on the same 12-column, 12 px grid, so both rows
   share their edges; the picture follows the line pointed at or focused (home.js), a crossfade */
.more-modes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 12px; margin-top: 64px; }
.mm-list { grid-column: 1 / span 7; list-style: none; margin: 0; margin-inline-end: 48px; padding: 0; border-top: 1px solid var(--c-line); }
.mm-item { display: grid; row-gap: 4px; padding: 22px 0 12px; border-bottom: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 24px); }
.mm-item h3 { font-size: var(--fs-xl); }
.mm-item p { color: var(--c-text-muted); font-size: var(--fs-m); max-width: 52ch; }
.mm-item .wa-ask { justify-self: start; margin-top: 4px; }
.mm-pic { grid-column: 8 / span 5; position: relative; min-height: 320px; border-radius: var(--p-radius-3); overflow: hidden; background: var(--c-bg-alt); }
.mm-pic .pair { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--p-ease-ui); }
.mm-pic .pair.is-on { opacity: 1; }
.mode .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.mode.m-ocean .pic, .mode.m-lcl .pic { aspect-ratio: auto; height: 340px; }
.mode .pic .pair { position: absolute; inset: 0; }
.mode .pic img { transition: transform .8s var(--p-ease-out); }
.mode .label { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mode h3 { font-size: var(--fs-xl); }
.mode p { color: var(--c-text-muted); font-size: var(--fs-m); max-width: 46ch; }
.mode .link-arrow { margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .mode:hover .pic img { transform: scale(1.03); } }
.modes-extra { margin-top: 20px; font-size: var(--fs-m); color: var(--c-text-muted); }

/* ---------- 4. the network as proof: the aerial, then the figures on the ink band ---------- */
.proof { background: var(--c-band); color: var(--c-on-band); border-top: 1px solid var(--c-band-line); }
.proof .pic { position: relative; height: 58svh; min-height: 380px; overflow: hidden; }
.proof .pic .pair { position: absolute; inset: 0; }
/* gap pass H7: the band's own plate (home-network, P2): at 2.76:1 it cannot hold both the crane tops and the whole
   truck, so the frame sits on the truck (50% 40% cut it at the windscreen) */
.proof .pic img { object-position: 50% 58%; }
.proof .proof-body { padding: 72px 0 96px; }
.proof h2 { color: var(--c-on-band); grid-column: 1 / span 6; }
.proof .proof-copy { grid-column: 8 / span 5; color: var(--c-on-band-muted); font-size: var(--fs-l); }
.proof .proof-copy .link-arrow { color: var(--c-on-band-accent); margin-top: 12px; }
/* final polish m22: two links now (the network, the members directory), one under the other */
.proof .proof-copy .link-arrow { display: flex; width: fit-content; }
.proof .proof-copy .link-arrow + .link-arrow { margin-top: 0; }
/* stage-1 fix: the four-figure band is gone from home (the figures live on the network page's hull; here they are in
   the band's sentence); the office list follows the copy under a hairline */
.cities { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(238, 243, 241, .18); color: var(--c-on-band-muted); font-size: var(--fs-m); line-height: 1.8; }
.cities b { color: var(--c-on-band); font-weight: var(--fw-ui); }

/* ---------- 4b. the PRO members strip (the owner, 23 Nov 22:50, O9b): a quiet row of sample PRO member logos, each
   linking to its profile; greyscale and dimmed at rest, its own colours on hover or focus; nothing moves ---------- */
.pro-strip { padding: 44px 0 48px; border-bottom: 1px solid var(--c-line); }
.pro-strip .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); row-gap: 16px; align-items: center; }
.pro-strip h2 { font: var(--fw-ui) var(--fs-m)/1.35 var(--f-text); letter-spacing: 0; color: var(--c-text); }
.pro-strip h2 .pro-mark { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-inline-end: 3px; border-radius: 6px; background: var(--c-text); color: var(--c-bg); font: 700 11px/1 var(--f-text); letter-spacing: .08em; vertical-align: 1px; }
.pro-strip .sample-note { grid-column: 1; margin-top: -8px; }
.pro-logos { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px; }
.pro-logos a { display: block; border-radius: 10px; }
/* gap pass B8: the tiles are the shared h.members.logoTile(m, { quiet: true }) (site.css .logo-tile--quiet) */
@media (max-width: 767px) {
  .pro-strip { padding: 32px 0 36px; }
  .pro-strip .wrap { grid-template-columns: minmax(0, 1fr); }
  .pro-strip .sample-note { grid-column: 1; margin-top: 0; }
  .pro-logos { grid-column: 1; grid-row: auto; justify-content: flex-start; gap: 12px 16px; }
}

/* ---------- 5. the tools: the sample screens themselves on the band ---------- */
.tools { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--gutter); align-items: start; }
.tool { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool.w7 { grid-column: span 7; } .tool.w5 { grid-column: span 5; }
.tool h3 { font-size: var(--fs-2xl); }
.tool .t-sub { color: var(--c-text-muted); font-size: var(--fs-m); margin-bottom: 8px; }
.screen { border-radius: var(--p-radius-3); background: var(--card-bg); border: 1px solid var(--card-line); padding: 20px; }
.screen .sail-list { margin-top: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field .lab { font-size: var(--fs-xs); font-weight: var(--fw-ui); color: var(--c-text-muted); }
.field .val { height: var(--field-h); border-radius: 10px; border: 1px solid var(--field-line); background: var(--field-bg); color: var(--c-text); font-size: var(--fs-m); padding: 0 12px; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.field .val .code { color: var(--c-text-muted); font-size: var(--fs-xs); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.timeline li { position: relative; padding-top: 22px; font-size: var(--fs-s); color: var(--c-text-muted); }
.timeline li::before { content: ""; position: absolute; top: 5px; inset-inline: 0; height: 2px; background: var(--c-line-strong); }
.timeline li::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-line-strong); }
.timeline li.done::before, .timeline li.done::after { background: var(--c-accent-fill); border-color: var(--c-accent-fill); }
.timeline li.now::after { background: var(--c-surface); border-color: var(--c-accent-fill); box-shadow: 0 0 0 4px rgba(87, 184, 156, .25); }
.timeline li b { display: block; color: var(--c-text); font-weight: var(--fw-ui); font-size: var(--fs-s); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: var(--fs-s); margin: 16px 0 0; }
.kv dt { color: var(--c-text-muted); } .kv dd { margin: 0; font-weight: var(--fw-ui); }
.sail-list { list-style: none; margin: 0; padding: 0; }
.sail-list li { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-s); align-items: center; }
.sail-list li:last-child { border-bottom: 0; }
.sail-list .days { font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--p-radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-ui); background: var(--c-accent-wash); color: var(--c-accent-text); white-space: nowrap; }
.pill.neutral { background: var(--c-line); color: var(--c-text-muted); }
.spark { width: 100%; height: 150px; }
.spark .line { fill: none; stroke: var(--c-accent-text); stroke-width: 2.25; }
.spark .area { fill: var(--c-accent-fill); opacity: .14; }
.spark .grid line { stroke: var(--c-line); }
.index-figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.index-figure .big { font: 500 var(--fs-2xl)/1 var(--p-font-outfit); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tool .sample-note { margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .how { display: flex; flex-direction: column; }
  .how .how-text { display: contents; }
  .how .how-text > * { padding-inline: var(--margin); }
  .how .how-text h2 { order: 1; padding-top: 96px; max-width: none; }
  .how .how-text .lede { order: 2; margin-bottom: 40px; max-width: 640px; }
  .how .wall { order: 3; min-height: 0; }
  .wall-frame { top: auto; transform: none; height: min(78svh, 720px); }
  .how .steps { order: 4; margin: 40px 0 0; }
  .how .how-cta { order: 5; padding-bottom: 88px; }
  .mode.m-ocean, .mode.m-lcl { grid-column: span 6; }
  .mm-list { grid-column: 1 / span 6; margin-inline-end: 32px; }
  .mm-pic { grid-column: 7 / span 6; }
  .tools .tool.w7, .tools .tool.w5 { grid-column: span 12; }
}
@media (max-width: 767px) {
  .how .how-text h2 { padding-top: 72px; }
  .wall-frame { height: 70svh; padding: 0 12px; }
  .steps li { grid-template-columns: 58px 1fr; padding: 14px 0; }
  .how .how-cta { padding-bottom: 64px; }
  /* the phone home is shorter: modes and tools become rows that scroll sideways (snap), not stacks */
  .modes, .tools { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--margin) * -1); padding: 0 var(--margin) 12px; scroll-padding-inline: var(--margin); scrollbar-width: none; }
  .modes::-webkit-scrollbar, .tools::-webkit-scrollbar { display: none; }
  .mode, .tool { flex: 0 0 84%; scroll-snap-align: start; }
  .mode.m-ocean .pic, .mode.m-lcl .pic { height: auto; aspect-ratio: 16 / 9; }
  /* F5 on a phone: the list alone under the two ocean cards (the picture would add a screen's fifth for decoration) */
  .more-modes { display: block; margin-top: 28px; }
  .mm-list { margin-inline-end: 0; }
  .mm-pic { display: none; }
  .mm-item { padding: 18px 0 10px; }
  .tools { gap: 16px; }
  .tool .screen { padding: 14px; }
  .scroll-hint { display: block; }
  .proof .pic { height: 40svh; min-height: 240px; }
  .proof .proof-body { padding: 44px 0 56px; }
  .proof h2, .proof .proof-copy { grid-column: 1 / -1; }
  .proof .proof-copy { margin-top: 16px; }
  .cities { margin-top: 32px; padding-top: 20px; font-size: var(--fs-s); }
  /* gap pass H5 (Taste, phone length): on a phone the office list is behind "See all 27 offices" (a disclosure:
     aria-expanded, home.js); the band's sentence already says "27 offices of our own, from London to Tokyo". Without
     script the whole list stands */
  :root.js .cities:not(.is-open) { display: none; }
  :root.js .cities-more:not([hidden]) { display: inline-flex; margin-top: 20px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field .val { font-size: var(--fs-s); padding: 0 10px; gap: 6px; }
  .field-row .field:nth-child(3) { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
}
/* gap pass, final stage: the second lanes (H1) have longer names ("Casablanca MACAS", "איסטנבול אמברלי TRAMR") that
   ran out of their half-width field on a phone; there the port code is left out (the city is what the visitor reads)
   and a city that still does not fit ends in an ellipsis rather than being cut */
@media (max-width: 480px) {
  .field .val .code { display: none; }
  .field .val { display: block; line-height: calc(var(--field-h) - 2px); text-overflow: ellipsis; }
}
/* final polish m5: "8 sailing days" broke over two lines in the instant-quote rows on a phone: "8 days" below 481 px */
.sail-list .d-short { display: none; }
@media (max-width: 480px) { .sail-list .d-long { display: none; } .sail-list .d-short { display: inline; } }
/* repair 1: on a phone the instant-quote rows give the carrier the room "8 days" freed (its column and the price's
   take their own width), so "Tidewell Lines" and "Meridian Line" stay on one line at 320 and the rows are even */
@media (max-width: 480px) { .sail-list.rate-list li { grid-template-columns: minmax(0, 1fr) auto auto; } }
/* below 375 px even the city alone ("איסטנבול אמברלי") does not fit half the row: one field per row, code back */
@media (max-width: 374px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field .val .code { display: inline; }
}
.scroll-hint { display: none; margin-top: 8px; font-size: var(--fs-xs); color: var(--c-text-muted); }
.cities-more { display: none; background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: var(--fs-s); cursor: pointer; color: var(--c-on-band-accent); }
.cities:focus { outline: none; }
