/* =====================================================
   AYAN Codex - Home page (2026 redesign)
   The client's homepage mock: a photo hero with four result cards lapping over its lower edge,
   an inset navy product panel, quiet light bands of icon columns and cards, one navy band for
   engagement models. Colour: the logo's ink navy, white paper, a warm stone band and one emerald
   with a single job (action, link, selected, checked). No neon, no glow, no gradient text.
   Everything is scoped under .hm, because tailwind.min.css loads after this file and its
   preflight would otherwise win on equal specificity.
   ===================================================== */

.hm {
    --navy: #01153A; --navy-2: #0F244A; --navy-line: #283C62; --screen: #07142D; --bezel: #0A1122;
    --head: #01153A; --ink: #1A2233; --muted: #5E6879;
    --paper: #FFFFFF; --soft: #F5F4F0; --line: #E3E2DB;
    --accent: #156C4E; --accent-soft: #E6EFE9;
    --cta: #1E7B59; --on-cta: #FFFFFF;
    --on-navy: #FFFFFF; --on-navy-muted: #B7BECB; --accent-on-navy: #8FC0A0;
    --chart: #86A0C7; --alert: #DB8474; --metal: #C6CCD8; --metal-2: #8D96A8;
    --display: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;
    --body: 'Almarai', 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --r: 12px; --r-lg: 18px;
    --header-h: 68px;
    --shadow: 0 1px 2px rgba(1, 21, 58, .06), 0 14px 30px -20px rgba(1, 21, 58, .34);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.75;
}
.hm a { color: inherit; text-decoration: none; }
.hm :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hm .navy :focus-visible { outline-color: var(--accent-on-navy); }
.hm h1, .hm h2, .hm h3 { font-family: var(--display); color: var(--head); margin: 0; text-wrap: balance; }
.hm p { margin: 0; }
.hm ul, .hm ol { margin: 0; padding: 0; list-style: none; }
.hm .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; }
/* the second stroke of the two-tone icons; it inks itself in when its block arrives */
.hm .ia { stroke: var(--ic-accent, var(--accent)); animation: var(--ia-name, none) .9s var(--ease) var(--ia-wait, 0ms) both; }
@keyframes hm-ink { from { stroke-dasharray: 44; stroke-dashoffset: 44; } to { stroke-dasharray: 44; stroke-dashoffset: 0; } }
 .hm .why, .hm .proof { --ia-name: hm-ink; --ia-wait: 300ms; }
.hm .navy { --ic-accent: var(--accent-on-navy); }
.hm bdi { unicode-bidi: isolate; }

/* reveal: only elements that start below the fold are held back, and only once the script is running */
.hm .rise { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.hm .rise.pre { opacity: 0; transform: translateY(26px); transition: none; --ia-name: none; }

/* buttons */
.hm .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent; font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s; }
.hm .btn .ic { width: 18px; height: 18px; }
.hm .btn:hover { transform: translateY(-2px); }
.hm .btn-cta { background: var(--cta); color: var(--on-cta); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.hm .btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--on-navy); }
.hm .btn-ghost:hover { border-color: var(--on-navy); }

/* hero */
.hm .hero { position: relative; isolation: isolate; background: var(--navy); color: var(--on-navy); text-align: center; overflow: hidden; }

.hm .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 21, 58, .93) 0%, rgba(1, 21, 58, .76) 48%, rgba(1, 21, 58, .55) 100%); }
.hm .eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.hm .navy .eyebrow { color: var(--accent-on-navy); }
.hm .hero h1 { color: var(--on-navy); font-weight: 800; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.3; max-width: 19em; }

.hm .hero .tag { font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.5vw, 20px); color: var(--on-navy); }
.hm .cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; align-items: center; margin-top: 10px; }
.hm .hero .btn { min-height: 50px; padding: 0 26px; }

/* results: cards lapping over the hero edge */
.hm .outcomes { margin-top: -96px; position: relative; z-index: 3; }
.hm .outcomes .after { margin-top: 18px; text-align: center; color: var(--muted); }

/* shared section scaffolding */
.hm .sec { padding-block: 68px; }
.hm #why { padding-bottom: 34px; }
.hm #projects { padding-block: 34px 44px; }
.hm #services { padding-block: 48px; }

