/* DawamFlow landing — English, LTR. Static CSS, no framework. */

:root {
  --cream: #F5EAD8;
  --paper: #EBDDC5;
  --ink: #171A0E;
  --panel: #1C2012;
  --copper: #C67139;
  --olive: #7A8A5E;
  --mint: #CBDBA6;
  --yes: #4E6A2A;
  --no: #A3401C;

  --display: 'Caprasimo', 'Cooper Black', 'Rockwell', Georgia, serif;
  --text: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gut: 12px;
  --r: 28px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2.5px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; }

.wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* small technical label, used like a figure caption throughout */
.fig {
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .62;
}
.display {
  font: 400 clamp(2.4rem, 5.6vw, 5.3rem)/1 var(--display);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; }

/* ---------- buttons ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--text); white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.pill--ink { background: var(--ink); color: var(--cream); }
.pill--ink:hover { background: var(--copper); color: var(--ink); }
.pill--cream { background: var(--cream); color: var(--ink); }
.pill--cream:hover { background: var(--copper); }
.round {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--copper); color: var(--ink);
  transition: transform .35s var(--ease);
}
.round svg { width: 20px; height: 20px; }
.pill:hover + .round, .round:hover { transform: rotate(45deg); }
.round--cream { background: var(--cream); }
.text-link {
  display: inline-block; font-weight: 600; font-size: 14.5px;
  border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.text-link span { display: inline-block; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateY(3px); }

/* ---------- the dark frame (hero, rules, ending) ---------- */
.frame {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--gut); border-radius: var(--r);
  background: var(--panel); color: var(--cream);
}
/* paper grain so the dark panel reads as print, not as a screen gradient */
.frame::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* registration marks */
.reg {
  position: absolute; width: 15px; height: 15px; opacity: .4; pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat;
}
.reg--a { left: 20px; top: 50%; }
.reg--b { right: 20px; top: 50%; }

/* ============ 01 · HERO ============ */
.hero { position: relative; }
.hero .frame {
  --dv: min(42vw, 180px);            /* reader width; everything in the rig is derived from it */
  --hw: calc(var(--dv) * 1.45);      /* hand width */
  display: flex; flex-direction: column;
  padding: 92px 0 0;
}

.notch {
  position: absolute; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); color: var(--ink);
  --n: 24px;
}
.notch::before, .notch::after { content: ''; position: absolute; width: var(--n); height: var(--n); }
.notch--brand { left: 0; padding: 11px 20px 13px 16px; border-radius: 0 0 var(--n) 0; }
.notch--brand::before { left: 100%; top: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
.notch--brand::after { left: 0; top: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
.notch--cta { right: 0; padding: 0 0 12px 12px; border-radius: 0 0 0 var(--n); }
.notch--cta::before { right: 100%; top: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
.notch--cta::after { right: 0; top: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }

.brand { display: block; }
.brand img { display: block; height: 30px; width: auto; }

.nav { display: none; }

.hero-fig { padding: 0 20px; }
.hero-title { padding: 10px 18px 0; }
.hero-title .w {
  display: block; white-space: nowrap;
  font: 400 15.6vw/.94 var(--display); letter-spacing: -.015em;
}
.hero-title .w2 { color: var(--copper); text-align: right; }

/* --- rig: reader + hand --- */
.rig {
  position: relative; z-index: 2;
  width: var(--dv); aspect-ratio: 386 / 1000;
  margin: 26px auto 34px;
  --t: 0;                 /* 0 = hand away, 1 = fingertip on the sensor */
  --mx: 0; --my: 0;       /* pointer, -0.5 … 0.5 */
  --bob: 0;
}
.rig-tilt {
  position: absolute; inset: 0;
  transform: perspective(1100px) rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 4deg));
  transition: transform .5s var(--ease);
}
.reader { position: absolute; inset: 0; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .45)); }
.reader > img { width: 100%; height: 100%; }

.sensor-glow, .sensor-ring, .sensor-hit {
  position: absolute; left: 49.7%; top: 79.6%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.sensor-glow {
  width: 62%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(96, 255, 136, .9), rgba(96, 255, 136, 0) 66%);
  opacity: 0; transition: opacity .35s;
}
.is-touch .sensor-glow { opacity: .55; }
.is-ok .sensor-glow { opacity: 1; }
/* a slow ring on the sensor says "press here" */
.sensor-ring { width: 30%; pointer-events: none; border: 2px solid rgba(132, 255, 160, .95); opacity: 0; animation: ring-idle 2.8s var(--ease) infinite; }
.is-touch .sensor-ring { animation: none; }
.is-ok .sensor-ring { animation: ring-ok .9s var(--ease) both; }
@keyframes ring-idle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 25% { opacity: .8; } 70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); } }
@keyframes ring-ok { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); } }
.sensor-hit { width: 46%; z-index: 3; }

.rig-toast {
  /* centred on the reader's display slot, so it never sits on the keypad */
  position: absolute; left: 58%; top: 61.3%; translate: 0 -50%; z-index: 4; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding-block: 7px; padding-inline: 8px 14px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font: 600 13.5px/1 var(--text);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: 0 100%;
  transition: opacity .3s, transform .4s var(--ease);
}
.rig-toast svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--yes); color: var(--cream); }
.is-ok .rig-toast { opacity: 1; transform: none; }

.hand {
  position: absolute; z-index: 2; pointer-events: none; max-width: none;
  width: var(--hw); height: auto;
  left: calc(var(--dv) * .497 - var(--hw) * .228);
  top: calc(var(--dv) / .386 * .796 - var(--hw) / .3756 * .03);
  transform-origin: 22.8% 3%;
  --away: calc(1 - var(--t));
  transform:
    translate(calc(var(--away) * var(--dv) * .75 + var(--mx) * 14px), calc(var(--away) * var(--dv) * 2.7 + var(--bob) * 1px))
    rotate(calc(-13deg - var(--away) * 9deg))
    scale(calc(1 + var(--away) * .2));
  filter: drop-shadow(calc(6px + var(--away) * 46px) calc(8px + var(--away) * 60px) calc(7px + var(--away) * 30px) rgba(0, 0, 0, .42));
  will-change: transform;
}

