/* All Forward, round 3: the shared stylesheet (stage 1, the system). Every page links tokens.css, this file and
   its own assets/pages/<page>.css. Page builders do not edit this file; they add page CSS.
   Reads the semantic and component token layers only (tokens.css). Contents, in order:
   base and type · utilities · themed pictures · buttons · header, Services menu, phone menu · the plate stage
   (the crop rule) · the WhatsApp conversation · section grammar · the doorway close · footer · the WhatsApp
   first-message sheet · reduced motion and measuring switches. */

/* ---------- base and type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--c-line-strong) var(--c-bg); }
html, body { margin: 0; }
/* repair 1 (F2): from 768 px up, nothing is painted until the embedded fonts are decoded (the head's FONT_HOLD script,
   500 ms at most), so no box is laid out in the fallback face first and moved (CLS 0); the ground colour shows */
@media (min-width: 768px) { :root.fl body { visibility: hidden; } }
body { background: var(--c-bg); color: var(--c-text); font-family: var(--f-text); font-size: var(--fs-b); font-weight: var(--fw-text); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; caret-color: var(--c-accent-text); font-kerning: normal; }
::selection { background: var(--c-selection); color: var(--c-text); }
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: var(--fw-display); letter-spacing: var(--tr-display); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); text-wrap: balance; }
h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); letter-spacing: var(--tr-h3); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }
.site-footer :focus-visible, .on-band :focus-visible { outline-color: var(--c-focus-on-band); }
[hidden] { display: none !important; }

/* ---------- utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--c-text); color: var(--c-bg); padding: 10px 16px; border-radius: var(--p-radius-pill); font-weight: var(--fw-ui); text-decoration: none; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.num, .tab { font-variant-numeric: tabular-nums; }
.code { font-family: var(--f-text); font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: .92em; font-weight: var(--fw-ui); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.muted { color: var(--c-text-muted); }
.lede { font-size: var(--fs-l); line-height: 1.5; color: var(--c-text-muted); max-width: 560px; }
/* the site's one highlight. Where a picture is too bright behind a line of copy, the copy wears the page's own ground:
   strips that hug each line, never a block. Used by the home headline's small lines on a sideways phone (one span per
   line), the network count line from 901 to 1100 px and the schedules hero lede (an inline .hl span with
   box-decoration-break: clone; its line-height is set so that the strips meet without overlapping). One ground and
   one radius site-wide. The radius is small (4 px) because every strip rounds all four corners: at 8 px a notch of
   picture showed between stacked strips and they read as chips, not one highlighter */
:root { --hl-ground: color-mix(in srgb, var(--c-bg) 88%, transparent); --hl-radius: 4px; }
.sample-note { font-size: var(--fs-xs); color: var(--c-text-muted); }
.en-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 5px; border-radius: 4px; border: 1px solid color-mix(in srgb, currentColor 50%, transparent); font: var(--fw-ui) 10.5px/1.3 var(--f-text); letter-spacing: .04em; vertical-align: .15em; } /* stage 3: full-strength text (opacity .75 measured 3.1:1 on the footer); the border carries the quietness */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: var(--fw-ui); color: var(--c-accent-text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat; transition: background-size .3s var(--p-ease-ui); }
:root[dir="rtl"] .link-arrow { background-position: 100% calc(100% - 10px); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--p-ease-ui); }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; }

/* ---------- themed pictures: the dark twin shows in dark (pic() in lib/parts.js) ---------- */
.pair { position: relative; }
.pair > picture { position: absolute; inset: 0; }
.pair > picture.light { position: relative; height: 100%; }
.pair > picture.dark { opacity: 0; }
:root[data-theme="dark"] .pair > picture.dark { opacity: 1; }
:root[data-theme="dark"] .pair > picture.light { opacity: 0; }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair .nos { position: absolute; inset: 0; }
/* the shared load moves (stage 3): a headline line rises 18 px, a following line fades up 12 px; pages time them
   700 ms / 600 ms with --p-ease-out, lines 70 ms apart (home, ocean and the network keep their own names for the same) */
@keyframes af-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes af-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } } /* the no-script stand-in (h.pic): both twins wait for afNow() */
/* the theme switch: one composited crossfade of words and pictures together */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; animation-timing-function: var(--p-ease-inout); } /* stage-1 fix: was .4s; any input during it skips it (site.js) */

