/* =====================================================================
   NAJD AURUM: DOODLES, HERO TILES AND THE SERVICES MAP
   The hand-drawn icons (js/na-doodle.js), the tiles that float around the
   homepage headline, and the map of every service (js/na-cmap.js).
   Ink lines take the text colour; the one accent is Najd Orange #d97757.
   ===================================================================== */

/* ------------------------------------------------ the hand-drawn icons */
.na-dd{display:inline-block;line-height:0;color:var(--ink);--dd-bg:var(--bg);--dd-tone:var(--soft);-webkit-tap-highlight-color:transparent}
.na-dd svg.dd-svg{display:block;width:100%!important;height:100%!important;overflow:visible}
.na-dd path{fill:none;stroke:none;stroke-linecap:round;stroke-linejoin:round}
.na-dd .k{stroke:currentColor}
.na-dd .o{stroke:#d97757}
.na-dd .kw{stroke:#faf9f5}
.na-dd .fb{fill:var(--dd-bg)}
.na-dd .ft{fill:var(--dd-tone)}
.na-dd .fa{fill:#d97757}
.na-dd .fi{fill:currentColor}
.na-dd .fw{fill:#faf9f5}
/* space is kept for an icon from the first paint; without the script, an empty one takes none */
html:not(.dd) .na-dd:empty{display:none}

/* sizes, wherever an icon stands over a heading */
.pp-icon.na-dd{width:88px;height:88px;margin:0 0 18px}
.pp-icon.na-dd.sm{width:82px;height:82px}
.pp-hero .pp-icon.na-dd{width:108px;height:108px;margin-bottom:14px}
.pbanner .na-dd{width:86px;height:86px;margin:0 auto 16px}
.shead .na-dd{width:78px;height:78px;margin:0 auto 12px}
.nh-steps .na-dd{width:78px;height:78px;margin:0 0 12px}
.nh-head .na-dd{width:82px;height:82px;margin:0 auto 14px}
.nh-ops .na-dd{width:72px;height:72px;margin:0 0 12px}

/* the paper behind the icon, so its own fills match what it stands on */
.band .na-dd,.psec.band .na-dd{--dd-bg:var(--band)}
.pp-end .na-dd,.req .na-dd{--dd-bg:var(--soft);--dd-tone:var(--alt)}
/* in a dark window the lines turn ivory */
.pp-win .na-dd,.nh-ops .na-dd,.cm .na-dd,.nh-stage .na-dd{color:#faf9f5;--dd-bg:var(--win);--dd-tone:#33322e}

@media(max-width:760px){
  .pp-icon.na-dd,.pp-icon.na-dd.sm{width:72px;height:72px}
  .pp-hero .pp-icon.na-dd{width:136px;height:136px;margin-bottom:8px}
  .pbanner .na-dd{width:72px;height:72px;margin-bottom:12px}
  .shead .na-dd,.nh-steps .na-dd,.nh-head .na-dd{width:66px;height:66px}
  .nh-ops .na-dd{width:60px;height:60px}
}

/* ------------------------------------- tiles around the homepage headline */
.pp-hero{position:relative}
.pp-hero .pp-hin{position:relative;z-index:1}
.pp-float{position:absolute;left:0;right:0;top:0;height:var(--pf-h,560px);overflow:hidden;pointer-events:none;z-index:0}
.pf{position:absolute;left:0;top:0;width:108px;pointer-events:auto;will-change:transform,opacity}
html.dd .pf{opacity:0}
html:not(.dd) .pp-float{display:none}
.pf-c{display:block;width:100%;aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:var(--soft);
  box-shadow:0 1px 2px rgba(20,20,19,.05),0 16px 32px -20px rgba(20,20,19,.38)}
.pf-c img{display:block;width:100%;height:100%;object-fit:cover}
.pf.ic .pf-c{display:grid;place-items:center}
.pf.ic .na-dd{width:70%;height:70%;--dd-bg:var(--soft);--dd-tone:var(--alt)}
.pf-l{display:block;font:400 12.5px/1.3 var(--sans);color:var(--faint);margin-top:8px;white-space:nowrap}
html[data-theme="charcoal"] .pf-c{box-shadow:0 1px 2px rgba(0,0,0,.3),0 16px 32px -20px rgba(0,0,0,.8)}
.pf.ph-off{display:none}
@media(max-width:760px){ .pf-l{font-size:11px;margin-top:6px} .pf-c{border-radius:12px} .pf.edge .pf-l{visibility:hidden} }
@media print{ .pp-float{display:none} }

/* ----------------------------------------------------- the services map */
.cm{position:relative;background:var(--win);border-radius:24px;color:#faf9f5;overflow:hidden;isolation:isolate}
.cm a{color:inherit;text-decoration:none}
.cm-core{display:flex;align-items:center;gap:12px;padding:30px 32px 6px;white-space:nowrap}
.cm-mark{line-height:0}
.cm-mark svg{display:block;width:42px;height:42px}
.cm-name{font:500 32px/1 var(--serif);letter-spacing:-.012em;color:#faf9f5}
.cm-bs{list-style:none;margin:0;padding:18px 32px 30px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 32px}
.cm-b{min-width:0}
.cm-p{display:inline-block;font:500 23px/1.2 var(--serif);letter-spacing:-.006em;color:#faf9f5;border-radius:6px;transition:color .25s,opacity .35s}
.cm-p:focus-visible{outline:2px solid #d97757;outline-offset:4px}
.cm-ls{list-style:none;margin:10px 0 0;padding:0}
.cm-ls li{font:400 14.5px/1.55 var(--sans);color:rgba(250,249,245,.6);transition:color .25s,opacity .35s}
.cm-ls a:hover{color:#faf9f5}
@media(min-width:761px){ .cm{height:clamp(640px,56vw,740px)} }
.cm-note{font:400 13.5px/1.45 var(--sans);color:var(--mut);text-align:center;margin:14px 0 0}
.cm-note .t{display:none}
@media(hover:none){ .cm-note .p{display:none} .cm-note .t{display:inline} }

/* drawn as the map (wide screens, with the script) */
.cm.cm-web .cm-core,.cm.cm-web .cm-p,.cm.cm-web .cm-ls li{position:absolute;left:0;top:0;margin:0;will-change:transform,opacity}
.cm.cm-web .cm-core{padding:6px 10px}
.cm.cm-web .cm-mark svg{width:46px;height:46px}
.cm.cm-web .cm-name{font-size:44px}
.cm.cm-web .cm-bs{display:block;padding:0}
.cm.cm-web .cm-b{position:static;transition:opacity .3s}
.cm.cm-web .cm-ls{margin:0}
.cm.cm-web .cm-p,.cm.cm-web .cm-ls li{white-space:nowrap}
.cm.cm-web .cm-p{padding:3px 6px}
.cm.cm-web .cm-ls li{padding:2px 4px;font-size:15px}
.cm.cm-web:not(.cm-ready) .cm-core,.cm.cm-web:not(.cm-ready) .cm-bs{visibility:hidden}
.cm-th{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}
.cm-l{fill:none;stroke:rgba(250,249,245,.17);stroke-width:1;transition:stroke .3s,stroke-width .3s,opacity .3s}
.cm-l.pri{stroke:rgba(250,249,245,.24)}
.cm-l.link{stroke:rgba(250,249,245,.12)}
.cm-l.on{stroke:rgba(217,119,87,.95);stroke-width:1.5}
.cm-l.dim{opacity:.35}
.cm-dot{fill:#d97757}
.cm-glow{fill:rgba(217,119,87,.28)}
.cm[data-on] .cm-b{opacity:.3}
.cm[data-on] .cm-b.on{opacity:1}
.cm .cm-b.on .cm-p{color:#fff}
.cm .cm-b.on .cm-ls li{color:rgba(250,249,245,.92)}
.cm.cm-web .cm-b.on .cm-p{text-shadow:0 0 22px rgba(217,119,87,.45)}

/* a list down the window (phones, and wide screens without the script) */
@media(max-width:760px){
  .cm{border-radius:20px}
  .cm-core{padding:22px 20px 4px}
  .cm-mark svg{width:34px;height:34px}
  .cm-name{font-size:26px}
  .cm-bs{display:block;position:relative;padding:16px 20px 22px}
  .cm-bs:before{content:"";position:absolute;left:36.5px;top:4px;bottom:34px;width:1px;background:rgba(250,249,245,.16)}
  .cm-b{position:relative;padding:0 0 18px 34px}
  .cm-b:last-child{padding-bottom:0}
  .cm-b:before{content:"";position:absolute;left:11.5px;top:9px;width:9px;height:9px;border-radius:50%;background:var(--win);border:1px solid rgba(250,249,245,.45);
    transition:background .25s,border-color .25s,box-shadow .25s}
  .cm-b:after{content:"";position:absolute;left:22px;top:13.5px;width:8px;height:1px;background:rgba(250,249,245,.28);transition:background .25s}
  .cm-p{font-size:21px}
  .cm-ls{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;margin-top:6px}
  .cm-ls li{position:relative;padding-left:12px;font-size:13.5px;line-height:1.45;margin:3px 0}
  .cm-ls li:before{content:"";position:absolute;left:0;top:.72em;width:7px;height:1px;background:rgba(250,249,245,.24);transition:background .25s}
  .cm-b.on:before{background:#d97757;border-color:#d97757;box-shadow:0 0 0 4px rgba(217,119,87,.18)}
  .cm-b.on:after,.cm-b.on .cm-ls li:before{background:rgba(217,119,87,.85)}
  .cm[data-on] .cm-b{opacity:.55}
  .cm-stack .pre{opacity:0;transform:translateY(14px)}
  .cm-stack .pre.in{opacity:1;transform:none;transition:opacity .6s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
}
@media(prefers-reduced-motion:reduce){ .cm-l,.cm-p,.cm-ls li,.cm-b,.cm-b:before{transition:none} .cm-stack .pre{opacity:1;transform:none} }
@media print{ .cm{height:auto!important;background:#fff;color:#000} .cm-th{display:none} .cm *{color:#000!important;position:static!important;transform:none!important;opacity:1!important} }

/* the services page: the map takes the banner's picture panel */
.pbanner .bg.cm-host{aspect-ratio:auto;background:transparent!important;overflow:visible;border-radius:0}
.pbanner .bg.cm-host .cm{width:100%}

/* ------------------------- the Satellite page: AI and machine learning */
.ai-pts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 32px}
.ai-pts .fc{padding:22px 22px 24px}
.ai-pts .fc b{display:block;font:500 17px/1.3 var(--sans);color:var(--ink);margin:12px 0 6px}
.ai-pts .fc span:not(.dot){display:block;font:400 15px/1.55 var(--sans);color:var(--mut)}
@media(max-width:1080px){ .ai-pts{grid-template-columns:1fr 1fr} }
@media(max-width:600px){ .ai-pts{grid-template-columns:1fr;gap:12px} }

/* an example field guide: the drawing on the left, the ranked trenches on the right */
.fg{margin:0;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);background:var(--win);border-radius:24px;overflow:hidden;color:#faf9f5}
.fg-plan{position:relative;aspect-ratio:640/420;min-width:0;margin:18px;align-self:center}
.fg-plan .dd-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fg-plan path{fill:none;stroke:none;stroke-linecap:round;stroke-linejoin:round}
.fg-plan .k{stroke:#faf9f5}
.fg-plan .o{stroke:#d97757}
.fg-plan .fb{fill:var(--win)}
.fg-plan .c1{stroke:#d97757}.fg-plan .c2{stroke:#e08a6a}.fg-plan .c3{stroke:#f0b49b}.fg-plan .c4{stroke:#87867f}
.fg-tag{position:absolute;transform:translate(-50%,-50%);font:500 12px/1 var(--sans);letter-spacing:.02em;color:rgba(250,249,245,.78);white-space:nowrap;
  opacity:0;transition:opacity .45s}
.fg-tag.t{font:600 12px/1 var(--mono);color:#141413;background:#faf9f5;border-radius:5px;padding:4px 6px}
.fg-tag.st{color:#e08a6a}
.fg-tag.sm{font-size:11px;color:rgba(250,249,245,.6)}
.fg-tag.on{opacity:1}
.fg-ring{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border:2px solid #d97757;border-radius:50%;opacity:0;pointer-events:none}
.fg.done .fg-ring{animation:fgring 2.2s ease-out infinite}
@keyframes fgring{0%{transform:scale(.35);opacity:.95}100%{transform:scale(2.3);opacity:0}}
.fg-list{padding:30px 30px 26px;border-left:1px solid rgba(250,249,245,.1);display:flex;flex-direction:column;min-width:0}
.fg-k{font:500 12px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#d97757;margin:0}
.fg-h{font:500 26px/1.2 var(--serif);margin:10px 0 16px;color:#faf9f5}
.fg-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 10px;padding:12px 0 13px;border-top:1px solid rgba(250,249,245,.1);
  opacity:.28;transition:opacity .45s}
.fg-row.on{opacity:1}
.fg-row .n{font:500 13px/1.5 var(--mono);color:#d97757}
.fg-row b{font:500 15px/1.4 var(--sans);color:#faf9f5}
.fg-row .c{font:500 13px/1.5 var(--sans);color:var(--c)}
.fg-row .why{grid-column:2/4;font:400 13.5px/1.5 var(--sans);color:rgba(250,249,245,.62)}
.fg-row i{grid-column:2/4;display:block;height:3px;border-radius:2px;background:rgba(250,249,245,.12);overflow:hidden;margin-top:6px}
.fg-row i em{display:block;height:100%;width:var(--p);background:var(--c);transform-origin:0 50%;transform:scaleX(0);transition:transform 1s cubic-bezier(.2,.8,.2,1) .1s}
.fg-row.on i em{transform:scaleX(1)}
.fg-rule{margin:auto 0 0;padding-top:16px;font:400 13.5px/1.55 var(--sans);color:rgba(250,249,245,.78);opacity:0;transition:opacity .6s}
.fg-rule b{color:#faf9f5;font-weight:500}
.fg-rule.on{opacity:1}
.fg-cap{font:400 13px/1.45 var(--sans);color:var(--mut);text-align:center;margin:14px 0 0}
html:not(.dd) .fg-plan{display:none}
html:not(.dd) .fg{grid-template-columns:1fr}
html:not(.dd) .fg-row,html:not(.dd) .fg-rule{opacity:1}
html:not(.dd) .fg-row i em{transform:none}
@media(max-width:900px){ .fg{grid-template-columns:1fr} .fg-list{border-left:0;border-top:1px solid rgba(250,249,245,.1);padding:24px 22px 22px} }
@media(max-width:600px){ .fg{border-radius:20px} .fg-plan{margin:12px} .fg-tag{font-size:10.5px} .fg-tag.t{font-size:10.5px;padding:3px 5px} .fg-h{font-size:22px} }
@media(prefers-reduced-motion:reduce){ .fg-tag,.fg-row,.fg-rule,.fg-row i em{transition:none} .fg.done .fg-ring{animation:none;opacity:.9;transform:scale(1)} }
@media print{ .fg{background:#fff;color:#000} .fg-tag,.fg-row,.fg-rule{opacity:1!important} }

/* "we built it": the line and the tags under the Satellite page's heading */
#ai .sdesc b{color:var(--ink);font-weight:500}
.ai-made,.shead>.ai-made{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px;margin:20px auto 0;max-width:760px}
.ai-made span{font:500 13px/1 var(--sans);padding:8px 12px;border-radius:999px;background:var(--soft);color:var(--ink2);border:1px solid var(--line2)}
.ai-made span:first-child{background:var(--coral);border-color:var(--coral);color:#fff}
.fg-cta{display:flex;justify-content:center;margin:26px 0 0}