/* flagship product: an inset navy panel */
.hm .panel-sec { padding: 52px 16px 20px; }
.hm .panel { max-width: 1392px; margin-inline: auto; background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.hm .erp { padding: 44px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.2fr) minmax(0, 1.28fr); gap: 40px; align-items: center; }
.hm .erp h2, .hm .erp h3 { color: var(--on-navy); }
/* the product is named first in the source; the module list is shown first, as in the mock */
.hm .mods { order: -1; }
.hm .mods h3 { font-size: 16px; font-weight: 700; color: var(--accent-on-navy); margin-bottom: 14px; }
.hm .mods ul { display: grid; gap: 9px; }
.hm .mod { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 14px; background: var(--navy-2); color: var(--on-navy); border: 1px solid transparent; border-radius: 10px; font-family: var(--body); font-weight: 700; font-size: 14.5px; line-height: 1.4; text-align: start; cursor: pointer; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.hm .mod .chip { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; transition: background-color .3s, color .3s; }
.hm .mod .ic { width: 18px; height: 18px; }
.hm .mod:hover { transform: translateX(-4px); }
[dir="ltr"] .hm .mod:hover { transform: translateX(4px); }
.hm .mod[aria-pressed="true"] { border-color: rgba(143, 192, 160, .7); background: color-mix(in srgb, var(--accent-on-navy) 10%, var(--navy-2)); }
.hm .mod[aria-pressed="true"] .chip { background: var(--cta); color: var(--on-cta); }
.hm .erp-text { display: grid; gap: 12px; }
.hm .erp-text h2 { font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; }
.hm .erp-text > p { color: var(--on-navy-muted); font-size: 16px; }
.hm .checks { display: grid; gap: 9px; margin-top: 4px; }
.hm .checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hm .checks li span, .hm .model li span { min-width: 0; }
.hm .checks .ic { width: 20px; height: 20px; color: var(--accent-on-navy); margin-top: 4px; }
.hm .erp-text .cta-row { justify-content: flex-start; margin-top: 12px; }
.hm .laptop { transform: perspective(1500px) rotateY(9deg) rotateX(2deg); transform-origin: 20% 60%; transition: transform .8s var(--ease); }
[dir="ltr"] .hm .laptop { transform: perspective(1500px) rotateY(-9deg) rotateX(2deg); transform-origin: 80% 60%; }
.hm .laptop:hover, [dir="ltr"] .hm .laptop:hover { transform: perspective(1500px) rotateY(2deg) rotateX(0deg); }
.hm .screen { aspect-ratio: 16 / 10; background: var(--screen); border: 9px solid var(--bezel); border-radius: 14px 14px 3px 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--navy-line), 0 30px 50px -30px #000; }
/* keyboard deck, seen from slightly above */
.hm .base { height: 42px; margin-inline: -6%; border-radius: 0 0 14px 14px; clip-path: polygon(5.4% 0, 94.6% 0, 100% 76%, 100% 100%, 0 100%, 0 76%); background: linear-gradient(var(--navy) 0 3px, var(--navy-line) 3px 76%, var(--metal-2) 76% 100%); position: relative; }
.hm .base::after { content: ""; position: absolute; top: 76%; left: 50%; width: 16%; height: 4px; transform: translateX(-50%); background: var(--metal); border-radius: 0 0 8px 8px; }
/* the app on the laptop screen (_ErpScreens): sizes in container units so it scales with the laptop.
   One screen per kind of module; home.js shows the selected one and replays its motion. */
.hm .screen { position: relative; container-type: inline-size; }
.hm .e-app { --warm: #E3B26B; position: absolute; inset: 0; display: grid; grid-template-columns: 17cqw minmax(0, 1fr); font-family: var(--body); font-size: 1.55cqw; line-height: 1.45; color: var(--on-navy); }
.hm .e-side { background: rgba(255, 255, 255, .05); padding: 1.6cqw 1.2cqw; display: grid; align-content: start; gap: .6cqw; }
.hm .e-brand { display: flex; align-items: center; gap: .8cqw; font: 800 1.6cqw var(--display); margin-bottom: 1cqw; white-space: nowrap; }
.hm .e-brand i { width: 2.2cqw; height: 2.2cqw; border-radius: .5cqw; background: var(--accent-on-navy); }
.hm .e-nav { display: flex; align-items: center; gap: .7cqw; padding: .5cqw .7cqw; border-radius: .6cqw; color: var(--on-navy-muted); font-size: 1.3cqw; white-space: nowrap; overflow: hidden; transition: background-color .3s, color .3s; }
.hm .e-nav.on { background: rgba(143, 192, 160, .16); color: var(--on-navy); }
.hm .e-nav b { width: .7cqw; height: .7cqw; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }
.hm .e-nav.on b { background: var(--accent-on-navy); opacity: 1; }
.hm .e-main { padding: 1.6cqw 1.8cqw; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.2cqw; min-width: 0; }
.hm .e-top { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.hm .e-ttl { font: 800 2.1cqw var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .e-pill { font-size: 1.2cqw; color: var(--on-navy-muted); border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; padding: .25cqw 1cqw; white-space: nowrap; }
.hm .e-demo { margin-inline-start: auto; margin-inline-end: 1cqw; font-size: 1.05cqw; color: #E3B26B; border: 1px dashed rgba(227, 178, 107, .55); border-radius: 99px; padding: .2cqw .9cqw; white-space: nowrap; }
.hm .e-views { position: relative; min-height: 0; }
.hm .e-view { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.2cqw; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.hm .e-view.on { opacity: 1; visibility: visible; }
.hm .e-card { background: rgba(255, 255, 255, .055); border-radius: 1cqw; padding: 1.1cqw 1.3cqw; min-width: 0; min-height: 0; position: relative; overflow: hidden; }
.hm .e-h { display: block; margin-bottom: .7cqw; font-weight: 700; font-size: 1.25cqw; color: var(--on-navy-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .e-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2cqw; }
.hm .e-v { display: block; font: 800 2.5cqw/1.35 var(--display); white-space: nowrap; }
.hm .e-v small { font-size: 1.2cqw; color: var(--on-navy-muted); font-weight: 700; }
.hm .e-d { display: block; font-size: 1.15cqw; color: var(--accent-on-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .e-d.down { color: var(--alert); }
.hm .e-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2cqw; min-height: 0; }
.hm .e-row > .e-card { display: flex; flex-direction: column; gap: .7cqw; }
.hm .e-row > .e-card > .e-h { margin-bottom: 0; flex: none; }
.hm .e-pay { flex: 1 1 auto; align-content: space-evenly; }
/* short lists sit as a group in the middle of what their card has left */
.hm .e-row .e-ledger, .hm .e-row .e-alerts, .hm .e-row .e-machines, .hm .e-row .e-channels, .hm .e-row .e-timeline, .hm .e-row .e-tasks { margin-block: auto; gap: 1.5cqw; }
.hm .e-muted { color: var(--on-navy-muted); }
.hm .e-num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hm .e-bar { display: block; height: 1cqw; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hm .e-bar i { display: block; height: 100%; width: 0; background: var(--accent-on-navy); border-radius: 99px; }
.hm .e-r { display: flex; justify-content: space-between; gap: 1cqw; }

/* finance: a balance sheet that balances, revenue against expenses, journal entries */
.hm .e-bs { display: flex; gap: 1.2cqw; align-items: flex-end; height: 24cqw; flex: none; }
.hm .e-bs > * { flex: 1 1 0; }
.hm .e-col { display: flex; flex-direction: column; justify-content: flex-end; gap: .3cqw; height: 100%; }
.hm .e-seg { flex: none; border-radius: .4cqw; display: flex; align-items: center; justify-content: space-between; gap: .4cqw; padding: 0 .8cqw; font-size: 1.05cqw; color: #04122E; font-weight: 700; white-space: nowrap; overflow: hidden; transform-origin: bottom; transform: scaleY(0); }
.hm .e-view.on .e-seg { animation: erp-grow .8s var(--ease) var(--d, 0s) forwards; }
.hm .e-bs.e-lbls { height: auto; text-align: center; font-size: 1.15cqw; color: var(--on-navy-muted); margin-top: .5cqw; }
.hm .e-eq { text-align: center; font-size: 1.15cqw; color: var(--accent-on-navy); margin-top: .4cqw; opacity: 0; }
.hm .e-view.on .e-eq { animation: erp-fade .5s 1.6s forwards; }
.hm .e-line { width: 100%; height: 15cqw; display: block; flex: none; }
.hm .e-line path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.hm .e-line .rev { stroke: var(--accent-on-navy); }
.hm .e-line .exp { stroke: var(--warm); }
.hm .e-view.on .e-line .rev { animation: erp-draw 1.6s .3s var(--ease) forwards; }
.hm .e-view.on .e-line .exp { animation: erp-draw 1.6s .6s var(--ease) forwards; }
.hm .e-legend { display: flex; gap: 1.2cqw; font-size: 1.1cqw; color: var(--on-navy-muted); }
.hm .e-legend i { display: inline-block; width: 1cqw; height: .35cqw; border-radius: 99px; margin-inline-end: .4cqw; vertical-align: middle; }
.hm .e-ledger { display: grid; gap: .45cqw; font-size: 1.1cqw; }
.hm .e-ledger div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1cqw; align-items: center; padding: .35cqw .6cqw; border-radius: .5cqw; background: rgba(255, 255, 255, .04); white-space: nowrap; opacity: 0; transform: translateY(.8cqw); }
.hm .e-ledger div > :first-child { overflow: hidden; text-overflow: ellipsis; }
.hm .e-view.on .e-ledger div { animation: erp-rise .5s var(--ease) var(--d, 0s) forwards; }
.hm .e-ledger .dr { color: var(--accent-on-navy); }
.hm .e-ledger .cr { color: var(--warm); }

/* people: the team with who is in, the payroll run that ends approved */
.hm .e-people { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1cqw 1.4cqw; padding-inline: 1cqw; }
.hm .e-p { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 1.35cqw var(--display); color: #04122E; position: relative; }
.hm .e-people .e-p { opacity: 0; transform: scale(.6); }
.hm .e-view.on .e-people .e-p { animation: erp-pop .45s var(--ease) var(--d, 0s) forwards; }
.hm .e-people .e-p::after { content: ""; position: absolute; bottom: 4%; inset-inline-start: 4%; width: 26%; height: 26%; border-radius: 50%; background: var(--accent-on-navy); border: .25cqw solid var(--screen); }
.hm .e-people .e-p.away::after { background: var(--warm); }
.hm .e-tags { display: flex; flex-wrap: wrap; gap: .5cqw; margin-top: .9cqw; }
.hm .e-tags span { font-size: 1.05cqw; padding: .2cqw .8cqw; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--on-navy-muted); }
.hm .e-pay { display: grid; gap: .6cqw; font-size: 1.2cqw; }
.hm .e-pay .e-r > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm .e-view.on .e-pay .e-bar i { animation: erp-fill 2.4s .4s var(--ease) forwards; }
.hm .e-net { align-items: baseline; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: .6cqw; }
.hm .e-net b { font: 800 2cqw var(--display); }
.hm .e-card:has(.e-stamp) { padding-bottom: 4cqw; }
.hm .e-stamp { position: absolute; inset-inline-start: 1.2cqw; bottom: 1cqw; font: 800 1.15cqw var(--display); color: var(--accent-on-navy); border: .2cqw solid var(--accent-on-navy); border-radius: .5cqw; padding: .1cqw .7cqw; transform: rotate(-8deg) scale(1.6); opacity: 0; }
.hm .e-view.on .e-stamp { animation: erp-stamp .4s 2.9s var(--ease) forwards; }

/* inventory: stock against the reorder line, a shipment on its way */
.hm .e-stock { display: flex; gap: 1cqw; align-items: flex-end; height: 27cqw; position: relative; flex: none; }
.hm .e-stock::after { content: ""; position: absolute; inset-inline: 0; bottom: 30%; border-top: 1px dashed var(--warm); }
.hm .e-sku { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3cqw; height: 100%; }
.hm .e-sku i { width: 100%; border-radius: .4cqw .4cqw .15cqw .15cqw; background: var(--chart); height: var(--h); transform-origin: bottom; transform: scaleY(0); }
.hm .e-sku.low i { background: var(--alert); }
.hm .e-view.on .e-sku i { animation: erp-grow 1s var(--ease) var(--d, 0s) forwards; }
.hm .e-sku span { font-size: 1cqw; color: var(--on-navy-muted); white-space: nowrap; }
.hm .e-route { position: relative; height: 11cqw; flex: none; }
.hm .e-track { position: absolute; top: 50%; inset-inline: 2cqw; border-top: .25cqw dashed rgba(255, 255, 255, .25); }
.hm .e-node { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.05cqw; color: var(--on-navy-muted); display: grid; justify-items: center; gap: .2cqw; white-space: nowrap; }
.hm .e-node i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--navy-line); border: .25cqw solid var(--accent-on-navy); }
.hm .e-truck { position: absolute; top: 50%; inset-inline-start: 2cqw; transform: translateY(-95%); width: 3.6cqw; height: 2.2cqw; }
[dir="rtl"] .hm .e-truck { transform: translateY(-95%) scaleX(-1); }
.hm .e-view.on .e-truck { animation: erp-drive 4.5s .5s var(--ease) infinite; }
.hm .e-alerts { display: grid; gap: .5cqw; font-size: 1.1cqw; }
.hm .e-alerts div { display: flex; justify-content: space-between; gap: 1cqw; padding: .4cqw .6cqw; border-radius: .5cqw; background: rgba(219, 132, 116, .12); white-space: nowrap; }
.hm .e-alerts div > :first-child { overflow: hidden; text-overflow: ellipsis; }
.hm .e-alerts div.ok { background: rgba(143, 192, 160, .12); }

/* production: units travel the line through four stations, machines report their load */
.hm .e-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8cqw; font-size: 1.05cqw; color: var(--on-navy-muted); text-align: center; }
.hm .e-stations div { display: grid; justify-items: center; gap: .5cqw; padding: 1cqw .2cqw; border-radius: .6cqw; background: rgba(255, 255, 255, .04); white-space: nowrap; }
.hm .e-stations i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--navy-line); }
.hm .e-view.on .e-stations i { animation: erp-blink 2.8s var(--d, 0s) infinite; }
.hm .e-belt { position: relative; flex: none; height: 6cqw; margin: .6cqw 0; border-radius: .6cqw; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 .25cqw, transparent .25cqw 2.4cqw), rgba(255, 255, 255, .04); background-size: 2.4cqw 100%, auto; overflow: hidden; }
.hm .e-belt i { position: absolute; top: 1.2cqw; width: 3.6cqw; height: 3.6cqw; border-radius: .35cqw; background: var(--chart); inset-inline-start: var(--x); box-shadow: inset 0 -.4cqw 0 rgba(0, 0, 0, .18); }
.hm .e-view.on .e-belt { animation: erp-belt .6s linear infinite; }
.hm .e-view.on .e-belt i { animation: erp-convey 6s linear var(--d, 0s) infinite; }
[dir="rtl"] .hm .e-view.on .e-belt { animation-direction: reverse; }
.hm .e-machines, .hm .e-channels { display: grid; gap: .75cqw; font-size: 1.1cqw; }
.hm .e-machines div, .hm .e-channels div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 3.2cqw; gap: .8cqw; align-items: center; white-space: nowrap; }
.hm .e-machines div > :first-child { display: flex; align-items: center; gap: .6cqw; overflow: hidden; }
.hm .e-machines b { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--accent-on-navy); flex: none; }
.hm .e-machines .hold b { background: var(--warm); }
.hm .e-machines .e-note { grid-column: span 2; color: var(--warm); font-size: 1.05cqw; }
.hm .e-view.on .e-machines .e-bar i, .hm .e-view.on .e-channels .e-bar i { animation: erp-fill 1.2s var(--ease) var(--d, 0s) forwards; }
.hm .e-view.on .e-machines b { animation: erp-blink 2.4s var(--d, 0s) infinite; }

/* sales: a deal moves through the pipeline, the month's target fills */
.hm .e-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9cqw; flex: 1 1 auto; min-height: 15cqw; position: relative; }
.hm .e-stage { background: rgba(255, 255, 255, .04); border-radius: .8cqw; padding: .7cqw; display: grid; align-content: start; gap: .5cqw; min-width: 0; }
.hm .e-sh { font-weight: 700; font-size: 1.05cqw; color: var(--on-navy-muted); display: flex; justify-content: space-between; gap: .4cqw; white-space: nowrap; }
.hm .e-deal, .hm .e-mover { border-radius: .5cqw; padding: .45cqw .6cqw; font-size: 1.05cqw; display: grid; gap: .1cqw; white-space: nowrap; overflow: hidden; }
.hm .e-deal { background: rgba(255, 255, 255, .08); }
.hm .e-deal b, .hm .e-mover b { font-size: 1.1cqw; overflow: hidden; text-overflow: ellipsis; }
.hm .e-deal.won { background: rgba(143, 192, 160, .2); }
.hm .e-mover { position: absolute; top: 3.4cqw; width: calc((100% - 2.7cqw) / 4 - 1.4cqw); inset-inline-start: .7cqw; background: var(--cta); color: #fff; box-shadow: 0 .6cqw 1.4cqw -.6cqw #000; }
.hm .e-view.on .e-mover { animation: erp-move 6s .6s var(--ease) infinite; }
.hm .e-ring { width: 16cqw; height: 16cqw; display: block; margin: auto auto 0; flex: none; }
.hm .e-ring circle { fill: none; stroke-width: 9; }
.hm .e-ring .bg { stroke: rgba(255, 255, 255, .1); }
.hm .e-ring .fg { stroke: var(--accent-on-navy); stroke-linecap: round; stroke-dasharray: 0 999; transform: rotate(-90deg); transform-origin: 50% 50%; }
.hm .e-view.on .e-ring .fg { animation: erp-ring 1.8s .4s var(--ease) forwards; }
.hm .e-ringlbl { display: grid; text-align: center; margin: -10.2cqw 0 auto; padding-bottom: 6cqw; font: 800 2.4cqw/1.3 var(--display); }
.hm .e-ringlbl small { font: 700 1cqw var(--body); color: var(--on-navy-muted); }

/* customers: one account with its recent history, how customers reach us */
.hm .e-who { flex: none; display: grid; grid-template-columns: 3.4cqw minmax(0, 1fr) auto; gap: .9cqw; align-items: center; padding-bottom: .8cqw; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hm .e-who > span:nth-child(2) { display: grid; white-space: nowrap; overflow: hidden; }
.hm .e-who b { font: 800 1.35cqw var(--display); overflow: hidden; text-overflow: ellipsis; }
.hm .e-who small { font-size: 1.05cqw; color: var(--on-navy-muted); overflow: hidden; text-overflow: ellipsis; }
.hm .e-badge { font-size: 1cqw; padding: .2cqw .8cqw; border-radius: 99px; background: rgba(143, 192, 160, .18); color: var(--accent-on-navy); white-space: nowrap; }
.hm .e-timeline { position: relative; display: grid; gap: .55cqw; font-size: 1.1cqw; padding-inline-start: 1.8cqw; }
.hm .e-timeline::before { content: ""; position: absolute; inset-block: .6cqw; inset-inline-start: .45cqw; border-inline-start: .2cqw solid rgba(255, 255, 255, .14); }
.hm .e-timeline div { position: relative; display: flex; justify-content: space-between; gap: 1cqw; white-space: nowrap; opacity: 0; transform: translateY(.8cqw); }
.hm .e-timeline div > :nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.hm .e-timeline b { position: absolute; inset-inline-start: -1.8cqw; top: .45cqw; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--chart); border: .2cqw solid var(--screen); }
.hm .e-timeline .ok b { background: var(--accent-on-navy); }
.hm .e-view.on .e-timeline div { animation: erp-rise .5s var(--ease) var(--d, 0s) forwards; }
.hm .e-channels div { grid-template-columns: 6cqw minmax(0, 1fr) 3.2cqw; }
.hm .e-stars { display: grid; justify-items: center; gap: .2cqw; font-size: 1.05cqw; }
.hm .e-stars span:first-child { color: var(--warm); font-size: 2cqw; letter-spacing: .3cqw; }

/* projects: a Gantt with a today line, today's tasks ticking off */
.hm .e-gantt { display: grid; gap: .55cqw; font-size: 1.1cqw; position: relative; flex: 1 1 auto; align-content: space-evenly; }
.hm .e-gh { display: grid; grid-template-columns: 9.5cqw repeat(6, minmax(0, 1fr)); color: var(--on-navy-muted); font-size: 1cqw; white-space: nowrap; }
.hm .e-t { display: grid; grid-template-columns: 9.5cqw minmax(0, 1fr); align-items: center; gap: .5cqw; white-space: nowrap; }
.hm .e-lane { position: relative; height: 2cqw; background: rgba(255, 255, 255, .03); border-radius: 99px; }
.hm .e-lane i { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--s); width: 0; border-radius: 99px; background: var(--chart); }
.hm .e-lane i.done { background: var(--accent-on-navy); }
.hm .e-lane i.late { background: var(--warm); }
.hm .e-view.on .e-lane i { animation: erp-span 1s var(--ease) var(--d, 0s) forwards; }
.hm .e-today { position: absolute; top: 1.4cqw; bottom: 0; inset-inline-start: calc(10cqw + (100% - 10cqw) * .55); border-inline-start: .2cqw solid var(--alert); opacity: 0; }
.hm .e-today::before { content: attr(data-label); position: absolute; top: -1.5cqw; inset-inline-start: -2cqw; font-size: .95cqw; color: var(--alert); white-space: nowrap; }
.hm .e-view.on .e-today { animation: erp-fade .4s 1.4s forwards; }
.hm .e-tasks { display: grid; gap: .5cqw; font-size: 1.1cqw; }
.hm .e-tasks div { display: flex; align-items: center; gap: .7cqw; white-space: nowrap; }
.hm .e-box { width: 1.5cqw; height: 1.5cqw; border-radius: .35cqw; border: .2cqw solid var(--on-navy-muted); display: grid; place-items: center; flex: none; }
.hm .e-box svg { width: 1.1cqw; height: 1.1cqw; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; }
.hm .e-view.on .e-tasks .e-box { animation: erp-tick .3s var(--d, 0s) forwards; }
.hm .e-view.on .e-tasks .e-box svg { animation: erp-draw .35s var(--d, 0s) forwards; }