/* ---------- the button pair ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: var(--btn-h); padding: 0 22px; border-radius: var(--btn-radius); font: var(--fw-ui) var(--fs-m)/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer; border: 0; transition: transform var(--p-dur-1) var(--p-ease-ui), background-color .2s var(--p-ease-ui), border-color .2s var(--p-ease-ui); }
:root[lang="he"] .btn { font-size: var(--fs-b); }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); padding-inline: 22px 8px; }
.btn-primary .arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--btn-primary-dot); color: var(--btn-primary-dot-text); display: grid; place-items: center; transition: transform .25s var(--p-ease-ui); }
.btn-primary .arrow svg { width: 16px; height: 16px; }
:root[dir="rtl"] .arrow svg, :root[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.btn-wa, .btn-secondary { padding-inline: 16px 22px; border: 1.5px solid var(--btn-secondary-line); color: var(--btn-secondary-text); background: transparent; }
.btn .wa-glyph { width: 22px; height: 22px; flex: none; }
.btn-quiet { border: 1.5px solid var(--c-line-strong); color: var(--c-text); background: transparent; }
.btn-sm { height: var(--btn-h-sm); font-size: var(--fs-s); padding: 0 14px; gap: 8px; }
:root[lang="he"] .btn-sm { font-size: var(--fs-m); }
.btn-sm.btn-primary { padding-inline: 16px 5px; }
.btn-sm.btn-primary .arrow { width: 30px; height: 30px; }
.btn-sm .wa-glyph { width: 20px; height: 20px; }
.btn-sm.btn-secondary { padding-inline: 10px 14px; border-width: 1px; }
/* a WhatsApp pill standing on a photograph: solid ink, in both themes */
.on-photo .btn-wa, .btn-solid-wa { background: var(--c-photo-btn-bg); border-color: var(--c-photo-btn-line); color: var(--c-photo-btn-text); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ctas .lbl-short { display: none; }   /* ctas(lang, { waLabel, waShort }): the short label on a phone */
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line-strong); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.985); }
  .btn-primary:hover { background: var(--btn-primary-bg-hover); }
  .btn-primary:hover .arrow { transform: translateX(2px); }
  :root[dir="rtl"] .btn-primary:hover .arrow { transform: translateX(-2px); }
  .btn-wa:hover, .btn-secondary:hover, .btn-quiet:hover { background: var(--btn-secondary-bg-hover); }
  .on-photo .btn-wa:hover, .btn-solid-wa:hover { background: var(--c-photo-btn-bg-hover); }
  .link-arrow:hover { background-size: 100% 1.5px; }
  .link-arrow:hover svg { transform: translateX(3px); }
  :root[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }
  .icon-btn:hover { background: var(--c-line); }
}

/* ---------- header: one bar, fixed, both actions from the first screen ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); background: var(--header-bg); border-bottom: 1px solid var(--header-line); color: var(--header-text); transition: background-color .3s var(--p-ease-ui), border-color .3s var(--p-ease-ui); }
/* at dusk the bar is clear over a full-bleed picture until the page moves (light keeps the solid strip: the logo's
   green sinks into the noon sky) */