/* --- annotations --- */
.notes {
  position: relative; z-index: 4; order: 4;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px;
  padding: 6px 20px 26px;
  background: var(--cream); color: var(--ink);
}
.note { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.35; }
.note-body { display: grid; gap: 2px; }
.note b { font: 700 15.5px/1.2 var(--text); }
.note-n {
  justify-self: start;
  font: 500 11px/1 var(--mono); letter-spacing: .08em;
  padding: 4px 6px; border: 1.5px solid currentColor; border-radius: 5px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.note > .note-n { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.note-t { opacity: .78; }
.is-ok .note .note-n { animation: note-ping 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * .13s); }
.note--1 { --i: 0; } .note--2 { --i: 1; } .note--3 { --i: 2; } .note--4 { --i: 3; }
/* only the flash is described: it starts from and returns to each tag's own colours, so the number never disappears */
@keyframes note-ping {
  30%, 60% { background: var(--copper); border-color: var(--copper); color: var(--ink); }
}

/* --- paper tabs --- */
.tabs { display: contents; }
.tab { position: relative; z-index: 4; background: var(--cream); color: var(--ink); padding: 0 20px 24px; }
.tab--c { order: 3; text-align: center; border-radius: 26px 26px 0 0; padding-bottom: 26px; }
.tab--l { order: 5; padding-top: 22px; border-top: 1.5px solid rgba(23, 26, 14, .16); }
.tab--r { order: 6; padding-top: 22px; padding-bottom: 28px; border-top: 1.5px solid rgba(23, 26, 14, .16); }
.tab .fig { margin-bottom: 8px; }
.tab-text { font-size: 15.5px; line-height: 1.45; margin-bottom: 12px; max-width: 30em; }
.tab-title { font: 400 1.5rem/1.1 var(--display); margin-top: 2px; }
.tab-small { font-size: 13px; opacity: .65; margin-top: 4px; }

.pill--press {
  overflow: hidden; height: 54px; padding: 0 30px; margin: -27px 0 16px;
  background: var(--copper); color: var(--ink); border: 2px solid var(--ink);
  font-size: 16px;
}
.pill--press:hover { transform: translateY(-2px); }
.pill--press:active { transform: scale(.97); }
.press-fill { position: absolute; inset: 0; background: var(--cream); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.press-label { position: relative; }

.punch-time { font: 400 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.punch-state { font-size: 14.5px; margin-top: 6px; min-height: 1.5em; }
.is-ok .punch-state { color: var(--yes); font-weight: 600; }

.hero .reg { display: none; }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-fig, .hero-title .w { animation: rise .9s var(--ease) both; }
.hero-title .w1 { animation-delay: .05s; }
.hero-title .w2 { animation-delay: .16s; }
.reader { animation: reader-in 1s var(--ease) .1s both; }
@keyframes reader-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- hero, wide layout ---------- */
@media (min-width: 900px) {
  .hero .frame {
    --dv: min(23.5svh, 16vw, 290px);
    --tab-h: clamp(140px, 20svh, 178px);
    --edge: clamp(26px, 3.2vw, 58px);
    --fs: min(11.4vw, 19.5svh, 14rem);
    --rx: 50%;
    display: block; padding: 0;
    height: calc(100vh - 2 * var(--gut)); height: calc(100svh - 2 * var(--gut));
    min-height: 640px;
  }
  .nav {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 6;
    display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); height: 58px;
    font-size: 14.5px; font-weight: 500;
  }
  .nav a { opacity: .78; padding: 6px 2px; border-bottom: 1.5px solid transparent; transition: opacity .2s, border-color .2s; }
  .nav a:hover { opacity: 1; border-color: var(--copper); }

  .hero-fig { position: absolute; left: var(--edge); top: clamp(78px, 11svh, 112px); padding: 0; z-index: 1; }
  .hero-title { padding: 0; }
  .hero-title .w { position: absolute; z-index: 1; font-size: var(--fs); line-height: .86; white-space: normal; }
  .hero-title .w span { display: block; white-space: nowrap; }
  .hero-title .w1 { left: var(--edge); top: clamp(98px, 13.5svh, 140px); translate: calc(var(--hs, 0) * -6vw) 0; }
  .hero-title .w2 { right: var(--edge); bottom: calc(var(--tab-h) + 3.4svh); text-align: right; translate: calc(var(--hs, 0) * 6vw) 0; }

  .rig {
    position: absolute; left: var(--rx); top: 45.5%; margin: 0;
    transform: translate(-50%, -50%);
    translate: 0 calc(var(--hs, 0) * -5svh);
    scale: calc(1 - var(--hs, 0) * .1);
  }

  .notes { position: static; display: block; padding: 0; background: none; color: inherit; }
  .note {
    position: absolute; z-index: 3; width: clamp(214px, 18vw, 350px);
    padding: 11px 14px 12px 11px; border-radius: 12px;
    font-size: clamp(13.5px, .95vw, 18px);
    background: var(--cream); color: var(--ink);
    box-shadow: 4px 5px 0 rgba(0, 0, 0, .34);
    --lead: clamp(30px, 4.4vw, 86px);               /* gap between the tag and the reader */
    --bite: calc(var(--dv) * .15);                  /* how far the line runs onto the reader */
    animation: rise .8s var(--ease) both; animation-delay: calc(.5s + var(--i) * .1s);
  }
  /* a solid copper line from each tag to a dot on the reader */
  .note::before { content: ''; position: absolute; top: calc(50% - 1px); height: 2px; background: var(--copper); width: calc(var(--lead) + var(--bite)); }
  .note::after { content: ''; position: absolute; top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(198, 113, 57, .32); }
  .note--r { left: calc(var(--rx) + var(--dv) * .5 + var(--lead)); }
  .note--r::before { right: 100%; }
  .note--r::after { right: calc(100% + var(--lead) + var(--bite) - 6px); }
  .note--l { right: calc(100% - var(--rx) + var(--dv) * .5 + var(--lead)); }
  .note--l::before { left: 100%; }
  .note--l::after { left: calc(100% + var(--lead) + var(--bite) - 6px); }
  .note b { font-size: clamp(15.5px, 1.12vw, 21px); }
  .note > .note-n { font-size: clamp(11px, .78vw, 14px); }
  .note--1 { top: 15svh; }
  .note--2 { top: 28svh; }
  .note--3 { top: 49.5svh; }
  .note--4 { top: 61.5svh; }
  .brand img { height: 36px; }

  .tabs {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: var(--tab-h);
    display: grid; grid-template-columns: 1fr minmax(250px, 23%) 1fr; column-gap: 14px;
    --slant: calc(var(--tab-h) * .2126);   /* tan(12deg) */
  }
  .tab { background: none; padding: 20px 26px 18px; border: 0; z-index: auto; isolation: isolate; }
  .tab::before, .tab::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: -1; background: var(--cream); }
  .tab--l { order: 1; padding-left: var(--edge); padding-right: 12px; border-top: 0; }
  .tab--l::before { left: -90px; right: 0; transform: skewX(-12deg); transform-origin: 100% 100%; border-top-right-radius: 20px; }
  .tab--l::after { display: none; }
  .tab--c { order: 2; border-radius: 0; padding: 0 20px 16px; }
  .tab--c::before { left: 0; right: 45%; transform: skewX(-12deg); transform-origin: 0 100%; border-top-left-radius: 20px; }
  .tab--c::after { left: 45%; right: 0; transform: skewX(12deg); transform-origin: 100% 100%; border-top-right-radius: 20px; }
  .tab--r { order: 3; padding-left: calc(var(--slant) + 26px); padding-right: var(--edge); border-top: 0; }
  .tab--r::before { left: 0; right: -90px; transform: skewX(12deg); transform-origin: 0 100%; border-top-left-radius: 20px; }
  .tab--r::after { display: none; }
  .tab-text { font-size: clamp(13.5px, 1.15vw, 15.5px); margin-bottom: 8px; max-width: 34em; }
  .tab-title { font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
  .tab .fig { margin-bottom: 6px; }
  .punch-time { font-size: clamp(2rem, 3.6vw, 3.2rem); }
  .punch-state { font-size: 14px; margin-top: 2px; }

  .hero .reg { display: block; }
  .hero .reg--a { top: auto; bottom: calc(var(--tab-h) + 16px); }
  .hero .reg--b { top: 96px; }
}
@media (min-width: 900px) and (max-height: 720px) {
  .tab-small { display: none; }
  .tab-text { margin-bottom: 6px; }
}

/* ============ 02 · CAPABILITIES ============ */
.jobs { padding: clamp(84px, 13vh, 150px) 0 clamp(60px, 9vh, 110px); }
.jobs-head { display: grid; gap: 18px; }
.jobs-head .display { max-width: 13em; }

.stack { display: grid; gap: 18px; margin-top: clamp(40px, 6vh, 70px); }
.job { border-radius: 26px; overflow: hidden; }
.job--ink { background: var(--ink); color: var(--cream); }
.job--copper { background: var(--copper); color: var(--ink); }
.job--olive { background: var(--olive); color: var(--ink); }
.job--paper { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.job-rim {
  display: flex; align-items: center; gap: 18px; height: 52px; padding: 0 clamp(18px, 3vw, 34px);
  font: 500 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, currentColor 24%, transparent);
}
.rim-end { margin-left: auto; opacity: .6; }
.job-body { display: grid; gap: 28px; padding: 28px clamp(18px, 3vw, 34px) 30px; }
.job-copy h3 { font: 400 clamp(1.8rem, 3.5vw, 3rem)/1.04 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.job-copy p { margin-top: 16px; max-width: 31em; font-size: clamp(1rem, 1.25vw, 1.12rem); opacity: .88; }

.job-art {
  position: relative; display: grid; place-items: center;
  min-height: 250px; padding: 26px 22px; border-radius: 18px;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.job-art figcaption { position: absolute; left: 20px; bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* art 1 — linked branches: one account on top, branches wired into it */
.art-branches { background: var(--cream); color: var(--ink); }
.tree { width: min(450px, 100%); display: grid; }
.tree-hub {
  justify-self: center; display: flex; align-items: center; gap: 11px;
  padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--ink); color: var(--cream);
}
.tree-hub img { width: 40px; height: 40px; padding: 4px; border-radius: 9px; background: var(--cream); }
.tree-hub span { display: grid; gap: 2px; line-height: 1.15; }
.tree-hub b { font: 400 1.12rem/1.1 var(--display); }
.tree-hub small { font: 400 10.5px/1.2 var(--mono); letter-spacing: .04em; opacity: .72; }
.tree-hub em { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .05em; white-space: nowrap; padding: 5px 7px; border-radius: 5px; background: var(--copper); color: var(--ink); }
.tree-wires { width: 100%; height: auto; overflow: visible; }
.tree-wires .wires path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.tree-wires .pulses path { fill: none; stroke: var(--copper); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 7 100; stroke-dashoffset: 8; }
.job.is-in .tree-wires .pulses path { animation: pulse-run 2.8s linear infinite; }
.tree-wires .pulses path:nth-child(2) { animation-delay: .7s; }
.tree-wires .pulses path:nth-child(3) { animation-delay: 1.4s; }
.tree-wires .pulses path:nth-child(4) { animation-delay: 2.1s; }
@keyframes pulse-run { 0% { stroke-dashoffset: 8; } 70%, 100% { stroke-dashoffset: -100; } }
.tree-sites strong { font-weight: inherit; }
.tree-sites em { font-style: normal; }
.tree-sites { display: grid; grid-template-columns: repeat(4, 1fr); }
.tree-sites li {
  display: grid; gap: 3px; align-content: center; margin: 0 4px; padding: 10px 4px 9px; text-align: center;
  border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper);
}
.tree-sites b { font: 700 12.5px/1.2 var(--text); }
.tree-sites span { font: 400 10px/1.2 var(--mono); opacity: .72; }
.tree-sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 14px 4px 0; padding-top: 10px; border-top: 1.5px dashed rgba(23, 26, 14, .4);
  font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.tree-sum b { font: 400 1.05rem/1 var(--display); letter-spacing: 0; text-transform: none; }

/* art 2 — roles */
.roles { max-width: 440px; font-size: 14.5px; }
.roles th, .roles td { padding: 13px 6px; border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.roles thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; padding-top: 0; }
.roles th { text-align: left; font-weight: 600; }
.roles td, .roles thead th + th { text-align: center; }
.roles i {
  display: inline-block; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--ink); vertical-align: middle;
  transition: background-color .35s, transform .35s var(--ease);
}
.js .roles i.on { transform: scale(.4); }
.roles i.on, .js .job.is-in .roles i.on { background: var(--ink); transform: none; }
.roles tbody tr:nth-child(2) i { transition-delay: .15s; }
.roles tbody tr:nth-child(3) i { transition-delay: .3s; }
.roles tbody tr:last-child th, .roles tbody tr:last-child td { border-bottom: 0; }

/* art 3 — payroll slip */
.slip {
  position: relative; isolation: isolate; width: min(310px, 100%);
  padding: 18px 20px 30px; color: var(--ink);
  font: 400 13px/1.4 var(--mono);
  transform: rotate(-2.2deg);
  filter: drop-shadow(6px 8px 0 rgba(23, 26, 14, .26));
}
.slip::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cream);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.slip-head { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; opacity: .65; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.slip dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(23, 26, 14, .35); }
.slip dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.slip-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font: 400 1.25rem/1 var(--display); }
.slip-stamp {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--no); border: 2px solid currentColor; border-radius: 5px; padding: 5px 7px;
  transform: rotate(-5deg);
}
.js .slip-stamp { opacity: 0; }
.js .job.is-in .slip-stamp { animation: stamp .45s var(--ease) .9s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.9); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }

/* art 4 — every workplace live */
.sites-live { width: min(420px, 100%); display: grid; }
.sites-live li { display: grid; grid-template-columns: 7.2em 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(23, 26, 14, .22); }
.sites-live li:last-child { border-bottom: 0; }
.sl-name { font-weight: 600; font-size: 14.5px; }
.sl-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.sl-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color .4s, transform .4s var(--ease); }
.sl-dots i.in { background: var(--ink); }
.sl-dots i.flip { transform: scale(1.35); }
.sl-num { font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 4.6em; text-align: right; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--no); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

@media (min-width: 900px) {
  .job-body { grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: 34px 38px; }
  .job-art { min-height: 300px; height: 100%; }
}
/* index-card stack: each card parks under the rim of the next one */
@media (min-width: 900px) and (min-height: 680px) {
  .stack { gap: 0; padding-bottom: 4vh; }
  .job { position: sticky; top: calc(16px + var(--i) * 52px); height: clamp(430px, calc(100svh - 232px), 570px); margin-bottom: 26px; }
  .job:nth-child(1) { --i: 0; } .job:nth-child(2) { --i: 1; } .job:nth-child(3) { --i: 2; } .job:nth-child(4) { --i: 3; }
  .job-body { height: calc(100% - 52px); }
}

/* ============ 03 · PERMISSIONS ============ */
.rules { padding: 0; }
.frame--rules { display: grid; gap: 40px; padding: clamp(40px, 7vw, 92px) clamp(20px, 5vw, 76px); }
.rules-copy .display { margin: 18px 0 22px; max-width: 11em; }
.rules-copy .lead { max-width: 30em; opacity: .86; }
.rule-list { margin-top: 34px; display: grid; }
.rule-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(245, 234, 216, .2); }
.rule-list b { font: 600 1.05rem/1.3 var(--text); }
.rule-list p { opacity: .72; font-size: 15.5px; }
.rule-list .note-n { margin-top: 2px; color: var(--copper); }