/* reports: filters, revenue by branch, the year's monthly sales */
.hm .e-filter { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; padding: .8cqw 1.3cqw; }
.hm .e-filter .e-h { margin: 0; }
.hm .e-chips { display: flex; gap: .6cqw; }
.hm .e-chips span { font-size: 1.05cqw; padding: .25cqw .9cqw; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--on-navy-muted); white-space: nowrap; }
.hm .e-chips span.on { background: var(--cta); color: #fff; }
.hm .e-row > .e-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2cqw; align-items: center; align-content: space-evenly; }
.hm .e-split .e-h { grid-column: 1 / -1; margin: 0; }
.hm .e-donut { width: 15cqw; height: 15cqw; display: block; }
.hm .e-donut circle { fill: none; stroke-width: 14; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 0 999; }
.hm .e-view.on .e-donut circle { animation: erp-ring 1.4s var(--ease) var(--d, 0s) forwards; }
.hm .e-dl { display: grid; gap: .4cqw; font-size: 1.05cqw; white-space: nowrap; }
.hm .e-dl i { display: inline-block; width: .9cqw; height: .9cqw; border-radius: .2cqw; margin-inline-end: .5cqw; vertical-align: middle; }
.hm .e-bars { display: flex; gap: .5cqw; align-items: flex-end; flex: 1 1 auto; min-height: 10cqw; }
.hm .e-bars i { flex: 1 1 0; border-radius: .3cqw .3cqw 0 0; background: var(--chart); height: var(--h); transform-origin: bottom; transform: scaleY(0); }
.hm .e-bars i.hi { background: var(--accent-on-navy); }
.hm .e-view.on .e-bars i { animation: erp-grow .9s var(--ease) var(--d, 0s) forwards; }
.hm .e-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5cqw; font-size: .9cqw; color: var(--on-navy-muted); text-align: center; margin-top: .3cqw; }