:root[data-theme="dark"] .site-header.over.at-top { background: transparent; border-bottom-color: transparent; }
.site-header:not(.over) ~ main { padding-top: var(--header-h); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand svg { width: 164px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; text-decoration: none; font: var(--fw-ui) var(--fs-m)/1 var(--f-text); color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-link svg { width: 12px; height: 12px; transition: transform .2s var(--p-ease-ui); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-link::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--p-ease-ui); }
:root[dir="rtl"] .nav-link::after { transform-origin: right; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover::after { transform: scaleX(1); } .lang:hover { background: var(--c-line); } }
.nav-svc { position: relative; }
.svc-menu { position: absolute; top: calc(100% + 14px); inset-inline-start: -20px; z-index: 5; width: min(640px, 80vw); padding: 10px; border-radius: var(--p-radius-3); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-pop); color: var(--c-text); transform-origin: top left; animation: svc-in .18s var(--p-ease-snap); }
:root[dir="rtl"] .svc-menu { transform-origin: top right; }
@keyframes svc-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.svc-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.svc-menu a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--p-radius-2); text-decoration: none; }
.svc-menu b { font-weight: var(--fw-ui); font-size: var(--fs-m); }
.svc-menu a span { font-size: var(--fs-s); color: var(--c-text-muted); line-height: 1.35; }
.svc-menu a:hover, .svc-menu a:focus-visible { background: var(--c-bg-alt); }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { font: var(--fw-ui) var(--fs-s)/1 var(--f-text); text-decoration: none; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--p-radius-pill); }
:root[lang="he"] .lang { font-family: var(--p-font-rubik); }
.theme-switch { display: inline-flex; padding: 3px; border-radius: var(--p-radius-pill); background: var(--c-surface); border: 1px solid var(--c-line-strong); }
.theme-switch button { font: var(--fw-ui) var(--fs-s)/1 var(--f-text); border: 0; background: transparent; color: var(--c-text); min-height: 32px; padding: 0 11px; border-radius: var(--p-radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s var(--p-ease-ui); }
.theme-switch button[aria-pressed="true"] { background: var(--c-text); color: var(--c-bg); }
.theme-switch svg { width: 14px; height: 14px; }
.theme-toggle { display: none; }
.theme-toggle svg:last-child, :root[data-theme="dark"] .theme-toggle svg:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle svg:last-child { display: block; }
.site-header .btn-secondary { color: inherit; }
.icon-btn.menu-btn { display: none; }
@media (max-width: 1320px) { .site-header .theme-switch .txt { display: none; } .site-header .theme-switch button { padding: 0 9px; } .site-header .wrap { gap: 24px; } .nav { gap: 20px; } }
@media (max-width: 1140px) { .nav { display: none; } .icon-btn.menu-btn { display: grid; } }
/* gap pass B5: the logo link is 44 px tall (the drawn logo keeps its size); on a phone the header is 64 px and every
   control in it 44 x 44; at 320 the theme icon stays in the header ("Get started" shortens to "Start" there) */
.brand { min-height: 44px; }
.head-start .lbl-short { display: none; }
@media (max-width: 767px) {
  .brand svg { width: 108px; }
  .site-header .wrap { gap: 6px; }
  .header-tools { gap: 4px; }
  .site-header .lang, .site-header .theme-switch { display: none; }
  .theme-toggle { display: grid; width: 44px; height: 44px; }
  .site-header .icon-btn.menu-btn { width: 44px; height: 44px; }
  .site-header .btn-sm { height: 44px; }
  .head-wa { width: 44px; padding: 0; justify-content: center; }
  .head-wa .lbl { display: none; }
  .site-header .head-start { padding-inline: 11px; font-size: 14px; }
  :root[lang="he"] .site-header .head-start { font-size: 14px; }
  .head-start .arrow { display: none; }
  .ctas .lbl-long { display: none; }
  .ctas .lbl-short { display: inline; }
}
/* gap pass, final stage (the network builder's shared request): below 360 px B6's "Get a rate" made the first-screen
   pair wider than the screen (ocean by 2 px, the network by about 30, which stacked its pair on its own). One rule for
   every hero instead: tighter inner padding, so the pair stays side by side on every page down to 320 */
@media (max-width: 359px) {
  .hero .ctas .btn-primary { padding-inline-start: 14px; gap: 8px; }
  .hero .ctas .btn-wa { padding-inline: 10px 12px; gap: 6px; }
}
/* below 390 "Get started" shortens (EN "Start", HE "הרשמה") so the four 44 px controls and the logo fit.
   Final polish m10 (WCAG 2.5.3, label in name): the word on the button is also its name there: the long label leaves
   the page (display: none) instead of staying for screen readers only, so the Hebrew name is "הרשמה", not "מתחילים" */
@media (max-width: 389px) {
  .head-start .lbl-short { display: inline; }
  .head-start .lbl-long:has(+ .lbl-short) { display: none; }
}
@media (max-width: 374px) {
  .brand svg { width: 86px; }
  .site-header .wrap { gap: 4px; }
  .header-tools { gap: 3px; }
  .site-header .head-start { padding-inline: 9px; }
  :root[lang="he"] .site-header .head-start { padding-inline: 6px; }
}

/* phone and tablet menu: a modal panel; focus stays inside (site.js) */
.menu-panel { position: fixed; inset: 0; z-index: 90; background: var(--c-bg); color: var(--c-text); padding: 10px var(--margin) 28px; display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s var(--p-ease-ui), visibility 0s .2s; }
.menu-panel.open { visibility: visible; opacity: 1; transition: opacity .2s var(--p-ease-ui); }
.menu-panel .top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 18px; }
.menu-panel .brand svg { width: 112px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-h { font-size: var(--fs-xs); font-weight: var(--fw-ui); color: var(--c-text-muted); margin-bottom: 4px; }
.menu-svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; margin-bottom: 18px !important; }
.menu-svc a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-m); text-decoration: none; border-bottom: 1px solid var(--c-line); }
.menu-main a { display: flex; align-items: center; min-height: 52px; font: var(--fw-display) var(--fs-xl)/1.2 var(--f-display); letter-spacing: var(--tr-h3); text-decoration: none; border-bottom: 1px solid var(--c-line); }
.menu-panel .menu-theme { margin-top: 22px; }
.menu-panel .theme-switch button { min-height: 44px; padding: 0 16px; }
.menu-panel .ctas { margin-top: auto; padding-top: 24px; flex-direction: column; align-items: stretch; }
.menu-panel .ctas .btn { justify-content: space-between; }
.menu-panel .ctas .btn-wa { justify-content: center; }

/* ---------- the plate stage: THE CROP RULE (WORLD.md), in CSS ----------
   The plate is fitted to the hero's width: centred when the hero is wider than the plate, anchored to the bottom
   when it is narrower; the sky above it is the plate's own top rows stretched upward (motion.js .sky, A's rule).
   Everything placed on the picture uses the same numbers (--sh plate height, --sy plate top), so nothing moves
   after the first paint. A page sets --ar (plate height / width, 9/16 by default) on .hero. */
.hero { position: relative; height: 100svh; min-height: 420px; overflow: hidden; isolation: isolate; background: var(--c-bg); container: hero / size;
  --hh: max(100svh, 420px); --ar: .5625; --sh: calc(100cqw * var(--ar)); --sy: max(calc(var(--hh) - var(--sh)), calc((var(--hh) - var(--sh)) / 2)); }
.sky { position: absolute; z-index: 0; inset: 0 auto auto 0; pointer-events: none; } /* site.js sets left and width; right stays auto so RTL pages overhang both edges too */
.sky > i { position: absolute; inset: 0; background-repeat: no-repeat; filter: blur(10px); }
.sky > i.dark { opacity: 0; }
:root[data-theme="dark"] .sky > i.dark { opacity: 1; }
:root[data-theme="dark"] .sky > i.light { opacity: 0; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--hero-sky-deepen), transparent var(--deepen-end, 85%)); }
.stage { position: absolute; z-index: 1; left: 0; width: 100cqw; height: var(--sh); top: var(--sy); container: stage / size; }
/* every layer of a plate fills the stage; a layer box (left/top/width/height in % of the plate) sits inside it */
.stage .plate, .stage .mover, .stage .front { position: absolute; inset: 0; }
.stage .plate > picture { position: absolute; inset: 0; }
.stage .plate img, .stage .plate picture { width: 100%; height: 100%; }
.stage .plate img { object-fit: fill; }
.stage .mover > *, .stage .front > * { position: absolute; }
.stage .mover > picture img, .stage .front > picture img { width: 100%; height: 100%; }
.stage .dark { opacity: 0; }
:root[data-theme="dark"] .stage .dark { opacity: 1; }
:root[data-theme="dark"] .stage .light { opacity: 0; }
.stage .mover { pointer-events: none; transform: translate3d(0, 0, 0); }
.stage .mover.add { mix-blend-mode: plus-lighter; }