.lab { background: var(--cream); color: var(--ink); border-radius: 22px; padding: clamp(18px, 2.6vw, 30px); }
.lab-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.lab-head .fig:first-child { opacity: 1; }
.matrix th, .matrix td { padding: 12px 6px; border-bottom: 1px solid rgba(23, 26, 14, .16); text-align: center; }
.matrix thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; opacity: .7; }
.matrix tbody th { text-align: left; font-weight: 600; font-size: 16px; }
.sw {
  position: relative; width: 48px; height: 28px; border-radius: 999px; vertical-align: middle;
  border: 1.5px solid var(--ink); transition: background-color .25s;
}
.sw::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink); transition: transform .28s var(--ease), background-color .25s;
}
.sw[aria-checked="true"] { background: var(--olive); }
.sw[aria-checked="true"]::after { transform: translateX(20px); }

.tester { padding-top: 18px; }
.tester-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tester-at { font: 400 1.2rem/1 var(--display); }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { padding: 8px 13px; font-size: 13.5px; font-weight: 600; transition: background-color .2s, color .2s; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.seg button:focus-visible { outline-offset: -4px; }

.tester-run { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.touch {
  flex: none; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  background: var(--ink); color: var(--mint); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5.5px var(--copper);
  transition: transform .18s var(--ease);
}
.touch svg { width: 34px; height: 34px; }
.touch:hover { transform: scale(1.05); }
.touch:active { transform: scale(.93); }
.verdict { display: grid; gap: 8px; justify-items: start; font-size: 14.5px; line-height: 1.4; }
.stamp {
  font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border: 2.5px solid currentColor; border-radius: 6px;
  color: rgba(23, 26, 14, .4); transform: rotate(-4deg);
}
.verdict.is-yes .stamp { color: var(--yes); }
.verdict.is-no .stamp { color: var(--no); }
.verdict.is-hit .stamp { animation: stamp-hit .4s var(--ease) both; }
@keyframes stamp-hit { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
.lab-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(23, 26, 14, .16); }

@media (min-width: 980px) {
  .frame--rules { grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
}
.frame--rules .reg--a { top: 26px; left: 26px; }
.frame--rules .reg--b { top: auto; bottom: 26px; right: 26px; }
/* the corner marks need the wide margins: on phones they would sit on the label and the card */
@media (max-width: 899px) { .frame--rules .reg { display: none; } }

/* ============ 04 · THE APP ============ */
.app { padding: clamp(84px, 13vh, 150px) 0 clamp(30px, 5vh, 60px); }
.app-grid { display: grid; gap: 50px; }
.app-copy .display { margin: 18px 0 22px; max-width: 11.5em; }
.app-copy .lead { max-width: 30em; opacity: .86; }
.app-list { margin-top: 28px; display: grid; gap: 0 28px; }
.app-list li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(23, 26, 14, .22); }
.app-list b { font: 700 1.04rem/1.3 var(--text); }
.app-list p { opacity: .8; font-size: 14.5px; line-height: 1.45; }
.app-list .note-n { margin-top: 2px; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.app-list .app-plus { margin: 8px 0 22px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.app-list .app-plus .note-n { background: var(--copper); color: var(--ink); border-color: var(--ink); }
@media (min-width: 560px) {
  .app-list { grid-template-columns: 1fr 1fr; }
  .app-list .app-plus { grid-column: 1 / -1; }
}
/* the label on its own line, then the two badges always side by side at the same size */
.stores { display: grid; gap: 14px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.stores .fig { opacity: 1; }
.store-row { display: grid; grid-template-columns: repeat(2, minmax(0, 172px)); gap: 10px; }
.store-badge { display: block; width: 100%; height: auto; aspect-ratio: 3.4; border-radius: 9px; background: #000; }

.app-demo { position: relative; isolation: isolate; display: grid; justify-items: center; padding: 34px 0 26px; }
.app-demo::before { content: ''; position: absolute; inset: 0 0 0 0; z-index: -1; border-radius: 26px; background: var(--olive); }
.phone {
  width: min(292px, 76vw); padding: 16px 13px 16px; border: 11px solid var(--ink); border-radius: 42px;
  background: var(--cream); transform: rotate(-3deg); box-shadow: 9px 12px 0 rgba(23, 26, 14, .26);
}
.phone-top { display: flex; justify-content: space-between; padding: 0 6px 12px; font: 500 11px/1 var(--mono); letter-spacing: .04em; opacity: .7; }
.phone-hello { padding: 0 4px 12px; font: 400 1.35rem/1.1 var(--display); }
.phone-card { padding: 13px 14px 14px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--paper); }
.phone-card + .phone-card { margin-top: 10px; }
.req-tabs { display: flex; margin-bottom: 6px; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--cream); }
.req-tabs button { flex: 1; padding: 7px 2px; font: 700 12px/1 var(--text); white-space: nowrap; transition: background-color .2s, color .2s; }
.req-tabs button + button { border-left: 1.5px solid var(--ink); }
.req-tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.req-tabs button:focus-visible { outline-offset: -4px; }
.phone-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(23, 26, 14, .3); font-size: 14px; }
.phone-row span { opacity: .7; }
.phone-status {
  display: inline-block; margin: 13px 0 11px; padding: 5px 8px; border: 2px solid currentColor; border-radius: 5px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(23, 26, 14, .45); transform: rotate(-2deg);
}
.phone-status.is-pending { color: #8A5A10; }
.phone-status.is-yes { color: var(--yes); }
.phone-status.is-no { color: var(--no); }
.phone-status.is-hit { animation: stamp-small .4s var(--ease) both; }
@keyframes stamp-small { from { opacity: 0; transform: rotate(-9deg) scale(1.7); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
.phone-btn { display: block; width: 100%; height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: var(--copper); color: var(--ink); font: 600 15px/1 var(--text); transition: transform .18s var(--ease); }
.phone-btn:hover:not(:disabled) { transform: translateY(-2px); }
.phone-btn:disabled { opacity: .5; cursor: default; }
.phone-card--row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.phone-card--row b { display: block; margin-top: 4px; font-size: 14.5px; }
.phone-card--row svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--ink); color: var(--cream); }
.boss {
  position: relative; z-index: 2; width: min(300px, 84vw); margin-top: -26px; padding: 14px 16px 16px;
  border: 1.5px solid var(--ink); border-radius: 14px; background: var(--cream);
  transform: rotate(2deg); box-shadow: 6px 8px 0 rgba(23, 26, 14, .26);
}
.boss-text { margin: 7px 0 12px; font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.boss-actions { display: flex; gap: 8px; }
.boss-actions button { flex: 1; height: 40px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 14px/1 var(--text); transition: opacity .2s, transform .18s var(--ease); }
.boss-actions button:first-child { background: var(--ink); color: var(--cream); }
.boss-actions button:disabled { opacity: .32; cursor: default; }
.boss-actions button:hover:not(:disabled) { transform: translateY(-2px); }
.app-foot { margin-top: 24px; padding: 0 16px; text-align: center; color: var(--ink); opacity: .8; }
@media (min-width: 980px) {
  .app-grid { grid-template-columns: 1fr .82fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .app-demo { padding: 44px 0 30px; }
  .boss { margin-left: 34%; }
}

/* ============ 05 · WHAT WE DO ============ */
.what { padding: clamp(90px, 15vh, 170px) 0 clamp(70px, 11vh, 120px); }
.statement {
  margin-top: 22px; max-width: 21em;
  font: 400 clamp(1.75rem, 4.2vw, 4rem)/1.13 var(--display); letter-spacing: -.012em;
}
.statement .wd { transition: opacity .35s; }
.js .statement .wd { opacity: .16; }
.js .statement .wd.on { opacity: 1; }
.steps { display: grid; gap: 30px; margin-top: clamp(50px, 9vh, 96px); }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.step-n { font: 500 12px/1 var(--mono); letter-spacing: .08em; opacity: .6; }
.steps h3 { font: 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--display); margin: 14px 0 8px; }
.steps p { max-width: 26em; opacity: .82; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); } }

/* moving band */
.band { overflow: hidden; border-block: 1.5px solid var(--ink); padding: 14px 0 18px; }
.band-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); width: max-content;
  font: 400 clamp(2.1rem, 5.2vw, 4.6rem)/1 var(--display); white-space: nowrap;
  transform: translate3d(calc(var(--bx, 0) * -1px), 0, 0);
}
.band-track i { flex: none; width: .3em; height: .3em; border-radius: 50%; background: var(--copper); }

/* ============ 06 · WHO WE ARE ============ */
.about { padding: clamp(84px, 13vh, 150px) 0 clamp(84px, 13vh, 150px); }
.about-grid { display: grid; gap: 34px; }
.about .display { margin-top: 18px; max-width: 9.5em; }
.about-copy { display: grid; gap: 20px; align-content: start; max-width: 36em; }
.about-copy > p:not(.lead) { opacity: .84; }
.facts { margin-top: 10px; }
.facts li { display: grid; gap: 2px 20px; padding: 14px 0; border-top: 1px solid rgba(23, 26, 14, .24); }
.facts li:last-child { border-bottom: 1px solid rgba(23, 26, 14, .24); }
.facts b { font-weight: 600; }
.facts span { opacity: .76; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .about-copy { padding-top: 34px; }
  .facts li { grid-template-columns: 13em 1fr; }
}

/* ============ 07 · CONTACT ============ */
.contact { padding: 0; }
.frame--contact { display: grid; gap: 40px; padding: clamp(40px, 7vw, 92px) clamp(20px, 5vw, 76px); background: var(--copper); color: var(--ink); }
.frame--contact::before { opacity: .35; }
.contact-copy .display { margin: 18px 0 22px; max-width: 11em; }
.contact-copy .lead { max-width: 30em; margin-bottom: 28px; }
.pill--wa { height: 56px; padding: 0 26px 0 20px; gap: 12px; background: var(--ink); color: var(--cream); font-size: 17px; }
.pill--wa:hover { transform: translateY(-2px); }
.wa-glyph { width: 26px; height: 26px; flex: none; }
.pill--wa .wa-glyph { color: #25D366; }
.contact-list { display: grid; align-content: center; }
.contact-list li { display: grid; gap: 6px; padding: 20px 0; border-top: 1.5px solid var(--ink); }
.contact-list li:last-child { border-bottom: 1.5px solid var(--ink); }
.contact-list .fig { opacity: .8; }
.contact-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font: 400 clamp(1.45rem, 3.1vw, 2.5rem)/1.1 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere;
}
.contact-list a .ico { flex: none; align-self: center; width: .6em; height: .6em; stroke-width: 1.7; transition: transform .3s var(--ease); }
.contact-list a:hover .ico { transform: translate(4px, -4px); }
.contact-list small { font-size: 14.5px; opacity: .78; }
@media (min-width: 980px) {
  .frame--contact { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
}

/* WhatsApp: floating button + a greeting that opens mid-page */
.wa {
  position: fixed; z-index: 40; pointer-events: none;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.wa > * { pointer-events: auto; }
.wa-float {
  position: relative; display: inline-flex; align-items: center; height: 58px; min-width: 58px; padding: 0 15px; border-radius: 999px;
  background: #25D366; color: #fff; border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(23, 26, 14, .35);
  transition: transform .25s var(--ease);
}
.wa-float .wa-glyph { width: 28px; height: 28px; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 700 15px/1 var(--text); color: var(--ink); transition: max-width .35s var(--ease), margin .35s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-3px); }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 11em; margin-left: 10px; }
.wa.is-open .wa-float::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #25D366;
  animation: wa-ring 1.6s var(--ease) 2;
}
@keyframes wa-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