@keyframes erp-grow { to { transform: scaleY(1); } }
@keyframes erp-fade { to { opacity: 1; } }
@keyframes erp-draw { to { stroke-dashoffset: 0; } }
@keyframes erp-rise { to { opacity: 1; transform: none; } }
@keyframes erp-pop { to { opacity: 1; transform: none; } }
@keyframes erp-fill { to { width: var(--w, 100%); } }
@keyframes erp-span { to { width: var(--w); } }
@keyframes erp-ring { to { stroke-dasharray: var(--arc) 999; } }
@keyframes erp-tick { to { background: var(--cta); border-color: var(--cta); } }
@keyframes erp-stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes erp-blink { 0%, 100% { background: var(--navy-line); } 30%, 60% { background: var(--accent-on-navy); } }
@keyframes erp-belt { to { background-position: 2.4cqw 0, 0 0; } }
@keyframes erp-convey { 0% { inset-inline-start: -3cqw; } 100% { inset-inline-start: calc(100% + 1cqw); } }
@keyframes erp-drive { 0% { inset-inline-start: 2cqw; opacity: 0; } 10% { opacity: 1; } 80% { inset-inline-start: calc(100% - 6cqw); opacity: 1; } 100% { inset-inline-start: calc(100% - 6cqw); opacity: 0; } }
@keyframes erp-move {
    0%, 12% { inset-inline-start: .7cqw; }
    28%, 40% { inset-inline-start: calc(25% + .45cqw); }
    56%, 68% { inset-inline-start: calc(50% + .2cqw); }
    84%, 100% { inset-inline-start: calc(75% - .05cqw); }
}