/* ---------- the WhatsApp conversation, drawn in HTML ---------- */
.chat { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-text); }
.chip { align-self: center; padding: 5px 12px 6px; border-radius: 8px; background: var(--chat-chip); color: var(--chat-chip-text); box-shadow: var(--chat-shadow); font-size: 12.5px; line-height: 1.2; font-weight: var(--fw-ui); }
.msg { position: relative; max-width: 88%; padding: 6px 9px 8px; border-radius: 8px; font-size: 14.5px; line-height: 1.38; color: var(--chat-text); box-shadow: var(--chat-shadow); overflow-wrap: anywhere; --meta-w: 2.9em; }
:root[lang="he"] .msg { font-size: 15px; }
.msg.out { align-self: flex-end; background: var(--chat-out); --meta-w: 4.4em; }
.msg.in { align-self: flex-start; background: var(--chat-in); }
.msg.wide { max-width: 100%; }
.msg p + p { margin-top: 6px; }
.msg .ms { display: inline-block; width: var(--meta-w); height: 1px; }
.msg .meta { position: absolute; inset-block-end: 4px; inset-inline-end: 8px; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--chat-time); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.msg.out .meta { color: var(--chat-out-time); }
.msg .meta svg { width: 16px; height: 11px; color: var(--chat-tick); }
.msg b { font-weight: var(--fw-strong); }
.msg i { font-style: italic; }
/* repair 2 (first look r1, new 1): in a Hebrew bubble every Latin name, code and price sits in a <bdi>; it is one
   unbreakable piece, so a carrier, a vessel, a booking number or a lane is never torn across two lines ("Meridian" /
   "Line" at 390, "CS" / "025171" and "CNNGB →" / "ILASH" at 320). The longest, the shipment card's
   "CS 025171 · CNNGB → ILASH", takes a line of its own at 320 and still fits the bubble with room to spare */