.wa-bubble {
  position: relative; width: min(310px, calc(100vw - 32px));
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px 18px 5px 18px;
  box-shadow: 5px 6px 0 rgba(23, 26, 14, .3);
  transform-origin: 100% 100%;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .3s, transform .45s var(--ease), visibility 0s .45s;
}
.wa.is-open .wa-bubble { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .45s var(--ease), visibility 0s; }
.wa-bubble-link { display: grid; gap: 12px; padding: 14px 15px 15px; }
.wa-who { display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.wa-who img { width: 38px; height: 38px; padding: 5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.wa-who > span { display: grid; gap: 3px; line-height: 1.1; }
.wa-who b { font: 700 15px/1.1 var(--text); }
.wa-who small { display: flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.wa-who small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 1.5px var(--ink); }
.wa-msg { justify-self: start; padding: 10px 13px; border-radius: 4px 14px 14px 14px; background: var(--paper); font-size: 15.5px; line-height: 1.35; }
.wa-dots { display: none; gap: 5px; align-items: center; height: 1.35em; }
.wa-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: wa-dot 1s ease-in-out infinite; }
.wa-dots i:nth-child(2) { animation-delay: .15s; }
.wa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.wa.is-typing .wa-dots { display: inline-flex; }
.wa.is-typing .wa-msg-text { display: none; }
.wa-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px;
  background: #25D366; color: var(--ink); border: 2px solid var(--ink); font: 700 15px/1 var(--text);
  transition: transform .2s var(--ease);
}
.wa-bubble-link:hover .wa-go { transform: translateY(-2px); }
.wa-close { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.wa-close:hover { background: var(--paper); }
.wa-close svg { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .wa-float { height: 54px; min-width: 54px; padding: 0 13px; }
}

/* ============ 08 · ENDING ============ */
.frame--end { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 56px) 22px; }
.end-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: clamp(18px, 4vh, 44px); }
/* a fingerprint drawn ridge by ridge when the section comes into view */
.end-print { flex: none; width: clamp(92px, 13vw, 180px); height: auto; overflow: visible; color: var(--copper); }
.end-print path { fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.js .end-print[data-reveal] { opacity: 1; transform: none; }
.js .end-print path { stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s var(--ease); transition-delay: calc(var(--k) * .1s); }
.js .end-print.is-in path { stroke-dashoffset: 0; }
/* two lines, each sized by the script to span the panel */
.end-title { font: 400 clamp(2.8rem, 9.4vw, 8rem)/1.02 var(--display); letter-spacing: -.015em; }
.end-title span { display: block; white-space: nowrap; }
.end-title span + span { color: var(--copper); }
.pill--chat { height: 52px; padding: 0 22px 0 16px; gap: 10px; background: #25D366; color: var(--ink); font-size: 16px; }
.pill--chat:hover { transform: translateY(-2px); }
.pill--line { height: 52px; border: 1.5px solid var(--cream); color: var(--cream); }
.pill--line:hover { background: var(--cream); color: var(--ink); }
.end-cta .round { width: 52px; height: 52px; }
.end-row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; margin-top: clamp(22px, 4vh, 40px); }
.end-text { font-size: clamp(1.02rem, 1.5vw, 1.25rem); max-width: 27em; opacity: .9; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between;
  margin-top: clamp(26px, 4vh, 44px); padding-top: 16px; border-top: 1px solid rgba(245, 234, 216, .2);
  font: 400 12px/1.6 var(--mono); letter-spacing: .04em;
}
.foot { padding-bottom: 60px; }      /* keeps the last footer links clear of the WhatsApp button */
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.tab-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-brand img { height: 26px; width: auto; }
.foot a { opacity: .72; }
.foot a:hover { opacity: 1; color: var(--copper); }
.foot a[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; font-size: 14px; }

/* ---------- language link in the top-right notch ---------- */
.lang {
  display: inline-grid; place-items: center; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); font: 700 14px/1 var(--text);
  transition: background-color .25s, color .25s;
}
.lang:hover { background: var(--ink); color: var(--cream); }
.lang[lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif; font-size: 15px; }
@media (max-width: 479px) {
  .notch--cta .round { display: none; }
  .notch--cta .pill { padding: 0 16px; }
  .lang { height: 42px; min-width: 42px; padding: 0 10px; }
  .notch--cta .pill { height: 42px; }
  .brand img { height: 26px; }
  .notch--brand { padding-inline: 14px 16px; }
}