/* why us: icon columns */
.hm .cols { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 30px 26px; text-align: center; }
.hm .why { display: grid; gap: 8px; justify-items: center; align-content: start; }
.hm .why h3, .hm .proof h3 { font-weight: 700; font-size: 17.5px; }
.hm .why p, .hm .proof p { color: var(--muted); font-size: 14.5px; max-width: 24em; }
.hm .case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: opacity .8s var(--ease), transform .6s var(--ease), box-shadow .4s; transition-delay: var(--d, 0ms); }
.hm .case:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hm .tags { position: absolute; top: 12px; inset-inline: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.hm .tags span { font-size: 12px; line-height: 1.9; padding: 0 10px; border-radius: 6px; background: rgba(1, 21, 58, .8); color: var(--on-navy); border: 1px solid var(--navy-line); }
.hm .case h3 { font-weight: 700; font-size: 19px; line-height: 1.5; }
.hm .case p { color: var(--muted); font-size: 14.5px; }

/* process: the line runs from the first disc's centre to the last one's (n columns, 20px gaps) */
.hm .steps { --half: calc((100% - (var(--n, 5) - 1) * 20px) / (2 * var(--n, 5))); position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 20px; padding-top: 30px; }
.hm .steps::before, .hm .steps::after { content: ""; position: absolute; top: 9px; inset-inline: var(--half); height: 2px; border-radius: 2px; background: var(--line); }
.hm .steps::after { background: var(--accent); inset-inline: var(--half) auto; width: calc((100% - 2 * var(--half)) * var(--fill, 1)); transition: width .25s linear; }
.hm .step { display: grid; gap: 4px; align-content: start; justify-items: center; text-align: center; }
.hm .step .n { width: 38px; height: 38px; margin-top: -40px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); color: var(--muted); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; position: relative; z-index: 2; transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.hm .step.on .n { background: var(--navy); border-color: var(--navy); color: var(--on-navy); transform: scale(1.06); }
.hm .step h3 { font-weight: 700; font-size: 18px; margin-top: 10px; }
.hm .step p { color: var(--muted); font-size: 14.5px; max-width: 15em; text-wrap: balance; }
.hm .models { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 22px; }
.hm .model { --ic-accent: var(--accent); background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-content: start; transition: opacity .8s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.hm .model:hover { transform: translateY(-5px); }
.hm .model > .ic { width: 40px; height: 40px; color: var(--head); grid-row: span 2; }
.hm .model h3 { font-weight: 700; font-size: 18px; }
.hm .model > p { color: var(--muted); font-size: 14.5px; max-width: 15em; text-wrap: balance; }
.hm .model ul { grid-column: 1 / -1; display: grid; gap: 7px; margin-top: 12px; font-size: 14.5px; }
/* (40px icon - 17px tick) / 2: each tick sits centred under the card's icon, as in the mock */
.hm .model li { display: flex; gap: 9px; align-items: flex-start; padding-inline-start: 11.5px; }
.hm .model li span { text-wrap: balance; }
.hm .model li .ic { width: 17px; height: 17px; color: var(--accent); margin-top: 5px; stroke-width: 2; }
.hm .proof { display: grid; gap: 6px; justify-items: center; align-content: start; }
.hm .proof p { max-width: 19em; text-wrap: balance; }

/* contact: a second inset navy panel */
.hm #contact { background: var(--soft); padding-top: 0; padding-bottom: 64px; }

@media (max-width: 1080px) {
    .hm .erp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hm .mods { grid-column: 1 / -1; order: 3; }
    .hm .mods ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm .tags { gap: 4px; }
    .hm .tags span { padding: 0 7px; }}
/* five items in three columns: the last two sit centred instead of leaving a hole */
@media (min-width: 861px) and (max-width: 1080px) {
     .hm .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm .five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .hm .five > * { grid-column: span 2; }
    .hm .five > :nth-child(4) { grid-column: 2 / span 2; }}
@media (max-width: 860px) {
    .hm { --header-h: 64px; }
    .hm .hero .btn { width: 100%; max-width: 340px; }
    .hm .outcomes { margin-top: -104px; }
    .hm .sec { padding-block: 56px; }
    .hm #why { padding-bottom: 28px; }
    .hm #projects { padding-block: 28px 40px; }
    .hm #services { padding-block: 44px; }
    .hm .panel-sec { padding-top: 40px; }
    .hm .erp { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; gap: 28px; }
    .hm .erp-visual { order: 2; padding-inline: 4%; }
    .hm .laptop, .hm .laptop:hover, [dir="ltr"] .hm .laptop, [dir="ltr"] .hm .laptop:hover { transform: none; }
    .hm .mods ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm .mod { font-size: 13.5px; padding: 8px 10px; }
    .hm .mod:hover, [dir="ltr"] .hm .mod:hover { transform: none; }
    .hm .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
    .hm .cols > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .hm .case{ scroll-snap-align: start; }
    .hm .case:hover, .hm .model:hover{ transform: none; }
    .hm .steps { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-inline-start: 54px; gap: 22px; }
    .hm .steps::before, .hm .steps::after { top: 0; bottom: 0; height: auto; width: 2px; inset-inline: 18px auto; }
    .hm .steps::after { height: calc(100% * var(--fill, 1)); bottom: auto; }
    .hm .step { position: relative; justify-items: start; text-align: start; }
    .hm .step .n { position: absolute; margin-top: 0; inset-inline-start: -54px; }
    .hm .step h3 { margin-top: 2px; }
    .hm .step p { max-width: none; }
    .hm .models{ grid-template-columns: minmax(0, 1fr); }
    .hm .model > p { max-width: none; }}
/* tablets: two cards to a rail with a peek of the next, and the hero buttons side by side */
@media (min-width: 600px) and (max-width: 860px) {
    .hm .hero .btn { width: auto; max-width: none; }}
@media (max-width: 360px) {
    .hm .mods ul { grid-template-columns: minmax(0, 1fr); }}
@media (prefers-reduced-motion: reduce) {
    .hm .rise, .hm .rise.pre { opacity: 1; transform: none; transition: none; }
     .hm .ia { animation: none; }
    .hm .btn, .hm .mod, .hm .case, .hm .model, .hm .laptop, .hm .step .n, .hm .steps::after { transition: none; }
    /* the laptop screens show their finished state at once, and nothing keeps moving */
    .hm .e-app *, .hm .e-app *::before { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
    .hm .e-view.on .e-belt, .hm .e-view.on .e-belt i, .hm .e-view.on .e-truck, .hm .e-view.on .e-mover, .hm .e-view.on .e-stations i, .hm .e-view.on .e-machines b { animation: none !important; }}