.msg bdi { white-space: nowrap; }
.msg.tail.in { border-start-start-radius: 0; }
.msg.tail.out { border-start-end-radius: 0; }
.msg.tail::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; background: inherit; }
.msg.tail.in::before { inset-inline-start: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.msg.tail.out::before { inset-inline-end: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
:root[dir="rtl"] .msg.tail.in::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
:root[dir="rtl"] .msg.tail.out::before { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.q-head { margin: 0; }
/* options are separated by a blank line, as the bot sends them */
.msg .q-row, .msg .q-foot, .msg .card-he { margin: 0; margin-top: 1.1em; }
.card-he span { display: block; }
.track-card span { display: block; }
.track-card .lane { font-weight: var(--fw-strong); }
.wa-contact { align-self: stretch; display: flex; flex-direction: column; padding: 10px 14px; margin-bottom: 6px; border-radius: 10px; background: var(--chat-in); color: var(--chat-text); box-shadow: var(--chat-shadow); line-height: 1.25; }
.wa-contact b { font-size: 15px; }
.wa-contact small { font-size: 12.5px; color: var(--chat-time); }
/* the agent types first: a small typing bubble (the dots pulse) */
.typing { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 34px; border-radius: 8px; background: var(--chat-in); box-shadow: var(--chat-shadow); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--chat-time); opacity: .7; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; } }

/* ---------- section grammar ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; margin-bottom: var(--p-space-10); }
.section-head h2 { grid-column: 1 / span 7; }
.section-head .lede { grid-column: 8 / span 5; }
.section-head.stack { row-gap: 18px; }
.section-head.stack h2 { grid-column: 1 / span 8; }
.section-head.stack .lede { grid-column: 1 / span 6; }
.alt { background: var(--c-bg-alt); }
.on-band { background: var(--c-band); color: var(--c-on-band); }

/* ---------- the doorway close: every page ends looking out of the open box (h.doorClose) ---------- */
.close { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: var(--c-hero-text); }
.close > .pair { position: absolute; inset: 0; }
.close > .pair img { object-position: 50% 50%; }
.close .door-copy { position: absolute; inset: 0; display: grid; grid-template-rows: 30% auto auto 1fr auto 9.5%; justify-items: center; text-align: center; padding: 0 var(--margin); }
.close h2 { grid-row: 2; font-size: clamp(40px, 4.4vw, 66px); max-width: 16ch; }
.close .sub { grid-row: 3; margin-top: 16px; font-size: var(--fs-l); max-width: 40ch; color: var(--c-hero-text); }
/* repair 2: the sub-line stays inside the doorway's opening, off the green door posts (the Hebrew line ran over them at
   844x390, 2.74:1 in light). The opening is 755 of the plate's 1920 px (x 575 to 1330), and the plate covers the
   section (its width, or its height of at least 640 px at 1086), so the opening is max(39.3vw, 69.5% of the height)
   wide; the line keeps 12 px from each post. (It kept 24 px in repair 2, which took results' sub-line, the longest, to
   three lines on short screens from 768 px, and its third line stood on the ship: 3.01:1 at dusk at 1024x600) */
@media (min-width: 768px) { .close .sub { max-width: min(40ch, calc(max(39.3vw, 69.5svh, 445px) - 24px)); text-wrap: balance; } }
.close .ctas { grid-row: 5; justify-content: center; }
/* the copy's place in the doorway (from 768 px; .close is a size container there, so cqw / cqh are the section's).
   - Lift. The copy sits at 30% of the section, which is plate y 0.30 while the plate is height-bound. In a wide
     window the plate is width-bound (56.5625cqw tall) and grows past the section; its ship, deck lights and lit hills
     then grow up into the sub-line's second line (Hebrew home at 1366x657, a 1366x768 laptop's browser: 3.00:1 at dusk;
     2560x600: 2.12). So the copy rises with 0.3 of the plate's overscan, whatever the height. Below 760 px of section
     height it also starts up to 120 px of overscan earlier, tapering to none at 760, so the near-threshold short
     windows (1100 to 1180 px x 600 to 640, where the h2 is larger) clear the ship too. The lift stops at 90 px (no
     window needs more; above that the copy only crowded the header on 32:9 screens) and never above the header plus
     32 px. Near-16:9 windows hardly move: 1920x1080 1.8 px, 2560x1440 2.4.
   - Centre. The doorway's opening (plate x 575 to 1330) is centred 7.5 plate px left of the plate's centre, so the
     copy moves left by 7.5 / 1920 of the plate's width and keeps equal room to each post */
@media (min-width: 768px) {
  .close { container-type: size; }
  .close .door-copy {
    grid-template-rows: max(calc(var(--header-h) + 32px), calc(30cqh - min(90px, 0.3 * max(0px, 56.5625cqw - 100cqh + max(0px, min(120px, 2280px - 300cqh)))))) auto auto 1fr auto 9.5%;
    translate: calc(-0.00390625 * max(100cqw, 176.796cqh)) 0;
  }
}

/* ---------- footer ---------- */
.site-footer { background: var(--c-band); color: var(--c-on-band); padding: 88px 0 40px; border-top: 1px solid var(--c-band-line); }
.site-footer .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.site-footer .f-brand { grid-column: 1 / span 4; }
.site-footer .f-brand img { width: 220px; height: auto; }
.site-footer .f-brand p { margin-top: 20px; color: var(--c-on-band-muted); font-size: var(--fs-m); max-width: 36ch; }
.site-footer .f-col { grid-column: span 2; }
.site-footer .f-col:first-of-type { grid-column: 5 / span 2; }   /* gap pass B4: four columns (Services, Tools, Company, Resources) */
.site-footer h3 { font: var(--fw-strong) var(--fs-s)/1.3 var(--f-text); letter-spacing: 0; color: var(--c-on-band); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-on-band-muted); text-decoration: none; font-size: var(--fs-m); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--c-on-band); text-decoration: underline; text-underline-offset: 4px; } }
/* the bottom row: the prototype line, the legal links, the two languages */
.site-footer .bottom { margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(238, 243, 241, .14); color: var(--c-on-band-muted); font-size: var(--fs-s); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.site-footer .f-copy { flex: 1 1 22em; }
.site-footer .f-legal ul { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
.site-footer .f-legal a, .site-footer .f-lang a, .site-footer .f-lang span { font-size: var(--fs-s); min-height: 32px; display: inline-flex; align-items: center; color: var(--c-on-band-muted); text-decoration: none; }
.site-footer .f-lang { display: flex; gap: 16px; }
.site-footer .f-lang span[aria-current] { color: var(--c-on-band); }
/* final polish m24: the one note over a footer whose links all lead to another language (h.footer) */
.site-footer .f-note { grid-column: 5 / -1; grid-row: 1; align-self: end; margin-bottom: -18px; color: var(--c-on-band-muted); font-size: var(--fs-s); }
.site-footer .f-note .en-tag { margin-inline-start: 4px; }
.site-footer .top:has(.f-note) .f-brand { grid-row: 1 / span 2; }

/* ---------- the first WhatsApp message, shown before WhatsApp opens (links with data-wa-preview) ---------- */
/* final stage: the three pop-ups of the site (this one, the join pop-up below and the schedules rate sheet) share one
   set of sheet values: backdrop .35 by day and .6 at dusk, the dusk sheet lifted 5% toward white with a 1 px ring,
   and below 768 px docked to the bottom edge (full width, top corners only, clear of the home indicator) */
.wa-sheet { border: 0; padding: 0; border-radius: var(--p-radius-3); background: var(--chat-paper); color: var(--c-text); width: min(460px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-shadow: var(--shadow-pop); }
.wa-sheet::backdrop, .join-sheet::backdrop { background: rgba(15, 10, 46, .35); }
:root[data-theme="dark"] .wa-sheet::backdrop, :root[data-theme="dark"] .join-sheet::backdrop { background: rgba(5, 3, 20, .6); }
:root[data-theme="dark"] .wa-sheet { box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255, 255, 255, .08); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.wa-sheet-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.wa-sheet h2 { font-size: var(--fs-xl); color: var(--chat-text); }
.wa-sheet .note { font-size: var(--fs-s); color: var(--chat-time); }
.wa-sheet .btn-quiet { color: var(--chat-text); border-color: var(--chat-rule); }
.wa-sheet[open] { animation: sheet-in .22s var(--p-ease-snap); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- members: the blurred "Members only" lines and the one join / sign-in pop-up (stage-1 fix 1) ----------
   h.members.locked(profile) draws the lines; h.footer({ join: true }) adds the pop-up; site.js opens it from any
   [data-join]. The blur is a neutral shape, never text: the website never receives a member's contact values. */
.locked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.locked { width: 100%; display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px 6px 12px; border: 1px solid var(--c-line); border-radius: var(--p-radius-2); background: transparent; color: var(--c-text-muted); font: var(--fw-ui) var(--fs-s)/1.2 var(--f-text); text-align: start; cursor: pointer; transition: border-color .2s var(--p-ease-ui), background-color .2s var(--p-ease-ui); }
.locked .blur-bar { display: block; width: var(--w, 60%); height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--c-text-muted) 0 34%, transparent 34% 38%, var(--c-text-muted) 38% 71%, transparent 71% 75%, var(--c-text-muted) 75%); opacity: .45; filter: blur(3px); }
.mo-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--p-radius-pill); background: var(--c-accent-wash); color: var(--c-accent-text); font: var(--fw-ui) var(--fs-xs)/1 var(--f-text); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .locked:hover { border-color: var(--c-accent-fill); background: var(--c-bg-alt); } }
/* on a phone (final stage, the profile and network builders' requests): the label and the tag share the first line
   and the blurred bar takes the whole second line, so "Street address" never wraps and the bar never collapses to
   0 px in a narrow card (it did at 320) */