/* ---------- drawn arrows: the same shape in both languages, never a font glyph or an emoji ---------- */
.ico {
  display: inline-block; width: .82em; height: .82em; vertical-align: -.07em; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .ico--flip { scale: -1 1; }

/* ---------- phones: the clock sits small in the corner of the panel, beside the press button ---------- */
.mini-clock {
  position: absolute; top: 12px; inset-inline-end: 16px;
  display: grid; justify-items: end; gap: 4px; text-align: end;
}
.mini-clock b { font: 400 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.mini-state { display: inline-flex; align-items: center; gap: 5px; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mini-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .35; transition: background-color .3s, opacity .3s; }
.is-touch .mini-state::before { background: var(--copper); opacity: 1; }
.is-ok .mini-state { color: var(--yes); font-weight: 600; }
.is-ok .mini-state::before { background: var(--yes); opacity: 1; }
[dir="rtl"] .mini-clock b { font-weight: var(--ar-dw); }
[dir="rtl"] .mini-state { font-size: 11px; }
@media (max-width: 899px) { .tab--clock { display: none; } }
@media (min-width: 900px) { .mini-clock { display: none; } }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- narrow screens: keep the illustrations inside their cards ---------- */
@media (max-width: 899px) { .job-body { grid-template-columns: minmax(0, 1fr); } }
.job-art { min-width: 0; }
.tree-hub b { white-space: nowrap; }
@media (max-width: 620px) {
  .tree-hub small { display: none; }
  .tree-sum { flex-direction: column; gap: 4px; }
  .roles { font-size: 13px; }
  .roles th, .roles td { padding: 11px 3px; }
  .roles thead th { font-size: 9px; letter-spacing: .04em; }
  .job-art { padding-inline: 14px; }
}

/* ---------- small phones ---------- */
.job:nth-child(1) { --i: 0; } .job:nth-child(2) { --i: 1; } .job:nth-child(3) { --i: 2; } .job:nth-child(4) { --i: 3; }
@media (max-width: 899px) {
  .job-rim { height: 42px; }
  .job-body { gap: 16px; padding: 18px 16px 16px; }
  .job-copy h3 { font-size: 1.55rem; }
  .job-copy p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
  .job-art { min-height: 0; padding: 14px 12px; }
  .tree-hub { padding: 7px 10px 7px 7px; }
  .tree-hub img { width: 32px; height: 32px; }
  .tree-sites li { padding: 7px 4px 6px; }
  .tree-sum { margin-top: 10px; padding-top: 8px; }
  .roles th, .roles td { padding-block: 9px; }
  .slip { padding: 14px 16px 24px; }
  .slip dl > div { padding: 5px 0; }
  .slip-total { padding-top: 9px; }
  .sites-live li { padding: 9px 0; }
  /* the script turns this on when the tallest card fits under the three rims above it */
  .stack.is-stack { gap: 0; }
  .stack.is-stack .job { position: sticky; top: calc(8px + var(--i) * 42px); height: var(--jh); margin-bottom: 16px; display: flex; flex-direction: column; }
  .stack.is-stack .job-body { flex: 1; align-content: space-between; }
}
/* phones: the same picture as the wide layout — the account on top, one wire down to each of the four
   branches in a row — with the headcount as the figure on each branch so nothing has to shrink to fit */
@media (max-width: 480px) {
  .tree-wires .wires path { stroke-width: 2; }
  .tree-wires .pulses path { stroke-width: 6.5; }
  .tree .tree-sites li { margin: 0 2.5px; padding: 7px 2px 7px; gap: 3px; border-radius: 9px; align-content: start; }
  .tree-sites b { display: grid; align-content: center; min-height: 2.3em; font-size: 10px; line-height: 1.15; letter-spacing: -.01em; }
  .tree-sites span { display: grid; justify-items: center; gap: 2px; font-size: 8.5px; letter-spacing: .02em; opacity: 1; }
  .tree-sites strong { font: 400 1.3rem/1 var(--display); }
  .tree-sites em { opacity: .7; }
  [dir="rtl"] .tree-sites b { font-size: 11.5px; }
  [dir="rtl"] .tree-sites span { font-size: 10px; }
}
@media (max-width: 350px) {
  .art-branches { padding-inline: 6px; }
  .tree { grid-template-columns: minmax(0, 1fr); }
  .tree-hub { gap: 7px; padding: 6px 8px 6px 6px; }
  .tree-hub img { width: 26px; height: 26px; }
  .tree-hub b { font-size: .95rem; }
  .tree-hub em { font-size: 9px; padding: 4px 5px; }
  .tree .tree-sites li { margin: 0 2px; }
  .tree-sites b { font-size: 9.5px; }
  [dir="rtl"] .tree-sites b { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .notes { gap: 18px 14px; }
  .note { font-size: 12.5px; }
  .note b { font-size: 14px; }
  .matrix thead th { font-size: 9.5px; }
  .seg button { padding: 8px 10px; font-size: 12.5px; }
}

/* ---------- reduced motion: show the settled state, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement .wd { opacity: 1; }
  .js .slip-stamp { opacity: 1; }
  .js .roles i.on { transform: none; }
  .rig-tilt { transform: none; }
  .band-track { transform: none; }
}

/* =====================================================================
   Arabic (RTL) — same design, mirrored. The heading font is a variable so
   the five candidates can be compared on the real page.
   ===================================================================== */
html[dir="rtl"] {
  --ar-display: 'Lalezar'; --ar-text: 'IBM Plex Sans Arabic'; --ar-dw: 400; --ar-lh: 1.22; --ar-hero-lh: 1.04;
  --display: var(--ar-display), 'Caprasimo', Tahoma, serif;
  --text: var(--ar-text), 'Figtree', 'Segoe UI', Tahoma, sans-serif;
  --mono: var(--ar-text), 'IBM Plex Mono', Tahoma, sans-serif;
}

[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }   /* Arabic letters join: never track them */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] .fig { font: 500 12.5px/1.5 var(--mono); text-transform: none; opacity: .7; }
[dir="rtl"] .job-rim { font-size: 13px; }
[dir="rtl"] :is(.display, .hero-title .w, .tab-title, .punch-time, .job-copy h3, .tree-hub b, .tree-sum b, .slip-total, .tester-at, .statement, .steps h3, .band-track, .end-title, .phone-hello, .contact-list a) { font-weight: var(--ar-dw); }
[dir="rtl"] :is(.display, .job-copy h3, .steps h3, .tab-title, .phone-hello, .band-track) { line-height: var(--ar-lh); }
[dir="rtl"] .statement { line-height: calc(var(--ar-lh) + .16); }
[dir="rtl"] .hero-title .w { line-height: var(--ar-hero-lh); font-size: var(--fs, 14.5vw); }
[dir="rtl"] .end-title { line-height: calc(var(--ar-hero-lh) + .16); }
[dir="rtl"] .contact-list a { line-height: 1.3; }
[dir="rtl"] .note { line-height: 1.5; }
[dir="rtl"] .tab-text { line-height: 1.6; }
[dir="rtl"] .job-copy p, [dir="rtl"] .lead { line-height: 1.75; }

/* hero: logo on the right, sign-in on the left, first line of the title on the right */
[dir="rtl"] .notch--brand { left: auto; right: 0; padding: 11px 16px 13px 20px; border-radius: 0 0 0 var(--n); }
[dir="rtl"] .notch--brand::before { left: auto; right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
[dir="rtl"] .notch--brand::after { left: auto; right: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
[dir="rtl"] .notch--cta { right: auto; left: 0; padding: 0 12px 12px 0; border-radius: 0 0 var(--n) 0; }
[dir="rtl"] .notch--cta::before { right: auto; left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
[dir="rtl"] .notch--cta::after { right: auto; left: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--n) - .5px), var(--cream) var(--n)); }
[dir="rtl"] .hero-title .w2 { text-align: left; }
[dir="rtl"] .tab { direction: rtl; }
[dir="rtl"] .press-fill { transform-origin: 100% 50%; }
[dir="rtl"] .round svg { transform: scaleX(-1); }
@media (max-width: 899px) {
  [dir="rtl"] .tab--r { order: 5; padding-bottom: 24px; }
  [dir="rtl"] .tab--l { order: 6; padding-bottom: 28px; }
}
@media (min-width: 900px) {
  [dir="rtl"] .hero-fig { left: auto; right: var(--edge); }
  [dir="rtl"] .hero-title .w1 { left: auto; right: var(--edge); translate: calc(var(--hs, 0) * 6vw) 0; }
  [dir="rtl"] .hero-title .w2 { right: auto; left: var(--edge); translate: calc(var(--hs, 0) * -6vw) 0; }
  [dir="rtl"] .tabs { direction: ltr; }                       /* keep the three shapes where they are */
  [dir="rtl"] .tab--l { padding-right: 26px; }
  [dir="rtl"] .tab--r { padding-left: 26px; }
}

/* the rest of the page */
[dir="rtl"] .rim-end { margin-left: 0; margin-right: auto; }
[dir="rtl"] .roles tbody th, [dir="rtl"] .roles thead th:first-child, [dir="rtl"] .matrix tbody th { text-align: right; }
[dir="rtl"] .seg button + button, [dir="rtl"] .req-tabs button + button { border-left: 0; border-right: 1.5px solid var(--ink); }
[dir="rtl"] .sl-num { text-align: left; }
[dir="rtl"] .band-track { transform: translate3d(calc(var(--bx, 0) * 1px), 0, 0); }
[dir="rtl"] .wa { right: auto; left: max(16px, env(safe-area-inset-left)); }
[dir="rtl"] .wa-bubble { border-radius: 18px 18px 18px 5px; transform-origin: 0 100%; }
[dir="rtl"] .wa-close { right: auto; left: 8px; }
[dir="rtl"] .wa-who { padding-right: 0; padding-left: 30px; }
[dir="rtl"] .wa-msg { border-radius: 14px 4px 14px 14px; }
[dir="rtl"] .wa-float:hover .wa-float-label, [dir="rtl"] .wa-float:focus-visible .wa-float-label { margin-left: 0; margin-right: 10px; }
@media (min-width: 980px) { [dir="rtl"] .boss { margin-left: 0; margin-right: 34%; } }