@media (max-width: 767px) {
  .locked { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k tag" "bar bar"; gap: 6px 8px; padding: 8px 8px 10px 12px; }
  .locked .locked-k { grid-area: k; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .locked .mo-tag { grid-area: tag; }
  .locked .blur-bar { grid-area: bar; }
}
.join-sheet { border: 0; padding: 0; border-radius: var(--p-radius-3); background: var(--c-surface); color: var(--c-text); width: min(480px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-shadow: var(--shadow-pop); }
:root[data-theme="dark"] .join-sheet { background: color-mix(in srgb, var(--c-surface) 95%, white); box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255, 255, 255, .08); }
.join-sheet[open] { animation: sheet-in .22s var(--p-ease-snap); }
.join-sheet-body { position: relative; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.join-sheet .join-close { position: absolute; top: 12px; inset-inline-end: 12px; }
.join-sheet .join-mark { width: 132px; height: auto; color: var(--c-text); }
.join-sheet h2 { font-size: var(--fs-xl); margin-top: 6px; padding-inline-end: 40px; }
.join-sheet p { color: var(--c-text-muted); font-size: var(--fs-m); line-height: 1.5; }
.join-sheet .ctas { margin-top: 6px; }
.join-sheet .note { font-size: var(--fs-xs); }
/* the docked sheet on a phone (both pop-ups; the shared sheet values above) */
@media (max-width: 767px) {
  .wa-sheet, .join-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--p-radius-3) var(--p-radius-3) 0 0; max-height: calc(100svh - 24px); }
  .wa-sheet[open], .join-sheet[open] { animation: sheet-up .28s var(--p-ease-out); }
  .wa-sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .join-sheet-body { padding: 24px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .wa-sheet .ctas .btn, .join-sheet .ctas .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .wa-sheet[open], .join-sheet[open] { animation: none; } }
:root.rm .wa-sheet[open], :root.rm .join-sheet[open] { animation: none; }

/* ---------- responsive (shared parts) ---------- */
@media (max-width: 1100px) {
  .section-head h2, .section-head .lede, .section-head.stack h2, .section-head.stack .lede { grid-column: 1 / -1; }
  .section-head { row-gap: 18px; }
  .site-footer .f-brand { grid-column: 1 / -1; }
  .site-footer .top:has(.f-note) .f-brand { grid-row: auto; }
  .site-footer .f-note { grid-column: 1 / -1; grid-row: auto; }
  .site-footer .f-col, .site-footer .f-col:first-of-type { grid-column: span 3; }
}
@media (max-width: 767px) {
  .section-head, .section-head.stack { grid-template-columns: minmax(0, 1fr); row-gap: 14px; margin-bottom: 32px; }
  .ctas { flex-direction: column; align-items: stretch; }
  .ctas .btn { justify-content: space-between; }
  .ctas .btn-wa { justify-content: center; }
  /* stage 3: on every first screen the pair stands side by side (Get started, then the short WhatsApp label), as on
     home and ocean; further down and in the close it stacks */
  .hero .ctas { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
  .hero .ctas .btn { min-width: 0; }
  .close { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .close > .pair { position: relative; height: 52svh; }
  .close > .pair img { object-position: 50% 45%; }
  .close .door-copy { position: relative; inset: auto; display: flex; flex-direction: column; align-items: stretch; text-align: start; padding: 36px var(--margin) 56px; background: var(--c-bg); }
  .close h2 { font-size: var(--fs-h2); max-width: none; color: var(--c-text); }
  .close .sub { color: var(--c-text-muted); margin: 12px 0 24px; }
  .close .btn-wa, :root[data-theme="dark"] .close .btn-wa { background: transparent; color: var(--c-text); border-color: currentColor; }
  .site-footer { padding-top: 64px; }
  .site-footer .f-col, .site-footer .f-col:first-of-type { grid-column: span 6; }
  .site-footer ul a, .site-footer .f-legal a, .site-footer .f-lang a, .site-footer .f-lang span { min-height: 44px; }
}

/* ---------- final polish: shared small parts ---------- */
/* m3: an office name never breaks inside itself ("Azor (head office)", "אבו דאבי ודובאי"); the list breaks between names */
.office { white-space: nowrap; }
/* F4/F5: the way forward for a mode or a page still to come (h.waAsk): the WhatsApp mark and a sentence, a 44 px
   target, the accent text colour of the site's other text links */
.wa-ask { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: var(--fw-ui); color: var(--c-accent-text); text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.wa-ask .wa-glyph { width: 20px; height: 20px; flex: none; }
@media (hover: hover) and (pointer: fine) { .wa-ask:hover { text-decoration-line: underline; } }

/* ---------- gap pass: shared small parts ---------- */
/* B5: every breadcrumb link reaches a 44 px hit area without moving the line (a centred ::before) */
nav[aria-label="Breadcrumb"] a { position: relative; }
nav[aria-label="Breadcrumb"] a::before { content: ""; position: absolute; inset-inline: -6px; top: 50%; height: 44px; min-width: 44px; transform: translateY(-50%); }

/* B10: one sample tag for every count line and sample mark (h.members.countLine) */
.sample-tag { display: inline-block; margin-inline-start: .2em; padding: 0 .45em; border: 1px solid color-mix(in srgb, currentColor 42%, transparent); border-radius: 4px; font-size: .86em; line-height: 1.45; font-weight: var(--fw-ui); letter-spacing: 0; white-space: nowrap; vertical-align: .04em; }
/* a name two members share: the card's title line carries the city (h.members.twinCity) */
.twin-city { font-weight: var(--fw-text); color: var(--c-text-muted); white-space: nowrap; }
/* the trust level's three bars (h.members.trustPips), beside the words "Trust level 2 of 3" */
.pips { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.pips i { width: 4px; border-radius: 1px; background: var(--c-line-strong); }
.pips i:nth-child(1) { height: 6px; } .pips i:nth-child(2) { height: 9px; } .pips i:nth-child(3) { height: 12px; }
.pips i.on { background: var(--c-accent-text); }

/* B8: one logo tile for every small member logo (h.members.logoTile): 56 px tall, up to 140 px wide, the logo
   contained on one neutral plate. --quiet (the home strip): a mono print at rest, multiplied into the plate at about
   55% by day; no plate at dusk, the print knocked to mist at about 70%; the logo's own colours on hover and focus.
   A logo on a dark ground of its own (.ground-dark) is inverted for the print, so its mark stays and no grey square
   appears. */
.logo-tile { display: inline-grid; place-items: center; flex: none; box-sizing: border-box; height: 56px; min-width: 56px; max-width: 140px; padding: 6px; border-radius: 10px; background: var(--logo-plate); box-shadow: inset 0 0 0 1px var(--logo-line); isolation: isolate; transition: background-color .25s var(--p-ease-ui), box-shadow .25s var(--p-ease-ui); }
.logo-tile img { display: block; height: 44px; width: auto; max-width: 128px; object-fit: contain; border-radius: 4px; transition: filter .25s var(--p-ease-ui), opacity .25s var(--p-ease-ui); }
.logo-tile.is-initials { background: var(--c-accent-wash); box-shadow: none; }
.logo-tile.is-initials span { font: var(--fw-display) 20px/1 var(--f-display); letter-spacing: .02em; color: var(--c-accent-text); }
.logo-tile--quiet img { filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .55; }
.logo-tile--quiet.ground-dark img { filter: grayscale(1) invert(1) contrast(1.4) brightness(1.25); }
/* at dusk the tile is not isolated, so the print screens straight onto the band: its own (inverted) ground vanishes */
:root[data-theme="dark"] .logo-tile--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); isolation: auto; }
:root[data-theme="dark"] .logo-tile--quiet img { filter: grayscale(1) invert(1) contrast(1.4); mix-blend-mode: screen; opacity: .7; }
/* final polish m15: contrast(2.2) takes the logo's own dark ground to black, which screen drops (at 1.4 / .7 it stayed
   at about 9% grey and printed a grey square on the band); the light marks stay at about .8, level with the others */
:root[data-theme="dark"] .logo-tile--quiet.ground-dark img { filter: grayscale(1) contrast(2.2) brightness(.8); }
a:focus-visible > .logo-tile--quiet, :root[data-theme="dark"] a:focus-visible > .logo-tile--quiet { background: var(--logo-plate); }
a:focus-visible > .logo-tile--quiet img, :root[data-theme="dark"] a:focus-visible > .logo-tile--quiet img { filter: none; mix-blend-mode: normal; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  a:hover > .logo-tile--quiet, :root[data-theme="dark"] a:hover > .logo-tile--quiet { background: var(--logo-plate); }
  a:hover > .logo-tile--quiet img, :root[data-theme="dark"] a:hover > .logo-tile--quiet img { filter: none; mix-blend-mode: normal; opacity: 1; }
}
@media (max-width: 767px) { .logo-tile { height: 48px; min-width: 48px; padding: 5px; } .logo-tile img { height: 38px; max-width: 110px; } }

/* M1: the idle move (motion.js, data-idle; never under reduced motion, never while frozen, only on screen).
   Final polish F3 (Emil: 0.4 px in the first 5 s, every other leg moved a ship astern):
   - the move is attached from the FIRST PAINT (script on, not frozen), paused, already part-way into a leg by a negative
     delay, so it is drawn there from the start and, once motion.js sets it running (.idle-ok + .idle-on), it moves at
     once at its steadiest (a sine leg: no ease from rest, no jump when it starts, resumes where it paused);
   - drift (a plate): scale toward 1.045 and slide 1.1% / .5% (the slide never exceeds half the growth, so no edge of
     the layer ever shows); a phone gets 1.065 and 1.6% / .7% over legs a quarter shorter, as a phone layer is narrow;
   - bob (a SHIP): up and down only, 13 px (7.6 px below 768 px) whatever the layer's size (a % of a short phone layer
     moved 1.4 px), its own 11 s leg: a ship rides the swell and never moves astern;
   - zoom (repair 1: a PLATE that holds a ship under way, the network's aerial): the same breath as drift with no slide,
     about the layer's transform-origin, which the page puts on that ship; the ship stays where it is and the world
     breathes around it, so it is never carried astern (drift slid it 3.6 px astern in the first 5 s);
   - paused off screen (no .idle-on) and while a pop-up or the menu is open (.idle-hold). */
:root.js:not(.rm):not(.t-frozen) [data-idle="drift"]:not(.idle-no) { animation: af-idle-drift var(--idle-dur, 32s) cubic-bezier(.37, 0, .63, 1) calc(var(--idle-dur, 32s) * -.42) infinite alternate both; animation-play-state: paused; }
:root.js:not(.rm):not(.t-frozen) [data-idle="zoom"]:not(.idle-no) { animation: af-idle-zoom var(--idle-dur, 32s) cubic-bezier(.37, 0, .63, 1) calc(var(--idle-dur, 32s) * -.42) infinite alternate both; animation-play-state: paused; }
:root.js:not(.rm):not(.t-frozen) [data-idle="bob"]:not(.idle-no) { animation: af-idle-bob 11s cubic-bezier(.37, 0, .63, 1) -3s infinite alternate both; animation-play-state: paused; }
:root.js.idle-ok:not(.rm):not(.t-frozen):not(.idle-hold) [data-idle].idle-on:not(.idle-no) { animation-play-state: running; }
@keyframes af-idle-drift { from { translate: 0 0; scale: 1; } to { translate: -1.1% -.5%; scale: 1.045; } }
@keyframes af-idle-drift-s { from { translate: 0 0; scale: 1; } to { translate: -1.6% -.7%; scale: 1.065; } }
@keyframes af-idle-zoom { from { scale: 1; } to { scale: 1.045; } }
@keyframes af-idle-zoom-s { from { scale: 1; } to { scale: 1.065; } }
@keyframes af-idle-bob { from { translate: 0 -6.5px; } to { translate: 0 6.5px; } }
@keyframes af-idle-bob-s { from { translate: 0 -3.8px; } to { translate: 0 3.8px; } }
@media (max-width: 767px) {
  :root.js:not(.rm):not(.t-frozen) [data-idle="drift"]:not(.idle-no) { animation-name: af-idle-drift-s; animation-duration: calc(var(--idle-dur, 32s) * .75); animation-delay: calc(var(--idle-dur, 32s) * -.31); }
  :root.js:not(.rm):not(.t-frozen) [data-idle="zoom"]:not(.idle-no) { animation-name: af-idle-zoom-s; animation-duration: calc(var(--idle-dur, 32s) * .75); animation-delay: calc(var(--idle-dur, 32s) * -.31); }
  :root.js:not(.rm):not(.t-frozen) [data-idle="bob"]:not(.idle-no) { animation-name: af-idle-bob-s; }
}
[data-idle="glint"] { overflow: hidden; }
:root.idle-ok [data-idle="glint"]::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%); translate: -110% 0; opacity: 0; }
:root.idle-ok:not(.idle-hold) [data-idle="glint"].idle-on::after { animation: af-idle-glint var(--idle-dur, 32s) linear infinite; }
@keyframes af-idle-glint { 0%, 78% { translate: -110% 0; opacity: 0; } 80% { opacity: 1; } 96% { translate: 110% 0; opacity: 1; } 100% { translate: 110% 0; opacity: 0; } }

/* ---------- reduced motion: every final state at rest; short opacity fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, background-color, border-color, color, visibility !important; transition-duration: .18s !important; transition-delay: 0s !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s !important; }
}
:root.rm *, :root.rm *::before, :root.rm *::after { animation: none !important; transition-property: opacity, background-color, border-color, color, visibility !important; transition-duration: .18s !important; transition-delay: 0s !important; }
/* ?notext=1: the pictures alone, for measuring the real pixels behind text */
:root.notext .measure-hide, :root.notext .site-header .nav, :root.notext .site-header .lang { visibility: hidden !important; }
